代码拉取完成,页面将自动刷新
<?php
require_once 'include/common.inc.php';
require_once 'include/article.class.php';
require_once 'include/keywords.class.php';
session_start();
$name=$_GET["name"];
if(strpos($name,"http://")===0)
{
header('HTTP/1.1 301 Moved Permanently');
header("Location:".$name);
}
if(!preg_match("/^.{1,100}$/",$name))
{
header("HTTP/1.1 404 Not Found");
header("Status: 404 Not Found");
}
$uid = $_SESSION["adminid"];
$uid = (isset($uid) && is_numeric($uid)) ? $uid : 0;
$cururl = "http://".$_SERVER["HTTP_HOST"]. $_SERVER["REQUEST_URI"];
$article = null;
if($uid > 0)
{
$article = $articledata->GetArticleByName($name,true);
}
else
{
$article = $articledata->GetArticleByName($name,false);
}
if($article == null)
{
header("HTTP/1.1 404 Not Found");
header("Status: 404 Not Found");
exit('<center style="margin:50px;"><h1>404 Not Found</h1></center>');
}
$article->content = mixkeyword($article->content);
$tempinfo->assign("article",$article);
$categorylist = $categorydata->GetCategoryList(null,'article',0,'');
$category = $categorydata->GetCategory($article->cid);
$tempinfo->assign("category",$category);
if($parents = $categorydata->GetParentCategory($article->cid,$categorylist)){
$parents = array_reverse($parents);
foreach($parents as $key => $val){
$tempinfo->Crumb($val->name, 'category', $val->filename);
}
}
if(!$tempinfo->template_exists($article->templets))
{
exit("没有找到合适的模板,请与管理员联系!");
}
$articledata->UpdateCount($article->aid);
$tempinfo->display($article->templets);
?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。