= 1024) { $size /= 1024; $counter++; } return round($size, 2)." ".$derp[$counter]; } function directoryToArray($directory, $recursive, $listDirs, $listFiles, $exclude = '') { $arrayItems = array(); $skipByExclude = false; $handle = opendir($directory); if ($handle) { while (false !== ($file = readdir($handle))) { preg_match("/(^(([\.]){1,2})$|(\.(svn|git|md))|(Thumbs\.db|\.DS_STORE))$/iu", $file, $skip); if($exclude){ preg_match($exclude, $file, $skipByExclude); } if (!$skip && !$skipByExclude) { if (is_dir($directory. DIRECTORY_SEPARATOR . $file)) { if($recursive) { $arrayItems = array_merge($arrayItems, directoryToArray($directory. DIRECTORY_SEPARATOR . $file, $recursive, $listDirs, $listFiles, $exclude)); } if($listDirs){ $file = $directory . DIRECTORY_SEPARATOR . $file; $arrayItems[] = $file; } } else { if($listFiles){ $file = $directory . DIRECTORY_SEPARATOR . $file; $arrayItems[] = $file; } } } } closedir($handle); } usort($arrayItems, function($a, $b) { return filemtime($a) < filemtime($b); }); return $arrayItems; } ?> Music //synert
bandcamp

discography

written while i was in bristol after finishing uni
bristol ep
put together during my third year of uni, as a means of experimenting with music
uni jams ep
made in 24 hours for a game jam
phantom funk

soundcloud

demos & experiments

'; } $box_exists = 1; //now create the new one echo '
'; } echo "".str_replace($pre."/", "", $files[$b])." - ".returnSize(filesize($files[$b]))."
"; } if($b == count($files) - 1) { echo '
'; } } } ?>