📄 host_edit.asp
字号:
<!--#include file="admin.asp"-->
<%
if Trim(Request.QueryString("option"))="save" then
chk_admin_login(2)
if Request.Form("asp")="" or Request.Form("ifreg")="" or Request.Form("onlymail")="" or Request.Form("iptime")="" or Request.Form("active")="" or Request.Form("ftpreg")="" or Request.Form("ftp")="" or Request.Form("domain")="" or Request.Form("ifupload")="" then
response.redirect("../error.asp?error=illegal")
response.end
end if
if Request.Form("ftp")=True then
if not IsObjInstalled("XingerServU.Control") Then
Response.Write "<script>alert('您的服务器没有安装FTP功能插件,请关闭直接开通FTP功能!');location.href='javascript:history.back()'</script>"
Response.End
end if
end if
rs.open "select * from [host] where id="&request("id"),conn,1,3
rs("name")=Trim(Request.Form("name"))
rs("type")=Trim(Request.Form("type"))
rs("asp")=Trim(Request.Form("asp"))
rs("space")=Request.Form("space")
rs("userdir")=Request.Form("userdir")
rs("bakfolder")=Request.Form("bakfolder")
rs("userurl")=Request.Form("userurl")
rs("content")=server.htmlencode(Trim(Request("content")))
rs("img")=Trim(Request.Form("img"))
rs("price")=Trim(Request.Form("price"))
rs("point")=Trim(Request.Form("point"))
rs("usedays")=Trim(Request.Form("usedays"))
rs("ifreg")=Trim(Request.Form("ifreg"))
rs("onlymail")=Trim(Request.Form("onlymail"))
rs("iptime")=Trim(Request.Form("iptime"))
rs("active")=Trim(Request.Form("active"))
rs("dayreg")=Trim(Request.Form("dayreg"))
rs("maxreg")=Trim(Request.Form("maxreg"))
rs("ftpreg")=Trim(Request.Form("ftpreg"))
rs("ftp")=Trim(Request.Form("ftp"))
rs("html")=Trim(Request.Form("html"))
rs("domain")=Trim(Request.Form("domain"))
rs("ifupload")=Trim(Request.Form("ifupload"))
rs("uptype")=Trim(Request.Form("uptype"))
rs("filecount")=Trim(Request.Form("filecount"))
rs("filetype")=Trim(Request.Form("filetype"))
rs("uploadsize")=Trim(Request.Form("uploadsize"))
rs("badcode")=Trim(Request.Form("badcode"))
rs.update
rs.close
response.write"<script>alert('修改成功!');location.href='host_admin.asp'</script>"
end if
id=request.querystring("id")
rs.Open "Select * From [host] where id="&id, conn,1,3
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>:::管理页面:::</title>
<LINK href="../css/admin.css" rel=stylesheet type=text/css>
<script language="JavaScript" src="../js/check.js"></script>
</head>
<body >
<table width="650" border="1" align="center" cellpadding="4" cellspacing="0" class="table-line">
<form name="form1" method="post" action="?option=save" onSubmit="return check_input()">
<input type=hidden name=id value=<%=id%>>
<tr align="center">
<td colspan="2" class="td-title-color"><table border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="shadow">修改空间类型</td>
</tr>
</table> </td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td width="100">空间名称:</td>
<td width="451"><input name="name" type="text" value="<%=rs("name")%>"> </td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td>空间类型:</td>
<td><select name="type">
<option value="free" <%if rs("type")="free" then%>selected<%end if%>>免费空间</option>
<option value="vip" <%if rs("type")="vip" then%>selected<%end if%>>收费空间</option>
</select></td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td>ASP权限:</td>
<td><input type="radio" name="asp" value="True" <%if rs("asp")=True then response.write "checked"%>>
打开
<input type="radio" name="asp" value="False" <%if rs("asp")=False then response.write "checked"%>>
关闭 </td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td>空间大小:</td>
<td><input name="space" type="text" value="<%=rs("space")%>">
M (只填写数字) </td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td>存储路径:</td>
<td><input name="userdir" type="text" value="<%=rs("userdir")%>" size="30">
所在服务器的物理路径,如:E:\web\home\ </td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td>备份路径:</td>
<td><input name="bakfolder" type="text" value="<%=rs("bakfolder")%>" size="30">
*便于在必要时恢复数据,格式同上↑</td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td>空间域名:</td>
<td><input name="userurl" type="text" value="<%=rs("userurl")%>" size="30">
该类型空间的域名前缀</td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td>UBB代码:</td>
<td><script src=../Inc/ubbcode.js></script>
<!--#include file="../inc/ubb.inc" --></td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td>详细介绍:</td>
<td><textarea name="content" cols="50" rows="5"><%=rs("content")%></textarea>
</td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td>图标:</td>
<td><input name="img" type="text" value="<%=rs("img")%>" size="30"></td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td>价格:</td>
<td><input name="price" type="text" size="10" value="<%=rs("price")%>">
元/年 (只填写数字,免费空间填"0"<font color="#FF0000">)</font></td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td>虚拟货币点数:</td>
<td><input name="point" type="text" size="10" value="<%=rs("point")%>">
(用户可通过网络虚拟货币购买/升级此类型空间,必须为数字)</td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td height="30">可使用天数:</td>
<td height="23"><input name="usedays" type="text" size="10" value="<%=rs("usedays")%>">
天 (填"0"表示不限 如果是收费空间,建议填写365,表示一年) </td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td height="30">是否关闭用户注册:</td>
<td height="23"><input type="radio" name="ifreg" value="True" <%if rs("ifreg")=True then response.write "checked"%>>
打开
<input type="radio" name="ifreg" value="False" <%if rs("ifreg")=False then response.write "checked"%>>
关闭 </td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td height="30">一个E-mail只能注册一个帐号</td>
<td height="23"><input type="radio" name="onlymail" value="1" <%if rs("onlymail")=1 then response.write "checked"%>>
打开
<input type="radio" name="onlymail" value="0" <%if rs("onlymail")=0 then response.write "checked"%>>
关闭 </td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td height="30">同一IP每天只可注册一次</td>
<td height="23"><input type="radio" name="iptime" value="1" <%if rs("iptime")=1 then response.write "checked"%>>
打开
<input type="radio" name="iptime" value="0" <%if rs("iptime")=0 then response.write "checked"%>>
关闭 </td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td height="30">每天允许注册用户数:</td>
<td height="23"><input name="dayreg" type="text" size="12" value="<%=rs("dayreg")%>">
(填"0"表示不限 ) </td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td>系统总允许注册用户数:</td>
<td><input name="maxreg" type="text" size="12" value="<%=rs("maxreg")%>">
(填"0"表示不限 ) </td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td>开通方式:</td>
<td><input type=radio name=active value=1 <%if rs("active")=1 then response.write "checked"%>>
即时开通
<input type=radio name=active value=0 <%if rs("active")=0 then response.write "checked"%>>
管理员审核</td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td>FTP申请权限:</td>
<td><input type=radio name=ftpreg value=True <%if rs("ftpreg")=True then response.write "checked"%>>
打开
<input type=radio name=ftpreg value=False <%if rs("ftpreg")=False then response.write "checked"%>>
关闭</td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td>是否直接开通FTP:</td>
<td><input type=radio name=ftp value=True <%if rs("ftp")=True then response.write "checked"%>>
是
<input type=radio name=ftp value=False <%if rs("ftp")=False then response.write "checked"%>>
否
</td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td height="23">HTML编辑器:</td>
<td height="23"><input type=radio name=html value=True <%if rs("html")=True then response.write "checked"%>>
打开
<input type=radio name=html value=False <%if rs("html")=False then response.write "checked"%>>
关闭</td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td height="23">二级域名权限:</td>
<td height="23"><input type=radio name=domain value=True <%if rs("domain")=True then response.write "checked"%>>
打开
<input type=radio name=domain value=False <%if rs("domain")=False then response.write "checked"%>>
关闭 (如在虚拟主机上,请选择"关闭") </td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td height="23">用户WEB上传:</td>
<td height="23"> <input type="radio" name="ifupload" value="True" <%if rs("ifupload")=True then response.write "checked"%>>
打开
<input type="radio" name="ifupload" value="False" <%if rs("ifupload")=False then response.write "checked"%>>
关闭 </td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td height="23">文件上传组件:</td>
<td height="23"><select name="uptype">
<option value="">请选择</option>
<option value="0" <%if rs("uptype")="0" then%>selected<%end if%>>Asp Upload</option>
<option value="1" <%if rs("uptype")="1" then%>selected<%end if%>>FSO</option>
<option value="2" <%if rs("uptype")="2" then%>selected<%end if%>>无组件上传</option>
</select> 速度分别为:快、中、慢</td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td height="23">每次上传文件个数:</td>
<td height="23"><input name="filecount" type="text" id="filecount" size="10" value="<%=rs("filecount")%>">
个(填数字,建议在10-20之间) </td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td height="23">禁止的文件类型:<strong></strong></td>
<td height="23"><input name="filetype" type="text" size="40" value="<%=rs("filetype")%>">
如:<font color="#FF0000">asp|exe|bat</font>,多个用"|"'分隔</td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td height="23">单个文件允许的大小:</td>
<td height="23"><input name="uploadsize" type="text" size="10" value="<%=rs("uploadsize")%>">
单位<font color="#FF0000">KB</font> (1M=1024KB,建议≤2M)</td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td height="23">过滤非法字符或代码:</td>
<td height="23"><textarea name="badcode" cols="50" rows="5"><%=rs("badcode")%></textarea>
多个用"|"'分隔</td>
</tr>
<tr align="center">
<td colspan="2"><input type="submit" name="Submit" value="确定更改"></td>
</tr></form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -