mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
ereg/intval update
This commit is contained in:
parent
ec67908ccf
commit
60646ef432
@ -137,7 +137,7 @@
|
|||||||
$context = $GLOBALS['phpgw_info']['server']['ldap_contact_context'];
|
$context = $GLOBALS['phpgw_info']['server']['ldap_contact_context'];
|
||||||
}
|
}
|
||||||
$time = gettimeofday();
|
$time = gettimeofday();
|
||||||
$cn = ereg_replace(',','',$buffer[$this->id]['cn']);
|
$cn = str_replace(',','',$buffer[$this->id]['cn']);
|
||||||
$buffer[$this->id]['dn'] = 'uid='.time().$time['usec'].':'.$cn.','.$context;
|
$buffer[$this->id]['dn'] = 'uid='.time().$time['usec'].':'.$cn.','.$context;
|
||||||
$buffer[$this->id]['uid'] = time().$time['usec'];
|
$buffer[$this->id]['uid'] = time().$time['usec'];
|
||||||
if ($buffer[$this->id]['cn'])
|
if ($buffer[$this->id]['cn'])
|
||||||
@ -160,7 +160,7 @@
|
|||||||
{
|
{
|
||||||
if (($value != 'dn') && !empty($buffer[$i][$value]))
|
if (($value != 'dn') && !empty($buffer[$i][$value]))
|
||||||
{
|
{
|
||||||
$tmp = ereg_replace(',','',$buffer[$i][$value]);
|
$tmp = str_replace(',','',$buffer[$i][$value]);
|
||||||
$entries .= $value . ': ' . $tmp . "\n";
|
$entries .= $value . ': ' . $tmp . "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
function import_new_attrib($buffer,$name,$value)
|
function import_new_attrib($buffer,$name,$value)
|
||||||
{
|
{
|
||||||
$value = trim($value);
|
$value = trim($value);
|
||||||
$value = ereg_replace('=0D=0A',"\n",$value);
|
$value = str_replace('=0D=0A',"\n",$value);
|
||||||
/* echo '<br>'.$this->id.': '.$name.' => '.$value; */
|
/* echo '<br>'.$this->id.': '.$name.' => '.$value; */
|
||||||
$this->currentrecord += array($name => $value);
|
$this->currentrecord += array($name => $value);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user