ecmschtml.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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. //spurl
  25. if($enews=='ReAllNewsJs')
  26. {
  27. hSetSpFromUrl();
  28. }
  29. hCheckEcmsRHash();
  30. //level
  31. if($enews=='ReListHtml_all'||$enews=='ReNewsHtml'||$enews=='ReAllNewsJs'||$enews=='ReDtPage'||$enews=='ReTtListHtml_all'||$enews=='ReZtListHtml_all'||$enews=='ReSpAll'||$enews=='ReClassPath'||$enews=='UpdateClassInfosAll'||$enews=='ReUserpageAll'||$enews=='ReUserlistAll'||$enews=='ReUserjsAll'||$enews=='GoReListHtmlMore'||$enews=='GoReListHtmlMoreA'||$enews=='ReListHtmlMore'||$enews=='ReListZtHtmlMore'||$enews=='ReListTtHtmlMore')
  32. {
  33. CheckLevel($logininid,$loginin,0,"changedata");
  34. }
  35. @set_time_limit(0);
  36. $incftp=0;
  37. if($public_r['phpmode'])
  38. {
  39. include("../class/ftp.php");
  40. $incftp=1;
  41. }
  42. //防采集
  43. if($public_r['opennotcj'])
  44. {
  45. @include("../data/dbcache/notcj.php");
  46. }
  47. //设置访问端
  48. $moreportpid=0;
  49. if($enews=='ReIndex'||$enews=='ReListHtml_all'||$enews=='ReNewsHtml'||$enews=='ReAllNewsJs'||$enews=='ReDtPage'||$enews=='ReTtListHtml_all'||$enews=='ReZtListHtml_all'||$enews=='ReSpAll'||$enews=='ReClassPath'||$enews=='ReUserpageAll'||$enews=='ReUserlistAll'||$enews=='ReUserjsAll'||$enews=='GoReListHtmlMore'||$enews=='GoReListHtmlMoreA'||$enews=='ReListHtmlMore'||$enews=='ReListZtHtmlMore'||$enews=='ReListTtHtmlMore')
  50. {
  51. $moreportpid=Moreport_hDoSetSelfPath(1);
  52. if(!$moreportpid&&($enews=='GoReListHtmlMore'||$enews=='GoReListHtmlMoreA'||$enews=='ReListHtmlMore'||$enews=='ReListZtHtmlMore'||$enews=='ReListTtHtmlMore'))
  53. {
  54. }
  55. else
  56. {
  57. define('ECMSDOALL',TRUE);
  58. }
  59. }
  60. require("../class/chtmlfun.php");
  61. if($enews=="ReNewsHtml")//刷新内容页面
  62. {
  63. $start=$_GET['start'];
  64. $classid=$_GET['classid'];
  65. $from=$_GET['from'];
  66. $retype=$_GET['retype'];
  67. $startday=$_GET['startday'];
  68. $endday=$_GET['endday'];
  69. $startid=$_GET['startid'];
  70. $endid=$_GET['endid'];
  71. $tbname=$_GET['tbname'];
  72. $havehtml=$_GET['havehtml'];
  73. ReNewsHtml($start,$classid,$from,$retype,$startday,$endday,$startid,$endid,$tbname,$havehtml);
  74. }
  75. elseif($enews=="ReListHtml_all")//刷新所有列表
  76. {
  77. $start=$_GET['start'];
  78. $do=$_GET['do'];
  79. $from=$_GET['from'];
  80. ReListHtml_all($start,$do,$from);
  81. }
  82. elseif($enews=="ReZtListHtml_all")//刷新所有专题页面
  83. {
  84. $start=$_GET['start'];
  85. $do=$_GET['do'];
  86. $from=$_GET['from'];
  87. ReZtListHtml_all($start,$do,$from);
  88. }
  89. elseif($enews=="ReTtListHtml_all")//刷新所有标题分类页面
  90. {
  91. $start=$_GET['start'];
  92. $do=$_GET['do'];
  93. $from=$_GET['from'];
  94. ReTtListHtml_all($start,$do,$from);
  95. }
  96. elseif($enews=="ReAllNewsJs")//刷新所有信息js
  97. {
  98. $start=$_GET['start'];
  99. $do=$_GET['do'];
  100. $from=$_GET['from'];
  101. ReAllNewsJs($start,$do,$from);
  102. }
  103. elseif($enews=="ReIndex")//刷新首页
  104. {
  105. ReIndex();
  106. }
  107. elseif($enews=="ReUserpageAll")//批量刷新自定义页面
  108. {
  109. ReUserpageAll($_GET['start'],$_GET['from'],$logininid,$loginin);
  110. }
  111. elseif($enews=="ReUserlistAll")//批量刷新自定义信息列表
  112. {
  113. $start=$_GET['start'];
  114. $from=$_GET['from'];
  115. ReUserlistAll($start,$from,$logininid,$loginin);
  116. }
  117. elseif($enews=="ReUserjsAll")//批量刷新自定义JS
  118. {
  119. $start=$_GET['start'];
  120. $from=$_GET['from'];
  121. ReUserjsAll($start,$from,$logininid,$loginin);
  122. }
  123. elseif($enews=="ReHot_NewNews")//刷新最新信息与热门信息JS
  124. {
  125. ReHot_NewNews();
  126. }
  127. elseif($enews=="ReSpAll")//批量刷新碎片文件
  128. {
  129. ReSpAll($_GET['start'],$_GET['from'],$logininid,$loginin);
  130. }
  131. elseif($enews=='ReSingleInfo')//刷新单信息页面
  132. {
  133. ReSingleInfo($logininid,$loginin);
  134. }
  135. elseif($enews=="ReZtHtml")//刷新专题
  136. {
  137. $ztid=$_GET['ztid'];
  138. $ecms=$_GET['ecms'];
  139. ReZtHtml($ztid,$ecms);
  140. }
  141. elseif($enews=="ReTtHtml")//刷新标题分类
  142. {
  143. $typeid=$_GET['typeid'];
  144. ReTtHtml($typeid);
  145. }
  146. elseif($enews=="ReSingleJs")//刷新单个栏目JS
  147. {
  148. $classid=$_GET['classid'];
  149. $doing=$_GET['doing'];
  150. ReSingleJs($classid,$doing);
  151. }
  152. elseif($enews=="ReDtPage")//批量更新动态页面
  153. {
  154. ReDtPage($logininid,$loginin);
  155. }
  156. elseif($enews=="GoReListHtmlMore")//初使化刷新多栏目
  157. {
  158. $classid=$_POST['classid'];
  159. $gore=$_POST['gore'];
  160. $from=$_POST['from'];
  161. $ecms=$_POST['ecms'];
  162. GoReListHtmlMore($classid,$gore,$from,$ecms);
  163. }
  164. elseif($enews=="GoReListHtmlMoreA")//初使化刷新多栏目(管理栏目)
  165. {
  166. $classid=$_POST['reclassid'];
  167. $gore=$_POST['gore'];
  168. $from=$_POST['from'];
  169. $ecms=$_POST['ecms'];
  170. GoReListHtmlMore($classid,$gore,$from,$ecms);
  171. }
  172. elseif($enews=="ReListHtmlMore")//刷新多栏目
  173. {
  174. $start=$_GET['start'];
  175. $classid=$_GET['classid'];
  176. $from=$_GET['from'];
  177. ReListHtmlMore($start,$classid,$from);
  178. }
  179. elseif($enews=="ReListZtHtmlMore")//刷新多专题
  180. {
  181. $start=$_GET['start'];
  182. $classid=$_GET['classid'];
  183. $from=$_GET['from'];
  184. $ecms=$_GET['ecms'];
  185. ReListZtHtmlMore($start,$classid,$from,$ecms);
  186. }
  187. elseif($enews=="ReListTtHtmlMore")//刷新多标题分类
  188. {
  189. $start=$_GET['start'];
  190. $classid=$_GET['classid'];
  191. $from=$_GET['from'];
  192. ReListTtHtmlMore($start,$classid,$from);
  193. }
  194. elseif($enews=="ReClassPath")//恢复栏目目录
  195. {
  196. $start=$_GET['start'];
  197. ReClassPath($start);
  198. }
  199. elseif($enews=='UpdateClassInfosAll')//更新栏目信息数
  200. {
  201. UpdateClassInfosAll($_GET);
  202. }
  203. else
  204. {
  205. printerror("ErrorUrl","history.go(-1)");
  206. }
  207. db_close();
  208. $empire=null;
  209. ?>