5c9a79c506
git-svn-id: https://develop.svn.wordpress.org/trunk@323 602fd350-edb4-49c9-b593-d223f7449a82
12 lines
362 B
PHP
12 lines
362 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
|
|
*/
|
|
|
|
setcookie('wp-postpass', $HTTP_POST_VARS['post_password'], time()+60*60*24*30);
|
|
header('Location: ' . $HTTP_SERVER_VARS['HTTP_REFERER']);
|
|
|
|
?>
|