ereg/intval update

This commit is contained in:
Miles Lott 2003-12-19 10:05:05 +00:00
parent ec67908ccf
commit 60646ef432
2 changed files with 3 additions and 3 deletions

View File

@ -137,7 +137,7 @@
$context = $GLOBALS['phpgw_info']['server']['ldap_contact_context'];
}
$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]['uid'] = time().$time['usec'];
if ($buffer[$this->id]['cn'])
@ -160,7 +160,7 @@
{
if (($value != 'dn') && !empty($buffer[$i][$value]))
{
$tmp = ereg_replace(',','',$buffer[$i][$value]);
$tmp = str_replace(',','',$buffer[$i][$value]);
$entries .= $value . ': ' . $tmp . "\n";
}
}

View File

@ -51,7 +51,7 @@
function import_new_attrib($buffer,$name,$value)
{
$value = trim($value);
$value = ereg_replace('=0D=0A',"\n",$value);
$value = str_replace('=0D=0A',"\n",$value);
/* echo '<br>'.$this->id.': '.$name.' => '.$value; */
$this->currentrecord += array($name => $value);