unpublish_story.php

来自「php源码 php源码参考」· PHP 代码 · 共 17 行

PHP
17
字号
<?php  // unpublish_story.php -- action a release, go back to release.php  include_once('include_fns.php');  $story = $_REQUEST['story'];  if(check_permission($_SESSION['auth_user'], $story))  {    $handle = db_connect();    $query = "update stories set published = null              where id = $story";    $result = $handle->query($query);  }  header('Location: '.$_SERVER['HTTP_REFERER']);?>

⌨️ 快捷键说明

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