index.php 842 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. require("../../class/connect.php");
  3. require("../../class/db_sql.php");
  4. require("../../class/q_functions.php");
  5. require("../../data/dbcache/class.php");
  6. $link=db_connect();
  7. $empire=new mysqlquery();
  8. $editor=1;
  9. eCheckCloseMods('error');//关闭模块
  10. $id=(int)$_GET['id'];
  11. $classid=(int)$_GET['classid'];
  12. if(!$id||!$classid||!$class_r[$classid][tbname]||InfoIsInTable($class_r[$classid][tbname]))
  13. {
  14. printerror("ErrorUrl","history.go(-1)",1);
  15. }
  16. $r=$empire->fetch1("select title,isurl,titleurl,classid,id from {$dbtbpre}ecms_".$class_r[$classid][tbname]." where id='$id' limit 1");
  17. if(empty($r['id'])||$r['classid']!=$classid)
  18. {
  19. printerror("ErrorUrl","history.go(-1)",1);
  20. }
  21. //分类
  22. $cid=(int)$_GET['cid'];
  23. $titleurl=sys_ReturnBqTitleLink($r);
  24. //导入模板
  25. require(ECMS_PATH.'e/template/public/report.php');
  26. db_close();
  27. $empire=null;
  28. ?>