From 87d2dc052439f3b7672fc79dd01e72ffaa5255b1 Mon Sep 17 00:00:00 2001 From: SuperDev Date: Thu, 22 Dec 2022 12:08:18 -0600 Subject: [PATCH] Create download.php --- download.php | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 download.php diff --git a/download.php b/download.php new file mode 100644 index 0000000..a996329 --- /dev/null +++ b/download.php @@ -0,0 +1,90 @@ += 0) && ($bytes < $kb)) { +return $bytes . ' B'; + +} elseif (($bytes >= $kb) && ($bytes < $mb)) { +return ceil($bytes / $kb) . ' KB'; + +} elseif (($bytes >= $mb) && ($bytes < $gb)) { +return ceil($bytes / $mb) . ' MB'; + +} elseif (($bytes >= $gb) && ($bytes < $tb)) { +return ceil($bytes / $gb) . ' GB'; + +} elseif ($bytes >= $tb) { +return ceil($bytes / $tb) . ' TB'; +} else { +return $bytes . ' B'; +} +} + +$maxsize = max_size; + +// Get uploaded file +$file = $_GET['file']; +$fileURL = base64_decode($file); + + +$core = new Core(); +?> + + + + + + <?=app_title?> - Download + + + +
+ + +
+

File selected:

+ +
    +
  • Report files:
  • +
+
+
+ + +