⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 area.inc.php

📁 phpcms2007很好的cms内容管理系统,操作方便
💻 PHP
字号:
<?php 
defined('IN_PHPCMS') or exit('Access Denied');
require_once PHPCMS_ROOT.'/module/'.$mod.'/include/common.inc.php';
$areaid = intval($areaid);
$areaid or showmessage($LANG['illegal_parameters'],$PHP_SITEURL);

if(!array_key_exists($areaid, $AREA)) showmessage($LANG['sorry_not_exist_area'],'goback');
$ARE = cache_read('area_'.$areaid.'.php');
@extract($ARE);

$head['title'] = $areaname.'-'.$CHA['channelname'].'-'.$CHA['seo_title'];
$head['keywords'] = $seo_keywords.','.$CHA['seo_keywords'];
$head['description'] = $seo_description.'-'.$CHA['seo_description'];

$position = areapos($areaid);
$childareas = subarea($channelid);

if(is_array($childareas))
{
	foreach($childareas as $i=>$area)
	{
		$subareas[$i] = subarea($channelid,$area['areaid']);
	}
}

$skindir = $skinid ? PHPCMS_PATH.'templates/'.$CONFIG['defaulttemplate'].'/skins/'.$skinid : $skindir;
if($child==1)
{
	$arrchildid = subarea($channelid,$areaid);
	$templateid = $templateid ? $templateid : 'area' ;
}
else
{	
	$page = isset($page) ? intval($page) : 1;
	$templateid = $listtemplateid ? $listtemplateid : 'area_list';
}
$childcats = subcat($channelid, 0, 'list');
if(is_array($childcats))
{
	foreach($childcats as $i=>$cat)
	{
		$subcats[$i] = subcat($channelid,$cat['catid']);
	}
}
include template($mod,$templateid);
if(!$enablepurview) phpcache();
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -