2003-08-21 00:59:20 +02:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
This is just a very simple script to set a cookie with a posted password and redirect back from whence the browser came.
|
|
|
|
It doesn't need to connect to the DB, or do anything fancy at all. Yum.
|
|
|
|
-- Matt
|
|
|
|
*/
|
2003-12-11 01:22:36 +01:00
|
|
|
require(dirname(__FILE__) . '/wp-config.php');
|
2003-10-20 22:53:13 +02:00
|
|
|
setcookie('wp-postpass_'.$cookiehash, $HTTP_POST_VARS['post_password'], time()+60*60*24*30);
|
2003-08-21 00:59:20 +02:00
|
|
|
header('Location: ' . $HTTP_SERVER_VARS['HTTP_REFERER']);
|
|
|
|
|
|
|
|
?>
|