帝国cms增加自定义列表,使用自己的php代码

列表的二次开发

<?php
require('../../class/connect.php');
require('../../class/db_sql.php');
require('../../class/functions.php');
require('../../class/t_functions.php');
require('../../data/dbcache/class.php');
require '../'.LoadLang('pub/fun.php');
$link=db_connect();
$empire=new mysqlquery();
$tempid = 1;   //封面模板id
if(empty($tempid))
{
    printerror('ErrorUrl','',1);
}
$classtemp=GetClassTemp($tempid);
$dttempname='classtemp';
$string=DtNewsBq($dttempname,$classtemp,0);
$string=str_replace('[!--newsnav--]',$url,$string);//位置导航
$string=Class_ReplaceSvars($string,$url,$classid,$pagetitle,$pagekey,$pagedes,$classimg,$addr,0);
$string=str_replace('[!--page.stats--]','',$string);
//封面:缓存
echo stripSlashes($string);
db_close();
$empire=null;

© 版权声明
THE END
喜欢就支持一下吧
点赞8
评论 抢沙发

请登录后发表评论

    暂无评论内容