summaryrefslogtreecommitdiffstats
path: root/wp-pass.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-pass.php')
-rw-r--r--wp-pass.php11
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