@@ 945-950 (lines=6) @@ | ||
942 | $t = bcadd($t, ''.ord($code[5])); |
|
943 | // tmp array for the 6 bytes block |
|
944 | $cw6 = array(); |
|
945 | do { |
|
946 | $d = bcmod($t, '900'); |
|
947 | $t = bcdiv($t, '900'); |
|
948 | // prepend the value to the beginning of the array |
|
949 | array_unshift($cw6, $d); |
|
950 | } while ($t != '0'); |
|
951 | // append the result array at the end |
|
952 | $cw = array_merge($cw, $cw6); |
|
953 | } else { |
|
@@ 971-975 (lines=5) @@ | ||
968 | $rest = ''; |
|
969 | } |
|
970 | $t = '1'.$code; |
|
971 | do { |
|
972 | $d = bcmod($t, '900'); |
|
973 | $t = bcdiv($t, '900'); |
|
974 | array_unshift($cw, $d); |
|
975 | } while ($t != '0'); |
|
976 | $code = $rest; |
|
977 | } |
|
978 | break; |