summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/firewall_virtual_ip.php2
-rwxr-xr-xusr/local/www/firewall_virtual_ip_edit.php9
2 files changed, 10 insertions, 1 deletions
diff --git a/usr/local/www/firewall_virtual_ip.php b/usr/local/www/firewall_virtual_ip.php
index 0a2d201..e794410 100755
--- a/usr/local/www/firewall_virtual_ip.php
+++ b/usr/local/www/firewall_virtual_ip.php
@@ -129,7 +129,7 @@ include("head.inc");
?>
</td>
<td class="listlr" align="center" ondblclick="document.location='firewall_virtual_ip_edit.php?id=<?=$i;?>';">
- <? if($vipent['mode'] == "proxyarp") echo "<img src='./themes/".$g['theme']."/images/icons/icon_parp.gif' title='Proxy ARP'>"; else echo "<img src='./themes/".$g['theme']."/images/icons/icon_carp.gif' title='CARP'>";?>
+ <? if($vipent['mode'] == "proxyarp") echo "<img src='./themes/".$g['theme']."/images/icons/icon_parp.gif' title='Proxy ARP'>"; elseif($vipent['mode'] == "carp") echo "<img src='./themes/".$g['theme']."/images/icons/icon_carp.gif' title='CARP'>"; elseif($vipent['mode'] == "other") echo "<img src='./themes/".$g['theme']."/images/icons/icon_other.gif' title='Other'>";?>
</td>
<td class="listbg" ondblclick="document.location='firewall_virtual_ip_edit.php?id=<?=$i;?>';">
<font color="#FFFFFF"><?=htmlspecialchars($vipent['descr']);?>&nbsp;
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php
index 4a80b9c..d06a811 100755
--- a/usr/local/www/firewall_virtual_ip_edit.php
+++ b/usr/local/www/firewall_virtual_ip_edit.php
@@ -213,6 +213,13 @@ function enable_change(enable_over) {
note.appendChild(proxyarpnote);
}
}
+ if (get_radio_value(document.iform.mode) == "other") {
+ document.iform.type.disabled = 1;
+ if (note.firstChild != null) {
+ note.removeChild(note.firstChild);
+ }
+ }
+
}
function typesel_change() {
switch (document.iform.type.selectedIndex) {
@@ -250,6 +257,8 @@ function typesel_change() {
<?php if ($pconfig['mode'] == "proxyarp" || $pconfig['type'] != "carp") echo "checked";?>> Proxy ARP
<input name="mode" type="radio" onclick="enable_change(false)" value="carp"
<?php if ($pconfig['mode'] == "carp") echo "checked";?>> CARP
+ <input name="mode" type="radio" onclick="enable_change(false)" value="other"
+ <?php if ($pconfig['mode'] == "other") echo "checked";?>> Other
</td>
</tr>
<tr>
OpenPOWER on IntegriCloud