PostUrlData.php 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <?php
  2. define('EmpireCMSAdmin','1');
  3. require("../class/connect.php");
  4. require("../class/db_sql.php");
  5. require("../class/functions.php");
  6. $link=db_connect();
  7. $empire=new mysqlquery();
  8. //验证用户
  9. $lur=is_login();
  10. $logininid=$lur['userid'];
  11. $loginin=$lur['username'];
  12. $loginrnd=$lur['rnd'];
  13. $loginlevel=$lur['groupid'];
  14. $loginadminstyleid=$lur['adminstyleid'];
  15. //ehash
  16. $ecms_hashur=hReturnEcmsHashStrAll();
  17. //验证权限
  18. CheckLevel($logininid,$loginin,$classid,"postdata");
  19. ?>
  20. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  21. <html>
  22. <head>
  23. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  24. <title>远程发布</title>
  25. <link href="adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
  26. <script>
  27. function CheckAll(form)
  28. {
  29. for (var i=0;i<form.elements.length;i++)
  30. {
  31. var e = form.elements[i];
  32. if (e.name != 'chkall')
  33. e.checked = form.chkall.checked;
  34. }
  35. }
  36. </script>
  37. </head>
  38. <body>
  39. <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1">
  40. <tr>
  41. <td>位置:<a href="PostUrlData.php<?=$ecms_hashur['whehref']?>">远程发布</a></td>
  42. </tr>
  43. </table>
  44. <form name="form1" method="post" action="enews.php" onsubmit="return confirm('确认要发布?');">
  45. <table width="98%" border="0" align="center" cellpadding="3" cellspacing="2">
  46. <?=$ecms_hashur['form']?>
  47. <tr class="header">
  48. <td width="6%" height="25"> <div align="center"></div></td>
  49. <td width="49%" height="25">任务</td>
  50. <td width="45%" height="25">说明</td>
  51. </tr>
  52. <tr>
  53. <td height="25" bgcolor="#DBEAF5"> <div align="center"></div></td>
  54. <td height="25" bgcolor="#DBEAF5"><strong>附件包 (/d)</strong></td>
  55. <td height="25" bgcolor="#DBEAF5">存放附件目录</td>
  56. </tr>
  57. <tr>
  58. <td height="25"> <div align="center">
  59. <input name="postdata[]" type="checkbox" id="postdata[]" value="d/file!!!0">
  60. </div></td>
  61. <td height="25">上传附件包 (/d/file)</td>
  62. <td height="25">系统上传的附件存放目录</td>
  63. </tr>
  64. <tr>
  65. <td height="25"> <div align="center">
  66. <input name="postdata[]" type="checkbox" id="postdata[]" value="d/js!!!0">
  67. </div></td>
  68. <td height="25">公共JS包 (/d/js)</td>
  69. <td height="25">共公JS包括广告JS,投票JS,图片信息JS,总排行/最新JS等</td>
  70. </tr>
  71. <tr>
  72. <td height="25" bgcolor="#DBEAF5"> <div align="center">
  73. <input name="postdata[]" type="checkbox" id="postdata[]" value="s!!!0">
  74. </div></td>
  75. <td height="25" bgcolor="#DBEAF5"><strong>专题包 (/s)</strong></td>
  76. <td height="25" bgcolor="#DBEAF5">专题存放目录</td>
  77. </tr>
  78. <tr>
  79. <td height="25" bgcolor="#DBEAF5"> <div align="center"></div></td>
  80. <td height="25" bgcolor="#DBEAF5"><strong>系统动态包[与数据库相关] (/e)</strong></td>
  81. <td height="25" bgcolor="#DBEAF5">与数据库打交道的包</td>
  82. </tr>
  83. <tr>
  84. <td height="25"> <div align="center">
  85. <input name="postdata[]" type="checkbox" id="postdata[]3" value="search!!!0">
  86. </div></td>
  87. <td height="25">信息搜索表单包 (/search)</td>
  88. <td height="25">信息搜索表单</td>
  89. </tr>
  90. <tr>
  91. <td height="25"> <div align="center">
  92. <input name="postdata[]" type="checkbox" id="postdata[]5" value="e/pl!!!0">
  93. </div></td>
  94. <td height="25">信息评论包 (/e/pl)</td>
  95. <td height="25">信息评论页面</td>
  96. </tr>
  97. <tr>
  98. <td height="25"><div align="center">
  99. <input name="postdata[]" type="checkbox" id="postdata[]" value="e/DoPrint!!!0">
  100. </div></td>
  101. <td height="25">信息打印包(/e/DoPrint)</td>
  102. <td height="25">信息打印页面</td>
  103. </tr>
  104. <tr>
  105. <td height="25"> <div align="center">
  106. <input name="postdata[]" type="checkbox" id="postdata[]6" value="e/data/template!!!0">
  107. </div></td>
  108. <td height="25">会员控制面板模板包 (/e/data/template)</td>
  109. <td height="25">会员控制面板模板</td>
  110. </tr>
  111. <tr>
  112. <td height="25"> <div align="center">
  113. <input name="postdata[]" type="checkbox" id="postdata[]7" value="e/config/config.php,e/data/dbcache/class.php,e/data/dbcache/class1.php,e/data/dbcache/ztclass.php,e/data/dbcache/MemberLevel.php!!!1">
  114. </div></td>
  115. <td height="25">缓存包 (/e/config/config.php,e/data/dbcache/class.php)</td>
  116. <td height="25">系统设置的一些参数缓存</td>
  117. </tr>
  118. <tr>
  119. <td height="25" bgcolor="#DBEAF5"> <div align="center"></div></td>
  120. <td height="25" bgcolor="#DBEAF5"><strong>站点目录包 (/)</strong></td>
  121. <td height="25" bgcolor="#DBEAF5">信息栏目存放目录</td>
  122. </tr>
  123. <?
  124. $sql=$empire->query("select classid,classurl,classname,classpath from {$dbtbpre}enewsclass where bclassid=0 order by classid desc");
  125. while($r=$empire->fetch($sql))
  126. {
  127. if($r[classurl])
  128. {
  129. $classurl=$r[classurl];
  130. }
  131. else
  132. {
  133. $classurl="../../".$r[classpath];
  134. }
  135. ?>
  136. <tr>
  137. <td height="25"> <div align="center">
  138. <input name="postdata[]" type="checkbox" id="postdata[]10" value="<?=$r[classpath]?>!!!0">
  139. </div></td>
  140. <td height="25"><a href='<?=$classurl?>' target=_blank>
  141. <?=$r[classname]?>
  142. </a>&nbsp;(/
  143. <?=$r[classpath]?>
  144. )</td>
  145. <td height="25">
  146. <?=$r[classurl]?>
  147. </td>
  148. </tr>
  149. <?
  150. }
  151. ?>
  152. <tr>
  153. <td height="25" bgcolor="#DBEAF5"> <div align="center">
  154. <input name="postdata[]" type="checkbox" id="postdata[]" value="index<?=$public_r[indextype]?>!!!1">
  155. </div></td>
  156. <td height="25" bgcolor="#DBEAF5"><strong>首页 (/index
  157. <?=$public_r[indextype]?>
  158. )</strong></td>
  159. <td height="25" bgcolor="#DBEAF5">网站首页</td>
  160. </tr>
  161. <tr>
  162. <td height="25"> <div align="center">
  163. <input type=checkbox name=chkall value=on onclick=CheckAll(this.form)>
  164. </div></td>
  165. <td height="25"> <input type="submit" name="Submit" value="开始发布"> &nbsp;&nbsp;
  166. <input type="button" name="Submit2" value="设置FTP参数" onclick="javascript:window.open('SetEnews.php<?=$ecms_hashur['whehref']?>');">
  167. <input name="enews" type="hidden" id="enews" value="AddPostUrlData"></td>
  168. <td height="25">每 <input name="line" type="text" id="line" value="10" size="6">
  169. 个项目为一组</td>
  170. </tr>
  171. <tr>
  172. <td height="25" colspan="3"><div align="left">(备注:远程发布所发费的时间较长,请耐心等待.最好将程序运行时间设为最长)</div></td>
  173. </tr>
  174. </table>
  175. <br>
  176. </form>
  177. </body>
  178. </html>
  179. <?
  180. db_close();
  181. $empire=null;
  182. ?>