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"];
	if($ID==0){
		$title=$tpl->javascript_parse_text("{new_net_bridge}");
	}else{
		$q=new mysql();
    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"];
    if ($ID == 0) {