<?php /* Template Name: Password Reset Form */ global $wpdb, $current_user; get_currentuserinfo(); $user_ID = $current_user->ID; if ($user_ID) { //show only to logged in users $redirect_url = $_GET['redirect_to']; $check_val = 'wp-admin'; $pos = strpos($redirect_url, $check_val); if ($pos === false) { $redirect_url = $_GET['redirect_to']; } else { $site_url = get_site_url(); $redirect_url = $site_url; } ?>

<?php the_title(); ?>

<?php wp_nonce_field( 'resetpwd', 'resetpassword' ); ?>
<?php  } ?>