diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-10-08 20:58:29 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-10-08 20:58:29 +0000 |
commit | 946ab33b995ad3a95d9d7b7b728bc106e73f8ecf (patch) | |
tree | 6e7005415a2a3c83975e318b34856f6a043413b1 | |
parent | c3e12d6603f68e4d0d5d08dd43435e34ddfa3aae (diff) | |
download | pfsense-packages-946ab33b995ad3a95d9d7b7b728bc106e73f8ecf.tar.gz pfsense-packages-946ab33b995ad3a95d9d7b7b728bc106e73f8ecf.tar.bz2 pfsense-packages-946ab33b995ad3a95d9d7b7b728bc106e73f8ecf.zip |
Pass along $hostname
-rw-r--r-- | packages/autoconfigbackup/autoconfigbackup.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/packages/autoconfigbackup/autoconfigbackup.php b/packages/autoconfigbackup/autoconfigbackup.php index 2e0fcbeb..63444a6d 100644 --- a/packages/autoconfigbackup/autoconfigbackup.php +++ b/packages/autoconfigbackup/autoconfigbackup.php @@ -84,7 +84,7 @@ if($_REQUEST['newver'] != "") { } else { curl_close($curl_session); } - if(!$input_errors && config_restore("/tmp/config_restore.xml") == 0) { + if(!$input_errors && $data && config_restore("/tmp/config_restore.xml") == 0) { $savemsg = "Successfully reverted the pfSense configuration to timestamp " . date("n/j/y H:i:s", $_REQUEST['newver']) . "."; } else { $savemsg = "Unable to revert to the selected configuration."; @@ -110,10 +110,8 @@ if (curl_errno($curl_session)) { curl_close($curl_session); } - if($_REQUEST['rmver'] != "") { - //unlink_if_exists($g['conf_path'] . '/backup/config-' . $_REQUEST['rmver'] . '.xml'); - //$savemsg = "Deleted backup with timestamp " . date("n/j/y H:i:s", $_REQUEST['rmver']) . " and description \"" . $confvers[$_REQUEST['rmver']]['description'] . "\"."; + // XXX: delete revision, or all backups from server. } // Loop through and create new confvers @@ -167,7 +165,9 @@ include("head.inc"); <td class="listlr"> <?= $cv['time']; ?></td> <td class="listlr"> <?= $cv['reason']; ?></td> <td colspan="2" valign="middle" class="list" nowrap> - <a href="autoconfigbackup.php?newver=<?=urlencode($cv['time']);?>"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0"></a> + <a href="autoconfigbackup.php?newver=<?=urlencode($cv['time']);?>&hostname=<?=urlencode($hostname);?>"> + <img src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0"> + </a> </td> </tr> <?php @@ -179,7 +179,7 @@ include("head.inc"); </table> </div> </td> - <tr><td> + <tr><td> <p> <strong> <span class="red">Hint: @@ -188,7 +188,6 @@ include("head.inc"); Click the + sign next to the revision you would like to restore. </p> </td></tr> - </tr> </table> </form> |