mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-20 01:25:30 +01:00
39e9a6d942
git-svn-id: http://svn.automattic.com/wordpress/trunk@1774 1a063a9b-81f0-0310-95a4-ce76da25c4cd
14 lines
548 B
PHP
14 lines
548 B
PHP
<?php
|
|
require_once('../wp-config.php');
|
|
|
|
if ( !empty($_COOKIE['wordpressuser_' . COOKIEHASH]) && !wp_login($_COOKIE['wordpressuser_' . COOKIEHASH], $_COOKIE['wordpresspass_' . COOKIEHASH], true) ) {
|
|
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();
|
|
}
|
|
|
|
?>
|