ecmsclass.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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/delpath.php");
  8. require("../class/copypath.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. {
  17. $enews=$_GET['enews'];
  18. }
  19. //验证用户
  20. $lur=is_login();
  21. $logininid=$lur['userid'];
  22. $loginin=$lur['username'];
  23. $loginrnd=$lur['rnd'];
  24. $loginlevel=$lur['groupid'];
  25. $loginadminstyleid=$lur['adminstyleid'];
  26. hCheckEcmsRHash();
  27. @set_time_limit(0);
  28. $incftp=0;
  29. if($public_r['phpmode'])
  30. {
  31. include("../class/ftp.php");
  32. $incftp=1;
  33. }
  34. //防采集
  35. if($public_r['opennotcj'])
  36. {
  37. @include("../data/dbcache/notcj.php");
  38. }
  39. require("../class/classfun.php");
  40. if($enews=="AddZt")//增加专题
  41. {
  42. AddZt($_POST,$logininid,$loginin);
  43. }
  44. elseif($enews=="EditZt")//修改专题
  45. {
  46. EditZt($_POST,$logininid,$loginin);
  47. }
  48. elseif($enews=="DelZt")//删除专题
  49. {
  50. $ztid=$_GET['ztid'];
  51. DelZt($ztid,$logininid,$loginin);
  52. }
  53. elseif($enews=="AddClass")//增加栏目
  54. {
  55. AddClass($_POST,$logininid,$loginin);
  56. }
  57. elseif($enews=="EditClass")//修改栏目
  58. {
  59. EditClass($_POST,$logininid,$loginin);
  60. }
  61. elseif($enews=="DelClass")//删除栏目
  62. {
  63. $classid=$_GET['classid'];
  64. DelClass($classid,$logininid,$loginin);
  65. }
  66. elseif($enews=="ChangeClassIslast")//终极栏目属性转换
  67. {
  68. ChangeClassIslast($_POST['reclassid'],$logininid,$loginin);
  69. }
  70. elseif($enews=="EditClassOrder")//修改栏目顺序
  71. {
  72. $classid=$_POST['classid'];
  73. $myorder=$_POST['myorder'];
  74. EditClassOrder($classid,$myorder,$logininid,$loginin);
  75. }
  76. elseif($enews=="ChangeSonclass")//更新栏目关系
  77. {
  78. $start=$_GET['start'];
  79. ChangeSonclass($start,$logininid,$loginin);
  80. }
  81. elseif($enews=="DelFcListClass")//删除栏目缓存文件
  82. {
  83. DelFcListClass();
  84. }
  85. elseif($enews=="SetMoreClass")//批量设置栏目
  86. {
  87. SetMoreClass($_POST,$logininid,$loginin);
  88. }
  89. elseif($enews=='AddClassF')//增加栏目字段
  90. {
  91. AddClassF($_POST,$logininid,$loginin);
  92. }
  93. elseif($enews=='EditClassF')//修改栏目字段
  94. {
  95. EditClassF($_POST,$logininid,$loginin);
  96. }
  97. elseif($enews=='DelClassF')//删除栏目字段
  98. {
  99. DelClassF($_GET,$logininid,$loginin);
  100. }
  101. elseif($enews=='EditClassFOrder')//修改栏目字段顺序
  102. {
  103. EditClassFOrder($_POST['fid'],$_POST['myorder'],$logininid,$loginin);
  104. }
  105. elseif($enews=='AddZtF')//增加专题字段
  106. {
  107. AddZtF($_POST,$logininid,$loginin);
  108. }
  109. elseif($enews=='EditZtF')//修改专题字段
  110. {
  111. EditZtF($_POST,$logininid,$loginin);
  112. }
  113. elseif($enews=='DelZtF')//删除专题字段
  114. {
  115. DelZtF($_GET,$logininid,$loginin);
  116. }
  117. elseif($enews=='EditZtFOrder')//修改专题字段顺序
  118. {
  119. EditZtFOrder($_POST['fid'],$_POST['myorder'],$logininid,$loginin);
  120. }
  121. else
  122. {
  123. printerror("ErrorUrl","history.go(-1)");
  124. }
  125. db_close();
  126. $empire=null;
  127. ?>