diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-07-12 11:27:54 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-07-12 11:27:54 +0000 |
commit | 4f3bce79bfb5851cef9e7bc655c91bb3093cc401 (patch) | |
tree | 10a0991fddeb0e075d7fa46e2b40e5dbc64d1e88 /wp-inst/wp-pass.php | |
download | wordpress-mu-4f3bce79bfb5851cef9e7bc655c91bb3093cc401.tar.gz wordpress-mu-4f3bce79bfb5851cef9e7bc655c91bb3093cc401.tar.xz wordpress-mu-4f3bce79bfb5851cef9e7bc655c91bb3093cc401.zip |
Initial Import
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-pass.php')
-rw-r--r-- | wp-inst/wp-pass.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/wp-inst/wp-pass.php b/wp-inst/wp-pass.php new file mode 100644 index 0000000..d7d23a6 --- /dev/null +++ b/wp-inst/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 |