exit; } if (isset($_GET["network-bridge-delete-js"])) { network_bridge_delete_js(); exit; } if (isset($_GET["network-bridge-associates-js"])) { network_bridge_associates_js(); exit; } if (isset($_GET["network-associates-delete-js"])) { network_associates_delete_js(); exit; } if (isset($_GET["network-bridge"])) { network_bridge_popup(); exit; } if (isset($_POST["Create"])) { network_bridge_save(); exit; } if (isset($_POST["Delete"])) { network_bridge_del(); exit; } if (isset($_GET["network-bridge-associates-popup"])) { network_bridge_associates_popup(); exit; } if (isset($_POST["associates"])) {
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["bridge-list"])){bridge_list();exit;} if(isset($_GET["network-bridge-js"])){network_bridge_js();exit;} if(isset($_GET["network-bridge-delete-js"])){network_bridge_delete_js();exit;} if(isset($_GET["network-bridge-associates-js"])){network_bridge_associates_js();exit;} if(isset($_GET["network-associates-delete-js"])){network_associates_delete_js();exit;} if(isset($_GET["network-bridge"])){network_bridge_popup();exit;} if(isset($_POST["Create"])){network_bridge_save();exit;} if(isset($_POST["Delete"])){network_bridge_del();exit;} if(isset($_GET["network-bridge-associates-popup"])){network_bridge_associates_popup();exit;} if(isset($_POST["associates"])){network_bridge_associates_save();exit;} if(isset($_POST["associates-delete"])){network_associates_delete();exit;} // nics_bridge Bridge_table(); function network_bridge_js(){ header("content-type: application/x-javascript"); $page=CurrentPageName(); $tpl=new templates(); $ID=$_GET["ID"];
function network_bridge_tab() { $ID = $_GET["ID"]; if (!is_numeric($ID)) { $ID = 0; } if ($ID == 0) { network_bridge_popup(); exit; } $page = CurrentPageName(); $tpl = new templates(); $tt = time(); $t = $_GET["t"]; $array["network-bridge-popup"] = '{router}'; $array["services"] = '{services}'; while (list($num, $ligne) = each($array)) { if ($num == "services") { $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"system.network.bridges.services.php?routerid={$ID}\" \n\t\t\t\t\tstyle='font-size:18px'><span>{$ligne}</span></a></li>\n"); continue; } $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?{$num}=yes&ID={$ID}\" \n\t\t\t\tstyle='font-size:18px'><span>{$ligne}</span></a></li>\n"); } echo build_artica_tabs($html, "main_network_bridge_popup"); }