added error message dialog

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

View file

@ -9,8 +9,14 @@ if ($_SESSION['user'] == 'admin') {
if (!empty($_GET['ip'])) {
$v_ip = escapeshellarg($_GET['ip']);
exec (VESTA_CMD."v_delete_sys_ip ".$v_ip, $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/ip/");