diff --git a/src/www/diag_backup.php b/src/www/diag_backup.php index e0db2aa72..22b5a2c1d 100644 --- a/src/www/diag_backup.php +++ b/src/www/diag_backup.php @@ -214,14 +214,9 @@ if ($_POST) { $mode = "restore"; else if (stristr($_POST['Submit'], gettext("Download"))) $mode = "download"; - else if (stristr($_POST['Submit'], gettext("Restore version"))) - $mode = "restore_ver"; else if (stristr($_POST['Submit'], gettext("Setup/Test Google Drive"))) $mode = "setup_gdrive"; - if ($_POST["ver"] <> "") - $ver2restore = $_POST["ver"]; - if ($mode) { if ($mode == "download") { @@ -453,19 +448,6 @@ if ($_POST) { $input_errors[] = gettext("The configuration could not be restored (file upload error)."); } } - } elseif ($mode == "restore_ver") { - $input_errors[] = gettext("XXX - this feature may hose your config (do NOT backrev configs!) - billm"); - if ($ver2restore <> "") { - $conf_file = '/conf/backup/config-' . strtotime($ver2restore) . '.xml'; - $cnf = OPNsense\Core\Config::getInstance(); - if ($cnf->restoreBackup($conf_file)) { - mark_subsystem_dirty("restore"); - } else { - $input_errors[] = gettext("The configuration could not be restored."); - } - } else { - $input_errors[] = gettext("No version selected."); - } } elseif ( $mode == "setup_gdrive" ){ global $config; if (!isset($config['system']['remotebackup'])) { @@ -580,18 +562,14 @@ function backuparea_change(obj) {
-
- -
- -
+

-
+
@@ -640,7 +618,7 @@ function backuparea_change(obj) {
- " /> + " /> @@ -702,8 +680,8 @@ function backuparea_change(obj) { -

" />

-



+

" />

+

@@ -739,7 +717,7 @@ function backuparea_change(obj) { : - " type="submit"> + " type="submit">
@@ -747,10 +725,6 @@ function backuparea_change(obj) {
-
- -
-