Revision 0e22dda5
Added by Ermal LUÇI over 12 years ago
usr/local/www/interfaces_gre.php | ||
---|---|---|
60 | 60 |
} |
61 | 61 |
|
62 | 62 |
if ($_GET['act'] == "del") { |
63 |
if (!isset($_GET['id'])) |
|
64 |
$input_errors[] = getext("Wrong parameters supplied"); |
|
65 |
else if (empty($a_gres[$_GET['id']])) |
|
66 |
$input_errors[] = getext("Wrong index supplied"); |
|
63 | 67 |
/* check if still in use */ |
64 |
if (gre_inuse($_GET['id'])) { |
|
68 |
else if (gre_inuse($_GET['id'])) {
|
|
65 | 69 |
$input_errors[] = gettext("This GRE tunnel cannot be deleted because it is still being used as an interface."); |
66 | 70 |
} else { |
67 | 71 |
mwexec("/sbin/ifconfig " . $a_gres[$_GET['id']]['greif'] . " destroy"); |
Also available in: Unified diff
Put some more sanity checking for various interface configurations