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