mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
Create a default xmozillaanyphone if ophone/tel_work are available
This commit is contained in:
parent
4a8de97446
commit
f386666a58
@ -40,6 +40,7 @@
|
||||
"ophone" => "xmozillaanyphone",
|
||||
"tel_cell" => "cellphone",
|
||||
"note" => "description",
|
||||
"ophone" => "ophone",
|
||||
"tel_pager" => "pagerphone",
|
||||
"email" => "mail",
|
||||
"url" => "homeurl",
|
||||
@ -84,7 +85,12 @@
|
||||
$buffer[$this->id]["dn"] = 'cn='.$buffer[$this->id]["cn"].',mail='.$buffer[$this->id]["mail"];
|
||||
$buffer[$this->id]["xmozillauseconferenceserver"] = "";
|
||||
$buffer[$this->id]["xmozillanickname"] = "";
|
||||
$buffer[$this->id]["xmozillausehtmlmail"] = "";
|
||||
$buffer[$this->id]["xmozillausehtmlmail"] = "False";
|
||||
if ($buffer[$this->id]["ophone"]) {
|
||||
$buffer[$this->id]["xmozillaanyphone"] = $buffer[$this->id]["ophone"];
|
||||
} else {
|
||||
$buffer[$this->id]["xmozillaanyphone"] = $buffer[$this->id]["telephonenumber"];
|
||||
}
|
||||
//echo '<br>'.$this->id.' - '.$buffer[$this->id]['dn'];
|
||||
return $buffer;
|
||||
}
|
||||
@ -102,6 +108,7 @@
|
||||
$entries .= "xmozillauseconferenceserver: " . $buffer[$i]["xmozillauseconferenceserver"] . "\n";
|
||||
$entries .= "xmozillanickname: " . $buffer[$i]["xmozillanickname"] . "\n";
|
||||
$entries .= "xmozillausehtmlmail: " . $buffer[$i]["xmozillausehtmlmail"] . "\n";
|
||||
$entries .= "xmozillaanyphone: " . $buffer[$this->id]["xmozillaanyphone"] . "\n";
|
||||
$entries .= "objectClass: person\n";
|
||||
$entries .= "objectClass: account\n";
|
||||
$entries .= "objectClass: organizationalPerson\n";
|
||||
|
Loading…
Reference in New Issue
Block a user