www: remove the usage of deprecated functions 's/eregi/preg_match/'
SVN revision: 84523
This commit is contained in:
parent
80672095ec
commit
fc05c757f6
|
@ -7,7 +7,7 @@ $geocache_file = sys_get_temp_dir() . "/e_devs_map_geocache";
|
||||||
function
|
function
|
||||||
GetValueFromInfoFile($field, $InfoFile)
|
GetValueFromInfoFile($field, $InfoFile)
|
||||||
{
|
{
|
||||||
if ($i=eregi("$field:[ \t]*([ ,@.:/~()!a-zA-Z0-9_-]*)", "$InfoFile", $result))
|
if ($i=preg_match("/$field:[ \t]*([ ,@.:i\/~()!a-zA-Z0-9_-]*)/i", "$InfoFile", $result))
|
||||||
return trim($result[1]);
|
return trim($result[1]);
|
||||||
else return "";
|
else return "";
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ $geocache_file = sys_get_temp_dir() . "/e_devs_map_geocache";
|
||||||
function
|
function
|
||||||
GetValueFromInfoFile($field, $InfoFile)
|
GetValueFromInfoFile($field, $InfoFile)
|
||||||
{
|
{
|
||||||
if ($i=eregi("$field:[ \t]*([ ,@.:/~()!a-zA-Z0-9_-]*)", "$InfoFile", $result))
|
if ($i=preg_match("/$field:[ \t]*([ ,@.:\/~()!a-zA-Z0-9_-]*)/i", "$InfoFile", $result))
|
||||||
return trim($result[1]);
|
return trim($result[1]);
|
||||||
else return "";
|
else return "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue