示例#1
0
                  </td>
                </tr>
              </table>
</form>
<script language="JavaScript">
<!--
type_change();
//-->
</script>
<?php 
include "fend.inc";
?>
</body>
</html>


<?php 
if ($_POST) {
    if (!$input_errors) {
        unlink_if_exists("{$g['tmp_path']}/config.cache");
        ob_flush();
        flush();
        sleep(1);
        interfaces_wan_configure();
        reset_carp();
        /* sync filter configuration */
        filter_configure();
        /* set up static routes */
        system_routing_configure();
    }
}
示例#2
0
                $url = "{$config['system']['webgui']['protocol']}://{$host}:{$config['system']['webgui']['port']}/system.php";
            } else {
                $url = "{$config['system']['webgui']['protocol']}://{$host}/system.php";
            }
        }
        $retval = 0;
        config_lock();
        $retval = system_hostname_configure();
        $retval |= system_hosts_generate();
        $retval |= system_resolvconf_generate();
        $retval |= system_password_configure();
        $retval |= services_dnsmasq_configure();
        $retval |= system_timezone_configure();
        $retval |= system_ntp_configure();
        if ($olddnsallowoverride != $config['system']['dnsallowoverride']) {
            $retval |= interfaces_wan_configure();
        }
        config_unlock();
        // Reload filter -- plugins might need to run
        filter_configure();
        $savemsg = get_std_save_message($retval);
        if ($restart_webgui) {
            $savemsg .= "<br />Lütfen bekleyiniz... {$url} adresine 10 saniye içinde yönlendirileceksiniz.";
        }
    }
}
$pgtitle = "Sistem: Genel Ayarlar";
include "head.inc";
?>

<body link="#0000CC" vlink="#0000CC" alink="#0000CC">