ecmscom.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <?php
  2. define('EmpireCMSAdmin','1');
  3. require("../class/connect.php");
  4. require("../class/db_sql.php");
  5. require("../class/functions.php");
  6. require LoadLang("pub/fun.php");
  7. require("../class/t_functions.php");
  8. require("../data/dbcache/class.php");
  9. require("../data/dbcache/MemberLevel.php");
  10. $link=db_connect();
  11. $empire=new mysqlquery();
  12. $enews=$_POST['enews'];
  13. if(empty($enews))
  14. {
  15. $enews=$_GET['enews'];
  16. }
  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=='ClearTmpFileData')
  40. {
  41. $moreportpid=Moreport_hDoSetSelfPath(0);
  42. }
  43. require("../class/comdofun.php");
  44. if($enews=="AddUserpage")//增加自定义页面
  45. {
  46. AddUserpage($_POST,$logininid,$loginin);
  47. }
  48. elseif($enews=="EditUserpage")//修改自定义页面
  49. {
  50. EditUserpage($_POST,$logininid,$loginin);
  51. }
  52. elseif($enews=="DelUserpage")//删除自定义页面
  53. {
  54. $id=$_GET['id'];
  55. $cid=$_GET['cid'];
  56. DelUserpage($id,$cid,$logininid,$loginin);
  57. }
  58. elseif($enews=="DoReUserpage")//刷新自定义页面
  59. {
  60. DoReUserpage($_POST,$logininid,$loginin);
  61. }
  62. elseif($enews=="ChangeInfoOtherLink")//批量更新相关链接
  63. {
  64. $start=$_GET['start'];
  65. $classid=$_GET['classid'];
  66. $from=$_GET['from'];
  67. $retype=$_GET['retype'];
  68. $startday=$_GET['startday'];
  69. $endday=$_GET['endday'];
  70. $startid=$_GET['startid'];
  71. $endid=$_GET['endid'];
  72. $tbname=$_GET['tbname'];
  73. ChangeInfoOtherLink($start,$classid,$from,$retype,$startday,$endday,$startid,$endid,$tbname,$logininid,$loginin);
  74. }
  75. elseif($enews=="CheckPath")//目录是否存在
  76. {
  77. $classpath=$_GET['pripath'].$_GET['classpath'];
  78. CheckPath($classpath);
  79. }
  80. elseif($enews=="DoRepNewstext")//批量替换字段值
  81. {
  82. $start=$_POST['start'];
  83. $oldword=$_POST['oldword'];
  84. $newword=$_POST['newword'];
  85. $field=$_POST['field'];
  86. $classid=$_POST['classid'];
  87. $tid=$_POST['tid'];
  88. $tbname=$_POST['tbname'];
  89. $over=$_POST['over'];
  90. $dozz=$_POST['dozz'];
  91. $dotxt=$_POST['dotxt'];
  92. DoRepNewstext($start,$oldword,$newword,$field,$classid,$tid,$tbname,$over,$dozz,$dotxt,$logininid,$loginin);
  93. }
  94. elseif($enews=="AddTempvarClass"||$enews=="AddPageClass"||$enews=="AddBqtempClass"||$enews=="AddListtempClass"||$enews=="AddNewstempClass"||$enews=="AddSearchtempClass"||$enews=="AddBqClass"||$enews=="AddJsTempClass"||$enews=="AddZtClass"||$enews=="AddLinkClass"||$enews=="AddClassTempClass"||$enews=="AddErrorClass"||$enews=='AddTagsClass'||$enews=='AddUserlistClass'||$enews=='AddUserjsClass')//增加类别
  95. {
  96. $add=$_POST;
  97. AddThisClass($add,$logininid,$loginin);
  98. }
  99. elseif($enews=="EditTempvarClass"||$enews=="EditPageClass"||$enews=="EditBqtempClass"||$enews=="EditListtempClass"||$enews=="EditNewstempClass"||$enews=="EditSearchtempClass"||$enews=="EditBqClass"||$enews=="EditJsTempClass"||$enews=="EditZtClass"||$enews=="EditLinkClass"||$enews=="EditClassTempClass"||$enews=="EditErrorClass"||$enews=='EditTagsClass'||$enews=='EditUserlistClass'||$enews=='EditUserjsClass')//修改类别
  100. {
  101. $add=$_POST;
  102. EditThisClass($add,$logininid,$loginin);
  103. }
  104. elseif($enews=="DelTempvarClass"||$enews=="DelPageClass"||$enews=="DelBqtempClass"||$enews=="DelListtempClass"||$enews=="DelNewstempClass"||$enews=="DelSearchtempClass"||$enews=="DelBqClass"||$enews=="DelJsTempClass"||$enews=="DelZtClass"||$enews=="DelLinkClass"||$enews=="DelClassTempClass"||$enews=="DelErrorClass"||$enews=='DelTagsClass'||$enews=='DelUserlistClass'||$enews=='DelUserjsClass')//删除类别
  105. {
  106. $classid=$_GET['classid'];
  107. $doing=$_GET['doing'];
  108. DelThisClass($classid,$doing,$logininid,$loginin);
  109. }
  110. elseif($enews=="RepDownLevel")//批量替换地址权限
  111. {
  112. RepDownLevel($_POST,$logininid,$loginin);
  113. }
  114. elseif($enews=='ClearTmpFileData')//清空临时数据与文件
  115. {
  116. ClearTmpFileData($_GET,$logininid,$loginin);
  117. }
  118. elseif($enews=='ClearBreakInfo')//清理多余信息
  119. {
  120. ClearBreakInfo($_POST,$logininid,$loginin);
  121. }
  122. elseif($enews=='ResetAddDataNum')//重置信息或评论数统计
  123. {
  124. $type=$_GET['type'];
  125. $from=$_GET['from'];
  126. ResetAddDataNum($type,$from,$logininid,$loginin);
  127. }
  128. else
  129. {
  130. printerror("ErrorUrl","history.go(-1)");
  131. }
  132. db_close();
  133. $empire=null;
  134. ?>