Last change
on this file since 1282 was
1108,
checked in by saxmatt, 21 years ago
|
Changed to superglobals, and eliminated $use_cache (since we always do).
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
402 bytes
|
Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | This is just a very simple script to set a cookie with a posted password and redirect back from whence the browser came. |
---|
4 | It doesn't need to connect to the DB, or do anything fancy at all. Yum. |
---|
5 | -- Matt |
---|
6 | */ |
---|
7 | require(dirname(__FILE__) . '/wp-config.php'); |
---|
8 | setcookie('wp-postpass_'.$cookiehash, $_POST['post_password'], time()+60*60*24*30); |
---|
9 | header('Location: ' . $_SERVER['HTTP_REFERER']); |
---|
10 | |
---|
11 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.