(0 . 0)(1 . 19)
160467 <?php
160468 /**
160469 * Creates the password cookie and redirects back to where the
160470 * visitor was before.
160471 *
160472 * @package WordPress
160473 */
160474
160475 /** Make sure that the WordPress bootstrap has ran before continuing. */
160476 require( dirname(__FILE__) . '/wp-load.php');
160477
160478 if ( get_magic_quotes_gpc() )
160479 $_POST['post_password'] = stripslashes($_POST['post_password']);
160480
160481 // 10 days
160482 setcookie('wp-postpass_' . COOKIEHASH, $_POST['post_password'], time() + 864000, COOKIEPATH);
160483
160484 wp_safe_redirect(wp_get_referer());
160485 ?>