Make WordPress Core

source: trunk/wp-pass.php @ 1575

Last change on this file since 1575 was 1405, checked in by rboren, 21 years ago

Get our slashes straight.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 416 bytes
Line 
1<?php
2/*
3  This is just a very simple script to set a cookie with a posted password and redirect back from whence the browser came.
4  It doesn't need to connect to the DB, or do anything fancy at all. Yum.
5  -- Matt
6*/
7require(dirname(__FILE__) . '/wp-config.php');
8setcookie('wp-postpass_'.$cookiehash, stripslashes($_POST['post_password']), time()+60*60*24*30);
9header('Location: ' . $_SERVER['HTTP_REFERER']);
10
11?>
Note: See TracBrowser for help on using the repository browser.