Logo
Explore Help
Sign In
IntenseWebs/WordPress
3
0
Fork 0
You've already forked WordPress
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
6452ec1bbc7369fe757bb0cc9108fe3ce4087e43
WordPress/wp-pass.php

11 lines
299 B
PHP
Raw Normal View History

Password protected posts! git-svn-id: http://svn.automattic.com/wordpress/trunk@323 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2003-08-20 22:59:20 +00:00
<?php
Comments refactoring and cleanup git-svn-id: http://svn.automattic.com/wordpress/trunk@1964 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-12-16 02:57:05 +00:00
require( dirname(__FILE__) . '/wp-config.php');
Cookie path fix: http://wordpress.org/support/3/14408 git-svn-id: http://svn.automattic.com/wordpress/trunk@1767 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-10-10 17:46:50 +00:00
if ( get_magic_quotes_gpc() )
$_POST['post_password'] = stripslashes($_POST['post_password']);
// 10 days
setcookie('wp-postpass_' . COOKIEHASH, $_POST['post_password'], time() + 864000, COOKIEPATH);
Introducing wp_redirect(), first cut. http://mosquito.wordpress.org/view.php?id=592 Props: Toby Simmons git-svn-id: http://svn.automattic.com/wordpress/trunk@2436 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-03-13 16:36:09 +00:00
wp_redirect($_SERVER['HTTP_REFERER']);
Password protected posts! git-svn-id: http://svn.automattic.com/wordpress/trunk@323 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2003-08-20 22:59:20 +00:00
?>
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 57ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API