Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ncphp
/
mcClasses
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3bac88ba
authored
Aug 04, 2011
by
Frederick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
downgrade phpqrcode
1 parent
b5539ee8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
lib/phpqrcode_php4/bindings/tcpdf/qrcode.php
lib/phpqrcode_php4/phpqrcode.php
lib/phpqrcode_php4/qrspec.php
lib/phpqrcode_php4/qrtools.php
lib/phpqrcode_php4/bindings/tcpdf/qrcode.php
View file @
3bac88b
...
@@ -703,7 +703,7 @@ if (!class_exists('QRcode', false)) {
...
@@ -703,7 +703,7 @@ if (!class_exists('QRcode', false)) {
protected
function
binarize
(
$frame
)
{
protected
function
binarize
(
$frame
)
{
$len
=
count
(
$frame
);
$len
=
count
(
$frame
);
// the frame is square (width = height)
// the frame is square (width = height)
foreach
(
$frame
as
&
$frameLine
)
{
foreach
(
$frame
as
$frameLine
)
{
for
(
$i
=
0
;
$i
<
$len
;
$i
++
)
{
for
(
$i
=
0
;
$i
<
$len
;
$i
++
)
{
$frameLine
[
$i
]
=
(
ord
(
$frameLine
[
$i
])
&
1
)
?
'1'
:
'0'
;
$frameLine
[
$i
]
=
(
ord
(
$frameLine
[
$i
])
&
1
)
?
'1'
:
'0'
;
}
}
...
...
lib/phpqrcode_php4/phpqrcode.php
View file @
3bac88b
...
@@ -161,7 +161,7 @@
...
@@ -161,7 +161,7 @@
function
binarize
(
$frame
)
function
binarize
(
$frame
)
{
{
$len
=
count
(
$frame
);
$len
=
count
(
$frame
);
foreach
(
$frame
as
&
$frameLine
)
{
foreach
(
$frame
as
$frameLine
)
{
for
(
$i
=
0
;
$i
<
$len
;
$i
++
)
{
for
(
$i
=
0
;
$i
<
$len
;
$i
++
)
{
$frameLine
[
$i
]
=
(
ord
(
$frameLine
[
$i
])
&
1
)
?
'1'
:
'0'
;
$frameLine
[
$i
]
=
(
ord
(
$frameLine
[
$i
])
&
1
)
?
'1'
:
'0'
;
...
@@ -801,7 +801,7 @@
...
@@ -801,7 +801,7 @@
{
{
if
(
$binary_mode
)
{
if
(
$binary_mode
)
{
foreach
(
$frame
as
&
$frameLine
)
{
foreach
(
$frame
as
$frameLine
)
{
$frameLine
=
join
(
'<span class="m"> </span>'
,
explode
(
'0'
,
$frameLine
));
$frameLine
=
join
(
'<span class="m"> </span>'
,
explode
(
'0'
,
$frameLine
));
$frameLine
=
join
(
'██'
,
explode
(
'1'
,
$frameLine
));
$frameLine
=
join
(
'██'
,
explode
(
'1'
,
$frameLine
));
}
}
...
@@ -817,7 +817,7 @@
...
@@ -817,7 +817,7 @@
}
else
{
}
else
{
foreach
(
$frame
as
&
$frameLine
)
{
foreach
(
$frame
as
$frameLine
)
{
$frameLine
=
join
(
'<span class="m"> </span>'
,
explode
(
"
\xc0
"
,
$frameLine
));
$frameLine
=
join
(
'<span class="m"> </span>'
,
explode
(
"
\xc0
"
,
$frameLine
));
$frameLine
=
join
(
'<span class="m">▒</span>'
,
explode
(
"
\xc1
"
,
$frameLine
));
$frameLine
=
join
(
'<span class="m">▒</span>'
,
explode
(
"
\xc1
"
,
$frameLine
));
$frameLine
=
join
(
'<span class="p"> </span>'
,
explode
(
"
\xa0
"
,
$frameLine
));
$frameLine
=
join
(
'<span class="p"> </span>'
,
explode
(
"
\xa0
"
,
$frameLine
));
...
...
lib/phpqrcode_php4/qrspec.php
View file @
3bac88b
...
@@ -489,7 +489,7 @@
...
@@ -489,7 +489,7 @@
{
{
if
(
$binary_mode
)
{
if
(
$binary_mode
)
{
foreach
(
$frame
as
&
$frameLine
)
{
foreach
(
$frame
as
$frameLine
)
{
$frameLine
=
join
(
'<span class="m"> </span>'
,
explode
(
'0'
,
$frameLine
));
$frameLine
=
join
(
'<span class="m"> </span>'
,
explode
(
'0'
,
$frameLine
));
$frameLine
=
join
(
'██'
,
explode
(
'1'
,
$frameLine
));
$frameLine
=
join
(
'██'
,
explode
(
'1'
,
$frameLine
));
}
}
...
@@ -505,7 +505,7 @@
...
@@ -505,7 +505,7 @@
}
else
{
}
else
{
foreach
(
$frame
as
&
$frameLine
)
{
foreach
(
$frame
as
$frameLine
)
{
$frameLine
=
join
(
'<span class="m"> </span>'
,
explode
(
"
\xc0
"
,
$frameLine
));
$frameLine
=
join
(
'<span class="m"> </span>'
,
explode
(
"
\xc0
"
,
$frameLine
));
$frameLine
=
join
(
'<span class="m">▒</span>'
,
explode
(
"
\xc1
"
,
$frameLine
));
$frameLine
=
join
(
'<span class="m">▒</span>'
,
explode
(
"
\xc1
"
,
$frameLine
));
$frameLine
=
join
(
'<span class="p"> </span>'
,
explode
(
"
\xa0
"
,
$frameLine
));
$frameLine
=
join
(
'<span class="p"> </span>'
,
explode
(
"
\xa0
"
,
$frameLine
));
...
...
lib/phpqrcode_php4/qrtools.php
View file @
3bac88b
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
function
binarize
(
$frame
)
function
binarize
(
$frame
)
{
{
$len
=
count
(
$frame
);
$len
=
count
(
$frame
);
foreach
(
$frame
as
&
$frameLine
)
{
foreach
(
$frame
as
$frameLine
)
{
for
(
$i
=
0
;
$i
<
$len
;
$i
++
)
{
for
(
$i
=
0
;
$i
<
$len
;
$i
++
)
{
$frameLine
[
$i
]
=
(
ord
(
$frameLine
[
$i
])
&
1
)
?
'1'
:
'0'
;
$frameLine
[
$i
]
=
(
ord
(
$frameLine
[
$i
])
&
1
)
?
'1'
:
'0'
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment