enews.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. define('EmpireCMSAdmin','1');
  3. require("../class/connect.php");
  4. require("../class/db_sql.php");
  5. require("../class/functions.php");
  6. require("../class/delpath.php");
  7. require("../class/copypath.php");
  8. require LoadLang("pub/fun.php");
  9. require("../class/t_functions.php");
  10. require("../data/dbcache/class.php");
  11. require("../data/dbcache/MemberLevel.php");
  12. $link=db_connect();
  13. $empire=new mysqlquery();
  14. $enews=$_POST['enews'];
  15. if(empty($enews))
  16. {$enews=$_GET['enews'];}
  17. //验证用户
  18. $lur=is_login();
  19. $logininid=$lur['userid'];
  20. $loginin=$lur['username'];
  21. $loginrnd=$lur['rnd'];
  22. $loginlevel=$lur['groupid'];
  23. $loginadminstyleid=$lur['adminstyleid'];
  24. hCheckEcmsRHash();
  25. @set_time_limit(0);
  26. $incftp=0;
  27. if($public_r['phpmode'])
  28. {
  29. include("../class/ftp.php");
  30. $incftp=1;
  31. }
  32. //防采集
  33. if($public_r['opennotcj'])
  34. {
  35. @include("../data/dbcache/notcj.php");
  36. }
  37. //设置访问端
  38. $moreportpid=0;
  39. if($enews=='ChangeEnewsData')
  40. {
  41. $moreportpid=Moreport_hDoSetSelfPath(0);
  42. }
  43. //用户
  44. if($enews=="exit")
  45. {
  46. include('../class/adminfun.php');
  47. }
  48. if($enews=="ReListHtml")//刷新信息列表
  49. {
  50. $classid=$_GET['classid'];
  51. ReListHtml($classid,0);
  52. }
  53. elseif($enews=="AddPostUrlData")//初使化远程发布
  54. {
  55. $postdata=$_POST['postdata'];
  56. AddPostUrlData($postdata,$logininid,$loginin);
  57. }
  58. elseif($enews=="PostUrlData")//远程发布
  59. {
  60. $start=$_GET['start'];
  61. $rnd=$_GET['rnd'];
  62. PostUrlData($start,$rnd,$logininid,$loginin);
  63. }
  64. elseif($enews=="ChangeEnewsData")//更新缓存
  65. {
  66. ChangeEnewsData($logininid,$loginin);
  67. }
  68. elseif($enews=="exit")//退出系统
  69. {
  70. loginout($logininid,$loginin,$loginrnd);
  71. }
  72. elseif($enews=="ChangeMoreportAdmin")//切换访问端
  73. {
  74. $changemoreportid=(int)$_POST['moreportid'];
  75. Moreport_eChangeMoreportAdmin($changemoreportid,0,$logininid,$loginin);
  76. }
  77. else
  78. {
  79. printerror("ErrorUrl","history.go(-1)");
  80. }
  81. db_close();
  82. $empire=null;
  83. ?>