mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-25 18:48:57 +01:00
10c6b7ea9c
git-svn-id: http://svn.automattic.com/wordpress/trunk@1108 1a063a9b-81f0-0310-95a4-ce76da25c4cd
11 lines
402 B
PHP
11 lines
402 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
|
|
*/
|
|
require(dirname(__FILE__) . '/wp-config.php');
|
|
setcookie('wp-postpass_'.$cookiehash, $_POST['post_password'], time()+60*60*24*30);
|
|
header('Location: ' . $_SERVER['HTTP_REFERER']);
|
|
|
|
?>
|