ChangeClass.php 883 Bytes
<?php
require("../class/connect.php");
require("../class/db_sql.php");
$link=db_connect();
$empire=new mysqlquery();
//關閉投稿
if($public_r['addnews_ok'])
{
	printerror("CloseQAdd","",1);
}
//驗證本時間允許操作
eCheckTimeCloseDo('info');
//驗證IP
eCheckAccessDoIp('postinfo');
$mid=(int)$_GET['mid'];
if(empty($mid))
{
	printerror("ErrorUrl","",1);
}
$mr=$empire->fetch1("select mid,qenter,qmname,tbname from {$dbtbpre}enewsmod where mid='$mid'");
if(!$mr['mid']||!$mr['qenter']||InfoIsInTable($mr['tbname']))
{
	printerror("ErrorUrl","",1);
}
$muserid=(int)getcvar('mluserid');
$musername=RepPostVar(getcvar('mlusername'));
if(empty($musername))
{
	$musername="遊客";
}
$classjs=$public_r['newsurl']."d/js/js/addinfo".$mid.".js";
//導入模板
require(ECMS_PATH.'e/template/DoInfo/ChangeClass.php');
db_close();
$empire=null;
?>