mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-10 16:08:34 +01:00
replace ereg_ with str_
This commit is contained in:
parent
6d9fabe4ea
commit
83fa2e42a9
@ -313,7 +313,7 @@
|
|||||||
{
|
{
|
||||||
//echo '<br>zip_entry_name==' . zip_entry_name($dirent);
|
//echo '<br>zip_entry_name==' . zip_entry_name($dirent);
|
||||||
/* If an allowed extenstion based on conversion type */
|
/* 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 */
|
/* Write the data to our temp file */
|
||||||
$data = zip_entry_read($dirent,zip_entry_filesize($dirent));
|
$data = zip_entry_read($dirent,zip_entry_filesize($dirent));
|
||||||
@ -349,8 +349,8 @@
|
|||||||
{
|
{
|
||||||
if(substr($col,0,6) == 'extra_')
|
if(substr($col,0,6) == 'extra_')
|
||||||
{
|
{
|
||||||
$field = ereg_replace('extra_','',$col);
|
$field = str_replace('extra_','',$col);
|
||||||
$field = ereg_replace(' ','_',$field);
|
$field = str_replace(' ','_',$field);
|
||||||
$customfields[$field] = ucfirst($field);
|
$customfields[$field] = ucfirst($field);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -167,7 +167,7 @@
|
|||||||
sort($myfilearray);
|
sort($myfilearray);
|
||||||
for($i=0;$i<count($myfilearray);$i++)
|
for($i=0;$i<count($myfilearray);$i++)
|
||||||
{
|
{
|
||||||
$fname = ereg_replace('_',' ',$myfilearray[$i]);
|
$fname = str_replace('_',' ',$myfilearray[$i]);
|
||||||
$conv .= '<OPTION VALUE="' . $myfilearray[$i].'">' . $fname . '</OPTION>';
|
$conv .= '<OPTION VALUE="' . $myfilearray[$i].'">' . $fname . '</OPTION>';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -272,7 +272,7 @@
|
|||||||
sort($myfilearray);
|
sort($myfilearray);
|
||||||
for($i=0;$i<count($myfilearray);$i++)
|
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";
|
$conv .= ' <option value="'.$myfilearray[$i].'">'.$fname.'</option>'."\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user