【php开源代码栏目提醒】:以下是网学会员为您推荐的php开源代码-publish_story.php,希望本篇文章对您学习有所帮助。
<?php
// publish_story.php -- action a release, go back to publish.php
include_once('include_fns.php');
$handle = db_connect();
$now = time();
$story = $_REQUEST['story'];
if(check_per
mission($_SESSION['auth_user'], $story))
{
$query = "update stories set published = $now
where id = $story";
$result = $handle->query($query);
}
header('Location: '.$_SERVER['HTTP_REFERER']);
?>