Add error reporting option

This commit is contained in:
2026-08-22 15:28:43 +02:00
parent 802ca07cdc
commit 4e0a17ef55
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -5,6 +5,7 @@ $recalculate_cooldown_seconds = 5;
$show_actions = true;
$auto_recalculate_seconds = 86400;
$absolute_root = "/";
$error_reporting = false;
$disks = [
"Root" => [
+5
View File
@@ -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;