From: Enlightenment S. <no-...@en...> - 2013-04-28 04:42:15
|
Log: www: remove the usage of deprecated functions 's/eregi/preg_match/' Author: beber Date: 2013-04-27 21:42:07 -0700 (Sat, 27 Apr 2013) New Revision: 84523 Trac: http://trac.enlightenment.org/e/changeset/84523 Modified: trunk/web/www/p/contact/devsmap/en-body trunk/web/www/p/contact/devsmap_v3/en-body Modified: trunk/web/www/p/contact/devsmap/en-body =================================================================== --- trunk/web/www/p/contact/devsmap/en-body 2013-04-28 04:34:29 UTC (rev 84522) +++ trunk/web/www/p/contact/devsmap/en-body 2013-04-28 04:42:07 UTC (rev 84523) @@ -7,7 +7,7 @@ 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 ""; } Modified: trunk/web/www/p/contact/devsmap_v3/en-body =================================================================== --- trunk/web/www/p/contact/devsmap_v3/en-body 2013-04-28 04:34:29 UTC (rev 84522) +++ trunk/web/www/p/contact/devsmap_v3/en-body 2013-04-28 04:42:07 UTC (rev 84523) @@ -7,7 +7,7 @@ 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 ""; } |