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'; include_once 'ressources/class.system.network.inc'; include_once 'ressources/class.system.nics.inc'; include_once 'ressources/class.maincf.multi.inc'; include_once 'ressources/class.tcpip.inc'; $usersmenus = new usersMenus(); if ($usersmenus->AsSystemAdministrator == false) { exit; } if (isset($_GET["virtual-list"])) { nics_list(); exit; } if (isset($_GET["add-js"])) { add_js(); exit; } if (isset($_GET["add-form"])) { add_form(); exit; } if (isset($_POST["ipaddr"])) { Save(); exit; } if (isset($_POST["vde-del"])) {
<?php 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"); 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'); include_once('ressources/class.system.network.inc'); include_once('ressources/class.system.nics.inc'); include_once('ressources/class.maincf.multi.inc'); include_once('ressources/class.tcpip.inc'); $usersmenus=new usersMenus(); if($usersmenus->AsSystemAdministrator==false){exit();} if(isset($_GET["virtual-list"])){nics_list();exit;} if(isset($_GET["add-js"])){add_js();exit;} if(isset($_GET["add-form"])){add_form();exit;} if(isset($_POST["ipaddr"])){Save();exit;} if(isset($_POST["vde-del"])){Del();exit;} page(); //vde_tunctl -t virt1 //vde_switch -s /var/run/switch1 -t virt1 -daemon -p /var/run/switch1.pid //vde_pcapplug -s /var/run/switch1 -d -P /var/run/switch1p.pid eth0 //vde_switch -tap virt1 -sock /var/run/switch1/ctl -daemon -p /var/run/switch1.pid function page(){ $page=CurrentPageName(); $t=time(); $tpl=new templates();