aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xaud/index.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/aud/index.php b/aud/index.php
index 2aa9e8e..e09a770 100755
--- a/aud/index.php
+++ b/aud/index.php
@@ -8,9 +8,9 @@
<?php
include("../seasonal.php");
- ini_set('display_errors', 1);
- ini_set('display_startup_errors', 1);
- error_reporting(E_ALL);
+ // ini_set('display_errors', 1);
+ // ini_set('display_startup_errors', 1);
+ // error_reporting(E_ALL);
?>
<style>
article {
@@ -40,7 +40,7 @@
// Should display filename - and date of creation and id3 comment if possible.
function test_audio($name) { // Returns true if a file is an mp3, false otherwise
- return (strpos($name, ".mp3") > 0);
+ return (preg_match('/\.(mp3|ogg|opus|wav|flac|m4a)/', $name) > 0);
}
$audiodir = "../../data/deeptwisty/aud";