admin_set.asp
上传用户:comthink
上传日期:2021-05-06
资源大小:1280k
文件大小:14k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

HTML/CSS

  1. <!--#include file =conn.asp-->
  2. <!-- #include file="inc/const.asp" -->
  3. <title><%=txl_info(0)%>--管理页面</title>
  4. <!--#include file="inc/admin_css.asp"-->
  5. <meta NAME=GENERATOR Content="Microsoft FrontPage 3.0" CHARSET=GB2312>
  6. <BODY leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
  7. <%
  8. if not supermaster or session("flag")="" then
  9. Errmsg=Errmsg+"<br>"+"<li>本页面为管理员专用,请<a href=admin_index.asp target=_top>登陆</a>后进入。<br><li>您没有管理本页面的权限。"
  10. call txl_error()
  11. else
  12. if request("action")="save" then
  13. call saveconst()
  14. elseif request("action")="restore" then
  15. call restore()
  16. else
  17. call consted()
  18. end if
  19. conn.close
  20. set conn=nothing
  21. end if
  22. sub consted()
  23. dim sel
  24. %>
  25. <form method="POST" action="admin_set.asp?action=save">
  26. <table width="95%" border="0" cellspacing="1" cellpadding="3"  align=center class="tableBorder">
  27. <tr> 
  28. <th height="25" colspan="2" id=TableTitleLink>常规信息设置</th>
  29. </tr>
  30. <tr>
  31. <td height="25" colspan="2" class=txlrow><b>说明:</b>这里可以对同学录进行全部信息的设置;点击恢复默认设置可以恢复到同学录的初始设置。</td>
  32. </tr>
  33. <tr>
  34. <td height="25" colspan="2" class=txlrow align=center><a href="?action=restore"><b>恢复同学录默认设置<b></a></td>
  35. </tr>
  36. <tr> 
  37. <th height="25" colspan="2" align=left id=TableTitleLink>状态设置[<a href="#top">顶部</a>]</th>
  38. </tr>
  39. <tr> 
  40. <td width="50%" class=txlrow> <U>是否允许新用户注册</U><BR>关闭后同学将不能注册</td>
  41. <td width="50%" class=txlrow>  
  42. <input type=radio name="txl_Set(0)" value=0 <%if cint(txl_Set(0))=0 then%>checked<%end if%>>是&nbsp;
  43. <input type=radio name="txl_Set(0)" value=1 <%if cint(txl_Set(0))=1 then%>checked<%end if%>>否&nbsp;</td>
  44. <tr> 
  45. <td width="50%" class=txlrow><U>同学录当前状态</U><BR>维护期间可设置关闭同学录</td>
  46. <td width="50%" class=txlrow> 
  47. <input type=radio name="txl_Set(1)" value=0 <%if cint(txl_Set(1))=0 then%>checked<%end if%>>打开&nbsp;
  48. <input type=radio name="txl_Set(1)" value=1 <%if cint(txl_Set(1))=1 then%>checked<%end if%>>关闭&nbsp;</td>
  49. </tr>
  50. <tr> 
  51. <td width="50%" class=txlrow><U>维护说明</U><BR>在同学录关闭情况下显示,支持html语法</td>
  52. <td width="50%" class=txlrow> <textarea name="Stopwhy" cols="40" rows="3"><%=Stopwhy%></textarea></td>
  53. </tr>
  54. <tr> 
  55. <th height=25 colspan=2 align=left id=tabletitlelink>班级信息[<a href="#top">顶部</a>]</th>
  56. </tr>
  57. <tr> 
  58. <td width="50%" class=txlrow> <U>同学录名称</U></td>
  59. <td width="50%" class=txlrow>  <input type="text" name="txlName" size="35" value="<%=txl_info(0)%>"></td>
  60. </tr>
  61. <tr> 
  62. <td width="50%" class=txlrow> <U>同学录的url</U></td>
  63. <td width="50%" class=txlrow>  <input type="text" name="txlURL" size="35" value="<%=txl_info(1)%>"></td>
  64. </tr>
  65. <tr> 
  66. <td width="50%" class=txlrow> <U>主页名称</U></td>
  67. <td width="50%" class=txlrow>  <input type="text" name="CompanyName" size="35" value="<%=txl_info(2)%>"></td>
  68. </tr>
  69. <tr> 
  70. <td width="50%" class=txlrow> <U>主页URL</U></td>
  71. <td width="50%" class=txlrow>  <input type="text" name="HostUrl" size="35" value="<%=txl_info(3)%>"></td>
  72. </tr>
  73. <tr> 
  74. <td width="50%" class=txlrow> <U>皮肤目录</U></td>
  75. <td width="50%" class=txlrow>  <input type="text" name="skinurl" size="35" value="<%=txl_info(6)%>"></td>
  76. </tr>
  77. <tr> 
  78. <td width="50%" class=txlrow> <U>图片目录</U></td>
  79. <td width="50%" class=txlrow>  <input type="text" name="Picurl" size="35" value="<%=txl_info(7)%>"></td>
  80. </tr>
  81. <tr> 
  82. <td width="50%" class=txlrow> <U>发贴表情目录</U></td>
  83. <td width="50%" class=txlrow>  <input type="text" name="faceurl" size="35" value="<%=txl_info(8)%>"></td>
  84. </tr>
  85. <tr> 
  86. <td width="50%" class=txlrow> <U>发贴心情目录</U></td>
  87. <td width="50%" class=txlrow>  <input type="text" name="emoturl" size="35" value="<%=txl_info(9)%>"></td>
  88. </tr>
  89. <tr> 
  90. <td width="50%" class=txlrow> <U>头像目录</U></td>
  91. <td width="50%" class=txlrow>  <input type="text" name="UserFaceurl" size="35" value="<%=txl_info(10)%>"></td>
  92. </tr>
  93. <tr> 
  94. <td width="50%" class=txlrow> <U>UBB图片目录</U></td>
  95. <td width="50%" class=txlrow>  <input type="text" name="Ubburl" size="35" value="<%=txl_info(11)%>"></td>
  96. </tr>
  97. <tr> 
  98. <td width="50%" class=txlrow> <U>班级照片存放目录</U></td>
  99. <td width="50%" class=txlrow>  <input type="text" name="photourl" size="35" value="<%=txl_info(12)%>"></td>
  100. </tr>
  101. <tr> 
  102. <td width="50%" class=txlrow> <U>版权信息</U></td>
  103. <td width="50%" class=txlrow>  <input type="text" name="Copyright" size="35" value="<%=Copyright%>"></td>
  104. </tr>
  105. <tr> 
  106. <th height=25 colspan=2 align=left id=tabletitlelink>悄悄话选项[<a href="#top">顶部</a>]</td>
  107. </tr>
  108. <tr> 
  109. <td width="50%" class=txlrow> <U>开启短信欢迎新注册用户</U></td>
  110. <td width="50%" class=txlrow>  
  111. <input type=radio name="txl_Set(2)" value=0 <%if cint(txl_Set(2))=0 then%>checked<%end if%>>打开&nbsp;
  112. <input type=radio name="txl_Set(2)" value=1 <%if cint(txl_Set(2))=1 then%>checked<%end if%>>关闭&nbsp;
  113. </td>
  114. </tr>
  115. <tr> 
  116. <td width="50%" class=txlrow> <U>新短消息弹出窗口</U></td>
  117. <td width="50%" class=txlrow>  
  118. <input type=radio name="txl_set(3)" value=0 <%if cint(txl_set(3))=0 then%>checked<%end if%>>是&nbsp;
  119. <input type=radio name="txl_set(3)" value=1 <%if cint(txl_set(3))=1 then%>checked<%end if%>>否&nbsp;</td>
  120. </tr>
  121. <tr> 
  122. <th height=25 colspan=2 align=left id=tabletitlelink>邮件选项[<a href="#top">顶部</a>]</td>
  123. </tr>
  124. <tr> 
  125. <td width="50%" class=txlrow> <U>管理员Email</U><BR>给用户发送邮件时,显示的来源Email信息</td>
  126. <td width="50%" class=txlrow>  <input type="text" name="SystemEmail" size="35" value="<%=txl_info(5)%>"></td>
  127. </tr>
  128. <tr> 
  129. <td width="50%" class=txlrow> <U>发送邮件组件</U><BR>如果您的服务器不支持下列组件,请选择不支持</td>
  130. <td width="50%" class=txlrow>  
  131. <select name="txl_set(4)">
  132. <option value="0" <%if txl_set(4)=0 then%>selected<%end if%>>不支持 
  133. <option value="1" <%if txl_set(4)=1 then%>selected<%end if%>>JMAIL 
  134. <option value="2" <%if txl_set(4)=2 then%>selected<%end if%>>CDONTS 
  135. <option value="3" <%if txl_set(4)=3 then%>selected<%end if%>>ASPEMAIL 
  136. </select>
  137. </td>
  138. </tr>
  139. <tr> 
  140. <td width="50%" class=txlrow> <U>SMTP Server地址</U><BR>只有在论坛使用设置中打开了发送邮件功能,该填写内容方有效</td>
  141. <td width="50%" class=txlrow>  <input type="text" name="SMTPServer" size="35" value="<%=txl_info(4)%>"></td>
  142. </tr>
  143. <tr> 
  144. <td width="50%" class=txlrow> <U>发送注册信息邮件</U><BR>请确认您打开了邮件功能</td>
  145. <td width="50%" class=txlrow>  
  146. <input type=radio name="txl_set(5)" value=0 <%if cint(txl_set(5))=0 then%>checked<%end if%>>打开&nbsp;
  147. <input type=radio name="txl_set(5)" value=1 <%if cint(txl_set(5))=1 then%>checked<%end if%>>关闭&nbsp;</td>
  148. </tr>
  149. <tr> 
  150. <th height=25 colspan=2 align=left id=tabletitlelink>系统设置[<a href="#top">顶部</a>]</td>
  151. </tr>
  152. <tr> 
  153. <td width="50%" class=txlrow> <U>脚本超时时间</U><BR>默认为300,一般不做更改</td>
  154. <td width="50%" class=txlrow>  <input type="text" name="txl_set(6)" size="3" value="<%=txl_set(6)%>">&nbsp;秒</td>
  155. </tr>
  156. <tr> 
  157. <td width="50%" class=txlrow> <U>删除不活动用户时间</U><BR>可设置删除多少分钟内不活动用户<BR>单位:分钟,请输入数字</td>
  158. <td width="50%" class=txlrow>  <input type="text" name="txl_set(7)" size="3" value="<%=txl_set(7)%>">&nbsp;分钟</td>
  159. </tr>
  160. <tr> 
  161. <td width="50%" class=txlrow> <U>是否显示页面执行时间</U></td>
  162. <td width="50%" class=txlrow>  
  163. <input type=radio name="txl_set(8)" value=0 <%if cint(txl_set(8))=0 then%>checked<%end if%>>是&nbsp;
  164. <input type=radio name="txl_set(8)" value=1 <%if cint(txl_set(8))=1 then%>checked<%end if%>>否&nbsp;</td>
  165. </tr>
  166. <tr> 
  167. <td width="50%" class=txlrow> <U>是否显示过生日会员</U></td>
  168. <td width="50%" class=txlrow>  
  169. <input type=radio name="txl_set(9)" value=0 <%if cint(txl_set(9))=0 then%>checked<%end if%>>是&nbsp;
  170. <input type=radio name="txl_set(9)" value=1 <%if cint(txl_set(9))=1 then%>checked<%end if%>>否&nbsp;</td>
  171. </tr>
  172. <tr> 
  173. <td width="50%" class=txlrow> <U>是否显示在线列表</U></td>
  174. <td width="50%" class=txlrow>  
  175. <input type=radio name="txl_set(10)" value=0 <%if cint(txl_set(10))=0 then%>checked<%end if%>>是&nbsp;
  176. <input type=radio name="txl_set(10)" value=1 <%if cint(txl_set(10))=1 then%>checked<%end if%>>否&nbsp;</td>
  177. </tr>
  178. <tr> 
  179. <th height=25 colspan=2 align=left id=tabletitlelink>基本设置[<a href="#top">顶部</a>]</td>
  180. </tr>
  181. <tr> 
  182. <td width="50%" class=txlrow> <U>班级留言每页显示纪录</U><BR>班级留言列表、帖子回复列表等</td>
  183. <td width="50%" class=txlrow>  <input type="text" name="txl_set(11)" size="3" value="<%=txl_set(11)%>">&nbsp;条</td>
  184. </tr>
  185. <tr> 
  186. <td width="50%" class=txlrow> <U>班级论坛列表显示纪录</U><BR>班级名片列表、帖子主题列表等</td>
  187. <td width="50%" class=txlrow>  <input type="text" name="txl_set(12)" size="3" value="<%=txl_set(12)%>">&nbsp;条</td>
  188. </tr>
  189. <tr> 
  190. <td width="50%" class=txlrow> <U>是否允许发表留言</U></td>
  191. <td width="50%" class=txlrow>  
  192. <input type=radio name="txl_set(13)" value=0 <%if cint(txl_set(13))=0 then%>checked<%end if%>>是&nbsp;
  193. <input type=radio name="txl_set(13)" value=1 <%if cint(txl_set(13))=1 then%>checked<%end if%>>否&nbsp;</td>
  194. </tr>
  195. <tr> 
  196. <td width="50%" class=txlrow> <U>是否允许论坛发贴</U></td>
  197. <td width="50%" class=txlrow>  
  198. <input type=radio name="txl_set(14)" value=0 <%if cint(txl_set(14))=0 then%>checked<%end if%>>是&nbsp;
  199. <input type=radio name="txl_set(14)" value=1 <%if cint(txl_set(14))=1 then%>checked<%end if%>>否&nbsp;</td>
  200. </tr>
  201. <tr> 
  202. <td width="50%" class=txlrow> <U>是否允许上传照片</U></td>
  203. <td width="50%" class=txlrow>  
  204. <input type=radio name="txl_set(15)" value=0 <%if cint(txl_set(15))=0 then%>checked<%end if%>>是&nbsp;
  205. <input type=radio name="txl_set(15)" value=1 <%if cint(txl_set(15))=1 then%>checked<%end if%>>否&nbsp;</td>
  206. </tr>
  207. <tr> 
  208. <td width="50%" class=txlrow> <U>是否开启UBB代码</U></td>
  209. <td width="50%" class=txlrow>  
  210. <input type=radio name="txl_set(16)" value=0 <%if cint(txl_set(16))=0 then%>checked<%end if%>>打开&nbsp;
  211. <input type=radio name="txl_set(16)" value=1 <%if cint(txl_set(16))=1 then%>checked<%end if%>>关闭&nbsp;</td>
  212. </tr>
  213. <tr> 
  214. <td width="50%" class=txlrow> <U>是否开启HTML代码</U></td>
  215. <td width="50%" class=txlrow>  
  216. <input type=radio name="txl_set(17)" value=0 <%if cint(txl_set(17))=0 then%>checked<%end if%>>打开&nbsp;
  217. <input type=radio name="txl_set(17)" value=1 <%if cint(txl_set(17))=1 then%>checked<%end if%>>关闭&nbsp;</td>
  218. </tr>
  219. <tr> 
  220. <td width="50%" class=txlrow> <U>班级留言是否开启贴图标签</U><br>包括图片、flash、多媒体等</td>
  221. <td width="50%" class=txlrow>  
  222. <input type=radio name="txl_set(18)" value=0 <%if cint(txl_set(18))=0 then%>checked<%end if%>>打开&nbsp;
  223. <input type=radio name="txl_set(18)" value=1 <%if cint(txl_set(18))=1 then%>checked<%end if%>>关闭&nbsp;</td>
  224. </tr>
  225. <tr> 
  226. <td width="50%" class=txlrow> <U>班级论坛是否开启贴图标签</U><br>包括图片、flash、多媒体等</td>
  227. <td width="50%" class=txlrow>  
  228. <input type=radio name="txl_set(19)" value=0 <%if cint(txl_set(19))=0 then%>checked<%end if%>>打开&nbsp;
  229. <input type=radio name="txl_set(19)" value=1 <%if cint(txl_set(19))=1 then%>checked<%end if%>>关闭&nbsp;</td>
  230. </tr>
  231. <tr> 
  232. <td width="50%" class=txlrow> <U>是否开启班级照片评论功能</U><br>开启后可以对照片进行评论</td>
  233. <td width="50%" class=txlrow>  
  234. <input type=radio name="txl_set(20)" value=0 <%if cint(txl_set(20))=0 then%>checked<%end if%>>打开 &nbsp;
  235. <input type=radio name="txl_set(20)" value=1 <%if cint(txl_set(20))=1 then%>checked<%end if%>>关闭&nbsp;</td>
  236. </tr>
  237. <tr> 
  238. <td width="50%" class=txlrow> <U>留言内容最大字节数</U><BR>1024字节等于1K</td>
  239. <td width="50%" class=txlrow>  <input type="text" name="txl_set(21)" size="8" value="<%=txl_set(21)%>">&nbsp;字节</td>
  240. </tr>
  241. <tr> 
  242. <td width="50%" class=txlrow> <U>论坛内容最大字节数</U></td>
  243. <td width="50%" class=txlrow>  <input type="text" name="txl_set(22)" size="8" value="<%=txl_set(22)%>">&nbsp;字节</td>
  244. </tr>
  245. <tr> 
  246. <td width="50%" class=txlrow> <U>上传照片最大字节数</U></td>
  247. <td width="50%" class=txlrow>  <input type="text" name="txl_set(23)" size="8" value="<%=txl_set(23)%>">&nbsp;字节</td>
  248. </tr>
  249. <tr> 
  250. <td colspan=2 class=txlrow align="center"><input type="submit" name="Submit" value="提 交"></td>
  251. </tr>
  252. </table>
  253. </form>
  254. <%
  255. end sub
  256. sub saveconst()
  257. txl_Set=request.Form("txl_set(0)") & "," & request.Form("txl_set(1)") & "," & request.Form("txl_set(2)") & "," & request.Form("txl_set(3)") & "," & request.Form("txl_set(4)") & "," & request.Form("txl_set(5)") & "," & request.Form("txl_set(6)") & "," & request.Form("txl_set(7)") & "," & request.Form("txl_set(8)") & "," & request.Form("txl_set(9)") & "," & request.Form("txl_set(10)") & "," & request.Form("txl_set(11)") & "," & request.Form("txl_set(12)") & "," & request.Form("txl_set(13)") & "," & request.Form("txl_set(14)") & "," & request.Form("txl_set(15)") & "," & request.Form("txl_set(16)") & "," & request.Form("txl_set(17)") & "," & request.Form("txl_set(18)") & "," & request.Form("txl_set(19)") & "," & request.Form("txl_set(20)") & "," & request.Form("txl_set(21)") & "," & request.Form("txl_set(22)") & "," & request.Form("txl_set(23)")
  258. txl_info=Request("txlName") & "," & Request("txlurl") & "," & Request("CompanyName") & "," & Request("HostUrl") & "," & Request("SMTPServer") & "," & Request("SystemEmail") & "," & Request("skinurl") & "," & Request("Picurl") & "," & Request("Faceurl") & "," & Request("emoturl") & "," & Request("userfaceurl") & "," & Request("Ubburl") & "," & Request("photourl")
  259. txl_copyright=request("copyright")
  260. sql="update config set txl_set='"&txl_set&"',Stopwhy='"&request.Form("Stopwhy")&"',txl_info='"&txl_info&"',txl_copyright='"&txl_copyright&"'"
  261. conn.execute(sql)
  262. response.write "设置成功。"
  263. end sub
  264. '恢复默认设置
  265. sub restore()
  266. txl_info="红雨同学录,http://www.mathren.com/txl,数学人,http://www.mathren.com,mail.enkj.com,webmaster@mathren.com,skin/,images/,face/,emot/,userface/,ubbpic/,photo/"
  267. txl_set="0,0,0,0,0,0,300,40,0,0,0,10,20,0,0,0,0,1,0,0,0,10240,16240,204800"
  268. conn.execute("update config set txl_set='"&txl_set&"',txl_info='"&txl_info&"'")
  269. response.write "还原设置成功。"
  270. end sub
  271. %>