|
@@ -1,5 +1,5 @@
|
|
|
<?php
|
|
|
-
|
|
|
+namespace Qrcode;
|
|
|
/*
|
|
|
* PHP QR Code encoder
|
|
|
*
|
|
@@ -33,19 +33,19 @@
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
*/
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-/*
|
|
|
- * Version: 1.1.4
|
|
|
- * Build: 2010100721
|
|
|
- */
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-//---- qrconst.php -----------------------------
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+/*
|
|
|
+ * Version: 1.1.4
|
|
|
+ * Build: 2010100721
|
|
|
+ */
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+//---- qrconst.php -----------------------------
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
/*
|
|
@@ -99,14 +99,14 @@
|
|
|
public static function set(&$srctab, $x, $y, $repl, $replLen = false) {
|
|
|
$srctab[$y] = substr_replace($srctab[$y], ($replLen !== false)?substr($repl,0,$replLen):$repl, $x, ($replLen !== false)?$replLen:strlen($repl));
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-//---- merged_config.php -----------------------------
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+//---- merged_config.php -----------------------------
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
/*
|
|
|
* PHP QR Code encoder
|
|
@@ -123,14 +123,14 @@
|
|
|
define('QR_DEFAULT_MASK', 2); // when QR_FIND_BEST_MASK === false
|
|
|
|
|
|
define('QR_PNG_MAXIMUM_SIZE', 1024); // maximum allowed png image width (in pixels), tune to make sure GD and PHP can handle such big images
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-//---- qrtools.php -----------------------------
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+//---- qrtools.php -----------------------------
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
/*
|
|
|
* PHP QR Code encoder
|
|
@@ -302,14 +302,14 @@
|
|
|
//##########################################################################
|
|
|
|
|
|
QRtools::markTime('start');
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-//---- qrspec.php -----------------------------
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+//---- qrspec.php -----------------------------
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
/*
|
|
|
* PHP QR Code encoder
|
|
@@ -901,14 +901,14 @@
|
|
|
public static function rsDataLength($spec) { return ($spec[0] * $spec[1]) + ($spec[3] * $spec[4]); }
|
|
|
public static function rsEccLength($spec) { return ($spec[0] + $spec[3]) * $spec[2]; }
|
|
|
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-//---- qrimage.php -----------------------------
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+//---- qrimage.php -----------------------------
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
/*
|
|
|
* PHP QR Code encoder
|
|
@@ -1003,14 +1003,14 @@
|
|
|
|
|
|
return $target_image;
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-//---- qrinput.php -----------------------------
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+//---- qrinput.php -----------------------------
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
/*
|
|
|
* PHP QR Code encoder
|
|
@@ -1739,14 +1739,14 @@
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-//---- qrbitstream.php -----------------------------
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+//---- qrbitstream.php -----------------------------
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
/*
|
|
|
* PHP QR Code encoder
|
|
@@ -1927,14 +1927,14 @@
|
|
|
}
|
|
|
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-//---- qrsplit.php -----------------------------
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+//---- qrsplit.php -----------------------------
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
/*
|
|
|
* PHP QR Code encoder
|
|
@@ -2245,14 +2245,14 @@
|
|
|
|
|
|
return $split->splitString();
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-//---- qrrscode.php -----------------------------
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+//---- qrrscode.php -----------------------------
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
/*
|
|
|
* PHP QR Code encoder
|
|
@@ -2462,14 +2462,14 @@
|
|
|
|
|
|
return $rs;
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-//---- qrmask.php -----------------------------
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+//---- qrmask.php -----------------------------
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
/*
|
|
|
* PHP QR Code encoder
|
|
@@ -2798,14 +2798,14 @@
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-//---- qrencode.php -----------------------------
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+//---- qrencode.php -----------------------------
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
/*
|
|
|
* PHP QR Code encoder
|
|
@@ -3308,5 +3308,5 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|