📄 index.php
字号:
<?php
defined('IN_PHPCMS') or exit('Access Denied');
if($CHA['ishtml'] == 0) return FALSE;
$head['title'] = $CHA['channelname'];
$head['keywords'] = $CHA['seo_keywords'];
$head['description'] = $CHA['seo_description'];
$childcats = subcat($channelid, 0, 'list');
if(is_array($childcats))
{
foreach($childcats as $i=>$cat)
{
$subcats[$i] = subcat($channelid,$cat['catid']);
}
}
$mainareas = subarea($channelid);
$templateid = $CHA['templateid'] ? $CHA['templateid'] : 'index';
$filename = PHPCMS_ROOT.'/'.$CHA['channeldir'].'/'.$PHPCMS['index'].'.'.$PHPCMS['fileext'];
ob_start();
include template($mod, $templateid);
$data = ob_get_contents();
ob_clean();
file_put_contents($filename, $data);
@chmod($filename, 0777);
return TRUE;
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -