diff options
author | jim-p <jimp@pfsense.org> | 2010-11-17 19:37:24 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-11-17 19:37:24 -0500 |
commit | 9c37f8cdc5a78706c645809fbabfb7320494ff17 (patch) | |
tree | 4f5f709df6793e833ec095c5fab72155e7443dc3 /usr | |
parent | 916ee7453ecfded18283f57ee2131d6b2e779503 (diff) | |
download | pfsense-9c37f8cdc5a78706c645809fbabfb7320494ff17.zip pfsense-9c37f8cdc5a78706c645809fbabfb7320494ff17.tar.gz |
Properly reflect ports in the GUI view of the anti-lockout rule since Ermal's changes restricted it to only ssh/gui ports.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_rules.php | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php index 3ece034..609aef3 100755 --- a/usr/local/www/firewall_rules.php +++ b/usr/local/www/firewall_rules.php @@ -379,7 +379,22 @@ if($_REQUEST['undodrag']) { <?php // Show the anti-lockout rule if it's enabled, and we are on LAN with an if count > 1, or WAN with an if count of 1. if (!isset($config['system']['webgui']['noantilockout']) && (((count($config['interfaces']) > 1) && ($if == 'lan')) - || ((count($config['interfaces']) == 1) && ($if == 'wan')))): ?> + || ((count($config['interfaces']) == 1) && ($if == 'wan')))): + + $guiport = "80"; + if (isset($config['system']['webgui']['port']) && $config['system']['webgui']['port'] <> "") + $guiport = "{$config['system']['webgui']['port']}"; + if ($config['system']['webgui']['protocol'] == "https") + $guiport .= "<br/>443"; + + $sshport = ""; + if (isset($config['system']['enablesshd'])) { + $sshport = 22; + if($config['system']['ssh']['port'] <> "") + $sshport = $config['system']['ssh']['port']; + } + $sshport = "22<br/>"; +?> <tr valign="top" id="antilockout"> <td class="list"> </td> <td class="listt" align="center"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_pass.gif" width="11" height="11" border="0"></td> @@ -388,7 +403,7 @@ if($_REQUEST['undodrag']) { <td class="listr" style="background-color: #E0E0E0">*</td> <td class="listr" style="background-color: #E0E0E0">*</td> <td class="listr" style="background-color: #E0E0E0"><?=$iflist[$if];?> Address</td> - <td class="listr" style="background-color: #E0E0E0">*</td> + <td class="listr" style="background-color: #E0E0E0"><?= $sshport . $guiport ?></td> <td class="listr" style="background-color: #E0E0E0">*</td> <td class="listr" style="background-color: #E0E0E0">*</td> <td class="listr" style="background-color: #E0E0E0"></td> |