include_once('ressources/class.users.menus.inc'); $user=new usersMenus(); if($user->AsSystemAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["add-form"])){popup_add();exit;} if(isset($_GET["ip_addr"])){popup_save();exit;} if(isset($_GET["refresh"])){echo getlist();exit;} if(isset($_GET["del"])){popup_delete();exit;} if(isset($_GET["add-etc-hosts-p"])){Paragraphe_add();exit;} if(isset($_GET["DisableEtcHosts"])){DisableEtcHosts_save();exit;} js(); function js(){ $page=CurrentPageName(); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body("{etc_hosts}"); $title2=$tpl->_ENGINE_parse_body("{add_new_entry}"); $html=" function etc_host_show(){ YahooWin3(740,'$page?popup=yes','$title'); } function etc_hosts_add_form(){
exit; } if (isset($_POST["host-delete"])) { popup_delete(); exit; } if (isset($_GET["table"])) { table(); exit; } if (isset($_GET["add-etc-hosts-p"])) { Paragraphe_add(); exit; } if (isset($_GET["DisableEtcHosts"])) { DisableEtcHosts_save(); exit; } if (isset($_GET["hosts-search"])) { hosts_search(); exit; } if (isset($_POST["rebuild"])) { rebuild(); exit; } js(); function js() { $page = CurrentPageName(); $tpl = new templates();