quick links after successful creation

This commit is contained in:
Serghey Rodin 2013-10-28 14:00:58 +02:00
commit 01c6af93f1
8 changed files with 15 additions and 12 deletions

View file

@ -151,7 +151,9 @@ top_panel($user,$TAB);
unset($output);
if (empty($_SESSION['error_msg'])) {
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
$_SESSION['ok_msg'] = __('MAIL_ACCOUNT_CREATED_OK',$_POST['v_account'],$_POST[v_domain],$_POST['v_account'],$_POST[v_domain]);
$_SESSION['ok_msg'] .= " / <a href=http://".$http_host."/webmail target='_blank'>" . __('open webmail') . "</a>";
unset($v_account);
unset($v_password);
unset($v_password);

View file

@ -82,6 +82,7 @@ if ($_SESSION['user'] == 'admin') {
}
$_SESSION['ok_msg'] = __('USER_CREATED_OK',$_POST[v_username],$_POST[v_username]);
$_SESSION['ok_msg'] .= " / <a href=/login/?loginas=".$_POST[v_username].">" . __('login as') ." ".$_POST[v_username]. "</a>";
unset($v_username);
unset($v_password);
unset($v_email);