diff options
| -rwxr-xr-x | aud/index.php | 10 | ||||
| -rwxr-xr-x | img/index.php | 11 |
2 files changed, 14 insertions, 7 deletions
diff --git a/aud/index.php b/aud/index.php index 4584166..bfcef6e 100755 --- a/aud/index.php +++ b/aud/index.php @@ -5,7 +5,13 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>/log/aud</title> <link href="../style.css" rel="stylesheet" type="text/css" media="all"> - <?php include("../seasonal.php"); ?> + <?php + include("../seasonal.php"); + + ini_set('display_errors', 1); + ini_set('display_startup_errors', 1); + error_reporting(E_ALL); + ?> <style> article { display: flex; @@ -40,7 +46,7 @@ $files = array_filter(scandir("../../data/deeptwisty/aud"), "test_audio"); usort($files, function($a, $b) { // Sort files by modification date of the files - return filectime("$b") - filectime("$a"); + return filemtime("$b") - filemtime("$a"); }); foreach($files as $fi) { diff --git a/img/index.php b/img/index.php index 0240275..5e62830 100755 --- a/img/index.php +++ b/img/index.php @@ -5,11 +5,12 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>/log/img</title> <link href="../style.css" rel="stylesheet" type="text/css" media="all"> - <?php include("../seasonal.php"); - - ini_set('display_errors', 1); -ini_set('display_startup_errors', 1); -error_reporting(E_ALL);?> + <?php + include("../seasonal.php"); + // ini_set('display_errors', 1); + // ini_set('display_startup_errors', 1); + // error_reporting(E_ALL); + ?> <style> .dir { padding: 1rem; |
