Revision 0e22dda5
Added by Ermal LUÇI over 12 years ago
usr/local/www/interfaces_vlan.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_vlans[$_GET['id']])) |
|
66 |
$input_errors[] = getext("Wrong index supplied"); |
|
63 | 67 |
/* check if still in use */ |
64 |
if (vlan_inuse($_GET['id'])) { |
|
68 |
else if (vlan_inuse($_GET['id'])) {
|
|
65 | 69 |
$input_errors[] = gettext("This VLAN cannot be deleted because it is still being used as an interface."); |
66 | 70 |
} elseif (!does_interface_exist($a_vlans[$_GET['id']]['vlanif'])) { |
67 | 71 |
$input_errors[] = gettext("Invalid VLAN interface."); |
Also available in: Unified diff
Put some more sanity checking for various interface configurations