⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wp-pass.php

📁 是一个优秀的语义个人发布平台
💻 PHP
字号:
<?php
/*
  This is just a very simple script to set a cookie with a posted password and redirect back from whence the browser came.
  It doesn't need to connect to the DB, or do anything fancy at all. Yum.
  -- Matt
*/
require(dirname(__FILE__) . '/wp-config.php');
setcookie('wp-postpass_'.$cookiehash, $_POST['post_password'], time()+60*60*24*30);
header('Location: ' . $_SERVER['HTTP_REFERER']);

?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -