diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-06-22 18:31:50 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-06-22 18:31:50 +0000 |
commit | d48e85e0ac5e675ca33fac173f30c75403d1033f (patch) | |
tree | 1164430fa3b83a4d9283961b09c1576f2885e6b2 /wp-pass.php | |
parent | 086dcde66603301531efc6d8087bd06d0546f148 (diff) | |
download | wordpress-mu-d48e85e0ac5e675ca33fac173f30c75403d1033f.tar.gz wordpress-mu-d48e85e0ac5e675ca33fac173f30c75403d1033f.tar.xz wordpress-mu-d48e85e0ac5e675ca33fac173f30c75403d1033f.zip |
Moved everything in wp-inst down a directory.
Uses's Ryan Boren's htaccess rules and mods
If you're upgrading, try this on a test server first!
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@591 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-pass.php')
-rw-r--r-- | wp-pass.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/wp-pass.php b/wp-pass.php new file mode 100644 index 0000000..d7d23a6 --- /dev/null +++ b/wp-pass.php @@ -0,0 +1,11 @@ +<?php +require( dirname(__FILE__) . '/wp-config.php'); + +if ( get_magic_quotes_gpc() ) + $_POST['post_password'] = stripslashes($_POST['post_password']); + +// 10 days +setcookie('wp-postpass_' . COOKIEHASH, $_POST['post_password'], time() + 864000, COOKIEPATH); + +wp_redirect($_SERVER['HTTP_REFERER']); +?>
\ No newline at end of file |