note 44976 deleted from ref.network by aidan
| From: | aidan@php.net | Date: | Sun, 22 Aug 2004 11:16:49 +0000 |
| Subject: | note 44976 deleted from ref.network by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-75091@lists.php.net to get a copy of this message | ||
Note Submitter: pedro at momentus dot com dot br
----
isIPIn - routine
------------------
It's a good idea to test de ip/netmask, for error, otherwise the routine may 'allow'
access to improper clients.
list($net,$mask)=split("/",$k);
if(!$net or !$mask){
print "<br><h3>Error in declaring ip/mas: $k,
$v</h3><br>";
exit();
}
if (isIPIn($myip,$net,$mask)) {
echo $n[$k]."<br />\n";
}