summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2007-10-19 19:26:35 +0000
committerSeth Mos <seth.mos@xs4all.nl>2007-10-19 19:26:35 +0000
commit2be84cfa8882a78444fd4ba9196149dc307834f6 (patch)
tree723d0d1929995aca58e0b7d7d19545bfa05bcd91 /usr
parent78e63d6497e99b2d5de38e8e507f85221a660636 (diff)
downloadpfsense-2be84cfa8882a78444fd4ba9196149dc307834f6.zip
pfsense-2be84cfa8882a78444fd4ba9196149dc307834f6.tar.gz
Add descriptive text and link to the gateways page
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/interfaces.php8
-rwxr-xr-xusr/local/www/interfaces_opt.php8
-rwxr-xr-xusr/local/www/interfaces_wan.php8
3 files changed, 15 insertions, 9 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 7dcfefa..e198ea7 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -792,17 +792,19 @@ function show_mon_config() {
<td valign="top" class="vncellreq">Gateway</td>
<td class="vtable"><select name="gateway" class="formselect" id="gateway">
<?php
- foreach ($a_gateways as $gateway) {
- if($gateway['interface'] == "wan") {
+ if(count($a_gateways) > 0) {
+ foreach ($a_gateways as $gateway) {
+ if($gateway['interface'] == "wan") {
?>
<option value="<?=$gateway['name'];?>" <?php if ($gateway['name'] == $pconfig['gateway']) echo "selected"; ?>>
<?=htmlspecialchars($gateway['name']);?>
</option>
<?php
+ }
}
}
?>
- </select> <br>
+ </select>Select a existing Gateway from the list or add one on the <a href="/system_gateways.php">Gateways</a> page<br>
</td>
</tr>
<tr>
diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php
index 323183f..a42a2d7 100755
--- a/usr/local/www/interfaces_opt.php
+++ b/usr/local/www/interfaces_opt.php
@@ -408,17 +408,19 @@ function show_mon_config() {
<td valign="top" class="vncellreq">Gateway</td>
<td class="vtable"><select name="gateway" class="formselect" id="gateway">
<?php
- foreach ($a_gateways as $gateway) {
- if($gateway['interface'] == "opt{$index}") {
+ if(count($a_gateways) > 0) {
+ foreach ($a_gateways as $gateway) {
+ if($gateway['interface'] == "opt{$index}") {
?>
<option value="<?=$gateway['name'];?>" <?php if ($gateway['name'] == $pconfig['gateway']) echo "selected"; ?>>
<?=htmlspecialchars($gateway['name']);?>
</option>
<?php
+ }
}
}
?>
- </select> <br>
+ </select>Select a existing Gateway from the list or add one on the <a href="/system_gateways.php">Gateways</a> page<br>
</td>
</tr>
<tr>
diff --git a/usr/local/www/interfaces_wan.php b/usr/local/www/interfaces_wan.php
index 7dcfefa..e198ea7 100755
--- a/usr/local/www/interfaces_wan.php
+++ b/usr/local/www/interfaces_wan.php
@@ -792,17 +792,19 @@ function show_mon_config() {
<td valign="top" class="vncellreq">Gateway</td>
<td class="vtable"><select name="gateway" class="formselect" id="gateway">
<?php
- foreach ($a_gateways as $gateway) {
- if($gateway['interface'] == "wan") {
+ if(count($a_gateways) > 0) {
+ foreach ($a_gateways as $gateway) {
+ if($gateway['interface'] == "wan") {
?>
<option value="<?=$gateway['name'];?>" <?php if ($gateway['name'] == $pconfig['gateway']) echo "selected"; ?>>
<?=htmlspecialchars($gateway['name']);?>
</option>
<?php
+ }
}
}
?>
- </select> <br>
+ </select>Select a existing Gateway from the list or add one on the <a href="/system_gateways.php">Gateways</a> page<br>
</td>
</tr>
<tr>
OpenPOWER on IntegriCloud