diff --git a/e107_admin/language.php b/e107_admin/language.php index 10e0cae7f..93c0fbb3f 100644 --- a/e107_admin/language.php +++ b/e107_admin/language.php @@ -913,7 +913,7 @@ function unused($lanfile,$script) { if(trim($line) !="") { - $disabled = (eregi("^//",$line)) ? " (disabled)" : FALSE; + $disabled = (preg_match("#^//#i",$line)) ? " (disabled)" : FALSE; if($match = getDefined($line)) { $text .= compareit($match['define'],$compare,$match['value'],$disabled); diff --git a/e107_admin/users.php b/e107_admin/users.php index 52bad7999..a93884712 100644 --- a/e107_admin/users.php +++ b/e107_admin/users.php @@ -1831,7 +1831,7 @@ class users if ($head['bounce']) { // Its a 'bounce' email - if (ereg('.*X-e107-id:(.*)MIME',$obj->getBody($i),$result)) + if (preg_match('/.*X-e107-id:(.*)MIME/',$obj->getBody($i),$result)) { if ($result[1]) { diff --git a/e107_core/shortcodes/single/imageselector.php b/e107_core/shortcodes/single/imageselector.php index 717a28105..11a0d3460 100644 --- a/e107_core/shortcodes/single/imageselector.php +++ b/e107_core/shortcodes/single/imageselector.php @@ -98,7 +98,7 @@ function imageselector_shortcode($parm = '', $mod = '') { $dir = str_replace($paths, "", $icon['path']); - if (!$filter || ($filter && ereg($filter, $dir.$icon['fname']))) + if (!$filter || ($filter && preg_match('~'.$filter.'~', $dir.$icon['fname']))) { $pth = $dir; if($fullpath) diff --git a/e107_handlers/mail_validation_class.php b/e107_handlers/mail_validation_class.php index bb70795e0..963089525 100644 --- a/e107_handlers/mail_validation_class.php +++ b/e107_handlers/mail_validation_class.php @@ -97,7 +97,7 @@ class email_validation_class $this->preg=(function_exists("preg_match") ? "/".str_replace("/", "\\/", $this->email_regular_expression)."/" : ""); return($this->ValidateEmailAddress($email)); } - return(eregi($this->email_regular_expression,$email)!=0); + return(preg_match("/".str_replace("/", "\\/", $this->email_regular_expression)."/i", $email)/*!=0*/); } Function ValidateEmailHost($email,&$hosts) @@ -156,7 +156,7 @@ class email_validation_class for($host=0;$hostfb_uid)) + if (((e_PAGE == "comment.php") || (stripos(e_QUERY, 'extend') !== FALSE)) && ($fb->fb_uid)) { echo '