⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edit.asp

📁 网辰在线编辑系统ASP版V1.0一个专门负责网上编辑的程序软件
💻 ASP
字号:
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=gb_2312-80">
<title>用户留言</title>
<style>
<!--
table{ font-family: 宋体; font-size: 12pt }
a{ font-family: 宋体; font-size: 12pt; color: rgb(0,32,64); text-decoration: none }
a:hover{ font-family: 宋体; color: rgb(255,0,0); text-decoration: underline }
a:visited{ color: rgb(128,0,0) }
-->
</style>
</head>
<body bgcolor="#FF8040">
<% '读文件
if Request.Cookies("password")="juchen" then 
function htmlencode2(str)
 dim result
 dim l
 if isNULL(str) then 
 htmlencode2=""
 exit function
 end if
 l=len(str)
 result=""
	dim i
	for i = 1 to l
	 select case mid(str,i,1)
	 case "<"
	 result=result+"&lt;"
	 case ">"
	 result=result+"&gt;"
	 case chr(34)
	 result=result+"&quot;"
	 case "&"
	 result=result+"&amp;"
	 case else
	 result=result+mid(str,i,1)
 end select
 next 
 htmlencode2=result
 end function
 whichfile=server.mappath(Request("path"))
 
Set fs = CreateObject("Scripting.FileSystemObject")
 
 Set thisfile = fs.OpenTextFile(whichfile, 1, False)
 counter=0
 thisline=htmlencode2(thisfile.readall)
 thisfile.Close
 set fs=nothing
 %>
<%if request("text")="" then%>

<form method="POST" action="edit.asp">
 <table border="0" width="700" cellpadding="0">
 <tr>
 <td width="100%" bgcolor="#FFDBCA"><div align="center"><center><p>【<a
 href="http://netspace.wojia.com"><font size="3">网辰</font></a>在线网页维护系统1.0】</td>
 </tr>
 <tr align="center">
 <td width="100%" bgcolor="#FFDBCA"><input type="text" name="path" size="90"
 value="<%=Request("path")%> "></td>
 </tr>
 <tr align="center">
 <td width="100%" bgcolor="#FFDBCA"><textarea rows="25" name="text" cols="90"><%=thisline%></textarea></td>
 </tr>
 <tr align="center">
 <td width="100%" bgcolor="#FFDBCA"><div align="center"><center><p><input type="submit"
 value="提交" name="B1"><input type="reset" value="复原" name="B2"></td>
 </tr>
 </table>
</form>
<%else
whichfile=server.mappath(Request("path"))
 Set fs = CreateObject("Scripting.FileSystemObject")
 Set outfile=fs.CreateTextFile(whichfile)
 outfile.WriteLine Request("text")
 outfile.close 
 set fs=nothing
Response.write "修改成功!你可以<a href='javascript:window.close();'>关闭本窗口</a>了"
end if
else
response.write "对不起!你的密码已经失效或者你输错了密码,请返回重输"
response.write "<a href='index.asp'>【返 回】</a>"
end if
%>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -