ipaddresses : remove the trailing echo
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4034 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -474,7 +474,6 @@ class ipaddresses
|
||||
*/
|
||||
private function networkFirstLastIP ($ip, $cidr, $map)
|
||||
{
|
||||
echo "$ip, $cidr, $map\n";
|
||||
if ($this->validIPAddress ($ip) === false)
|
||||
throw new \Exception (dgettext("domframework", "Invalid IP address"),
|
||||
500);
|
||||
@@ -506,7 +505,6 @@ echo "$ip, $cidr, $map\n";
|
||||
{
|
||||
$ip = $this->completeAddressWithZero ($ip);
|
||||
$ip = str_replace (":", "", $ip);
|
||||
echo strlen ($ip)."\n";
|
||||
$ipArr = str_split ($ip, 2);
|
||||
$ipBin = "";
|
||||
foreach ($ipArr as $ip)
|
||||
@@ -517,7 +515,6 @@ echo strlen ($ip)."\n";
|
||||
for ($i = $cidr ; $i < 128 ; $i++)
|
||||
$cidrBin .= "0";
|
||||
}
|
||||
echo strlen ($ipBin)."\n";
|
||||
// Get the binary value of IP if the mask is 1 or put $map if the mask is 0
|
||||
$ipBaseBin = "";
|
||||
for ($i = 0 ; $i < strlen ($ipBin) ; $i++)
|
||||
|
||||
Reference in New Issue
Block a user