mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
fix problem with missing first and lastname on emailadminprofile (select box of profiles)
This commit is contained in:
parent
96d5e48885
commit
bc2e5836e2
@ -20,43 +20,43 @@
|
||||
|
||||
/**
|
||||
* SmtpServerId
|
||||
*
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
var $SmtpServerId;
|
||||
|
||||
var $smtpAuth = false;
|
||||
|
||||
var $editForwardingAddress = false;
|
||||
|
||||
var $editForwardingAddress = false;
|
||||
|
||||
var $host;
|
||||
|
||||
|
||||
var $port;
|
||||
|
||||
|
||||
var $username;
|
||||
|
||||
|
||||
var $password;
|
||||
|
||||
|
||||
var $defaultDomain;
|
||||
|
||||
|
||||
// the constructor
|
||||
function defaultsmtp($defaultDomain=null)
|
||||
{
|
||||
$this->defaultDomain = $defaultDomain ? $defaultDomain : $GLOBALS['egw_info']['server']['mail_suffix'];
|
||||
}
|
||||
|
||||
|
||||
// add a account
|
||||
function addAccount($_hookValues)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// delete a account
|
||||
function deleteAccount($_hookValues)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
function getAccountEmailAddress($_accountName)
|
||||
{
|
||||
$accountID = $GLOBALS['egw']->accounts->name2id($_accountName);
|
||||
@ -64,12 +64,12 @@
|
||||
if(empty($emailAddress))
|
||||
$emailAddress = $_accountName.'@'.$this->defaultDomain;
|
||||
|
||||
$realName = trim($GLOBALS['egw_info']['user']['firstname'] . (!empty($GLOBALS['egw_info']['user']['firstname']) ? ' ' : '') . $GLOBALS['egw_info']['user']['lastname']);
|
||||
$realName = trim($GLOBALS['egw_info']['user']['account_firstname'] . (!empty($GLOBALS['egw_info']['user']['account_firstname']) ? ' ' : '') . $GLOBALS['egw_info']['user']['account_lastname']);
|
||||
|
||||
return array(
|
||||
array(
|
||||
'name' => $realName,
|
||||
'address' => $emailAddress,
|
||||
'name' => $realName,
|
||||
'address' => $emailAddress,
|
||||
'type' => 'default'
|
||||
)
|
||||
);
|
||||
@ -77,7 +77,7 @@
|
||||
|
||||
function getUserData($_uidnumber) {
|
||||
$userData = array();
|
||||
|
||||
|
||||
return $userData;
|
||||
}
|
||||
|
||||
@ -88,7 +88,7 @@
|
||||
function setUserData($_uidnumber, $_mailAlternateAddress, $_mailForwardingAddress, $_deliveryMode) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// update a account
|
||||
function updateAccount($_hookValues) {
|
||||
return true;
|
||||
|
@ -178,7 +178,7 @@ class emailadmin_smtp_ldap extends defaultsmtp
|
||||
|
||||
if ($sri)
|
||||
{
|
||||
$realName = trim($GLOBALS['egw_info']['user']['firstname'] . (!empty($GLOBALS['egw_info']['user']['firstname']) ? ' ' : '') . $GLOBALS['egw_info']['user']['lastname']);
|
||||
$realName = trim($GLOBALS['egw_info']['user']['account_firstname'] . (!empty($GLOBALS['egw_info']['user']['account_firstname']) ? ' ' : '') . $GLOBALS['egw_info']['user']['account_lastname']);
|
||||
$allValues = ldap_get_entries($ds, $sri);
|
||||
|
||||
if(isset($allValues[0]['mail']))
|
||||
|
Loading…
Reference in New Issue
Block a user