Removed: Function eregi() and eregi_replace()
Added: preg_match() and preg_replace()
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user