{$if}";
return true;
}
}
return false;
}
if ($_GET['act'] == "del") {
/* check if still in use */
if (bridge_inuse($_GET['id'])) {
$input_errors[] = "This bridge TUNNEL cannot be deleted because it is still being used as an interface.";
} else {
mwexec("/sbin/ifconfig " . $a_bridges[$_GET['id']]['bridgeif'] . " destroy");
unset($a_bridges[$_GET['id']]);
write_config();
header("Location: interfaces_bridge.php");
exit;
}
}
$pgtitle = array("Interfaces","Bridge");
include("head.inc");
?>