2003-04-21 17:37:11 -04:00
|
|
|
<?php
|
2004-10-18 00:50:08 -04:00
|
|
|
require_once(ABSPATH . '/wp-config.php');
|
2003-04-21 17:37:11 -04:00
|
|
|
|
2004-10-17 08:42:18 -04:00
|
|
|
if ( (!empty($_COOKIE['wordpressuser_' . COOKIEHASH]) && !wp_login($_COOKIE['wordpressuser_' . COOKIEHASH], $_COOKIE['wordpresspass_' . COOKIEHASH], true))
|
|
|
|
|| (empty($_COOKIE['wordpressuser_' . COOKIEHASH])) ) {
|
2004-10-10 14:07:33 -04:00
|
|
|
header('Expires: Wed, 5 Jun 1979 23:41:00 GMT'); // Michel's birthday
|
2004-02-09 04:56:57 -05:00
|
|
|
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
|
|
|
header('Cache-Control: no-cache, must-revalidate');
|
|
|
|
header('Pragma: no-cache');
|
2004-10-10 14:02:30 -04:00
|
|
|
|
2004-10-11 01:47:51 -04:00
|
|
|
header('Location: ' . get_settings('siteurl') . '/wp-login.php?redirect_to=' . urlencode($_SERVER['REQUEST_URI']));
|
2004-02-09 04:56:57 -05:00
|
|
|
exit();
|
|
|
|
}
|
|
|
|
|
2004-10-17 08:42:18 -04:00
|
|
|
?>
|