projects
/
PHP-P10.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
syntax & bug fixes (first startable version)
[PHP-P10.git]
/
Uplink
/
Numerics.class.php
diff --git
a/Uplink/Numerics.class.php
b/Uplink/Numerics.class.php
index cb555fb2efad07008a5cb36d333282e5a03d2c23..2af7132f404dfd473298188d8f82aa94eeb3802f 100644
(file)
--- a/
Uplink/Numerics.class.php
+++ b/
Uplink/Numerics.class.php
@@
-136,7
+136,7
@@
class Numerics {
//thats a little bit complicated :D (we may only have one _)
$ipv6 = array();
$ip = explode(":",$ip);
//thats a little bit complicated :D (we may only have one _)
$ipv6 = array();
$ip = explode(":",$ip);
- $last_zero = false; $zero_sequence = 0; $biggest_zero_sequence = 0
,
$max_start = -1;
+ $last_zero = false; $zero_sequence = 0; $biggest_zero_sequence = 0
;
$max_start = -1;
foreach($ip as $i => $v) {
if($v == "") {
$skipBlocks = (8 - count($ip));
foreach($ip as $i => $v) {
if($v == "") {
$skipBlocks = (8 - count($ip));
@@
-169,7
+169,7
@@
class Numerics {
for($i = 0; $i < 8; $i++) {
if($i == $max_start) { //merge the biggest sequence of _'s
$ip .= "_";
for($i = 0; $i < 8; $i++) {
if($i == $max_start) { //merge the biggest sequence of _'s
$ip .= "_";
- $i += ($biggest_zero_sequence-1)
+ $i += ($biggest_zero_sequence-1)
;
} elseif($ipv6[$i] == "_") {
$ip .= "AAA";
} else {
} elseif($ipv6[$i] == "_") {
$ip .= "AAA";
} else {