Example #1
0
require "guiconfig.inc";
if ($_POST['Submit'] == " " . gettext("No") . " ") {
    header("Location: index.php");
    exit;
}
$pgtitle = array(gettext("Diagnostics"), gettext("Factory defaults"));
include "head.inc";
?>

<?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 {
    ?>
<div class="panel panel-default">
	<div class="panel-heading">
		<h2 class="panel-title">Are you sure you want to reset the system to the factory defaults?</h2>
	</div>
	<div class="panel-body">
		<div class="content">
			<form action="diag_defaults.php" method="post">
				<p><strong><?php 
    echo gettext("If you click") . " &quot;" . gettext("Yes") . "&quot;, " . gettext("the firewall will:");
Example #2
0
include "fbegin.inc";
?>


<section class="page-content-main">
	<div class="container-fluid col-xs-12 col-sm-10 col-md-9">
		<div class="row">
		    <section class="col-xs-12">

			<?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(false);
    ?>
			</pre>
			<?php 
} else {
    ?>


				<form action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
" method="post">
				<p><strong> <?php 
    echo gettext("If you click") . " &quot;" . gettext("Yes") . "&quot;, " . gettext("the firewall will:");
    ?>
</strong></p>