|
|
@@ -23,17 +23,21 @@ 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);
|
|
|
- if ($return_var == 0) {
|
|
|
- $_SESSION['restore_msg'] = __('RESTORE_SCHEDULED');
|
|
|
- } else {
|
|
|
- $_SESSION['restore_msg'] = implode('<br>', $output);
|
|
|
- if (empty($_SESSION['restore_msg'])) {
|
|
|
- $_SESSION['restore_msg'] = __('Error: vesta did not return any output.');
|
|
|
- }
|
|
|
- if ($return_var == 4) {
|
|
|
- $_SESSION['restore_msg'] = __('RESTORE_EXISTS');
|
|
|
- }
|
|
|
+ $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 {
|
|
|
+ $_SESSION['restore_msg'] = implode('<br>', $output);
|
|
|
+ if (empty($_SESSION['restore_msg'])) {
|
|
|
+ $_SESSION['restore_msg'] = __('Error: vesta did not return any output.');
|
|
|
+ }
|
|
|
+ if ($return_var == 4) {
|
|
|
+ $_SESSION['restore_msg'] = __('RESTORE_EXISTS');
|
|
|
}
|
|
|
}
|
|
|
|