SetPl.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. $editor=1;
  9. //验证用户
  10. $lur=is_login();
  11. $logininid=$lur['userid'];
  12. $loginin=$lur['username'];
  13. $loginrnd=$lur['rnd'];
  14. $loginlevel=$lur['groupid'];
  15. $loginadminstyleid=$lur['adminstyleid'];
  16. //ehash
  17. $ecms_hashur=hReturnEcmsHashStrAll();
  18. //验证权限
  19. CheckLevel($logininid,$loginin,$classid,"public");
  20. $r=$empire->fetch1("select * from {$dbtbpre}enewspl_set limit 1");
  21. //评论权限
  22. $plgroup='';
  23. $mgsql=$empire->query("select groupid,groupname from {$dbtbpre}enewsmembergroup order by level");
  24. while($mgr=$empire->fetch($mgsql))
  25. {
  26. if($r[plgroupid]==$mgr[groupid])
  27. {
  28. $plgroup_select=' selected';
  29. }
  30. else
  31. {
  32. $plgroup_select='';
  33. }
  34. $plgroup.="<option value=".$mgr[groupid].$plgroup_select.">".$mgr[groupname]."</option>";
  35. }
  36. db_close();
  37. $empire=null;
  38. ?>
  39. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  40. <html>
  41. <head>
  42. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  43. <title>评论参数设置</title>
  44. <link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
  45. </head>
  46. <body>
  47. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  48. <tr>
  49. <td><p>位置:评论参数设置</p>
  50. </td>
  51. </tr>
  52. </table>
  53. <form name="plset" method="post" action="../ecmspl.php">
  54. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  55. <?=$ecms_hashur['form']?>
  56. <tr class="header">
  57. <td height="25" colspan="2">评论参数设置
  58. <input name=enews type=hidden value=SetPl></td>
  59. </tr>
  60. <tr>
  61. <td height="25" bgcolor="#FFFFFF">评论地址</td>
  62. <td height="25" bgcolor="#FFFFFF"><input name="plurl" type="text" id="plurl" value="<?=$r[plurl]?>" size="38">
  63. <font color="#666666">(绑定域名时设置,结尾需加“/”,如:/e/pl/)</font></td>
  64. </tr>
  65. <tr bgcolor="#FFFFFF">
  66. <td height="25">评论权限限制</td>
  67. <td height="25"><select name="plgroupid" id="plgroupid">
  68. <option value=0>游客</option>
  69. <?=$plgroup?>
  70. </select></td>
  71. </tr>
  72. <tr bgcolor="#FFFFFF">
  73. <td width="19%" height="25">评论内容限制</td>
  74. <td width="81%" height="25"><input name="plsize" type="text" id="plsize" value="<?=$r[plsize]?>" size="38">
  75. 个字节<font color="#666666"> (两个字节为一个汉字)</font> </td>
  76. </tr>
  77. <tr bgcolor="#FFFFFF">
  78. <td height="25">评论时间间隔</td>
  79. <td height="25"><input name="pltime" type="text" id="pltime" value="<?=$r[pltime]?>" size="38">
  80. 秒</td>
  81. </tr>
  82. <tr bgcolor="#FFFFFF">
  83. <td height="25">评论验证码</td>
  84. <td height="25"><input type="radio" name="plkey_ok" value="1"<?=$r[plkey_ok]==1?' checked':''?>>
  85. 开启
  86. <input type="radio" name="plkey_ok" value="0"<?=$r[plkey_ok]==0?' checked':''?>>
  87. 关闭</td>
  88. </tr>
  89. <tr bgcolor="#FFFFFF">
  90. <td height="25">评论每页显示</td>
  91. <td height="25"><input name="pl_num" type="text" id="pl_num" value="<?=$r[pl_num]?>" size="38">
  92. 个评论</td>
  93. </tr>
  94. <tr bgcolor="#FFFFFF">
  95. <td height="25">评论表情每行显示</td>
  96. <td height="25"><input name="plfacenum" type="text" id="plfacenum" value="<?=$r[plfacenum]?>" size="38">
  97. 个表情</td>
  98. </tr>
  99. <tr bgcolor="#FFFFFF">
  100. <td height="25">评论屏蔽字符<br> <font color="#666666">(1)、多个用“|”隔开,如“字符1|字符2”。<br>
  101. (2)、同时包含多字时屏蔽可用双“#”隔开,如“破##解|字符2” 。这样只要内容同时包含“破”和“解”字都会被屏蔽。</font></td>
  102. <td height="25"><textarea name="plclosewords" cols="80" rows="8" id="plclosewords"><?=ehtmlspecialchars($r[plclosewords])?></textarea></td>
  103. </tr>
  104. <tr bgcolor="#FFFFFF">
  105. <td height="25">评论盖楼最高楼层</td>
  106. <td height="25"><input name="plmaxfloor" type="text" id="plmaxfloor" value="<?=$r[plmaxfloor]?>" size="38">
  107. 楼 <font color="#666666">(0为不限)</font></td>
  108. </tr>
  109. <tr bgcolor="#FFFFFF">
  110. <td height="25" valign="top">评论引用内容格式:<br>
  111. <br>
  112. 评论ID:[!--plid--]<br>
  113. 发表者:[!--username--]<br>
  114. 评论内容:[!--pltext--]<br>
  115. 发表时间:[!--pltime--]</td>
  116. <td height="25"><textarea name="plquotetemp" cols="80" rows="8" id="plquotetemp"><?=ehtmlspecialchars(stripSlashes($r[plquotetemp]))?></textarea></td>
  117. </tr>
  118. <tr bgcolor="#FFFFFF">
  119. <td height="25">&nbsp;</td>
  120. <td height="25"><input type="submit" name="Submit" value="提交"> <input type="reset" name="Submit2" value="重置"></td>
  121. </tr>
  122. </table>
  123. </form>
  124. </body>
  125. </html>