2003-08-21 00:59:20 +02:00
|
|
|
<?php
|
2004-12-16 03:57:05 +01:00
|
|
|
require( dirname(__FILE__) . '/wp-config.php');
|
2004-10-10 19:46:50 +02: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);
|
|
|
|
|
2006-06-24 23:14:58 +02:00
|
|
|
wp_redirect(wp_get_referer());
|
2003-08-21 00:59:20 +02:00
|
|
|
?>
|