{$if}";
return true;
}
}
return false;
}
if ($_GET['act'] == "del") {
/* check if still in use */
if (lagg_inuse($_GET['id'])) {
$input_errors[] = "This lagg interface cannot be deleted because it is still being used.";
} else {
mwexec("/sbin/ifconfig " . $a_laggs[$_GET['id']]['laggif'] . " destroy");
unset($a_laggs[$_GET['id']]);
write_config();
header("Location: interfaces_lagg.php");
exit;
}
}
$pgtitle = array("Interfaces","LAGG");
include("head.inc");
?>