From 83fa2e42a9a402a232c642ac25b44911c644ce49 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Fri, 19 Dec 2003 09:25:19 +0000 Subject: [PATCH] replace ereg_ with str_ --- addressbook/inc/class.boXport.inc.php | 6 +++--- addressbook/inc/class.uiXport.inc.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/addressbook/inc/class.boXport.inc.php b/addressbook/inc/class.boXport.inc.php index 58f0c645a4..46ce01f855 100644 --- a/addressbook/inc/class.boXport.inc.php +++ b/addressbook/inc/class.boXport.inc.php @@ -313,7 +313,7 @@ { //echo '
zip_entry_name==' . zip_entry_name($dirent); /* If an allowed extenstion based on conversion type */ - if(ereg($ext,zip_entry_name($dirent))) + if(strstr(zip_entry_name($dirent),$ext)) { /* Write the data to our temp file */ $data = zip_entry_read($dirent,zip_entry_filesize($dirent)); @@ -349,8 +349,8 @@ { if(substr($col,0,6) == 'extra_') { - $field = ereg_replace('extra_','',$col); - $field = ereg_replace(' ','_',$field); + $field = str_replace('extra_','',$col); + $field = str_replace(' ','_',$field); $customfields[$field] = ucfirst($field); } } diff --git a/addressbook/inc/class.uiXport.inc.php b/addressbook/inc/class.uiXport.inc.php index 41c505c8ce..c5c09bafea 100644 --- a/addressbook/inc/class.uiXport.inc.php +++ b/addressbook/inc/class.uiXport.inc.php @@ -167,7 +167,7 @@ sort($myfilearray); for($i=0;$i' . $fname . ''; } @@ -272,7 +272,7 @@ sort($myfilearray); for($i=0;$i'.$fname.''."\n"; }