コード例 #1
0
        $tpl = new templates();
        echo $tpl->_ENGINE_parse_body("alert('{ERROR_NO_PRIVS}');");
        die;
        exit;
    }
}
if (isset($_GET["enable-page"])) {
    page_enable();
    exit;
}
if (isset($_POST["EnableDNSMASQ"])) {
    EnableDNSMASQ_save();
    exit;
}
if (isset($_POST["SaveConf1"])) {
    SaveConf1();
    exit;
}
if (isset($_POST["restart-dnsmasq"])) {
    restart_service();
    exit;
}
if (isset($_GET["interfaces"])) {
    interfaces();
    exit;
}
if (isset($_GET["ffm1"])) {
    main_form();
    exit;
}
if (isset($_GET["addressesReload"])) {
コード例 #2
0
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.dnsmasq.inc');
	include_once('ressources/class.main_cf.inc');

	
	if(posix_getuid()<>0){
		$user=new usersMenus();
		if($user->AsDnsAdministrator==false){
			$tpl=new templates();
			echo $tpl->_ENGINE_parse_body("alert('{ERROR_NO_PRIVS}');");
			die();exit();
		}
	}	
	
	
if(isset($_GET["SaveConf1"])){SaveConf1();exit;}
if(isset($_GET["interfaces"])){interfaces();exit;}
if(isset($_GET["InterfacesReload"])){echo LoadInterfaces();exit;}
if(isset($_GET["addressesReload"])){echo Loadaddresses();exit;}
if(isset($_GET["ListentAddressesReload"])){echo LoadListenAddress();exit;}
if(isset($_GET["DnsmasqDeleteInterface"])){DnsmasqDeleteInterface();exit;}

if(isset($_GET["listen_addresses"])){SaveListenAddress();exit;}
if(isset($_GET["DnsmasqDeleteListenAddress"])){DnsmasqDeleteListenAddress();exit;}
if(isset($_GET["EnableDNSMASQ"])){EnableDNSMASQSave();exit;}
if(isset($_GET["get-status"])){status();exit;}




page();