diff options
author | Simon Rettberg | 2016-11-14 15:51:45 +0100 |
---|---|---|
committer | Simon Rettberg | 2016-11-14 15:51:45 +0100 |
commit | cedbd258ead3a2783f5c7c3e923ef6a4e5a1459f (patch) | |
tree | e2984f46c2a77aeb1ce179ab8651f5b5bd987b0b /modules-available | |
parent | [statistics] Show red hdd icon in client list when filtering by ID44 == 0 and... (diff) | |
download | slx-admin-cedbd258ead3a2783f5c7c3e923ef6a4e5a1459f.tar.gz slx-admin-cedbd258ead3a2783f5c7c3e923ef6a4e5a1459f.tar.xz slx-admin-cedbd258ead3a2783f5c7c3e923ef6a4e5a1459f.zip |
[roomplanner] baseconfig hook: Add variable for hybrid mode
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/roomplanner/baseconfig/getconfig.inc.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules-available/roomplanner/baseconfig/getconfig.inc.php b/modules-available/roomplanner/baseconfig/getconfig.inc.php index 76cd399d..8518f751 100644 --- a/modules-available/roomplanner/baseconfig/getconfig.inc.php +++ b/modules-available/roomplanner/baseconfig/getconfig.inc.php @@ -3,6 +3,10 @@ $configVars["SLX_PVS_CONFIG_URL"] = 'http://' . $_SERVER['SERVER_ADDR'] . $_SERVER['SCRIPT_NAME'] . '?do=roomplanner'; $res = Database::queryFirst('SELECT dedicatedmgr FROM location_roomplan WHERE managerip = :ip LIMIT 1', ['ip' => $ip]); -if ($res !== false && (int)$res['dedicatedmgr'] !== 0) { - $configVars["SLX_PVS_DEDICATED"] = 'yes'; +if ($res !== false) { + if ((int)$res['dedicatedmgr'] !== 0) { + $configVars["SLX_PVS_DEDICATED"] = 'yes'; + } else { + $configVars["SLX_PVS_HYBRID"] = 'yes'; + } }
\ No newline at end of file |