From a25327390213285c15c50c88d94c9d8abdb7ccd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Mon, 18 Jan 2010 20:55:13 +0000 Subject: Ticket #305. Grey out the gateway when it is a dynamic one. --- usr/local/www/system_gateways_edit.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr') diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php index 9b26c9c..9b0b244 100755 --- a/usr/local/www/system_gateways_edit.php +++ b/usr/local/www/system_gateways_edit.php @@ -67,6 +67,8 @@ if (isset($id) && $a_gateways[$id]) { $pconfig['interface'] = $a_gateways[$id]['interface']; $pconfig['gateway'] = $a_gateways[$id]['gateway']; $pconfig['defaultgw'] = $a_gateways[$id]['defaultgw']; + if (isset($a_gateways[$id]['dynamic'])) + $pconfig['dynamic'] = true; if($a_gateway_item[$id]['monitor'] <> "") { $pconfig['monitor'] = $a_gateway_item[$id]['monitor']; } else { @@ -258,7 +260,7 @@ include("head.inc"); $gateway = htmlspecialchars($pconfig['gateway']); } ?> - + >
Gateway IP address -- cgit v1.1