Commit 3bac88ba by Frederick

downgrade phpqrcode

1 parent b5539ee8
......@@ -703,7 +703,7 @@ if (!class_exists('QRcode', false)) {
protected function binarize($frame) {
$len = count($frame);
// the frame is square (width = height)
foreach ($frame as &$frameLine) {
foreach ($frame as $frameLine) {
for ($i=0; $i<$len; $i++) {
$frameLine[$i] = (ord($frameLine[$i])&1)?'1':'0';
}
......
......@@ -161,7 +161,7 @@
function binarize($frame)
{
$len = count($frame);
foreach ($frame as &$frameLine) {
foreach ($frame as $frameLine) {
for($i=0; $i<$len; $i++) {
$frameLine[$i] = (ord($frameLine[$i])&1)?'1':'0';
......@@ -801,7 +801,7 @@
{
if ($binary_mode) {
foreach ($frame as &$frameLine) {
foreach ($frame as $frameLine) {
$frameLine = join('<span class="m">&nbsp;&nbsp;</span>', explode('0', $frameLine));
$frameLine = join('&#9608;&#9608;', explode('1', $frameLine));
}
......@@ -817,7 +817,7 @@
} else {
foreach ($frame as &$frameLine) {
foreach ($frame as $frameLine) {
$frameLine = join('<span class="m">&nbsp;</span>', explode("\xc0", $frameLine));
$frameLine = join('<span class="m">&#9618;</span>', explode("\xc1", $frameLine));
$frameLine = join('<span class="p">&nbsp;</span>', explode("\xa0", $frameLine));
......
......@@ -489,7 +489,7 @@
{
if ($binary_mode) {
foreach ($frame as &$frameLine) {
foreach ($frame as $frameLine) {
$frameLine = join('<span class="m">&nbsp;&nbsp;</span>', explode('0', $frameLine));
$frameLine = join('&#9608;&#9608;', explode('1', $frameLine));
}
......@@ -505,7 +505,7 @@
} else {
foreach ($frame as &$frameLine) {
foreach ($frame as $frameLine) {
$frameLine = join('<span class="m">&nbsp;</span>', explode("\xc0", $frameLine));
$frameLine = join('<span class="m">&#9618;</span>', explode("\xc1", $frameLine));
$frameLine = join('<span class="p">&nbsp;</span>', explode("\xa0", $frameLine));
......
......@@ -28,7 +28,7 @@
function binarize($frame)
{
$len = count($frame);
foreach ($frame as &$frameLine) {
foreach ($frame as $frameLine) {
for($i=0; $i<$len; $i++) {
$frameLine[$i] = (ord($frameLine[$i])&1)?'1':'0';
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!