ChangeClass.php 848 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. require("../class/connect.php");
  3. require("../class/db_sql.php");
  4. $link=db_connect();
  5. $empire=new mysqlquery();
  6. //关闭投稿
  7. if($public_r['addnews_ok'])
  8. {
  9. printerror("CloseQAdd","",1);
  10. }
  11. //验证本时间允许操作
  12. eCheckTimeCloseDo('info');
  13. //验证IP
  14. eCheckAccessDoIp('postinfo');
  15. $mid=(int)$_GET['mid'];
  16. if(empty($mid))
  17. {
  18. printerror("ErrorUrl","",1);
  19. }
  20. $mr=$empire->fetch1("select mid,qenter,qmname,tbname from {$dbtbpre}enewsmod where mid='$mid'");
  21. if(!$mr['mid']||!$mr['qenter']||InfoIsInTable($mr['tbname']))
  22. {
  23. printerror("ErrorUrl","",1);
  24. }
  25. $muserid=(int)getcvar('mluserid');
  26. $musername=RepPostVar(getcvar('mlusername'));
  27. if(empty($musername))
  28. {
  29. $musername="游客";
  30. }
  31. $classjs=$public_r['newsurl']."d/js/js/addinfo".$mid.".js";
  32. //导入模板
  33. require(ECMS_PATH.'e/template/DoInfo/ChangeClass.php');
  34. db_close();
  35. $empire=null;
  36. ?>