include_once("$dirname/ressources/class.tcpip.inc"); $usersmenus=new usersMenus(); if($usersmenus->AsSystemAdministrator==false){exit();} if(isset($argv[1])){ if($argv[1]=="zlistnics"){ $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); zlistnics(); die(); } } if(isset($_GET["listnics"])){zlistnics_tabs();exit;} if(isset($_GET["listnics2"])){zlistnics();exit;} if(isset($_GET["nic-builder"])){zlistnics_builder();exit;} if(isset($_GET["js-virtual-add"])){virtual_js_add();exit;} if(isset($_POST["RebuildMyNic"])){RebuildMyNic();exit;} if(isset($_POST["OVHNetConfig"])){OVHNetConfig();exit;} if(isset($_GET["default-route-status"])){DefaultRouteStatus();exit;} if(isset($_GET["BuildNetConf"])){BuildNetConf();exit;} if($_GET["main"]=="listnics"){zlistnics_tabs();exit;} if($_GET["main"]=="listnics2"){zlistnics();exit;} if($_GET["main"]=="virtuals"){Virtuals();exit;} if($_GET["main"]=="bridges"){Bridges();exit;} if($_GET["main"]=="DNSServers"){DNS_SERVERS_POPUP();exit;} if(isset($_POST["DOMAINS1"])){DNS_SERVERS_SAVE();exit;} if(isset($_GET["NetworkManager-check"])){NetworkManager_check();exit;}
ini_set('error_prepend_string', null); ini_set('error_append_string', null); zlistnics(); die; } } if (isset($_GET["listnics"])) { zlistnics_tabs(); exit; } if (isset($_GET["listnics2"])) { zlistnics(); exit; } if (isset($_GET["nic-builder"])) { zlistnics_builder(); exit; } if (isset($_GET["js-virtual-add"])) { virtual_js_add(); exit; } if (isset($_POST["RebuildMyNic"])) { RebuildMyNic(); exit; } if (isset($_POST["OVHNetConfig"])) { OVHNetConfig(); exit; } if (isset($_GET["default-route-status"])) {