You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
848 B
36 lines
848 B
<?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;
|
|
?>
|