2003-08-20 18:59:20 -04:00
|
|
|
<?php
|
2004-12-15 21:57:05 -05:00
|
|
|
require( dirname(__FILE__) . '/wp-config.php');
|
2004-10-10 13:46:50 -04:00
|
|
|
|
|
|
|
if ( get_magic_quotes_gpc() )
|
|
|
|
$_POST['post_password'] = stripslashes($_POST['post_password']);
|
|
|
|
|
|
|
|
// 10 days
|
|
|
|
setcookie('wp-postpass_' . COOKIEHASH, $_POST['post_password'], time() + 864000, COOKIEPATH);
|
|
|
|
|
2004-04-20 18:56:47 -04:00
|
|
|
header('Location: ' . $_SERVER['HTTP_REFERER']);
|
2003-08-20 18:59:20 -04:00
|
|
|
|
|
|
|
?>
|