special_show.php

来自「phpcms网站管理系统  很不错的 有需要的就下载看看八 」· PHP 代码 · 共 39 行

PHP
39
字号
<?php
/*
*####################################################
* PHPCMS v3.0.0 - Advanced Content Manage System.
* Copyright (c) 2005-2006 phpcms.cn
*
* For further information go to http://www.phpcms.cn/
* This copyright notice MUST stay intact for use.
*####################################################
*/
if($_CHA[htmlcreatetype]==0 || $_CHA[htmlcreatetype]==2) return FALSE;

$specialid = intval($specialid);
if(!$specialid) return FALSE;

$special = $db->get_one("SELECT * FROM ".TABLE_SPECIAL." WHERE specialid=$specialid");
@extract($special);

$skindir = $skinid ? PHPCMS_PATH."skin/".$skinid : $skindir;

$adddate=date('Y-m-d',$addtime);
$specialpic = get_imgurl($specialpic);
$specialbanner = get_imgurl($specialbanner);
$position = "<a href='".PHPCMS_PATH."'>首页</a> >> <a href='".$channelurl."'>".$channelname."</a> >> <a href='".$channelurl."special/'>专题</a>";

$meta_title = $specialname;
$meta_keywords = $meta_keywords ? $meta_keywords : strip_tags($_CHA['meta_keywords']);
$meta_description = $meta_description ? $meta_description : strip_tags($introduce);

ob_start();
include template($templateid,$_CHA['module'],"special_show");
$data = ob_get_contents();
ob_clean();
$p->set_type("path");
$filepath = $p->get_specialitemurl($specialid,$addtime);
$f->create(dirname($filepath));
file_write($filepath,$data);
return TRUE;
?>

⌨️ 快捷键说明

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