[ Index ]

PHP Cross Reference of Documentation Wordpress

title

Body

[close]

/ -> wp-pass.php (source)

   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  // 10 days
  13  setcookie('wp-postpass_' . COOKIEHASH, stripslashes( $_POST['post_password'] ), time() + 864000, COOKIEPATH);
  14  
  15  wp_safe_redirect(wp_get_referer());
  16  exit;
  17  ?>


Développement Wordpress responsive design Montréal
Generated: Thu Feb 21 16:28:30 2013 Cross-referenced by PHPXref 0.7.1