2003-08-20 18:59:20 -04: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-10 19:22:36 -05:00
|
|
|
require(dirname(__FILE__) . '/wp-config.php');
|
2003-10-20 16:53:13 -04:00
|
|
|
setcookie('wp-postpass_'.$cookiehash, $HTTP_POST_VARS['post_password'], time()+60*60*24*30);
|
2003-08-20 18:59:20 -04:00
|
|
|
header('Location: ' . $HTTP_SERVER_VARS['HTTP_REFERER']);
|
|
|
|
|
|
|
|
?>
|