📄 admindeptedit.asp
字号:
<!--#include file=../conn.asp-->
<!--#include file=cookies.asp-->
<title>编辑公司帐号</title>
<%
function IsValidEmail(email)
dim names, name, i, c
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
dim sql
dim rs,id,dianhua
dim username,bmmc,fzr,fzrmail
username=request.cookies("ijob")("comid")
if request("id")="" then
response.write "<br>"+"<li>id号码为空,你试图进行不合法的操作!请注意你的行为!"
response.end
else
id=trim(request("id"))
end if
if Instr(request("id"),"=")>0 or Instr(request("id"),"%")>0 or Instr(request("id"),chr(32))>0 or Instr(request("id"),"?")>0 or Instr(request("id"),"&")>0 or Instr(request("id"),";")>0 or Instr(request("id"),",")>0 or Instr(request("id"),"'")>0 or Instr(request("id"),",")>0 or Instr(request("id"),chr(34))>0 or Instr(request("id"),chr(9))>0 or Instr(request("id"),"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -