Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
code.asp
Package: haohj.rar [view]
Upload User: angela
Upload Date: 2022-05-11
Package Size: 853k
Code Size: 4k
Category:
Game Hook Crack
Development Platform:
ASP/ASPX
- <%
- '=====================================================================
- ' 文件名称:Admin_Caiji.Asp
- ' 更新日期:2007-09-25
- '=====================================================================
- ' Copyright 2007-2008 863sf.Cn - All Rights Reserved.
- '=====================================================================
- function htmlencode(String1)
- htmlencode=replace(String1,"'","")
- 'htmlencode=replace(htmlencode,"=","≡")
- 'htmlencode=replace(htmlencode,chr(13)&chr(10),"<br>")
- htmlencode=replace(htmlencode," ","")
- htmlencode=replace(htmlencode,"<","<")
- htmlencode=replace(htmlencode,">",">")
- end function
- function htmldecode(String1)
- htmldecode=replace(String1,chr(13),"<br>")
- end function
- Function GetRndPassword(PasswordLen)
- Dim Ran, i, strPassword
- strPassword = ""
- For i = 1 To PasswordLen
- Randomize
- Ran = CInt(Rnd * 2)
- Randomize
- If Ran = 0 Then
- Ran = CInt(Rnd * 25) + 97
- strPassword = strPassword & UCase(Chr(Ran))
- ElseIf Ran = 1 Then
- Ran = CInt(Rnd * 9)
- strPassword = strPassword & Ran
- ElseIf Ran = 2 Then
- Ran = CInt(Rnd * 25) + 97
- strPassword = strPassword & Chr(Ran)
- End If
- Next
- GetRndPassword = strPassword
- End Function
- '**************************************************
- '函数名:ReplaceBadChar
- '作 用:过滤非法的SQL字符
- '参 数:strChar-----要过滤的字符
- '返回值:过滤后的字符
- '**************************************************
- Public Function ReplaceBadChar(strChar)
- If strChar = "" Or IsNull(strChar) Then
- ReplaceBadChar = ""
- Exit Function
- End If
- Dim strBadChar, arrBadChar, tempChar, i
- strBadChar = "',%,^,&,?,(,),<,>,[,],{,},/,,;,:," & Chr(34) & "," & Chr(0) & ""
- arrBadChar = Split(strBadChar, ",")
- tempChar = strChar
- For i = 0 To UBound(arrBadChar)
- tempChar = Replace(tempChar, arrBadChar(i), "")
- Next
- ReplaceBadChar = tempChar
- End Function
- '***************************************************
- '检查组件是否已经安装
- '***************************************************
- Function IsObjInstalled(strClassString1)
- On Error Resume Next
- IsObjInstalled = False
- Err = 0
- Dim xTestObj
- Set xTestObj = Server.CreateObject(strClassString1)
- If 0 = Err Then IsObjInstalled = True
- Set xTestObj = Nothing
- Err = 0
- End Function
- '***************************************************
- '保存远程文件
- '***************************************************
- Function GetRemoteFiels(RemotePath, LocalPath, FileName)
- Dim strBody
- Dim FilePath
- On Error Resume Next
- strBody = GetBodyUrl(RemotePath)
- FilePath = Server.MapPath(LocalPath & GetFileName(RemotePath, FileName))
- '保存文件
- if SaveToFile(strBody, FilePath) = true and err.Number = 0 then
- GetRemoteFiles = true
- else
- GetRemoteFiles = false
- end if
- End Function
- Function GetBodyUrl(url)
- Dim Retrieval
- Set Retrieval = CreateObject("Microsoft.XMLHTTP")
- With Retrieval
- .Open "Get", url, False, "", ""
- .Send
- GetBodyUrl = .ResponseBody
- End With
- Set Retrieval = Nothing
- End Function
- Function GetFileName(RemotePath, FileName)
- 'Dim arrTmp
- Dim strFileExt
- arrTmp = Split(RemotePath, ".")
- 'strFileExt = arrTmp(UBound(arrTmp))
- GetFileName = FileName & ".html"
- End Function
- Function SaveToFile(Stream, FilePath)
- Dim objStream
- On Error Resume Next
- Set objStream = Server.CreateObject("ADODB.Stream")
- objStream.Type = 1
- objStream.Open
- objstream.write Stream
- objstream.SaveToFile FilePath, 2
- objstream.Close()
- Set objstream = Nothing
- if err.Number <> 0 then
- SaveToFile = false
- else
- SaveToFile = true
- end if
- End Function
- %>