replace ereg_ with str_

This commit is contained in:
Miles Lott 2003-12-19 09:25:19 +00:00
parent 6d9fabe4ea
commit 83fa2e42a9
2 changed files with 5 additions and 5 deletions

View File

@ -313,7 +313,7 @@
{
//echo '<br>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);
}
}

View File

@ -167,7 +167,7 @@
sort($myfilearray);
for($i=0;$i<count($myfilearray);$i++)
{
$fname = ereg_replace('_',' ',$myfilearray[$i]);
$fname = str_replace('_',' ',$myfilearray[$i]);
$conv .= '<OPTION VALUE="' . $myfilearray[$i].'">' . $fname . '</OPTION>';
}
@ -272,7 +272,7 @@
sort($myfilearray);
for($i=0;$i<count($myfilearray);$i++)
{
$fname = ereg_replace('_',' ',$myfilearray[$i]);
$fname = str_replace('_',' ',$myfilearray[$i]);
$conv .= ' <option value="'.$myfilearray[$i].'">'.$fname.'</option>'."\n";
}