diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-01-06 14:10:47 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-01-06 14:11:14 -0200 |
commit | 81f1947666ebbe19f1f6579a1e5293c42c6d1c04 (patch) | |
tree | df8d45ce2c8862eca85177a09c4f8df69c19f849 /usr/local/www/status_gateways.php | |
parent | 30e2adbc04d37bf66bd4e0cce675d12fd3120f5a (diff) | |
download | pfsense-81f1947666ebbe19f1f6579a1e5293c42c6d1c04.zip pfsense-81f1947666ebbe19f1f6579a1e5293c42c6d1c04.tar.gz |
Add an option to force a gateway to be down, it fixes #2847
Diffstat (limited to 'usr/local/www/status_gateways.php')
-rwxr-xr-x | usr/local/www/status_gateways.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/status_gateways.php b/usr/local/www/status_gateways.php index e7154a8..ffe1458 100755 --- a/usr/local/www/status_gateways.php +++ b/usr/local/www/status_gateways.php @@ -115,7 +115,10 @@ include("head.inc"); <?php if ($gateways_status[$gname]) { $status = $gateways_status[$gname]; - if (stristr($status['status'], "down")) { + if (stristr($status['status'], "force_down")) { + $online = gettext("Offline (forced)"); + $bgcolor = "#F08080"; // lightcoral + } elseif (stristr($status['status'], "down")) { $online = gettext("Offline"); $bgcolor = "#F08080"; // lightcoral } elseif (stristr($status['status'], "loss")) { |