From 0acd271b3cf3c6688f9167e79c730528fa320d73 Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 30 Jan 2013 10:13:28 -0500 Subject: Change output style to follow halt.php and reboot.php so the shutdown output appears in the correct location on the page. --- usr/local/www/diag_defaults.php | 23 +++++++++++++---------- 1 file 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"); - + + +
+
+
+

-- cgit v1.1