Merge pull request #1319 from phil-davis/patch-1
This commit is contained in:
commit
fcfa23da8b
|
@ -3,7 +3,7 @@
|
|||
/*
|
||||
interfaces_bridge.php
|
||||
|
||||
Copyright (C) 2008 Ermal Luçi
|
||||
Copyright (C) 2008 Ermal Luçi
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
@ -60,9 +60,9 @@ function bridge_inuse($num) {
|
|||
|
||||
if ($_GET['act'] == "del") {
|
||||
if (!isset($_GET['id']))
|
||||
$input_errors[] = getext("Wrong parameters supplied");
|
||||
$input_errors[] = gettext("Wrong parameters supplied");
|
||||
else if (empty($a_bridges[$_GET['id']]))
|
||||
$input_errors[] = getext("Wrong index supplied");
|
||||
$input_errors[] = gettext("Wrong index supplied");
|
||||
/* check if still in use */
|
||||
else if (bridge_inuse($_GET['id'])) {
|
||||
$input_errors[] = gettext("This bridge cannot be deleted because it is assigned as an interface.");
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
/*
|
||||
interfaces_gif.php
|
||||
|
||||
Copyright (C) 2008 Ermal Luçi
|
||||
Copyright (C) 2008 Ermal Luçi
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
@ -60,9 +60,9 @@ function gif_inuse($num) {
|
|||
|
||||
if ($_GET['act'] == "del") {
|
||||
if (!isset($_GET['id']))
|
||||
$input_errors[] = getext("Wrong parameters supplied");
|
||||
$input_errors[] = gettext("Wrong parameters supplied");
|
||||
else if (empty($a_gifs[$_GET['id']]))
|
||||
$input_errors[] = getext("Wrong index supplied");
|
||||
$input_errors[] = gettext("Wrong index supplied");
|
||||
/* check if still in use */
|
||||
else if (gif_inuse($_GET['id'])) {
|
||||
$input_errors[] = gettext("This gif TUNNEL cannot be deleted because it is still being used as an interface.");
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
/*
|
||||
interfaces_gre.php
|
||||
|
||||
Copyright (C) 2008 Ermal Luçi
|
||||
Copyright (C) 2008 Ermal Luçi
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
@ -61,9 +61,9 @@ function gre_inuse($num) {
|
|||
|
||||
if ($_GET['act'] == "del") {
|
||||
if (!isset($_GET['id']))
|
||||
$input_errors[] = getext("Wrong parameters supplied");
|
||||
$input_errors[] = gettext("Wrong parameters supplied");
|
||||
else if (empty($a_gres[$_GET['id']]))
|
||||
$input_errors[] = getext("Wrong index supplied");
|
||||
$input_errors[] = gettext("Wrong index supplied");
|
||||
/* check if still in use */
|
||||
else if (gre_inuse($_GET['id'])) {
|
||||
$input_errors[] = gettext("This GRE tunnel cannot be deleted because it is still being used as an interface.");
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
/*
|
||||
interfaces_lagg.php
|
||||
|
||||
Copyright (C) 2008 Ermal Luçi
|
||||
Copyright (C) 2008 Ermal Luçi
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
@ -66,9 +66,9 @@ function lagg_inuse($num) {
|
|||
|
||||
if ($_GET['act'] == "del") {
|
||||
if (!isset($_GET['id']))
|
||||
$input_errors[] = getext("Wrong parameters supplied");
|
||||
$input_errors[] = gettext("Wrong parameters supplied");
|
||||
else if (empty($a_laggs[$_GET['id']]))
|
||||
$input_errors[] = getext("Wrong index supplied");
|
||||
$input_errors[] = gettext("Wrong index supplied");
|
||||
/* check if still in use */
|
||||
else if (lagg_inuse($_GET['id'])) {
|
||||
$input_errors[] = gettext("This LAGG interface cannot be deleted because it is still being used.");
|
||||
|
|
Reference in New Issue