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;