diff --git a/web/add/mail/index.php b/web/add/mail/index.php index b0058465..520f3bd5 100644 --- a/web/add/mail/index.php +++ b/web/add/mail/index.php @@ -139,9 +139,16 @@ if (!empty($_POST['ok_acc'])) { } if (empty($_SESSION['error_msg'])) { + exec (VESTA_CMD."v-list-sys-config json", $output, $return_var); + $sys = json_decode(implode('', $output), true); + unset($output); + list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":"); + $webmail = "http://".$http_host."/webmail/"; + if (!empty($sys['config']['MAIL_URL'])) $webmail = $sys['config']['MAIL_URL']; + $_SESSION['ok_msg'] = __('MAIL_ACCOUNT_CREATED_OK',$_POST['v_account'],$_POST[v_domain],$_POST['v_account'],$_POST[v_domain]); - $_SESSION['ok_msg'] .= " / " . __('open webmail') . ""; + $_SESSION['ok_msg'] .= " / " . __('open webmail') . ""; unset($v_account); unset($v_password); unset($v_password); diff --git a/web/list/mail/index.php b/web/list/mail/index.php index d0d9cf2c..297c64a1 100644 --- a/web/list/mail/index.php +++ b/web/list/mail/index.php @@ -13,6 +13,12 @@ top_panel($user,$TAB); // Data if (empty($_GET['domain'])){ + + // SYS + exec (VESTA_CMD."v-list-sys-config json", $output, $return_var); + $sys = json_decode(implode('', $output), true); + unset($output); + exec (VESTA_CMD."v-list-mail-domains $user json", $output, $return_var); $data = json_decode(implode('', $output), true); $data = array_reverse($data, true); diff --git a/web/templates/admin/list_mail.html b/web/templates/admin/list_mail.html index d76ecf63..72a9a775 100644 --- a/web/templates/admin/list_mail.html +++ b/web/templates/admin/list_mail.html @@ -31,6 +31,9 @@