📄 index.php
字号:
<?php
require './include/common.inc.php';
$announceid = isset($announceid) ? intval($announceid) : 0;
$sql = $announceid ? " AND announceid=$announceid " : " ORDER BY announceid DESC LIMIT 0,1";
$today = date('Y-m-d');
$r = $db->get_one("SELECT * FROM ".TABLE_ANNOUNCE." WHERE passed=1 AND (todate='0000-00-00' OR todate>='$today') $sql");
if(!$r) showmessage($LANG['not_exist_announce']);
extract($r);
if($todate == '0000-00-00') $todate = $LANG['indefinitely'];
$db->query("UPDATE ".TABLE_ANNOUNCE." SET hits=hits+1 WHERE announceid=$announceid");
include template($mod, 'index');
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -