summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_gateways.php
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2009-12-24 18:36:20 +0100
committerSeth Mos <seth.mos@xs4all.nl>2009-12-24 18:36:20 +0100
commit616e19566a37ed034f274c4738993fc1ba0954ae (patch)
treed8ca8de3c75722e94e176eb04f1be5f98e2540cc /usr/local/www/system_gateways.php
parent9ff9a1c7d42a74b6ef628ed684b0594576516d5f (diff)
downloadpfsense-616e19566a37ed034f274c4738993fc1ba0954ae.zip
pfsense-616e19566a37ed034f274c4738993fc1ba0954ae.tar.gz
Do not automatically save the monitor if it is not explicitly filled in. Leave the monitor field empty when it is
not filled in. Show a configured monitor address on the system_gateways.php page.
Diffstat (limited to 'usr/local/www/system_gateways.php')
-rwxr-xr-xusr/local/www/system_gateways.php21
1 files changed, 19 insertions, 2 deletions
diff --git a/usr/local/www/system_gateways.php b/usr/local/www/system_gateways.php
index 547916c..f80ce26 100755
--- a/usr/local/www/system_gateways.php
+++ b/usr/local/www/system_gateways.php
@@ -50,6 +50,13 @@ foreach($a_gateways as $gw) {
$a_gateways_arr[] = $gw;
}
$a_gateways = $a_gateways_arr;
+
+
+if (!is_array($config['gateways']['gateway_item']))
+ $config['gateways']['gateway_item'] = array();
+
+$a_gateway_item = &$config['gateways']['gateway_item'];
+
$changedesc = "Gateways: ";
if ($_POST) {
@@ -153,12 +160,22 @@ effect.");?><br>
if(isset($gateway['interfacegateway'])) {
echo strtoupper($gateway['interface']) . " ";
} else {
- echo $gateway['gateway'] . " ";
+ if(is_numeric($gateway['attribute']) && ($a_gateway_item[$gateway['attribute']]['gateway'] == dynamic)) {
+ echo "dynamic";
+ } else {
+ echo $gateway['gateway'] . " ";
+ }
}
?>
</td>
<td class="listr" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';">
- <?=htmlspecialchars($gateway['monitor']);?>&nbsp;
+ <?php
+ if(is_numeric($gateway['attribute']) && ($a_gateway_item[$gateway['attribute']]['gateway'] == dynamic) && ($a_gateway_item[$gateway['attribute']]['gateway'] == "")) {
+ echo "dynamic";
+ } else {
+ echo htmlspecialchars($gateway['monitor']) . " ";
+ }
+ ?>
</td>
<?php if($gateway['attribute'] == "system") : ?>
<td class="listbgns" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';">
OpenPOWER on IntegriCloud