mirror of
https://github.com/WordPress/WordPress.git
synced 2024-08-26 07:43:04 +02:00
git-svn-id: http://svn.automattic.com/wordpress/trunk@18712 1a063a9b-81f0-0310-95a4-ce76da25c4cd
18 lines
413 B
PHP
18 lines
413 B
PHP
<?php
|
|
/**
|
|
* Creates the password cookie and redirects back to where the
|
|
* visitor was before.
|
|
*
|
|
* @package WordPress
|
|
*/
|
|
|
|
/** Make sure that the WordPress bootstrap has run before continuing. */
|
|
require( dirname(__FILE__) . '/wp-load.php');
|
|
|
|
// 10 days
|
|
setcookie('wp-postpass_' . COOKIEHASH, stripslashes( $_POST['post_password'] ), time() + 864000, COOKIEPATH);
|
|
|
|
wp_safe_redirect(wp_get_referer());
|
|
exit;
|
|
?>
|