exit; } if (isset($_GET["EnableArpDaemon"])) { EnableArpDaemonSave(); exit; } if (isset($_GET["browse-computers"])) { index(); exit; } if (isset($_GET["browse-computer-list"])) { computer_list(); exit; } if (isset($_GET["network-js"])) { network_js(); exit; } if (isset($_GET["browse-networks"])) { networks(); exit; } if (isset($_GET["browse-networks-list"])) { networks_items(); exit; } if (isset($_GET["networks-tabs"])) { networks_tabs(); exit; } if (isset($_GET["browse-networks-add"])) {
<?php $GLOBALS["ICON_FAMILY"]="SYSTEM"; if(isset($_GET["verbose"])){$GLOBALS["VERBOSE"]=true;ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null);} include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); $usersmenus=new usersMenus(); if(!$usersmenus->AsArticaAdministrator){die();} if($_GET["newtab"]=="network"){network_js();exit;} if(isset($_GET["tab"])){main_switch();exit;} if(isset($_GET["ajaxmenu"])){echo popup();exit;} if(isset($_GET["js"])){main_ajax();exit;} if(isset($_GET["AdressBookPopup"])){echo AdressBookPopup();exit;} if(isset($_GET["EnableRemoteAddressBook"])){AdressBookPopup_save();exit;} page(); function network_js(){ $page=CurrentPageName(); $html="LoadAjax('BodyContent','$page?tab=network&newinterface=yes');"; echo $html; } function page(){ $page=CurrentPageName(); $usersmenus=new usersMenus();
include_once 'ressources/class.tcpip.inc'; $user = new usersMenus(); if ($user->SQUID_INSTALLED == false) { $tpl = new templates(); echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');"; die; exit; } if ($user->AsSquidAdministrator == false) { $tpl = new templates(); echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');"; die; exit; } if ($_GET["script"] == "network") { echo network_js(); exit; } if ($_GET["script"] == "listen_port") { echo listen_port_js(); exit; } if ($_GET["script"] == "visible_hostname") { echo visible_hostname_js(); exit; } if ($_GET["script"] == "ldap") { echo ldap_js(); exit; } if ($_GET["script"] == "dns") {
if($user->SQUID_INSTALLED==false){ if(!$user->WEBSTATS_APPLIANCE){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } } if($user->AsSquidAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["x-save-plugins"])){x_save_plugins();exit;} if(isset($_POST["positive_dns_ttl"])){dns_popup_cache_save();exit;} if($_GET["script"]=="network"){echo network_js();exit;} if($_GET["script"]=="listen_port"){echo listen_port_js();exit;} if($_GET["script"]=="visible_hostname"){echo visible_hostname_js();exit;} if($_GET["script"]=="ldap"){echo ldap_js();exit;} if($_GET["script"]=="dns"){echo dns_js();exit;} //plugins if($_GET["script"]=="plugins"){echo plugins_js();exit;} if($_GET["content"]=="plugins"){echo plugins_popup();exit;} if(isset($_GET["enable_plugins"])){plugins_save();exit;} if($_GET["script"]=="url_regex"){echo url_regex_js();exit;} if(isset($_GET["url_regex_list"])){echo url_regex_popup_list();exit;}