Example #1
0
File: cgi.php Project: Evolix/lilac
            $cgiConfig->setServiceUnknownSound($_POST['cgi_config']['service_unknown_sound']);
        }
        if (isset($_POST['cgi_config']['ping_syntax'])) {
            $cgiConfig->setPingSyntax($_POST['cgi_config']['ping_syntax']);
        }
        if (isset($_POST['cgi_config']['lock_author_names'])) {
            $cgiConfig->setLockAuthorNames($_POST['cgi_config']['lock_author_names']);
        }
        if (isset($_POST['cgi_config']['escape_html_tags'])) {
            $cgiConfig->setEscapeHtmlTags($_POST['cgi_config']['escape_html_tags']);
        }
        if (isset($_POST['cgi_config']['notes_url_target'])) {
            $cgiConfig->setNotesUrlTarget($_POST['cgi_config']['notes_url_target']);
        }
        if (isset($_POST['cgi_config']['action_url_target'])) {
            $cgiConfig->setActionUrlTarget($_POST['cgi_config']['action_url_target']);
        }
        if (isset($_POST['cgi_config']['enable_splunk_integration'])) {
            $cgiConfig->setEnableSplunkIntegration($_POST['cgi_config']['enable_splunk_integration']);
        }
        if (isset($_POST['cgi_config']['splunk_url'])) {
            $cgiConfig->setSplunkUrl($_POST['cgi_config']['splunk_url']);
        }
        $cgiConfig->save();
        $success = "Updated CGI Configuration.";
    }
}
// Let's make the status map layout select list
$statusmap_layout_list[] = array("values" => "0", "text" => "User-Defined Coordinates");
$statusmap_layout_list[] = array("values" => "1", "text" => "Depth Layers");
$statusmap_layout_list[] = array("values" => "2", "text" => "Collapsed Tree");