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

代码如下:

 1 <?php 
 2 require("../e/class/connect.php"); 
 3 if(!defined('InEmpireCMS')) 
 4 { 
 5 exit(); 
 6 } 
 7 require("../e/class/db_sql.php"); 
 8 require("../e/class/q_functions.php"); 
 9 
10 $link=db_connect(); 
11 $empire=new mysqlquery(); 
12 $headr=$empire->fetch1("select varvalue from {$dbtbpre}enewstempvar where myvar='header' limit 1"); 
13 ?>

在调用的地方直接:

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

 

相关文章:

  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
  • 2021-05-21
  • 2021-12-05
  • 2021-06-25
猜你喜欢
  • 2022-12-23
  • 2021-07-31
  • 2021-11-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案