请看这段代码:
<?php
include_once("include/mysql_config.inc.php"); //调用mysql操作类
include_once("include/config.inc.php"); //调用配置文件
include_once("include/function.inc.php"); //调用常用函数库
include_once("include/blog.inc.php"); //调用blog操作类
$blog = new blog($db);
$aId=($_REQUEST['aId']>0)?$_REQUEST['aId']:0;
$blogSetting = $blog->getSetting();//获得BLOG设置
$blogCat = $blog->getCat();
$bokeList = $blog->getList($cId,0,10,"AND bokeUrl<>''","aId DESC"); //获得播客列表
$blogList = $blog->getList($cId,0,10,"","aId DESC");//获得博客列表
//$blogDate = $blog->getBlogDate();//获得当月链接 //此模块还在开发中
$blogReview = $blog->getReview(0,'','');//获得最新评论
$blogLink = $blog->getLink();//获得链接
$blogGuest = $blog->getGuest(0,10);//获得最新留言*/
$tpl = & myBlogtpl();
$tpl->parse($blogSetting['sKin']."/index.html"); //获得模版页面
$tpl->set(
array(
"blogSetting"=>$blogSetting,
"blogCat"=>$blogCat,
"bokeList"=>$bokeList,
"blogList"=>$blogList,
"blogNewList"=>$blogNewList,
"blogDate"=>$blogDate,
"blogReview"=>$blogReview,
"blogLink"=>$blogLink,
"blogGuest"=>$blogGuest,
"aid" => $aId,
)
);
$tpl->output();
?>
红色的字是什么意思? 4个include_once里面没有myBlogtpl()这个函数, 这么写是什么意思,还有前面的&。我是初学者,谢谢大家。
<?php
include_once("include/mysql_config.inc.php"); //调用mysql操作类
include_once("include/config.inc.php"); //调用配置文件
include_once("include/function.inc.php"); //调用常用函数库
include_once("include/blog.inc.php"); //调用blog操作类
$blog = new blog($db);
$aId=($_REQUEST['aId']>0)?$_REQUEST['aId']:0;
$blogSetting = $blog->getSetting();//获得BLOG设置
$blogCat = $blog->getCat();
$bokeList = $blog->getList($cId,0,10,"AND bokeUrl<>''","aId DESC"); //获得播客列表
$blogList = $blog->getList($cId,0,10,"","aId DESC");//获得博客列表
//$blogDate = $blog->getBlogDate();//获得当月链接 //此模块还在开发中
$blogReview = $blog->getReview(0,'','');//获得最新评论
$blogLink = $blog->getLink();//获得链接
$blogGuest = $blog->getGuest(0,10);//获得最新留言*/
$tpl = & myBlogtpl();
$tpl->parse($blogSetting['sKin']."/index.html"); //获得模版页面
$tpl->set(
array(
"blogSetting"=>$blogSetting,
"blogCat"=>$blogCat,
"bokeList"=>$bokeList,
"blogList"=>$blogList,
"blogNewList"=>$blogNewList,
"blogDate"=>$blogDate,
"blogReview"=>$blogReview,
"blogLink"=>$blogLink,
"blogGuest"=>$blogGuest,
"aid" => $aId,
)
);
$tpl->output();
?>
红色的字是什么意思? 4个include_once里面没有myBlogtpl()这个函数, 这么写是什么意思,还有前面的&。我是初学者,谢谢大家。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货