Removed: Function eregi() and eregi_replace()
Added: preg_match() and preg_replace()
This commit is contained in:
@@ -789,7 +789,8 @@ class dynaformEditorAjax extends dynaformEditor implements iDynaformEditorAjax
|
||||
* added by krlos carlos/a/colosa.com
|
||||
* in here we are validation if a xmlform has a submit action
|
||||
*/
|
||||
if(!eregi('type="submit"',$copy) && !eregi('type="grid"',$copy) && !isset($_SESSION['submitAction']) ){
|
||||
if(!preg_match("/type=\"submit\"/",$copy) && !preg_match("/type=\"grid\"/",$copy) && !isset($_SESSION['submitAction']) ){
|
||||
|
||||
$_SESSION['submitAction']= 1;
|
||||
$answer = 'noSub';
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ function lookup( $target ) {
|
||||
global $ntarget;
|
||||
$msg = $target . ' => ';
|
||||
//if (eregi ( '[a-zA-Z]', $target ))
|
||||
if (preg_match( '[a-zA-Z]', $target ))
|
||||
if (preg_match( '[a-zA-Z]', $target )) //Made compatible to PHP 5.3
|
||||
$ntarget = gethostbyname ( $target );
|
||||
else
|
||||
$ntarget = gethostbyaddr ( $target );
|
||||
|
||||
@@ -51,7 +51,7 @@ $html = '
|
||||
'Internet Explorer 4' => '(MSIE 4\.[0-9]+)',
|
||||
);
|
||||
foreach($browsers as $browser=>$pattern){
|
||||
if (eregi($pattern, $user_agent))
|
||||
if (preg_match($pattern, $user_agent))
|
||||
return $browser;
|
||||
}
|
||||
return 'Unknown';
|
||||
|
||||
Reference in New Issue
Block a user