From 4e0a17ef5540122c485d8f34cf9f88b06923b3ec Mon Sep 17 00:00:00 2001 From: Thayol Date: Sat, 22 Aug 2026 15:28:43 +0200 Subject: [PATCH] Add error reporting option --- config.php.example | 1 + index.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/config.php.example b/config.php.example index bdbaddf..0a66d9a 100644 --- a/config.php.example +++ b/config.php.example @@ -5,6 +5,7 @@ $recalculate_cooldown_seconds = 5; $show_actions = true; $auto_recalculate_seconds = 86400; $absolute_root = "/"; +$error_reporting = false; $disks = [ "Root" => [ diff --git a/index.php b/index.php index 57ed8c9..6ffa2c8 100644 --- a/index.php +++ b/index.php @@ -2,6 +2,11 @@ require "config.php"; +if ($error_reporting) { + error_reporting(E_ALL); + ini_set('display_errors', 1); +} + if (isset($_GET["recalculate"])) { if (file_exists($stats_file)) { $time = json_decode(file_get_contents($stats_file), true)["time"] ?? 0;