相关代码 |
|
// 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_permission($_SESSION['auth_user'], $story)) { $query = "update stories set published = $now where id = $story"; $result = $handle->query($query); } header('Location: '.$_SERVER['HTTP_REFERER']); ?>
相关资源 |
|