9e935d3f42
git-svn-id: https://develop.svn.wordpress.org/trunk@1810 602fd350-edb4-49c9-b593-d223f7449a82
16 lines
612 B
PHP
16 lines
612 B
PHP
<?php
|
|
require_once(ABSPATH . '/wp-config.php');
|
|
|
|
if ( (!empty($_COOKIE['wordpressuser_' . COOKIEHASH]) && !wp_login($_COOKIE['wordpressuser_' . COOKIEHASH], $_COOKIE['wordpresspass_' . COOKIEHASH], true))
|
|
|| (empty($_COOKIE['wordpressuser_' . COOKIEHASH])) ) {
|
|
header('Expires: Wed, 5 Jun 1979 23:41:00 GMT'); // Michel's birthday
|
|
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
|
header('Cache-Control: no-cache, must-revalidate');
|
|
header('Pragma: no-cache');
|
|
|
|
header('Location: ' . get_settings('siteurl') . '/wp-login.php?redirect_to=' . urlencode($_SERVER['REQUEST_URI']));
|
|
exit();
|
|
}
|
|
|
|
?>
|