= 1073741824) { $bytes = number_format($bytes / 1073741824, 2) . ' GB'; } elseif ($bytes >= 1048576) { $bytes = number_format($bytes / 1048576, 2) . ' MB'; } elseif ($bytes >= 1024) { $bytes = number_format($bytes / 1024, 2) . ' KB'; } elseif ($bytes > 1) { $bytes = $bytes . ' bytes'; } elseif ($bytes == 1) { $bytes = $bytes . ' byte'; } else { $bytes = '0 bytes'; } return $bytes; } ?>
ArOZβ'; }else if (isset($_GET['mode']) == true && $_GET['mode'] == "pwa"){ $pwa = "true"; echo '
ArOZβ
'; }else{ echo '
ArOZβ
'; }?>
Music Bank
'; } ?>
Your browser does not support the audio element.
NOW PLAYING ||
100%
0:00/0:00
Single
Internal Storage
'.$storage.''; } } ?>
%AUDIO_FILE_NAME%
%FILE_SIZE% / %FILE_FORMAT%
'; $extStorageMode = "false"; $extStorageFolder = ""; $files = array(); $filepath = "uploads/"; foreach (glob($filepath . "*.{mp3,wav,flac,aac}", GLOB_BRACE) as $file) { $files[] = $file; } $count = 0; $songlist = []; $keyword = ""; if(isset($_GET['search']) == true && $_GET['search'] != ""){ $keyword = $_GET['search']; $loweredkeyword = mb_strtolower($keyword); foreach($files as $file) { $ext = pathinfo($file, PATHINFO_EXTENSION); if(substr(basename($file),0,5) === "inith"){ $filename = str_replace("." . $ext,"",str_replace("inith","",basename($file))); $filename = hex2bin($filename); }else{ $filename = basename($file); } if (strpos(mb_strtolower($filename),$loweredkeyword) !== false){ array_push($songlist,[$file,$filename,$count]); $box = str_replace("%AUDIO_FILE_NAME%",str_replace("'","",$filename),$template); $box = str_replace("%FILE_SIZE%",formatSizeUnits(filesize($file)),$box); $box = str_replace("%RAW_FILENAME%",$file,$box); $box = str_replace("%ID%","AudioID" + (string)$count,$box); $box = str_replace("%FILE_FORMAT%",$ext,$box); echo $box; $count += 1; } } if ($count == 0){ //No Search Results echo '
No matched search results.
Maybe you can try upload some new audio files?
Upload
'; } }elseif (isset($_GET['extstorage']) && $_GET['extstorage'] != "" && !(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')){ //Newly added features in 27-8-2018 for accessing audio in external storage devices $files = array(); $filepath = "/media/" . $_GET['extstorage'] . "/Audio/"; $extStorageMode = "true"; $extStorageFolder = $_GET['extstorage']; foreach (glob($filepath . "*.{mp3,wav,flac,aac}", GLOB_BRACE) as $file) { $files[] = $file; } $count = 0; $songlist = []; foreach($files as $file) { $ext = pathinfo($file, PATHINFO_EXTENSION); if(substr(basename($file),0,5) === "inith"){ $filename = str_replace("." . $ext,"",str_replace("inith","",basename($file))); $filename = hex2bin($filename); }else{ $filename = basename($file); } array_push($songlist,[$file,$filename,$count]); $box = str_replace("%AUDIO_FILE_NAME%",str_replace("'","",$filename),$template); $box = str_replace("%FILE_SIZE%",formatSizeUnits(filesize($file)),$box); $box = str_replace("%RAW_FILENAME%",$file,$box); $box = str_replace("%ID%","AudioID" + (string)$count,$box); $box = str_replace("%FILE_FORMAT%",$ext,$box); echo $box; $count += 1; } }else{ foreach($files as $file) { $ext = pathinfo($file, PATHINFO_EXTENSION); if(substr(basename($file),0,5) === "inith"){ $filename = str_replace("." . $ext,"",str_replace("inith","",basename($file))); $filename = hex2bin($filename); }else{ $filename = basename($file); } array_push($songlist,[$file,$filename,$count]); $box = str_replace("%AUDIO_FILE_NAME%",str_replace("'","",$filename),$template); $box = str_replace("%FILE_SIZE%",formatSizeUnits(filesize($file)),$box); $box = str_replace("%RAW_FILENAME%",$file,$box); $box = str_replace("%ID%","AudioID" . ((string)$count),$box); $box = str_replace("%FILE_FORMAT%",$ext,$box); echo $box; $count += 1; } } ?>
Back
Update List
Search
'; }else{ echo '
'; } ?>
Upload
Download
Download Mode Enabled.
Disable