www: remove the usage of deprecated functions 's/eregi/preg_match/'

SVN revision: 84523
This commit is contained in:
Bertrand Jacquin 2013-04-28 04:42:07 +00:00
parent 80672095ec
commit fc05c757f6
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ $geocache_file = sys_get_temp_dir() . "/e_devs_map_geocache";
function
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]);
else return "";
}

View File

@ -7,7 +7,7 @@ $geocache_file = sys_get_temp_dir() . "/e_devs_map_geocache";
function
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]);
else return "";
}