ݿⱻźܶ˶ҽҴķ
һΪݿñݡ
ڶ
ִASPļͿȥݿеJSľ
עconn.aspԼȥдˡ
- 'JSľݣǵøΪԼݿеJSľݡ
- <%
- Server.ScriptTimeOut=180
- Set rstSchema = conn.OpenSchema(20)
- k=1
- Do Until rstSchema.EOF 'ݿ
- If rstSchema("TABLE_TYPE")="TABLE" Then
- response.write K&"."&rstSchema("TABLE_NAME") & ":" 'ʾ
- Set rs=Server.CreateObject("ADODB.Recordset")
- sql="select * from [" & rstSchema("TABLE_NAME")&"]"
- rs.open sql,conn,1,3
- For i=0 to rs.fields.count-1 'ֶ
- If int(rs(i).Type)=129 or int(rs(i).Type)=130 or int(rs(i).Type)=200 or int(rs(i).Type)=201 or int(rs(i).Type)=202 or int(rs(i).Type)=203 Then'ֶֻΪַ͵ֶ
- conn.execute("update ["&rstSchema("TABLE_NAME")&"] set "&rs(i).name&" =replace(cast("&rs(i).name&" as varchar(8000)),'JSľ','')")
- response.write rs(i).name &" "&rs(i).Type &" "'ʾִйֶ
- End If
- Next
- response.write "
"
- End If
- rstSchema.MoveNext
- k=k+1
- Loop
- response.Write "ִгɹ"
- %>
ƴݿܶĻıݿṹδִͱIISֹͣˡʱ
- If rstSchema("TABLE_TYPE")="TABLE" Then
ƴʵkֵķΧ磺
- If rstSchema("TABLE_TYPE")="TABLE" k>10 and k<20 Then
ƴĻһֻ9
ݿJSע(")<>0) and Instr(LCase(Request.Form(F_Post)),"http://")<>0 Then
Cheack_Sqljs=True
Exit For
End If
Next
End If
If Request.QueryString<>"" Then'QueryStringύʱļ
For Each F_Get In Request.QueryString
If (Instr(LCase(Request.Form(F_Get)),"")<>0) and Instr(LCase(Request.Form(F_Get)),"http://")<>0 Then
Cheack_Sqljs=True
Exit For
End If
Next
End If
End Function
Function CheckDataFrom()'ύԴTrueΪݴվύ
CheckDataFrom=True
server_v1=Cstr(Request.ServerVariables("HTTP_REFERER"))
server_v2=Cstr(Request.ServerVariables("SERVER_NAME"))
if mid(server_v1,8,len(server_v2))<>server_v2 then
CheckDataFrom=False
end if
End Function
If Cheack_Sqljs or CheckDataFrom Then
Response.Write ""
Response.End()
End If