$pconfig['timezone'] = $g['default_timezone']; } else { $pconfig['timezone'] = "Etc/UTC"; } } if (!$pconfig['timeservers']) { $pconfig['timeservers'] = "pool.ntp.org"; } $changedesc = gettext("System") . ": "; $changecount = 0; function is_timezone($elt) { return !preg_match("/\\/\$/", $elt); } if ($pconfig['timezone'] != $_POST['timezone']) { filter_pflog_start(true); } $timezonelist = system_get_timezone_list(); $multiwan = false; $interfaces = get_configured_interface_list(); foreach ($interfaces as $interface) { if (interface_has_gateway($interface)) { $multiwan = true; } } if ($_POST) { $changecount++; unset($input_errors); $pconfig = $_POST; /* input validation */ $reqdfields = explode(" ", "hostname domain");
unset($config['syslog']['filterdescriptions']); } $config['rrd']['enable'] = !empty($pconfig['rrdenable']); write_config(); $retval = 0; $retval = system_syslogd_start(); if ($oldnologdefaultblock !== isset($config['syslog']['nologdefaultblock']) || $oldnologdefaultpass !== isset($config['syslog']['nologdefaultpass']) || $oldnologbogons !== isset($config['syslog']['nologbogons']) || $oldnologprivatenets !== isset($config['syslog']['nologprivatenets'])) { $retval |= filter_configure(); } $savemsg = get_std_save_message(); if ($oldnologlighttpd !== isset($config['syslog']['nologlighttpd'])) { log_error(gettext("webConfigurator configuration has changed. Restarting webConfigurator.")); mwexec_bg('/usr/local/etc/rc.restart_webgui 2'); $savemsg .= "<br />" . gettext("WebGUI process is restarting."); } filter_pflog_start(); enable_rrd_graphing(); setup_gateways_monitor(); } } } legacy_html_escape_form_data($pconfig); $closehead = false; include "head.inc"; ?> <script type="text/javascript"> //<![CDATA[ function enable_change(enable_over) {