summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_gateways_edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/system_gateways_edit.php')
-rwxr-xr-xusr/local/www/system_gateways_edit.php4
1 files changed, 3 insertions, 1 deletions
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']);
}
?>
- <input name="gateway" type="text" class="formfld host" id="gateway" size="40" value="<?php echo $gateway; ?>">
+ <input name="gateway" type="text" class="formfld host" id="gateway" size="40" value="<?php echo $gateway; ?>" <?php if ($pconfig['dynamic'] == true) echo "disabled"; ?>>
<br> <span class="vexpl">Gateway IP address</span></td>
</tr>
<tr>
OpenPOWER on IntegriCloud