Changeset 1769
- Timestamp:
- 10/10/04 18:07:33 (4 years ago)
- Files:
-
- trunk/wp-admin/auth.php (modified) (1 diff)
- trunk/wp-login.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/auth.php
r1768 r1769 3 3 4 4 if ( !empty($_COOKIE['wordpressuser_' . COOKIEHASH]) && !wp_login($_COOKIE['wordpressuser_' . COOKIEHASH], $_COOKIE['wordpresspass_' . COOKIEHASH) ) { 5 header('Expires: Wed, 11 Jan 1984 05:00:00 GMT');5 header('Expires: Wed, 5 Jun 1979 23:41:00 GMT'); // Michel's birthday 6 6 header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); 7 7 header('Cache-Control: no-cache, must-revalidate'); trunk/wp-login.php
r1768 r1769 37 37 } 38 38 } 39 39 40 $error = ''; 41 42 header('Expires: Wed, 11 Jan 1984 05:00:00 GMT'); 43 header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); 44 header('Cache-Control: no-cache, must-revalidate'); 45 header('Pragma: no-cache'); 46 40 47 // If someone has moved WordPress let's try to detect it 41 48 if ( dirname('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']) != get_settings('siteurl') ) … … 48 55 setcookie('wordpressuser_' . COOKIEHASH, ' ', time() - 31536000, COOKIEPATH); 49 56 setcookie('wordpresspass_' . COOKIEHASH, ' ', time() - 31536000, COOKIEPATH); 50 header('Expires: Wed, 11 Jan 1984 05:00:00 GMT'); 51 header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); 52 header('Cache-Control: no-cache, must-revalidate'); 53 header('Pragma: no-cache'); 57 54 58 if ($is_IIS) 55 59 header('Refresh: 0;url=wp-login.php'); … … 149 153 } 150 154 151 header('Expires: Wed, 11 Jan 1984 05:00:00 GMT');152 header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');153 header('Cache-Control: no-cache, must-revalidate');154 header('Pragma: no-cache');155 156 155 if ( wp_login($log, $pwd) ) { 157 156 $user_login = $log; … … 172 171 173 172 if ( wp_login($user_login, $user_pass_md5, true) ) { 174 header('Expires: Wed, 5 Jun 1979 23:41:00 GMT'); // Michel's birthday175 header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');176 header('Cache-Control: no-cache, must-revalidate');177 header('Pragma: no-cache');178 173 header('Location: wp-admin/'); 179 174 exit();
