/* Lilac Index Page, Displays Menu, and Statistics */ include_once 'includes/config.inc'; $cgiConfig = NagiosCgiConfigurationPeer::doSelectOne(new Criteria()); if (!$cgiConfig) { $cgiConfig = new NagiosCgiConfiguration(); $cgiConfig->save(); } if (isset($_POST['request'])) { if ($_POST['request'] == 'update') { if (isset($_POST['cgi_config']['physical_html_path'])) { $cgiConfig->setPhysicalHtmlPath($_POST['cgi_config']['physical_html_path']); } if (isset($_POST['cgi_config']['url_html_path'])) { $cgiConfig->setUrlHtmlPath($_POST['cgi_config']['url_html_path']); } if (isset($_POST['cgi_config']['use_authentication'])) { $cgiConfig->setUseAuthentication($_POST['cgi_config']['use_authentication']); } if (isset($_POST['cgi_config']['default_user_name'])) { $cgiConfig->setDefaultUserName($_POST['cgi_config']['default_user_name']); } if (isset($_POST['cgi_config']['authorized_for_system_information'])) { $cgiConfig->setAuthorizedForSystemInformation($_POST['cgi_config']['authorized_for_system_information']); } if (isset($_POST['cgi_config']['authorized_for_system_commands'])) { $cgiConfig->setAuthorizedForSystemCommands($_POST['cgi_config']['authorized_for_system_commands']); } if (isset($_POST['cgi_config']['authorized_for_configuration_information'])) { $cgiConfig->setAuthorizedForConfigurationInformation($_POST['cgi_config']['authorized_for_configuration_information']);