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:

+ + +
+
+ + +