예제 #1
0
$showColLastCheck = Request::analyze('col_last_check', false, false, true);
$showColHost = Request::analyze('col_host', false, false, true);
$showColService = Request::analyze('col_service', false, false, true);
$showColInfo = Request::analyze('col_info', false, false, true);
$showColBackend = Request::analyze('col_backend', false, false, true);
$showScheduled = Request::analyze('hide_scheduled', false, false, true);
$regexHostShow = Request::analyze('regex_host_show');
$regexServicesNoShow = Request::analyze('regex_services_no_show');
$criticalItems = Request::analyze('critical_items');
$specialClientURL = Request::analyze('special_client_url');
$specialRemoteServerURL = Request::analyze('special_remote_server_url');
$specialMonitorServerUrl = Request::analyze('special_monitor_server_url');
$specialAPIToken = Request::analyze('special_api_token');
$specialConfigPass = Request::analyze('special_config_pass');
try {
    $Backends = Html::processFormBackends(Request::analyze('backend'));
} catch (Exception $e) {
    Response::printJSON(\SMD\Core\Language::t($e->getMessage()));
}
$ConfigData = new ConfigData();
$ConfigData->setLanguage($siteLanguage);
$ConfigData->setPageTitle($siteTitle);
$ConfigData->setRefreshValue($eventRefresh);
$ConfigData->setNewItemTime($eventNewItemTime);
$ConfigData->setMaxDisplayItems($eventMaxItems);
$ConfigData->setNewItemAudioEnabled($eventNewItemAudio);
$ConfigData->setColLastcheck($showColLastCheck);
$ConfigData->setColHost($showColHost);
$ConfigData->setColService($showColService);
$ConfigData->setColStatusInfo($showColInfo);
$ConfigData->setColBackend($showColBackend);
예제 #2
0
 /**
  * Comprobar si existen parámetros pasados por POST para enviarlos por GET
  */
 public static function importUrlParamsToGet()
 {
     foreach ($_POST as $param => $value) {
         Html::sanitize($param);
         Html::sanitize($value);
         if (!strncmp($param, 'g_', 2)) {
             $params[] = substr($param, 2) . '=' . $value;
         }
     }
     return isset($params) && count($params) > 0 ? implode('&', $params) : '';
 }