| [ Index ] |
PHP Cross Reference of WordPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Creates the password cookie and redirects back to where the 4 * visitor was before. 5 * 6 * @package WordPress 7 */ 8 9 /** Make sure that the WordPress bootstrap has run before continuing. */ 10 require( dirname( __FILE__ ) . '/wp-load.php'); 11 12 if ( empty( $wp_hasher ) ) { 13 require_once ( ABSPATH . 'wp-includes/class-phpass.php'); 14 // By default, use the portable hash from phpass 15 $wp_hasher = new PasswordHash(8, true); 16 } 17 18 // 10 days 19 setcookie( 'wp-postpass_' . COOKIEHASH, $wp_hasher->HashPassword( stripslashes( $_POST['post_password'] ) ), time() + 864000, COOKIEPATH ); 20 21 wp_safe_redirect( wp_get_referer() ); 22 exit;
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Sat Feb 4 03:55:55 2012 | Hosted by follow the white rabbit. |