added error message dialog

This commit is contained in:
Serghey Rodin 2012-08-02 10:57:04 +03:00
parent 25a2926881
commit 3f5617c0a6
36 changed files with 494 additions and 18 deletions

View file

@ -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/");