diff options
author | k-paulius <k.dash.paulius@gmail.com> | 2016-02-13 16:22:44 -0600 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-02-14 15:09:54 -0500 |
commit | 7c945f74712d3c2ef8d1beee65b881cfcf80e6bd (patch) | |
tree | 1664e15a5b3e1202bf87ebcc62f538005d6f42c3 /src/usr/local/www/diag_halt.php | |
parent | b290833b28c3083a7cb5c8b3ec5060620274e2b9 (diff) | |
download | pfsense-7c945f74712d3c2ef8d1beee65b881cfcf80e6bd.zip pfsense-7c945f74712d3c2ef8d1beee65b881cfcf80e6bd.tar.gz |
Use print_info_box() to generate alerts
Diffstat (limited to 'src/usr/local/www/diag_halt.php')
-rwxr-xr-x | src/usr/local/www/diag_halt.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/usr/local/www/diag_halt.php b/src/usr/local/www/diag_halt.php index c2b5236..848d96b 100755 --- a/src/usr/local/www/diag_halt.php +++ b/src/usr/local/www/diag_halt.php @@ -81,11 +81,9 @@ include('head.inc'); if ($_SERVER['REQUEST_METHOD'] == 'POST') { ?> <meta http-equiv="refresh" content="70;url=/"> - <div class="alert alert-success" role="alert"> - <?=gettext("The system is halting now. This may take one minute or so.")?> - </div> - <?php + print_info_box(gettext("The system is halting now. This may take one minute or so."), 'success', false); + if (DEBUG) { print(sprintf(gettext("Not actually halting (DEBUG is set true)%s"), "<br />")); } else { |