📄 index.php
字号:
<?php
require './include/common.inc.php';
$types = $search->get_type();
if(isset($q)) $q = $search->strip($q);
if($q)
{
$order = isset($order) ? intval($order) : 0;
$page = max(intval($page), 1);
$search->set($M['titlelen'], $M['descriptionlen'], 'red');
$search->set_type($type);
$q = new_htmlspecialchars(strip_tags($q));
$data = $search->q($q, $order, $page, $PHPCMS['search_pagesize']);
$pages = $search->pages;
$total = $search->total;
$usedtime = usedtime();
$template = 'list';
$head['title'] = $q.'-'.$PHPCMS['sitename'];
$head['keywords'] = $q.','.$PHPCMS['keywords'];
$head['description'] = $q.','.$PHPCMS['description'];
}
else
{
$template = 'index';
$head['title'] = '鎼滅储棣栭〉-'.$PHPCMS['sitename'];
$head['keywords'] = $PHPCMS['keywords'];
$head['description'] = $PHPCMS['description'];
}
include template($mod, $template);
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -