diff --git a/config/index.php b/config/index.php index 738d64f..2d08c7f 100755 --- a/config/index.php +++ b/config/index.php @@ -718,11 +718,6 @@ function sanitize($string) { if (checkConfEnabled('monitorix') == true) $checked = 'CHECKED="CHECKED"'; else $checked = ''; echo ''; - if (ver('nems') >= 1.4) { - if (checkConfEnabled('cockpit') == true) $checked = 'CHECKED="CHECKED"'; else $checked = ''; - echo ''; - } - if (ver('nems') >= 1.4) { if (checkConfEnabled('tvpw') == true) $checked = 'CHECKED="CHECKED"'; else $checked = ''; echo ''; diff --git a/config/services.php b/config/services.php index 3ff0e25..5f40a01 100644 --- a/config/services.php +++ b/config/services.php @@ -37,14 +37,6 @@ } break; - case 'cockpit': - if ($_POST['value'] == 'off') { - $config['service.' . $name] = 0; - } elseif ($_POST['value'] == 'on') { - $config['service.' . $name] = 1; - } - break; - case 'rpi-monitor': if ($_POST['value'] == 'off') { $config['service.' . $name] = 0; diff --git a/inc/bgcolor.php b/inc/bgcolor.php new file mode 100644 index 0000000..2716032 --- /dev/null +++ b/inc/bgcolor.php @@ -0,0 +1,28 @@ + true, + CURLOPT_HTTPHEADER => array('Content-type: application/json') , + ); + curl_setopt_array( $ch, $options ); + $result = curl_exec($ch); + file_put_contents($cachefile,$result); + } + $resultobj = json_decode($result); + if (isset($resultobj->$key)) { + $bgcolor = $resultobj->$key; + } else { + $bgcolor = $defaultbgcolor; + } + +?> diff --git a/inc/header.php b/inc/header.php index 6b02dad..d752b8d 100644 --- a/inc/header.php +++ b/inc/header.php @@ -1,5 +1,5 @@ @@ -116,7 +116,7 @@ function resizeIframe(obj) { = 1.4) echo '
  • NEMS Mobile UI
  • '; ?> = 1.4) echo '
  • NEMS TV Dashboard
  • '; ?> -
  • Legacy

  • +
  • Legacy

  • = 1.4) { echo '
  • Nagios Core
  • '; @@ -138,7 +138,7 @@ function resizeIframe(obj) {