2003-08-21 00:59:20 +02:00
|
|
|
<?php
|
2008-05-25 17:50:15 +02:00
|
|
|
/**
|
|
|
|
* Creates the password cookie and redirects back to where the
|
|
|
|
* visitor was before.
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
*/
|
|
|
|
|
2009-04-20 23:50:29 +02:00
|
|
|
/** Make sure that the WordPress bootstrap has run before continuing. */
|
2008-05-21 07:59:27 +02:00
|
|
|
require( dirname(__FILE__) . '/wp-load.php');
|
2004-10-10 19:46:50 +02:00
|
|
|
|
|
|
|
// 10 days
|
2011-09-19 06:17:26 +02:00
|
|
|
setcookie('wp-postpass_' . COOKIEHASH, stripslashes( $_POST['post_password'] ), time() + 864000, COOKIEPATH);
|
2004-10-10 19:46:50 +02:00
|
|
|
|
2007-09-19 00:23:16 +02:00
|
|
|
wp_safe_redirect(wp_get_referer());
|
2010-12-09 19:02:54 +01:00
|
|
|
exit;
|