include_once('ressources/class.ini.inc'); include_once('ressources/class.system.network.inc'); include_once('ressources/class.system.nics.inc'); $users=new usersMenus(); if(!$users->AsSystemAdministrator){ $tpl=new templates(); $error=$tpl->javascript_parse_text("{ERROR_NO_PRIVS}"); echo "alert('$error')"; die(); } if(isset($_GET["iptables"])){iptables_tabs();exit;} if(isset($_GET["iptables-table"])){iptables_table();exit;} if(isset($_GET["rules"])){rules();exit;} if(isset($_GET["ruleid"])){rule_js();exit;} if(isset($_GET["rule-tabs"])){rule_tab();exit;} if(isset($_GET["rule-popup"])){rule_popup();exit;} if(isset($_POST["isFW"])){isFW_save();exit;} if(isset($_POST["rule-save"])){rule_save();exit;} if(isset($_GET["groupname"])){groupname();exit;} if(isset($_POST["rule-order"])){rule_order();exit;} if(isset($_POST["rule-delete"])){rule_delete();exit;} if(isset($_POST["rule-enable"])){rule_enable();exit;} if(isset($_GET["rule-time"])){rule_time();exit;} if(isset($_POST["time-save"])){time_save();exit;} if(isset($_GET["generic"])){generic_tabs();exit;} if(isset($_POST["EnableArticaAsGateway"])){EnableArticaAsGateway_save();exit;} tabs(); function tabs(){
include_once 'ressources/class.system.network.inc'; include_once 'ressources/class.system.nics.inc'; include_once 'ressources/class.ndpi.services.inc'; $users = new usersMenus(); if (!$users->AsSystemAdministrator) { $tpl = new templates(); $error = $tpl->javascript_parse_text("{ERROR_NO_PRIVS}"); echo "alert('{$error}')"; die; } if (isset($_GET["rules"])) { rules(); exit; } if (isset($_GET["ruleid"])) { rule_js(); exit; } if (isset($_GET["rule-tabs"])) { rule_tab(); exit; } if (isset($_GET["rule-popup"])) { rule_popup(); exit; } if (isset($_POST["rule-new"])) { rule_new_save(); exit; } if (isset($_POST["rule-enable"])) {
include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.dansguardian.inc'); header("Pragma: no-cache"); header("Expires: 0"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache, must-revalidate"); $user=new usersMenus(); if(!$user->AsDansGuardianAdministrator){ $tpl=new templates(); FATAL_ERROR_SHOW_128("{ERROR_NO_PRIVS}"); exit; } if(isset($_GET["rule-js"])){rule_js();exit;} if(isset($_GET["delete-js"])){rule_delete_js();exit;} if(isset($_GET["list"])){rules_list();exit;} if(isset($_GET["rule-popup"])){rule_popup();exit;} if(isset($_POST["rule"])){rule_save();exit;} if(isset($_POST["delete"])){rule_delete();exit;} table(); function rule_delete_js(){ header("content-type: application/x-javascript"); $md5=$_GET["delete-js"]; $page=CurrentPageName(); $tpl=new templates(); $q=new mysql_squid_builder();