show.inc.php

来自「采用模块化开发」· PHP 代码 · 共 40 行

PHP
40
字号
<?php 
defined('IN_PHPCMS') or exit('Access Denied');

require PHPCMS_ROOT.'/module/'.$mod.'/include/common.inc.php';
require PHPCMS_ROOT.'/admin/include/special.class.php';

$specialid = intval($specialid);
if($specialid < 1) showmessage($LANG['illegal_parameters']);

$spe = new special($channelid, $specialid);
$special = $spe->get_info();
if(!$special) showmessage($LANG['specail_topic_not_exist']);

if($special['parentid'] > 0 || $special['arrchildid'] == '')
{
	$subspecialid = $specialid;
    $subspecialname = $special['specialname'];
	$sublinkurl = $special['linkurl'];
	$special = $spe->get_info($special['parentid']);
	$special['linkurl'] = linkurl($special['linkurl']);
    $position = '<a href="'.$special['linkurl'].'">'.$special['specialname'].'</a> >> '.$subspecialname;
}
else
{
	$subspecialid = 0;
    $position = $special['specialname'];
}

extract($special);

$specialpic = imgurl($specialpic);
$specialbanner = imgurl($specialbanner);

$head['title'] = $CHA['channelname'];
$head['keywords'] = $CHA['seo_keywords'];
$head['description'] = $CHA['seo_description'];

if(!$templateid) $templateid = 'special_show';
include template($mod, $templateid);
?>

⌨️ 快捷键说明

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