exit; } if (isset($_GET["interfaces"])) { interfaces(); exit; } if (isset($_GET["ffm1"])) { main_form(); exit; } if (isset($_GET["addressesReload"])) { echo Loadaddresses(); 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($_POST["EnableDNSMASQOCSDB"])) {
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(); function status(){ $tpl=new templates(); if(is_file("ressources/logs/global.status.ini")){ $ini=new Bs_IniHandler("ressources/logs/global.status.ini");