在php代码中调用帝国cms头部变量temp.header

 更新时间:2013年8月3日 22:14  点击:535

直接上代码

<?php
require("../e/class/connect.php");
if(!defined('InEmpireCMS'))
{
	exit();
}
require("../e/class/db_sql.php");
require("../e/class/q_functions.php");

$link=db_connect();
$empire=new mysqlquery();
$headr=$empire->fetch1("select varvalue from {$dbtbpre}enewstempvar where myvar='header' limit 1");
?>

在调用的地方直接

<?=stripslashes($headr[0])?>


[!--infotagslink--]

相关文章