Removed: Function eregi() and eregi_replace()

Added: preg_match() and preg_replace()
This commit is contained in:
abraar
2010-12-08 15:05:47 +00:00
parent dc51b8e4d2
commit 63cb1fa5ad
9 changed files with 51 additions and 44 deletions

View File

@@ -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 );