fix for full restore

This commit is contained in:
Serghey Rodin 2013-10-21 17:47:24 +03:00
commit 525d706644
2 changed files with 16 additions and 12 deletions

View file

@ -23,7 +23,12 @@ if ($_GET['type'] == 'cron') $cron = 'yes';
if ($_GET['type'] == 'udir') $udir = escapeshellarg($_GET['object']);
if (!empty($_GET['type'])) {
exec (VESTA_CMD."v-schedule-user-restore ".$user." ".$backup." ".$web." ".$dns." ".$mail." ".$db." ".$cron." ".$udir, $output, $return_var);
$restore_cmd = VESTA_CMD."v-schedule-user-restore ".$user." ".$backup." ".$web." ".$dns." ".$mail." ".$db." ".$cron." ".$udir;
} else {
$restore_cmd = VESTA_CMD."v-schedule-user-restore ".$user." ".$backup;
}
exec ($restore_cmd, $output, $return_var);
if ($return_var == 0) {
$_SESSION['restore_msg'] = __('RESTORE_SCHEDULED');
} else {
@ -35,6 +40,5 @@ if (!empty($_GET['type'])) {
$_SESSION['restore_msg'] = __('RESTORE_EXISTS');
}
}
}
header("Location: /list/backup/?backup=" . $_GET['backup']);

View file

@ -2,7 +2,7 @@
<tr>
<td style="padding: 12px 8px">
<div class="submenu-button-block">
<button class="submenu-button" onclick="location.href='/schedule/restore/'"> <?php print __('Restore All');?> </button>
<button class="submenu-button" onclick="location.href='/schedule/restore/?backup=<?php echo $_GET['backup'] ?>'"> <?php print __('Restore All');?> </button>
</div>
<div class="submenu-search-block">
<form action="/search/" method="get">