index.php
828 Bytes
<?php
require("../../class/connect.php");
require("../../class/db_sql.php");
require("../../class/q_functions.php");
require("../../data/dbcache/class.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
$id=(int)$_GET['id'];
$classid=(int)$_GET['classid'];
if(!$id||!$classid||!$class_r[$classid][tbname]||InfoIsInTable($class_r[$classid][tbname]))
{
printerror("ErrorUrl","history.go(-1)",1);
}
$r=$empire->fetch1("select title,isurl,titleurl,classid,id from {$dbtbpre}ecms_".$class_r[$classid][tbname]." where id='$id' limit 1");
if(empty($r['id'])||$r['classid']!=$classid)
{
printerror("ErrorUrl","history.go(-1)",1);
}
//分類
$cid=(int)$_GET['cid'];
$titleurl=sys_ReturnBqTitleLink($r);
//導入模板
require(ECMS_PATH.'e/template/public/report.php');
db_close();
$empire=null;
?>