-
+ 5E5C1E016D3A7B1BFD2CF6AB94EBA8E84B1C9947496A2BC8FA6A6F7BCDEEFF58A10D1DCE6706028C6F0A796BFE468007FCCE74A14D4D524D8E858538A075F6D4
mp-wp/wp-login.php
(0 . 0)(1 . 517)
159733 <?php
159734 /**
159735 * WordPress User Page
159736 *
159737 * Handles authentication, registering, resetting passwords, forgot password,
159738 * and other user handling.
159739 *
159740 * @package WordPress
159741 */
159742
159743 /** Make sure that the WordPress bootstrap has ran before continuing. */
159744 require( dirname(__FILE__) . '/wp-load.php' );
159745
159746 // Redirect to https login if forced to use SSL
159747 if ( force_ssl_admin() && !is_ssl() ) {
159748 if ( 0 === strpos($_SERVER['REQUEST_URI'], 'http') ) {
159749 wp_redirect(preg_replace('|^http://|', 'https://', $_SERVER['REQUEST_URI']));
159750 exit();
159751 } else {
159752 wp_redirect('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
159753 exit();
159754 }
159755 }
159756
159757 /**
159758 * Outputs the header for the login page.
159759 *
159760 * @uses do_action() Calls the 'login_head' for outputting HTML in the Log In
159761 * header.
159762 * @uses apply_filters() Calls 'login_headerurl' for the top login link.
159763 * @uses apply_filters() Calls 'login_headertitle' for the top login title.
159764 * @uses apply_filters() Calls 'login_message' on the message to display in the
159765 * header.
159766 * @uses $error The error global, which is checked for displaying errors.
159767 *
159768 * @param string $title Optional. WordPress Log In Page title to display in
159769 * <title/> element.
159770 * @param string $message Optional. Message to display in header.
159771 * @param WP_Error $wp_error Optional. WordPress Error Object
159772 */
159773 function login_header($title = 'Log In', $message = '', $wp_error = '') {
159774 global $error;
159775
159776 if ( empty($wp_error) )
159777 $wp_error = new WP_Error();
159778 ?>
159779 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
159780 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
159781 <head>
159782 <title><?php bloginfo('name'); ?> › <?php echo $title; ?></title>
159783 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
159784 <?php
159785 wp_admin_css( 'login', true );
159786 wp_admin_css( 'colors-fresh', true );
159787 do_action('login_head'); ?>
159788 </head>
159789 <body class="login">
159790
159791 <div id="login"><h1><a href="<?php echo apply_filters('login_headerurl', 'http://wordpress.org/'); ?>" title="<?php echo apply_filters('login_headertitle', __('Powered by WordPress')); ?>"><?php bloginfo('name'); ?></a></h1>
159792 <?php
159793 if ( !empty( $message ) ) echo apply_filters('login_message', $message) . "\n";
159794
159795 // Incase a plugin uses $error rather than the $errors object
159796 if ( !empty( $error ) ) {
159797 $wp_error->add('error', $error);
159798 unset($error);
159799 }
159800
159801 if ( $wp_error->get_error_code() ) {
159802 $errors = '';
159803 $messages = '';
159804 foreach ( $wp_error->get_error_codes() as $code ) {
159805 $severity = $wp_error->get_error_data($code);
159806 foreach ( $wp_error->get_error_messages($code) as $error ) {
159807 if ( 'message' == $severity )
159808 $messages .= ' ' . $error . "<br />\n";
159809 else
159810 $errors .= ' ' . $error . "<br />\n";
159811 }
159812 }
159813 if ( !empty($errors) )
159814 echo '<div id="login_error">' . apply_filters('login_errors', $errors) . "</div>\n";
159815 if ( !empty($messages) )
159816 echo '<p class="message">' . apply_filters('login_messages', $messages) . "</p>\n";
159817 }
159818 } // End of login_header()
159819
159820 /**
159821 * Handles sending password retrieval email to user.
159822 *
159823 * @uses $wpdb WordPress Database object
159824 *
159825 * @return bool|WP_Error True: when finish. WP_Error on error
159826 */
159827 function retrieve_password() {
159828 global $wpdb;
159829
159830 $errors = new WP_Error();
159831
159832 if ( empty( $_POST['user_login'] ) && empty( $_POST['user_email'] ) )
159833 $errors->add('empty_username', __('<strong>ERROR</strong>: Enter a username or e-mail address.'));
159834
159835 if ( strpos($_POST['user_login'], '@') ) {
159836 $user_data = get_user_by_email(trim($_POST['user_login']));
159837 if ( empty($user_data) )
159838 $errors->add('invalid_email', __('<strong>ERROR</strong>: There is no user registered with that email address.'));
159839 } else {
159840 $login = trim($_POST['user_login']);
159841 $user_data = get_userdatabylogin($login);
159842 }
159843
159844 do_action('lostpassword_post');
159845
159846 if ( $errors->get_error_code() )
159847 return $errors;
159848
159849 if ( !$user_data ) {
159850 $errors->add('invalidcombo', __('<strong>ERROR</strong>: Invalid username or e-mail.'));
159851 return $errors;
159852 }
159853
159854 // redefining user_login ensures we return the right case in the email
159855 $user_login = $user_data->user_login;
159856 $user_email = $user_data->user_email;
159857
159858 do_action('retreive_password', $user_login); // Misspelled and deprecated
159859 do_action('retrieve_password', $user_login);
159860
159861 $allow = apply_filters('allow_password_reset', true, $user_data->ID);
159862
159863 if ( ! $allow )
159864 return new WP_Error('no_password_reset', __('Password reset is not allowed for this user'));
159865 else if ( is_wp_error($allow) )
159866 return $allow;
159867
159868 $key = $wpdb->get_var($wpdb->prepare("SELECT user_activation_key FROM $wpdb->users WHERE user_login = %s", $user_login));
159869 if ( empty($key) ) {
159870 // Generate something random for a key...
159871 $key = wp_generate_password(20, false);
159872 do_action('retrieve_password_key', $user_login, $key);
159873 // Now insert the new md5 key into the db
159874 $wpdb->query($wpdb->prepare("UPDATE $wpdb->users SET user_activation_key = %s WHERE user_login = %s", $key, $user_login));
159875 }
159876 $message = __('Someone has asked to reset the password for the following site and username.') . "\r\n\r\n";
159877 $message .= get_option('siteurl') . "\r\n\r\n";
159878 $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n";
159879 $message .= __('To reset your password visit the following address, otherwise just ignore this email and nothing will happen.') . "\r\n\r\n";
159880 $message .= site_url("wp-login.php?action=rp&key=$key", 'login') . "\r\n";
159881
159882 if ( !wp_mail($user_email, sprintf(__('[%s] Password Reset'), get_option('blogname')), $message) )
159883 die('<p>' . __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function...') . '</p>');
159884
159885 return true;
159886 }
159887
159888 /**
159889 * Handles resetting the user's password.
159890 *
159891 * @uses $wpdb WordPress Database object
159892 *
159893 * @param string $key Hash to validate sending user's password
159894 * @return bool|WP_Error
159895 */
159896 function reset_password($key) {
159897 global $wpdb;
159898
159899 $key = preg_replace('/[^a-z0-9]/i', '', $key);
159900
159901 if ( empty( $key ) )
159902 return new WP_Error('invalid_key', __('Invalid key'));
159903
159904 $user = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->users WHERE user_activation_key = %s", $key));
159905 if ( empty( $user ) )
159906 return new WP_Error('invalid_key', __('Invalid key'));
159907
159908 do_action('password_reset', $user);
159909
159910 // Generate something random for a password...
159911 $new_pass = wp_generate_password();
159912 wp_set_password($new_pass, $user->ID);
159913 $message = sprintf(__('Username: %s'), $user->user_login) . "\r\n";
159914 $message .= sprintf(__('Password: %s'), $new_pass) . "\r\n";
159915 $message .= site_url('wp-login.php', 'login') . "\r\n";
159916
159917 if ( !wp_mail($user->user_email, sprintf(__('[%s] Your new password'), get_option('blogname')), $message) )
159918 die('<p>' . __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function...') . '</p>');
159919
159920 wp_password_change_notification($user);
159921
159922 return true;
159923 }
159924
159925 /**
159926 * Handles registering a new user.
159927 *
159928 * @param string $user_login User's username for logging in
159929 * @param string $user_email User's email address to send password and add
159930 * @return int|WP_Error Either user's ID or error on failure.
159931 */
159932 function register_new_user($user_login, $user_email) {
159933 $errors = new WP_Error();
159934
159935 $user_login = sanitize_user( $user_login );
159936 $user_email = apply_filters( 'user_registration_email', $user_email );
159937
159938 // Check the username
159939 if ( $user_login == '' )
159940 $errors->add('empty_username', __('<strong>ERROR</strong>: Please enter a username.'));
159941 elseif ( !validate_username( $user_login ) ) {
159942 $errors->add('invalid_username', __('<strong>ERROR</strong>: This username is invalid. Please enter a valid username.'));
159943 $user_login = '';
159944 } elseif ( username_exists( $user_login ) )
159945 $errors->add('username_exists', __('<strong>ERROR</strong>: This username is already registered, please choose another one.'));
159946
159947 // Check the e-mail address
159948 if ($user_email == '') {
159949 $errors->add('empty_email', __('<strong>ERROR</strong>: Please type your e-mail address.'));
159950 } elseif ( !is_email( $user_email ) ) {
159951 $errors->add('invalid_email', __('<strong>ERROR</strong>: The email address isn’t correct.'));
159952 $user_email = '';
159953 } elseif ( email_exists( $user_email ) )
159954 $errors->add('email_exists', __('<strong>ERROR</strong>: This email is already registered, please choose another one.'));
159955
159956 do_action('register_post', $user_login, $user_email, $errors);
159957
159958 $errors = apply_filters( 'registration_errors', $errors );
159959
159960 if ( $errors->get_error_code() )
159961 return $errors;
159962
159963 $user_pass = wp_generate_password();
159964 $user_id = wp_create_user( $user_login, $user_pass, $user_email );
159965 if ( !$user_id ) {
159966 $errors->add('registerfail', sprintf(__('<strong>ERROR</strong>: Couldn’t register you... please contact the <a href="mailto:%s">webmaster</a> !'), get_option('admin_email')));
159967 return $errors;
159968 }
159969
159970 wp_new_user_notification($user_id, $user_pass);
159971
159972 return $user_id;
159973 }
159974
159975 //
159976 // Main
159977 //
159978
159979 $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : '';
159980 $errors = new WP_Error();
159981
159982 if ( isset($_GET['key']) )
159983 $action = 'resetpass';
159984
159985 nocache_headers();
159986
159987 header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));
159988
159989 if ( defined('RELOCATE') ) { // Move flag is set
159990 if ( isset( $_SERVER['PATH_INFO'] ) && ($_SERVER['PATH_INFO'] != $_SERVER['PHP_SELF']) )
159991 $_SERVER['PHP_SELF'] = str_replace( $_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF'] );
159992
159993 $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://';
159994 if ( dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != get_option('siteurl') )
159995 update_option('siteurl', dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) );
159996 }
159997
159998 //Set a cookie now to see if they are supported by the browser.
159999 setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
160000 if ( SITECOOKIEPATH != COOKIEPATH )
160001 setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);
160002
160003 $http_post = ('POST' == $_SERVER['REQUEST_METHOD']);
160004 switch ($action) {
160005
160006 case 'logout' :
160007 check_admin_referer('log-out');
160008 wp_logout();
160009
160010 $redirect_to = 'wp-login.php?loggedout=true';
160011 if ( isset( $_REQUEST['redirect_to'] ) )
160012 $redirect_to = $_REQUEST['redirect_to'];
160013
160014 wp_safe_redirect($redirect_to);
160015 exit();
160016
160017 break;
160018
160019 case 'lostpassword' :
160020 case 'retrievepassword' :
160021 if ( $http_post ) {
160022 $errors = retrieve_password();
160023 if ( !is_wp_error($errors) ) {
160024 wp_redirect('wp-login.php?checkemail=confirm');
160025 exit();
160026 }
160027 }
160028
160029 if ( isset($_GET['error']) && 'invalidkey' == $_GET['error'] ) $errors->add('invalidkey', __('Sorry, that key does not appear to be valid.'));
160030
160031 do_action('lost_password');
160032 login_header(__('Lost Password'), '<p class="message">' . __('Please enter your username or e-mail address. You will receive a new password via e-mail.') . '</p>', $errors);
160033
160034 $user_login = isset($_POST['user_login']) ? stripslashes($_POST['user_login']) : '';
160035
160036 ?>
160037
160038 <form name="lostpasswordform" id="lostpasswordform" action="<?php echo site_url('wp-login.php?action=lostpassword', 'login_post') ?>" method="post">
160039 <p>
160040 <label><?php _e('Username or E-mail:') ?><br />
160041 <input type="text" name="user_login" id="user_login" class="input" value="<?php echo attribute_escape($user_login); ?>" size="20" tabindex="10" /></label>
160042 </p>
160043 <?php do_action('lostpassword_form'); ?>
160044 <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" value="<?php _e('Get New Password'); ?>" tabindex="100" /></p>
160045 </form>
160046
160047 <p id="nav">
160048 <?php if (get_option('users_can_register')) : ?>
160049 <a href="<?php echo site_url('wp-login.php', 'login') ?>"><?php _e('Log in') ?></a> |
160050 <a href="<?php echo site_url('wp-login.php?action=register', 'login') ?>"><?php _e('Register') ?></a>
160051 <?php else : ?>
160052 <a href="<?php echo site_url('wp-login.php', 'login') ?>"><?php _e('Log in') ?></a>
160053 <?php endif; ?>
160054 </p>
160055
160056 </div>
160057
160058 <p id="backtoblog"><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('← Back to %s'), get_bloginfo('title', 'display' )); ?></a></p>
160059
160060 <script type="text/javascript">
160061 try{document.getElementById('user_login').focus();}catch(e){}
160062 </script>
160063 </body>
160064 </html>
160065 <?php
160066 break;
160067
160068 case 'resetpass' :
160069 case 'rp' :
160070 $errors = reset_password($_GET['key']);
160071
160072 if ( ! is_wp_error($errors) ) {
160073 wp_redirect('wp-login.php?checkemail=newpass');
160074 exit();
160075 }
160076
160077 wp_redirect('wp-login.php?action=lostpassword&error=invalidkey');
160078 exit();
160079
160080 break;
160081
160082 case 'register' :
160083 if ( !get_option('users_can_register') ) {
160084 wp_redirect('wp-login.php?registration=disabled');
160085 exit();
160086 }
160087
160088 $user_login = '';
160089 $user_email = '';
160090 if ( $http_post ) {
160091 require_once( ABSPATH . WPINC . '/registration.php');
160092
160093 $user_login = $_POST['user_login'];
160094 $user_email = $_POST['user_email'];
160095 $errors = register_new_user($user_login, $user_email);
160096 if ( !is_wp_error($errors) ) {
160097 wp_redirect('wp-login.php?checkemail=registered');
160098 exit();
160099 }
160100 }
160101
160102 login_header(__('Registration Form'), '<p class="message register">' . __('Register For This Site') . '</p>', $errors);
160103 ?>
160104
160105 <form name="registerform" id="registerform" action="<?php echo site_url('wp-login.php?action=register', 'login_post') ?>" method="post">
160106 <p>
160107 <label><?php _e('Username') ?><br />
160108 <input type="text" name="user_login" id="user_login" class="input" value="<?php echo attribute_escape(stripslashes($user_login)); ?>" size="20" tabindex="10" /></label>
160109 </p>
160110 <p>
160111 <label><?php _e('E-mail') ?><br />
160112 <input type="text" name="user_email" id="user_email" class="input" value="<?php echo attribute_escape(stripslashes($user_email)); ?>" size="25" tabindex="20" /></label>
160113 </p>
160114 <?php do_action('register_form'); ?>
160115 <p id="reg_passmail"><?php _e('A password will be e-mailed to you.') ?></p>
160116 <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" value="<?php _e('Register'); ?>" tabindex="100" /></p>
160117 </form>
160118
160119 <p id="nav">
160120 <a href="<?php echo site_url('wp-login.php', 'login') ?>"><?php _e('Log in') ?></a> |
160121 <a href="<?php echo site_url('wp-login.php?action=lostpassword', 'login') ?>" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a>
160122 </p>
160123
160124 </div>
160125
160126 <p id="backtoblog"><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('← Back to %s'), get_bloginfo('title', 'display' )); ?></a></p>
160127
160128 <script type="text/javascript">
160129 try{document.getElementById('user_login').focus();}catch(e){}
160130 </script>
160131 </body>
160132 </html>
160133 <?php
160134 break;
160135
160136 case 'login' :
160137 default:
160138 $secure_cookie = '';
160139
160140 // If the user wants ssl but the session is not ssl, force a secure cookie.
160141 if ( !empty($_POST['log']) && !force_ssl_admin() ) {
160142 $user_name = sanitize_user($_POST['log']);
160143 if ( $user = get_userdatabylogin($user_name) ) {
160144 if ( get_user_option('use_ssl', $user->ID) ) {
160145 $secure_cookie = true;
160146 force_ssl_admin(true);
160147 }
160148 }
160149 }
160150
160151 if ( isset( $_REQUEST['redirect_to'] ) ) {
160152 $redirect_to = $_REQUEST['redirect_to'];
160153 // Redirect to https if user wants ssl
160154 if ( $secure_cookie && false !== strpos($redirect_to, 'wp-admin') )
160155 $redirect_to = preg_replace('|^http://|', 'https://', $redirect_to);
160156 } else {
160157 $redirect_to = admin_url();
160158 }
160159
160160 if ( !$secure_cookie && is_ssl() && force_ssl_login() && !force_ssl_admin() && ( 0 !== strpos($redirect_to, 'https') ) && ( 0 === strpos($redirect_to, 'http') ) )
160161 $secure_cookie = false;
160162
160163 $user = wp_signon('', $secure_cookie);
160164
160165 $redirect_to = apply_filters('login_redirect', $redirect_to, isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '', $user);
160166
160167 if ( !is_wp_error($user) ) {
160168 // If the user can't edit posts, send them to their profile.
160169 if ( !$user->has_cap('edit_posts') && ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' ) )
160170 $redirect_to = admin_url('profile.php');
160171 wp_safe_redirect($redirect_to);
160172 exit();
160173 }
160174
160175 $errors = $user;
160176 // Clear errors if loggedout is set.
160177 if ( !empty($_GET['loggedout']) )
160178 $errors = new WP_Error();
160179
160180 // If cookies are disabled we can't log in even with a valid user+pass
160181 if ( isset($_POST['testcookie']) && empty($_COOKIE[TEST_COOKIE]) )
160182 $errors->add('test_cookie', __("<strong>ERROR</strong>: Cookies are blocked or not supported by your browser. You must <a href='http://www.google.com/cookies.html'>enable cookies</a> to use WordPress."));
160183
160184 // Some parts of this script use the main login form to display a message
160185 if ( isset($_GET['loggedout']) && TRUE == $_GET['loggedout'] ) $errors->add('loggedout', __('You are now logged out.'), 'message');
160186 elseif ( isset($_GET['registration']) && 'disabled' == $_GET['registration'] ) $errors->add('registerdisabled', __('User registration is currently not allowed.'));
160187 elseif ( isset($_GET['checkemail']) && 'confirm' == $_GET['checkemail'] ) $errors->add('confirm', __('Check your e-mail for the confirmation link.'), 'message');
160188 elseif ( isset($_GET['checkemail']) && 'newpass' == $_GET['checkemail'] ) $errors->add('newpass', __('Check your e-mail for your new password.'), 'message');
160189 elseif ( isset($_GET['checkemail']) && 'registered' == $_GET['checkemail'] ) $errors->add('registered', __('Registration complete. Please check your e-mail.'), 'message');
160190
160191 login_header(__('Log In'), '', $errors);
160192
160193 if ( isset($_POST['log']) )
160194 $user_login = ( 'incorrect_password' == $errors->get_error_code() || 'empty_password' == $errors->get_error_code() ) ? attribute_escape(stripslashes($_POST['log'])) : '';
160195 ?>
160196
160197 <?php if ( !isset($_GET['checkemail']) || !in_array( $_GET['checkemail'], array('confirm', 'newpass') ) ) : ?>
160198 <form name="loginform" id="loginform" action="<?php echo site_url('wp-login.php', 'login_post') ?>" method="post">
160199 <p>
160200 <label><?php _e('Username') ?><br />
160201 <input type="text" name="log" id="user_login" class="input" value="<?php echo $user_login; ?>" size="20" tabindex="10" /></label>
160202 </p>
160203 <p>
160204 <label><?php _e('Password') ?><br />
160205 <input type="password" name="pwd" id="user_pass" class="input" value="" size="20" tabindex="20" /></label>
160206 </p>
160207 <?php do_action('login_form'); ?>
160208 <p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /> <?php _e('Remember Me'); ?></label></p>
160209 <p class="submit">
160210 <input type="submit" name="wp-submit" id="wp-submit" value="<?php _e('Log In'); ?>" tabindex="100" />
160211 <input type="hidden" name="redirect_to" value="<?php echo attribute_escape($redirect_to); ?>" />
160212 <input type="hidden" name="testcookie" value="1" />
160213 </p>
160214 </form>
160215 <?php endif; ?>
160216
160217 <p id="nav">
160218 <?php if ( isset($_GET['checkemail']) && in_array( $_GET['checkemail'], array('confirm', 'newpass') ) ) : ?>
160219 <?php elseif (get_option('users_can_register')) : ?>
160220 <a href="<?php echo site_url('wp-login.php?action=register', 'login') ?>"><?php _e('Register') ?></a> |
160221 <a href="<?php echo site_url('wp-login.php?action=lostpassword', 'login') ?>" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a>
160222 <?php else : ?>
160223 <a href="<?php echo site_url('wp-login.php?action=lostpassword', 'login') ?>" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a>
160224 <?php endif; ?>
160225 </p>
160226
160227 </div>
160228
160229 <p id="backtoblog"><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('← Back to %s'), get_bloginfo('title', 'display' )); ?></a></p>
160230
160231 <script type="text/javascript">
160232 <?php if ( $user_login ) { ?>
160233 setTimeout( function(){ try{
160234 d = document.getElementById('user_pass');
160235 d.value = '';
160236 d.focus();
160237 } catch(e){}
160238 }, 200);
160239 <?php } else { ?>
160240 try{document.getElementById('user_login').focus();}catch(e){}
160241 <?php } ?>
160242 </script>
160243 </body>
160244 </html>
160245 <?php
160246
160247 break;
160248 } // end action switch
160249 ?>