Time of Update: 2017-01-13
串連資料庫VBS:<%dim conndim dbpathdim connstrSet conn =Server.CreateObject("adodb.connection")dbpath=Server.MapPath("data.mdb")connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&dbpathconn.open connstr%>JS:<
Time of Update: 2017-01-13
簡單方法一server_v1=Cstr(Request.ServerVariables("HTTP_REFERER"))server_v2=Cstr(Request.ServerVariables("SERVER_NAME"))if mid(server_v1,8,len(server_v2))<>server_v2 thenresponse.write
Time of Update: 2017-01-13
Dim Fso,FsoFile,FileType,FileSize,FileTime,Path Dim Dir Action=Trim(Request("Action")) Set Fso=Server.CreateObject("Scripting.FileSystemObject") IsErr If Action = "Del" then Call
Time of Update: 2017-01-13
asp 經典資料庫連接檔案 支援access,mssql serverDim Conn,ConnStringSub OpenConn() If DB_Type = "Access" Then ConnString = "Provider = Microsoft.Jet.OLEDB.4.0;Data Source = " & Server.MapPath(AccPath) ElseIf DB_Type = &
Time of Update: 2017-01-13
<%Option ExplicitResponse.buffer = TrueNumCode (8) '註:1,4,7,10,13,16為彩色背景型 2,5,8,11,14,17為黑白型 3,6,9,12,15,18為噪點型Function NumCode(CodeType) Response.Expires = -1 Response.AddHeader "Pragma",
Time of Update: 2017-01-13
<%'======================================================' 檔案名稱 : Inc/ClsJpeg.asp' 檔案作用 : 浮水印+縮減類' 最後更新 : 2008.08.02'======================================================Dim
Time of Update: 2017-01-13
<html><head><title>集合屬性應用</title></head><body><p>請選擇要操作的項目,提交資料後,將會顯示您選擇的項目。<form method="POST" action="set.asp"><br>1、<input type="checkbox"
Time of Update: 2017-01-13
asp sql超級防注入代碼<%Function Safe(str)Dim s_BadStr, n, is_BadStr = "' &<>?%,;)`~!@#$^*{}[]|/+-="&Chr(34)&Chr(9)&Chr(32)n = Len(s_BadStr)Safe = TrueFor i = 1 To nIf Instr(str, Mid(s_BadStr, i, 1)) > 0 ThenSafe =
Time of Update: 2017-01-13
asp下載遠程伺服器檔案[rar,jpg,gif,zip,png]< % function downfilea(d_target, s_target) On Error Resume Next dim myhttp, objstream &
Time of Update: 2017-01-13
function encrypt(ecode) Dim texts dim i for i=1 to len(ecode) texts=texts & chr(asc(mid(ecode,i,1))+i) next encrypt = texts end function function decrypt(dcode) dim texts dim i for i=1 to len(dcode) texts=texts &
Time of Update: 2017-01-13
Function GetPage(Path) t = GetBody(Path) GetPage=BytesToBstr(t,"UTF-8")End functionFunction GetPage2(Path) t =
Time of Update: 2017-01-13
Function RemoveSpan(byval strContent) Dim objReg ,strTmp If strContent="" OR ISNull(strContent) Then Exit Function Set objReg=new RegExp objReg.IgnoreCase
Time of Update: 2017-01-13
Thesoft=Request.ServerVariables("HTTP_USER_AGENT")If instr(thesoft,"Windows NT 5.0") Then vOS="Win2000"ElseIf instr(thesoft,"Windows NT 5.2") Then vOs="Win2003"ElseIf
Time of Update: 2017-01-13
'============================== '函 數 名:ShowPageCode '作 用:顯示頁碼 '參 數:連結PageUrl,當前頁Nows,記錄數AllCount,每頁數量Sizes,總頁數AllPage '============================== Public Function
Time of Update: 2017-01-13
'============================== '函 數 名:BytesToBstr '作 用:轉換編碼函數 '參 數:解碼字串Body,編碼Cset '============================== Private Function BytesToBstr(Body,Cset) Set
Time of Update: 2017-01-13
'============================== '函 數 名:GetHttpPage '作 用:擷取頁面原始碼函數 '參 數:採集連結HttpUrl '============================== Public Function GetHttpPage(HttpUrl) If
Time of Update: 2017-01-13
<!--#include file="upload_wj.inc"--><style>td{font-size:9pt;line-height:120%;color:#353535} body{font-size:9pt;line-height:120%}a:link { color: #000000; text-decoration:
Time of Update: 2017-01-13
<%@ LANGUAGE = VBScript CodePage = 936%><!--#include file="safe.asp" --><%On Error Resume NextResponse.Buffer = Truedim startimedim conndim connstrdim sqldatabase,sql_pass_word,sql_User_ID,sql_Data_Sourcestartime=timer()Set
Time of Update: 2017-01-13
<%const ImagePath="images/"function UBBCode(strContent)strContent= FilterJS(strContent)dim redim po,iidim reContentSet re=new RegExpre.IgnoreCase
Time of Update: 2017-01-13
<%function