diff options
author | jim-p <jimp@pfsense.org> | 2012-05-25 12:13:25 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-05-25 12:13:25 -0400 |
commit | 55cfe813d2c0421f7a72138b1266bf5d02137b12 (patch) | |
tree | dc8791fc081983db7fe82a4b978d0ced656a94d4 /usr/local/www | |
parent | 29c7078255b91d7438089b80ba5dc1caf7926ffe (diff) | |
download | pfsense-55cfe813d2c0421f7a72138b1266bf5d02137b12.zip pfsense-55cfe813d2c0421f7a72138b1266bf5d02137b12.tar.gz |
Switch to a common function to determine anti-lockout ports, and fix a bug that was getting the ports wrong with custom https+redirect on.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/firewall_rules.php | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php index cbbaba1..599d6a3 100755 --- a/usr/local/www/firewall_rules.php +++ b/usr/local/www/firewall_rules.php @@ -401,17 +401,7 @@ if($_REQUEST['undodrag']) { (((count($config['interfaces']) > 1) && ($if == 'lan')) || ((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 = ($config['system']['ssh']['port']) ? $config['system']['ssh']['port'] : 22; - } - $sshport = "{$sshport}<br/>"; + $alports = implode('<br/>', filter_get_antilockout_ports(true)); ?> <tr valign="top" id="antilockout"> <td class="list"> </td> @@ -424,7 +414,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"><?= $sshport . $guiport ?></td> + <td class="listr" style="background-color: #E0E0E0"><?= $alports ?></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> |