2003-04-21 23:37:11 +02:00
|
|
|
<?php
|
2004-10-18 06:50:08 +02:00
|
|
|
require_once(ABSPATH . '/wp-config.php');
|
2003-04-21 23:37:11 +02:00
|
|
|
|
2004-10-17 14:42:18 +02:00
|
|
|
if ( (!empty($_COOKIE['wordpressuser_' . COOKIEHASH]) && !wp_login($_COOKIE['wordpressuser_' . COOKIEHASH], $_COOKIE['wordpresspass_' . COOKIEHASH], true))
|
|
|
|
|| (empty($_COOKIE['wordpressuser_' . COOKIEHASH])) ) {
|
2004-10-10 20:07:33 +02:00
|
|
|
header('Expires: Wed, 5 Jun 1979 23:41:00 GMT'); // Michel's birthday
|
2004-02-09 10:56:57 +01: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 20:02:30 +02:00
|
|
|
|
2004-10-11 07:47:51 +02:00
|
|
|
header('Location: ' . get_settings('siteurl') . '/wp-login.php?redirect_to=' . urlencode($_SERVER['REQUEST_URI']));
|
2004-02-09 10:56:57 +01:00
|
|
|
exit();
|
|
|
|
}
|
|
|
|
|
2004-10-17 14:42:18 +02:00
|
|
|
?>
|