summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/inc/locationinfo.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2018-01-11 13:08:12 +0100
committerSimon Rettberg2018-01-11 13:08:12 +0100
commit48826a186b6b4bf4eecea95851d46864007b7965 (patch)
treefcaa5da64b9455ef2e5a2cc0a1594435e607b2ed /modules-available/locationinfo/inc/locationinfo.inc.php
parent[statistics] Add "replace machines" feature (not linked to anywhere yet) (diff)
downloadslx-admin-48826a186b6b4bf4eecea95851d46864007b7965.tar.gz
slx-admin-48826a186b6b4bf4eecea95851d46864007b7965.tar.xz
slx-admin-48826a186b6b4bf4eecea95851d46864007b7965.zip
[locationinfo] URL: Add field to specify reload interval in minutes
Diffstat (limited to 'modules-available/locationinfo/inc/locationinfo.inc.php')
-rw-r--r--modules-available/locationinfo/inc/locationinfo.inc.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules-available/locationinfo/inc/locationinfo.inc.php b/modules-available/locationinfo/inc/locationinfo.inc.php
index e3d7db3d..38e271fe 100644
--- a/modules-available/locationinfo/inc/locationinfo.inc.php
+++ b/modules-available/locationinfo/inc/locationinfo.inc.php
@@ -130,6 +130,9 @@ class LocationInfo
if ($data && $data['insecure-ssl']) {
ConfigHolder::add('SLX_BROWSER_INSECURE', '1');
}
+ if ($data && $data['reload-minutes']) {
+ ConfigHolder::add('SLX_BROWSER_RELOAD_SECS', $data['reload-minutes'] * 60);
+ }
}
ConfigHolder::add('SLX_BROWSER_URL', 'http://' . $_SERVER['SERVER_ADDR'] . '/panel/' . $panelUuid);
ConfigHolder::add('SLX_ADDONS', '', 1000);