From bb48ee8c955087da771a1dd85b15fe7a68c231f8 Mon Sep 17 00:00:00 2001 From: dg9vh Date: Sat, 4 Mar 2017 19:25:11 +0000 Subject: [PATCH] enable all info-panels by default if no infobox is selected to avoid misconfiguration --- index.php | 8 ++++++++ version.php | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 403982c..6d08fb8 100644 --- a/index.php +++ b/index.php @@ -101,6 +101,14 @@ checkSetup(); // Here you can feel free to disable info-sections by commenting out with // before include include "include/txinfo.php"; showLapTime("txinfo"); +if (!defined("SHOWCPU") AND !defined("SHOWDISK") AND !defined("SHOWRPTINFO") AND !defined("SHOWMODES") AND !defined("SHOWLH") AND !defined("SHOWLOCALTX")) { + define("SHOWCPU", "on"); + define("SHOWDISK", "on"); + define("SHOWRPTINFO", "on"); + define("SHOWMODES", "on"); + define("SHOWLH", "on"); + define("SHOWLOCALTX", "on"); +} if (defined("SHOWCPU")) { include "include/sysinfo_ajax.php"; showLapTime("sysinfo"); diff --git a/version.php b/version.php index 09fe60d..8f913cb 100644 --- a/version.php +++ b/version.php @@ -1,3 +1,3 @@