Changeset 601 for trunk/wp-pass.php
- Timestamp:
- 12/11/2003 12:22:36 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-pass.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-pass.php
r458 r601 1 1 <?php 2 3 2 /* 4 3 This is just a very simple script to set a cookie with a posted password and redirect back from whence the browser came. … … 6 5 -- Matt 7 6 */ 8 include_once('wp-config.php');7 require(dirname(__FILE__) . '/wp-config.php'); 9 8 setcookie('wp-postpass_'.$cookiehash, $HTTP_POST_VARS['post_password'], time()+60*60*24*30); 10 9 header('Location: ' . $HTTP_SERVER_VARS['HTTP_REFERER']);
Note: See TracChangeset
for help on using the changeset viewer.