Changeset 3120

Show
Ignore:
Timestamp:
11/17/05 00:51:34 (3 years ago)
Author:
matt
Message:

New logo, better login.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/admin-footer.php

    r2833 r3120  
    11 
    2 <div id="footer"><p><a href="http://wordpress.org/"><img src="../wp-includes/images/wp-small.png" alt="WordPress" /></a><br /
    3 <?php bloginfo('version'); ?> <br />  
     2<div id="footer"><p><a href="http://wordpress.org/" id="wordpress-logo"><img src="images/wordpress-logo.png" alt="WordPress" /></a></p
     3<p> 
    44<a href="http://codex.wordpress.org/"><?php _e('Documentation'); ?></a> &#8212; <a href="http://wordpress.org/support/"><?php _e('Support Forums'); ?></a> <br /> 
    5 <?php printf(__('%s seconds'), number_format(timer_stop(), 2)); ?> 
     5<?php bloginfo('version'); ?> &#8212; <?php printf(__('%s seconds'), number_format(timer_stop(), 2)); ?> 
    66</p> 
    77 
  • trunk/wp-admin/wp-admin.css

    r3082 r3120  
    472472#login { 
    473473    background: #fff; 
    474     border: 2px solid #a2a2a2; 
     474    border: 1px solid #a2a2a2; 
    475475    margin: 5em auto; 
    476476    padding: 1.5em; 
     
    489489 
    490490#login h1 { 
    491     background: url(../wp-includes/images/wp-small.png) no-repeat; 
     491    background: url(images/wordpress-logo.png) no-repeat top left; 
    492492    margin-top: 0; 
    493493} 
     
    496496    display: block; 
    497497    text-indent: -1000px; 
     498    height: 66px; 
     499    border-bottom: none; 
    498500} 
    499501 
     
    514516} 
    515517 
     518#login #log, #pwd { 
     519    font-size: 1.7em; 
     520    width: 80%; 
     521} 
     522 
     523#login #submit { 
     524    font-size: 1.7em; 
     525} 
    516526 
    517527#postcustom .updatemeta, #postcustom .deletemeta { 
  • trunk/wp-includes/pluggable-functions.php

    r3102 r3120  
    145145    global $wpdb, $error; 
    146146 
    147     if ( !$username ) 
    148         return false; 
    149  
    150     if ( !$password ) { 
     147    if ( '' == $username ) 
     148        return false; 
     149 
     150    if ( '' == $password ) { 
    151151        $error = __('<strong>Error</strong>: The password field is empty.'); 
    152152        return false; 
  • trunk/wp-login.php

    r3044 r3120  
    171171    $redirect_to = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $redirect_to); 
    172172 
    173     if( !empty($_POST) ) { 
     173    if( $_POST ) { 
    174174        $user_login = $_POST['log']; 
     175        $user_login = sanitize_user( $user_login ); 
    175176        $user_pass  = $_POST['pwd']; 
    176177        $rememberme = $_POST['rememberme']; 
     
    186187    do_action('wp_authenticate', array(&$user_login, &$user_pass)); 
    187188 
    188     if ($user_login && $user_pass) { 
     189    if ( $_POST ) { 
    189190        $user = new WP_User($user_login); 
    190  
     191     
    191192        // If the user can't edit posts, send them to their profile. 
    192193        if ( !$user->has_cap('edit_posts') && ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' ) ) 
    193           $redirect_to = get_settings('siteurl') . '/wp-admin/profile.php'; 
    194  
     194          $redirect_to = get_settings('siteurl') . '/wp-admin/profile.php'; 
     195     
    195196        if ( wp_login($user_login, $user_pass, $using_cookie) ) { 
    196197            if ( !$using_cookie ) 
     
    217218    window.onload = focusit; 
    218219    </script> 
    219     <style type="text/css"> 
    220     #log, #pwd, #submit { 
    221         font-size: 1.7em; 
    222     } 
    223     </style> 
    224220</head> 
    225221<body> 
     
    233229 
    234230<form name="loginform" id="loginform" action="wp-login.php" method="post"> 
    235 <p><label><?php _e('Username:') ?><br /><input type="text" name="log" id="log" value="" size="20" tabindex="1" /></label></p> 
     231<p><label><?php _e('Username:') ?><br /><input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1); ?>" size="20" tabindex="1" /></label></p> 
    236232<p><label><?php _e('Password:') ?><br /> <input type="password" name="pwd" id="pwd" value="" size="20" tabindex="2" /></label></p> 
    237233<p>