From fc05c757f6122a51072c5575c6647079e5ae218c Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Sun, 28 Apr 2013 04:42:07 +0000 Subject: [PATCH] www: remove the usage of deprecated functions 's/eregi/preg_match/' SVN revision: 84523 --- p/contact/devsmap/en-body | 2 +- p/contact/devsmap_v3/en-body | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/p/contact/devsmap/en-body b/p/contact/devsmap/en-body index df0ddbd6..ac5b9228 100644 --- a/p/contact/devsmap/en-body +++ b/p/contact/devsmap/en-body @@ -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 ""; } diff --git a/p/contact/devsmap_v3/en-body b/p/contact/devsmap_v3/en-body index 00273aea..75d10008 100644 --- a/p/contact/devsmap_v3/en-body +++ b/p/contact/devsmap_v3/en-body @@ -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 ""; }