mirror of
https://github.com/myvesta/vesta
synced 2025-07-15 01:23:23 -07:00
added error message dialog
This commit is contained in:
parent
25a2926881
commit
3f5617c0a6
36 changed files with 494 additions and 18 deletions
|
@ -10,8 +10,14 @@ include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
|||
$v_username = escapeshellarg($user);
|
||||
$v_backup = escapeshellarg($_GET['backup']);
|
||||
exec (VESTA_CMD."v_delete_user_backup ".$v_username." ".$v_backup, $output, $return_var);
|
||||
unset($output);
|
||||
}
|
||||
if ($return_var != 0) {
|
||||
$error = implode('<br>', $output);
|
||||
if (empty($error)) $error = 'Error: vesta did not return any output.';
|
||||
$_SESSION['error_msg'] = $error;
|
||||
}
|
||||
unset($output);
|
||||
|
||||
//}
|
||||
|
||||
header("Location: /list/backup/");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue