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