From 4d4308c46d4f7801c657cc79d2243e1a81831334 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Fri, 27 Oct 2023 22:29:56 +0200 Subject: Updated 32 files, added 279 files, deleted 3 files and renamed 14 files (automated) --- app/ui/download.php | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 app/ui/download.php (limited to 'app/ui/download.php') diff --git a/app/ui/download.php b/app/ui/download.php new file mode 100644 index 0000000..13f76b0 --- /dev/null +++ b/app/ui/download.php @@ -0,0 +1,74 @@ +", ":", "\"", "\\", "|", "?", "*"], "-", $song["artist"] . " - " . $song["title"]); + +function getSize($bytes) { + if ($bytes < 1024) { + return $bytes; + } + + if ($bytes < 1024**2) { + return round($bytes / 1024, 1) . " KB"; + } + + if ($bytes < 1024**3) { + return round($bytes / 1024**2, 1) . " MB"; + } + + return round($bytes / 1024**3, 1) . " GB"; +} + +?> + + + + + + + + download + + + + + + + + + + + +
+

+
+ +

+ +

Select the version of the song you would like to download:

+ +
+ + + + \ No newline at end of file -- cgit