mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 02:28:03 -07:00
added error message dialog
This commit is contained in:
parent
25a2926881
commit
3f5617c0a6
36 changed files with 494 additions and 18 deletions
|
@ -11,6 +11,11 @@ if ($_SESSION['user'] == 'admin') {
|
|||
$v_username = escapeshellarg($user);
|
||||
$v_domain = escapeshellarg($_GET['domain']);
|
||||
exec (VESTA_CMD."v_unsuspend_mail_domain ".$v_username." ".$v_domain, $output, $return_var);
|
||||
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/mail/");
|
||||
exit;
|
||||
|
@ -22,6 +27,11 @@ if ($_SESSION['user'] == 'admin') {
|
|||
$v_domain = escapeshellarg($_GET['domain']);
|
||||
$v_account = escapeshellarg($_GET['account']);
|
||||
exec (VESTA_CMD."v_unsuspend_mail_account ".$v_username." ".$v_domain." ".$v_account, $output, $return_var);
|
||||
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/mail/?domain=".$_GET['domain']);
|
||||
exit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue