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');
|
2004-06-11 04:02:40 -04:00
|
|
|
setcookie('wp-postpass_'.$cookiehash, stripslashes($_POST['post_password']), time()+60*60*24*30);
|
2004-04-20 18:56:47 -04:00
|
|
|
header('Location: ' . $_SERVER['HTTP_REFERER']);
|
2003-08-20 18:59:20 -04:00
|
|
|
|
|
|
|
?>
|