Archived
Add error reporting option
This commit is contained in:
@@ -5,6 +5,7 @@ $recalculate_cooldown_seconds = 5;
|
|||||||
$show_actions = true;
|
$show_actions = true;
|
||||||
$auto_recalculate_seconds = 86400;
|
$auto_recalculate_seconds = 86400;
|
||||||
$absolute_root = "/";
|
$absolute_root = "/";
|
||||||
|
$error_reporting = false;
|
||||||
|
|
||||||
$disks = [
|
$disks = [
|
||||||
"Root" => [
|
"Root" => [
|
||||||
|
|||||||
@@ -2,6 +2,11 @@
|
|||||||
|
|
||||||
require "config.php";
|
require "config.php";
|
||||||
|
|
||||||
|
if ($error_reporting) {
|
||||||
|
error_reporting(E_ALL);
|
||||||
|
ini_set('display_errors', 1);
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($_GET["recalculate"])) {
|
if (isset($_GET["recalculate"])) {
|
||||||
if (file_exists($stats_file)) {
|
if (file_exists($stats_file)) {
|
||||||
$time = json_decode(file_get_contents($stats_file), true)["time"] ?? 0;
|
$time = json_decode(file_get_contents($stats_file), true)["time"] ?? 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user