From ffdce5eb30f7746bbd21311128aebf05b4fb450f Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Mon, 15 Jan 2018 14:11:42 +0000 Subject: [PATCH] ipaddresses : remove the trailing echo git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4034 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- ipaddresses.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/ipaddresses.php b/ipaddresses.php index 4936b2b..4e5bf59 100644 --- a/ipaddresses.php +++ b/ipaddresses.php @@ -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++)