国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

179 lines
8.8KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  5. <title>系统配置参数 - 验证安全设置</title>
  6. <link href="css/base.css" rel="stylesheet" type="text/css">
  7. <script type="text/javascript" src="../static/js/jquery.js" ></script>
  8. <script type="text/javascript">
  9. var $ = jQuery;
  10. $(document).ready(function(){
  11. addIterm("qiterm","qbox");
  12. })
  13. //增加选项
  14. function addIterm(qiterm,qbox)
  15. {
  16. if($("#"+qiterm)){
  17. var iterm = $("#"+qiterm).children().clone()
  18. $("#"+qbox).append(iterm)
  19. //将其置为显示状态
  20. $("#"+qbox+" > #"+qiterm ).show();
  21. }
  22. }
  23. //删除当前选项
  24. function delIterm(obj)
  25. {
  26. $(obj).parent().parent().remove();
  27. }
  28. </script>
  29. </head>
  30. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  31. <form action="sys_safe.php" method="post" name="form1">
  32. <input type="hidden" name="dopost" value="save">
  33. <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
  34. <tr>
  35. <td height="26" colspan="2" bgcolor="#FFFFFF" background="images/tbg.gif" style="padding-left:10px;"><b>验证码参数设置</b></td>
  36. </tr>
  37. <tr bgcolor="#FFFFFF">
  38. <td width="26%" height="24">开启系统验证码:<br></td>
  39. <td width="74%"><input name="gdopen[]" type="checkbox" id="gdopen1" value="1" <?php echo (preg_match("/1/",$safe_gdopen))? "checked" : ""; ?>>
  40. <label for='gdopen1'>注册会员 </label>
  41. <input name="gdopen[]" type="checkbox" id="gdopen2" value="2" <?php echo (preg_match("/2/",$safe_gdopen))? "checked" : ""; ?>>
  42. <label for='gdopen2'>前台登录 </label>
  43. <input name="gdopen[]" type="checkbox" id="gdopen3" value="3" <?php echo (preg_match("/3/",$safe_gdopen))? "checked" : ""; ?>>
  44. <label for='gdopen3'>会员投稿 </label>
  45. <input name="gdopen[]" type="checkbox" id="gdopen4" value="4" <?php echo (preg_match("/4/",$safe_gdopen))? "checked" : ""; ?>>
  46. <label for='gdopen4'>文档评论 </label>
  47. <input name="gdopen[]" type="checkbox" id="gdopen5" value="5" <?php echo (preg_match("/5/",$safe_gdopen))? "checked" : ""; ?>>
  48. <label for='gdopen5'>会员短消息 </label>
  49. <input name="gdopen[]" type="checkbox" id="gdopen6" value="6" <?php echo (preg_match("/6/",$safe_gdopen))? "checked" : ""; ?>>
  50. <label for='gdopen6'>后台登录 </label>
  51. <input name="gdopen[]" type="checkbox" id="gdopen7" value="7" <?php echo (preg_match("/7/",$safe_gdopen))? "checked" : ""; ?>>
  52. <label for='gdopen7'>问答 </label></td>
  53. </tr>
  54. <tr bgcolor="#FFFFFF">
  55. <td height="24">验证码生成类型:</td>
  56. <td><input class="np" type="radio" value="1" name="codetype" id="cttpe1" <?php echo ($safe_codetype == 1)? "checked" : ""; ?>>
  57. <label for="cttpe1">数字</label>
  58. <input class="np" type="radio" value="2" name="codetype" id="cttpe2" <?php echo ($safe_codetype == 2)? "checked" : ""; ?>>
  59. <label for="cttpe2">英文</label>
  60. <input class="np" type="radio" value="3" name="codetype" id="cttpe3" <?php echo ($safe_codetype == 3)? "checked" : ""; ?>>
  61. <label for="cttpe3">单词</label></td>
  62. </tr>
  63. <tr bgcolor="#FFFFFF">
  64. <td height="24">选择验证码文件类型:</td>
  65. <td><input name="gdtype" type="radio" value="1" id="dtype1" <?php echo ($safe_gdtype == 1)? "checked" : ""; ?>>
  66. <label for="dtype1">jpg &nbsp;</label>
  67. <input type="radio" name="gdtype" value="2" id="dtype2" <?php echo ($safe_gdtype == 2)? "checked" : ""; ?>>
  68. <label for="dtype2">png
  69. &nbsp;</label>
  70. <input type="radio" name="gdtype" value="3" id="dtype3" <?php echo ($safe_gdtype == 3)? "checked" : ""; ?>>
  71. <label for="dtype3">gif (GD&gt;= 2.0.28)</label></td>
  72. </tr>
  73. <tr bgcolor="#FFFFFF">
  74. <td height="24">验证码干扰设置:</td>
  75. <td><input name="gdstyle[]" type="checkbox" value="1" id="dstyle1" <?php echo (preg_match("/1/",$safe_gdstyle))? "checked" : ""; ?>>
  76. <label for="dstyle1">背景线 &nbsp;</label>
  77. <input type="checkbox" name="gdstyle[]" value="2" id="dstyle2" <?php echo (preg_match("/2/",$safe_gdstyle))? "checked" : ""; ?>>
  78. <label for="dstyle2">背景图像
  79. &nbsp;</label>
  80. <input type="checkbox" name="gdstyle[]" value="3" id="dstyle3" <?php echo (preg_match("/3/",$safe_gdstyle))? "checked" : ""; ?>>
  81. <label for="dstyle3">混杂文本色</label></td>
  82. </tr>
  83. <tr bgcolor="#FFFFFF">
  84. <td height="24">验证码图片大小(设置为0为不限):</td>
  85. <td> 宽:
  86. <input name="gd_wwidth" type=text id="gd_wwidth" value="<?php echo empty($safe_wwidth)? "" :$safe_wwidth ;?>" size="5">
  87. px
  88. 高:
  89. <input name="gd_wheight" type=text id="gd_wheight" value="<?php echo empty($safe_wheight)? "" :$safe_wheight ;?>" size="5">
  90. px</td>
  91. </tr>
  92. <tr bgcolor="#FFFFFF">
  93. <td height="24">验证码字符数:</td>
  94. <td><input name="codelen" type="text" id="codelen" value="<?php echo empty($safe_codelen)? "" :$safe_codelen ;?>">
  95. 个(类型设为单词,该属性无效)</td>
  96. </tr>
  97. <tr bgcolor="#FFFFFF">
  98. <td height="24" colspan="2">&nbsp;</td>
  99. </tr>
  100. <tr>
  101. <td height="26" colspan="2" bgcolor="#FFFFFF" background="images/tbg.gif"><b>验证问题设置</b></td>
  102. </tr>
  103. <tr bgcolor="#FFFFFF">
  104. <td height="24"> 1、使用简单的文字问题(例如:11+5=?,请输入中文答案)<BR>
  105. 2、使用html代码(例如将问题做成一张小图片 &lt;img src="地址" /&gt;)<BR>
  106. 3、多个问题将随机出现一个问题。</td>
  107. <td><table width="98%" border="0" cellspacing="2" cellpadding="0">
  108. <tbody id="qiterm" style="display:none">
  109. <tr>
  110. <td width="50%"><input name="question[]" type="text" size="30" value=""/></td>
  111. <td width="50%"><input name="answer[]" type="text" value=""/>
  112. <a onClick="delIterm(this);" style="cursor: pointer; color: rgb(250, 137, 27);">[删除]</a></td>
  113. </tr>
  114. </tbody>
  115. <thead>
  116. <td width="50%">问题</td>
  117. <td width="50%">答案<a onclick='addIterm("qiterm","qbox");' style='cursor: pointer; color: rgb(0, 0, 255);'>[+增加]</a></td>
  118. </tr>
  119. </thead>
  120. <tbody>
  121. <?php
  122. if(!empty($safefaqs))
  123. {
  124. foreach ($safefaqs as $key => $safefaq) {
  125. ?>
  126. <tr>
  127. <td width="50%"><input name="question[]" type="text" value="<?php echo htmlspecialchars($safefaq['question']);?>" size="30"/></td>
  128. <td width="50%"><input name="answer[]" type="text" value="<?php echo $safefaq['answer']?>"/>
  129. <a onClick="delIterm(this);" style="cursor: pointer; color: rgb(250, 137, 27);">[删除]</a></td>
  130. </tr>
  131. <?php
  132. }
  133. }
  134. ?>
  135. </tbody>
  136. <tbody id="qbox">
  137. </tbody>
  138. </table></td>
  139. </tr>
  140. <tr bgcolor="#FFFFFF">
  141. <td height="24">注册开启验证问题:</td>
  142. <td><input class="np" type="radio" value="1" name="gdfaq_reg" <?php echo ($safe_faq_reg == 1)? "checked" : ""; ?>>
  143. 开启
  144. <input class="np" type="radio" value="0" name="gdfaq_reg" <?php echo ($safe_faq_reg == 0)? "checked" : ""; ?>>
  145. 关闭</td>
  146. </tr>
  147. <tr bgcolor="#FFFFFF">
  148. <td height="24">会员投稿开启验证问题:</td>
  149. <td><input class="np" type="radio" value="1" name="gdfaq_send" <?php echo ($safe_faq_send == 1)? "checked" : ""; ?>>
  150. 开启
  151. <input class="np" type="radio" value="0" name="gdfaq_send" <?php echo ($safe_faq_send == 0)? "checked" : ""; ?>>
  152. 关闭</td>
  153. </tr>
  154. <tr bgcolor="#FFFFFF">
  155. <td height="24">短消息开启验证问题:</td>
  156. <td><input class="np" type="radio" value="1" name="gdfaq_msg" <?php echo ($safe_faq_msg == 1)? "checked" : ""; ?>>
  157. 开启
  158. <input class="np" type="radio" value="0" name="gdfaq_msg" <?php echo ($safe_faq_msg == 0)? "checked" : ""; ?>>
  159. 关闭</td>
  160. </tr>
  161. <tr bgcolor="#F9FCEF">
  162. <td height="37" colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  163. <tr>
  164. <td width="7%">&nbsp;</td>
  165. <td width="93%" align="center"><input name="imageField" class="np" type="image" src="images/button_ok.gif" width="60" height="22" border="0">
  166. &nbsp; <img src="images/button_reset.gif" width="60" height="22"></td>
  167. </tr>
  168. </table></td>
  169. </tr>
  170. </table>
  171. </form>
  172. </body>
  173. </html>