mp-wp_genesis 1 <?php
mp-wp_genesis 2 /**
mp-wp_genesis 3 * Creates the password cookie and redirects back to where the
mp-wp_genesis 4 * visitor was before.
mp-wp_genesis 5 *
mp-wp_genesis 6 * @package WordPress
mp-wp_genesis 7 */
mp-wp_genesis 8
mp-wp_genesis 9 /** Make sure that the WordPress bootstrap has ran before continuing. */
mp-wp_genesis 10 require( dirname(__FILE__) . '/wp-load.php');
mp-wp_genesis 11
mp-wp_genesis 12 if ( get_magic_quotes_gpc() )
mp-wp_genesis 13 $_POST['post_password'] = stripslashes($_POST['post_password']);
mp-wp_genesis 14
mp-wp_genesis 15 // 10 days
mp-wp_genesis 16 setcookie('wp-postpass_' . COOKIEHASH, $_POST['post_password'], time() + 864000, COOKIEPATH);
mp-wp_genesis 17
mp-wp_genesis 18 wp_safe_redirect(wp_get_referer());
mp-wp_genesis 19 ?>