forked from markjaquith/WordPress
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://svn.automattic.com/wordpress/trunk@323 1a063a9b-81f0-0310-95a4-ce76da25c4cd
- Loading branch information
saxmatt
committed
Aug 20, 2003
1 parent
f3d1d48
commit d41eaab
Showing
2 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?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']); | ||
|
||
?> |