Project

General

Profile

« Previous | Next » 

Revision 0acd271b

Added by Jim Pingle over 12 years ago

Change output style to follow halt.php and reboot.php so the shutdown output appears in the correct location on the page.

View differences:

usr/local/www/diag_defaults.php
44 44

  
45 45
require("guiconfig.inc");
46 46

  
47
if ($_POST) {
48
	if ($_POST['Submit'] != " No ") {
49
		reset_factory_defaults();
50
		system_reboot();
51
		$rebootmsg = gettext("The system has been reset to factory defaults and is now rebooting. This may take a few minutes, depending on your hardware.");
52
	} else {
53
		header("Location: index.php");
54
		exit;
55
	}
47
if ($_POST['Submit'] == " " . gettext("No") . " ") {
48
	header("Location: index.php");
49
	exit;
56 50
}
57 51

  
58 52
$pgtitle = array(gettext("Diagnostics"),gettext("Factory defaults"));
......
62 56

  
63 57
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
64 58
<?php include("fbegin.inc"); ?>
65
<?php if ($rebootmsg): echo print_info_box($rebootmsg); else: ?>
59

  
60
<?php if ($_POST['Submit'] == " " . gettext("Yes") . " "):
61
	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.")); ?>
62
<pre>
63
<?php
64
	reset_factory_defaults();
65
	system_reboot();
66
?>
67
</pre>
68
<?php else: ?>
66 69
<form action="diag_defaults.php" method="post">
67 70
              <p><strong> <?=gettext("If you click") . " &quot;" . gettext("Yes") . "&quot;, " . gettext("the firewall will:")?>
68 71

  

Also available in: Unified diff