"; } else { echo "Unable to delete " . $file . ".
"; } break; case 'copy': $src = $_GET ['src']; $dst = $_POST ['dst']; if (empty ($dst)) { echo "
\n"; } else { if (copy($src, $dst)) { echo "File copied successfully.\n"; } else { echo "Unable to copy " . $src . ".
\n"; } } break; case 'move': $src = $_GET ['src']; $dst = $_POST ['dst']; if (empty ($dst)) { echo "
\n"; } else { if (rename($src, $dst)) { echo "File moved successfully.\n"; } else { echo "Unable to move " . $src . ".
\n"; } } break; case 'rename': $old = $_GET ['old']; $new = $_POST ['new']; if (empty ($new)) { echo "
\n"; } else { if (rename($old, $new)) { echo "File/Directory renamed successfully.\n"; } else { echo "Unable to rename " . $old . ".
\n"; } } break; case 'rmdir': $rm = $_GET ['rm']; if (rmdir($rm)) { echo "Directory removed successfully.
\n"; } else { echo "Unable to remove " . $rm . ".
\n"; } break; case 'upload': $temp = $_FILES['upload_file']['tmp_name']; $file = basename($_FILES['upload_file']['name']); if (!empty ($file)) { if (move_uploaded_file($temp, $file)) { echo "File uploaded successfully.
\n"; unlink($temp); } else { echo "Unable to upload " . $file . ".
\n"; } } break; } clearstatcache (); echo "
\n\n"; echo "
".$file." | "; echo "".$items_num." Items | "; echo "Remove directory | "; echo "- | "; echo "- | "; echo "Rename directory |
".$file." | "; echo "".$size." KB | "; echo "Delete | "; echo "Copy | "; echo "Move | "; echo "Remame |