summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_defaults.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-01-30 10:13:28 -0500
committerjim-p <jimp@pfsense.org>2013-01-30 10:22:53 -0500
commit0acd271b3cf3c6688f9167e79c730528fa320d73 (patch)
tree1d818b3122791a51bc33b5b5d2f9e5c485f4277d /usr/local/www/diag_defaults.php
parent5ee79d322a70127025e51241c6092c1e7db74981 (diff)
downloadpfsense-0acd271b3cf3c6688f9167e79c730528fa320d73.zip
pfsense-0acd271b3cf3c6688f9167e79c730528fa320d73.tar.gz
Change output style to follow halt.php and reboot.php so the shutdown output appears in the correct location on the page.
Diffstat (limited to 'usr/local/www/diag_defaults.php')
-rwxr-xr-xusr/local/www/diag_defaults.php23
1 files changed, 13 insertions, 10 deletions
diff --git a/usr/local/www/diag_defaults.php b/usr/local/www/diag_defaults.php
index 86ea6f9..d5116ff 100755
--- a/usr/local/www/diag_defaults.php
+++ b/usr/local/www/diag_defaults.php
@@ -44,15 +44,9 @@
require("guiconfig.inc");
-if ($_POST) {
- if ($_POST['Submit'] != " No ") {
- reset_factory_defaults();
- system_reboot();
- $rebootmsg = gettext("The system has been reset to factory defaults and is now rebooting. This may take a few minutes, depending on your hardware.");
- } else {
- header("Location: index.php");
- exit;
- }
+if ($_POST['Submit'] == " " . gettext("No") . " ") {
+ header("Location: index.php");
+ exit;
}
$pgtitle = array(gettext("Diagnostics"),gettext("Factory defaults"));
@@ -62,7 +56,16 @@ include("head.inc");
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php include("fbegin.inc"); ?>
-<?php if ($rebootmsg): echo print_info_box($rebootmsg); else: ?>
+
+<?php if ($_POST['Submit'] == " " . gettext("Yes") . " "):
+ print_info_box(gettext("The system has been reset to factory defaults and is now rebooting. This may take a few minutes, depending on your hardware.")); ?>
+<pre>
+<?php
+ reset_factory_defaults();
+ system_reboot();
+?>
+</pre>
+<?php else: ?>
<form action="diag_defaults.php" method="post">
<p><strong> <?=gettext("If you click") . " &quot;" . gettext("Yes") . "&quot;, " . gettext("the firewall will:")?>
OpenPOWER on IntegriCloud