📄 pollvalueok.asp
字号:
<%@ LANGUAGE=VBScript%>
<%Server.ScriptTimeout=1000
Response.Expires=0
if Session("a_c_user_name")="" then
Response.write "<b>[操作失败]</b><p>您尚未登录(或已经超时退出),不能进行此操作!"
Response.end
end if
if Session("a_c_user_level")<10 then
Response.Write "<b>[操作失败]</b><p>您没有更改投票最低经验值的权限!"
Response.End
end if
Set fs=CreateObject("Scripting.FileSystemObject")
pollfile=Server.Mappath("pollending.asp")
Set thisfile = fs.OpenTextFile(pollfile,1,False)
Dim poll()
count=0
do while not thisfile.AtEndOfStream
thisline=thisfile.Readline
Redim preserve poll(count)
poll(count)=thisline
count=count+1
loop
thisfile.close
downvalue=Trim(Request.Form("downvalue"))
if IsNumeric(downvalue)=false then
Response.write "<b>[操作失败]</b><p>必须输入数值!<a href=javascript:history.go(-1)>【返回】</a>"
Response.end
end if
if downvalue="" then downvalue=0
if downvalue<0 then
Response.write "<b>[操作失败]</b><p>经验值不能小于0!<a href=javascript:history.go(-1)>【返回】</a>"
Response.end
end if
set thisfile=fs.CreateTextFile(pollfile)
thisfile.WriteLine poll(0)
thisfile.WriteLine poll(1)
thisfile.WriteLine poll(2)
thisfile.WriteLine downvalue
for i=4 to count-1
thisfile.WriteLine poll(i)
next
Set thisfile=nothing
Set fs=nothing%><html>
<head>
<title>更改投票最低经验值</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type='text/css'>
<!--
.p9 {line-height: 150%; font-size: 9pt;}
.p12 {line-height: 150%; font-size: 12pt;}
body {line-height: 150%;font-size : 12pt;}
td {line-height: 150%;font-size : 12pt;}
A {text-decoration: none;}
A:Hover {text-decoration : none;}
a:visited { color: #0000FF}
-->
</style>
</head>
<body bgcolor="FFFFFF">
<h1 align="center"><font color="0099FF">【更改投票最低经验值】</font></h1>
<hr noshade size="1" color=009900>
<p><b>[操作完成]</b></p>
<blockquote>
<p>已经将投票最低经验值更改为:<font color=FF0000><%=downvalue%></font><a href="javascript:history.go(-2)">【返回】</a></p>
</blockquote>
<hr noshade size="1" color=009900>
<div align="center" class="p9"><script src="use.asp"></script> <script src="sn.asp"></script><br><script src="copyright.asp"></script></div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -