summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2004-11-21 06:19:13 +0000
committerScott Ullrich <sullrich@pfsense.org>2004-11-21 06:19:13 +0000
commit49d5428037c900cc160e838a8b4ad9c82c58bd35 (patch)
tree97b12e3a4c9bbec84cddc22aa5fb7096e45997ca /usr/local/www
parent1dc8c3eb902aeb7dfc479106efb6bb8c383f9722 (diff)
downloadpfsense-49d5428037c900cc160e838a8b4ad9c82c58bd35.zip
pfsense-49d5428037c900cc160e838a8b4ad9c82c58bd35.tar.gz
m0n0wall -> pfSense
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/diag_backup.php42
1 files changed, 21 insertions, 21 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php
index 888651c..7b65071 100755
--- a/usr/local/www/diag_backup.php
+++ b/usr/local/www/diag_backup.php
@@ -1,22 +1,22 @@
#!/usr/local/bin/php
-<?php
+<?php
/*
diag_backup.php
part of m0n0wall (http://m0n0.ch/wall)
-
+
Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
All rights reserved.
-
+
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
-
+
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
-
+
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
-
+
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
@@ -31,26 +31,26 @@
/* omit no-cache headers because it confuses IE with file downloads */
$omit_nocacheheaders = true;
-require("guiconfig.inc");
+require("guiconfig.inc");
if ($_POST) {
unset($input_errors);
-
+
if (stristr($_POST['Submit'], "Restore"))
$mode = "restore";
else if (stristr($_POST['Submit'], "Download"))
$mode = "download";
-
+
if ($mode) {
if ($mode == "download") {
config_lock();
-
- $fn = "config-" . $config['system']['hostname'] . "." .
+
+ $fn = "config-" . $config['system']['hostname'] . "." .
$config['system']['domain'] . "-" . date("YmdHis") . ".xml";
-
+
$fs = filesize($g['conf_path'] . "/config.xml");
- header("Content-Type: application/octet-stream");
+ header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=$fn");
header("Content-Length: $fs");
readfile($g['conf_path'] . "/config.xml");
@@ -86,13 +86,13 @@ if ($_POST) {
<?php if ($input_errors) print_input_errors($input_errors); ?>
<?php if ($savemsg) print_info_box($savemsg); ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
+ <tr>
<td colspan="2" class="listtopic">Backup configuration</td>
</tr>
- <tr>
+ <tr>
<td width="22%" valign="baseline">&nbsp;</td>
- <td width="78%" class="listn">
- <p> Click this button to download the system configuration
+ <td width="78%" class="listn">
+ <p> Click this button to download the system configuration
in XML format.<br>
<br>
<input name="Submit" type="submit" class="formbtn" id="download" value="Download configuration">
@@ -100,13 +100,13 @@ if ($_POST) {
&nbsp; <br>
&nbsp; </p></td>
</tr>
- <tr>
+ <tr>
<td colspan="2" class="listtopic">Restore configuration</td>
</tr>
- <tr>
+ <tr>
<td width="22%" valign="baseline">&nbsp;</td>
- <td width="78%" class="listn">
- <p> Open a m0n0wall configuration XML file and click the button
+ <td width="78%" class="listn">
+ <p> Open a pfSense configuration XML file and click the button
below to restore the configuration.<br>
<br>
<strong><span class="red">Note:</span></strong><br>
OpenPOWER on IntegriCloud