userdown.asp
来自「全站生成htm静态页面」· ASP 代码 · 共 87 行
ASP
87 行
<%
function Checkin(s)
s=trim(s)
s=replace(s," ","&nbsp;")
s=replace(s,"'","&#39;")
s=replace(s,"""","&quot;")
s=replace(s,"<","&lt;")
s=replace(s,">","&gt;")
Checkin=s
end function
function IsValidEmail(email)
IsValidEmail = true
names = Split(email, "@")
if UBound(names) <> 1 then
IsValidEmail = false
exit function
end if
for each name in names
if Len(name) <= 0 then
IsValidEmail = false
exit function
end if
for i = 1 to Len(name)
c = Lcase(Mid(name, i, 1))
if InStr("abcdefghijklmnopqrstuvwxyz_-.", c) <= 0 and not IsNumeric(c) then
IsValidEmail = false
exit function
end if
next
if Left(name, 1) = "." or Right(name, 1) = "." then
IsValidEmail = false
exit function
end if
next
if InStr(names(1), ".") <= 0 then
IsValidEmail = false
exit function
end if
i = Len(names(1)) - InStrRev(names(1), ".")
if i <> 2 and i <> 3 then
IsValidEmail = false
exit function
end if
if InStr(email, "..") > 0 then
IsValidEmail = false
end if
end function
sub error()
%>
<html><head>
<title>音乐频道-错误提示</title>
<link rel=stylesheet href=images/css.css>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style></head>
<body bordercolordark="#000000">
<div align="center">
<table width="100%" height="100%" border="0" cellpadding="15" cellspacing="6" bgcolor="#666666">
<tr>
<td align="center" valign="top" nowrap bgcolor="#FFFFFF" hight="100%"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"> </td>
</tr>
<tr>
<td height="63" align="center"><font color="#FF0000">...::: 出错啦!!:::...</font><br>
<%=errmsg%>
<p><b><a href="javascript:top.window.close();">...:::
点 此 关 闭 窗 口 :::...</a></b> </td>
</tr>
</table></td>
</tr>
</table>
</div>
</body>
</html>
<%
end sub
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?