mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-24 10:09:47 +01:00
45fe889b00
git-svn-id: http://svn.automattic.com/wordpress/trunk@458 1a063a9b-81f0-0310-95a4-ce76da25c4cd
12 lines
405 B
PHP
12 lines
405 B
PHP
<?php
|
|
|
|
/*
|
|
This is just a very simple script to set a cookie with a posted password and redirect back from whence the browser came.
|
|
It doesn't need to connect to the DB, or do anything fancy at all. Yum.
|
|
-- Matt
|
|
*/
|
|
include_once('wp-config.php');
|
|
setcookie('wp-postpass_'.$cookiehash, $HTTP_POST_VARS['post_password'], time()+60*60*24*30);
|
|
header('Location: ' . $HTTP_SERVER_VARS['HTTP_REFERER']);
|
|
|
|
?>
|