Index: /lib/phpgirocode.class.php
===================================================================
--- /lib/phpgirocode.class.php	(revision 6232)
+++ /lib/phpgirocode.class.php	(revision 6232)
@@ -0,0 +1,613 @@
+<?php
+
+	/**
+	 * Klasse zur Generierung von GiroCode QR Codes 
+	 * @author Daschmi (daschmi@daschmi.de)
+	 * Version 1.1 (07.06.2015)
+	 * 
+	 * http://daschmi.de
+	 * https://www.girocode.de/wp-content/uploads/2014/06/GiroCode_EPC_Standard.pdf
+	 */
+	class PhpGirocode
+	{
+		
+		const OUTPUT_BROWSER = 1;
+		const OUTPUT_FILE = 2;
+		const OUTPUT_BASE64 = 3;
+		const OUTPUT_TEST = 4;
+		
+		/** Servicekennung 
+		 * Beginnen die aus einem QR-Code extrahierten Daten mit der Zeichenfolge BCD gefolgt von einer Zeilenschaltung kann fÃŒr die weitere PrÃŒfung der Daten davon
+		 *  ausgegangen werden, dass ein Datensatz zur Zahlungsinitiierung vorliegt.
+		 * @var String 
+		 * */
+		private $serviceidentifier = "BCD"; 
+		
+		/** Version
+		 * @var String 
+		 * */
+		private $version = "001";
+		
+		/** 
+		 * Kodierung 
+		 * 1 = UTF-8
+		 * 2 = ISO 8859-1
+		 * 3 = ISO 8859-2
+		 * 4 = ISO 5589-4
+		 * 5 = ISO 8859-5
+		 * 6 = ISO 8859-7
+		 * 7 = ISO 8859-10
+		 * 8 = ISO 8859-15
+		 * @var String
+		 * */
+		private $encoding = "1";
+		
+		/**
+		 * Funktion
+		 * Die Funktion wird durch den SchlÃŒsselwert definiert: SCT - SEPA Credit Transfer
+		 * @var String
+		 */
+		private $function = "SCT";
+		
+		/**
+		 * BIC
+		 * LÃ€nge: 8/11  
+		 * @var String
+		 */
+		private $bic = "";
+		
+		/**
+		 * Name Kontoinhaber
+		 * LÃ€nge: 70
+		 * @var String
+		 */
+		private $reciver = "";
+				
+		/**
+		 * IBAN Nummer des EmpfÃ€ngers
+		 * LÃ€nge: 34
+		 * @var String
+		 */
+		private $iban = "";
+		 
+		/**
+		 * Betrag
+		 * LÃ€nge: 12
+		 * Der Betrag ist ein empfohlenes, jedoch kein zwingend zu fÃŒllendes Feld. Bei fehlenden BetrÃ€gen ist, wie bei betragsoffenen Ãberweisungsbelegen, die Eingabe eines Betrags vorzusehen.
+		 * Der Betrag ist maximal 999.999.999,99, hat maximal 2 Nachkommastellen, den Punkt als Dezimaltrennzeichen und wird unmittelbar nach dem dreibuchstabigen WÃ€hrungscode in GroÃbuchstaben angegeben.
+		 * Zur VerfÃŒgung steht als WÃ€hrung ausschlieÃlich EUR. Die Betragsdarstellung ist mit RÃŒcksicht auf die CodegrÃ¶Ãe mÃ¶glichst kurzzuhalten, z.B. besser EUR3 als EUR3.00. Vornullen sind nicht erlaubt.
+		 * @var double
+		 */
+		private $amount = 0;
+				
+		/**
+		 * Verwendungstext
+		 * LÃ€nge: 140
+		 * @var unknown_type
+		 */
+		private $text = "";
+		
+		/**
+		 * Sammeln von Fehlermeldungen
+		 * @var Array
+		 */
+		private $arError = array();
+		
+		/**
+		 * Fehlerkorrektur-Level
+		 * @var String
+		 */
+		private $errCorrLevel = "M";
+
+		/**
+		 * QRCode-GrÃ¶Ãe
+		 * @var String
+		 */
+		private $qrsize = 4;
+		
+		/**
+		 * Pfad fÃŒr temporÃ€re Dateien
+		 * @var String
+		 */
+		private $strTmpPath = "/tmp";
+		
+		public function __construct()
+		{
+			
+			$this->strTmpPath = sys_get_temp_dir();
+			
+		} // public function __construct()
+		
+		public function setTmpPath($path)
+		{
+			
+			$this->strTmpPath = $path;
+			
+		} // public function setTmpPath($path)
+		
+		public function getTmpPath()
+		{
+			
+			return $this->strTmpPath;
+			
+		} // public function getTmpPath()
+		
+		/**
+		 * Setzt die Codierung
+		 */
+		public function setEncoding($strEncoding)
+		{
+			
+			switch (strtolower($strEncoding))
+			{
+
+				case 'utf-8': $this->encoding = 1; break;
+				case 'iso 8859-1': $this->encoding = 2; break;
+				case 'iso 8859-2': $this->encoding = 3; break;
+				case 'iso 8859-4': $this->encoding = 4; break;
+				case 'iso 8859-5': $this->encoding = 5; break;
+				case 'iso 8859-7': $this->encoding = 6; break;
+				case 'iso 8859-10': $this->encoding = 7; break;
+				case 'iso 8859-15': $this->encoding = 8; break;
+				
+				default: $this->handleError(1);
+				
+			}
+			
+		} // public function setEncoding($strEncoding)
+
+		/**
+		 * Setzt die BIC fÃŒr die Ãberweisung
+		 */
+		public function setBIC($strBIC) 
+		{
+
+			if (!in_array(strlen($strBIC), array(8, 11)))
+			{
+				
+				$this->handleError(2);
+				
+			}
+			else
+			{
+				
+				$this->bic = strtoupper($strBIC);
+				
+			}
+			
+		} // public function setBIC($strBIC)
+		
+		/**
+		 * Setzt den EmpfÃ€nger
+		 */
+		public function setReciver($strReciver)
+		{
+			
+			if (strlen($strReciver) <= 0) $this->handleError(3); 
+			else 
+			{
+				
+				$this->reciver = substr($strReciver, 0, 70);
+				
+			}
+			
+		} // public function setReciver($strReciver)
+
+		/**
+		 * Setzt den EmpfÃ€nger
+		 */
+		public function setErrCorrLevel($level)
+		{
+			
+			$this->errCorrLevel = substr($level, 0, 1);
+			
+		} // public function setErrCorrLevel($level)
+		
+		/**
+		 * Gibt die IBAN zurÃŒck
+		 */
+		public function getIBAN()
+		{
+			
+			return $this->iban;
+			
+		} // public function getIBAN()
+		
+		/**
+		 * Setzt die IBAN
+		 */
+		public function setIBAN($strIBAN)
+		{
+			
+			if (strlen($strIBAN) > 34) $this->handleError(4);
+			else
+			{
+				
+				$this->iban = strtoupper(preg_replace('/\040/', '', $strIBAN));
+				
+			}
+			
+		} // public function setIBAN($strIBAN)
+		
+		/**
+		 * Berechnet die IBAN aus Kontonummer und BLZ
+		 */
+		public function calculateIBANBIC($strKontonummer, $strBLZ, $strCountry = "DE")
+		{
+			
+			$string = $strBLZ.$strKontonummer.$this->getAlphanumericInt(substr(strtoupper($strCountry), 0, 1)).$this->getAlphanumericInt(substr(strtoupper($strCountry), 1, 1)).'00';
+			$pz = 98 - bcmod($string, 97);
+			
+			$this->iban = strtoupper($strCountry).$pz.$strBLZ.$strKontonummer;				
+			
+			$strFile = dirname(__FILE__).'/data/blzbic.txt';
+			
+			if (!file_exists($strFile))
+			{
+				
+				$this->handleError(8);
+				
+			}
+			else
+			{
+				
+				$bankInfo = $this->readBLZBICFile($strFile, $strBLZ);
+				
+				if ($bankInfo === false) $this->handleError(9);
+				else
+				{
+				
+					$this->bic = $bankInfo['bic'];
+					
+				}
+				
+			}
+			
+		} // public function calculateIBANBIC($strKontonummer, $strBLZ)
+		
+		/**
+		 * Setzt den Betrag fÃŒr die Ãberweisung 
+		 */
+		public function setAmount($dAmount)
+		{
+			
+			$value = $this->toFloat($dAmount);
+			
+			if ($value <= 0) $this->handleError(5);
+			else
+			{
+				
+				$this->amount = $value;
+				
+			}
+			
+		} // public function setAmount($dAmount)
+		
+		/**
+		 * Setzt den Text
+		 * @param String $strText
+		 */
+		public function setText($strText)
+		{
+			
+			if (strlen($strText) > 140) $this->handleError(6);
+			else
+			{
+				
+				$this->text = $strText;
+				
+			}
+			
+		} // public function setText($strText)
+		
+		/**
+		 * Setzt die QR-Code-GrÃ¶Ãe
+		 * @param Integer $size
+		 */
+		public function setSize($size)
+		{
+			
+			$this->qrsize = $size;
+			
+		} // public function setText($strText)
+		
+		
+		/**
+		 * PrÃŒft die IBAN auf ValiditÃ€t
+		 * @return true|false
+		 */
+		public function isValidIBAN()
+		{
+			
+			if (!preg_match('/^[A-Z]{2}\d*/', $this->iban))
+			{
+				
+				$this->handleError(7);
+				
+				return false;
+				
+			}
+			else
+			{
+				
+				$string = substr($this->iban, 4).$this->getAlphanumericInt(substr($this->iban, 0, 1)).$this->getAlphanumericInt(substr($this->iban, 1, 1)).substr($this->iban, 2, 2);
+
+				if (bcmod($string, 97) === '1')
+				{
+					
+					return true;
+					
+				}
+				else
+				{
+					
+					$this->handleError(11);
+					return false;
+					
+				}
+								
+			}
+			
+		} // public function isValidIBAN()
+				
+		/**
+		 * Generiert den Barcode
+		 */
+		public function generate($out = self::OUTPUT_BROWSER, $file = false)
+		{
+			 				
+			$arField = array();
+			
+			$arField[1] = $this->serviceidentifier;
+			$arField[2] = $this->version;
+			$arField[3] = $this->encoding;
+			$arField[4] = $this->function;
+			$arField[5] = $this->bic;
+			$arField[6] = $this->reciver;
+			$arField[7] = $this->iban;						
+			
+			//if ($this->amount > 0) $arField[8] = "EUR".round($this->amount, 2); else $arFild[] = '';
+			if ($this->amount > 0) $arField[8] = "EUR".sprintf('%.2f', $this->amount); else $arFild[] = '';
+			
+			$arField[9] = '';
+			$arField[10] = '';
+			
+			if (strlen($this->text) > 0) $arField[11] = $this->text; else $arField[11] = '';			
+			$arField[12] = '';
+						
+			// public static function png($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4, $saveandprint=false)
+			
+			//$code = implode("\n", $arField);
+			$code = implode(PHP_EOL, $arField);
+			
+			if ($out === self::OUTPUT_BROWSER)
+			{
+				
+				QRcode::png($code, false, $this->errCorrLevel, $this->qrsize);
+				
+			}
+			else if ($out === self::OUTPUT_FILE)
+			{
+				
+				if (strlen($file) <= 0) $this->handleError(10);
+				else 
+				{
+					
+					if (!file_exists($file)) touch($file);
+					
+					QRcode::png($code, $file, $this->errCorrLevel, $this->qrsize);
+					
+				}
+				
+			}
+			else if ($out === self::OUTPUT_BASE64)
+			{
+				
+				$tmpfname = tempnam("/tmp", "phpgirocode");
+				
+				QRcode::png($code, $tmpfname, $this->errCorrLevel, $this->qrsize);
+				
+				return base64_encode(file_get_contents($tmpfname));
+				
+			}
+			else if ($out === self::OUTPUT_TEST)
+			{
+				
+				return print_r($arField, 1);
+				
+			}
+			
+		} // public function generate()
+		
+		public function getMatchingBLZBIC($search)
+		{
+			
+			$filename = dirname(__FILE__).'/data/blzbic.txt';
+				
+			if (!file_exists($filename))
+			{
+			
+				$this->handleError(8);
+			
+			}
+			else
+			{
+			
+				$arData = array();
+								
+				$handle = fopen($filename, "r");
+				
+				while (($line = fgets($handle, 4096)) !== false)
+				{
+					
+					$arRow = $this->explodeRow($line);
+					 
+					if (strpos($arRow['blz'], $search) !== false || strpos($arRow['bic'], $search) != false || strpos($arRow['name'], $search) != false)
+					{
+						
+						$arData[] = $arRow;
+						
+					}
+					
+				}
+				
+				return $arData;
+			
+			}
+			
+		}
+		
+		private function explodeRow($line)
+		{
+			
+			$arRow = array(
+				'1' => substr($line, 0, 8), // Bankleitzahl
+				'2' => substr($line, 8, 1), // Merkmal, ob bankleitzahlfÃŒhrender Zahlungsdienstleister (â1â) oder nicht (â2â)
+				'3' => substr($line, 9, 58), // Bezeichnung des Zahlungsdienstleisters (ohne Rechtsform)
+				'4' => substr($line, 67, 5),
+				'5' => substr($line, 72, 35),
+				'6' => substr($line, 107, 27), // Kurzbezeichnung des Zahlungsdienstleisters mit Ort (ohne Rechtsform)
+				'7' => substr($line, 134, 5), // Institutsnummer fÃŒr PAN
+				'8' => substr($line, 139, 11),
+				'9' => substr($line, 150, 2), // Knnzeichen fÃŒr PrÃŒfzifferberechnungsmethode
+				'10' => substr($line, 152, 6), // Nummer des Datensatzes
+				'11' => substr($line, 158, 1), // Ãnderungskennzeichen
+				'12' => substr($line, 159, 1), // Hinweis auf beabsichtigte BankleitzahllÃ¶schung
+				'13' => substr($line, 160, 8), // Hinweis auf Nachfolge-Bankleitzahl
+				'14' => substr($line, 168, 6) // Kennzeichen fÃŒr die IBAN-Regel (nur erweiterte Bankleitzahlendatei)
+			);
+			
+			$arRow['blz'] = $arRow[1];
+			$arRow['name'] = $arRow[3];
+			$arRow['plz'] = $arRow[4];
+			$arRow['ort'] = $arRow[5];
+			$arRow['bic'] = $arRow[8];
+			
+			return $arRow;
+			
+		} // private function explodeRow($row)
+		
+		/**
+		 * Liest die BLZBic Infodatei und gibt Informationen anhand der BLZ oder BIC zurÃŒck
+		 * http://www.bundesbank.de/Redaktion/DE/Downloads/Aufgaben/Unbarer_Zahlungsverkehr/Bankleitzahlen/merkblatt_bankleitzahlendatei.pdf?__blob=publicationFile
+		 * http://www.bundesbank.de/Redaktion/DE/Standardartikel/Aufgaben/Unbarer_Zahlungsverkehr/bankleitzahlen_download.html
+		 */
+		private function readBLZBICFile($filename, $searchBLZ = false, $searchBIC = false)
+		{
+			
+			if ($searchBLZ === false && $searchBIC === false) return array();
+			
+			$handle = fopen($filename, "r");
+			 
+			while (($line = fgets($handle, 4096)) !== false) 
+			{
+				
+				$line = trim($line);
+								
+				$arRow = $this->explodeRow($line);
+				
+				// Nur Hauptsitze erfassen
+				if (trim($arRow['8']) === '') continue;
+												 
+				if ($arRow['bic'] == $searchBIC || $arRow['blz'] == $searchBLZ) return $arRow;
+				
+			}
+			
+			return false;
+			
+		} // private function readBLZBICFile($file, $searchBLZ = false, $searchBIC = false)
+		
+		/**
+		 * Gibt die Ganzzahl fÃŒr einen Buchstaben zurÃŒck fÃŒr PrÃŒfsummenberechnung
+		 */
+		private function getAlphanumericInt($char)
+		{
+			
+			return (ord($char) - 55);
+			
+		} // private function getAlphanumericInt($char)
+		
+		/**
+		 * Versucht Nutzereingaben in valide Floatwerte zu wandeln
+		 */
+		private function toFloat($value)
+		{
+				
+			// Alles auÃer Zahlen, Punkt und Komma entfernen
+			$value = preg_replace('/[^\d|^\.|^\,|^\-]/', '', $value);
+		
+			if (strpos($value, ".") && strpos($value, ","))
+			{
+					
+				// , und . drin
+				if (strpos($value, ",") > strpos($value, "."))
+				{
+		
+					//1.123,23
+					return floatval(str_replace(",", ".", str_replace(".", "", $value)));
+		
+				}
+				else
+				{
+		
+					//1,234.23
+					return floatval(str_replace(",", "", $value));
+		
+				}
+					
+			}
+		
+			return floatval(str_replace(",", ".", $value));
+			
+		} // function toFloat($value)
+		
+		/**
+		 * Fehlerbehandlung
+		 */
+		private function handleError($errorCode)
+		{
+			
+			$strError = "UngÃŒltiger Fehlercode";
+			
+			switch ($errorCode)
+			{
+				
+				case 1: $strError = 'UngÃŒltige Zeichenkodierung'; break;
+				case 2: $strError = 'UngÃŒltige BIC'; break;
+				case 3: $strError = 'Kein EpfÃ€nger angegeben'; break;
+				case 4: $strError = 'UngÃŒltige IBAN angebeen'; break;		
+				case 5: $strError = 'Kein Betrag angegeben'; break;
+				case 6: $strError = 'Text ist zu lang, es sind maximal 140 Zeichen mÃ¶glich'; break;
+				case 7: $strError = 'IBAN hat ein ungÃŒltiges Format'; break;
+				case 8: $strError = 'BLZ/BIC Datendatei existiert nicht'; break;
+				case 9: $strError = 'BLZ wurde in Bankdatei nicht gefunden'; break;
+				case 10: $strError = 'Datei fÃŒr Ausgabe kann nicht geschrieben werden'; break;
+				case 11: $strError = 'PrÃŒfziffer der IBAN stimmt nicht'; break;
+								
+			}
+			
+			$this->arError[] = $strError;
+						
+		} // private function handleError($errorCode)
+		
+		public function hasError()
+		{
+			
+			return ((sizeof($this->arError) > 0)?true:false);
+			
+		} // private function hasError()
+		
+		public function getError()
+		{
+			
+			$arReturn = $this->arError;
+			
+			$this->arError = array();
+		 
+			return $arReturn;
+			
+		} // private function getError()
+		
+	}
+
+?>
Index: /lib/phpqrcode/CHANGELOG
===================================================================
--- /lib/phpqrcode/CHANGELOG	(revision 6232)
+++ /lib/phpqrcode/CHANGELOG	(revision 6232)
@@ -0,0 +1,38 @@
+* 1.0.0 build 2010031920 
+
+  - first public release
+  - help in readme, install
+  - cleanup ans separation of QRtools and QRspec
+  - now TCPDF binding requires minimal changes in TCPDF, having most of job
+    done in QRtools tcpdfBarcodeArray
+  - nicer QRtools::timeBenchmark output
+  - license and copyright notices in files
+  - indent cleanup - from tab to 4spc, keep it that way please :)
+  - sf project, repository, wiki
+  - simple code generator in index.php
+  
+* 1.1.0 build 2010032113
+
+  - added merge tool wich generate merged version of code
+    located in phpqrcode.php
+  - splited qrconst.php from qrlib.php
+  
+* 1.1.1 build 2010032405
+
+  - patch by Rick Seymour allowing saving PNG and displaying it at the same time
+  - added version info in VERSION file
+  - modified merge tool to include version info into generated file
+  - fixed e-mail in almost all head comments
+  
+* 1.1.2 build 2010032722
+
+  - full integration with TCPDF thanks to Nicola Asuni, it's author
+  - fixed bug with alphanumeric encoding detection
+  
+* 1.1.3 build 2010081807
+
+  - short opening tags replaced with standard ones
+  
+* 1.1.4 build 2010100721
+
+  - added missing static keyword QRinput::check (found by Luke Brookhart, Onjax LLC)
Index: /lib/phpqrcode/INSTALL
===================================================================
--- /lib/phpqrcode/INSTALL	(revision 6232)
+++ /lib/phpqrcode/INSTALL	(revision 6232)
@@ -0,0 +1,67 @@
+== REQUIREMENTS ==
+
+ * PHP5
+ * PHP GD2 extension with JPEG and PNG support
+ 
+== INSTALLATION ==
+
+If you want to recreate cache by yourself make sure cache directory is
+writable and you have permisions to write into it. Also make sure you are
+able to read files in it if you have cache option enabled
+ 
+== CONFIGURATION ==
+
+Feel free to modify config constants in qrconfig.php file. Read about it in
+provided comments and project wiki page (links in README file)
+
+== QUICK START ==
+
+Notice: probably you should'nt use all of this in same script :)
+
+<?phpb
+
+//include only that one, rest required files will be included from it
+include "qrlib.php"
+
+//write code into file, Error corection lecer is lowest, L (one form: L,M,Q,H)
+//each code square will be 4x4 pixels (4x zoom)
+//code will have 2 code squares white boundary around 
+
+QRcode::png('PHP QR Code :)', 'test.png', 'L', 4, 2);
+
+//same as above but outputs file directly into browser (with appr. header etc.)
+//all other settings are default
+//WARNING! it should be FIRST and ONLY output generated by script, otherwise
+//rest of output will land inside PNG binary, breaking it for sure
+QRcode::png('PHP QR Code :)');
+
+//show benchmark
+QRtools::timeBenchmark();
+
+//rebuild cache
+QRtools::buildCache();
+
+//code generated in text mode - as a binary table
+//then displayed out as HTML using Unicode block building chars :)
+$tab = $qr->encode('PHP QR Code :)');
+QRspec::debug($tab, true);
+
+== TCPDF INTEGRATION ==
+
+Inside bindings/tcpdf you will find slightly modified 2dbarcodes.php.
+Instal phpqrcode liblaty inside tcpdf folder, then overwrite (or merge)
+2dbarcodes.php 
+
+Then use similar as example #50 from TCPDF examples:
+
+<?php
+
+$style = array(
+    'border' => true,
+    'padding' => 4,
+    'fgcolor' => array(0,0,0),
+    'bgcolor' => false, //array(255,255,255)
+);
+
+//code name: QR, specify error correction level after semicolon (L,M,Q,H)
+$pdf->write2DBarcode('PHP QR Code :)', 'QR,L', '', '', 30, 30, $style, 'N');
Index: /lib/phpqrcode/LICENSE
===================================================================
--- /lib/phpqrcode/LICENSE	(revision 6232)
+++ /lib/phpqrcode/LICENSE	(revision 6232)
@@ -0,0 +1,165 @@
+                  GNU LESSER GENERAL PUBLIC LICENSE
+                       Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+  This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+  0. Additional Definitions.
+
+  As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+  "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+  An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+  A "Combined Work" is a work produced by combining or linking an
+Application with the Library.  The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+  The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+  The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+  1. Exception to Section 3 of the GNU GPL.
+
+  You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+  2. Conveying Modified Versions.
+
+  If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+   a) under this License, provided that you make a good faith effort to
+   ensure that, in the event an Application does not supply the
+   function or data, the facility still operates, and performs
+   whatever part of its purpose remains meaningful, or
+
+   b) under the GNU GPL, with none of the additional permissions of
+   this License applicable to that copy.
+
+  3. Object Code Incorporating Material from Library Header Files.
+
+  The object code form of an Application may incorporate material from
+a header file that is part of the Library.  You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+   a) Give prominent notice with each copy of the object code that the
+   Library is used in it and that the Library and its use are
+   covered by this License.
+
+   b) Accompany the object code with a copy of the GNU GPL and this license
+   document.
+
+  4. Combined Works.
+
+  You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+   a) Give prominent notice with each copy of the Combined Work that
+   the Library is used in it and that the Library and its use are
+   covered by this License.
+
+   b) Accompany the Combined Work with a copy of the GNU GPL and this license
+   document.
+
+   c) For a Combined Work that displays copyright notices during
+   execution, include the copyright notice for the Library among
+   these notices, as well as a reference directing the user to the
+   copies of the GNU GPL and this license document.
+
+   d) Do one of the following:
+
+       0) Convey the Minimal Corresponding Source under the terms of this
+       License, and the Corresponding Application Code in a form
+       suitable for, and under terms that permit, the user to
+       recombine or relink the Application with a modified version of
+       the Linked Version to produce a modified Combined Work, in the
+       manner specified by section 6 of the GNU GPL for conveying
+       Corresponding Source.
+
+       1) Use a suitable shared library mechanism for linking with the
+       Library.  A suitable mechanism is one that (a) uses at run time
+       a copy of the Library already present on the user's computer
+       system, and (b) will operate properly with a modified version
+       of the Library that is interface-compatible with the Linked
+       Version.
+
+   e) Provide Installation Information, but only if you would otherwise
+   be required to provide such information under section 6 of the
+   GNU GPL, and only to the extent that such information is
+   necessary to install and execute a modified version of the
+   Combined Work produced by recombining or relinking the
+   Application with a modified version of the Linked Version. (If
+   you use option 4d0, the Installation Information must accompany
+   the Minimal Corresponding Source and Corresponding Application
+   Code. If you use option 4d1, you must provide the Installation
+   Information in the manner specified by section 6 of the GNU GPL
+   for conveying Corresponding Source.)
+
+  5. Combined Libraries.
+
+  You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+   a) Accompany the combined library with a copy of the same work based
+   on the Library, uncombined with any other library facilities,
+   conveyed under the terms of this License.
+
+   b) Give prominent notice with the combined library that part of it
+   is a work based on the Library, and explaining where to find the
+   accompanying uncombined form of the same work.
+
+  6. Revised Versions of the GNU Lesser General Public License.
+
+  The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+  Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+  If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
Index: /lib/phpqrcode/README
===================================================================
--- /lib/phpqrcode/README	(revision 6232)
+++ /lib/phpqrcode/README	(revision 6232)
@@ -0,0 +1,45 @@
+This is PHP implementation of QR Code 2-D barcode generator. It is pure-php
+LGPL-licensed implementation based on C libqrencode by Kentaro Fukuchi.
+
+== LICENSING ==
+
+Copyright (C) 2010 by Dominik Dzienia 
+
+This library is free software; you can redistribute it and/or modify it under
+the terms of the GNU Lesser General Public License as published by the Free
+Software Foundation; either version 3 of the License, or any later version.
+
+This library is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+PARTICULAR PURPOSE. See the GNU Lesser General Public License (LICENSE file)
+for more details.
+
+You should have received a copy of the GNU Lesser General Public License along
+with this library; if not, write to the Free Software Foundation, Inc., 51
+Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+== INSTALATION AND USAGE ==
+
+ * INSTALL file
+ * http://sourceforge.net/apps/mediawiki/phpqrcode/index.php?title=Main_Page
+
+== CONTACT ==
+
+Fell free to contact me via e-mail (deltalab at poczta dot fm) or using
+folowing project pages:
+
+ * http://sourceforge.net/projects/phpqrcode/
+ * http://phpqrcode.sourceforge.net/
+  
+== ACKNOWLEDGMENTS ==
+
+Based on C libqrencode library (ver. 3.1.1) 
+Copyright (C) 2006-2010 by Kentaro Fukuchi
+http://megaui.net/fukuchi/works/qrencode/index.en.html
+
+QR Code is registered trademarks of DENSO WAVE INCORPORATED in JAPAN and other
+countries.
+
+Reed-Solomon code encoder is written by Phil Karn, KA9Q.
+Copyright (C) 2002, 2003, 2004, 2006 Phil Karn, KA9Q
+ 
Index: /lib/phpqrcode/VERSION
===================================================================
--- /lib/phpqrcode/VERSION	(revision 6232)
+++ /lib/phpqrcode/VERSION	(revision 6232)
@@ -0,0 +1,2 @@
+1.1.4
+2010100721
Index: /lib/phpqrcode/bindings/tcpdf/qrcode.php
===================================================================
--- /lib/phpqrcode/bindings/tcpdf/qrcode.php	(revision 6232)
+++ /lib/phpqrcode/bindings/tcpdf/qrcode.php	(revision 6232)
@@ -0,0 +1,2875 @@
+<?php
+//============================================================+
+// File name   : qrcode.php
+// Begin       : 2010-03-22
+// Last Update : 2010-03-29
+// Version     : 1.0.002
+// License     : GNU LGPL v.3 (http://www.gnu.org/copyleft/lesser.html)
+// 	----------------------------------------------------------------------------
+//
+// 	This library is free software; you can redistribute it and/or
+// 	modify it under the terms of the GNU Lesser General Public
+// 	License as published by the Free Software Foundation; either
+// 	version 3 of the License, or any later version.
+//
+// 	This library is distributed in the hope that it will be useful,
+// 	but WITHOUT ANY WARRANTY; without even the implied warranty of
+// 	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// 	Lesser General Public License for more details.
+//
+// 	You should have received a copy of the GNU Lesser General Public
+// 	License along with this library; if not, write to the Free Software
+// 	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//  or browse http://www.gnu.org/copyleft/lesser.html
+//
+//  ----------------------------------------------------------------------------
+//
+// DESCRIPTION :
+//
+// Class to create QR-code arrays for TCPDF class.
+// QR Code symbol is a 2D barcode that can be scanned by
+// handy terminals such as a mobile phone with CCD.
+// The capacity of QR Code is up to 7000 digits or 4000
+// characters, and has high robustness.
+// This class supports QR Code model 2, described in
+// JIS (Japanese Industrial Standards) X0510:2004
+// or ISO/IEC 18004.
+// Currently the following features are not supported:
+// ECI and FNC1 mode, Micro QR Code, QR Code model 1,
+// Structured mode.
+//
+// This class is derived from the following projects:
+// ---------------------------------------------------------
+// "PHP QR Code encoder"
+// License: GNU-LGPLv3
+// Copyright (C) 2010 by Dominik Dzienia <deltalab at poczta dot fm>
+// http://phpqrcode.sourceforge.net/
+// https://sourceforge.net/projects/phpqrcode/
+//
+// The "PHP QR Code encoder" is based on
+// "C libqrencode library" (ver. 3.1.1)
+// License: GNU-LGPL 2.1
+// Copyright (C) 2006-2010 by Kentaro Fukuchi
+// http://megaui.net/fukuchi/works/qrencode/index.en.html
+//
+// Reed-Solomon code encoder is written by Phil Karn, KA9Q.
+// Copyright (C) 2002-2006 Phil Karn, KA9Q
+//
+// QR Code is registered trademark of DENSO WAVE INCORPORATED
+// http://www.denso-wave.com/qrcode/index-e.html
+// ---------------------------------------------------------
+//
+// Author: Nicola Asuni
+//
+// (c) Copyright 2010:
+//               Nicola Asuni
+//               Tecnick.com S.r.l.
+//               Via della Pace, 11
+//               09044 Quartucciu (CA)
+//               ITALY
+//               www.tecnick.com
+//               info@tecnick.com
+//============================================================+
+
+/**
+ * Class to create QR-code arrays for TCPDF class.
+ * QR Code symbol is a 2D barcode that can be scanned by handy terminals such as a mobile phone with CCD.
+ * The capacity of QR Code is up to 7000 digits or 4000 characters, and has high robustness.
+ * This class supports QR Code model 2, described in JIS (Japanese Industrial Standards) X0510:2004 or ISO/IEC 18004.
+ * Currently the following features are not supported: ECI and FNC1 mode, Micro QR Code, QR Code model 1, Structured mode.
+ *
+ * This class is derived from "PHP QR Code encoder" by Dominik Dzienia (http://phpqrcode.sourceforge.net/) based on "libqrencode C library 3.1.1." by Kentaro Fukuchi (http://megaui.net/fukuchi/works/qrencode/index.en.html), contains Reed-Solomon code written by Phil Karn, KA9Q. QR Code is registered trademark of DENSO WAVE INCORPORATED (http://www.denso-wave.com/qrcode/index-e.html).
+ * Please read comments on this class source file for full copyright and license information.
+ *
+ * @package com.tecnick.tcpdf
+ * @abstract Class for generating QR-code array for TCPDF.
+ * @author Nicola Asuni
+ * @copyright 2010 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
+ * @link http://www.tcpdf.org
+ * @license http://www.gnu.org/copyleft/lesser.html LGPL
+ * @version 1.0.002
+ */
+
+// definitions
+if (!defined('QRCODEDEFS')) {
+
+	/**
+	 * Indicate that definitions for this class are set
+	 */
+	define('QRCODEDEFS', true);
+
+	// -----------------------------------------------------
+
+	// Encoding modes (characters which can be encoded in QRcode)
+
+	/**
+	 * Encoding mode
+	 */
+	define('QR_MODE_NL', -1);
+
+	/**
+	 * Encoding mode numeric (0-9). 3 characters are encoded to 10bit length. In theory, 7089 characters or less can be stored in a QRcode.
+	 */
+	define('QR_MODE_NM', 0);
+
+	/**
+	 * Encoding mode alphanumeric (0-9A-Z $%*+-./:) 45characters. 2 characters are encoded to 11bit length. In theory, 4296 characters or less can be stored in a QRcode.
+	 */
+	define('QR_MODE_AN', 1);
+
+	/**
+	 * Encoding mode 8bit byte data. In theory, 2953 characters or less can be stored in a QRcode.
+	 */
+	define('QR_MODE_8B', 2);
+
+	/**
+	 * Encoding mode KANJI. A KANJI character (multibyte character) is encoded to 13bit length. In theory, 1817 characters or less can be stored in a QRcode.
+	 */
+	define('QR_MODE_KJ', 3);
+
+	/**
+	 * Encoding mode STRUCTURED (currently unsupported)
+	 */
+	define('QR_MODE_ST', 4);
+
+	// -----------------------------------------------------
+
+	// Levels of error correction.
+	// QRcode has a function of an error correcting for miss reading that white is black.
+	// Error correcting is defined in 4 level as below.
+
+	/**
+	 * Error correction level L : About 7% or less errors can be corrected.
+	 */
+	define('QR_ECLEVEL_L', 0);
+
+	/**
+	 * Error correction level M : About 15% or less errors can be corrected.
+	 */
+	define('QR_ECLEVEL_M', 1);
+
+	/**
+	 * Error correction level Q : About 25% or less errors can be corrected.
+	 */
+	define('QR_ECLEVEL_Q', 2);
+
+	/**
+	 * Error correction level H : About 30% or less errors can be corrected.
+	 */
+	define('QR_ECLEVEL_H', 3);
+
+	// -----------------------------------------------------
+
+	// Version. Size of QRcode is defined as version.
+	// Version is from 1 to 40.
+	// Version 1 is 21*21 matrix. And 4 modules increases whenever 1 version increases.
+	// So version 40 is 177*177 matrix.
+
+	/**
+	 * Maximum QR Code version.
+	 */
+	define('QRSPEC_VERSION_MAX', 40);
+
+	/**
+	 * Maximum matrix size for maximum version (version 40 is 177*177 matrix).
+	 */
+    define('QRSPEC_WIDTH_MAX', 177);
+
+	// -----------------------------------------------------
+
+	/**
+	 * Matrix index to get width from $capacity array.
+	 */
+    define('QRCAP_WIDTH',    0);
+
+    /**
+	 * Matrix index to get number of words from $capacity array.
+	 */
+    define('QRCAP_WORDS',    1);
+
+    /**
+	 * Matrix index to get remainder from $capacity array.
+	 */
+    define('QRCAP_REMINDER', 2);
+
+    /**
+	 * Matrix index to get error correction level from $capacity array.
+	 */
+    define('QRCAP_EC',       3);
+
+	// -----------------------------------------------------
+
+	// Structure (currently usupported)
+
+	/**
+	 * Number of header bits for structured mode
+	 */
+    define('STRUCTURE_HEADER_BITS',  20);
+
+    /**
+	 * Max number of symbols for structured mode
+	 */
+    define('MAX_STRUCTURED_SYMBOLS', 16);
+
+	// -----------------------------------------------------
+
+    // Masks
+
+    /**
+	 * Down point base value for case 1 mask pattern (concatenation of same color in a line or a column)
+	 */
+    define('N1',  3);
+
+    /**
+	 * Down point base value for case 2 mask pattern (module block of same color)
+	 */
+	define('N2',  3);
+
+    /**
+	 * Down point base value for case 3 mask pattern (1:1:3:1:1(dark:bright:dark:bright:dark)pattern in a line or a column)
+	 */
+	define('N3', 40);
+
+    /**
+	 * Down point base value for case 4 mask pattern (ration of dark modules in whole)
+	 */
+	define('N4', 10);
+
+	// -----------------------------------------------------
+
+	// Optimization settings
+
+	/**
+	 * if true, estimates best mask (spec. default, but extremally slow; set to false to significant performance boost but (propably) worst quality code
+	 */
+	define('QR_FIND_BEST_MASK', true);
+
+	/**
+	 * if false, checks all masks available, otherwise value tells count of masks need to be checked, mask id are got randomly
+	 */
+	define('QR_FIND_FROM_RANDOM', 2);
+
+	/**
+	 * when QR_FIND_BEST_MASK === false
+	 */
+	define('QR_DEFAULT_MASK', 2);
+
+	// -----------------------------------------------------
+
+} // end of definitions
+
+// #*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
+
+if (!class_exists('QRcode', false)) {
+
+	// for compaibility with PHP4
+	if (!function_exists('str_split')) {
+    	/**
+    	 * Convert a string to an array (needed for PHP4 compatibility)
+    	 * @param string $string The input string.
+    	 * @param int $split_length Maximum length of the chunk.
+    	 * @return  If the optional split_length  parameter is specified, the returned array will be broken down into chunks with each being split_length  in length, otherwise each chunk will be one character in length. FALSE is returned if split_length is less than 1. If the split_length length exceeds the length of string , the entire string is returned as the first (and only) array element.
+    	 */
+		function str_split($string, $split_length=1) {
+			if ((strlen($string) > $split_length) OR (!$split_length)) {
+				do {
+					$c = strlen($string);
+					$parts[] = substr($string, 0, $split_length);
+					$string = substr($string, $split_length);
+				} while ($string !== false);
+			} else {
+				$parts = array($string);
+			}
+			return $parts;
+		}
+	}
+
+	// #####################################################
+
+	/**
+	 * Class to create QR-code arrays for TCPDF class.
+	 * QR Code symbol is a 2D barcode that can be scanned by handy terminals such as a mobile phone with CCD.
+	 * The capacity of QR Code is up to 7000 digits or 4000 characters, and has high robustness.
+	 * This class supports QR Code model 2, described in JIS (Japanese Industrial Standards) X0510:2004 or ISO/IEC 18004.
+	 * Currently the following features are not supported: ECI and FNC1 mode, Micro QR Code, QR Code model 1, Structured mode.
+	 *
+	 * This class is derived from "PHP QR Code encoder" by Dominik Dzienia (http://phpqrcode.sourceforge.net/) based on "libqrencode C library 3.1.1." by Kentaro Fukuchi (http://megaui.net/fukuchi/works/qrencode/index.en.html), contains Reed-Solomon code written by Phil Karn, KA9Q. QR Code is registered trademark of DENSO WAVE INCORPORATED (http://www.denso-wave.com/qrcode/index-e.html).
+	 * Please read comments on this class source file for full copyright and license information.
+	 *
+	 * @name QRcode
+	 * @package com.tecnick.tcpdf
+	 * @abstract Class for generating QR-code array for TCPDF.
+	 * @author Nicola Asuni
+	 * @copyright 2010 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
+	 * @link http://www.tcpdf.org
+	 * @license http://www.gnu.org/copyleft/lesser.html LGPL
+	 * @version 1.0.002
+	 */
+	class QRcode {
+
+		/**
+		 * @var barcode array to be returned which is readable by TCPDF
+		 * @access protected
+		 */
+		protected $barcode_array = array();
+
+		/**
+		 * @var QR code version. Size of QRcode is defined as version. Version is from 1 to 40. Version 1 is 21*21 matrix. And 4 modules increases whenever 1 version increases. So version 40 is 177*177 matrix.
+		 * @access protected
+		 */
+		protected $version = 0;
+
+		/**
+		 * @var Levels of error correction. See definitions for possible values.
+		 * @access protected
+		 */
+		protected $level = QR_ECLEVEL_L;
+
+		/**
+		 * @var Encoding mode
+		 * @access protected
+		 */
+		protected $hint = QR_MODE_8B;
+
+		/**
+		 * @var if true the input string will be converted to uppercase
+		 * @access protected
+		 */
+		protected $casesensitive = true;
+
+		/**
+		 * @var structured QR code (not supported yet)
+		 * @access protected
+		 */
+		protected $structured = 0;
+
+		/**
+		 * @var mask data
+		 * @access protected
+		 */
+		protected $data;
+
+		// FrameFiller
+
+		/**
+		 * @var width
+		 * @access protected
+		 */
+		protected $width;
+
+		/**
+		 * @var frame
+		 * @access protected
+		 */
+		protected $frame;
+
+		/**
+		 * @var X position of bit
+		 * @access protected
+		 */
+		protected $x;
+
+		/**
+		 * @var Y position of bit
+		 * @access protected
+		 */
+		protected $y;
+
+		/**
+		 * @var direction
+		 * @access protected
+		 */
+		protected $dir;
+
+		/**
+		 * @var single bit
+		 * @access protected
+		 */
+		protected $bit;
+
+		// ---- QRrawcode ----
+
+		/**
+		 * @var data code
+		 * @access protected
+		 */
+		protected $datacode = array();
+
+		/**
+		 * @var error correction code
+		 * @access protected
+		 */
+		protected $ecccode = array();
+
+		/**
+		 * @var blocks
+		 * @access protected
+		 */
+		protected $blocks;
+
+		/**
+		 * @var Reed-Solomon blocks
+		 * @access protected
+		 */
+		protected $rsblocks = array(); //of RSblock
+
+		/**
+		 * @var counter
+		 * @access protected
+		 */
+		protected $count;
+
+		/**
+		 * @var data length
+		 * @access protected
+		 */
+		protected $dataLength;
+
+		/**
+		 * @var error correction length
+		 * @access protected
+		 */
+		protected $eccLength;
+
+		/**
+		 * @var b1
+		 * @access protected
+		 */
+		protected $b1;
+
+		// ---- QRmask ----
+
+		/**
+		 * @var run length
+		 * @access protected
+		 */
+		protected $runLength = array();
+
+		// ---- QRsplit ----
+
+		/**
+		 * @var input data string
+		 * @access protected
+		 */
+		protected $dataStr = '';
+
+		/**
+		 * @var input items
+		 * @access protected
+		 */
+		protected $items;
+
+		// Reed-Solomon items
+
+		/**
+		 * @var Reed-Solomon items
+		 * @access protected
+		 */
+		protected $rsitems = array();
+
+		/**
+		 * @var array of frames
+		 * @access protected
+		 */
+		protected $frames = array();
+
+		/**
+		 * @var alphabet-numeric convesion table
+		 * @access protected
+		 */
+		protected $anTable = array(
+			-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, //
+			-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, //
+			36, -1, -1, -1, 37, 38, -1, -1, -1, -1, 39, 40, -1, 41, 42, 43, //
+			 0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 44, -1, -1, -1, -1, -1, //
+			-1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, //
+			25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, -1, -1, -1, -1, -1, //
+			-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, //
+			-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1  //
+			);
+
+		/**
+		 * @var array Table of the capacity of symbols
+		 * See Table 1 (pp.13) and Table 12-16 (pp.30-36), JIS X0510:2004.
+		 * @access protected
+		 */
+		protected $capacity = array(
+			array(  0,    0, 0, array(   0,    0,    0,    0)), //
+			array( 21,   26, 0, array(   7,   10,   13,   17)), //  1
+			array( 25,   44, 7, array(  10,   16,   22,   28)), //
+			array( 29,   70, 7, array(  15,   26,   36,   44)), //
+			array( 33,  100, 7, array(  20,   36,   52,   64)), //
+			array( 37,  134, 7, array(  26,   48,   72,   88)), //  5
+			array( 41,  172, 7, array(  36,   64,   96,  112)), //
+			array( 45,  196, 0, array(  40,   72,  108,  130)), //
+			array( 49,  242, 0, array(  48,   88,  132,  156)), //
+			array( 53,  292, 0, array(  60,  110,  160,  192)), //
+			array( 57,  346, 0, array(  72,  130,  192,  224)), // 10
+			array( 61,  404, 0, array(  80,  150,  224,  264)), //
+			array( 65,  466, 0, array(  96,  176,  260,  308)), //
+			array( 69,  532, 0, array( 104,  198,  288,  352)), //
+			array( 73,  581, 3, array( 120,  216,  320,  384)), //
+			array( 77,  655, 3, array( 132,  240,  360,  432)), // 15
+			array( 81,  733, 3, array( 144,  280,  408,  480)), //
+			array( 85,  815, 3, array( 168,  308,  448,  532)), //
+			array( 89,  901, 3, array( 180,  338,  504,  588)), //
+			array( 93,  991, 3, array( 196,  364,  546,  650)), //
+			array( 97, 1085, 3, array( 224,  416,  600,  700)), // 20
+			array(101, 1156, 4, array( 224,  442,  644,  750)), //
+			array(105, 1258, 4, array( 252,  476,  690,  816)), //
+			array(109, 1364, 4, array( 270,  504,  750,  900)), //
+			array(113, 1474, 4, array( 300,  560,  810,  960)), //
+			array(117, 1588, 4, array( 312,  588,  870, 1050)), // 25
+			array(121, 1706, 4, array( 336,  644,  952, 1110)), //
+			array(125, 1828, 4, array( 360,  700, 1020, 1200)), //
+			array(129, 1921, 3, array( 390,  728, 1050, 1260)), //
+			array(133, 2051, 3, array( 420,  784, 1140, 1350)), //
+			array(137, 2185, 3, array( 450,  812, 1200, 1440)), // 30
+			array(141, 2323, 3, array( 480,  868, 1290, 1530)), //
+			array(145, 2465, 3, array( 510,  924, 1350, 1620)), //
+			array(149, 2611, 3, array( 540,  980, 1440, 1710)), //
+			array(153, 2761, 3, array( 570, 1036, 1530, 1800)), //
+			array(157, 2876, 0, array( 570, 1064, 1590, 1890)), // 35
+			array(161, 3034, 0, array( 600, 1120, 1680, 1980)), //
+			array(165, 3196, 0, array( 630, 1204, 1770, 2100)), //
+			array(169, 3362, 0, array( 660, 1260, 1860, 2220)), //
+			array(173, 3532, 0, array( 720, 1316, 1950, 2310)), //
+			array(177, 3706, 0, array( 750, 1372, 2040, 2430))  // 40
+		);
+
+		/**
+		 * @var array Length indicator
+		 * @access protected
+		 */
+		protected $lengthTableBits = array(
+			array(10, 12, 14),
+			array( 9, 11, 13),
+			array( 8, 16, 16),
+			array( 8, 10, 12)
+		);
+
+		/**
+		 * @var array Table of the error correction code (Reed-Solomon block)
+		 * See Table 12-16 (pp.30-36), JIS X0510:2004.
+		 * @access protected
+		 */
+		protected $eccTable = array(
+			array(array( 0,  0), array( 0,  0), array( 0,  0), array( 0,  0)), //
+			array(array( 1,  0), array( 1,  0), array( 1,  0), array( 1,  0)), //  1
+			array(array( 1,  0), array( 1,  0), array( 1,  0), array( 1,  0)), //
+			array(array( 1,  0), array( 1,  0), array( 2,  0), array( 2,  0)), //
+			array(array( 1,  0), array( 2,  0), array( 2,  0), array( 4,  0)), //
+			array(array( 1,  0), array( 2,  0), array( 2,  2), array( 2,  2)), //  5
+			array(array( 2,  0), array( 4,  0), array( 4,  0), array( 4,  0)), //
+			array(array( 2,  0), array( 4,  0), array( 2,  4), array( 4,  1)), //
+			array(array( 2,  0), array( 2,  2), array( 4,  2), array( 4,  2)), //
+			array(array( 2,  0), array( 3,  2), array( 4,  4), array( 4,  4)), //
+			array(array( 2,  2), array( 4,  1), array( 6,  2), array( 6,  2)), // 10
+			array(array( 4,  0), array( 1,  4), array( 4,  4), array( 3,  8)), //
+			array(array( 2,  2), array( 6,  2), array( 4,  6), array( 7,  4)), //
+			array(array( 4,  0), array( 8,  1), array( 8,  4), array(12,  4)), //
+			array(array( 3,  1), array( 4,  5), array(11,  5), array(11,  5)), //
+			array(array( 5,  1), array( 5,  5), array( 5,  7), array(11,  7)), // 15
+			array(array( 5,  1), array( 7,  3), array(15,  2), array( 3, 13)), //
+			array(array( 1,  5), array(10,  1), array( 1, 15), array( 2, 17)), //
+			array(array( 5,  1), array( 9,  4), array(17,  1), array( 2, 19)), //
+			array(array( 3,  4), array( 3, 11), array(17,  4), array( 9, 16)), //
+			array(array( 3,  5), array( 3, 13), array(15,  5), array(15, 10)), // 20
+			array(array( 4,  4), array(17,  0), array(17,  6), array(19,  6)), //
+			array(array( 2,  7), array(17,  0), array( 7, 16), array(34,  0)), //
+			array(array( 4,  5), array( 4, 14), array(11, 14), array(16, 14)), //
+			array(array( 6,  4), array( 6, 14), array(11, 16), array(30,  2)), //
+			array(array( 8,  4), array( 8, 13), array( 7, 22), array(22, 13)), // 25
+			array(array(10,  2), array(19,  4), array(28,  6), array(33,  4)), //
+			array(array( 8,  4), array(22,  3), array( 8, 26), array(12, 28)), //
+			array(array( 3, 10), array( 3, 23), array( 4, 31), array(11, 31)), //
+			array(array( 7,  7), array(21,  7), array( 1, 37), array(19, 26)), //
+			array(array( 5, 10), array(19, 10), array(15, 25), array(23, 25)), // 30
+			array(array(13,  3), array( 2, 29), array(42,  1), array(23, 28)), //
+			array(array(17,  0), array(10, 23), array(10, 35), array(19, 35)), //
+			array(array(17,  1), array(14, 21), array(29, 19), array(11, 46)), //
+			array(array(13,  6), array(14, 23), array(44,  7), array(59,  1)), //
+			array(array(12,  7), array(12, 26), array(39, 14), array(22, 41)), // 35
+			array(array( 6, 14), array( 6, 34), array(46, 10), array( 2, 64)), //
+			array(array(17,  4), array(29, 14), array(49, 10), array(24, 46)), //
+			array(array( 4, 18), array(13, 32), array(48, 14), array(42, 32)), //
+			array(array(20,  4), array(40,  7), array(43, 22), array(10, 67)), //
+			array(array(19,  6), array(18, 31), array(34, 34), array(20, 61))  // 40
+		);
+
+		/**
+		 * @var array Positions of alignment patterns.
+		 * This array includes only the second and the third position of the alignment patterns. Rest of them can be calculated from the distance between them.
+		 * See Table 1 in Appendix E (pp.71) of JIS X0510:2004.
+		 * @access protected
+		 */
+		protected $alignmentPattern = array(
+			array( 0,  0),
+			array( 0,  0), array(18,  0), array(22,  0), array(26,  0), array(30,  0), //  1- 5
+			array(34,  0), array(22, 38), array(24, 42), array(26, 46), array(28, 50), //  6-10
+			array(30, 54), array(32, 58), array(34, 62), array(26, 46), array(26, 48), // 11-15
+			array(26, 50), array(30, 54), array(30, 56), array(30, 58), array(34, 62), // 16-20
+			array(28, 50), array(26, 50), array(30, 54), array(28, 54), array(32, 58), // 21-25
+			array(30, 58), array(34, 62), array(26, 50), array(30, 54), array(26, 52), // 26-30
+			array(30, 56), array(34, 60), array(30, 58), array(34, 62), array(30, 54), // 31-35
+			array(24, 50), array(28, 54), array(32, 58), array(26, 54), array(30, 58)  // 35-40
+		);
+
+		/**
+		 * @var array Version information pattern (BCH coded).
+		 * See Table 1 in Appendix D (pp.68) of JIS X0510:2004.
+		 * size: [QRSPEC_VERSION_MAX - 6]
+		 * @access protected
+		 */
+		protected $versionPattern = array(
+			0x07c94, 0x085bc, 0x09a99, 0x0a4d3, 0x0bbf6, 0x0c762, 0x0d847, 0x0e60d, //
+			0x0f928, 0x10b78, 0x1145d, 0x12a17, 0x13532, 0x149a6, 0x15683, 0x168c9, //
+			0x177ec, 0x18ec4, 0x191e1, 0x1afab, 0x1b08e, 0x1cc1a, 0x1d33f, 0x1ed75, //
+			0x1f250, 0x209d5, 0x216f0, 0x228ba, 0x2379f, 0x24b0b, 0x2542e, 0x26a64, //
+			0x27541, 0x28c69
+		);
+
+		/**
+		 * @var array Format information
+		 * @access protected
+		 */
+		protected $formatInfo = array(
+			array(0x77c4, 0x72f3, 0x7daa, 0x789d, 0x662f, 0x6318, 0x6c41, 0x6976), //
+			array(0x5412, 0x5125, 0x5e7c, 0x5b4b, 0x45f9, 0x40ce, 0x4f97, 0x4aa0), //
+			array(0x355f, 0x3068, 0x3f31, 0x3a06, 0x24b4, 0x2183, 0x2eda, 0x2bed), //
+			array(0x1689, 0x13be, 0x1ce7, 0x19d0, 0x0762, 0x0255, 0x0d0c, 0x083b)  //
+		);
+
+
+		// -------------------------------------------------
+		// -------------------------------------------------
+
+
+		/**
+		 * This is the class constructor.
+		 * Creates a QRcode object
+		 * @param string $code code to represent using QRcode
+		 * @param string $eclevel error level: <ul><li>L : About 7% or less errors can be corrected.</li><li>M : About 15% or less errors can be corrected.</li><li>Q : About 25% or less errors can be corrected.</li><li>H : About 30% or less errors can be corrected.</li></ul>
+		 * @access public
+		 * @since 1.0.000
+		 */
+		public function __construct($code, $eclevel = 'L') {
+			$barcode_array = array();
+			if ((is_null($code)) OR ($code == '\0') OR ($code == '')) {
+				return false;
+			}
+			// set error correction level
+			$this->level = array_search($eclevel, array('L', 'M', 'Q', 'H'));
+			if ($this->level === false) {
+				$this->level = QR_ECLEVEL_L;
+			}
+			if (($this->hint != QR_MODE_8B) AND ($this->hint != QR_MODE_KJ)) {
+				return false;
+			}
+			if (($this->version < 0) OR ($this->version > QRSPEC_VERSION_MAX)) {
+				return false;
+			}
+			$this->items = array();
+			$this->encodeString($code);
+			$qrTab = $this->binarize($this->data);
+			$size = count($qrTab);
+			$barcode_array['num_rows'] = $size;
+			$barcode_array['num_cols'] = $size;
+			$barcode_array['bcode'] = array();
+			foreach ($qrTab as $line) {
+				$arrAdd = array();
+				foreach (str_split($line) as $char) {
+					$arrAdd[] = ($char=='1')?1:0;
+				}
+				$barcode_array['bcode'][] = $arrAdd;
+			}
+			$this->barcode_array = $barcode_array;
+		}
+
+		/**
+		 * Returns a barcode array which is readable by TCPDF
+		 * @return array barcode array readable by TCPDF;
+		 * @access public
+		 */
+		public function getBarcodeArray() {
+			return $this->barcode_array;
+		}
+
+		/**
+		 * Convert the frame in binary form
+		 * @param array $frame array to binarize
+		 * @return array frame in binary form
+		 */
+		protected function binarize($frame) {
+			$len = count($frame);
+			// the frame is square (width = height)
+			foreach ($frame as &$frameLine) {
+				for ($i=0; $i<$len; $i++) {
+					$frameLine[$i] = (ord($frameLine[$i])&1)?'1':'0';
+				}
+			}
+			return $frame;
+		}
+
+		/**
+		 * Encode the input string to QR code
+		 * @param string $string input string to encode
+		 */
+		protected function encodeString($string) {
+			$this->dataStr = $string;
+			if (!$this->casesensitive) {
+				$this->toUpper();
+			}
+			$ret = $this->splitString();
+			if ($ret < 0) {
+				return NULL;
+			}
+			$this->encodeMask(-1);
+		}
+
+		/**
+		 * Encode mask
+		 * @param int $mask masking mode
+		 */
+		protected function encodeMask($mask) {
+			$spec = array(0, 0, 0, 0, 0);
+			$this->datacode = $this->getByteStream($this->items);
+			if (is_null($this->datacode)) {
+				return NULL;
+			}
+			$spec = $this->getEccSpec($this->version, $this->level, $spec);
+			$this->b1 = $this->rsBlockNum1($spec);
+			$this->dataLength = $this->rsDataLength($spec);
+			$this->eccLength = $this->rsEccLength($spec);
+			$this->ecccode = array_fill(0, $this->eccLength, 0);
+			$this->blocks = $this->rsBlockNum($spec);
+			$ret = $this->init($spec);
+			if ($ret < 0) {
+				return NULL;
+			}
+			$this->count = 0;
+			$this->width = $this->getWidth($this->version);
+			$this->frame = $this->newFrame($this->version);
+			$this->x = $this->width - 1;
+			$this->y = $this->width - 1;
+			$this->dir = -1;
+			$this->bit = -1;
+			// inteleaved data and ecc codes
+			for ($i=0; $i < ($this->dataLength + $this->eccLength); $i++) {
+				$code = $this->getCode();
+				$bit = 0x80;
+				for ($j=0; $j<8; $j++) {
+					$addr = $this->getNextPosition();
+					$this->setFrameAt($addr, 0x02 | (($bit & $code) != 0));
+					$bit = $bit >> 1;
+				}
+			}
+			// remainder bits
+			$j = $this->getRemainder($this->version);
+			for ($i=0; $i<$j; $i++) {
+				$addr = $this->getNextPosition();
+				$this->setFrameAt($addr, 0x02);
+			}
+			// masking
+			$this->runLength = array_fill(0, QRSPEC_WIDTH_MAX + 1, 0);
+			if ($mask < 0) {
+				if (QR_FIND_BEST_MASK) {
+					$masked = $this->mask($this->width, $this->frame, $this->level);
+				} else {
+					$masked = $this->makeMask($this->width, $this->frame, (intval(QR_DEFAULT_MASK) % 8), $this->level);
+				}
+			} else {
+				$masked = $this->makeMask($this->width, $this->frame, $mask, $this->level);
+			}
+			if ($masked == NULL) {
+				return NULL;
+			}
+			$this->data = $masked;
+		}
+
+		// - - - - - - - - - - - - - - - - - - - - - - - - -
+
+		// FrameFiller
+
+		/**
+		 * Set frame value at specified position
+		 * @param array $at x,y position
+		 * @param int $val value of the character to set
+		 */
+		protected function setFrameAt($at, $val) {
+			$this->frame[$at['y']][$at['x']] = chr($val);
+		}
+
+		/**
+		 * Get frame value at specified position
+		 * @param array $at x,y position
+		 * @return value at specified position
+		 */
+		protected function getFrameAt($at) {
+			return ord($this->frame[$at['y']][$at['x']]);
+		}
+
+		/**
+		 * Return the next frame position
+		 * @return array of x,y coordinates
+		 */
+		protected function getNextPosition() {
+			do {
+				if ($this->bit == -1) {
+					$this->bit = 0;
+					return array('x'=>$this->x, 'y'=>$this->y);
+				}
+				$x = $this->x;
+				$y = $this->y;
+				$w = $this->width;
+				if ($this->bit == 0) {
+					$x--;
+					$this->bit++;
+				} else {
+					$x++;
+					$y += $this->dir;
+					$this->bit--;
+				}
+				if ($this->dir < 0) {
+					if ($y < 0) {
+						$y = 0;
+						$x -= 2;
+						$this->dir = 1;
+						if ($x == 6) {
+							$x--;
+							$y = 9;
+						}
+					}
+				} else {
+					if ($y == $w) {
+						$y = $w - 1;
+						$x -= 2;
+						$this->dir = -1;
+						if ($x == 6) {
+							$x--;
+							$y -= 8;
+						}
+					}
+				}
+				if (($x < 0) OR ($y < 0)) {
+					return NULL;
+				}
+				$this->x = $x;
+				$this->y = $y;
+			} while(ord($this->frame[$y][$x]) & 0x80);
+			return array('x'=>$x, 'y'=>$y);
+		}
+
+		// - - - - - - - - - - - - - - - - - - - - - - - - -
+
+		// QRrawcode
+
+		/**
+		 * Initialize code.
+		 * @param array $spec array of ECC specification
+		 * @return 0 in case of success, -1 in case of error
+		 */
+		protected function init($spec) {
+			$dl = $this->rsDataCodes1($spec);
+			$el = $this->rsEccCodes1($spec);
+			$rs = $this->init_rs(8, 0x11d, 0, 1, $el, 255 - $dl - $el);
+			$blockNo = 0;
+			$dataPos = 0;
+			$eccPos = 0;
+			$endfor = $this->rsBlockNum1($spec);
+			for ($i=0; $i < $endfor; ++$i) {
+				$ecc = array_slice($this->ecccode, $eccPos);
+				$this->rsblocks[$blockNo] = array();
+				$this->rsblocks[$blockNo]['dataLength'] = $dl;
+				$this->rsblocks[$blockNo]['data'] = array_slice($this->datacode, $dataPos);
+				$this->rsblocks[$blockNo]['eccLength'] = $el;
+				$ecc = $this->encode_rs_char($rs, $this->rsblocks[$blockNo]['data'], $ecc);
+				$this->rsblocks[$blockNo]['ecc'] = $ecc;
+				$this->ecccode = array_merge(array_slice($this->ecccode,0, $eccPos), $ecc);
+				$dataPos += $dl;
+				$eccPos += $el;
+				$blockNo++;
+			}
+			if ($this->rsBlockNum2($spec) == 0) {
+				return 0;
+			}
+			$dl = $this->rsDataCodes2($spec);
+			$el = $this->rsEccCodes2($spec);
+			$rs = $this->init_rs(8, 0x11d, 0, 1, $el, 255 - $dl - $el);
+			if ($rs == NULL) {
+				return -1;
+			}
+			$endfor = $this->rsBlockNum2($spec);
+			for ($i=0; $i < $endfor; ++$i) {
+				$ecc = array_slice($this->ecccode, $eccPos);
+				$this->rsblocks[$blockNo] = array();
+				$this->rsblocks[$blockNo]['dataLength'] = $dl;
+				$this->rsblocks[$blockNo]['data'] = array_slice($this->datacode, $dataPos);
+				$this->rsblocks[$blockNo]['eccLength'] = $el;
+				$ecc = $this->encode_rs_char($rs, $this->rsblocks[$blockNo]['data'], $ecc);
+				$this->rsblocks[$blockNo]['ecc'] = $ecc;
+				$this->ecccode = array_merge(array_slice($this->ecccode, 0, $eccPos), $ecc);
+				$dataPos += $dl;
+				$eccPos += $el;
+				$blockNo++;
+			}
+			return 0;
+		}
+
+		/**
+		 * Return Reed-Solomon block code.
+		 * @return array rsblocks
+		 */
+		protected function getCode() {
+			if ($this->count < $this->dataLength) {
+				$row = $this->count % $this->blocks;
+				$col = $this->count / $this->blocks;
+				if ($col >= $this->rsblocks[0]['dataLength']) {
+					$row += $this->b1;
+				}
+				$ret = $this->rsblocks[$row]['data'][$col];
+			} elseif ($this->count < $this->dataLength + $this->eccLength) {
+				$row = ($this->count - $this->dataLength) % $this->blocks;
+				$col = ($this->count - $this->dataLength) / $this->blocks;
+				$ret = $this->rsblocks[$row]['ecc'][$col];
+			} else {
+				return 0;
+			}
+			$this->count++;
+			return $ret;
+		}
+
+		// - - - - - - - - - - - - - - - - - - - - - - - - -
+
+		// QRmask
+
+		/**
+		 * Write Format Information on frame and returns the number of black bits
+		 * @param int $width frame width
+		 * @param array $frame frame
+		 * @param array $mask masking mode
+		 * @param int $level error correction level
+		 * @return int blacks
+		 */
+		 protected function writeFormatInformation($width, &$frame, $mask, $level) {
+			$blacks = 0;
+			$format =  $this->getFormatInfo($mask, $level);
+			for ($i=0; $i<8; ++$i) {
+				if ($format & 1) {
+					$blacks += 2;
+					$v = 0x85;
+				} else {
+					$v = 0x84;
+				}
+				$frame[8][$width - 1 - $i] = chr($v);
+				if ($i < 6) {
+					$frame[$i][8] = chr($v);
+				} else {
+					$frame[$i + 1][8] = chr($v);
+				}
+				$format = $format >> 1;
+			}
+			for ($i=0; $i<7; ++$i) {
+			if ($format & 1) {
+				$blacks += 2;
+				$v = 0x85;
+			} else {
+				$v = 0x84;
+			}
+			$frame[$width - 7 + $i][8] = chr($v);
+			if ($i == 0) {
+				$frame[8][7] = chr($v);
+			} else {
+				$frame[8][6 - $i] = chr($v);
+			}
+			$format = $format >> 1;
+			}
+			return $blacks;
+		}
+
+		/**
+		 * mask0
+		 * @param int $x X position
+		 * @param int $y Y position
+		 * @return int mask
+		 */
+		 protected function mask0($x, $y) {
+			return ($x + $y) & 1;
+		}
+
+		/**
+		 * mask1
+		 * @param int $x X position
+		 * @param int $y Y position
+		 * @return int mask
+		 */
+		 protected function mask1($x, $y) {
+			return ($y & 1);
+		}
+
+		/**
+		 * mask2
+		 * @param int $x X position
+		 * @param int $y Y position
+		 * @return int mask
+		 */
+		 protected function mask2($x, $y) {
+			return ($x % 3);
+		}
+
+		/**
+		 * mask3
+		 * @param int $x X position
+		 * @param int $y Y position
+		 * @return int mask
+		 */
+		 protected function mask3($x, $y) {
+			return ($x + $y) % 3;
+		}
+
+		/**
+		 * mask4
+		 * @param int $x X position
+		 * @param int $y Y position
+		 * @return int mask
+		 */
+		 protected function mask4($x, $y) {
+			return (((int)($y / 2)) + ((int)($x / 3))) & 1;
+		}
+
+		/**
+		 * mask5
+		 * @param int $x X position
+		 * @param int $y Y position
+		 * @return int mask
+		 */
+		 protected function mask5($x, $y) {
+			return (($x * $y) & 1) + ($x * $y) % 3;
+		}
+
+		/**
+		 * mask6
+		 * @param int $x X position
+		 * @param int $y Y position
+		 * @return int mask
+		 */
+		 protected function mask6($x, $y) {
+			return ((($x * $y) & 1) + ($x * $y) % 3) & 1;
+		}
+
+		/**
+		 * mask7
+		 * @param int $x X position
+		 * @param int $y Y position
+		 * @return int mask
+		 */
+		 protected function mask7($x, $y) {
+			return ((($x * $y) % 3) + (($x + $y) & 1)) & 1;
+		}
+
+		/**
+		 * Return bitmask
+		 * @param int $maskNo mask number
+		 * @param int $width width
+		 * @param array $frame frame
+		 * @return array bitmask
+		 */
+		protected function generateMaskNo($maskNo, $width, $frame) {
+			$bitMask = array_fill(0, $width, array_fill(0, $width, 0));
+			for ($y=0; $y<$width; ++$y) {
+				for ($x=0; $x<$width; ++$x) {
+					if (ord($frame[$y][$x]) & 0x80) {
+						$bitMask[$y][$x] = 0;
+					} else {
+						$maskFunc = call_user_func(array($this, 'mask'.$maskNo), $x, $y);
+						$bitMask[$y][$x] = ($maskFunc == 0)?1:0;
+					}
+				}
+			}
+			return $bitMask;
+		}
+
+		/**
+		 * makeMaskNo
+		 * @param int $maskNo
+		 * @param int $width
+		 * @param int $s
+		 * @param int $d
+		 * @param boolean $maskGenOnly
+		 * @return int b
+		 */
+		 protected function makeMaskNo($maskNo, $width, $s, &$d, $maskGenOnly=false) {
+			$b = 0;
+			$bitMask = array();
+			$bitMask = $this->generateMaskNo($maskNo, $width, $s, $d);
+			if ($maskGenOnly) {
+				return;
+			}
+			$d = $s;
+			for ($y=0; $y<$width; ++$y) {
+				for ($x=0; $x<$width; ++$x) {
+					if ($bitMask[$y][$x] == 1) {
+						$d[$y][$x] = chr(ord($s[$y][$x]) ^ (int)$bitMask[$y][$x]);
+					}
+					$b += (int)(ord($d[$y][$x]) & 1);
+				}
+			}
+			return $b;
+		}
+
+		/**
+		 * makeMask
+		 * @param int $width
+		 * @param array $frame
+		 * @param int $maskNo
+		 * @param int $level
+		 * @return array mask
+		 */
+		 protected function makeMask($width, $frame, $maskNo, $level) {
+			$masked = array_fill(0, $width, str_repeat("\0", $width));
+			$this->makeMaskNo($maskNo, $width, $frame, $masked);
+			$this->writeFormatInformation($width, $masked, $maskNo, $level);
+			return $masked;
+		}
+
+		/**
+		 * calcN1N3
+		 * @param int $length
+		 * @return int demerit
+		 */
+		 protected function calcN1N3($length) {
+			$demerit = 0;
+			for ($i=0; $i<$length; ++$i) {
+				if ($this->runLength[$i] >= 5) {
+					$demerit += (N1 + ($this->runLength[$i] - 5));
+				}
+				if ($i & 1) {
+					if (($i >= 3) AND ($i < ($length-2)) AND ($this->runLength[$i] % 3 == 0)) {
+						$fact = (int)($this->runLength[$i] / 3);
+						if (($this->runLength[$i-2] == $fact)
+							AND ($this->runLength[$i-1] == $fact)
+							AND ($this->runLength[$i+1] == $fact)
+							AND ($this->runLength[$i+2] == $fact)) {
+							if (($this->runLength[$i-3] < 0) OR ($this->runLength[$i-3] >= (4 * $fact))) {
+								$demerit += N3;
+							} elseif ((($i+3) >= $length) OR ($this->runLength[$i+3] >= (4 * $fact))) {
+								$demerit += N3;
+							}
+						}
+					}
+				}
+			}
+			return $demerit;
+		}
+
+		/**
+		 * evaluateSymbol
+		 * @param int $width
+		 * @param array $frame
+		 * @return int demerit
+		 */
+		 protected function evaluateSymbol($width, $frame) {
+			$head = 0;
+			$demerit = 0;
+			for ($y=0; $y<$width; ++$y) {
+				$head = 0;
+				$this->runLength[0] = 1;
+				$frameY = $frame[$y];
+				if ($y > 0) {
+					$frameYM = $frame[$y-1];
+				}
+				for ($x=0; $x<$width; ++$x) {
+					if (($x > 0) AND ($y > 0)) {
+						$b22 = ord($frameY[$x]) & ord($frameY[$x-1]) & ord($frameYM[$x]) & ord($frameYM[$x-1]);
+						$w22 = ord($frameY[$x]) | ord($frameY[$x-1]) | ord($frameYM[$x]) | ord($frameYM[$x-1]);
+						if (($b22 | ($w22 ^ 1)) & 1) {
+							$demerit += N2;
+						}
+					}
+					if (($x == 0) AND (ord($frameY[$x]) & 1)) {
+						$this->runLength[0] = -1;
+						$head = 1;
+						$this->runLength[$head] = 1;
+					} elseif ($x > 0) {
+						if ((ord($frameY[$x]) ^ ord($frameY[$x-1])) & 1) {
+							$head++;
+							$this->runLength[$head] = 1;
+						} else {
+							$this->runLength[$head]++;
+						}
+					}
+				}
+				$demerit += $this->calcN1N3($head+1);
+			}
+			for ($x=0; $x<$width; ++$x) {
+				$head = 0;
+				$this->runLength[0] = 1;
+				for ($y=0; $y<$width; ++$y) {
+					if (($y == 0) AND (ord($frame[$y][$x]) & 1)) {
+						$this->runLength[0] = -1;
+						$head = 1;
+						$this->runLength[$head] = 1;
+					} elseif ($y > 0) {
+						if ((ord($frame[$y][$x]) ^ ord($frame[$y-1][$x])) & 1) {
+							$head++;
+							$this->runLength[$head] = 1;
+						} else {
+							$this->runLength[$head]++;
+						}
+					}
+				}
+				$demerit += $this->calcN1N3($head+1);
+			}
+			return $demerit;
+		}
+
+		/**
+		 * mask
+		 * @param int $width
+		 * @param array $frame
+		 * @param int $level
+		 * @return array best mask
+		 */
+		 protected function mask($width, $frame, $level) {
+			$minDemerit = PHP_INT_MAX;
+			$bestMaskNum = 0;
+			$bestMask = array();
+			$checked_masks = array(0, 1, 2, 3, 4, 5, 6, 7);
+			if (QR_FIND_FROM_RANDOM !== false) {
+				$howManuOut = 8 - (QR_FIND_FROM_RANDOM % 9);
+				for ($i = 0; $i <  $howManuOut; ++$i) {
+					$remPos = rand (0, count($checked_masks)-1);
+					unset($checked_masks[$remPos]);
+					$checked_masks = array_values($checked_masks);
+				}
+			}
+			$bestMask = $frame;
+			foreach ($checked_masks as $i) {
+				$mask = array_fill(0, $width, str_repeat("\0", $width));
+				$demerit = 0;
+				$blacks = 0;
+				$blacks  = $this->makeMaskNo($i, $width, $frame, $mask);
+				$blacks += $this->writeFormatInformation($width, $mask, $i, $level);
+				$blacks  = (int)(100 * $blacks / ($width * $width));
+				$demerit = (int)((int)(abs($blacks - 50) / 5) * N4);
+				$demerit += $this->evaluateSymbol($width, $mask);
+				if ($demerit < $minDemerit) {
+					$minDemerit = $demerit;
+					$bestMask = $mask;
+					$bestMaskNum = $i;
+				}
+			}
+			return $bestMask;
+		}
+
+		// - - - - - - - - - - - - - - - - - - - - - - - - -
+
+		// QRsplit
+
+		/**
+		 * Return true if the character at specified position is a number
+		 * @param string $str string
+		 * @param int $pos characted position
+		 * @return boolean true of false
+		 */
+		 protected function isdigitat($str, $pos) {
+			if ($pos >= strlen($str)) {
+				return false;
+			}
+			return ((ord($str[$pos]) >= ord('0'))&&(ord($str[$pos]) <= ord('9')));
+		}
+
+		/**
+		 * Return true if the character at specified position is an alphanumeric character
+		 * @param string $str string
+		 * @param int $pos characted position
+		 * @return boolean true of false
+		 */
+		 protected function isalnumat($str, $pos) {
+			if ($pos >= strlen($str)) {
+				return false;
+			}
+			return ($this->lookAnTable(ord($str[$pos])) >= 0);
+		}
+
+		/**
+		 * identifyMode
+		 * @param int $pos
+		 * @return int mode
+		 */
+		 protected function identifyMode($pos) {
+			if ($pos >= strlen($this->dataStr)) {
+				return QR_MODE_NL;
+			}
+			$c = $this->dataStr[$pos];
+			if ($this->isdigitat($this->dataStr, $pos)) {
+				return QR_MODE_NM;
+			} elseif ($this->isalnumat($this->dataStr, $pos)) {
+				return QR_MODE_AN;
+			} elseif ($this->hint == QR_MODE_KJ) {
+				if ($pos+1 < strlen($this->dataStr)) {
+					$d = $this->dataStr[$pos+1];
+					$word = (ord($c) << 8) | ord($d);
+					if (($word >= 0x8140 && $word <= 0x9ffc) OR ($word >= 0xe040 && $word <= 0xebbf)) {
+						return QR_MODE_KJ;
+					}
+				}
+			}
+			return QR_MODE_8B;
+		}
+
+		/**
+		 * eatNum
+		 * @return int run
+		 */
+		 protected function eatNum() {
+			$ln = $this->lengthIndicator(QR_MODE_NM, $this->version);
+			$p = 0;
+			while($this->isdigitat($this->dataStr, $p)) {
+				$p++;
+			}
+			$run = $p;
+			$mode = $this->identifyMode($p);
+			if ($mode == QR_MODE_8B) {
+				$dif = $this->estimateBitsModeNum($run) + 4 + $ln
+				+ $this->estimateBitsMode8(1)         // + 4 + l8
+				- $this->estimateBitsMode8($run + 1); // - 4 - l8
+				if ($dif > 0) {
+					return $this->eat8();
+				}
+			}
+			if ($mode == QR_MODE_AN) {
+				$dif = $this->estimateBitsModeNum($run) + 4 + $ln
+				+ $this->estimateBitsModeAn(1)        // + 4 + la
+				- $this->estimateBitsModeAn($run + 1);// - 4 - la
+				if ($dif > 0) {
+					return $this->eatAn();
+				}
+			}
+			$this->items = $this->appendNewInputItem($this->items, QR_MODE_NM, $run, str_split($this->dataStr));
+			return $run;
+		}
+
+		/**
+		 * eatAn
+		 * @return int run
+		 */
+		 protected function eatAn() {
+			$la = $this->lengthIndicator(QR_MODE_AN,  $this->version);
+			$ln = $this->lengthIndicator(QR_MODE_NM, $this->version);
+			$p = 0;
+			while($this->isalnumat($this->dataStr, $p)) {
+				if ($this->isdigitat($this->dataStr, $p)) {
+					$q = $p;
+					while($this->isdigitat($this->dataStr, $q)) {
+						$q++;
+					}
+					$dif = $this->estimateBitsModeAn($p) // + 4 + la
+					+ $this->estimateBitsModeNum($q - $p) + 4 + $ln
+					- $this->estimateBitsModeAn($q); // - 4 - la
+					if ($dif < 0) {
+						break;
+					} else {
+						$p = $q;
+					}
+				} else {
+					$p++;
+				}
+			}
+			$run = $p;
+			if (!$this->isalnumat($this->dataStr, $p)) {
+				$dif = $this->estimateBitsModeAn($run) + 4 + $la
+				+ $this->estimateBitsMode8(1) // + 4 + l8
+				- $this->estimateBitsMode8($run + 1); // - 4 - l8
+				if ($dif > 0) {
+					return $this->eat8();
+				}
+			}
+			$this->items = $this->appendNewInputItem($this->items, QR_MODE_AN, $run, str_split($this->dataStr));
+			return $run;
+		}
+
+		/**
+		 * eatKanji
+		 * @return int run
+		 */
+		 protected function eatKanji() {
+			$p = 0;
+			while($this->identifyMode($p) == QR_MODE_KJ) {
+				$p += 2;
+			}
+			$this->items = $this->appendNewInputItem($this->items, QR_MODE_KJ, $p, str_split($this->dataStr));
+			return $run;
+		}
+
+		/**
+		 * eat8
+		 * @return int run
+		 */
+		 protected function eat8() {
+			$la = $this->lengthIndicator(QR_MODE_AN, $this->version);
+			$ln = $this->lengthIndicator(QR_MODE_NM, $this->version);
+			$p = 1;
+			$dataStrLen = strlen($this->dataStr);
+			while($p < $dataStrLen) {
+				$mode = $this->identifyMode($p);
+				if ($mode == QR_MODE_KJ) {
+					break;
+				}
+				if ($mode == QR_MODE_NM) {
+					$q = $p;
+					while($this->isdigitat($this->dataStr, $q)) {
+						$q++;
+					}
+					$dif = $this->estimateBitsMode8($p) // + 4 + l8
+					+ $this->estimateBitsModeNum($q - $p) + 4 + $ln
+					- $this->estimateBitsMode8($q); // - 4 - l8
+					if ($dif < 0) {
+						break;
+					} else {
+						$p = $q;
+					}
+				} elseif ($mode == QR_MODE_AN) {
+					$q = $p;
+					while($this->isalnumat($this->dataStr, $q)) {
+						$q++;
+					}
+					$dif = $this->estimateBitsMode8($p)  // + 4 + l8
+					+ $this->estimateBitsModeAn($q - $p) + 4 + $la
+					- $this->estimateBitsMode8($q); // - 4 - l8
+					if ($dif < 0) {
+						break;
+					} else {
+						$p = $q;
+					}
+				} else {
+					$p++;
+				}
+			}
+			$run = $p;
+			$this->items = $this->appendNewInputItem($this->items, QR_MODE_8B, $run, str_split($this->dataStr));
+			return $run;
+		}
+
+		/**
+		 * splitString
+		 */
+		 protected function splitString() {
+			while (strlen($this->dataStr) > 0) {
+				if ($this->dataStr == '') {
+					return 0;
+				}
+				$mode = $this->identifyMode(0);
+				switch ($mode) {
+					case QR_MODE_NM: {
+						$length = $this->eatNum();
+						break;
+					}
+					case QR_MODE_AN: {
+						$length = $this->eatAn();
+						break;
+					}
+					case QR_MODE_KJ: {
+						if ($hint == QR_MODE_KJ) {
+							$length = $this->eatKanji();
+						} else {
+							$length = $this->eat8();
+						}
+						break;
+					}
+					default: {
+						$length = $this->eat8();
+						break;
+					}
+				}
+				if ($length == 0) {
+					return 0;
+				}
+				if ($length < 0) {
+					return -1;
+				}
+				$this->dataStr = substr($this->dataStr, $length);
+			}
+		}
+
+		/**
+		 * toUpper
+		 */
+		 protected function toUpper() {
+			$stringLen = strlen($this->dataStr);
+			$p = 0;
+			while ($p < $stringLen) {
+				$mode = $this->identifyMode(substr($this->dataStr, $p), $this->hint);
+				if ($mode == QR_MODE_KJ) {
+					$p += 2;
+				} else {
+					if ((ord($this->dataStr[$p]) >= ord('a')) AND (ord($this->dataStr[$p]) <= ord('z'))) {
+						$this->dataStr[$p] = chr(ord($this->dataStr[$p]) - 32);
+					}
+					$p++;
+				}
+			}
+			return $this->dataStr;
+		}
+
+		// - - - - - - - - - - - - - - - - - - - - - - - - -
+
+		// QRinputItem
+
+		/**
+		 * newInputItem
+		 * @param int $mode
+		 * @param int $size
+		 * @param array $data
+		 * @param array $bstream
+		 * @return array input item
+		 */
+		 protected function newInputItem($mode, $size, $data, $bstream=null) {
+			$setData = array_slice($data, 0, $size);
+			if (count($setData) < $size) {
+				$setData = array_merge($setData, array_fill(0, ($size - count($setData)), 0));
+			}
+			if (!$this->check($mode, $size, $setData)) {
+				return NULL;
+			}
+			$inputitem = array();
+			$inputitem['mode'] = $mode;
+			$inputitem['size'] = $size;
+			$inputitem['data'] = $setData;
+			$inputitem['bstream'] = $bstream;
+			return $inputitem;
+		}
+
+		/**
+		 * encodeModeNum
+		 * @param array $inputitem
+		 * @param int $version
+		 * @return array input item
+		 */
+		 protected function encodeModeNum($inputitem, $version) {
+			$words = (int)($inputitem['size'] / 3);
+			$inputitem['bstream'] = array();
+			$val = 0x1;
+			$inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 4, $val);
+			$inputitem['bstream'] = $this->appendNum($inputitem['bstream'], $this->lengthIndicator(QR_MODE_NM, $version), $inputitem['size']);
+			for ($i=0; $i < $words; ++$i) {
+				$val  = (ord($inputitem['data'][$i*3  ]) - ord('0')) * 100;
+				$val += (ord($inputitem['data'][$i*3+1]) - ord('0')) * 10;
+				$val += (ord($inputitem['data'][$i*3+2]) - ord('0'));
+				$inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 10, $val);
+			}
+			if ($inputitem['size'] - $words * 3 == 1) {
+				$val = ord($inputitem['data'][$words*3]) - ord('0');
+				$inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 4, $val);
+			} elseif (($inputitem['size'] - ($words * 3)) == 2) {
+				$val  = (ord($inputitem['data'][$words*3  ]) - ord('0')) * 10;
+				$val += (ord($inputitem['data'][$words*3+1]) - ord('0'));
+				$inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 7, $val);
+			}
+			return $inputitem;
+		}
+
+		/**
+		 * encodeModeAn
+		 * @param array $inputitem
+		 * @param int $version
+		 * @return array input item
+		 */
+		 protected function encodeModeAn($inputitem, $version) {
+			$words = (int)($inputitem['size'] / 2);
+			$inputitem['bstream'] = array();
+			$inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 4, 0x02);
+			$inputitem['bstream'] = $this->appendNum(v, $this->lengthIndicator(QR_MODE_AN, $version), $inputitem['size']);
+			for ($i=0; $i < $words; ++$i) {
+				$val  = (int)$this->lookAnTable(ord($inputitem['data'][$i*2  ])) * 45;
+				$val += (int)$this->lookAnTable(ord($inputitem['data'][$i*2+1]));
+				$inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 11, $val);
+			}
+			if ($inputitem['size'] & 1) {
+				$val = $this->lookAnTable(ord($inputitem['data'][($words * 2)]));
+				$inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 6, $val);
+			}
+			return $inputitem;
+		}
+
+		/**
+		 * encodeMode8
+		 * @param array $inputitem
+		 * @param int $version
+		 * @return array input item
+		 */
+		 protected function encodeMode8($inputitem, $version) {
+			$inputitem['bstream'] = array();
+			$inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 4, 0x4);
+			$inputitem['bstream'] = $this->appendNum($inputitem['bstream'], $this->lengthIndicator(QR_MODE_8B, $version), $inputitem['size']);
+			for ($i=0; $i < $inputitem['size']; ++$i) {
+				$inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 8, ord($inputitem['data'][$i]));
+			}
+			return $inputitem;
+		}
+
+		/**
+		 * encodeModeKanji
+		 * @param array $inputitem
+		 * @param int $version
+		 * @return array input item
+		 */
+		 protected function encodeModeKanji($inputitem, $version) {
+			$inputitem['bstream'] = array();
+			$inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 4, 0x8);
+			$inputitem['bstream'] = $this->appendNum($inputitem['bstream'], $this->lengthIndicator(QR_MODE_KJ, $version), (int)($inputitem['size'] / 2));
+			for ($i=0; $i<$inputitem['size']; $i+=2) {
+				$val = (ord($inputitem['data'][$i]) << 8) | ord($inputitem['data'][$i+1]);
+				if ($val <= 0x9ffc) {
+					$val -= 0x8140;
+				} else {
+					$val -= 0xc140;
+				}
+				$h = ($val >> 8) * 0xc0;
+				$val = ($val & 0xff) + $h;
+				$inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 13, $val);
+			}
+			return $inputitem;
+		}
+
+		/**
+		 * encodeModeStructure
+		 * @param array $inputitem
+		 * @return array input item
+		 */
+		 protected function encodeModeStructure($inputitem) {
+			$inputitem['bstream'] = array();
+			$inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 4, 0x03);
+			$inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 4, ord($inputitem['data'][1]) - 1);
+			$inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 4, ord($inputitem['data'][0]) - 1);
+			$inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 8, ord($inputitem['data'][2]));
+			return $inputitem;
+		}
+
+		/**
+		 * encodeBitStream
+		 * @param array $inputitem
+		 * @param int $version
+		 * @return array input item
+		 */
+		 protected function encodeBitStream($inputitem, $version) {
+			$inputitem['bstream'] = array();
+			$words = $this->maximumWords($inputitem['mode'], $version);
+			if ($inputitem['size'] > $words) {
+				$st1 = $this->newInputItem($inputitem['mode'], $words, $inputitem['data']);
+				$st2 = $this->newInputItem($inputitem['mode'], $inputitem['size'] - $words, array_slice($inputitem['data'], $words));
+				$st1 = $this->encodeBitStream($st1, $version);
+				$st2 = $this->encodeBitStream($st2, $version);
+				$inputitem['bstream'] = array();
+				$inputitem['bstream'] = $this->appendBitstream($inputitem['bstream'], $st1['bstream']);
+				$inputitem['bstream'] = $this->appendBitstream($inputitem['bstream'], $st2['bstream']);
+			} else {
+				switch($inputitem['mode']) {
+					case QR_MODE_NM: {
+						$inputitem = $this->encodeModeNum($inputitem, $version);
+						break;
+					}
+					case QR_MODE_AN: {
+						$inputitem = $this->encodeModeAn($inputitem, $version);
+						break;
+					}
+					case QR_MODE_8B: {
+						$inputitem = $this->encodeMode8($inputitem, $version);
+						break;
+					}
+					case QR_MODE_KJ: {
+						$inputitem = $this->encodeModeKanji($inputitem, $version);
+						break;
+					}
+					case QR_MODE_ST: {
+						$inputitem = $this->encodeModeStructure($inputitem);
+						break;
+					}
+					default: {
+						break;
+					}
+				}
+			}
+			return $inputitem;
+		}
+
+		// - - - - - - - - - - - - - - - - - - - - - - - - -
+
+		// QRinput
+
+		/**
+		 * Append data to an input object.
+		 * The data is copied and appended to the input object.
+		 * @param array items input items
+		 * @param int $mode encoding mode.
+		 * @param int $size size of data (byte).
+		 * @param array $data array of input data.
+		 * @return items
+		 *
+		 */
+		protected function appendNewInputItem($items, $mode, $size, $data) {
+			$items[] = $this->newInputItem($mode, $size, $data);
+			return $items;
+		}
+
+		/**
+		 * insertStructuredAppendHeader
+		 * @param array $items
+		 * @param int $size
+		 * @param int $index
+		 * @param int $parity
+		 * @return array items
+		 */
+		 protected function insertStructuredAppendHeader($items, $size, $index, $parity) {
+			if ($size > MAX_STRUCTURED_SYMBOLS) {
+				return -1;
+			}
+			if (($index <= 0) OR ($index > MAX_STRUCTURED_SYMBOLS)) {
+				return -1;
+			}
+			$buf = array($size, $index, $parity);
+			$entry = $this->newInputItem(QR_MODE_ST, 3, buf);
+			array_unshift($items, $entry);
+			return $items;
+		}
+
+		/**
+		 * calcParity
+		 * @param array $items
+		 * @return int parity
+		 */
+		 protected function calcParity($items) {
+			$parity = 0;
+			foreach ($items as $item) {
+				if ($item['mode'] != QR_MODE_ST) {
+					for ($i=$item['size']-1; $i>=0; --$i) {
+						$parity ^= $item['data'][$i];
+					}
+				}
+			}
+			return $parity;
+		}
+
+		/**
+		 * checkModeNum
+		 * @param int $size
+		 * @param array $data
+		 * @return boolean true or false
+		 */
+		 protected function checkModeNum($size, $data) {
+			for ($i=0; $i<$size; ++$i) {
+				if ((ord($data[$i]) < ord('0')) OR (ord($data[$i]) > ord('9'))){
+					return false;
+				}
+			}
+			return true;
+		}
+
+		/**
+		 * estimateBitsModeNum
+		 * @param int $size
+		 * @return int number of bits
+		 */
+		 protected function estimateBitsModeNum($size) {
+			$w = (int)$size / 3;
+			$bits = $w * 10;
+			switch($size - $w * 3) {
+				case 1: {
+					$bits += 4;
+					break;
+				}
+				case 2: {
+					$bits += 7;
+					break;
+				}
+				default: {
+					break;
+				}
+			}
+			return $bits;
+		}
+
+		/**
+		 * Look up the alphabet-numeric convesion table (see JIS X0510:2004, pp.19).
+		 * @param int $c character value
+		 * @return value
+		 */
+		protected function lookAnTable($c) {
+			return (($c > 127)?-1:$this->anTable[$c]);
+		}
+
+		/**
+		 * checkModeAn
+		 * @param int $size
+		 * @param array $data
+		 * @return boolean true or false
+		 */
+		 protected function checkModeAn($size, $data) {
+			for ($i=0; $i<$size; ++$i) {
+				if ($this->lookAnTable(ord($data[$i])) == -1) {
+					return false;
+				}
+			}
+			return true;
+		}
+
+		/**
+		 * estimateBitsModeAn
+		 * @param int $size
+		 * @return int number of bits
+		 */
+		 protected function estimateBitsModeAn($size) {
+			$w = (int)($size / 2);
+			$bits = $w * 11;
+			if ($size & 1) {
+				$bits += 6;
+			}
+			return $bits;
+		}
+
+		/**
+		 * estimateBitsMode8
+		 * @param int $size
+		 * @return int number of bits
+		 */
+		 protected function estimateBitsMode8($size) {
+			return $size * 8;
+		}
+
+		/**
+		 * estimateBitsModeKanji
+		 * @param int $size
+		 * @return int number of bits
+		 */
+		 protected function estimateBitsModeKanji($size) {
+			return (int)(($size / 2) * 13);
+		}
+
+		/**
+		 * checkModeKanji
+		 * @param int $size
+		 * @param array $data
+		 * @return boolean true or false
+		 */
+		 protected function checkModeKanji($size, $data) {
+			if ($size & 1) {
+				return false;
+			}
+			for ($i=0; $i<$size; $i+=2) {
+				$val = (ord($data[$i]) << 8) | ord($data[$i+1]);
+				if (($val < 0x8140) OR (($val > 0x9ffc) AND ($val < 0xe040)) OR ($val > 0xebbf)) {
+					return false;
+				}
+			}
+			return true;
+		}
+
+		/**
+		 * Validate the input data.
+		 * @param int $mode encoding mode.
+		 * @param int $size size of data (byte).
+		 * @param array data data to validate
+		 * @return boolean true in case of valid data, false otherwise
+		 */
+		protected function check($mode, $size, $data) {
+			if ($size <= 0) {
+				return false;
+			}
+			switch($mode) {
+				case QR_MODE_NM: {
+					return $this->checkModeNum($size, $data);
+				}
+				case QR_MODE_AN: {
+					return $this->checkModeAn($size, $data);
+				}
+				case QR_MODE_KJ: {
+					return $this->checkModeKanji($size, $data);
+				}
+				case QR_MODE_8B: {
+					return true;
+				}
+				case QR_MODE_ST: {
+					return true;
+				}
+				default: {
+					break;
+				}
+			}
+			return false;
+		}
+
+		/**
+		 * estimateBitStreamSize
+		 * @param array $items
+		 * @param int $version
+		 * @return int bits
+		 */
+		 protected function estimateBitStreamSize($items, $version) {
+			$bits = 0;
+			if ($version == 0) {
+				$version = 1;
+			}
+			foreach ($items as $item) {
+				switch($item['mode']) {
+					case QR_MODE_NM: {
+						$bits = $this->estimateBitsModeNum($item['size']);
+						break;
+					}
+					case QR_MODE_AN: {
+						$bits = $this->estimateBitsModeAn($item['size']);
+						break;
+					}
+					case QR_MODE_8B: {
+						$bits = $this->estimateBitsMode8($item['size']);
+						break;
+					}
+					case QR_MODE_KJ: {
+						$bits = $this->estimateBitsModeKanji($item['size']);
+						break;
+					}
+					case QR_MODE_ST: {
+						return STRUCTURE_HEADER_BITS;
+					}
+					default: {
+						return 0;
+					}
+				}
+				$l = $this->lengthIndicator($item['mode'], $version);
+				$m = 1 << $l;
+				$num = (int)(($item['size'] + $m - 1) / $m);
+				$bits += $num * (4 + $l);
+			}
+			return $bits;
+		}
+
+		/**
+		 * estimateVersion
+		 * @param array $items
+		 * @return int version
+		 */
+		 protected function estimateVersion($items) {
+			$version = 0;
+			$prev = 0;
+			do {
+				$prev = $version;
+				$bits = $this->estimateBitStreamSize($items, $prev);
+				$version = $this->getMinimumVersion((int)(($bits + 7) / 8), $this->level);
+				if ($version < 0) {
+					return -1;
+				}
+			} while ($version > $prev);
+			return $version;
+		}
+
+		/**
+		 * lengthOfCode
+		 * @param int $mode
+		 * @param int $version
+		 * @param int $bits
+		 * @return int size
+		 */
+		 protected function lengthOfCode($mode, $version, $bits) {
+			$payload = $bits - 4 - $this->lengthIndicator($mode, $version);
+			switch($mode) {
+				case QR_MODE_NM: {
+					$chunks = (int)($payload / 10);
+					$remain = $payload - $chunks * 10;
+					$size = $chunks * 3;
+					if ($remain >= 7) {
+						$size += 2;
+					} elseif ($remain >= 4) {
+						$size += 1;
+					}
+					break;
+				}
+				case QR_MODE_AN: {
+					$chunks = (int)($payload / 11);
+					$remain = $payload - $chunks * 11;
+					$size = $chunks * 2;
+					if ($remain >= 6) {
+						++$size;
+					}
+					break;
+				}
+				case QR_MODE_8B: {
+					$size = (int)($payload / 8);
+					break;
+				}
+				case QR_MODE_KJ: {
+					$size = (int)(($payload / 13) * 2);
+					break;
+				}
+				case QR_MODE_ST: {
+					$size = (int)($payload / 8);
+					break;
+				}
+				default: {
+					$size = 0;
+					break;
+				}
+			}
+			$maxsize = $this->maximumWords($mode, $version);
+			if ($size < 0) {
+				$size = 0;
+			}
+			if ($size > $maxsize) {
+				$size = $maxsize;
+			}
+			return $size;
+		}
+
+		/**
+		 * createBitStream
+		 * @param array $items
+		 * @return array of items and total bits
+		 */
+		 protected function createBitStream($items) {
+			$total = 0;
+			foreach ($items as $key => $item) {
+				$items[$key] = $this->encodeBitStream($item, $this->version);
+				$bits = count($items[$key]['bstream']);
+				$total += $bits;
+			}
+			return array($items, $total);
+		}
+
+		/**
+		 * convertData
+		 * @param array $items
+		 * @return array items
+		 */
+		 protected function convertData($items) {
+			$ver = $this->estimateVersion($items);
+			if ($ver > $this->version) {
+				$this->version = $ver;
+			}
+			for (;;) {
+				$cbs = $this->createBitStream($items);
+				$items = $cbs[0];
+				$bits = $cbs[1];
+				if ($bits < 0) {
+					return -1;
+				}
+				$ver = $this->getMinimumVersion((int)(($bits + 7) / 8), $this->level);
+				if ($ver < 0) {
+					return -1;
+				} elseif ($ver > $this->version) {
+					$this->version = $ver;
+				} else {
+					break;
+				}
+			}
+			return $items;
+		}
+
+		/**
+		 * Append Padding Bit to bitstream
+		 * @param array $bstream
+		 * @return array bitstream
+		 */
+		 protected function appendPaddingBit($bstream) {
+			$bits = count($bstream);
+			$maxwords = $this->getDataLength($this->version, $this->level);
+			$maxbits = $maxwords * 8;
+			if ($maxbits == $bits) {
+				return 0;
+			}
+			if ($maxbits - $bits < 5) {
+				return $this->appendNum($bstream, $maxbits - $bits, 0);
+			}
+			$bits += 4;
+			$words = (int)(($bits + 7) / 8);
+			$padding = array();
+			$padding = $this->appendNum($padding, $words * 8 - $bits + 4, 0);
+			$padlen = $maxwords - $words;
+			if ($padlen > 0) {
+				$padbuf = array();
+				for ($i=0; $i<$padlen; ++$i) {
+					$padbuf[$i] = ($i&1)?0x11:0xec;
+				}
+				$padding = $this->appendBytes($padding, $padlen, $padbuf);
+			}
+			return $this->appendBitstream($bstream, $padding);
+		}
+
+		/**
+		 * mergeBitStream
+		 * @param array $bstream
+		 * @return array bitstream
+		 */
+		 protected function mergeBitStream($items) {
+			$items = $this->convertData($items);
+			$bstream = array();
+			foreach ($items as $item) {
+				$bstream = $this->appendBitstream($bstream, $item['bstream']);
+			}
+			return $bstream;
+		}
+
+		/**
+		 * Returns a stream of bits.
+		 * @param int $items
+		 * @return array padded merged byte stream
+		 */
+		protected function getBitStream($items) {
+			$bstream = $this->mergeBitStream($items);
+			return $this->appendPaddingBit($bstream);
+		}
+
+		/**
+		 * Pack all bit streams padding bits into a byte array.
+		 * @param int $items
+		 * @return array padded merged byte stream
+		 */
+		protected function getByteStream($items) {
+			$bstream = $this->getBitStream($items);
+			return $this->bitstreamToByte($bstream);
+		}
+
+		// - - - - - - - - - - - - - - - - - - - - - - - - -
+
+		// QRbitstream
+
+		/**
+		 * Return an array with zeros
+		 * @param int $setLength array size
+		 * @return array
+		 */
+		 protected function allocate($setLength) {
+			return array_fill(0, $setLength, 0);
+		}
+
+		/**
+		 * Return new bitstream from number
+		 * @param int $bits number of bits
+		 * @param int $num number
+		 * @return array bitstream
+		 */
+		 protected function newFromNum($bits, $num) {
+			$bstream = $this->allocate($bits);
+			$mask = 1 << ($bits - 1);
+			for ($i=0; $i<$bits; ++$i) {
+				if ($num & $mask) {
+					$bstream[$i] = 1;
+				} else {
+					$bstream[$i] = 0;
+				}
+				$mask = $mask >> 1;
+			}
+			return $bstream;
+		}
+
+		/**
+		 * Return new bitstream from bytes
+		 * @param int $size size
+		 * @param array $data bytes
+		 * @return array bitstream
+		 */
+		 protected function newFromBytes($size, $data) {
+			$bstream = $this->allocate($size * 8);
+			$p=0;
+			for ($i=0; $i<$size; ++$i) {
+				$mask = 0x80;
+				for ($j=0; $j<8; ++$j) {
+					if ($data[$i] & $mask) {
+						$bstream[$p] = 1;
+					} else {
+						$bstream[$p] = 0;
+					}
+					$p++;
+					$mask = $mask >> 1;
+				}
+			}
+			return $bstream;
+		}
+
+		/**
+		 * Append one bitstream to another
+		 * @param array $bitstream original bitstream
+		 * @param array $append bitstream to append
+		 * @return array bitstream
+		 */
+		 protected function appendBitstream($bitstream, $append) {
+			if ((!is_array($append)) OR (count($append) == 0)) {
+				return $bitstream;
+			}
+			if (count($bitstream) == 0) {
+				return $append;
+			}
+			return array_values(array_merge($bitstream, $append));
+		}
+
+		/**
+		 * Append one bitstream created from number to another
+		 * @param array $bitstream original bitstream
+		 * @param int $bits number of bits
+		 * @param int $num number
+		 * @return array bitstream
+		 */
+		 protected function appendNum($bitstream, $bits, $num) {
+			if ($bits == 0) {
+				return 0;
+			}
+			$b = $this->newFromNum($bits, $num);
+			return $this->appendBitstream($bitstream, $b);
+		}
+
+		/**
+		 * Append one bitstream created from bytes to another
+		 * @param array $bitstream original bitstream
+		 * @param int $size size
+		 * @param array $data bytes
+		 * @return array bitstream
+		 */
+		 protected function appendBytes($bitstream, $size, $data) {
+			if ($size == 0) {
+				return 0;
+			}
+			$b = $this->newFromBytes($size, $data);
+			return $this->appendBitstream($bitstream, $b);
+		}
+
+		/**
+		 * Convert bitstream to bytes
+		 * @param array $bitstream original bitstream
+		 * @return array of bytes
+		 */
+		 protected function bitstreamToByte($bstream) {
+			$size = count($bstream);
+			if ($size == 0) {
+				return array();
+			}
+			$data = array_fill(0, (int)(($size + 7) / 8), 0);
+			$bytes = (int)($size / 8);
+			$p = 0;
+			for ($i=0; $i<$bytes; $i++) {
+				$v = 0;
+				for ($j=0; $j<8; $j++) {
+					$v = $v << 1;
+					$v |= $bstream[$p];
+					$p++;
+				}
+				$data[$i] = $v;
+			}
+			if ($size & 7) {
+				$v = 0;
+				for ($j=0; $j<($size & 7); $j++) {
+					$v = $v << 1;
+					$v |= $bstream[$p];
+					$p++;
+				}
+				$data[$bytes] = $v;
+			}
+			return $data;
+		}
+
+		// - - - - - - - - - - - - - - - - - - - - - - - - -
+
+		// QRspec
+
+		/**
+		 * Replace a value on the array at the specified position
+		 * @param array $srctab
+		 * @param int $x X position
+		 * @param int $y Y position
+		 * @param string $repl value to replace
+		 * @param int $replLen length of the repl string
+		 * @return array srctab
+		 */
+		 protected function qrstrset($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));
+			return $srctab;
+		}
+
+		/**
+		 * Return maximum data code length (bytes) for the version.
+		 * @param int $version version
+		 * @param int $level error correction level
+		 * @return int maximum size (bytes)
+		 */
+		protected function getDataLength($version, $level) {
+			return $this->capacity[$version][QRCAP_WORDS] - $this->capacity[$version][QRCAP_EC][$level];
+		}
+
+		/**
+		 * Return maximum error correction code length (bytes) for the version.
+		 * @param int $version version
+		 * @param int $level error correction level
+		 * @return int ECC size (bytes)
+		 */
+		protected function getECCLength($version, $level){
+			return $this->capacity[$version][QRCAP_EC][$level];
+		}
+
+		/**
+		 * Return the width of the symbol for the version.
+		 * @param int $version version
+		 * @return int width
+		 */
+		protected function getWidth($version) {
+			return $this->capacity[$version][QRCAP_WIDTH];
+		}
+
+		/**
+		 * Return the numer of remainder bits.
+		 * @param int $version version
+		 * @return int number of remainder bits
+		 */
+		protected function getRemainder($version) {
+			return $this->capacity[$version][QRCAP_REMINDER];
+		}
+
+		/**
+		 * Return a version number that satisfies the input code length.
+		 * @param int $size input code length (byte)
+		 * @param int $level error correction level
+		 * @return int version number
+		 */
+		protected function getMinimumVersion($size, $level) {
+			for ($i=1; $i <= QRSPEC_VERSION_MAX; ++$i) {
+				$words  = $this->capacity[$i][QRCAP_WORDS] - $this->capacity[$i][QRCAP_EC][$level];
+				if ($words >= $size) {
+					return $i;
+				}
+			}
+			return -1;
+		}
+
+		/**
+		 * Return the size of length indicator for the mode and version.
+		 * @param int $mode encoding mode
+		 * @param int $version version
+		 * @return int the size of the appropriate length indicator (bits).
+		 */
+		protected function lengthIndicator($mode, $version) {
+			if ($mode == QR_MODE_ST) {
+				return 0;
+			}
+			if ($version <= 9) {
+				$l = 0;
+			} elseif ($version <= 26) {
+				$l = 1;
+			} else {
+				$l = 2;
+			}
+			return $this->lengthTableBits[$mode][$l];
+		}
+
+		/**
+		 * Return the maximum length for the mode and version.
+		 * @param int $mode encoding mode
+		 * @param int $version version
+		 * @return int the maximum length (bytes)
+		 */
+		protected function maximumWords($mode, $version) {
+			if ($mode == QR_MODE_ST) {
+				return 3;
+			}
+			if ($version <= 9) {
+				$l = 0;
+			} else if ($version <= 26) {
+				$l = 1;
+			} else {
+				$l = 2;
+			}
+			$bits = $this->lengthTableBits[$mode][$l];
+			$words = (1 << $bits) - 1;
+			if ($mode == QR_MODE_KJ) {
+				$words *= 2; // the number of bytes is required
+			}
+			return $words;
+		}
+
+		/**
+		 * Return an array of ECC specification.
+		 * @param int $version version
+		 * @param int $level error correction level
+		 * @param array $spec an array of ECC specification contains as following: {# of type1 blocks, # of data code, # of ecc code, # of type2 blocks, # of data code}
+		 * @return array spec
+		 */
+		protected function getEccSpec($version, $level, $spec) {
+			if (count($spec) < 5) {
+				$spec = array(0, 0, 0, 0, 0);
+			}
+			$b1 = $this->eccTable[$version][$level][0];
+			$b2 = $this->eccTable[$version][$level][1];
+			$data = $this->getDataLength($version, $level);
+			$ecc = $this->getECCLength($version, $level);
+			if ($b2 == 0) {
+				$spec[0] = $b1;
+				$spec[1] = (int)($data / $b1);
+				$spec[2] = (int)($ecc / $b1);
+				$spec[3] = 0;
+				$spec[4] = 0;
+			} else {
+				$spec[0] = $b1;
+				$spec[1] = (int)($data / ($b1 + $b2));
+				$spec[2] = (int)($ecc  / ($b1 + $b2));
+				$spec[3] = $b2;
+				$spec[4] = $spec[1] + 1;
+			}
+			return $spec;
+		}
+
+		/**
+		 * Put an alignment marker.
+		 * @param array $frame frame
+		 * @param int $width width
+		 * @param int $ox X center coordinate of the pattern
+		 * @param int $oy Y center coordinate of the pattern
+		 * @return array frame
+		 */
+		protected function putAlignmentMarker($frame, $ox, $oy) {
+			$finder = array(
+				"\xa1\xa1\xa1\xa1\xa1",
+				"\xa1\xa0\xa0\xa0\xa1",
+				"\xa1\xa0\xa1\xa0\xa1",
+				"\xa1\xa0\xa0\xa0\xa1",
+				"\xa1\xa1\xa1\xa1\xa1"
+				);
+			$yStart = $oy - 2;
+			$xStart = $ox - 2;
+			for ($y=0; $y < 5; $y++) {
+				$frame = $this->qrstrset($frame, $xStart, $yStart+$y, $finder[$y]);
+			}
+			return $frame;
+		}
+
+		/**
+		 * Put an alignment pattern.
+		 * @param int $version version
+		 * @param array $fram frame
+		 * @param int $width width
+		 * @return array frame
+		 */
+		 protected function putAlignmentPattern($version, $frame, $width) {
+			if ($version < 2) {
+				return $frame;
+			}
+			$d = $this->alignmentPattern[$version][1] - $this->alignmentPattern[$version][0];
+			if ($d < 0) {
+				$w = 2;
+			} else {
+				$w = (int)(($width - $this->alignmentPattern[$version][0]) / $d + 2);
+			}
+			if ($w * $w - 3 == 1) {
+				$x = $this->alignmentPattern[$version][0];
+				$y = $this->alignmentPattern[$version][0];
+				$frame = $this->putAlignmentMarker($frame, $x, $y);
+				return $frame;
+			}
+			$cx = $this->alignmentPattern[$version][0];
+			$wo = $w - 1;
+			for ($x=1; $x < $wo; ++$x) {
+				$frame = $this->putAlignmentMarker($frame, 6, $cx);
+				$frame = $this->putAlignmentMarker($frame, $cx,  6);
+				$cx += $d;
+			}
+			$cy = $this->alignmentPattern[$version][0];
+			for ($y=0; $y < $wo; ++$y) {
+				$cx = $this->alignmentPattern[$version][0];
+				for ($x=0; $x < $wo; ++$x) {
+					$frame = $this->putAlignmentMarker($frame, $cx, $cy);
+					$cx += $d;
+				}
+				$cy += $d;
+			}
+			return $frame;
+		}
+
+		/**
+		 * Return BCH encoded version information pattern that is used for the symbol of version 7 or greater. Use lower 18 bits.
+		 * @param int $version version
+		 * @return BCH encoded version information pattern
+		 */
+		protected function getVersionPattern($version) {
+			if (($version < 7) OR ($version > QRSPEC_VERSION_MAX)) {
+				return 0;
+			}
+			return $this->versionPattern[($version - 7)];
+		}
+
+		/**
+		 * Return BCH encoded format information pattern.
+		 * @param array $mask
+		 * @param int $level error correction level
+		 * @return BCH encoded format information pattern
+		 */
+		protected function getFormatInfo($mask, $level) {
+			if (($mask < 0) OR ($mask > 7)) {
+				return 0;
+			}
+			if (($level < 0) OR ($level > 3)) {
+				return 0;
+			}
+			return $this->formatInfo[$level][$mask];
+		}
+
+		/**
+		 * Put a finder pattern.
+		 * @param array $frame frame
+		 * @param int $width width
+		 * @param int $ox X center coordinate of the pattern
+		 * @param int $oy Y center coordinate of the pattern
+		 * @return array frame
+		 */
+		protected function putFinderPattern($frame, $ox, $oy) {
+			$finder = array(
+			"\xc1\xc1\xc1\xc1\xc1\xc1\xc1",
+			"\xc1\xc0\xc0\xc0\xc0\xc0\xc1",
+			"\xc1\xc0\xc1\xc1\xc1\xc0\xc1",
+			"\xc1\xc0\xc1\xc1\xc1\xc0\xc1",
+			"\xc1\xc0\xc1\xc1\xc1\xc0\xc1",
+			"\xc1\xc0\xc0\xc0\xc0\xc0\xc1",
+			"\xc1\xc1\xc1\xc1\xc1\xc1\xc1"
+			);
+			for ($y=0; $y < 7; $y++) {
+				$frame = $this->qrstrset($frame, $ox, ($oy + $y), $finder[$y]);
+			}
+			return $frame;
+		}
+
+		/**
+		 * Return a copy of initialized frame.
+		 * @param int $version version
+		 * @return Array of unsigned char.
+		 */
+		protected function createFrame($version) {
+			$width = $this->capacity[$version][QRCAP_WIDTH];
+			$frameLine = str_repeat ("\0", $width);
+			$frame = array_fill(0, $width, $frameLine);
+			// Finder pattern
+			$frame = $this->putFinderPattern($frame, 0, 0);
+			$frame = $this->putFinderPattern($frame, $width - 7, 0);
+			$frame = $this->putFinderPattern($frame, 0, $width - 7);
+			// Separator
+			$yOffset = $width - 7;
+			for ($y=0; $y < 7; ++$y) {
+				$frame[$y][7] = "\xc0";
+				$frame[$y][$width - 8] = "\xc0";
+				$frame[$yOffset][7] = "\xc0";
+				++$yOffset;
+			}
+			$setPattern = str_repeat("\xc0", 8);
+			$frame = $this->qrstrset($frame, 0, 7, $setPattern);
+			$frame = $this->qrstrset($frame, $width-8, 7, $setPattern);
+			$frame = $this->qrstrset($frame, 0, $width - 8, $setPattern);
+			// Format info
+			$setPattern = str_repeat("\x84", 9);
+			$frame = $this->qrstrset($frame, 0, 8, $setPattern);
+			$frame = $this->qrstrset($frame, $width - 8, 8, $setPattern, 8);
+			$yOffset = $width - 8;
+			for ($y=0; $y < 8; ++$y,++$yOffset) {
+				$frame[$y][8] = "\x84";
+				$frame[$yOffset][8] = "\x84";
+			}
+			// Timing pattern
+			$wo = $width - 15;
+			for ($i=1; $i < $wo; ++$i) {
+				$frame[6][7+$i] = chr(0x90 | ($i & 1));
+				$frame[7+$i][6] = chr(0x90 | ($i & 1));
+			}
+			// Alignment pattern
+			$frame = $this->putAlignmentPattern($version, $frame, $width);
+			// Version information
+			if ($version >= 7) {
+				$vinf = $this->getVersionPattern($version);
+				$v = $vinf;
+				for ($x=0; $x<6; ++$x) {
+					for ($y=0; $y<3; ++$y) {
+						$frame[($width - 11)+$y][$x] = chr(0x88 | ($v & 1));
+						$v = $v >> 1;
+					}
+				}
+				$v = $vinf;
+				for ($y=0; $y<6; ++$y) {
+					for ($x=0; $x<3; ++$x) {
+						$frame[$y][$x+($width - 11)] = chr(0x88 | ($v & 1));
+						$v = $v >> 1;
+					}
+				}
+			}
+			// and a little bit...
+			$frame[$width - 8][8] = "\x81";
+			return $frame;
+		}
+
+		/**
+		 * Set new frame for the specified version.
+		 * @param int $version version
+		 * @return Array of unsigned char.
+		 */
+		protected function newFrame($version) {
+			if (($version < 1) OR ($version > QRSPEC_VERSION_MAX)) {
+				return NULL;
+			}
+			if (!isset($this->frames[$version])) {
+				$this->frames[$version] = $this->createFrame($version);
+			}
+			if (is_null($this->frames[$version])) {
+				return NULL;
+			}
+			return $this->frames[$version];
+		}
+
+		/**
+		 * Return block number 0
+		 * @param array $spec
+		 * @return int value
+		 */
+		 protected function rsBlockNum($spec) {
+			return ($spec[0] + $spec[3]);
+		}
+
+		/**
+		* Return block number 1
+		 * @param array $spec
+		 * @return int value
+		 */
+		 protected function rsBlockNum1($spec) {
+			return $spec[0];
+		}
+
+		/**
+		 * Return data codes 1
+		 * @param array $spec
+		 * @return int value
+		 */
+		 protected function rsDataCodes1($spec) {
+			return $spec[1];
+		}
+
+		/**
+		 * Return ecc codes 1
+		 * @param array $spec
+		 * @return int value
+		 */
+		 protected function rsEccCodes1($spec) {
+			return $spec[2];
+		}
+
+		/**
+		 * Return block number 2
+		 * @param array $spec
+		 * @return int value
+		 */
+		 protected function rsBlockNum2($spec) {
+			return $spec[3];
+		}
+
+		/**
+		 * Return data codes 2
+		 * @param array $spec
+		 * @return int value
+		 */
+		 protected function rsDataCodes2($spec) {
+			return $spec[4];
+		}
+
+		/**
+		 * Return ecc codes 2
+		 * @param array $spec
+		 * @return int value
+		 */
+		 protected function rsEccCodes2($spec) {
+			return $spec[2];
+		}
+
+		/**
+		 * Return data length
+		 * @param array $spec
+		 * @return int value
+		 */
+		 protected function rsDataLength($spec) {
+			return ($spec[0] * $spec[1]) + ($spec[3] * $spec[4]);
+		}
+
+		/**
+		 * Return ecc length
+		 * @param array $spec
+		 * @return int value
+		 */
+		 protected function rsEccLength($spec) {
+			return ($spec[0] + $spec[3]) * $spec[2];
+		}
+
+		// - - - - - - - - - - - - - - - - - - - - - - - - -
+
+		// QRrs
+
+		/**
+		 * Initialize a Reed-Solomon codec and add it to existing rsitems
+		 * @param int $symsize symbol size, bits
+		 * @param int $gfpoly  Field generator polynomial coefficients
+		 * @param int $fcr  first root of RS code generator polynomial, index form
+		 * @param int $prim  primitive element to generate polynomial roots
+		 * @param int $nroots RS code generator polynomial degree (number of roots)
+		 * @param int $pad  padding bytes at front of shortened block
+		 * @return array Array of RS values:<ul><li>mm = Bits per symbol;</li><li>nn = Symbols per block;</li><li>alpha_to = log lookup table array;</li><li>index_of = Antilog lookup table array;</li><li>genpoly = Generator polynomial array;</li><li>nroots = Number of generator;</li><li>roots = number of parity symbols;</li><li>fcr = First consecutive root, index form;</li><li>prim = Primitive element, index form;</li><li>iprim = prim-th root of 1, index form;</li><li>pad = Padding bytes in shortened block;</li><li>gfpoly</ul>.
+		 */
+		 protected function init_rs($symsize, $gfpoly, $fcr, $prim, $nroots, $pad) {
+			foreach ($this->rsitems as $rs) {
+				if (($rs['pad'] != $pad) OR ($rs['nroots'] != $nroots) OR ($rs['mm'] != $symsize)
+					OR ($rs['gfpoly'] != $gfpoly) OR ($rs['fcr'] != $fcr) OR ($rs['prim'] != $prim)) {
+					continue;
+				}
+				return $rs;
+			}
+			$rs = $this->init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad);
+			array_unshift($this->rsitems, $rs);
+			return $rs;
+		}
+
+		// - - - - - - - - - - - - - - - - - - - - - - - - -
+
+		// QRrsItem
+
+		/**
+		 * modnn
+		 * @param array RS values
+		 * @param int $x X position
+		 * @return int X osition
+		 */
+		 protected function modnn($rs, $x) {
+			while ($x >= $rs['nn']) {
+				$x -= $rs['nn'];
+				$x = ($x >> $rs['mm']) + ($x & $rs['nn']);
+			}
+			return $x;
+		}
+
+		/**
+		 * Initialize a Reed-Solomon codec and returns an array of values.
+		 * @param int $symsize symbol size, bits
+		 * @param int $gfpoly  Field generator polynomial coefficients
+		 * @param int $fcr  first root of RS code generator polynomial, index form
+		 * @param int $prim  primitive element to generate polynomial roots
+		 * @param int $nroots RS code generator polynomial degree (number of roots)
+		 * @param int $pad  padding bytes at front of shortened block
+		 * @return array Array of RS values:<ul><li>mm = Bits per symbol;</li><li>nn = Symbols per block;</li><li>alpha_to = log lookup table array;</li><li>index_of = Antilog lookup table array;</li><li>genpoly = Generator polynomial array;</li><li>nroots = Number of generator;</li><li>roots = number of parity symbols;</li><li>fcr = First consecutive root, index form;</li><li>prim = Primitive element, index form;</li><li>iprim = prim-th root of 1, index form;</li><li>pad = Padding bytes in shortened block;</li><li>gfpoly</ul>.
+		 */
+		protected function init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad) {
+			// Based on Reed solomon encoder by Phil Karn, KA9Q (GNU-LGPLv2)
+			$rs = null;
+			// Check parameter ranges
+			if (($symsize < 0) OR ($symsize > 8)) {
+				return $rs;
+			}
+			if (($fcr < 0) OR ($fcr >= (1<<$symsize))) {
+				return $rs;
+			}
+			if (($prim <= 0) OR ($prim >= (1<<$symsize))) {
+				return $rs;
+			}
+			if (($nroots < 0) OR ($nroots >= (1<<$symsize))) {
+				return $rs;
+			}
+			if (($pad < 0) OR ($pad >= ((1<<$symsize) -1 - $nroots))) {
+				return $rs;
+			}
+			$rs = array();
+			$rs['mm'] = $symsize;
+			$rs['nn'] = (1 << $symsize) - 1;
+			$rs['pad'] = $pad;
+			$rs['alpha_to'] = array_fill(0, ($rs['nn'] + 1), 0);
+			$rs['index_of'] = array_fill(0, ($rs['nn'] + 1), 0);
+			// PHP style macro replacement ;)
+			$NN =& $rs['nn'];
+			$A0 =& $NN;
+			// Generate Galois field lookup tables
+			$rs['index_of'][0] = $A0; // log(zero) = -inf
+			$rs['alpha_to'][$A0] = 0; // alpha**-inf = 0
+			$sr = 1;
+			for ($i=0; $i<$rs['nn']; ++$i) {
+				$rs['index_of'][$sr] = $i;
+				$rs['alpha_to'][$i] = $sr;
+				$sr <<= 1;
+				if ($sr & (1 << $symsize)) {
+					$sr ^= $gfpoly;
+				}
+				$sr &= $rs['nn'];
+			}
+			if ($sr != 1) {
+				// field generator polynomial is not primitive!
+				return NULL;
+			}
+			// Form RS code generator polynomial from its roots
+			$rs['genpoly'] = array_fill(0, ($nroots + 1), 0);
+			$rs['fcr'] = $fcr;
+			$rs['prim'] = $prim;
+			$rs['nroots'] = $nroots;
+			$rs['gfpoly'] = $gfpoly;
+			// Find prim-th root of 1, used in decoding
+			for ($iprim=1; ($iprim % $prim) != 0; $iprim += $rs['nn']) {
+				; // intentional empty-body loop!
+			}
+			$rs['iprim'] = (int)($iprim / $prim);
+			$rs['genpoly'][0] = 1;
+
+
+			for ($i = 0,$root=$fcr*$prim; $i < $nroots; $i++, $root += $prim) {
+				$rs['genpoly'][$i+1] = 1;
+				// Multiply rs->genpoly[] by  @**(root + x)
+				for ($j = $i; $j > 0; --$j) {
+					if ($rs['genpoly'][$j] != 0) {
+						$rs['genpoly'][$j] = $rs['genpoly'][$j-1] ^ $rs['alpha_to'][$this->modnn($rs, $rs['index_of'][$rs['genpoly'][$j]] + $root)];
+					} else {
+						$rs['genpoly'][$j] = $rs['genpoly'][$j-1];
+					}
+				}
+				// rs->genpoly[0] can never be zero
+				$rs['genpoly'][0] = $rs['alpha_to'][$this->modnn($rs, $rs['index_of'][$rs['genpoly'][0]] + $root)];
+			}
+			// convert rs->genpoly[] to index form for quicker encoding
+			for ($i = 0; $i <= $nroots; ++$i) {
+				$rs['genpoly'][$i] = $rs['index_of'][$rs['genpoly'][$i]];
+			}
+			return $rs;
+		}
+
+		/**
+		 * Encode a Reed-Solomon codec and returns the parity array
+		 * @param array $rs RS values
+		 * @param array $data data
+		 * @param array $parity parity
+		 * @return parity array
+		 */
+		 protected function encode_rs_char($rs, $data, $parity) {
+			$MM       =& $rs['mm']; // bits per symbol
+			$NN       =& $rs['nn']; // the total number of symbols in a RS block
+			$ALPHA_TO =& $rs['alpha_to']; // the address of an array of NN elements to convert Galois field elements in index (log) form to polynomial form
+			$INDEX_OF =& $rs['index_of']; // the address of an array of NN elements to convert Galois field elements in polynomial form to index (log) form
+			$GENPOLY  =& $rs['genpoly']; // an array of NROOTS+1 elements containing the generator polynomial in index form
+			$NROOTS   =& $rs['nroots']; // the number of roots in the RS code generator polynomial, which is the same as the number of parity symbols in a block
+			$FCR      =& $rs['fcr']; // first consecutive root, index form
+			$PRIM     =& $rs['prim']; // primitive element, index form
+			$IPRIM    =& $rs['iprim']; // prim-th root of 1, index form
+			$PAD      =& $rs['pad']; // the number of pad symbols in a block
+			$A0       =& $NN;
+			$parity = array_fill(0, $NROOTS, 0);
+			for ($i=0; $i < ($NN - $NROOTS - $PAD); $i++) {
+				$feedback = $INDEX_OF[$data[$i] ^ $parity[0]];
+				if ($feedback != $A0) {
+					// feedback term is non-zero
+					// This line is unnecessary when GENPOLY[NROOTS] is unity, as it must
+					// always be for the polynomials constructed by init_rs()
+					$feedback = $this->modnn($rs, $NN - $GENPOLY[$NROOTS] + $feedback);
+					for ($j=1; $j < $NROOTS; ++$j) {
+					$parity[$j] ^= $ALPHA_TO[$this->modnn($rs, $feedback + $GENPOLY[($NROOTS - $j)])];
+					}
+				}
+				// Shift
+				array_shift($parity);
+				if ($feedback != $A0) {
+					array_push($parity, $ALPHA_TO[$this->modnn($rs, $feedback + $GENPOLY[0])]);
+				} else {
+					array_push($parity, 0);
+				}
+			}
+			return $parity;
+		}
+
+	} // end QRcode class
+
+} // END OF "class_exists QRcode"
+?>
Index: /lib/phpqrcode/cache/frame_1.dat
===================================================================
--- /lib/phpqrcode/cache/frame_1.dat	(revision 6232)
+++ /lib/phpqrcode/cache/frame_1.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚÁ
+À E9³u`³"PÅCÛçT
+!0$
+EÉ²QÉmœúhÛŸ9{kI" 9Ln)Ap
+€åÖŸË>ß^Õz³mënÅ;üŽmßnúŠË
Index: /lib/phpqrcode/cache/frame_16.dat
===================================================================
--- /lib/phpqrcode/cache/frame_16.dat	(revision 6232)
+++ /lib/phpqrcode/cache/frame_16.dat	(revision 6232)
@@ -0,0 +1,8 @@
+xÚíA 
+E]sëIXŽ;žÜn6È`qêêW6ñå¥`%A/3!¢°¢!gÈÌ¡1N)
+éE¢Ï|;®>6âžÞ97$ëÄôëc]kköwé1Öü[·m­CÍcÊRºÄê¹>ŠèµŸE,hÅp#
+áxF
+yWÏÇVWGçòÕ3ŒÕ+ÑþàËúSâ}Ä#
+áG8b^c^cÏÀpc&3YQ"ñ÷çÌvµù
+ñàÎþþŒ¹kÞ9Ü÷}¹³ï×ú	¢Ä¿
+QäÿL/ÝÔÀÏ
Index: /lib/phpqrcode/cache/frame_18.dat
===================================================================
--- /lib/phpqrcode/cache/frame_18.dat	(revision 6232)
+++ /lib/phpqrcode/cache/frame_18.dat	(revision 6232)
@@ -0,0 +1,10 @@
+xÚíA
+0E]çÖ
+,2;sä&ÉÍh¥
+ÛêO¡ôÝÈàã1&09OIv@DDÒ
+Ì&§ÙKXÈÕFv<Ádqò9Ö<%h¹
+Yïs
+!(d¥²ës;~||b(ÏøYÅ¯g#µ`K ±SŒÅô¹Ä¶ùs
+àidßLg:ÓÎtþ/gmªkÅ
+Mâ3³{­4rTÈQýÿe¥·s·>ó<ÓÎtŠ3éÌ;ïHŒ#ÑÎtŠ3ÍY+og©hù¶óµÙœ¬lnðûF>Øi^»#awm;gè~pÛgìNs{6z»ã
+ºïÞäpŸÊ'
Index: /lib/phpqrcode/cache/frame_19.dat
===================================================================
--- /lib/phpqrcode/cache/frame_19.dat	(revision 6232)
+++ /lib/phpqrcode/cache/frame_19.dat	(revision 6232)
@@ -0,0 +1,10 @@
+xÚíA
+Ä 
+E»öÖ.ÌNo 7Ñ¶iiRÚN2áW%ðxÁ@ÚÚê'­
+u6×ê.*S;}«ÒÃ ÏT
+úèÌzrt¹ï%ç,ÒÅÚâÎ}ç;âç)¹âÝZÚîLåè¹÷¬Pçç$¯×÷
+ÏqËgLÂôdJ;ÜáwžÃý.]z#Ÿ«[ÍœïOg­Æô"ÐË	áBíîŠ}Ç};ÜáwžÃ
+î#1Gb;ÜáwžÃý_ÝC+w¢@Dfî
+÷ïçuø2ÅÚÉNþû9R7|pWßkïû®¿ßßkºö¿ºú
+»Œ
+ÎÓ
Index: /lib/phpqrcode/cache/frame_2.dat
===================================================================
--- /lib/phpqrcode/cache/frame_2.dat	(revision 6232)
+++ /lib/phpqrcode/cache/frame_2.dat	(revision 6232)
@@ -0,0 +1,4 @@
+xÚÍÍ
+À F{vë&
+ à&°Y+?Z1öÐS'y!¢ÌÁa815&£ÛŽÙHå£Ùc³l«ÏFÆè1º#é6
+fÊÖü©§6ÄøO7šCŠ«ðÖÏ8gI®ÏöfBŠÃÄÿæ\DÔ»(
Index: /lib/phpqrcode/cache/frame_21.dat
===================================================================
--- /lib/phpqrcode/cache/frame_21.dat	(revision 6232)
+++ /lib/phpqrcode/cache/frame_21.dat	(revision 6232)
@@ -0,0 +1,10 @@
+xÚíA 
+E]sëIXŽ;¹Ün6UpÐ²ÿ]Ùþ<
+i-eWö¶)×äÅŒÉÂ
+H\jvqÙHL\6ÝÐ
+rI¢LÜ¹ÜÕ%ÅÓ@Žþ±VvÆÂúý€(ÏP4|ÎXnÒg
+ÉßŒ~]DŸÉÕ×u1Us	S\À°,ÿÅ2Þ¢N§Ã?DKºüF-:eJ]p_À°,a0Ã`ÁÝ
+XÀ°`Á
+w,`
+XŽ]¹°5
+®Y4{å±æñ2íûåvçJs±Ûí9±í)õu±Û¹êÏØ,«]žÙ^_§7$_Í
Index: /lib/phpqrcode/cache/frame_22.dat
===================================================================
--- /lib/phpqrcode/cache/frame_22.dat	(revision 6232)
+++ /lib/phpqrcode/cache/frame_22.dat	(revision 6232)
@@ -0,0 +1,7 @@
+xÚíA
+0
+E]{ë.]{{{³©Z¥BepÆÞwe@VERZ3»Á"*2o4Šy)i#dÒbdFÒ
+ŽI"ú4œW­IíuÓ45ßx«.Z­SÙ{Á¯8åËÿk=
+{o.±qÊÙ£[Í:åžq»õy
+)t#áN8ádCj-OOG}Œ:/:sz!Å)^<ùeœ·S·uâ{Â	'pÂ	'ú=ú=ú=Ÿ'pÂ	'p¢ß£ß£ßãN8áÓÿ9©ªôpQQõ]HÔpzŸØG^æœQºI|Ÿß³u;9ÎïÕëd;Xïœ$ËÙÑÉt
+¶ÊÛédy
Index: /lib/phpqrcode/cache/frame_23.dat
===================================================================
--- /lib/phpqrcode/cache/frame_23.dat	(revision 6232)
+++ /lib/phpqrcode/cache/frame_23.dat	(revision 6232)
@@ -0,0 +1,11 @@
+xÚíA
+Ã E³öÖfo 7ÑU)	%M!ÎÂûYu(<
+ðsK²TÓ
+É&§IÚ\i+¥Ðª(m®ŽFQ¡¹¯h±æöüèv~n1oÏ]sëçÖï€_ÞÊ3`î_w2õÈ¹lc[Œ;·ÛcÖË€Nóª4ÜpÃ
+7ÜpÃí
+mTÿžÝêrÞiñä_ç¿pS=7Þ7ÜpÃ
+7ÜpÃ>I€Oò-Á
+7ÜpÃ
+7ú$}>É·7ÜpÃ
+·tssÓrs
+§åVÍÎÜÆ÷mýï¡Ò¹òÞñ}R~7ôà&Ÿ÷º?7ùÞýÔŠIïbhâ{æ»<ÀMi-
Index: /lib/phpqrcode/cache/frame_24.dat
===================================================================
--- /lib/phpqrcode/cache/frame_24.dat	(revision 6232)
+++ /lib/phpqrcode/cache/frame_24.dat	(revision 6232)
@@ -0,0 +1,9 @@
+xÚíA E»öÖMX0;žÜnVP4ÚHSS»xßU3±/OŽý
+LiJ4±Vâ
+JC%ý6VR&ÃÞDBHjDùJÏ??¯êBl­cÇ±ñœ§'óU­ëXïUïÞ0æÃywÍÄ¯÷j¬éë³3ÅŸëcjù£{š¥œ:G
+qÄG
+ÿÝñøûÚ°Nv;¹¶ç¬J
+ÄÐ<ûÉ]êëÈó#8â#8âH'§ÓÉùÍÁG
+qÄG
+éätr:9Ï#8â#8âØh­¯NÔtŽÖ_ÝØ>t¹eëìS­¯Šæù^\g¯õÎQe?ùv
+uöÌoïÕ;ï>ì*ïwlò×mÑ
Index: /lib/phpqrcode/cache/frame_25.dat
===================================================================
--- /lib/phpqrcode/cache/frame_25.dat	(revision 6232)
+++ /lib/phpqrcode/cache/frame_25.dat	(revision 6232)
@@ -0,0 +1,9 @@
+xÚíÛA
+Ã 
+á¬së]rxœY51mMÈBG
+ÿž*Sx|Ua5ÆµZ-,1ä²HÑPÒRjX5§®i©áG©>W¥RïöÕ/Ëâ+uTå»¯å
+ÏÓ¯åŽªuæÏ¥Ú[Sía£[kví÷5+5n§ÁŽJêÜ%+V¬X±bÅõß¬u'Á±þÔû SRýå÷tzZ»ì+÷+V¬X±bÅÙÙÙû+V¬X±bÅÊìÏìÏìÏ}Å+V¬X±ö±ª€¥ÖVI©¢ÖÖ+k«qÿ[úËt
+·oVZÍþvoNV³w
+Ç}µ{³r<ÃœR­Þ"RÍÞ]
+ê
+W«r}
Index: /lib/phpqrcode/cache/frame_26.dat
===================================================================
--- /lib/phpqrcode/cache/frame_26.dat	(revision 6232)
+++ /lib/phpqrcode/cache/frame_26.dat	(revision 6232)
@@ -0,0 +1,11 @@
+xÚíA
+Ã E³öÖ
+,t§77ÑU		E)i
+7ï»*~
+cÃüÅÄXÖEBÆè°FC³6¡:&çL,å¬Mv.ÂÎæKgÕžãYMç>Îí>ûmÛ·?ªvô¹Ÿmg?ßÒ±Îþ³æÎ·
+ªdCµ¹UŠÏIkÚÚE\ÕÙMsfafa>[sÓ9ì¬©Þ¬8bö<kÕÙ7}çk³§õÿ3Ì0Ã
+3Ì0Ã
+3Ìä*r¹\Å7
+fafafr¹\Å7
+fafaYÆÙÎ
+æd49kíÆÌÔÝyûX	ygØÙ)«dwnÌ¢ûU×>Ëî]ßöLgÉÝÁ³èŸäEo w1
Index: /lib/phpqrcode/cache/frame_29.dat
===================================================================
--- /lib/phpqrcode/cache/frame_29.dat	(revision 6232)
+++ /lib/phpqrcode/cache/frame_29.dat	(revision 6232)
@@ -0,0 +1,9 @@
+xÚíÜA 
+a×Þº	Ü@n7+*¶ÖÚ4!Í?®Jðò	³æ®«]ªÉSâTf)ÙsIÂ"
+ÈbÝ0
+|"LuÙžî,×EÇ1\6®*ÏuQÞ?Œ>aÌÏ
+ãþñÄRõ-r­÷n.ïê¯\®T¿ü
+:Ó*)|)°À
+,°À
+,þÑâêóåéx_ã¬}:^RUoÉ¢uÁ~ÁÞX`XÐÐÐÐ°_`X`XÐÐÐ°_`X`XÐÐÐÐ°wbX`¿¥PUõö)DÔÞ"cÈ{zçÎõ3êé<}žó¡^?b÷mÿÎÂìíº°»óaûŽÂê.]
+³{Q6uáT,9
Index: /lib/phpqrcode/cache/frame_3.dat
===================================================================
--- /lib/phpqrcode/cache/frame_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/frame_3.dat	(revision 6232)
@@ -0,0 +1,3 @@
+xÚíÁ
+À E{vë&
+ à&°Y+¢b€öÐk'yù€¿ÌÁa :äÀTXlÞ¶$W+Óvû®î¢9}gRæ¬@H0YPBœÆÃEmÚÚ?ûÍ±ísÖ"bµìt2cnÖéÉ:œïº­ë;¿Y§ÃzÿQã«7¿Ô
Index: /lib/phpqrcode/cache/frame_31.dat
===================================================================
--- /lib/phpqrcode/cache/frame_31.dat	(revision 6232)
+++ /lib/phpqrcode/cache/frame_31.dat	(revision 6232)
@@ -0,0 +1,7 @@
+xÚíÜA 
+a×Þº	
+ØÉ
+à&r³ ÁŽžªÎ4ù§«ŽyùÄ·!¥mV3Iµv­!ÒÖ2¢i\NSSä4EF2+65Å¥eŸþÃ/Ws]ñŸ!Á?ÿpÅõûŠ=S~ùüÄ?Ëý+þxŠÖ6r6yö³ÙÆ¹}ÇŽë×eR1-Wl°Ál°ÁûÒÞXz/>Væ«·ù§:Ã±ÒÒÄA8üý-+mTíÎÎbl°Ál°ÁlètMº&]³l°Ál°Áº&]®I×äŒÁl°Ál°Áº&]®Éy
+6Ø`
+6Ø`ÍÝi¬uyŽØXWòè±Éi¬²\týz>.îzŸkÊß
+t²¿7©ß7òwJõÏ¶4ÒwÒßÓÖÍ85
Index: /lib/phpqrcode/cache/frame_32.dat
===================================================================
--- /lib/phpqrcode/cache/frame_32.dat	(revision 6232)
+++ /lib/phpqrcode/cache/frame_32.dat	(revision 6232)
@@ -0,0 +1,7 @@
+xÚíÜÁ
+ 
+áÖŸõë.ß ßDßl¬,
+ŠMzÿ6Ã	gcJËD;ô
+'.®AIqÞÄI,Ir¢Yš»ËFk%DþOæy|EDªD×û(LÓ
+_YÊ>*ß?aÊO¿k±L_£<[cñ¶ï>ÊcËõu
+ÔLIäÕ%Â#0Â#0Â#ÞotÑ¢õµ}ÅÜ4Ífv_)ÂE¢pú¬h5R·88³1Â#0Â#0¢ÓÒiéŽtZÎ#0Â#0Â#0¢ÓÒiéŽtZÎ#0Â#0Â#0¢ÓÒiéŽtZÎl0Â#0Â£÷9q"¢ÉHÜHQþµï"ÛÕL5}-ÝÜY×ŸÓêžkì`€â>¶zéž³®þÖ4&Òp÷á!û!«ù`¿:5
Index: /lib/phpqrcode/cache/frame_33.dat
===================================================================
--- /lib/phpqrcode/cache/frame_33.dat	(revision 6232)
+++ /lib/phpqrcode/cache/frame_33.dat	(revision 6232)
@@ -0,0 +1,23 @@
+xÚíÜA 
+a×ÞºÜ@n7+*L++Óæ®óòÌbbÜ*LCï°c
+kH¥rj²J5Yíi~0_«òû×TÊTõ}åe©>ýö5b_åwÐÍ?¿€ßìæ§ÖÜù\ý­R
+aÆi+7õßW©Š\ãþw
+LUNåLŠÂ
++¬°Â
++¬°Âêÿ­jßÒO·kcëÞñô
+ç\Ë©|%o<ák­Lî+Î+Îv¬°Â
++¬°Â
++¬°Â>}ú
+ô8¯°Â
++¬°Â
++¬°Â
++ú
+ôè3ÐgàŒÂ
++¬°Â
++¬°Â
++¬è3Ðg Ï@ó
++¬°Â
++¬°Â
++¬°:RšªX³ÚB9«IÔ=çkÞ±o/SwçØÙ¯Ï`g¶áÅÊÌ
+Èr_ÙYŸVSYÅzIefnmQoz
+>á
Index: /lib/phpqrcode/cache/frame_38.dat
===================================================================
--- /lib/phpqrcode/cache/frame_38.dat	(revision 6232)
+++ /lib/phpqrcode/cache/frame_38.dat	(revision 6232)
@@ -0,0 +1,9 @@
+xÚíÝAª0ÐÝuÁA2«;ÐèÎkü(ügŸÀy
+tp9Äï$Ëò¹DòŒ\ºe^'tÒ-aIºFMSkÂðIóÅ€Ó:7®€|LúkNã8N7®öi}ö×i,[W¿g®ÓŽÌ
+°ë?3ô1÷iŸN·}}=ÂOM:4)SŠL2eÊ)SŠL#$œÿ
+ôÂJã­þÂJM:}ý]ÖLÙ§ÎSÿQL2eÊ)SŠL2Õ¡èPt(:
+ó)SŠL2eÊ)SŠ:
+E¢Cq2eÊ)SŠL2eÊ©E¢CÑ¡8O2eÊ)SŠL2eÊT¢CÑ¡èP§L2eÊ)SŠL2ÝŠsJCIKÖÔiÍ93ônº_Ñò
+ÿŸ¿üŒ+Rû®£ièû£û4ö\Çg¿¥€ï;%
+}ßaÞn
+£
Index: /lib/phpqrcode/cache/frame_4.dat
===================================================================
--- /lib/phpqrcode/cache/frame_4.dat	(revision 6232)
+++ /lib/phpqrcode/cache/frame_4.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíÁ
+À E=»uÐ
+pØ¬QØCOM'ÃË$ ³@àšØ3eF©\FNXRyÉØŸC{a8­Ræ
+Åa2@ñåqküßÉH1ê(
+£Å`cçŠj³~Ë0ö¥¿ÃÜšÖËÃØ¹nXÿGåÿÄ
Index: /lib/phpqrcode/cache/frame_40.dat
===================================================================
--- /lib/phpqrcode/cache/frame_40.dat	(revision 6232)
+++ /lib/phpqrcode/cache/frame_40.dat	(revision 6232)
@@ -0,0 +1,10 @@
+xÚíÝA@Ð¬œõîÞ@o¢7`Qfeºä«PA>ŠÀÚô<?jjo5WNizyºWýóŽ&]ß
+C?IrþWâñ^;ï8·
+ãýs<Ã°ûöS{Å9^gEß}>ã°<]ßÕÐëß³bZ«nã¥^AöQ}[÷9^ª]«yþìnajMÜKÌ1cÆ3fÌ1ãžÆ{ßW5}çœ{ÍÑ7lMßÒïÞxÜI<
+ŒáKœšÆáÎ±yl
+3fÌ1cÆ3fÌ1ã«Û»Ù»={·Î±yl
+3fÌ1cÆ3fÌ1ã«Û»Ù»={·Î±yl
+3fÌ1cÆ3fÌ1ã«Û»Ù»={·Î±yl
+3fÌ1cÆ3fÌ1ã«Û»Ù»={·Î±yl
+3fÌ1cÆ3fÌñ÷çSÊÓ7¥HÆKÞŒg\çŸâuõßÏ_ÿªr'4Ü[çÞ-Æ]
+qûL·ç8Æ±ÛY1q»Ä!îÞÔ/(%û
Index: /lib/phpqrcode/cache/frame_5.dat
===================================================================
--- /lib/phpqrcode/cache/frame_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/frame_5.dat	(revision 6232)
@@ -0,0 +1,3 @@
+xÚí1À Eœu 7ÐÀÍZµ
+|NüD
+B0@R$l,->VKZ[<ýØÚzîqÆšØYJ&iåZyË:Y'ë¯YµÁVÿ&eRÄ"§sj©Ýrþö+Ëéù.·MÆ»Ó9ÓòzµsÉ,
Index: /lib/phpqrcode/cache/mask_0/mask_109_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_109_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_109_0.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚíÚ=
+0
+Ðœ§iï9'Åb$ ŸtË
+ýáÚû^#iª¥Ëi?³ÅôÛbúK[AUØFåŸÆµÄ³x]m]2-ÄK~
+ÏVw}¶XûÆÆÆÆÆÆÆ&O²ÉÞ666666yR'œ%lllll/Žåhl
+Ãîm	¹€êádël¶Ž3Ù+ïÛmÍ«
Index: /lib/phpqrcode/cache/mask_0/mask_113_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_113_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_113_0.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚíÚ;
+
+0Ð>«Iö¿9+Eñsá=Ï€L1
+Ì[€÷¹FáZU4
+
+?i<ÿç;7çòç;ÆP¥#ýW-[ñÝ¯6÷µddddddüc",;í"ŒskæQ&Éerw######£L.¯Êäæ±ÐyŒ1^Ë²\òîÆØ3Æâ³ÚÓóøÏÆ	Ñv
Index: /lib/phpqrcode/cache/mask_0/mask_117_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_117_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_117_0.dat	(revision 6232)
@@ -0,0 +1,4 @@
+xÚíÚA
+0
+Ð}OÓÞÿr³R,#3öñ¥Ë,âÃþ¢œo5CµØÐq:õõÖ;;¬wvN­ÁJZGÅ=m»û}Úö
+Ñ±¬¬¬¬¬¬¬¬µŠ2âÞiRïïkÆj_YYYYYYYYeÙ_ö·¯¬¬¬¬¬¬¬¬²¿ì/ûÛWVVVVVVÖkîáýd-úÏº,#ŠßÀOÖÎZc]|{ÅŸŸÁú­$
Index: /lib/phpqrcode/cache/mask_0/mask_121_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_121_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_121_0.dat	(revision 6232)
@@ -0,0 +1,3 @@
+xÚíÛ1 ÐÓÀý/·w
+YMüSø Ä8>2SÐûÖF O­EÓÈÌÓc«W\
+ûÛŒ{c§æpKGÕB·Ðþímûxhfffffffæ/s2ÛÇÚ2W|*÷d®1ÛÏÌÌÌÌÌÌÌÌÌê*5³ºÊÆÌÌÌÌÌÌÌÌ¬®RW©«aÌÌÌÌÌÌÌÌsöòËÁ\xm~8ß®žr0wæjsdm÷ªýü&óâyÙ
Index: /lib/phpqrcode/cache/mask_0/mask_125_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_125_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_125_0.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚíÛA
+ Ðœ§Ñû_®TH`3AOL4ü
+kí£ÍÃ(áÍÛewöGWÖ
+Ù××.í	#ÃÞ2¿û¡}	\ëçYú»€Žgggggggggg_d>Ïïµòj^ÕØsíö;;;;;;;;;;»
+'ÇÉqö;;;;;;;;;»
+'Ë°ËqþuììììììììµÇ_PìÍçöÏóYwÄ{eÿ=dÍ×ÌýþGû/ýž
Index: /lib/phpqrcode/cache/mask_0/mask_129_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_129_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_129_0.dat	(revision 6232)
@@ -0,0 +1,11 @@
+xÚíÛ1
+Å ÀÞÓèý/*DøEØ'ÉhgõtÙ-ì}_£pV·	\"Ìb=sþÁÌåó[ÐJô=8DhÅoàºÛ'
+0XÐ ÑüÎÛŽ©è¬e 
+0`À
+ôÊ
+Ì
+j"
+0`ÀÀŒ Wf`^P0`Àæœ2óÈ
+ŒÒ óÉôd07(ì<OÁåo¡§ëÁ
+6
+ÎSÞ
Index: /lib/phpqrcode/cache/mask_0/mask_133_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_133_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_133_0.dat	(revision 6232)
@@ -0,0 +1,13 @@
+xÚíÛ1
+0
+Ðœ§Iï9§¢ÚTyí)<4äh§NŸSÒš·]°èZ­?¶[¿µH<u
+ïâÐFIø7®·ŽRÛ`Á
+,X°ø±EÖÞ¹×ËŽ]»Wg±Š
+yÁ
+,X°`!ØÁYÈ#æ
+,X°`Á
+<"È#æ
+,X°`Á
+<bg!,X°`ÁWyÉO
+4Ñ·žwf¿á>Y/XLÿGb
+yÁ"êpT
Index: /lib/phpqrcode/cache/mask_0/mask_137_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_137_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_137_0.dat	(revision 6232)
@@ -0,0 +1,2 @@
+xÚíÜ1 ÐÓÀý/·+FÉZ?®JÉ
+Læ7Ôº¬ØÝ*ÑBÚa%L~Ë»òäÉØéÊCðJŽYîIWJ	œý.K]ñR0aÂ	$çïINTwÎlLa¢è±L0aÂ	&Ld@PÔO0aÂ	&L0e@P?aÂ	&L0aÂDe@ý	&L0aÂäÏM²IlL&)dlígøÃacR<É$övê,ýÉº?U2ç]
Index: /lib/phpqrcode/cache/mask_0/mask_141_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_141_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_141_0.dat	(revision 6232)
@@ -0,0 +1,11 @@
+xÚíÜ=
+0
+Ðœ§iï9'EÑúÖDxÍ%<lð[Zë|ZP­N	Š
+NÃæMÌ7;·múfovm
+6-Ów³§Þ¥}y¶ã°aÃ
+6lØ°ný_ŒtÊeÒivØüËÆŸ±Ù°aÃ
+6lØÈòYÓ.fÃ
+6lØ°a#kÊSldMû
+6lØ°aÃ
+YSÖ5í6lØ°aÃ
+6mâÙØ$æÜ& 3dyãecSÙüÙ&ìNÕLûÍŸ&ëîº<
Index: /lib/phpqrcode/cache/mask_0/mask_145_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_145_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_145_0.dat	(revision 6232)
@@ -0,0 +1,3 @@
+xÚíÜ;
+
+0Ð>«Iö¿9+EñÇ{õ$åm^&µ§uŒ³S"µÍDþ6Ú]9ùÉè8ìUM£bÔÒŸ£Y€Òù[ß2æÄ#F1bÄ£Ï%ôµiRNæœÑ³ì#;#F1bÄN«¯1Òií#F1bÄ#FtZ}Nk1bÄ#F1b€ÓêktZ;#F1bÄèõFV-Âuè"IoD-*£7uû×jÚ>bŽMV+
Index: /lib/phpqrcode/cache/mask_0/mask_149_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_149_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_149_0.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíÜA
+ Ðœ§Ñû_®MEQXPà§.Ý|
+94³°ÖeµÁ{³JLšvÕ#«^Ü÷Ïn[õ
+ß?;µ
+ZIV-ñ»ÚÄ*wïžË1*+V¬X±bÅ«ßX¥ü·¯g¥ÛwèqX}ÇJœRÛY±bÅ+V¬X±beÎ wfeÎ ^±bÅ+V¬X±bÅÊAïÌÊAœbÅ+V¬X±bÅ9ÞÙÁAœbÅ+V¬X±bÅÕló0ÞÎ*0Tßj`?öÝÎª²ú¢Õð;Xë«ë=zZr*
Index: /lib/phpqrcode/cache/mask_0/mask_153_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_153_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_153_0.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíÜ1 
+ÐÓÀý/ç€h¢&FŸú`ìÒŒ@I;PëŒZÀ^­XÛÍÙmfÏÆ.=Û5
+[if-õ­R+!wr»Ëg\jÌ1cÆ3fÌ1cfÔo.±2¬?1ûzæ
+`Æ3fÌ1cÆ¹
+¹zÆ3fÌ1cÆ3fæztfæê3fÌ1cÆ3fÌkk03×ð0cÆ3fÌ1cö³¬Ï9;³ÐÄÍö`vfÙÌßÍZÏß¶W9
Index: /lib/phpqrcode/cache/mask_0/mask_157_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_157_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_157_0.dat	(revision 6232)
@@ -0,0 +1,13 @@
+xÚíÜA
+ Ðœ§Ñû_®QRù©§»Y
+
+ùkí«
+ìÍ*qÍµÓîØ=j7§~ÙnNýÔ.p%Úµäs·i¯ÝÕã.œ×ÈöØ±cÇ
+;vìØ±{Ù.-W¬õ2={êìŸmgÞy+Ø±cÇ
+;vìØÉ³2;yÖŒcÇ
+;vìØ±cÇNÉØÉ³æ
+;vìØ±cÇ
+;v2<ËNõV°cÇ
+;vìØ±ge2vò¬yÇ
+;vìØ±cÇîŠ]ÞÂ;»àæÆv¹"õÞ]e÷'»;[ç
+»û{Ÿ|Aµ
Index: /lib/phpqrcode/cache/mask_0/mask_165_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_165_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_165_0.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚíÝ;
+0À>§Iî9+ÅàDyÁIÊ4Ë ÷5Ö:¯¶W«ÄÙv«dù¢åqñßÜŽ<þæd×2x%[¶ËU%ðÝÞî2×
+]&K,Y²dÉ%Ë¡,S¿Õr2ydÌ=,ÿk©_º{X²dÉ%K,Y²d)Û0³mè,Y²dÉ%K,Y²d)Û0³mè,Y²dÉ%K,Y²mÇe,eú%K,Y²dÉ%K,eæq²
+ýÒÝÃ%K,Y²dÉå
+eî
+:Ë<³!Óÿ¡ÐYV,ßñ:B¿dù|Oš$*#
Index: /lib/phpqrcode/cache/mask_0/mask_169_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_169_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_169_0.dat	(revision 6232)
@@ -0,0 +1,7 @@
+xÚíÝ1
+0À>¯Iþÿ9EQÑ=€Ls
+æä¶IïË{³Zt¡ãŽRŠþ}òÀôïSÓðn:ª|§R[è?î¶Ô
+_*SŠL2eÊ)SŠL&ÏŠëI
+ê¯O2ÕOý£2eÊ)SŠL2e*C1ïËPÊPôSŠL2eÊ)SŠLÊPÌû2Š2ý)SŠL2eÊ)SŠLe(æ}Š2ý)SŠL2eÊ)SŠLe(æ}Š2ý)SŠL2eÊ)SŠ³iöc7;Ó"
+ÞFÍŠÞÙvŠL
+Üý^¥2}oOäß'r
Index: /lib/phpqrcode/cache/mask_0/mask_173_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_173_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_173_0.dat	(revision 6232)
@@ -0,0 +1,1 @@
+xÚíÝ10ÀÞ¯±ÿÿ¹T  ¥¬[4véæ2ØÆœokÝÕÊ;ŠÓ²]fûôÖýdûäœölj°lGÒÿö0n+ß»m³GË-[¶lÙ²eû"Ûêï·ûY»}o¯öíÀíÕVÞÊ[¶lÙ²eË-[¶lÙ²e«ÓÕ°ÕÉ[Ï2¶lÙ²eË-[¶lÙ²e«ÓÕ°ÕÉ[Ï2¶lÙ²eË-[¶lÙ²e«ÓÕ°ÕÉ[¶lÙ²eË-[¶lÙ²eËVŠ«a«·lÙ²eË-[¶lÙ²ef[ÿB°mÐ°÷¶Eû;¶N¶-ÛTž/r·lÿ¿?ØÔ*Ñ
Index: /lib/phpqrcode/cache/mask_0/mask_177_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_177_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_177_0.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚíÝ1
+
+0Ð>§Iî9+?²ØèßiÖ
+dÌ¹¯ÕxÖxÝNÌø/ÆÕ§|{öØž²ÿöìÖ8d¥¯Žÿø0òh×=öùcFfÌ1cÆ3fÌqŒqÂ=ïw6Ê;l·»4cÆ±<Ç3fÌ1cÆ3fÌXïŠÒ»1Ö»ÉcÆ3fÌ1cÆ3fÌXïŠb¬wÇ3fÌ1cÆ3fÌ±ÞM'ÄXï&å1cÆ3fÌ1cÆ3Ö»éônõnò1cÆ3fÌ1cÆÃ3
+U<
+\7í+Þ(<OÆ·ÎÇßÛÕä4@
Index: /lib/phpqrcode/cache/mask_0/mask_49_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_49_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_49_0.dat	(revision 6232)
@@ -0,0 +1,3 @@
+xÚíÕKÀ EÑ9«ýo®#?H/6g$Ï-ª­,X]	
+xÝ;Àð·
+XÔ°ì9º<ÜÑº€åq€2 Af÷îHð7ø/5We{Ô#ØáìfÞšÁÐ?à®4û=N >Çæ
Index: /lib/phpqrcode/cache/mask_0/mask_53_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_53_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_53_0.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíÖK
+@!Ð¹«Ñýo®QÑÏº:(m&Ü¯s-¹¬®É6õÑZ{¥m4Y²Xâù®.FÀÙ­ê
+ŠXZi·Ðùj=:Î­Öbå¿VH
+8
+#€[ù²ŸãYÐ²çŸ^XÔ÷e
Index: /lib/phpqrcode/cache/mask_0/mask_57_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_57_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_57_0.dat	(revision 6232)
@@ -0,0 +1,9 @@
+xÚíÖA
+À 
+À{^üÿs=YLÕ
+(
+ouš j)
+¬ª
+Z7yÙëÍñv,ÔŽìwVQ	i»€ìGiÒ€¹ÅDfÂÛÉÄwo4ùÑ€¹ÐÄ
+oÎLÿÌéLÈŒÁ©·Á³Õì}î4
+hå
Index: /lib/phpqrcode/cache/mask_0/mask_69_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_69_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_69_0.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚí×KÀ Ð=§û_®+­mÏBìàd|Q"s+1®®È
+"¯),ß=EÛàa	TÄ"çÒÅãnæE-3
+,°ÀKYw
+Ý=ZZïT
+Þ.,°ÀK1ÿ#<XBtËâ<þa
+ÿÇbº#Îx/;X.®Ô
Index: /lib/phpqrcode/cache/mask_0/mask_73_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_73_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_73_0.dat	(revision 6232)
@@ -0,0 +1,3 @@
+xÚíØ1À 
+áÓÀý/×ÉFSM(ŽÆ7/JTmeÓ€lŽÉ×s|œ©)YYUÝS%Á7{
+i¹é(L0moÊì§»'¯÷ãªwÇ	{=ÎcÂô)÷2ÖŠÀ~ªøÃLz)üvZ5O2]=ó?
Index: /lib/phpqrcode/cache/mask_0/mask_77_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_77_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_77_0.dat	(revision 6232)
@@ -0,0 +1,7 @@
+xÚíØA 
+DÑ}OÓÞÿr®0  ÎBÃ/;bHp/­*KE7íG¶þã/_l}ïxMP
+[(ç­³ÄZÞlI
+6lØ¶ŽeÏ·³×
+OûìÝÍÆ^À
+6î,î,ö6lØ&lù³Æ&
+ÛÏ^ÕWcó}m©5uåÿöEÛ;âe
Index: /lib/phpqrcode/cache/mask_0/mask_81_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_81_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_81_0.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚíØ1 
+
+áœ§iï9'Bß ñáñE€Mpo#
+³&	aâÙ6ãõ)cæ~Úèb
+1Ôß±Žâß§µ|Y$F1Nõq_·Ž.¯Ôð¿¹31bÄ~M¿æÎ`Äc
+o{B£807úòôdt³võÿøfãßØÜþ
Index: /lib/phpqrcode/cache/mask_0/mask_85_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_85_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_85_0.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíØ1
+À 
+
+á=§Iî¹NEZ_À·
+¯m E÷Vqyº2Yh,S[Ïú­gý¥UXJkdŒ×.Öß~>Ö!Å+V¬å¬ªœõöí÷.Ýõ±2¯X±bÅÿ¬Ì+V¬X±²ê.ökBèÞz±·ÔwðÕ±ŠÌgÌkë¡YZý
Index: /lib/phpqrcode/cache/mask_0/mask_89_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_89_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_89_0.dat	(revision 6232)
@@ -0,0 +1,7 @@
+xÚíÙ1 
+
+áœ§iï9'Ñ×ýËHl?Là^"ë&M
+?bî
+qÃÜ?ËžäÉ,µ9²þó!µz¢]VêÈScÆ3æ_÷àŸcÓé!
+î`nÍô3fÌ1cÆÌ	3fÌ1/fÖ>.Uæ€ÄcóË»;ã
+š2;æYÒÕÏ+7Þý
Index: /lib/phpqrcode/cache/mask_0/mask_93_0.dat
===================================================================
--- /lib/phpqrcode/cache/mask_0/mask_93_0.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_0/mask_93_0.dat	(revision 6232)
@@ -0,0 +1,8 @@
+xÚíÙK
+À 
+EÑyV÷¿¹,ÚO¬mÞ rãPH0 {Ž°ôäå2ûböšìýÞc{tŠQá]
+{QÞ{Þ{åŒ¬Ö€Ç
+;vìØ_Ú³ßÕ}ÏÂ÷ýËL}l§ß±cÇ
+;vìÌÌÌØ±cÇ
+û¢öüÐÎ.L
+ÛæÕegwì3öŽqe¿ÿÑŸ@i
Index: /lib/phpqrcode/cache/mask_1/mask_101_1.dat
===================================================================
--- /lib/phpqrcode/cache/mask_1/mask_101_1.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_1/mask_101_1.dat	(revision 6232)
@@ -0,0 +1,7 @@
+xÚíÖ1
+À 
+Ðœ§÷¿\Q÷ªEóþ¢d		1¢ŠÌNô<±#œËÕ¯Õ-7uþ.ÃÓl²ÔŠeiXXXXXRZVíÊVeIo1û,,,,,v%?Ùgaaaa±÷YÌ
+
+
+
+K&K=/··+ÛåË±ó²ÖòŒÞã
Index: /lib/phpqrcode/cache/mask_1/mask_105_1.dat
===================================================================
--- /lib/phpqrcode/cache/mask_1/mask_105_1.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_1/mask_105_1.dat	(revision 6232)
@@ -0,0 +1,4 @@
+xÚíÖ1 
+ÐÝÓû_Î¥b÷
+KóB¬?"Ó*#WÌÊtéÍùíügÓJîéqUM9ž©ÔTùêçLLvŸÇ€ïÙLLLLLLzŸgG01111òyiå
+Ñß4mð=Õn§¥+2
Index: /lib/phpqrcode/cache/mask_1/mask_109_1.dat
===================================================================
--- /lib/phpqrcode/cache/mask_1/mask_109_1.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_1/mask_109_1.dat	(revision 6232)
@@ -0,0 +1,4 @@
+xÚíÖ±
+À 
+À>ÓýK°À}Æ:!£èiY'*3§]fÛsþÛÉÓÒîm¹ºb[ÞJÂÆÆÆÆÆÆ¶ÅÝKÆ9}ccccccÓ'u.6ûÆÆÆÆÆÆÆŠs±éÞ6666¶R[ÿ^gû{/lÇØÙ·Û
+Þ7Í
Index: /lib/phpqrcode/cache/mask_1/mask_113_1.dat
===================================================================
--- /lib/phpqrcode/cache/mask_1/mask_113_1.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_1/mask_113_1.dat	(revision 6232)
@@ -0,0 +1,3 @@
+xÚíÖ1 ÀÞ×
+ÿÿ
+-8fL(pBlDMè9";ýÄ-÷ò÷;?1îpâÐ{Œ\åÆú%-3:@Ûad4ú*£NîÍaddddddÔÉÍ#######ã#c]75®ÓåÚã¢Æåæ1ÏxYuñ
Index: /lib/phpqrcode/cache/mask_1/mask_117_1.dat
===================================================================
--- /lib/phpqrcode/cache/mask_1/mask_117_1.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_1/mask_117_1.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚíÖ»
+À 
+À>ÓýKø$ø^
+8Y
+QSV'z8þjzëÌÊ¬^]Þ×¡µ¬õekXYYYYYYYjÝµ#¶
++«yeeeeeeeeµ#²²WVVVVVVVV;"+«yeeeeeeel­'ëe;b»±&²^9¯{­/ÊJ$p
Index: /lib/phpqrcode/cache/mask_1/mask_121_1.dat
===================================================================
--- /lib/phpqrcode/cache/mask_1/mask_121_1.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_1/mask_121_1.dat	(revision 6232)
@@ -0,0 +1,3 @@
+xÚí×1
+À 
+Ðœ§÷¿\ ¥C¡PbÑEÁÁ<DñGdµQGÌª±3óèð©û×k?3ïžsÉ9_z¢9iåÅÌÌÌÌÌÌÌ|3WþÃú3³ûÌÌÌÌÌÌÌÌÌ,WÉÌr7YÆ`«ŒaÌÌÌÌÌÌÌÌsd^ü¿ÝgÌÛ¿Ïõæ4Øð
Index: /lib/phpqrcode/cache/mask_1/mask_125_1.dat
===================================================================
--- /lib/phpqrcode/cache/mask_1/mask_125_1.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_1/mask_125_1.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚí×1
+À 
+Ðœ§÷¿\ 
+:òþÒ>$DdÆ©ÄÊY»³ÿtëÚ
+öÎ»»÷ÏÕÛó0£$ììììììììììì§ûù¹ÆÎ®ÞÙÙÙÙÙÙÙÙÙÙõóììêÝ
+ga7ÇyëØÙÙÙÙÙÙÙ¯³çœY??ÿØÙ{Õ{ýŸD
Index: /lib/phpqrcode/cache/mask_1/mask_133_1.dat
===================================================================
--- /lib/phpqrcode/cache/mask_1/mask_133_1.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_1/mask_133_1.dat	(revision 6232)
@@ -0,0 +1,11 @@
+xÚí×1 
+ÐÝÓû_Î
+ºh«Œ¿hÒ|"zÚÛ-*dNÁâÔâÙóÂŠHŒ«QÄ¢ÕRÃ
+,X°`ñc¬Þ9ÎY°(na_°`Á
+,Xè,XØ,X°`Á
+Þ#:8
+ï»
+,X°`ÁBïdÁÂŸ`Á
+,X|Ï¢Y\X¬Ö;Ç
+7-Ý¹;
+`
Index: /lib/phpqrcode/cache/mask_1/mask_137_1.dat
===================================================================
--- /lib/phpqrcode/cache/mask_1/mask_137_1.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_1/mask_137_1.dat	(revision 6232)
@@ -0,0 +1,4 @@
+xÚí×1
+0
+ÐÝÓ€÷¿Kh]D¥Ÿ,-t	ò#²ÚQ[T©Ñ	Ks§7_è€È?9|B&ÙX^L0aÂÉÂ&3÷þÂÉMÌ&L0aÂ	&2 ŒÃD4c0aÂ	&LÈòÐeÂ	&L0ab·wÈf,&L0aÂÉ7&y2¹a²ònßoL<01O
+ìŸç 
Index: /lib/phpqrcode/cache/mask_1/mask_141_1.dat
===================================================================
--- /lib/phpqrcode/cache/mask_1/mask_141_1.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_1/mask_141_1.dat	(revision 6232)
@@ -0,0 +1,9 @@
+xÚí×1
+À À>¯9ÿÿ¹4¢6)3×$`s
+²žuÊ®>WdŸ
+)g³'°±MÂ{3\d6u¹bØ°aÃ
+6lØŒn³û]ÜNØ°9ÄFÞ°aÃ
+6lØ°a£3°a#oØ°aÃ
+6lØ°ÑØ°Ñ5e16lØ°aÃ
+]Sb£kÊ6lØ°aÃ
+mêÍ€Íß;CûcÃfŒIdsG¹ÿ
Index: /lib/phpqrcode/cache/mask_1/mask_145_1.dat
===================================================================
--- /lib/phpqrcode/cache/mask_1/mask_145_1.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_1/mask_145_1.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíÜ!0@Ïk®ÿÿ
+Š¡
+4a)³qæ2i.YCUO{35²UZÆFn]ÏfN>bd£ðwtzJF}ÁF1bÄ#FýÆ(¡¯
+F6r1bÄ#F1ÒE1ÒiÝlF1bÄ#FtFÜ#F1bÄ#FtZ}#÷#F1bÄÑl£þeôÀHÉùG£µÜ£@£
+Ùî
Index: /lib/phpqrcode/cache/mask_1/mask_149_1.dat
===================================================================
--- /lib/phpqrcode/cache/mask_1/mask_149_1.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_1/mask_149_1.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚíØ1 
+ÐÝÓû_Î
+qÁHÞ_
+Xòcèi«#GdÌÕÕá÷g
+¬LUè^Ý®VR«>dKV¬X±bÅ+VÛXeùo¿ÎX±ÚÌJ_±bÅ+V¬X±bÅÊ;Ý+}Å+V¬X±bÅ+VöAV¬ôngÅ+V¬X±bÅ}+ï
+ú+V¬X±bÅ«VýËjÒÊ>øhewfõŸ*`uTqí
Index: /lib/phpqrcode/cache/mask_1/mask_153_1.dat
===================================================================
--- /lib/phpqrcode/cache/mask_1/mask_153_1.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_1/mask_153_1.dat	(revision 6232)
@@ -0,0 +1,3 @@
+xÚíØ1
+0ÀÞ×\þÿ9Ãbt³Ec'ªÎHHÍ
+9³efßmff²MïÙíªõ #.Ì1cÆ3fÌ1cfÔ7¯3fÌÙgÌ1cÆ3fÌ1cŠo2cæ]Ã?3fÌ1cÆ3fÞ5ôMfÌì3fÌ1cÆ3fÌ1Ó7utfÌì3fÌ1cÆ3fÌ=ÌúËl¡ŸùjŠ£3ûÕÌ>ÛÈì€ÐVü
Index: /lib/phpqrcode/cache/mask_1/mask_157_1.dat
===================================================================
--- /lib/phpqrcode/cache/mask_1/mask_157_1.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_1/mask_157_1.dat	(revision 6232)
@@ -0,0 +1,13 @@
+xÚí×1
+À À>¯9ÿÿ¹4SŠd/Ì5Õ1ÈÊVÍ)SkJµ
+»­vßÜ7Ž³ÝÞÝíé
+ÛÍeGä°cÇ
+;vìØ±c÷²]Z¯žîÙ±c'ïØ±cÇ
+;vìØ±Ó+Ø±Ógå
+;vìØ±cÇ
+;}V¯`ÇNÞù+Ø±cÇ
+;vìØé:;vò
+;vìØ±cÇ
+;œ
+;}VÞ±cÇ
+;vìØµ±'»ÍvzÅ#;]Œklw¯oA`
Index: /lib/phpqrcode/cache/mask_1/mask_161_1.dat
===================================================================
--- /lib/phpqrcode/cache/mask_1/mask_161_1.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_1/mask_161_1.dat	(revision 6232)
@@ -0,0 +1,16 @@
+xÚíØ10ÐÝÓÐû_Î
+XÓšÅ¡
+yi~
+¬Q©bÖÕkvÈp±á³ê7'M
+užÙ=Œ]ÅÙð([
+2dÈáÏ
++þÛ\'
+2
+2dÈ!C
+2Žs0/3d(œ)
+2dÈ!C
+24ë1dhç 2dÈ!C
+2dhÖcÈ¡<dÈ!C
+2dÈ¡y!CyèMaÈ!C
+2dØÞ0¿
+õ^4[E2
Index: /lib/phpqrcode/cache/mask_1/mask_165_1.dat
===================================================================
--- /lib/phpqrcode/cache/mask_1/mask_165_1.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_1/mask_165_1.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚíØ1 
+ÐÝÓû_Î¥LK^æ
+#²FµYWtšÙ%ËïÂÿ4¶ÔåÁ÷r¹M,³éQºX²dÉ%K,Y¶²¬ú¯þ°dÉÒŒdÉ%K,Y²dÉ%K%K»
+ó%K,Y²dÉ%Kv2$KvÞ
+,Y²dÉ%K,YÊò8Kæ¥·%K,Y²dÉ%K2$K,ÍK,Y²dÉ%K,ÛZæåVKò£¥<Î²¥yy€å
+ó)Î
Index: /lib/phpqrcode/cache/mask_1/mask_169_1.dat
===================================================================
--- /lib/phpqrcode/cache/mask_1/mask_169_1.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_1/mask_169_1.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíØ1À Ðœ§Áû_®
+ÑîM,ØÇâàB^
+æ5*V¬º¢K­Nn2ýúŠ¹©NòNOµi6>ÊSŠL2eÊ)SŠL2­Mç
+SŠLÍSŠL2eÊ)SŠL2Må}ŠLÍSSŠL2eÊ)SŠLeSy)SóÔÅ)SŠL2eÊ)S;Ù)S;ó)SŠL2eÊ)SŠv(²)SŠv(æ)SŠL2eÊ)SŠíLódºÍT6}a*ï3mlj
+mzC'
Index: /lib/phpqrcode/cache/mask_1/mask_173_1.dat
===================================================================
--- /lib/phpqrcode/cache/mask_1/mask_173_1.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_1/mask_173_1.dat	(revision 6232)
@@ -0,0 +1,4 @@
+xÚíØ1 
+ÐÝÓû_Î¥''Ó@y]
+Xò1?"g¬:1çfnË¶ÌöË»ö¬­mŒ·¯«»m.?¶¶lÙ²eË-ÛF¶«ÿß>glÙ²·Þ2¶lÙ²eË-[¶lÙ²e«O`Ë­ŒeË-[¶lÙ²eË-[¶lõ	lÙ²·lÙ²eË-[¶lÙ²eËVŠO`Ë­ŒeË-[¶lÙ²eË-[¶z0}[¶z0yË-[¶lÙ²eË-[¶E¶ùe[h«OøÍVWÃ¶
+­Œ=Ìötÿ*|
Index: /lib/phpqrcode/cache/mask_1/mask_177_1.dat
===================================================================
--- /lib/phpqrcode/cache/mask_1/mask_177_1.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_1/mask_177_1.dat	(revision 6232)
@@ -0,0 +1,4 @@
+xÚíØ1 ÀÞ×
+ÿÿÍEš¬p0×XÐà,a#rÚÊ}®š6}Ç§¿Ùÿ»¶±
+~£\Ð8 Æ3fÌ1cÆ7®ðÎ{Ö3f,Ýy3fÌ1cÆ3fÌX_¡¯`ÌXï&3fÌ1cÆ3fÌ±ÞM_Á1cyÌ1cÆ3fÌ1cÆë+3f,Ýy3fÌ1cÆ3fÌX_¡bÌXï&3fÌ1cÆ3fÌxãü2d¬¯øÔX'Äx[cy|šñ
+ž3ë
Index: /lib/phpqrcode/cache/mask_1/mask_61_1.dat
===================================================================
--- /lib/phpqrcode/cache/mask_1/mask_61_1.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_1/mask_61_1.dat	(revision 6232)
@@ -0,0 +1,3 @@
+xÚ30CbpPºÝØÅi`÷@ê&ÚßH^§ÐnšadQ»Gí
+µ{Ôn<vZ®ÁÅGí
+Mk£vÚ=j7¶¶â ³Öå9mäán7â<»ª³Âh
Index: /lib/phpqrcode/cache/mask_1/mask_85_1.dat
===================================================================
--- /lib/phpqrcode/cache/mask_1/mask_85_1.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_1/mask_85_1.dat	(revision 6232)
@@ -0,0 +1,3 @@
+xÚíÙ1
+À 
+Ðœ§÷¿\©]4ðþAA	hÄÌØM¬\Qµjsë·úAk§U·ûújmun2RÃÊÊÊÊÚÎ5·:k;«»ÅÊÊÊÊjÆ²º[¬¬¬¬eoÅí­[oð¬ÿ[ÇÎk®õšðZä
Index: /lib/phpqrcode/cache/mask_1/mask_89_1.dat
===================================================================
--- /lib/phpqrcode/cache/mask_1/mask_89_1.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_1/mask_89_1.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚíÙ1 
+ÐÝÓû_Î
+N
+h}%À@ iDOËH
+±*cä"æûµ<öØgþâÈ)û<mõBsš¥ùæÌwðja.avýü7ÝAffffæ¥µ2æ·ŸÝÙ5 æ
+uØ­ç9ß|²Þä
Index: /lib/phpqrcode/cache/mask_1/mask_93_1.dat
===================================================================
--- /lib/phpqrcode/cache/mask_1/mask_93_1.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_1/mask_93_1.dat	(revision 6232)
@@ -0,0 +1,2 @@
+xÚíÙ;
+À À>§Ñû_.Ä4Iìâyí¢ž`)-5*¥ç(é£of[Ósm}åÑÃöý¶õÉö6YM	;;;;;ûG{ô»zÕØ·µ»«ìììììììz1vw}=úwuûìýLÆ%û?û"ç=Ç~ei
Index: /lib/phpqrcode/cache/mask_1/mask_97_1.dat
===================================================================
--- /lib/phpqrcode/cache/mask_1/mask_97_1.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_1/mask_97_1.dat	(revision 6232)
@@ -0,0 +1,3 @@
+xÚíÙ1
+À0Ðœ§1÷¿\ÐtncKÌû«<Dèi3#Gdgt(lxVûÉP¡ÃÔ9ÜFñ¡7lia``````ØÞq/]5­
+vÁœÄàne``````xùÛ-mXá^Êú±3Ì5,Žy-ù#
Index: /lib/phpqrcode/cache/mask_2/mask_101_2.dat
===================================================================
--- /lib/phpqrcode/cache/mask_2/mask_101_2.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_2/mask_101_2.dat	(revision 6232)
@@ -0,0 +1,9 @@
+xÚíÚ1
+À 
+Ðœ§÷¿Câ Ux!
+?1ªe÷« ä)çásÊ*ŒKÛ®LfòB¡P(ÝJÖ®€Üšx/
+
+Ba(2
+
+B¡P(2
+E¡P(Ê²R÷Så(%qWR®SŒÿiY
Index: /lib/phpqrcode/cache/mask_2/mask_105_2.dat
===================================================================
--- /lib/phpqrcode/cache/mask_2/mask_105_2.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_2/mask_105_2.dat	(revision 6232)
@@ -0,0 +1,3 @@
+xÚíÚ!À @ß×
+ÿÿ\M«iØp4sÁ 6¬ êYs®"€7þÛù&)=ñ;
+ÒÜð"H$Ò¥µ¯;é|IH$DÒ÷t#}OH$DÒ÷HúäH$©·þ­ÕIZß#HgKòÔJºt$
Index: /lib/phpqrcode/cache/mask_2/mask_109_2.dat
===================================================================
--- /lib/phpqrcode/cache/mask_2/mask_109_2.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_2/mask_109_2.dat	(revision 6232)
@@ -0,0 +1,2 @@
+xÚíÚ1
+À0Ðœ§1÷¿\@¶NÖ<qÀ#ð#v­ßúÔŽ-e~_«š¿­[Ú÷«äŠÑh46JKÓFjöF£Ñh4ÌE'i4F£É4yF£ÑhŽŸZÁEcS-;Ð&jö­©ö³Æñ
Index: /lib/phpqrcode/cache/mask_2/mask_113_2.dat
===================================================================
--- /lib/phpqrcode/cache/mask_2/mask_113_2.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_2/mask_113_2.dat	(revision 6232)
@@ -0,0 +1,1 @@
+xÚíÚ10ÐÝÓÐû_ÎÅ¡Ðª0óÚäD\5*{ª#œbòH'o+vUÓÇR1PÐD"H$ïøÑ>D"H$ÊäDH$D"Q&WerûH$D"ñ±ç*x[±(Ë?/ÚÇ÷'nd
Index: /lib/phpqrcode/cache/mask_2/mask_117_2.dat
===================================================================
--- /lib/phpqrcode/cache/mask_2/mask_117_2.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_2/mask_117_2.dat	(revision 6232)
@@ -0,0 +1,4 @@
+xÚíÚ1
+À À>¯9ÿÿ¹4!m dOs\§0X,laÕ5#¿÷
+EªŸ>Z[íÖ·ÉêãœÄR©T*J¥R?Q-º«*¯T*J¥R©º?U÷W*J¥R©TÝªûË+J¥R©Ô€Úùó~m5Õ©;ªòúSõ&
++
Index: /lib/phpqrcode/cache/mask_2/mask_125_2.dat
===================================================================
--- /lib/phpqrcode/cache/mask_2/mask_125_2.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_2/mask_125_2.dat	(revision 6232)
@@ -0,0 +1,4 @@
+xÚíÛ!À 
+P¿Óû_@
+U(Ûkp@^Mú£Ú®5ÕôªúËîòâ-ú:ðöVF_Ì\t:N§Óétú÷õŒyN×qt:N§Óétº
+Gãô;N§Óét:.ËÐå8:N§ÓétzA}ÿµôÔyN×q¿Ñ;+n&
Index: /lib/phpqrcode/cache/mask_2/mask_129_2.dat
===================================================================
--- /lib/phpqrcode/cache/mask_2/mask_129_2.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_2/mask_129_2.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíÛ1
+À0Ðœ§Ñû_®KÈVÚ¡š'.Éôþ!«²¶w]A0XðÄú÷~ «ÚÞ 	ö!à£ fK# xFyÀ4È
+vey@^°+È
+ç
+º~ šÛ	L#ÁêveI
Index: /lib/phpqrcode/cache/mask_2/mask_133_2.dat
===================================================================
--- /lib/phpqrcode/cache/mask_2/mask_133_2.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_2/mask_133_2.dat	(revision 6232)
@@ -0,0 +1,13 @@
+xÚíÛ1
+À 
+Ðœ§÷¿à&Ž`¢ô
+LâðüÁQ-œg=Aqbëú¹Êª<vbœ+©)((((((((ÊIën*
+<b§G(((((((((ä
+yÄ{AAAAAAAA!Á)ä
+
+
+
+
+
+
+¢ð'ùe¬¹âœÂMý©¢fv{
Index: /lib/phpqrcode/cache/mask_2/mask_137_2.dat
===================================================================
--- /lib/phpqrcode/cache/mask_2/mask_137_2.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_2/mask_137_2.dat	(revision 6232)
@@ -0,0 +1,4 @@
+xÚíÜ1
+À 
+Ðœ§÷¿\NI,/d+Ê£`ð/F|5*zª'H.,xëO[KKª«øõMBBBBBBÒT|?!!98Å$$$$$$$$$$2 
+hÈ$2 yBBBBBBBBBB"eÈæ								É$µ¯IÜ%É¿ÛHb©_xêÛë
Index: /lib/phpqrcode/cache/mask_2/mask_141_2.dat
===================================================================
--- /lib/phpqrcode/cache/mask_2/mask_141_2.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_2/mask_141_2.dat	(revision 6232)
@@ -0,0 +1,14 @@
+xÚíÜ=
+À 
+Ðœ§÷¿t*-?±ŒM
+á[hUöõ]WÐüB¯ç;ÎÔdšwSj>÷­l
+	fÆÓÐÐÐÐÐÐÐÐÐÈ44²&
+
+
+
+
+
+
+
+
+¬)OÑÈÞYFÖ4á444444444c4~9S³:3ÐÐ×pÇ®>®
Index: /lib/phpqrcode/cache/mask_2/mask_145_2.dat
===================================================================
--- /lib/phpqrcode/cache/mask_2/mask_145_2.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_2/mask_145_2.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚíÜ1
+À 
+Ðœ§ùÞÿr]
+Ý,tQ^È&ÊCð§ÆÒ~ë
+Ñ¢Éj~mÉŸ¢.ÕåFgÑüìMDDDDDDDDDDDÔST×êDŠHŠdZïL+¯ÉŽDDDDDDDDDDD2-é'"""""""":BÔä×ªœEåYšDdúŸû
+
Index: /lib/phpqrcode/cache/mask_2/mask_149_2.dat
===================================================================
--- /lib/phpqrcode/cache/mask_2/mask_149_2.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_2/mask_149_2.dat	(revision 6232)
@@ -0,0 +1,4 @@
+xÚíÜ;@ÀÞÓÀý/gcaGÖBX
+Bç'-ŒÂ«²»ouÕ§UQœdõRVOm¡TÎ*Ç«Ê;;jšªå»ªEe2PQQQQQQQQQQQÉššä
+TTTTTTTTTTTTr»3ÁŒ¢¢¢¢¢¢¢¢¢¢¢3ØR©ä
+&ÕßTsþ·»ªk€¢z_e2P=ê ïd
Index: /lib/phpqrcode/cache/mask_2/mask_153_2.dat
===================================================================
--- /lib/phpqrcode/cache/mask_2/mask_153_2.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_2/mask_153_2.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíÜ1
+0
+ÐÝÓ€÷¿8ZP!¿úB¶ÒòèèZuÔÈè³¶"ûìbuºñöÈÒ*îÎÆ²é)]MFFFFFFFFFFFFö¬%= #ddddddddddddr
+ot2¹yFFFFFFFFFFFF&× #kÉ5ÈÈL
+2222222222²(YÚïµœ7ÉÈ"dŠÙóÞ@H
Index: /lib/phpqrcode/cache/mask_2/mask_157_2.dat
===================================================================
--- /lib/phpqrcode/cache/mask_2/mask_157_2.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_2/mask_157_2.dat	(revision 6232)
@@ -0,0 +1,14 @@
+xÚíÜ1
+0À>¯¹üÿs6M¹ÎqUH1€XØ&UçÌœfÝ/u-çûé'ñíæ.ºû[ÍKGGGGGGGGGG÷H×|NGš(ttttttttttú¬NF§ÏÊ;::::::::::}N¥££££££££££Ózèè$
+
+
+
+
+
+
+
+
+
+>«Ñé³
+n­
+üAø#ºî^AG§(t¯ì =3{
Index: /lib/phpqrcode/cache/mask_2/mask_165_2.dat
===================================================================
--- /lib/phpqrcode/cache/mask_2/mask_165_2.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_2/mask_165_2.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚíÝ1
+0
+ÐÝÓ€÷¿
+è ?òBÆV
+ü¥UGŒµ%åùÐêþžåÙ×*+ú_fÊËs	MIIIIIIIIIù2d;£€lš4()))))))))))eöqJÙIDIIIIIIIIIII)Û €mPRRRRRRRRRRRÊ6lº²
+JJJJJJJJJJJJÙ}R¶aQRRRRRRRRRRNeòK?RíÍ&åWœ3U
Index: /lib/phpqrcode/cache/mask_2/mask_173_2.dat
===================================================================
--- /lib/phpqrcode/cache/mask_2/mask_173_2.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_2/mask_173_2.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíÝ+@
+PÏiº÷¿
+ÚfÝtó:>y &d
+Uß¬ÔýÍSŽŽ[íþª»ùé¡Õ]5Z;aŒÛ5VÛŽŽŽŽŽŽŽŽŽŽAÚÀï[ZÚËŽVŠ«¡ÕI0ZZZZZZZZZZZZZZ=-­
+LÑÒÒÒÒÒÒÒÒÒÒÒÒÒêÁhiõ`VFK«·ŽŽŽŽŽŽŽŽŽŽŽŽÉÚü?Ý§ÍìhioÒJ0Úà}³¢o
Index: /lib/phpqrcode/cache/mask_2/mask_177_2.dat
===================================================================
--- /lib/phpqrcode/cache/mask_2/mask_177_2.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_2/mask_177_2.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚíÝ1
+À EÁ>§Yï¹4V$Í~
+±
+,C
+Œ&UóÞ÷;Ook5b÷ÑÏáâóG°x9¥Û%&&&&&&&&&&&n$îöõOL|Øv#&&&&&&&&&&&&&ÖÝbbÝXw#&ÖÝl7bbbbbbbbbbbbbbÝM"ÖÝl7bbbbbbbbbbbbbbÝMa!&ÖÝ3Ä)U<WÜ±W/¶Ý#î
+n Â
Index: /lib/phpqrcode/cache/mask_2/mask_41_2.dat
===================================================================
--- /lib/phpqrcode/cache/mask_2/mask_41_2.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_2/mask_41_2.dat	(revision 6232)
@@ -0,0 +1,3 @@
+xÚ30C
+ž
+¯JB&¶Ã¹ÐšÊQ£*ªJXi@lÉ0øUÂý> *F>
Index: /lib/phpqrcode/cache/mask_2/mask_77_2.dat
===================================================================
--- /lib/phpqrcode/cache/mask_2/mask_77_2.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_2/mask_77_2.dat	(revision 6232)
@@ -0,0 +1,1 @@
+xÚíØ1À Ðœ§Áû_®CMØ>òGót Ñ«eóš+×FWÄZEŒ­mÓ&gÞF£Ñ¶hùF+×t/F£ÙYvF£Žõ³ïµÜì¥Õjçô[*7òÕa¶
Index: /lib/phpqrcode/cache/mask_2/mask_81_2.dat
===================================================================
--- /lib/phpqrcode/cache/mask_2/mask_81_2.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_2/mask_81_2.dat	(revision 6232)
@@ -0,0 +1,2 @@
+xÚíØ1
+À0Ðœ§Ñû_®KÉÒ©Vi!O\"áAø«ò]¯:x»çÃbWµœ1ÅuÈŠ&Ä_µT Î6H$ÒU^Dâ~b×¯ëb=g³âûXî­ÛÙ
Index: /lib/phpqrcode/cache/mask_2/mask_85_2.dat
===================================================================
--- /lib/phpqrcode/cache/mask_2/mask_85_2.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_2/mask_85_2.dat	(revision 6232)
@@ -0,0 +1,2 @@
+xÚíØ1
+À0Ð=§1÷¿\B7¡ÖÖOþ$áA0$â¬ý8W­ Šê­þwjguÞu¿­æ§¡R©T*u÷SÖ§šæJ¥R©ÞTóJ¥R©ÿRöÕêÞ¢NšæµçVû
Index: /lib/phpqrcode/cache/mask_2/mask_89_2.dat
===================================================================
--- /lib/phpqrcode/cache/mask_2/mask_89_2.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_2/mask_89_2.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚíÙ±	À0
+À>ÓÈû/&E*câÇQqâëÃÅ
+ªzf$ò«ÈËrM
+ßåôß<Èsa#d2L&?ïArYÉd2LöG"ë3L&{ÊÙëRygw;Èú
+Ê
+ñÚI
Index: /lib/phpqrcode/cache/mask_2/mask_97_2.dat
===================================================================
--- /lib/phpqrcode/cache/mask_2/mask_97_2.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_2/mask_97_2.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíÙ1
+À0Ðœ§Ñû_®Ki·vH4
+<q	
+Â#®Ê©ýÔÂËôsÔ-TUÕ²Sž_YÔ@ k
+ŒDØI°@ äVÜJ a©PtÅÿ0ö¡C8%ó¬
Index: /lib/phpqrcode/cache/mask_3/mask_101_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_101_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_101_3.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíÚK 
+EÑyWSö¿9'D1ñŸªp	ã /9±ÐîuèÝ,ku9Ò€Œ$¶îû%Ý­wAL¹€b%ClA³zqÛŽåë¶b!ØÇÄ€wåXÜ4`Áõ¶_ö'FWr!bõ&Æt1Ä<FWr!býXéy®ä
+C
+1ÄÓý©²ÓÌ)E{WúÙ¯AÓ
+gL1]Œ-&øÆŒ§®æLqn
Index: /lib/phpqrcode/cache/mask_3/mask_105_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_105_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_105_3.dat	(revision 6232)
@@ -0,0 +1,8 @@
+xÚíÚ1 DÑ~O3Üÿr6Ð@(1ê'¬ûâÂJ}4Ï
+£Šgk 97ÐéA=­÷¯èi»÷p}wžõZJo¬ýûÜ8Ë¢ÏJB=ôÐCÏs=
+=÷;ôHê³zT.ç
+zè¡
+zô{ô{ô{T.ç
+zè¡
+zô{ô{ô{T.zè¡
+zoÔS$P«T õhE©%Ô¿ôbß¯rª\RåL$Ý
Index: /lib/phpqrcode/cache/mask_3/mask_109_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_109_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_109_3.dat	(revision 6232)
@@ -0,0 +1,2 @@
+xÚíÚ1 DÑ~O3Üÿr6ÑÝ	ÁO(ÍŸ©V6ïÓsy±¹¡¹Ð>)ë_%s×_œÕd3KO1^a§Lá,$H"$KzRPt[I&¯ÿXÝÍ9$H"$äIò$ysI$DI$ÉäIò$»I$DÉ%eëÌsò!¹Œ=äLAZ5'åÌIVýrîn
+ž»/2oÆ
Index: /lib/phpqrcode/cache/mask_3/mask_113_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_113_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_113_3.dat	(revision 6232)
@@ -0,0 +1,4 @@
+xÚíÚA
+0
+DÑ}NÞÿrnDëÂFj2úKÂÈCÂt?W«ÜÝ²îZiêÀ.qÕÁoýP
+ô¯ªª%SmjÕÖÂ7ËÞŠ:·©ªš¢*ªšN©Ê:@€:Ý·ìýÁŸº*¹*ªš¢*ªšf©ÒW9dª2«š¢*ªš¢j*}S@ Ê`®¢*ªš¢jœªæ¯à§ª6ðJlºŸêÑ¿Ã}ÕÕ}ÕÕ§T¿UßaÈ24hnt
Index: /lib/phpqrcode/cache/mask_3/mask_117_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_117_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_117_3.dat	(revision 6232)
@@ -0,0 +1,9 @@
+xÚíÛ1
+Ã0
+Ð]§Qî¹.¡xIÚB$úÁ?~!É<ÇQ?ß#ç¶Ð5µ/tIÝJ8owøié{áßçâ¬}£Sø^ã~¢œqçPÂ	&L0áJá¢î1ÊúÏ»Ý¢ðD×K'¬JšÃ	&L0á
+õÃn
+
+«ê0aÂ	&Lxgaý°G°*¡&L0aÂ{
+g{è¡þ2šës¢Î~ðì7\]%r¢Jô
+ö9n
+Z
Index: /lib/phpqrcode/cache/mask_3/mask_125_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_125_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_125_3.dat	(revision 6232)
@@ -0,0 +1,7 @@
+xÚíÛ1
+Ä Ð~N3ÞÿrÛ]·BÐÝ'?<Âà/ÌŒVÛµ»Ýóþüš
+ïÒ¿ÿŽ
+
+<0-_±Jä[¥ü?	+wÔÄ^;*ÃyòäÉ'O<ù/9ÏÏÉ¯ì9±<áîyÓÆ'O<yòäÉ'¿J^ÒaÈ6Š
+yòäÉ'O<ùGò{ŒicÎ'O<yòäÉå÷ßPû¯
+§·ó|Î]šZÖ€²²Iee:[~Ë?ÿ<mJò_¶N:
Index: /lib/phpqrcode/cache/mask_3/mask_129_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_129_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_129_3.dat	(revision 6232)
@@ -0,0 +1,13 @@
+xÚíÛA
+ Ðœ§ï¹6!n ðG<q4øhð/ªºG?;ÇhÓs€¹LSTšõÞ÷ëOj»÷åúâ
+2#¥ÐÓ
+DÛ×y`¶Ü«ïÙÒP @
+ÏÎ\Bê4*yt$
+
+(P  /È
+òŒ #Q @
+äyA^t$
+(P @Œ /È
+òD
+(ü\¡¢ô.`ý§íÉj¥oªéC °S
+ç;R¥;Rî.Iõ
Index: /lib/phpqrcode/cache/mask_3/mask_137_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_137_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_137_3.dat	(revision 6232)
@@ -0,0 +1,9 @@
+xÚíÜA
+Â0Ð}NÞÿrnªFÔHSà
+YQ|øéÒZ÷µEìfæuì,%Ë Í$uj÷ÓG£:Ãßzèèóo»Âu¶,:O òsâY»Ä°ïe
+:tèÐI¡sÅÕj÷š|ãÌ+ê»Nø5dltèÐ¡C
+:tÎèè;Úèb:M²Ñ¡C
+:tèÐ9££ïh£ËëH6ÉF
+:tèÐ¡CÇœ Úš{A%d£C
+:tèü³NìÓ$^ur
+òdVèô±'\ÓwjŸS³ŽÑtþ;U²œ'[ø,7ÃÜ
Index: /lib/phpqrcode/cache/mask_3/mask_141_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_141_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_141_3.dat	(revision 6232)
@@ -0,0 +1,7 @@
+xÚíÜA
+Â0Ð}Nó{ÿË¹)%]ØjÀf
+/d!uÈÃOUûÚæícµîõô0}ùaº4ùR9ëòÊ_œõ¡T~é`ÓÙÌ_	R[TÕ®¯ððn1öÝÂ"E)R€H-*p~H
+Ü¥ßJýäÞÔ°égú"E)R€HJÒ§4ß2ýL?R€H"E)RiRúæ»égú"E)R€Hò
+­>¥ùzÖô#E)R€HZ@ªbÂl-)ÌÝ¿ñ<ß§*©OUR"5&ö5ý*iúe
+Î
+J]®+
Index: /lib/phpqrcode/cache/mask_3/mask_145_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_145_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_145_3.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíÜÁ
+@Ðý|Íóÿ®:^ñ
+³JyÌ¡€ªyM§î×j×-'
+9€VSÛýÖŠK¶©
+9ëÇe¬µ)PíyUûû¹£wËeÞ-m jÔšQ£F5jÔšRËiÙ«ÔF4×_wk}·0+µµjRBR£F5jÔšQ»ŸŠeßOMBJHjÔšQ£F5jwPÓ×ŽìËªIH	I5jÔšQ£FÍ³ÇúíÙc	éw5jÔšQ£Fíµ:¡ÿÑzS«*2€¯UZ_«ŸCÒ×*­e_OíŽïZ¥%dIÈ¯ûâb
Index: /lib/phpqrcode/cache/mask_3/mask_149_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_149_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_149_3.dat	(revision 6232)
@@ -0,0 +1,2 @@
+xÚíÜA0Ð}Oó¹ÿåÜ âŠHé ¯éÂô'¬Z×2{oVÛ|Î«%µê>yû·R{!8îäÃI+JpI|#¶Ýfì5Îº[âP
+A	$H ÁQ}ð)Õ&<¹÷E§	JQ)J A	$H Ás5zþ¥š%H A	$Hà4A^£ÿ5A)*E	$H A	$èœ	Þ3ïMHQ	$H Aç	æü3Þ§`ÞP¯©®o¢Ý>X{×Ôè+±ÑWb£¿¡àìß`IÑã)5×%d
Index: /lib/phpqrcode/cache/mask_3/mask_153_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_153_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_153_3.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíÜA
+Â0Ð}NósÿË¹)7mJŠõ
+,Å}8µêX=c¿W^GeÝNó<v]]bí­IÍ¯_œÏûžgY+M³§j íò»vËtì&M4iÒ€I&MÿªxÞÑÜu~o[¯~ö4W55­Š¥I&M4iÒ€IæS5ML
+¯©i5-M4iÒ€I&M4o­iz`z@SÓjZ4iÒ€I&M4izÅôÀôÀs(VÓÒ€I&M4iÒ€¹¬YÁzK
+6ñŠÏ:=šÔéÍ_hÆþ6·7m¥6mÞM{üHã
Index: /lib/phpqrcode/cache/mask_3/mask_161_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_161_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_161_3.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚíÜA
+Â0Ð}NÜÿrnªF±ÑTká
+,NûðÛ	ÄZÑf7J÷:³Æ^`WáÙU×á»nXÚ€ŒÇ§M-œŸ#V¹¥+ß¡ËÛ+9zÜÒYÒ
+l)SŠLòoc±¯Ê±O_Cå?ß©õ%Ê;*KlM2eÊ)SŠL2åYeý²]ÊÏÊ[bSŠL2eÊ)SŠLyVY¿lWòGÊ[bSŠL2eÊ)SŠLÙÙ
+ý²]g+$¶ßeÊ)SŠL2eÊ­Ð/Ûq¶BbKlÊ)SŠL2eÊqÊÿþš]à­Â£{ÎA¿ŒŠÔ/×ô~¹ŠïV9ï»\%ö÷
+[ãP¯#'
Index: /lib/phpqrcode/cache/mask_3/mask_165_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_165_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_165_3.dat	(revision 6232)
@@ -0,0 +1,7 @@
+xÚíÝA
+Â0Ð}N3¹ÿåÜT
+#ØZþÀ
+Y¥uÈÃ­:ÆÌ¯1Ï±E®Uæ¹TÙT|SüþÒ·Ô	ñ
+¿q)òm-sG²øì Ÿ ýBæÈ.ï£CÄ'N8qâÄâáÿÕ÷âwv7û[Æç'tgÄÿ!.Õ¥:qâÄ'N8qâÄÄõãv`_+.Õ¥:qâÄ'N8qâÄÄõãv`êR8qâÄ'N8qâÎ€èÇíÀ8"Õ¥:qâÄ'N8qâÄIÑÛq&EªKuâÄ'N8qâœÄ+ŸÈ9:¹}kFT?^
+úñêÐ¿GŒÅo<0Õ«Cªg/æ
+_
Index: /lib/phpqrcode/cache/mask_3/mask_169_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_169_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_169_3.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíÝA0Ð}O3Üÿrn¢ñ·ŸŠ
+š)}á'3ªæ1EÎÇhßÑ]î4üP[
+£_«ñÁ¥]Kvè<ÃËfpý©#ýûª¶y_Êlù[gëe£ôéÓ§O>}úôéÓÿoý ªµ%uJV/µ°{¿þô%¿ä§O>}úôéÓ§Oþšúê}Ý
+ú§êK~ÉO>}úôéÓ§O>ýQõÕûº=ô/Ñü>}úôéÓ§O>}ú£ê«÷u{èï×ü>}úôéÓ§O>}ú£ê«÷u{èª/ù%?}úôéÓ§O>}ú¿×¯.N4ÿ»<Oúµõ±z¿z©÷lôêz¿zéö
+¢øîW/É_ÿŽyp
Index: /lib/phpqrcode/cache/mask_3/mask_173_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_173_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_173_3.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚíÝA0Ð}O3ÜÿrnPkTTèyM$&e/|ù"ÖµdÝÝjÝuþy[¥a»iKÑ{úòÌM	S&z[B
+UBÂRIÂ
+CÞ!Ón5Æ\w«4ìB	$@	$°[Âÿ°£3Ûëc²œE^%xw á	ÒA:@	$@	$@	$BfI³DÂ	ÒA:@	$@	$@	$p¶ÍfÃ%Hé@	$@	$@	$@BR	%Í	¿ 
+€	$@	$@	$@	)$h4K$L 
+€	$@	$@	$@Â³ü_{PgØÛŽyÍ>áVMm¢R³¥øÒážt(1ï
+¢|
Index: /lib/phpqrcode/cache/mask_3/mask_45_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_45_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_45_3.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíK
+À 
+D÷sñþëFJ(&)ô³0d¡øÐ³FÞg![8Ò=
+èÛ&ËiaÂÎD)Åd8&AËÕ¬¡a³áÀÛä
+1'II«×³7Ù9ù­	exÀßŸÈ	ÄÒIìû&ÖŽ¯CçuŽÍJy
Index: /lib/phpqrcode/cache/mask_3/mask_53_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_53_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_53_3.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚíK
+À0D÷sœÿåº	­¥Ñ!
+-(.Bp&|"-t&`Æq
+Q-"ð9Ù_+
+)Be/H8ŸãD®Œ%a~Ð}spKFNúö¶Ö=,ÂÆ;;a^tª4÷Ï\ÞFÎáÂÀ
+ÊÎSNé§éâ
Index: /lib/phpqrcode/cache/mask_3/mask_61_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_61_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_61_3.dat	(revision 6232)
@@ -0,0 +1,4 @@
+xÚíA
+À0ïŸfýÿçz4-%Ò*
+Ãâd°Ðp!ÝyZÜ«æuäõ(ùž~ë=¹&ÉÛŽ)ÌR2â"/ò"ÿ<9çFÎ=r§þbòó"/òîÌíçrw
+¹"2®¯¹ãçÈøùBòè#3-Ø0-KÀW
Index: /lib/phpqrcode/cache/mask_3/mask_65_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_65_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_65_3.dat	(revision 6232)
@@ -0,0 +1,10 @@
+xÚíQ
+ Dÿç4»÷¿\?RÛ
+
+Å,û!šO²-òNv®Í1 :Âc¡Zu
+ï
+Ú"UMÃF	~jKšŽ
+-la[^q^³Q\é=
+o-laÿZpUÒÞB¬äÿ
+±@IµÖKµJzÉ¢|1Ã¢
+÷¹
Index: /lib/phpqrcode/cache/mask_3/mask_69_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_69_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_69_3.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚí×Á
+0
+Ð{¿&ûÿó2€'®
+dô l=,¹Fœîéy;$§ì€WEË-Rš³:¢¡%T,O2œ×g
+"Ä",²È¢/DÍyÄ¹ôÉ§{þOä®³È",:NvÈEñWNÎ#(&,ö,äº®ë]æxØ
+
Index: /lib/phpqrcode/cache/mask_3/mask_73_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_73_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_73_3.dat	(revision 6232)
@@ -0,0 +1,7 @@
+xÚíQ
+0
+Cÿ{ìþógè;è¥JJ?dÔ¬K=ÚR
+aÃsJhTJ6exÎkaºú¥§\$én¯ŽIE,-/ÑÓXB¢è*Ñ
+=Ëâí
+ÚÒýweeé4¢èžtÿöÌtLÑî«t tß«èà¯b	gF
+f	ÖáqºõoÖd¢Ðdn-ð?
Index: /lib/phpqrcode/cache/mask_3/mask_77_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_77_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_77_3.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíØA
+0
+ÀûŸ&ùÿçŒ­BiÖRaK"té`I@³¶|¶º
+î¹fXö±Ôâ­yiöåólõE:Sza18GŸÀifK*©€?:YÜC1ìì¡(á·êöJ*©€ŸjÊl*ÕíTRI×KëÌîR^ØæÞksûÂ)cÌ)cÌ)³JZøŠ¶óí¥ä
+ãa·
Index: /lib/phpqrcode/cache/mask_3/mask_81_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_81_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_81_3.dat	(revision 6232)
@@ -0,0 +1,7 @@
+xÚíØ1
+À 
+Fá=§÷¿\,JÑGAúÄ¡ýhjÀÌ>ÚÙ
+#Ê3XÀø:çk÷Ô¹\ûFM
+JÝhuÇúœ3žš>T­ZõÔ{ÇãPSgøP'¹ÉkÔVžjÕªU«¶_Û¯ý¯U«V­º»=P
+ÎoO:WÒÞäÝjü[WxÒÎmò
+Ù5
Index: /lib/phpqrcode/cache/mask_3/mask_89_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_89_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_89_3.dat	(revision 6232)
@@ -0,0 +1,11 @@
+xÚíÙ1 
+
+áœ§)÷¿
+*.@àUÁü
+ÓÓ|±¶î¹âeÅµ6Û¢äw5*÷ô)
+oôišK®¢4nk>Áè1}d>Ð@
+4ÐXYCŸoò	Û¡1<º©A§ h FûÆ
+t
+ß
+4Ð@µ5Ž1ÁWrÒï>7û«ûGí
+µ}}€¡x7|ÇNgÆîÚN
Index: /lib/phpqrcode/cache/mask_3/mask_93_3.dat
===================================================================
--- /lib/phpqrcode/cache/mask_3/mask_93_3.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_3/mask_93_3.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚíÙA
+0
+DÑ}NÞÿrnJÉªQ~éBšú06 û
+£n®aáž<<Š×ôÿe6×MRýCùÅPÈ
+¥LÀ±ôÌiØ9M
+2È LkÅ®œdD»v*ó"a·ÔXjBdAdªdèôZöÀTßdAd®qYø0exö÷öŒqe§çÊN¯«ú©ª&WVææQvcô
Index: /lib/phpqrcode/cache/mask_4/mask_101_4.dat
===================================================================
--- /lib/phpqrcode/cache/mask_4/mask_101_4.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_4/mask_101_4.dat	(revision 6232)
@@ -0,0 +1,13 @@
+xÚíA 
+ïŒŠüÿs^1 b€ÆáÐª]ÃØÖ4m+Æ8Ð+Ve¬Ä^H­R]\Íc®Û
+·
+oõWN#žîXáéØá+lð
+­HE³cp
+\à^.Î
+9qñW9øŒïç"
+ò
+:žÀ.æBßÿó÷ùB
+
+\àæ0ÌaÃPÇšcp
+\ÞÍÅïON¥qjpGÖô}ô}¥Ê$.äË
+§Ð
Index: /lib/phpqrcode/cache/mask_4/mask_105_4.dat
===================================================================
--- /lib/phpqrcode/cache/mask_4/mask_105_4.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_4/mask_105_4.dat	(revision 6232)
@@ -0,0 +1,11 @@
+xÚíK
+0
+D÷=MrÿË¹øA
+
+ÎTáeEFóL2
+#ÈÌé¹¢
+_I!
+ßú­£çë€ÑºÎ-Õ«km¿Oñá]sS
+T6*ùª'8Á	Nâ$Þî'N¥ZÊí^<JvNôsNpàßÃïá÷è'æ
+à'8Á	¿ßÃï1÷{pàô?NÂ¿µnŒJóüBÏ
+ùü^Øü[i'úiHI-¶¢m+W
Index: /lib/phpqrcode/cache/mask_4/mask_113_4.dat
===================================================================
--- /lib/phpqrcode/cache/mask_4/mask_113_4.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_4/mask_113_4.dat	(revision 6232)
@@ -0,0 +1,11 @@
+xÚíÚA
+Ã Ðœ§Ñû_®Jb)t&çBBÒøK_€Ö³µÖ6õC+5/q_Üghfâ×Çú©Éíÿ¿CbH+Ÿpº¿¯§;WK?ÞüG
+útô	ñ¿*G
+9r|c`ÕÑ
+cŸ¶Î9FKHÌq4­«
+9räÈ#Ç
+êUÏ
+×
+ÍGë*G
+9räÈÑ>¹}rûäÖUë*G
+9r|ºcÌ[Á£cNâ¬Þ[_=Æ×«5Œ^ÍJŒ£ùž 1*ôqv
Index: /lib/phpqrcode/cache/mask_4/mask_117_4.dat
===================================================================
--- /lib/phpqrcode/cache/mask_4/mask_117_4.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_4/mask_117_4.dat	(revision 6232)
@@ -0,0 +1,7 @@
+xÚíÚË
+Ã Ðœ_£ÿÿs]4Ø¥©Dg€
+nòžà2Jj}ŽÖÚÒŸ·RsSWG¶R¿É§
+Ú)5¬»ÞEáämá#Ü¯ãŸÕðk_"Ãz3Â\¹råÊ+×r
+­L»k|ê/{¹;'×àÔ<WóÕ:Ì+W®\¹rÝÜU=l3ÏÕ|µsåÊ+W®\û;÷wîoŸZ¹råÊ+×ý\þŒsÍK
+ýÃûzeS×z83u#Wóubjdð
+àÝ$
Index: /lib/phpqrcode/cache/mask_4/mask_133_4.dat
===================================================================
--- /lib/phpqrcode/cache/mask_4/mask_133_4.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_4/mask_133_4.dat	(revision 6232)
@@ -0,0 +1,8 @@
+xÚíÛA
+Ã Ðœ§Ñû_®Ò
+BþÂËBš2àfó{­µ
+ÇíÆcf¥š°gÈKqøã=óÙ)Ú®£»çWÀlK2Þ¿ÊË8:oþCRd¬\pÁ\pñ@­ï+$EÅÿÏùQ.ìÎç\pÁ\è#ú>¢Ø/#\pÁ\pÁ
+>¢è#ö
+ç\pÁ\p¡è#ú>â
+qpÁ\pÁÅ.ºŸ$¿ºÈIqüðœ€	dôÑGR»°_4Šè
+ò
Index: /lib/phpqrcode/cache/mask_4/mask_149_4.dat
===================================================================
--- /lib/phpqrcode/cache/mask_4/mask_149_4.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_4/mask_149_4.dat	(revision 6232)
@@ -0,0 +1,8 @@
+xÚíÜÁ
+!Ðœ_£ÿÿsmÉ Á+
+XÓ9=ó.ªõ=Zkça]ÕÞ>
+K¯jòŽoé
+Ÿªý|¯SªSWKùZmË×ºÃjéŸÃ\¹çÐª2ï W\qÅW\qÅÕñ®"~·ß×
+­jvÚtòê®òªv¥_Ùí\qÅW\qÅW\q%g3Èä
+ú}+®žâ+®žâ+®ä
+r9A¿²rÅW\qÅW\qÅAÎ g3èWöAû W\qÅW\qÅW«Æ]åVµ~v{êD3ÔÈ!¹ª\éWÇô«¬Â^<ír/
Index: /lib/phpqrcode/cache/mask_4/mask_153_4.dat
===================================================================
--- /lib/phpqrcode/cache/mask_4/mask_153_4.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_4/mask_153_4.dat	(revision 6232)
@@ -0,0 +1,7 @@
+xÚíØ10ÀÞ¯ñýÿsi,')p!äµ4.ÜÐ;±œ¿WUmßçj=¿²²ê°Ê.NOŸþ>úûçTµÚ[÷ŸS7
+vÜÛg¶q?æ÷ÞÒ
+{pe¹o3Î8ã3Î8ã3Î8{ØYXzðá,°²Û_úO€ÓYfeñÎô3sÓÜä3Î8ã3Î8ã3¹\C®!×ÐÏÌMs3Î8ã3Î8ã3Îär
+¹\C?379ã3Î8ã3Î8ã3¹\C®!×07ÍMÎ8ã3Î8ã3ÎÎq¶þÚé,»²ËmMrs
+k€Wv3ýìÀ~WÜ
+
+WB
Index: /lib/phpqrcode/cache/mask_4/mask_157_4.dat
===================================================================
--- /lib/phpqrcode/cache/mask_4/mask_157_4.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_4/mask_157_4.dat	(revision 6232)
@@ -0,0 +1,9 @@
+xÚíÜ1Â0ÀÞ¯ñýÿs4"FPà=iRXÂ¢XÉÛ0çë©ªu	4ftÑÖl}ÒmŸøßýéâ­»Sû|²ËÑëSÌ
+û¶ÄPÏ5<]öÉrÇ
+wÜqÇ
+wÜq÷£»È^QáéN6ÃûáéZžsß³æ,wÜqÇ
+wÜqÇ>«Ïê³ú¬ûÎ5g¹ã;îžã;îôY}VÕgÝwæ,wÜqÇ
+wÜqÇ
+wú¬>«Ïê³æ¬9Ë
+wÜqÇ
+wÜq§Ïê³ú¬>ëŸ3gÍYîžã;îžãî[ww?P3Üå§ÛþòÑÆÝggtí®¡;÷]ûû.3àw4A¯
Index: /lib/phpqrcode/cache/mask_4/mask_161_4.dat
===================================================================
--- /lib/phpqrcode/cache/mask_4/mask_161_4.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_4/mask_161_4.dat	(revision 6232)
@@ -0,0 +1,15 @@
+xÚíÚA@
+Ðýfæþs!ALÄ_|,4òl)iï¯m²ßl­×0'Œ÷ +Ežû
+£
+÷]N\ºêüxÅ#·§2ç/üŒ_¬{7gÛò9ìŒÙ·ÔÀÖ}óï2
+rÈ!
+?}-³#<Zü×Ïëj"¬áP>TÕe9äC9äC9üÀ¡~ùöý²÷6S
+Êê²ºÌ!
+rÈ!
+rÈ!æ
+ôËÞÛsÕe9äC9äC94ç _öÞÆ|š.«Ë
+rÈ!
+rÈ!
+sÐ/s0ç ªËê2
+rÈ!
+rÈá8ì§}DÃÎìçw£ùýrï«DXÎ¡|xÃ|ä!à2ð
Index: /lib/phpqrcode/cache/mask_4/mask_165_4.dat
===================================================================
--- /lib/phpqrcode/cache/mask_4/mask_165_4.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_4/mask_165_4.dat	(revision 6232)
@@ -0,0 +1,10 @@
+xÚíÚA
+1
+Ð}OÓÞÿr.
+ª"Ñ*?úfÑÅÌPóLHIïkµÎ«õZQŠ
+8
+Gy÷êqkñ-¿ÿÎn5£œÚ+?ÌÒñùùŸÝâ¿ø|Ö÷Òþà·kKn®E¢¬ñÅ¹äK.¹äK.?ï2º£.ó£|ŒEJ§{å2<Ê:.åKu\
+çK.¹äK.¹äËúñ¿êÇmu)_ªãê8\rÉ%\rÉ%\ÛÐ;'2·!_ªãê8\rÉ%\rÉ%\ÛÐ;'2·!_ªã\rÉ%\rÉ%\rinC?nnÃ9¹
+ùR
+çK.¹äK.¹äò;.û²óHqY'ÊÝœéþN·F?ÞKôã¢,êRŸüé|
+è	My*3
Index: /lib/phpqrcode/cache/mask_4/mask_173_4.dat
===================================================================
--- /lib/phpqrcode/cache/mask_4/mask_173_4.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_4/mask_173_4.dat	(revision 6232)
@@ -0,0 +1,9 @@
+xÚíØK
+1À}NÜÿrnÂa
+øÃ~ZY!ÎÐJÑt^ï×5Æ(ž/«õÌjkz[pjµ§_Ø?~v:
+|jwúÕ_mû£îXzòoõÓ6?nËÞ<ö°j³$pË-·ÜrË-·_p[zŸ=ÞVíæQíŠ3ÝæTéV¿ÕoÍ	ÜrË-·ÜrË-·ÜrË-·r09
+LŠßÌ	ÜrË-·ÜrË-·ÜrË-·r09
+LŠßÌ	ÜrË-·ÜrË-·ÜrË-·r09
+LŠßÌ	ÜrË-·ÜrË-·ÜrË-·r09
+LŠßÌ	ÜrË-·ÜrË-·Üræv­æ6¯Ú÷ßý?,eå`=*K¬6Ú­~û§ý6£à
+Ž*×
Index: /lib/phpqrcode/cache/mask_4/mask_177_4.dat
===================================================================
--- /lib/phpqrcode/cache/mask_4/mask_177_4.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_4/mask_177_4.dat	(revision 6232)
@@ -0,0 +1,11 @@
+xÚíØA
+!À»¯Ñÿ.1BéMyð![
+c÷þ\c²ûZ­çV\¹Üq7ßâÝEóOýzg~ÅkëøË¿j;pgu²Í[*7×œ¥ºöÀóTpÌ1Ç
+sÌ1Ç
+sÌñqÇ!¯ÿã w/òr¯ÿå8«âXÇú±~l®àc9æc9æc9»ÉÝänr7¹~l®0WpÌ1Ç
+sÌ1Ç
+sÌ1Ç
+ËÝänr7¹~l®0WpÌ1Ç
+sÌ1Ç
+sÌ1Ç
+ËÝänr7¹~¬+8æc9æc9æcånr7¹ÜMîŠ+8æc9æc9æãtÇû§oEÇÉN¥Xy¹[ËÝR+Ÿcýø¯ûqNÑ\,4J
Index: /lib/phpqrcode/cache/mask_4/mask_65_4.dat
===================================================================
--- /lib/phpqrcode/cache/mask_4/mask_65_4.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_4/mask_65_4.dat	(revision 6232)
@@ -0,0 +1,8 @@
+xÚíK 
+D÷ŠœÿåtX£Ð.4ÓE1^ÂãÓhv»OæÍxùéWð0
+ñ°JHÅ»œ­ðz[ÿ^Ü[vâÈŸ
+yyZÀkß=`êv·cíÇî
+<È<üÚCî/)zàÜ×
+¯×
+¡ÈÃÇÎC
+²""
Index: /lib/phpqrcode/cache/mask_4/mask_69_4.dat
===================================================================
--- /lib/phpqrcode/cache/mask_4/mask_69_4.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_4/mask_69_4.dat	(revision 6232)
@@ -0,0 +1,3 @@
+xÚí;À0CwN÷¿\~€š;C$3°$<)/m­ºß¥eÎ¥T±2
+ :¥]ÿ^VV¡%Æ²zAïnÈpv
+s"yyy)zöá€dÄu6œàªœGúŸÈŒÈËi^Â/<ÊtÓrÂrrÚ)9Í€lõrìó.¶Ö
Index: /lib/phpqrcode/cache/mask_4/mask_73_4.dat
===================================================================
--- /lib/phpqrcode/cache/mask_4/mask_73_4.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_4/mask_73_4.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚíA
+0
+ïyMòÿÏé¡Ž)1Ý-lE3=Ô}¬(Öô°9TÇdÎÒòE/eO	ZOîãÛÅ»KíY;ÛúpS5Ð+ÄëNäIà|
+"©eìvúö+DÝæNs'Oò€
+WkîäIŸðìÌž€FúòrÜi9Î&
+óô«ÿ	]?ÃóA
Index: /lib/phpqrcode/cache/mask_4/mask_77_4.dat
===================================================================
--- /lib/phpqrcode/cache/mask_4/mask_77_4.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_4/mask_77_4.dat	(revision 6232)
@@ -0,0 +1,9 @@
+xÚíÑ
+0Eßý÷ÿ?×ËjFe8¯0êú uØN©0Õ­µlBŽ6:«h·<œõ§¥CÜe\,¹
+ìÔÜ~ø &
+rd0
+»Sz£7z+ôêoº»ÓÜþ
+ëäÝVâuÊ:¥7z£·Wo¿
+ËÎSÖ)ëÞèmoù3ë
+Oy
+;:*h¥Þ>û¿aïCe
Index: /lib/phpqrcode/cache/mask_4/mask_81_4.dat
===================================================================
--- /lib/phpqrcode/cache/mask_4/mask_81_4.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_4/mask_81_4.dat	(revision 6232)
@@ -0,0 +1,10 @@
+xÚíA
+0
+ïyMòÿÏyXE
+m7"89ä 2Ñž ûQ1Ý³Ìë+žxx;ÅÓt3
+5DIY÷¶1x\:u³ýº}îŠe/ ê§Æ#
+ñø¢Th<
+ùùU€BzÔË<²×ì5
+ñG<×ä5{G<â¢¿®5Äñ<é¥«>¯]×UÄr¿xuÐ
+
+Üû
Index: /lib/phpqrcode/cache/mask_4/mask_89_4.dat
===================================================================
--- /lib/phpqrcode/cache/mask_4/mask_89_4.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_4/mask_89_4.dat	(revision 6232)
@@ -0,0 +1,8 @@
+xÚíÙ1
+0
+
+áœ§Iî9«Æ% Í
+ VÞðÚf×r÷ÅÖ0}òzì=Œ#9ùìéûÎäÒ:§þû~sØ
+ó¹š1B
+Õg&ë4pÆgq.p.»í°&g·ÿÂT05ÉrgúsgqÆçrgæ¯Ïuô3çÎ8ãóëkÿ.Egm²»b*ÐÍ&7ÔÉÍÎ?íçúð
+¯:Þü
Index: /lib/phpqrcode/cache/mask_4/mask_93_4.dat
===================================================================
--- /lib/phpqrcode/cache/mask_4/mask_93_4.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_4/mask_93_4.dat	(revision 6232)
@@ -0,0 +1,9 @@
+xÚíÙK
+À 
+áœ§Iî¹n$}PÅBù]žNé§È@ÍÎáî%sfkÒ«¢}CzòoA}aÊœ2œ|€îé~ØÀªD&l=¥êÀÜçŠY®Á
+wÜqÇ}³» q\ÜEéY³j
+á®K_âÎyçÁ
+wÜqÇ
+wz$=
+É=;îžãû_Ýÿ>Üõé+ÑpÓÓöHöÈéÜ9ï¢
+DÞi
Index: /lib/phpqrcode/cache/mask_5/mask_101_5.dat
===================================================================
--- /lib/phpqrcode/cache/mask_5/mask_101_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_5/mask_101_5.dat	(revision 6232)
@@ -0,0 +1,11 @@
+xÚíÑ
+ 
+Eßýíÿ®+£%=ÜM¢3Cbvóž
+Ñ¬«ÍNkÃ»¹Žgqõkqq{©%ôO¿ÒòüoçùÈû,išÅKÖeeçÁ3[|îi¶÷Ÿõã©V¥¥h]`
+Æ`
+Æ0ŠÊ±ž
+zËŽTÔ0Gu
+×ì/q8F®1±3¶:WÊò>õŽ
+#ÇÈ0c0öQÆ8»øE=F
+#+a
+ÆþÄXÖÍ+cV©%9W>ßíQ]Tk©¹Y-gLž÷óîq¬DËèÏ
Index: /lib/phpqrcode/cache/mask_5/mask_113_5.dat
===================================================================
--- /lib/phpqrcode/cache/mask_5/mask_113_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_5/mask_113_5.dat	(revision 6232)
@@ -0,0 +1,17 @@
+xÚíÁ
+0DïùÝÿÿ¹^Ò6¥I63[è[EDqÌcÅÑ+ÏjÃy€ì8
+1û\c
+·7Úc«åªÆõû?uý}DK4Š}
+Çï,¥kkûgì--3
+[÷œŽU
+ÆyUX
+UXýSV ³:Ï«ëûÕî,÷è|æýÐºSúôŸ¯â«°
+«°
+«°
+«VÉ«¢Œ*ÑXÒ[á«ø*Ÿ
+«°
+«°
+«°zUò*ßN÷Vø*ŸJUX
+UX
+ÕSóèXiýÊjTi4f¹õZkU^­Ôè_ìê­~Uçxþ
+}Õ®ñZ/r
Index: /lib/phpqrcode/cache/mask_5/mask_117_5.dat
===================================================================
--- /lib/phpqrcode/cache/mask_5/mask_117_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_5/mask_117_5.dat	(revision 6232)
@@ -0,0 +1,15 @@
+xÚíÁ 
+Dï|Mçÿn/*{ÁMŠÕÍ+pÐI_&m-äèÑŸCæõä­òÏ3­2u­?o-k
+gB7wc=¯ªU%yíoÝùRæhÓ¯sÌŠDo:Ö¶y€R£JkQ^aaaÿáqOgÚiJ¯ýç
+;úáqOgÚ)ÓãÃø0
+Ã0
+Ã0
+Ãð[Š
+v×Ã¶>ç=
+>ãÃ0
+Ã0
+Ã0
+ÃOfz3»=
+>ãÃ0
+Ã0
+Ã0ü.3ÿ÷ïZ£$¯×·8\õpÔÃùw4œÇá:ãšÖZÀp€:q¹ÖÄù§X 7
Index: /lib/phpqrcode/cache/mask_5/mask_125_5.dat
===================================================================
--- /lib/phpqrcode/cache/mask_5/mask_125_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_5/mask_125_5.dat	(revision 6232)
@@ -0,0 +1,14 @@
+xÚíA
+Ä 
+E÷&¹ÿåfc;SŽ¶$?ØQ4ëáYaßhÃ»yJ}9ºg=×Ú=©liŽ.;nh_ÍÔýïwzý
+í.÷qôCW¶üÏÈ§yº×
+uëÞëPkÏ;ÌÃ<ÌÃ<ÌÃ<ÌÃ|*óqëùÎü,
+mkWæqçNÊl%ª
+Ççñyyyyù×Ì×^Ïæ2ä°
+sX|
+Çça
+æa
+æa
+æa
+æ3Ï9lHÏãóø<ÌÃ<ÌÃ<ÌÃ<Ì¿÷ì¿Ì[í¢õüên`ìTíÚûq
+¶8ó¡^vôy©ö«
Index: /lib/phpqrcode/cache/mask_5/mask_133_5.dat
===================================================================
--- /lib/phpqrcode/cache/mask_5/mask_133_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_5/mask_133_5.dat	(revision 6232)
@@ -0,0 +1,7 @@
+xÚíÜA
+Ã0
+DÑœOcÝÿr]4%1mCTåÉÆ¯Ð÷xÎ[DvÌ=Æá{FúúE€Ïµäqœ?Ý¿Ü9ûkeÑ­ù}±'2^ýcç4GÛ:¶3=J£K-ôF0`#ÿÍHÒþwð'#ß<{Ú~Z4é
+:BGè»F0`áGø~Ð:`#Á?Âð#tÐw-`#Á?Âð#ü
+¡#t#ÁF0r·
+ïÙ}Qõ}e€üÝòRÚ;ø<ùçCéV
+}Ñìó¢ËÙY-H
Index: /lib/phpqrcode/cache/mask_5/mask_137_5.dat
===================================================================
--- /lib/phpqrcode/cache/mask_5/mask_137_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_5/mask_137_5.dat	(revision 6232)
@@ -0,0 +1,17 @@
+xÚíÜÑ
+0
+
+áû>Móþ/·Ç
+kÅ1mÂøªÈXº³ü=öŸµÈhýÕÚîså×áH"ã
+k	ÇM:îúê3qÒOü¿W}ÿ9Ô¬IýH1
+ÙG;þ-
+Ï©sìîÚ¶ù?Ò[%M
+Å	v°
+ìü#;£zg^ÝÔ3Õd}Î6Å9ÛÆÎšÞ×@7õÒïð
+Ÿ#gÃv°
+ì`;×³£Þ©\ï$ÔÅåð
+ŸÃwälØÁv°
+ì`çvÔ;ÞÖ}7Êwøß³a;ØÁv°
+kA­µïð
+Ÿ#gÃv°
+ì`ç=N2wúxg§WÓ€@n?Ûëc}œSQ:ûZd?+šÏÎú9vÆÎzß)£ÉæÝáP
Index: /lib/phpqrcode/cache/mask_5/mask_149_5.dat
===================================================================
--- /lib/phpqrcode/cache/mask_5/mask_149_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_5/mask_149_5.dat	(revision 6232)
@@ -0,0 +1,14 @@
+xÚíÜ[
+Â0Ðÿ®&³ÿÍùcµ }-s+'^;AÇxê
+ã=ŠÅëQ­Ï_gUÝïµªæãx­ÆÞGûõTíœëÈºVÂ¹ïúUÌªUE®«å¬æõ_IÇŽ;ÿÇT1×öÅóôÌ ©µ
+]W
+2È 
+2Èà
+¶|oß5Øuóê¬uI¶:(WK­UèºrPÊAdAdA;
+vÞ®íÑoíÝ_zNOæÏ{2rPÊA9È 
+2È 
+2Èà9íÑß}^Oæ
+rÐwQdAdAýnÂ
+œßMÈA9(dAdA¯^Wó²
+äZ
+Ý.+³G^«ÌÿëKêÉÜÑ`×µ}Ë`_FÖê÷k
Index: /lib/phpqrcode/cache/mask_5/mask_153_5.dat
===================================================================
--- /lib/phpqrcode/cache/mask_5/mask_153_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_5/mask_153_5.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíÜÑ
+@Ðw¿fæÿ®¬šÐ¬`ïÖÙD"I¶ÁÃe­ê<:aÔu,7ï«öOfÖÛ³uÀëPÍ6î~ñísŸzÕÁÏûãsÞÏ,jÄÕ¬c¯³ëÌVöZvßšmé°
+žìs^uÜH®YðuÆ&l²É&l²É&_±9€¯±ÚÜê
+;]³Ä^Ðjs«O;ìÜrSn²É&l²É&l²9œÍy×ÖèzAÖ
+rSnÊM6ÙdM6ÙdM6§µéÞ»÷@/è±$7åŠÜl²É&l²É&lzÅœzACrSnÊM6ÙdM6ÙdÍOlîþ7á°Uìu¶NªãÖ»F¯Úcú·óÌêÍP³PSÔ,l;HûO§
Index: /lib/phpqrcode/cache/mask_5/mask_157_5.dat
===================================================================
--- /lib/phpqrcode/cache/mask_5/mask_157_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_5/mask_157_5.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíØ10DÑÞ§ñÞÿri(	r*¥· \Õ~>Cï£*¥ú¬v¹ïsýØ]Å_{W!Çzï¶¬/ÏÝÞõ÷ÝÅÕ)œË»¹Áöä€vÿ
+ÏV®×6ÜVÞ»ð¹Ã,f1YÌb³Ê
+Ìn^o¯¿>¿þí\Oï]øÜñ,Ïò,Ïb³Å,f1YyVgåYåYåYÌb³Å,f1+ÏÊ³ò¬<Ë³<Ë³Ÿ1YÌb³Å¬<+ÏÊ³ò,Ïò,Ïb³Å,f1YyVgåYåYåYÌb³Å,fÿïÝukys77Èì}ïvç
+Éæmb=¥wÙsw
+³)ï»tWÖÓ:®
Index: /lib/phpqrcode/cache/mask_5/mask_161_5.dat
===================================================================
--- /lib/phpqrcode/cache/mask_5/mask_161_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_5/mask_161_5.dat	(revision 6232)
@@ -0,0 +1,9 @@
+xÚíÜI
+@Ðœ§éºÿå²ÑDp@
+èo|m	¢ßrHkãš€Ñ~cœo³^ÝÃJz­×°#5l»¿îÂŠS_92Ûî
+©[¯}ŸÜÃÈZÃó=ìTê2ìÿÆ×P2[cVìè¡
+ÌCYfå'-
+ÛìXÎ9>üv§Ë~u»œsK5ì`
+Êe¹,å2Ë,³Ì2Ë,³Ì2Ëç-ëßÐ//¯/o_qŸ}KÇçŸä²\ËreYfeYfå³õËoèÝ+òÿ¹/¹,å²\feYfeYfÙ³úe÷x¶B.Ëe¹Ì2Ë,³Ì2Ë,³Ì²g+ôËîñl
+\ËrÙ16Ë,³Ì2Ë,³üì<v.×rë¥ÁœÞŒýrO5ÌÿöÔs_ýZÎÉuËI¹
+_ÃìÞ*
Index: /lib/phpqrcode/cache/mask_5/mask_169_5.dat
===================================================================
--- /lib/phpqrcode/cache/mask_5/mask_169_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_5/mask_169_5.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚíÛÑj0Ð÷|Íäÿ®/¶niµ¢K¹£'ÈÊ.rö:ÁT-m&¶ZÛx9¯yüq§3rÿµOgàvŒOO_z×¯
+
+§u`]ÿüÈ·ŸßitëØ§ãtœÙñilŠoc¿ö1ã3j9%_g|ëÔ§Æ)ûì³Ï>ûì³Ï>ûÏ°¿=×teÌ&õþ_ã4€Þÿ²¿=×t¥UÊ}¹/÷å>ûì³Ï>ûì³Ï>ûOŽ¯Þrœ5/u¹>¹/÷åŸÜg}öÙg}öÙgÿ®öÕûO®÷œÛsv®OîË}¹/÷Ùg}öÙg}öÙ·Gœo-w{¬åûr_î{æg}öÙg}öÙg_œ¯Þ÷nµ<r_îË}Ïüì³Ï>ûì³Ïþ=ì×n]4Nk§ÖÎ²_Êðÿ­÷«Mœ¿Š×û
+ûŽÏ8ím?ñÿŽSF
+·<
+·
Index: /lib/phpqrcode/cache/mask_5/mask_173_5.dat
===================================================================
--- /lib/phpqrcode/cache/mask_5/mask_173_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_5/mask_173_5.dat	(revision 6232)
@@ -0,0 +1,11 @@
+xÚíÛ[
+0Ðÿ¬&³ÿÍõG1Ðø¢gäD)[°CzŒ±÷eDÖÑ·Ñ÷=RŸNÏ6²îóÚFÒíJm
+ÞÏJq÷P}ëxÞö
+séîÑ_Ÿõ}¶éGÚF©y;íú¿
+[;ý]öé¯eÃk[®ÅQbT«m±yË&0	L`ÂÌY?ášÇðØ±ÝÚæŒwØ·	ï
+fý£
+ÃcÇÊÕVNä9ÁœÀ&0	L`×Zý€}0=F=F9ANä÷L`À&0	L`Bz¬Y²fIñß=F9ANä&0	L`À&0	ŽfIÑsr 'È	L`À&0	L`<iÍ
+£ç"å9ANÀ&0	L`ðVÖ­aB¯XÛ"ý±²ù×,U­m
+>Øö±
+=ÆwóZ¶gBÎPª¶
+!8
Index: /lib/phpqrcode/cache/mask_5/mask_177_5.dat
===================================================================
--- /lib/phpqrcode/cache/mask_5/mask_177_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_5/mask_177_5.dat	(revision 6232)
@@ -0,0 +1,16 @@
+xÚíÝÑÂ0Ð÷~ÍÌÿÿÜŸØ­
+ÎuO,"%
+ñô:$Xui=¹ÕÑ¶«×Õïôžg÷Æž?Îq­.úÕSo~æz
+×¹õWï:ó·=h1cÜqóøèñþ]ìÇ¶ŒîiÇÖ!÷Œßçírßî8Æó¬`+XÁ
+V°	õµÓê»jÏj;8ÆóX®+ä
+¹ÂoV°¬`+XÁ
+V°â?[1µ^ñh-Ö³5Z;§¶©¶ùrmS®+ä
+¹ÂoV°¬`+XÁ
+V°â;¬°ËZ,µÍYµM¹B®+ä
+V°¬`+XÁ
+V°öZe©ÚŠ}Šr
+\!WÈ¬`+XÁ
+V°¬`+ì3µKmÓ>S¹B®+ä
+V°¬`+XÁ
+V°¢cþòãÇ{g;Š^Qq5¡ZU»ÆÕÝ®ûQÛL
+ã0+*&YDqÈñéô*6
Index: /lib/phpqrcode/cache/mask_5/mask_25_5.dat
===================================================================
--- /lib/phpqrcode/cache/mask_5/mask_25_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_5/mask_25_5.dat	(revision 6232)
@@ -0,0 +1,7 @@
+xÚa
+@!ÿï4îþ
+Þ³Ê¢
+?,"ÅÔÌ"jœŠ¡?n<¶OÕÛäa
+¬w,
+l}rGM;ÏŠÏ9[í
+€¢_ú±x|ÊÖ=Žl4lKšývœ
Index: /lib/phpqrcode/cache/mask_5/mask_29_5.dat
===================================================================
--- /lib/phpqrcode/cache/mask_5/mask_29_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_5/mask_29_5.dat	(revision 6232)
@@ -0,0 +1,4 @@
+xÚÕ]
+À 
+ß=M¿û_n0W	.«=-Á4¡mÄy×BìÓ+²
+·ÜR×áçô$Œ­Æ.=s/,+îB÷7ó³q®zÄ~§q>=GéÙêZùyÎ:ÜDR«
Index: /lib/phpqrcode/cache/mask_5/mask_41_5.dat
===================================================================
--- /lib/phpqrcode/cache/mask_5/mask_41_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_5/mask_41_5.dat	(revision 6232)
@@ -0,0 +1,4 @@
+xÚíTA
+À 
+»÷5Íÿ?7«ÈXMtxÒŽx©€	
+ž?@7@òŸ~"éN$õSÖÉ°Ä{ø+C³šÛA'Êör\Ppè<Þ÷-Œ	Íº:S3s¹ÔùÛ»ËÞ©Îz#óqwó	>þ
Index: /lib/phpqrcode/cache/mask_5/mask_45_5.dat
===================================================================
--- /lib/phpqrcode/cache/mask_5/mask_45_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_5/mask_45_5.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚíUA 
+»ï5íÿ?çU:N&Z":;4P1=bNvSGÆM1¶ÜËœn<ëv`q³€{ìîßMg§ã¶4þå=Gó-T¹º?Ôß='kíÈuÛ­õ>ëß'¯®
+çþ
+Ü(éÎºö	J
+ô{EßÑµsÊ]È	,§
+sqð
Index: /lib/phpqrcode/cache/mask_5/mask_53_5.dat
===================================================================
--- /lib/phpqrcode/cache/mask_5/mask_53_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_5/mask_53_5.dat	(revision 6232)
@@ -0,0 +1,9 @@
+xÚíVAÀ »óúÿÏíâ"Ë
+zYf5ÆJC	ª
+A;ÄÜáéŸÂlû\,ë
+dòR.¯
+\(åe_Ýú ³æôÐµaNi5ª\ÅŒÿÐÐëaLPòò(¯ÐàÒ;×ý±2×©Ããå¯jÈN6O
+u
++é¯Ñl{y«6odúá^
+ãÚàçC[%®
+
Index: /lib/phpqrcode/cache/mask_5/mask_57_5.dat
===================================================================
--- /lib/phpqrcode/cache/mask_5/mask_57_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_5/mask_57_5.dat	(revision 6232)
@@ -0,0 +1,8 @@
+xÚíVA
+À 
+»÷5Éÿ?·NÝlª
+ZHAbBZ0aÓ
+ìÎMÆÒÃd`1Ýz'"<Õ1æ9nvÍš.ãô
+)bÝ»µ~€
+;<KÛÒöÚŸx_×Ö÷ÛEu
+3ã·][ÿ/[T«oËJÛÏµUçŸ4Ïçévå	HûPnÖäë|»òÛIm!wîL1/8,gã
Index: /lib/phpqrcode/cache/mask_5/mask_61_5.dat
===================================================================
--- /lib/phpqrcode/cache/mask_5/mask_61_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_5/mask_61_5.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíQ 
+CÿwíþóC
+ÁÕÏB
+ŸŽ.ÝwÙpí¯¯»Kvg;ÌÞû|3:ÅÆ}÷Øc0ÃŸÉŽ j­­Öj7(©lÑwe^WæJæÉŸ
+ÐSïÌwßÐt_eŸ«Î«·TæùMÏßOçsæô9ubs=Õ?þò~~­ù>9úŸÕZ#tõBÁ~
Index: /lib/phpqrcode/cache/mask_5/mask_77_5.dat
===================================================================
--- /lib/phpqrcode/cache/mask_5/mask_77_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_5/mask_77_5.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíQ 
+Cÿwõþó#&C`T£±ÃÃ6ŒÆ¹B¶ü(«Þ
+©9Ü
+Ù'ÖäÑÖìÚ¢ÓÀÀzk·å"hõÜêÝv.`
+»øâücXöB5[ñ(ÅÖF>71Ó/3ò4ÎØÎªz÷^'ÑÔÝ[Fyglg®M>OÅTLÅ4Ï{÷&3ëWy*Ê§b*Šï`ºÚ<3õ;ŽîÞVo0÷/s6nÿ§Ï0Íyaœß[ûªmácE
Index: /lib/phpqrcode/cache/mask_5/mask_81_5.dat
===================================================================
--- /lib/phpqrcode/cache/mask_5/mask_81_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_5/mask_81_5.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚíÁ
+À 
+Cï~Móÿ?·Ãtz°U4œÔ"£	}tÕÀMX2|.îÉžËF\
+ðž
+õÑÂ~mõ4 ÷±¿ØXu
+Ù, ÍÌw: EÆ>µXÿõÌ¯=_Ö]g>±>óÂÆzæ×/ë)5×k±k±kùµüZs­žXµX¿¬Y{Ü®Ñè}ô¶áç~mt¿æîìÃÏý:S#µÑ&;U#)ñÚä
Index: /lib/phpqrcode/cache/mask_5/mask_89_5.dat
===================================================================
--- /lib/phpqrcode/cache/mask_5/mask_89_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_5/mask_89_5.dat	(revision 6232)
@@ -0,0 +1,9 @@
+xÚíá
+Ã 
+ÿû4Éû¿Üþž5eÆÙå®npQ€Ž GúcÖÍfµðl^^;;b5;`¬k¶©¶UÍ¹ß®Ÿßj`ÍNósÜùùO
+=Ú\[a6Á°¶~Þ
+nLÍD?
+±!6ÄÆ°ñu
+üÈF%w¿*È¬²ÌkÎùŠf¢77SÄØbÃêXodw_ùØÂmµšââØbClüÈNÛ
+ck&äîY¯­VoÜ¡×·B×¢»ØšAl6Æ
+æJjÜx
Index: /lib/phpqrcode/cache/mask_5/mask_93_5.dat
===================================================================
--- /lib/phpqrcode/cache/mask_5/mask_93_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_5/mask_93_5.dat	(revision 6232)
@@ -0,0 +1,9 @@
+xÚíK
+Ã0
+D÷>æþë&©»ð¯µ&
+áÉÆ
+fP^Á8BY5ÊÇs(im®ŒÙÒ®€±®=fµ÷3š/wÛ§§E»¬y¯§ïYQŠwfá[}¯åš
+²[»9ï0303ÏefÇÏÌÙñ3'3=<òÆK{níæŒSgš3ü`f`f`æ¿ÌdøÞÞè®oiü£ŠÎPgø7Á
+ÌÀ
+ÌÜGµjkÞG]í}?V/æë
+kÒ×Þ÷ÀWi72JsvÃ|*"f^
Index: /lib/phpqrcode/cache/mask_5/mask_97_5.dat
===================================================================
--- /lib/phpqrcode/cache/mask_5/mask_97_5.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_5/mask_97_5.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíA 
+E÷Šœÿåf!3bf5í¯ÆŒBùé£|#f=<3l6<§_+xjÿ©ÁÛ)
+ÙÝ©Ãy°ïÿ¯ J
+¹yXiïÜ»ª5€IzsÙîcëuÄeQ¡¡ °K°K°K·d)â>,ÍŒwx®DÖ·.,ÍŸãÂsÔ%êg
+,Á,Á,=¥ëýRÐóáœŒ7uºÄK°K°ôTD÷<(n	lYþÞhÐùVÛ¹s÷Þôyž¥ŽýP±§Eñ<žöq
Index: /lib/phpqrcode/cache/mask_6/mask_101_6.dat
===================================================================
--- /lib/phpqrcode/cache/mask_6/mask_101_6.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_6/mask_101_6.dat	(revision 6232)
@@ -0,0 +1,7 @@
+xÚík
+0
+ÿç4Éý/·Ën_.Ê2#SH6±_PâÞZ ÏfË³_¡îé,ï7ØÛà+·%×åWÇÂîdÂâÏnå}_&«Ok;×úPŸÇfµ>³t
+yY×Ÿ]Öns
+°;s·æsÚ,º!Lk¬ÁÔ
+cbL12cÔX9Ëó1 ÔÀZç#XÐò±En#;ÏsvT~L~L±R11vsÆ.³1ò±¿ò1ù1ù1ÅJ1&ÆÄØÓÙÅó1ù1ù1ÅJ1&ÆÄ«²gËØ
+KLÆªjl¬¬k{gŒÚ5óKò1/ëÇù¯~,a»ùõc««ö$Þ
Index: /lib/phpqrcode/cache/mask_6/mask_105_6.dat
===================================================================
--- /lib/phpqrcode/cache/mask_6/mask_105_6.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_6/mask_105_6.dat	(revision 6232)
@@ -0,0 +1,8 @@
+xÚíQ
+@
+Dÿsäþk¡®ÙBÒZ»#o)Sd}ÌGÜ·å¹lúì¯¯Ö^úú³®)G]Sñ4ÝS
+×ëÞÞñžó?œ#BºZö:Õã+{þñÅ×s§ÁHšKþNóiIÂ!Š«mþòe1
+RWe9!ÿ¡`ö`ï¶ìUy¯Ë§uë:æª»ëÖåU=w×-ûoÔºwB·}cMÞK
+ßÃ÷è¹°{°{ä=ò
+yßÃ÷è¹°{°{ä=ò
+yßÃ÷è¹°{°wSö€caoìi'ÝföºéœõyO=CyO=Cy¯ß[÷Äó{SÞ»=;|v4}Ï¯2šž0§
Index: /lib/phpqrcode/cache/mask_6/mask_109_6.dat
===================================================================
--- /lib/phpqrcode/cache/mask_6/mask_109_6.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_6/mask_109_6.dat	(revision 6232)
@@ -0,0 +1,8 @@
+xÚíAÂ0
+ï~ýÿÏDBHÓCœHãV2Æ0Ùn¥uoªò£løì¯¯²¯Ë»=Û¢s9[õl'«ºÝ?íë7ÏíR"¯
+&§Û2ÕßÏ:7QqX_n»
+§
+û]£$ÓÕEIYôÁ*Š³ÆLüq0	0	0ù{LJýäÐ·(s\É³wôŸŠX÷-Ó7^öÑItIIIü$~?N¢0	0	0ÄOâ'ÑItg7LÂ$Lþ-¡Iuzrfr
+M÷^ê'}éÍ÷ùÉ(ÉO
+~Ré]1Y²ãLÄuÒå9ó¡
+QÍÓ
Index: /lib/phpqrcode/cache/mask_6/mask_113_6.dat
===================================================================
--- /lib/phpqrcode/cache/mask_6/mask_113_6.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_6/mask_113_6.dat	(revision 6232)
@@ -0,0 +1,10 @@
+xÚíÑÂ 
+Eßû5ôÿN£°€ÕëõÁÃÈbF6š
+on
+Ž¶¯,m>·gSÅ9ìñÞRWãœðcÇ9&»%1ùöÏ_÷Þcx= GR^°w-z?ÃêÇ³õvî=î,¹ê°}Ô¥?Ç¹Ú³:Å9mÓ=ó=@U¶ä²UX
+UXýVe
+ ³ûÕÜÅ~Õby4WúÕéiæ¿:Ýe=óó¡<SZmAWÑUtVaVaVaõZVñ«5~µüÿÕþŽåVè*º®Â*¬Â*¬Â*¬^Å*~wk¹º®¢«°
+«°
+«°ZÏªb¥õÕayT¬f«ëüjŸÖºÊ¯jÖZÏ~µÉßŽt_@Un¥Ù°ª
+ÑŸYWsVê
+¶[|H
Index: /lib/phpqrcode/cache/mask_6/mask_117_6.dat
===================================================================
--- /lib/phpqrcode/cache/mask_6/mask_117_6.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_6/mask_117_6.dat	(revision 6232)
@@ -0,0 +1,12 @@
+xÚíaÂ 
+Fÿ÷4íý/§#Ev3ŸnYÌ·/m ªYŽ©T¿õÑwm<õ~?ölûjÁGÛ×îøC×qSÿ/¯Ÿ6f£tÝ¥oï¿Óf^ûl'Ã³7`ÁZø²ÌCÊ Â?×ú¥heª®²i€¥Xq4Ó[ÙŽÔ
+aaaþû9]PÌÅñ³YÍìéM<6îçaË[äðžgÞ:£Ã0
+Ã0
+Ã0
+Ãgx8:
+ÎYãšz;7§CÑataaaøº
+³Æ±,§CÑataaáŽíþO
+çU6Ô
+«8¢âáÌ=ð
+gî÷xx\ÇµÆXÇQåt§2¬©JZä:¬gÓ
+C+\
Index: /lib/phpqrcode/cache/mask_6/mask_125_6.dat
===================================================================
--- /lib/phpqrcode/cache/mask_6/mask_125_6.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_6/mask_125_6.dat	(revision 6232)
@@ -0,0 +1,16 @@
+xÚíA0E÷ŠÜÿr3±¶&H
+°yØb+öùSlhí0Í²6LŠëöwEÍÑ¿fÇ®I
+»÷€v
+î;»íó&vw,oýÅ]ué¶dþ]|œkæ£øÞ9ÔCúŠ}îs1»9Jw9Ë¡œZb¢=ðèåPK&
+æa
+æa
+æa
+æa>ùõüÉŒÃú$<>¯OÑô
+vòÊù'ÅûËåCçÑyt
+æa
+æa
+æa
+æa~ùòõ|êÔÙ'9liÎ£óè<ÌÃ<ÌÃ<ÌÃ<ÌÃüóìIÃŠç°è<:ÎÃ<ÌÃ<ÌÃ<ÌÃü
+óÙWæÇ²žy¿:.z=¿ª
+ÝÊ¯
+sØVÃ¶E=ll_k0_#võ°³Î¯mÝ÷j
Index: /lib/phpqrcode/cache/mask_6/mask_137_6.dat
===================================================================
--- /lib/phpqrcode/cache/mask_6/mask_137_6.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_6/mask_137_6.dat	(revision 6232)
@@ -0,0 +1,12 @@
+xÚíÑ 
+Eßû5ðÿ?·e
+¥ÕÍÍ^²
+4fHåp[1-e)UQÊV¬û]UW÷Nî5ù§o*8|÷Û©ìW¹£6bk?Ý÷ÿ{f¬Žì|>ŸsÖªìür6
+ööž6«ú°6ÉrÒ¶=ûüvžÚ²þWy±Ú
+¢¶-žÊ'
+ìÀìÀÎ²ãÅ;q
+tQE>UÏ¶öf¯ê³­ìxñN
+]TcÑ(sâ®7tÝAwðÙ`v`v`v`çkvwfwtû;]«ùÞ ;èºÏ;°;°;°;çÙ!Þ;Þaoôå]ºî ;øl°;°;°;°Ã· |
+Ê· èºîà³ÁìÀìÀìì(3}ìl.­
+?«
+"Þr}äÇ;Ú\}ŒSŠÙ-AüwÚ<9;úEV'§×ôó¡ð
Index: /lib/phpqrcode/cache/mask_6/mask_141_6.dat
===================================================================
--- /lib/phpqrcode/cache/mask_6/mask_141_6.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_6/mask_141_6.dat	(revision 6232)
@@ -0,0 +1,16 @@
+xÚíaÂ 
+Fÿ÷4íý/§c Òêâ€]òØ²È
+
+¥ª[²¬€=Éð[EëÖÜósî¹m,éÛfÒn/ß|kj\ä¿òj§?gœÝþòÈ[qþû(NOZc5û©SGGP[oM×VáÖžŽéfŒ¥÷vÖL<<eÓ
++Äa*XG6¬ÄÀ)))©cLåúSœ6±tjšMö]o÷ÀßW8¿D~ñO·D£`?µ×N¡Sèk?)))*ÉþÔUü)ïÌ×?
+þSIÁ=
+t
+B§XûÁLÁLÁLÁT5Šð§®âOqæîQ Sè:ÅÚŠ`
+Š`
+Š`
+Šø3_Ÿ¡E§Ð)t
+Š`
+Š`
+Š`êâL¥¿yb*?2ÐÈT5iœ?U!ÆK÷§*ÄxéþT7iýožIÃ
+EIŠŽREÖuJ+MÆ7
+ºÄ'
Index: /lib/phpqrcode/cache/mask_6/mask_149_6.dat
===================================================================
--- /lib/phpqrcode/cache/mask_6/mask_149_6.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_6/mask_149_6.dat	(revision 6232)
@@ -0,0 +1,21 @@
+xÚíÑ
+0
+Eßó5ÍÿÿÜÆfµ47ÍÝ8UD6ËñÓÚ2ŒzŽmØpßŠªk8«»¥ö}åÅGì«ÉôÓÅëN}?}æÄW:ÈÚguàWAŽË7
+~Û;­)ÇâãÃ{ÌªÇ¿+
+ÖWPþºOÛ¢€öÍþrµE\jwG)yËàw©ÀAAAAM%òÁáæ2ùà`µµ2«d³l¯àÚ|p}ŠeqP¢è :Â 
+Â 
+Â 
+Â 
+Âàe
+jæ³=úlïþT5©É è :Â 
+Â 
+Â 
+Â 
+Âà©
+²Gÿë{ôÔdö×dÐAt
+Daaaaaï&Ø£§&Ãwè :Â 
+Â 
+Â 
+Â 
+Ö1šÒÙðÁ-MRb0éÖWfœ
+ëöèuz5&YiIÑºNÑA­»PÑQS«ÎþL}4
Index: /lib/phpqrcode/cache/mask_6/mask_157_6.dat
===================================================================
--- /lib/phpqrcode/cache/mask_6/mask_157_6.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_6/mask_157_6.dat	(revision 6232)
@@ -0,0 +1,3 @@
+xÚíÝA@DÑ}fæþÓDÐN%ŸÓn Ã§ü,ÚÖÕSVÛVí>·ÇW³Ã³»CöaïzÈ6îÝÉUüŒ~Ò»·{`nýžõÙÉÝ»dvVýy~µrÒ·Z¯"çq·Ûk{>g$ÅáXK¶õÈU}m\b÷ja€GÞxÅ,f1YÌbö¿òÙ]œz¬­Ìœ^¯.ë5Ó[?Öå¬³r³Å,f1YÌòY>Ëgù¬³rVÎb³Å,f1Y>Ëgù,³rVÎúmYÌb³Å,fù,å³|VÎÊY9YÌb³Å,fù,å³|VÎÊY9+g1YÌb³ýÙ	œÌŠM7>2{9zºÏ¶hm3Éçûlò|ã
+9ßxóÙŒä#f#x6	ÿ³-îvë%
+N'
Index: /lib/phpqrcode/cache/mask_6/mask_169_6.dat
===================================================================
--- /lib/phpqrcode/cache/mask_6/mask_169_6.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_6/mask_169_6.dat	(revision 6232)
@@ -0,0 +1,3 @@
+xÚíÝáJÃ0Ðÿ÷i÷9[ÛJÓÉók{²1Äb!gßnhHkSë­-­V?·¯KI¯»ïôó×ÏÝ1íý1Ýû§Æ£Ý/œš·ÁæÉ`þê/zû)*º=°3Úì¿g6
+õöý^k6ÖÓ5CæÇéêYË<ÉKšÍkMùÚã[õy@ÓGµ&_=~¢²Ï>ûì³Ï>ûì³ûãµŸ +õþõ'{«Õ§_õVËÚx­-âJýËø<ÓÜûr_î³Ï>ûì³Ï>ûì³iûêý;×ûù÷ör­OîË}¹/÷Ùg}öÙg}öÙ¿Š}õþœë}÷öŒx­OîË}¹/÷Ùg}öÙg}öÙ·Gœo/{{ìåûr_îûÎÏ>ûì³Ï>ûì³o/zß^
+÷öØË#÷åŸÜ÷}öÙg}öÙ¿ý£d²ì'Ê³µ|ÔQRœßNSï·Ã3¹êý³ËÓãÏåYÖú²ÏäÚ³ÿZÉ'Çms¿EÇ·j5ø
Index: /lib/phpqrcode/cache/mask_6/mask_173_6.dat
===================================================================
--- /lib/phpqrcode/cache/mask_6/mask_173_6.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_6/mask_173_6.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíÝaÂ0Ðÿ9MrÿËí¢­M SÜ*:a_-²5hh_¿)©uÛZÖ­
+[éþ®÷ŠlïÓoûÛsmKúíøNÇ{òÿãHÌ?x­Ï`l#fï9>Ú[¯õeé·ÐÏß­¡	ï?þ^ìóöm÷ó®­ð*û/KËm¿ãhËy%ÞËv-nKl¥í»Âèí€kK
+žL`À&&Ìê	g5¯µ(·gºwxôY¢ÜîÞáaÂ¬pVcøZ[Æ#O=¡ëSNä9ÁœÀ&0	L`Ç¥ê	¹ç't­jj]QNä9ÁœÀ&0	L`ÁsÌYRcü@QNä9	L`À&0	L`ç"ÍYRcô\€ 'È	rÀ&0	L`ÀÏE³€Æè¹H9ANä&0	L`À&ü²¯
+7pÜ6¯`Â|õ²¬õhmžsò¯
+××ëR5Æ¬³ÆœÈ	k\ÌX/²Ï		)÷g9È
Index: /lib/phpqrcode/cache/mask_6/mask_177_6.dat
===================================================================
--- /lib/phpqrcode/cache/mask_6/mask_177_6.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_6/mask_177_6.dat	(revision 6232)
@@ -0,0 +1,19 @@
+xÚíÝÑn 
+á{ÞÿåÚ€*4vÛŽuŠû¡1£²ø{<L­GiKí¥
+¿ëGUÌíäß÷Ç]çmÜ/ó6ÜÛjÿõ?mZ€müzÌy/úÎŸgÍjÏÿ\ÌÕ¢<`Å_¶ã>f{¿Ð¿
+³_ñù,¶,K9o 4Çµô
+ù7lËñÞniJiggiår<€-MGÆ
+¬À
+¬À
+¬À
+¬xuVÄ÷+zÌÒRøCÌr9+Gqç6ÞQWñb"ø×Qe×ï"ùWLº® +è
+ß XXXXX/Á|~Åj,ÖnÖmuŒMÞæÚÛ€+è
+º®ð
+XXXXXñ¯Ya,±XŒÍ;ŒMº® +è
+ß XXXXXæe)oÓ<Sº® +è
+¬À
+¬À
+¬À
+¬À
+¬À
+¬0ÏÔX,ÞŠyŠt]AWÐXXXXX;V€Hù92m¬Øe3éWdÉQØÇbeÉQØœÍ]>ÓÞf|Š·5²Hûžëí¥÷7/D
Index: /lib/phpqrcode/cache/mask_6/mask_21_6.dat
===================================================================
--- /lib/phpqrcode/cache/mask_6/mask_21_6.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_6/mask_21_6.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚQÀ Cÿ9M{ÿËi
+]èÒýX1€À Å-œ
+C!»É³Dìû7
+W
+ìÙ§Ø&rDñ)~Î]<MÎ ·3(>{ïA
+¡«ÿía²ŒSý
Index: /lib/phpqrcode/cache/mask_6/mask_25_6.dat
===================================================================
--- /lib/phpqrcode/cache/mask_6/mask_25_6.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_6/mask_25_6.dat	(revision 6232)
@@ -0,0 +1,1 @@
+xÚQAÀ »÷5öÿÛ2)êe+Ä(XmÊZtÆ*(õÚ¹«;ÃçtJã<å³_Ú€3°oÜœÚŽ"Ì¢a²zh}Ñ&qvµSGÊÖ,ó-÷JÍ4}³ŠoS[âü}w
Index: /lib/phpqrcode/cache/mask_6/mask_29_6.dat
===================================================================
--- /lib/phpqrcode/cache/mask_6/mask_29_6.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_6/mask_29_6.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚÕRA
+À0
+ºûäÿÛXcÔõ²ÓL(4EÔB
+8CÖÜŸÞ³nÃM©+lÇªÃÕOé1]&Ú¥4UëD-6-$:6ÊdZá?yæÛlôÝf£?í
+å8?ß²±<Ûlô}¹ggöí *
Index: /lib/phpqrcode/cache/mask_6/mask_37_6.dat
===================================================================
--- /lib/phpqrcode/cache/mask_6/mask_37_6.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_6/mask_37_6.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíAÀ ïŒýÿçÚT `œôèj<PÜ0¡¢jB#ÿ&Žâù,YoŽîê
+fU¯Ùjó*UõÕúÑYÀ¬[oY5
+~5
+T7bnb, 
+]ÆËûñü³Š-¹Ñ÷ñÃÌqF:s¢tæDcèØhÙ
Index: /lib/phpqrcode/cache/mask_6/mask_49_6.dat
===================================================================
--- /lib/phpqrcode/cache/mask_6/mask_49_6.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_6/mask_49_6.dat	(revision 6232)
@@ -0,0 +1,3 @@
+xÚíVQÅ ûïiàþ{K&·ÂêÇûYX€³ØÙ0ïÌŠ!=Ûý­tÇån&ÅðfpWL
+±`€/¯<ÏKVrU¢\1öbGpáê@ÄìÓ&fNë/+ÆœqÙà ¢`ðàòAWÿçêSÉßRGpõþ_5
+|Æ|zÀ×xÎœ:ž¢ªåJ©+WE©m4hÛ4Ú3tÜ­.×Á©A­g`\ÉÒù¬÷Ê€þ*ÙÅFÈô
Index: /lib/phpqrcode/cache/mask_6/mask_57_6.dat
===================================================================
--- /lib/phpqrcode/cache/mask_6/mask_57_6.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_6/mask_57_6.dat	(revision 6232)
@@ -0,0 +1,3 @@
+xÚíWÑÃ |çkàÿ®KŠÂÜQ¹-Ë^@cª"Wr^UYÅÔMÂ³>_Ý`åÃî8Š¹GÁ1`BÝ`;»ù+ØÂì}åÄÌØ&s£Òç]<§J
+QF=mb3 UF'ÚØ6¶ÆáE âü¹5õJa÷wZØÖù60¢¬
+ß[¹·ë¶9¡±ý9¶ì{ÁSÛ\Ý8Õ`k&­Áos}{â[RßŸý[¥+þwðºÕOèd^jW
Index: /lib/phpqrcode/cache/mask_6/mask_61_6.dat
===================================================================
--- /lib/phpqrcode/cache/mask_6/mask_61_6.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_6/mask_61_6.dat	(revision 6232)
@@ -0,0 +1,4 @@
+xÚíKÀ D÷sžÿåÚ€µE~ÝihÌÄ'
+ÑÍÀòNÏ'oVWßéà£jspèÚCzÓþìÑÎ¿©¥ÃaîšÌÏg!«
+#WD%~ÜËY?±JÛfÚåREž¢ÁKoæÍŒÇ§ü|ÉË*ÌOÿP7 åÛnŸëŒœ¥7ósã
+`œïÌÍÖÀõsúåçdôDŸÿ¹sé~>ý<ßiÌK'l'ž×9¥ûÐ%.ÆîÄ7
Index: /lib/phpqrcode/cache/mask_6/mask_65_6.dat
===================================================================
--- /lib/phpqrcode/cache/mask_6/mask_65_6.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_6/mask_65_6.dat	(revision 6232)
@@ -0,0 +1,9 @@
+xÚíWQÅ ûïiäþ{KNLk?e$QŽikÝìÆÚ4žçö1{áð
+×`+®!úÚ®ºM
+Á?
+áû 
+°È1b°8
+£·Š.Þ^wÌÞò¹ìèsn²ÁFjè5¹
+EaQX|=wäŒ@°2v<òÅÅ»|4w»êê\Ô
+UXÇBQz+óÊT±ÈTÇ¹ÖcøBÓz/4­ç8Õë,»5Ý
+`¡¥š»ý¹È± üOV$
Index: /lib/phpqrcode/cache/mask_6/mask_69_6.dat
===================================================================
--- /lib/phpqrcode/cache/mask_6/mask_69_6.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_6/mask_69_6.dat	(revision 6232)
@@ -0,0 +1,8 @@
+xÚíKÄ @÷î¹dThÃðíŠ	hLSSEq	eY@<ã¯+Þ*£|ßçª®
+%®>¥¡š®¹zÃ*7ëÅeŽ€öÆ6ãQ¶œ©S`Þ.²¯>»sE
+Ë'š%@[6°@PË0Ãh
+£aôFÕxtpl²2§Âóý
+Q-g1
+Nfeo^ßøÑüëÑ0F¯dT>N_ÕOöwËG3ìùªuåÁ»gå
+{3<Ê[Ôº
+b?Â'6ï^º
Index: /lib/phpqrcode/cache/mask_6/mask_77_6.dat
===================================================================
--- /lib/phpqrcode/cache/mask_6/mask_77_6.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_6/mask_77_6.dat	(revision 6232)
@@ -0,0 +1,8 @@
+xÚíÑÃ EßùøÿÛ²iÙÅVäaË.Š±F©§pSTYÖô4q÷ú~Žz
+«=ä:öÍ
+û6îøÍüôm8Ÿ:#0PØ¶iDy:
+2Å '§ùZ­s±&}Ïôçæ»\r0\¥ÅXw¬Â;iP¬äàÈL)ÒS¬±£eÔÜ{hDu9÷
+Lbœ©JÞÒS÷
+SÆ))ÞgZ{÷þeÜøé)ãqJŠdú
+Lw+#Ó3-V0ÅÕ·lîj¹ýÚ ×S-ÕS
+êœ9=Ý¯÷Š5ÁPPïõq1Mõ?ågÓ
Index: /lib/phpqrcode/cache/mask_6/mask_81_6.dat
===================================================================
--- /lib/phpqrcode/cache/mask_6/mask_81_6.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_6/mask_81_6.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíQ0Dÿ9
+Üÿr»ÉÚR³LÕvökÆ`Ž€¯0	º;æi6ÜûçÑÚ\|ñí_¿êccÔ1«¢hŸýu§œioÞó#2¬}x*.YûtÃ&ž­±
+Ö°¶ÀÖq
+/K;3ÌväeÐÌ¢ÈÒAÛH±ë?`]é5ÒðK¿¡ÊüŽw¿!}{ZÃ»ß²W
+yâ·ŸÀ^§_y­Œk±k±^K¯×ªáb-ÖbÝYSÚž'ÖNóÈuÃ×õÕ#MœfõHS¯Q?|]¯IýðA¯ÆÚiMû÷yíì€yuWà
Index: /lib/phpqrcode/cache/mask_6/mask_97_6.dat
===================================================================
--- /lib/phpqrcode/cache/mask_6/mask_97_6.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_6/mask_97_6.dat	(revision 6232)
@@ -0,0 +1,8 @@
+xÚía0
+ÿsžÿå¶dÅêÒÒFx[²=4ÆHùoj3«4í&§s}¹*Ã
+÷a
+Vžc&3êÜ5arWç^aþ«÷LClÉÒzqì,ÝÌÑ1xî
+µSQ»
+N»ô»]·¢/GiuÄ`&æ ¢w%,%²DÈYú"Kœtž€+åHE'|R2Ï(v1šöv¢ÿqiëëqd,%²D~¥è%Ø»Jjï}íÍºÄºÄg
+Y"Kd,ý+Kñö
+]Wtë+sF/)ü]¥.zNòÚÝ'`°>®œ1='#`+b¥l]Z±¶­¬ýð
Index: /lib/phpqrcode/cache/mask_7/mask_101_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_101_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_101_7.dat	(revision 6232)
@@ -0,0 +1,9 @@
+xÚíQÃ 
+Cÿ}rÿËmÊ`
+éÚÊfªjòTé#±¥ÔäÞ54'tûí
+îfŒaÈÐo°$±c<ÙËêãÝÓÕñHÝ Ìh8lÕÛûþÁëo=œÄÅ§àHvº©;z€!|/FÐ3cfÌS×Ê
+±±
+ãŒêñ
+8©K)4©9 Qç1ç1×J3fÆÌØÅS+ÅwÖcçõóók¥3cfìºùîâŸzÌyÌyÌµÒ±1Š{š²bL÷¶çÍXS+óï.to{>ôîmO§ÇJ2²
+û3cÄ<6ãXn0FŽ
+)
Index: /lib/phpqrcode/cache/mask_7/mask_105_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_105_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_105_7.dat	(revision 6232)
@@ -0,0 +1,8 @@
+xÚíA
+Ä0E÷Fï¹a MÒNŸPx)žpQ£Œè_è~|Ã±
+(b¿Fç$.a¿oÝòWÿGNÚPæUÇ·Mþ%{ëoôHQôÙUñl¯ÖŽ¿¬L^>+Éçm­#{°{eo&Y2sÛoM)gncO9sßZ³Ž3wÇoÚ+Âè{ô=f.ìÁ
+ìÁ
+zœÞ£ïÑ÷¹°{°{è=ô
+zŸGßcæÂ
+ìÁÞsÙkCQÏpÓíÊ^¶&Ñ{^£÷ŒNï­Ê·UïÕìï
+ìe5°ç}¯æEwGûßn+o
Index: /lib/phpqrcode/cache/mask_7/mask_109_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_109_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_109_7.dat	(revision 6232)
@@ -0,0 +1,8 @@
+xÚíA
+
+0
+D÷9MrÿË}µÚ*
+_x-dú:Î"îÇ¢Ý-kÅ"âš¢d{¿Õ»ü€·ñã¯ó³ÞÊ×É¬|<b2+ßU
+á¶ý­ÊîÚ%Z}.Úq%Gi²Ÿ¶h
+QA9IIüG&É·<ßø oÍ:Ï,ubÞ2}ãmÞ_
+D'ÑIIIÄOâ'ñè$:	0	0	øIü$~D'ùwÃ$LÂäTÌOvLVOO^<ÓøÉòùÉÞOúbµÄOºÎOºÖOºÊÞt\3¬®<ÊGŒÍ«
Index: /lib/phpqrcode/cache/mask_7/mask_113_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_113_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_113_7.dat	(revision 6232)
@@ -0,0 +1,12 @@
+xÚíQ Dÿ÷4pÿËµMŽPeQ6éÃd?Ôž°>'ÒÚràQ5+	sû¡)ÛcÕê7úÕ-ÑÕó»1nníºqÿÉÔÍJtgô¬^îÊwÿÌÅ-ù?ÿ*&Mmý@ee5éø^Ñ
+c¢°
+«°
+«ÀªÒ,¬¶ýªïbï\1¿×3ýjõ4ó
+ØT¿ZfÅ¢·»oé¯ «è*º
+«°
+«°
+«°:Uüêt¿*ü¿úœ¹º®¢«°
+«°
+«°
+«XÅ¯²0<·BWÑUtVaVaVYÕl
+Þ°ªÙkýf5éýª_Ö ¿ªÙkýáW5{­«µä5pnõC¬éªZ:¬Å	bv
Index: /lib/phpqrcode/cache/mask_7/mask_117_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_117_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_117_7.dat	(revision 6232)
@@ -0,0 +1,15 @@
+xÚíYÃ 
+Dÿç4pÿËU²ÈêIª>"ù%6æed
+Ò8rðS
+ÍNsµU¯ánëk5ŠXe­øjÑ»Þª®uÛîŠô¿ö±VÛXgøê,l`øøîuÝÊÀî÷£!hXZù\VãlM±ìë|[Í¬ÝÂ0
+Ã0
+Ã0
+ÿÃí#hF'ëøc]²±
+ŸŠiéí>ìúûHÐat
+aaa~<ÃÔÃzØyÆqkO£Ãè0
+Ã0
+Ã0
+ÃðÃŠ
+æãª
+FÑaaaþ)§2ÇË°éfÃáþ%Àz8ùëátO=Œâ3ÿ=áÖî3Ü:ìÿcw
+ûV$¢
Index: /lib/phpqrcode/cache/mask_7/mask_121_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_121_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_121_7.dat	(revision 6232)
@@ -0,0 +1,11 @@
+xÚí[
+Ä 
+Eÿ³dÿú°Æi;^az,ø#6Æ^rÝ×§h¶ôµÈêÐ&ÝìšçÜ^amýËÀY9×_ÒØºô5C·r6ë®ðt^ù^ÅWlûÅÐEäôØ²~É¿|èM®èmýÁåÛmSò}÷¶Ó(
+Û°
+Û°
+Û°}mQœ]Z§Vüqœ]ŒÓvËÑ²"M¹1fÙúGÔÛÛ,
+qœœÍB·Ñmt¶a¶a¶a¶ÂöÄz»eF²3»cxI¹D·Ñmt¶a¶a¶a¶ÿmÎnðÃœ$ºn£Û°
+Û°
+Û°
+Ûa[}ïŠ`[yëæÀö°ŸÞÞ»)Ïn<¹æ4ÜKú
+/éóŒ€O¢»s§lšnçlÔmµÝ/GëÙ
Index: /lib/phpqrcode/cache/mask_7/mask_137_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_137_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_137_7.dat	(revision 6232)
@@ -0,0 +1,15 @@
+xÚíÝ
+Ã 
+Fïó4úþ/·
+úc§«_Ç+ž{üSÚK<E±Ó%umÄ¶OÄÃcåPÕNsûÑuõÝß+
+Ò
+ÊºQS,E)Öµ÷^ÿfŒÕaç_ÃHkoKrÇ6»DÓZQöïÚö	F><ÂÚÎo[l
+ìÀìÀÎ²Ó
+©ý0û¡7ÖµVÆl;b¶ëü
+è7æõfMŸSŽî ;è1ìÀìÀìÀìL³CŸ<ßQíï­[+@wÐ
+t
+v`v`v`v&Ù!ß	ï°7ÚX+@wÐ
+t
+v`v`v`v8
+ÊYPÎ¢;èºCÌ;°;°;°saG{Ä;Ú»>vR|Çåùö®KŸ£œë£ØMÎðHÖ
+³#Ð(SËÎòúqÌçd
Index: /lib/phpqrcode/cache/mask_7/mask_141_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_141_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_141_7.dat	(revision 6232)
@@ -0,0 +1,8 @@
+xÚíA 
+E÷=
+ÜÿrIëTY@¿ÉÃÅ0!µøø|1²t¹bG0µæÔÑ€
+s¡2Z/îç¿oaìøÜ\ÿq¬ãzÜÛOnÒMºÏñÞnñtáX"KÿmeM}çÚòCpµíÄPL^Ÿµ
+S0S0S0S£L	ø)ÇÚêYßŸ%ÔbÑý,õS©l?ÕzC§Ð)tµLÁLÁLÁLI2
+zRX¶hŸ£@§Ð)tµLÁLÁLÁLI1
+zbÏ·óB§Ð)Ö~0S0S0S0Å7Žø)ö|ùB§Ð)))©÷3Õ«L%
+tfª¬wM±*:~ªhù©»¡Zºç«sncª÷$1UTtJgÆ8ÌÕOYºE
Index: /lib/phpqrcode/cache/mask_7/mask_145_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_145_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_145_7.dat	(revision 6232)
@@ -0,0 +1,14 @@
+xÚíÑ
+Ã 
+Eßó5úÿ?W6Zµ Š-^é±à2q§×ÄbG¢X6(ÆuÍ"LbÑbÝGuû÷ÎŒ®··Gkøš:HwA[¿jÔm¯øH¢ø¬Ýï3ïÅ¬ýîßâOðkQ{l·|ê»èTEmÇ
+JfÙLÊ?Ú2
+"&Á¬Á¬Á¬Á¬ÁÚ¬)Äk©ÝRf¢µÙcïÑÌÓåFÑ,§z©Š=èº®±5X5X5Xµ7±FŒ¶\ŒŠpÚUs#èº®±5X5X5Xµ°FŒ¶dŒÆYöÜº®¡kì!a
+Ö`
+Ö`
+Ö`o×8ËæÛct
+]C×ØCÂ¬Á¬Á¬
+gMå
+­5
+[ŽN¬%éÄk÷hñZp®?¯IÜ£Ï²^n$ÑæÞY7A×
+ÖÆëZP[¶
+fÈ0
Index: /lib/phpqrcode/cache/mask_7/mask_149_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_149_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_149_7.dat	(revision 6232)
@@ -0,0 +1,17 @@
+xÚíÜÑnÃ 
+
+á{?
+ŒÿËuÚ­
+Ž2»ÕG$ncççÈF¡µKëÉ×Ðb3ª÷ôþÖªt³îûªPc
+çÌ¥Ó7[¢?9:ñÕý['éÁë9'Ÿ*Ó
+
+àGæÜa°œhÖ_¿¹/«zÁ+Î6XB>ê2ôqYÀJ
+0Êùé»BfaÄ 1Áª
+È9c7Gë	ùOl©ô,Å^¥ßÅêœòÁ3ÕòA:Hé 
+Ä 1A
+bÄàÿ0X4%Ù«œû#ÇÔd>¢&Cé 
+€Ä 1A
+b<A{ôo¿G¯&óLMÒA:H1A
+bÄ 1è¿	{ôj2þ tbÄ 1A
+&1Xç`Œ_
+Ö9ÛðÊ`«®B¶G_çlÃ5:g5¶ajMæÍLÔÁËèIý	<|r.
Index: /lib/phpqrcode/cache/mask_7/mask_153_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_153_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_153_7.dat	(revision 6232)
@@ -0,0 +1,10 @@
+xÚíÜQ0á÷=
+œÿåB5
+Ñæ€/Í²åïØIÙiº^-àî®Zkm|»YDhë9
+ÎêÃ\{KÇÆ¶·{y³Ç3ßv¶Ì»E]u`RÚÇrý"ß}ÛY
+œëeÂ2{ÛVV8][×.n:+2_ç¶ÊÂBÃ&6±MlbØÄ&6ß`3i¿9Y³³åÎè«¡yÙúU}Ô82f-vÚÕ6 nÒMºI7±MlbØÄ&6±ùólæî7ãÎ
+ðþÕ
+¢tnÒMlbØÄ&6±Mlþ2Î
+üÍÙ^Ð/nÒMºI7±MlbØÄ&6±é;gxAŸC¡tnúOMlbØÄ&6±yÍyÇfP¥Õ[64
+ºßÌ«Ùk`v^Ð+Ó9Ä
+Ê¬OÛ±ùð}Ïæš+ZXíè®=:iWE
Index: /lib/phpqrcode/cache/mask_7/mask_157_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_157_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_157_7.dat	(revision 6232)
@@ -0,0 +1,5 @@
+xÚíÜM
+0Eáù[M²ÿÍ­ü£s¡_
+
+ÇÛã ­}F¹QksœÌ{Ý%¶WqÛ÷×îø.­¬ÝþÏ¯­]Ü8evVœßbvV}è®_µÜEÌ»n3W^KÃ\`äÖVìºœçZl³Å,f1YÌþ;³af±Ôk·Þš×úiàèÁÄzÍôÖËz?urVÎÊY9YÌb³Å,fù,å³|VÎÊY9+g1YÌb³Å,å³|ÏÊY9+gý7Æ,f1YÌb³|ÏòY>+gå¬Å,f1YÌb³|ÏòY>+gå¬³Å,f1YÌþÈlâùÆ³i§oý.\ŠÏÆo<úl;9º:Âg[®Ï¶lmÁÔ^I>=gÏ³-yk_
+TAµ
Index: /lib/phpqrcode/cache/mask_7/mask_161_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_161_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_161_7.dat	(revision 6232)
@@ -0,0 +1,4 @@
+xÚíÜÑÂ 
+áûyòþ/çšE)Æ®î1~4áÂý93,ËµŽ «+µØZT=Zeâ¶C»¹ú.<sþô¹vÙÞÏ>~ißµ§¯ÊÞÖ&>,ÿÔïŽ6eù·íÖ~,láW]ì
+®»º2Íêêº±Ý\Ñþ;×µ2j"±e,ËrXÝµVÓ(ícìµµZÓ1§8Þ©í§±/,'ÇØt.Óeºe,cËXÆ2±åß±,_þ|ytõüç£ï|ÎÜ]ŠËt.cËXÆ2±e,cyËòå/É­ysî.ÓeºL±e,cËXÆ2±lo
+|ÙZ{+è2]ŠËbl,cËXÆ2±e{+äËÖØ[Aé2]ŠËXÆ2±e,c9åÌCÐXÎ<ëþÆò/owsPŸyÖý]ŸyÖ}·VdÙìæ°¹¯d9JÓì)Ë1õ	jI2ë
Index: /lib/phpqrcode/cache/mask_7/mask_165_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_165_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_165_7.dat	(revision 6232)
@@ -0,0 +1,2 @@
+xÚíÝQ0Ðÿ·²ÿÍM&A,NËÌš!x0é&XZ×Z»-KØ«[êÞÉeÉjœëæx,§Œú.ï·g}ë`;ÿþþ+k{ËÑ~1ÿ}á+k{ËØ¥ŸSGùWãgî}Ý¬@Û?_µö8íŸo+·k][·hôWü8~·u·ÜMÆgqÆg|j<õ·ú¶¶Ú*ßq=<¯Ïü€æÛRwÆëñÕøøÌüÄÌéÈq9.Çå8ã3Î8ã3Î8ãIÆÕãUGÿ?~µsnr\Ëq9Î8ã3Î8ã3ÎxqõøÇÕã®yç979.Çåž
+gqÆgqÆgÜ=)êq×Àž'EËq9.ÇgqÆgqÆwOzÜ50îIãr\û­Î8ã3Î8ã_ÆøVvd}²ÇÞøü¡aõxË¯ÇÛ5êñã)¹&ÿ9)ñÙÞfŒ¥çxþ3øYH]ûS^*/
Index: /lib/phpqrcode/cache/mask_7/mask_173_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_173_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_173_7.dat	(revision 6232)
@@ -0,0 +1,8 @@
+xÚíÝÝjÃ0
+Ð{=Mòþ/·
+RbÖH¬û«Žrj\Ç=ý,
+ºm·coúZ8;»ïmÏ÷œmÛÝë±
+0b÷_ßt$
+~Wu5ÛÇNnÜ'?dÕf2¶í(oÁïßGÚ,Løþù÷õ6_{»zÅÑ÷Æ?
+Ë9úwq9Ç
+àS!ÆëÛ9Îoëî2	L`pµ¬O»Enï¶v8L²v8Lžº	UáY×"ûd}ê	Kr 'È	ÖL`À&0	L`B'fÕ:ïO8ÛTcTc\kr 'È	ÖL`À&0	L`BìY²gIñ§kr 'È	ÖL`À&0	L`ç"íYRcô\€ 'È	rÀ&0	L`ÀÏEÚ³€Æè¹H9ANä&0	L`À&ü'úÿ!Ø;êÅq+¶Yõl*ŽÜ³Žþ=Øã9¶j[2ÚÖÿ	MsÂ€Ôç­ë*Ø
Index: /lib/phpqrcode/cache/mask_7/mask_21_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_21_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_21_7.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚQ
+À0
+Bÿ=Þÿr]-?]Rlä
+Ý2Š¹nc
+ð[¹öÝnùAÃ".j+êi
+~x3<úaXÚ{HÖC1xÉÀ)âá€üSå
Index: /lib/phpqrcode/cache/mask_7/mask_25_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_25_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_25_7.dat	(revision 6232)
@@ -0,0 +1,7 @@
+xÚQAÀ »÷5ôÿ[F@©àaÄÔÖZÌ²
+
+
+>;ÐÀQ±ÊIÖÀQH8RÿŒñÒGÉ"èz,ùœ&ñþ;±­
+Ð'oñ»97
+%P8%
+÷6oÇœ;]ÞúNWnÝ[äf7¹ÌÕvÔ
Index: /lib/phpqrcode/cache/mask_7/mask_29_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_29_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_29_7.dat	(revision 6232)
@@ -0,0 +1,3 @@
+xÚÕR9À 
+Ûýøÿ«ÈQpX$læÅ²f!I2pgSãªêªMZj·ºóÌÃÂ<K.êØ·
+ÂÇ­Ñê^D/è_y/ßgcxVÙ0Bf#Öÿ]BÇÏœÊ³hí9Þ¹ËóÀ^ä
Index: /lib/phpqrcode/cache/mask_7/mask_33_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_33_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_33_7.dat	(revision 6232)
@@ -0,0 +1,4 @@
+xÚíSAÀ@ŒÏkøÿç6ššá²Ç8Èì0
+7-n ZbE0¶"£°t
+]
+£µ3Ztqúó>"útðï¡e0Ÿ¿#Ô`_Ë1-±ÞóéŽcâÝÍ÷òha÷~/¡Eh4ŠÅæ"ä~Ï	
Index: /lib/phpqrcode/cache/mask_7/mask_41_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_41_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_41_7.dat	(revision 6232)
@@ -0,0 +1,4 @@
+xÚíTAÀ »÷5ôÿ[fDYæ(O^¬ÅbR3/~t/L"¹Ä7SQQ
+
+5
+jÔ\SiíñÎb£ß#ÕÈÂ×+Ç£€w#æzõx?Þãœ§A-ëwuæY7$b.%AËÇ;w«Rµ÷ñïoxG}?
Index: /lib/phpqrcode/cache/mask_7/mask_49_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_49_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_49_7.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚíVË0»÷kàÿÎhC-X.Æ<ìšh6Ì
+3Àœð,B
+Ôó,ç@Ïd5$Kž"T|p%9"Œypæ,ïâæ¡=<ÆÉm¡÷Ô!«?žŠ÷DÀW"²(®žAó-Ö\-
+J\©{0p¥lÁWW]Ò
+4º?4h=
+Z_Öd+ýg(æ*ã*+ë¶µ(ÏÇæ
Index: /lib/phpqrcode/cache/mask_7/mask_53_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_53_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_53_7.dat	(revision 6232)
@@ -0,0 +1,11 @@
+xÚíKÀ D÷sŒÿå&ŽRåkºiª&,H)øtD×jÁ
+=šµÐÎQa«P"d¹s1ZyC®|hey
+­üCvéaH°7ø+ùO
+Åu¥QÎsZtb
+°Íð7
+µvãúÀ­hVµÌ
+µ~èùà·1#ÿ~[Ëf
+ùÙæfHkZ¶Jtµm
+ZÎÏ6œÉsÕúá
+wžrÍ&C×
+ß¶f
Index: /lib/phpqrcode/cache/mask_7/mask_57_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_57_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_57_7.dat	(revision 6232)
@@ -0,0 +1,7 @@
+xÚíA0ïûöÿ3&ÒH)KbŒÐ&
+
+qÅÖÕ[-ÌÀÞÏÖ
+
+Ú9Ér¡Ys
+×.«ÎiÝÓŸ`ŽìòØú~­ëGé{ciÕ»\Y<.©|·Åì2ŽØÛÙ2 QQ[[÷^N·ë88œ
+líÏÃÁ[}[Pl?g+o*Ï4W¶û1 	ü Õ33Ò[¿\Gosó­bkèmmËômîÿÊ^¬¢hë
Index: /lib/phpqrcode/cache/mask_7/mask_61_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_61_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_61_7.dat	(revision 6232)
@@ -0,0 +1,9 @@
+xÚíK
+À 
+D÷säþ+-µ*5ÿm²€caT¢1Ø9YÌì§êL9Â
+ç³¶¬²çísù//iÊ\éb®ö©æÂÄ«âÞë-"^²DH-
+iÝ;bnA¢Œ7ófîe
+t¶7Ù·
+yÌ£E:r<4ß6ó(üu÷y{K3oæ"óÌý|a
+œoÌ?áïç«òŽpù9åýj~NêÆÈìs¹ÑçTYú¡
+Âu
Index: /lib/phpqrcode/cache/mask_7/mask_65_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_65_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_65_7.dat	(revision 6232)
@@ -0,0 +1,8 @@
+xÚíA 
+ïûøÿçI*í6^L!é
+°¶
+ži)mTÇT] VW
+\ï9e@4Ku^Â#N%:ö,ÖÙmYÈÂJNãè9¯à¶©vAè2úþÑÏHÉ"YüÅÜö
++?`ýBXDüBXÌœ{¿Á.³Ëwÿšd,~Îk
+,ž^ïbQâ~±.Ãà\¯wó
+®×ë^«Ï÷îOYÞEôJmXâÑÏ"%
Index: /lib/phpqrcode/cache/mask_7/mask_81_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_81_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_81_7.dat	(revision 6232)
@@ -0,0 +1,6 @@
+xÚíÁÄ Dïó5ðÿ?×lÒ"ÍÝ¹u4áÀa>ukv
+oÌ40Ý÷ãT±%9¯Ô6²ü÷ªU5*s
+I{`¹ªÿ_²>S?ç}(:yâTïlï{G&E\Ö6šõ}"A€Xõ
+XÏ¬«²³Ç<Âmwx°fÜáG<k£ræU
+eî«ÎµÎµXµXµüZ~­s­;\¬ÅZ¬3ëž|y¬	/ÍwÖÕÃpË¯ë×Æ÷ëUÛ[~Í}O¬«oÓ`mÌsÍÝ€)
+~,Ý
Index: /lib/phpqrcode/cache/mask_7/mask_97_7.dat
===================================================================
--- /lib/phpqrcode/cache/mask_7/mask_97_7.dat	(revision 6232)
+++ /lib/phpqrcode/cache/mask_7/mask_97_7.dat	(revision 6232)
@@ -0,0 +1,7 @@
+xÚíá0ÿßÓÀû¿Ü²D[ÌÚâV.K¶«Iÿ`
+â'³sxáº÷Âyäå$ùxãxÃ"Îéª×=
+O^&pêb¶ÊÈYÊ¬$êKÝ£àÁÉ8K
+Ë
+ÎeÃó¡¥	Ôø3:$bI,%±$ÄÒYbè¥¶
+M)¯Tô
+%q®¬Èôç¶ŠEÿX}jlØTTôKbI,%±ô,ñõã_e[%íýöV]R]Ò;N,%±$þ%V@`Ñ%pa©m§(}ñ_¥%í%ÚÛžÚÛøÚÛÈ4¥='u)ai¿.;MŸù>
Index: /lib/phpqrcode/index.php
===================================================================
--- /lib/phpqrcode/index.php	(revision 6232)
+++ /lib/phpqrcode/index.php	(revision 6232)
@@ -0,0 +1,94 @@
+<?php    
+/*
+ * PHP QR Code encoder
+ *
+ * Exemplatory usage
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+    
+    echo "<h1>PHP QR Code</h1><hr/>";
+    
+    //set it to writable location, a place for temp generated PNG files
+    $PNG_TEMP_DIR = dirname(__FILE__).DIRECTORY_SEPARATOR.'temp'.DIRECTORY_SEPARATOR;
+    
+    //html PNG location prefix
+    $PNG_WEB_DIR = 'temp/';
+
+    include "qrlib.php";    
+    
+    //ofcourse we need rights to create temp dir
+    if (!file_exists($PNG_TEMP_DIR))
+        mkdir($PNG_TEMP_DIR);
+    
+    
+    $filename = $PNG_TEMP_DIR.'test.png';
+    
+    //processing form input
+    //remember to sanitize user input in real-life solution !!!
+    $errorCorrectionLevel = 'L';
+    if (isset($_REQUEST['level']) && in_array($_REQUEST['level'], array('L','M','Q','H')))
+        $errorCorrectionLevel = $_REQUEST['level'];    
+
+    $matrixPointSize = 4;
+    if (isset($_REQUEST['size']))
+        $matrixPointSize = min(max((int)$_REQUEST['size'], 1), 10);
+
+
+    if (isset($_REQUEST['data'])) { 
+    
+        //it's very important!
+        if (trim($_REQUEST['data']) == '')
+            die('data cannot be empty! <a href="?">back</a>');
+            
+        // user data
+        $filename = $PNG_TEMP_DIR.'test'.md5($_REQUEST['data'].'|'.$errorCorrectionLevel.'|'.$matrixPointSize).'.png';
+        QRcode::png($_REQUEST['data'], $filename, $errorCorrectionLevel, $matrixPointSize, 2);    
+        
+    } else {    
+    
+        //default data
+        echo 'You can provide data in GET parameter: <a href="?data=like_that">like that</a><hr/>';    
+        QRcode::png('PHP QR Code :)', $filename, $errorCorrectionLevel, $matrixPointSize, 2);    
+        
+    }    
+        
+    //display generated file
+    echo '<img src="'.$PNG_WEB_DIR.basename($filename).'" /><hr/>';  
+    
+    //config form
+    echo '<form action="index.php" method="post">
+        Data:&nbsp;<input name="data" value="'.(isset($_REQUEST['data'])?htmlspecialchars($_REQUEST['data']):'PHP QR Code :)').'" />&nbsp;
+        ECC:&nbsp;<select name="level">
+            <option value="L"'.(($errorCorrectionLevel=='L')?' selected':'').'>L - smallest</option>
+            <option value="M"'.(($errorCorrectionLevel=='M')?' selected':'').'>M</option>
+            <option value="Q"'.(($errorCorrectionLevel=='Q')?' selected':'').'>Q</option>
+            <option value="H"'.(($errorCorrectionLevel=='H')?' selected':'').'>H - best</option>
+        </select>&nbsp;
+        Size:&nbsp;<select name="size">';
+        
+    for($i=1;$i<=10;$i++)
+        echo '<option value="'.$i.'"'.(($matrixPointSize==$i)?' selected':'').'>'.$i.'</option>';
+        
+    echo '</select>&nbsp;
+        <input type="submit" value="GENERATE"></form><hr/>';
+        
+    // benchmark
+    QRtools::timeBenchmark();    
+
+    
Index: /lib/phpqrcode/phpqrcode.php
===================================================================
--- /lib/phpqrcode/phpqrcode.php	(revision 6232)
+++ /lib/phpqrcode/phpqrcode.php	(revision 6232)
@@ -0,0 +1,3416 @@
+<?php
+
+/*
+ * PHP QR Code encoder
+ *
+ * This file contains MERGED version of PHP QR Code library.
+ * It was auto-generated from full version for your convenience.
+ *
+ * This merged version was configured to not requre any external files,
+ * with disabled cache, error loging and weker but faster mask matching.
+ * If you need tune it up please use non-merged version.
+ *
+ * For full version, documentation, examples of use please visit:
+ *
+ *    http://phpqrcode.sourceforge.net/
+ *    https://sourceforge.net/projects/phpqrcode/
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+ 
+ 
+
+/*
+ * Version: 1.1.4
+ * Build: 2010100721
+ */
+
+
+
+//---- qrconst.php -----------------------------
+
+
+
+
+
+/*
+ * PHP QR Code encoder
+ *
+ * Common constants
+ *
+ * Based on libqrencode C library distributed under LGPL 2.1
+ * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+ 
+	// Encoding modes
+	 
+	define('QR_MODE_NUL', -1);
+	define('QR_MODE_NUM', 0);
+	define('QR_MODE_AN', 1);
+	define('QR_MODE_8', 2);
+	define('QR_MODE_KANJI', 3);
+	define('QR_MODE_STRUCTURE', 4);
+
+	// Levels of error correction.
+
+	define('QR_ECLEVEL_L', 0);
+	define('QR_ECLEVEL_M', 1);
+	define('QR_ECLEVEL_Q', 2);
+	define('QR_ECLEVEL_H', 3);
+	
+	// Supported output formats
+	
+	define('QR_FORMAT_TEXT', 0);
+	define('QR_FORMAT_PNG',  1);
+	
+	class qrstr {
+		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 -----------------------------
+
+
+
+
+/*
+ * PHP QR Code encoder
+ *
+ * Config file, tuned-up for merged verion
+ */
+     
+    define('QR_CACHEABLE', false);       // use cache - more disk reads but less CPU power, masks and format templates are stored there
+    define('QR_CACHE_DIR', false);       // used when QR_CACHEABLE === true
+    define('QR_LOG_DIR', false);         // default error logs dir   
+    
+    define('QR_FIND_BEST_MASK', true);                                                          // if true, estimates best mask (spec. default, but extremally slow; set to false to significant performance boost but (propably) worst quality code
+    define('QR_FIND_FROM_RANDOM', 2);                                                       // if false, checks all masks available, otherwise value tells count of masks need to be checked, mask id are got randomly
+    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 -----------------------------
+
+
+
+
+/*
+ * PHP QR Code encoder
+ *
+ * Toolset, handy and debug utilites.
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+    class QRtools {
+    
+        //----------------------------------------------------------------------
+        public static function binarize($frame)
+        {
+            $len = count($frame);
+            foreach ($frame as &$frameLine) {
+                
+                for($i=0; $i<$len; $i++) {
+                    $frameLine[$i] = (ord($frameLine[$i])&1)?'1':'0';
+                }
+            }
+            
+            return $frame;
+        }
+        
+        //----------------------------------------------------------------------
+        public static function tcpdfBarcodeArray($code, $mode = 'QR,L', $tcPdfVersion = '4.5.037')
+        {
+            $barcode_array = array();
+            
+            if (!is_array($mode))
+                $mode = explode(',', $mode);
+                
+            $eccLevel = 'L';
+                
+            if (count($mode) > 1) {
+                $eccLevel = $mode[1];
+            }
+                
+            $qrTab = QRcode::text($code, false, $eccLevel);
+            $size = count($qrTab);
+                
+            $barcode_array['num_rows'] = $size;
+            $barcode_array['num_cols'] = $size;
+            $barcode_array['bcode'] = array();
+                
+            foreach ($qrTab as $line) {
+                $arrAdd = array();
+                foreach(str_split($line) as $char)
+                    $arrAdd[] = ($char=='1')?1:0;
+                $barcode_array['bcode'][] = $arrAdd;
+            }
+                    
+            return $barcode_array;
+        }
+        
+        //----------------------------------------------------------------------
+        public static function clearCache()
+        {
+            self::$frames = array();
+        }
+        
+        //----------------------------------------------------------------------
+        public static function buildCache()
+        {
+			QRtools::markTime('before_build_cache');
+			
+			$mask = new QRmask();
+            for ($a=1; $a <= QRSPEC_VERSION_MAX; $a++) {
+                $frame = QRspec::newFrame($a);
+                if (QR_IMAGE) {
+                    $fileName = QR_CACHE_DIR.'frame_'.$a.'.png';
+                    QRimage::png(self::binarize($frame), $fileName, 1, 0);
+                }
+				
+				$width = count($frame);
+				$bitMask = array_fill(0, $width, array_fill(0, $width, 0));
+				for ($maskNo=0; $maskNo<8; $maskNo++)
+					$mask->makeMaskNo($maskNo, $width, $frame, $bitMask, true);
+            }
+			
+			QRtools::markTime('after_build_cache');
+        }
+
+        //----------------------------------------------------------------------
+        public static function log($outfile, $err)
+        {
+            if (QR_LOG_DIR !== false) {
+                if ($err != '') {
+                    if ($outfile !== false) {
+                        file_put_contents(QR_LOG_DIR.basename($outfile).'-errors.txt', date('Y-m-d H:i:s').': '.$err, FILE_APPEND);
+                    } else {
+                        file_put_contents(QR_LOG_DIR.'errors.txt', date('Y-m-d H:i:s').': '.$err, FILE_APPEND);
+                    }
+                }    
+            }
+        }
+        
+        //----------------------------------------------------------------------
+        public static function dumpMask($frame) 
+        {
+            $width = count($frame);
+            for($y=0;$y<$width;$y++) {
+                for($x=0;$x<$width;$x++) {
+                    echo ord($frame[$y][$x]).',';
+                }
+            }
+        }
+        
+        //----------------------------------------------------------------------
+        public static function markTime($markerId)
+        {
+            list($usec, $sec) = explode(" ", microtime());
+            $time = ((float)$usec + (float)$sec);
+            
+            if (!isset($GLOBALS['qr_time_bench']))
+                $GLOBALS['qr_time_bench'] = array();
+            
+            $GLOBALS['qr_time_bench'][$markerId] = $time;
+        }
+        
+        //----------------------------------------------------------------------
+        public static function timeBenchmark()
+        {
+            self::markTime('finish');
+        
+            $lastTime = 0;
+            $startTime = 0;
+            $p = 0;
+
+            echo '<table cellpadding="3" cellspacing="1">
+                    <thead><tr style="border-bottom:1px solid silver"><td colspan="2" style="text-align:center">BENCHMARK</td></tr></thead>
+                    <tbody>';
+
+            foreach($GLOBALS['qr_time_bench'] as $markerId=>$thisTime) {
+                if ($p > 0) {
+                    echo '<tr><th style="text-align:right">till '.$markerId.': </th><td>'.number_format($thisTime-$lastTime, 6).'s</td></tr>';
+                } else {
+                    $startTime = $thisTime;
+                }
+                
+                $p++;
+                $lastTime = $thisTime;
+            }
+            
+            echo '</tbody><tfoot>
+                <tr style="border-top:2px solid black"><th style="text-align:right">TOTAL: </th><td>'.number_format($lastTime-$startTime, 6).'s</td></tr>
+            </tfoot>
+            </table>';
+        }
+        
+    }
+    
+    //##########################################################################
+    
+    QRtools::markTime('start');
+    
+
+
+
+//---- qrspec.php -----------------------------
+
+
+
+
+/*
+ * PHP QR Code encoder
+ *
+ * QR Code specifications
+ *
+ * Based on libqrencode C library distributed under LGPL 2.1
+ * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
+ *
+ * The following data / specifications are taken from
+ * "Two dimensional symbol -- QR-code -- Basic Specification" (JIS X0510:2004)
+ *  or
+ * "Automatic identification and data capture techniques -- 
+ *  QR Code 2005 bar code symbology specification" (ISO/IEC 18004:2006)
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+ 
+    define('QRSPEC_VERSION_MAX', 40);
+    define('QRSPEC_WIDTH_MAX',   177);
+
+    define('QRCAP_WIDTH',        0);
+    define('QRCAP_WORDS',        1);
+    define('QRCAP_REMINDER',     2);
+    define('QRCAP_EC',           3);
+
+    class QRspec {
+    
+        public static $capacity = array(
+            array(  0,    0, 0, array(   0,    0,    0,    0)),
+            array( 21,   26, 0, array(   7,   10,   13,   17)), // 1
+            array( 25,   44, 7, array(  10,   16,   22,   28)),
+            array( 29,   70, 7, array(  15,   26,   36,   44)),
+            array( 33,  100, 7, array(  20,   36,   52,   64)),
+            array( 37,  134, 7, array(  26,   48,   72,   88)), // 5
+            array( 41,  172, 7, array(  36,   64,   96,  112)),
+            array( 45,  196, 0, array(  40,   72,  108,  130)),
+            array( 49,  242, 0, array(  48,   88,  132,  156)),
+            array( 53,  292, 0, array(  60,  110,  160,  192)),
+            array( 57,  346, 0, array(  72,  130,  192,  224)), //10
+            array( 61,  404, 0, array(  80,  150,  224,  264)),
+            array( 65,  466, 0, array(  96,  176,  260,  308)),
+            array( 69,  532, 0, array( 104,  198,  288,  352)),
+            array( 73,  581, 3, array( 120,  216,  320,  384)),
+            array( 77,  655, 3, array( 132,  240,  360,  432)), //15
+            array( 81,  733, 3, array( 144,  280,  408,  480)),
+            array( 85,  815, 3, array( 168,  308,  448,  532)),
+            array( 89,  901, 3, array( 180,  338,  504,  588)),
+            array( 93,  991, 3, array( 196,  364,  546,  650)),
+            array( 97, 1085, 3, array( 224,  416,  600,  700)), //20
+            array(101, 1156, 4, array( 224,  442,  644,  750)),
+            array(105, 1258, 4, array( 252,  476,  690,  816)),
+            array(109, 1364, 4, array( 270,  504,  750,  900)),
+            array(113, 1474, 4, array( 300,  560,  810,  960)),
+            array(117, 1588, 4, array( 312,  588,  870, 1050)), //25
+            array(121, 1706, 4, array( 336,  644,  952, 1110)),
+            array(125, 1828, 4, array( 360,  700, 1020, 1200)),
+            array(129, 1921, 3, array( 390,  728, 1050, 1260)),
+            array(133, 2051, 3, array( 420,  784, 1140, 1350)),
+            array(137, 2185, 3, array( 450,  812, 1200, 1440)), //30
+            array(141, 2323, 3, array( 480,  868, 1290, 1530)),
+            array(145, 2465, 3, array( 510,  924, 1350, 1620)),
+            array(149, 2611, 3, array( 540,  980, 1440, 1710)),
+            array(153, 2761, 3, array( 570, 1036, 1530, 1800)),
+            array(157, 2876, 0, array( 570, 1064, 1590, 1890)), //35
+            array(161, 3034, 0, array( 600, 1120, 1680, 1980)),
+            array(165, 3196, 0, array( 630, 1204, 1770, 2100)),
+            array(169, 3362, 0, array( 660, 1260, 1860, 2220)),
+            array(173, 3532, 0, array( 720, 1316, 1950, 2310)),
+            array(177, 3706, 0, array( 750, 1372, 2040, 2430)) //40
+        );
+        
+        //----------------------------------------------------------------------
+        public static function getDataLength($version, $level)
+        {
+            return self::$capacity[$version][QRCAP_WORDS] - self::$capacity[$version][QRCAP_EC][$level];
+        }
+        
+        //----------------------------------------------------------------------
+        public static function getECCLength($version, $level)
+        {
+            return self::$capacity[$version][QRCAP_EC][$level];
+        }
+        
+        //----------------------------------------------------------------------
+        public static function getWidth($version)
+        {
+            return self::$capacity[$version][QRCAP_WIDTH];
+        }
+        
+        //----------------------------------------------------------------------
+        public static function getRemainder($version)
+        {
+            return self::$capacity[$version][QRCAP_REMINDER];
+        }
+        
+        //----------------------------------------------------------------------
+        public static function getMinimumVersion($size, $level)
+        {
+
+            for($i=1; $i<= QRSPEC_VERSION_MAX; $i++) {
+                $words  = self::$capacity[$i][QRCAP_WORDS] - self::$capacity[$i][QRCAP_EC][$level];
+                if($words >= $size) 
+                    return $i;
+            }
+
+            return -1;
+        }
+    
+        //######################################################################
+        
+        public static $lengthTableBits = array(
+            array(10, 12, 14),
+            array( 9, 11, 13),
+            array( 8, 16, 16),
+            array( 8, 10, 12)
+        );
+        
+        //----------------------------------------------------------------------
+        public static function lengthIndicator($mode, $version)
+        {
+            if ($mode == QR_MODE_STRUCTURE)
+                return 0;
+                
+            if ($version <= 9) {
+                $l = 0;
+            } else if ($version <= 26) {
+                $l = 1;
+            } else {
+                $l = 2;
+            }
+
+            return self::$lengthTableBits[$mode][$l];
+        }
+        
+        //----------------------------------------------------------------------
+        public static function maximumWords($mode, $version)
+        {
+            if($mode == QR_MODE_STRUCTURE) 
+                return 3;
+                
+            if($version <= 9) {
+                $l = 0;
+            } else if($version <= 26) {
+                $l = 1;
+            } else {
+                $l = 2;
+            }
+
+            $bits = self::$lengthTableBits[$mode][$l];
+            $words = (1 << $bits) - 1;
+            
+            if($mode == QR_MODE_KANJI) {
+                $words *= 2; // the number of bytes is required
+            }
+
+            return $words;
+        }
+
+        // Error correction code -----------------------------------------------
+        // Table of the error correction code (Reed-Solomon block)
+        // See Table 12-16 (pp.30-36), JIS X0510:2004.
+
+        public static $eccTable = array(
+            array(array( 0,  0), array( 0,  0), array( 0,  0), array( 0,  0)),
+            array(array( 1,  0), array( 1,  0), array( 1,  0), array( 1,  0)), // 1
+            array(array( 1,  0), array( 1,  0), array( 1,  0), array( 1,  0)),
+            array(array( 1,  0), array( 1,  0), array( 2,  0), array( 2,  0)),
+            array(array( 1,  0), array( 2,  0), array( 2,  0), array( 4,  0)),
+            array(array( 1,  0), array( 2,  0), array( 2,  2), array( 2,  2)), // 5
+            array(array( 2,  0), array( 4,  0), array( 4,  0), array( 4,  0)),
+            array(array( 2,  0), array( 4,  0), array( 2,  4), array( 4,  1)),
+            array(array( 2,  0), array( 2,  2), array( 4,  2), array( 4,  2)),
+            array(array( 2,  0), array( 3,  2), array( 4,  4), array( 4,  4)),
+            array(array( 2,  2), array( 4,  1), array( 6,  2), array( 6,  2)), //10
+            array(array( 4,  0), array( 1,  4), array( 4,  4), array( 3,  8)),
+            array(array( 2,  2), array( 6,  2), array( 4,  6), array( 7,  4)),
+            array(array( 4,  0), array( 8,  1), array( 8,  4), array(12,  4)),
+            array(array( 3,  1), array( 4,  5), array(11,  5), array(11,  5)),
+            array(array( 5,  1), array( 5,  5), array( 5,  7), array(11,  7)), //15
+            array(array( 5,  1), array( 7,  3), array(15,  2), array( 3, 13)),
+            array(array( 1,  5), array(10,  1), array( 1, 15), array( 2, 17)),
+            array(array( 5,  1), array( 9,  4), array(17,  1), array( 2, 19)),
+            array(array( 3,  4), array( 3, 11), array(17,  4), array( 9, 16)),
+            array(array( 3,  5), array( 3, 13), array(15,  5), array(15, 10)), //20
+            array(array( 4,  4), array(17,  0), array(17,  6), array(19,  6)),
+            array(array( 2,  7), array(17,  0), array( 7, 16), array(34,  0)),
+            array(array( 4,  5), array( 4, 14), array(11, 14), array(16, 14)),
+            array(array( 6,  4), array( 6, 14), array(11, 16), array(30,  2)),
+            array(array( 8,  4), array( 8, 13), array( 7, 22), array(22, 13)), //25
+            array(array(10,  2), array(19,  4), array(28,  6), array(33,  4)),
+            array(array( 8,  4), array(22,  3), array( 8, 26), array(12, 28)),
+            array(array( 3, 10), array( 3, 23), array( 4, 31), array(11, 31)),
+            array(array( 7,  7), array(21,  7), array( 1, 37), array(19, 26)),
+            array(array( 5, 10), array(19, 10), array(15, 25), array(23, 25)), //30
+            array(array(13,  3), array( 2, 29), array(42,  1), array(23, 28)),
+            array(array(17,  0), array(10, 23), array(10, 35), array(19, 35)),
+            array(array(17,  1), array(14, 21), array(29, 19), array(11, 46)),
+            array(array(13,  6), array(14, 23), array(44,  7), array(59,  1)),
+            array(array(12,  7), array(12, 26), array(39, 14), array(22, 41)), //35
+            array(array( 6, 14), array( 6, 34), array(46, 10), array( 2, 64)),
+            array(array(17,  4), array(29, 14), array(49, 10), array(24, 46)),
+            array(array( 4, 18), array(13, 32), array(48, 14), array(42, 32)),
+            array(array(20,  4), array(40,  7), array(43, 22), array(10, 67)),
+            array(array(19,  6), array(18, 31), array(34, 34), array(20, 61)),//40
+        );                                                                       
+
+        //----------------------------------------------------------------------
+        // CACHEABLE!!!
+        
+        public static function getEccSpec($version, $level, array &$spec)
+        {
+            if (count($spec) < 5) {
+                $spec = array(0,0,0,0,0);
+            }
+
+            $b1   = self::$eccTable[$version][$level][0];
+            $b2   = self::$eccTable[$version][$level][1];
+            $data = self::getDataLength($version, $level);
+            $ecc  = self::getECCLength($version, $level);
+
+            if($b2 == 0) {
+                $spec[0] = $b1;
+                $spec[1] = (int)($data / $b1);
+                $spec[2] = (int)($ecc / $b1);
+                $spec[3] = 0; 
+                $spec[4] = 0;
+            } else {
+                $spec[0] = $b1;
+                $spec[1] = (int)($data / ($b1 + $b2));
+                $spec[2] = (int)($ecc  / ($b1 + $b2));
+                $spec[3] = $b2;
+                $spec[4] = $spec[1] + 1;
+            }
+        }
+
+        // Alignment pattern ---------------------------------------------------
+
+        // Positions of alignment patterns.
+        // This array includes only the second and the third position of the 
+        // alignment patterns. Rest of them can be calculated from the distance 
+        // between them.
+         
+        // See Table 1 in Appendix E (pp.71) of JIS X0510:2004.
+         
+        public static $alignmentPattern = array(      
+            array( 0,  0),
+            array( 0,  0), array(18,  0), array(22,  0), array(26,  0), array(30,  0), // 1- 5
+            array(34,  0), array(22, 38), array(24, 42), array(26, 46), array(28, 50), // 6-10
+            array(30, 54), array(32, 58), array(34, 62), array(26, 46), array(26, 48), //11-15
+            array(26, 50), array(30, 54), array(30, 56), array(30, 58), array(34, 62), //16-20
+            array(28, 50), array(26, 50), array(30, 54), array(28, 54), array(32, 58), //21-25
+            array(30, 58), array(34, 62), array(26, 50), array(30, 54), array(26, 52), //26-30
+            array(30, 56), array(34, 60), array(30, 58), array(34, 62), array(30, 54), //31-35
+            array(24, 50), array(28, 54), array(32, 58), array(26, 54), array(30, 58), //35-40
+        );                                                                                  
+
+        
+        /** --------------------------------------------------------------------
+         * Put an alignment marker.
+         * @param frame
+         * @param width
+         * @param ox,oy center coordinate of the pattern
+         */
+        public static function putAlignmentMarker(array &$frame, $ox, $oy)
+        {
+            $finder = array(
+                "\xa1\xa1\xa1\xa1\xa1",
+                "\xa1\xa0\xa0\xa0\xa1",
+                "\xa1\xa0\xa1\xa0\xa1",
+                "\xa1\xa0\xa0\xa0\xa1",
+                "\xa1\xa1\xa1\xa1\xa1"
+            );                        
+            
+            $yStart = $oy-2;         
+            $xStart = $ox-2;
+            
+            for($y=0; $y<5; $y++) {
+                QRstr::set($frame, $xStart, $yStart+$y, $finder[$y]);
+            }
+        }
+
+        //----------------------------------------------------------------------
+        public static function putAlignmentPattern($version, &$frame, $width)
+        {
+            if($version < 2)
+                return;
+
+            $d = self::$alignmentPattern[$version][1] - self::$alignmentPattern[$version][0];
+            if($d < 0) {
+                $w = 2;
+            } else {
+                $w = (int)(($width - self::$alignmentPattern[$version][0]) / $d + 2);
+            }
+
+            if($w * $w - 3 == 1) {
+                $x = self::$alignmentPattern[$version][0];
+                $y = self::$alignmentPattern[$version][0];
+                self::putAlignmentMarker($frame, $x, $y);
+                return;
+            }
+
+            $cx = self::$alignmentPattern[$version][0];
+            for($x=1; $x<$w - 1; $x++) {
+                self::putAlignmentMarker($frame, 6, $cx);
+                self::putAlignmentMarker($frame, $cx,  6);
+                $cx += $d;
+            }
+
+            $cy = self::$alignmentPattern[$version][0];
+            for($y=0; $y<$w-1; $y++) {
+                $cx = self::$alignmentPattern[$version][0];
+                for($x=0; $x<$w-1; $x++) {
+                    self::putAlignmentMarker($frame, $cx, $cy);
+                    $cx += $d;
+                }
+                $cy += $d;
+            }
+        }
+
+        // Version information pattern -----------------------------------------
+
+		// Version information pattern (BCH coded).
+        // See Table 1 in Appendix D (pp.68) of JIS X0510:2004.
+        
+		// size: [QRSPEC_VERSION_MAX - 6]
+		
+        public static $versionPattern = array(
+            0x07c94, 0x085bc, 0x09a99, 0x0a4d3, 0x0bbf6, 0x0c762, 0x0d847, 0x0e60d,
+            0x0f928, 0x10b78, 0x1145d, 0x12a17, 0x13532, 0x149a6, 0x15683, 0x168c9,
+            0x177ec, 0x18ec4, 0x191e1, 0x1afab, 0x1b08e, 0x1cc1a, 0x1d33f, 0x1ed75,
+            0x1f250, 0x209d5, 0x216f0, 0x228ba, 0x2379f, 0x24b0b, 0x2542e, 0x26a64,
+            0x27541, 0x28c69
+        );
+
+        //----------------------------------------------------------------------
+        public static function getVersionPattern($version)
+        {
+            if($version < 7 || $version > QRSPEC_VERSION_MAX)
+                return 0;
+
+            return self::$versionPattern[$version -7];
+        }
+
+        // Format information --------------------------------------------------
+        // See calcFormatInfo in tests/test_qrspec.c (orginal qrencode c lib)
+        
+        public static $formatInfo = array(
+            array(0x77c4, 0x72f3, 0x7daa, 0x789d, 0x662f, 0x6318, 0x6c41, 0x6976),
+            array(0x5412, 0x5125, 0x5e7c, 0x5b4b, 0x45f9, 0x40ce, 0x4f97, 0x4aa0),
+            array(0x355f, 0x3068, 0x3f31, 0x3a06, 0x24b4, 0x2183, 0x2eda, 0x2bed),
+            array(0x1689, 0x13be, 0x1ce7, 0x19d0, 0x0762, 0x0255, 0x0d0c, 0x083b)
+        );
+
+        public static function getFormatInfo($mask, $level)
+        {
+            if($mask < 0 || $mask > 7)
+                return 0;
+                
+            if($level < 0 || $level > 3)
+                return 0;                
+
+            return self::$formatInfo[$level][$mask];
+        }
+
+        // Frame ---------------------------------------------------------------
+        // Cache of initial frames.
+         
+        public static $frames = array();
+
+        /** --------------------------------------------------------------------
+         * Put a finder pattern.
+         * @param frame
+         * @param width
+         * @param ox,oy upper-left coordinate of the pattern
+         */
+        public static function putFinderPattern(&$frame, $ox, $oy)
+        {
+            $finder = array(
+                "\xc1\xc1\xc1\xc1\xc1\xc1\xc1",
+                "\xc1\xc0\xc0\xc0\xc0\xc0\xc1",
+                "\xc1\xc0\xc1\xc1\xc1\xc0\xc1",
+                "\xc1\xc0\xc1\xc1\xc1\xc0\xc1",
+                "\xc1\xc0\xc1\xc1\xc1\xc0\xc1",
+                "\xc1\xc0\xc0\xc0\xc0\xc0\xc1",
+                "\xc1\xc1\xc1\xc1\xc1\xc1\xc1"
+            );                            
+            
+            for($y=0; $y<7; $y++) {
+                QRstr::set($frame, $ox, $oy+$y, $finder[$y]);
+            }
+        }
+
+        //----------------------------------------------------------------------
+        public static function createFrame($version)
+        {
+            $width = self::$capacity[$version][QRCAP_WIDTH];
+            $frameLine = str_repeat ("\0", $width);
+            $frame = array_fill(0, $width, $frameLine);
+
+            // Finder pattern
+            self::putFinderPattern($frame, 0, 0);
+            self::putFinderPattern($frame, $width - 7, 0);
+            self::putFinderPattern($frame, 0, $width - 7);
+            
+            // Separator
+            $yOffset = $width - 7;
+            
+            for($y=0; $y<7; $y++) {
+                $frame[$y][7] = "\xc0";
+                $frame[$y][$width - 8] = "\xc0";
+                $frame[$yOffset][7] = "\xc0";
+                $yOffset++;
+            }
+            
+            $setPattern = str_repeat("\xc0", 8);
+            
+            QRstr::set($frame, 0, 7, $setPattern);
+            QRstr::set($frame, $width-8, 7, $setPattern);
+            QRstr::set($frame, 0, $width - 8, $setPattern);
+        
+            // Format info
+            $setPattern = str_repeat("\x84", 9);
+            QRstr::set($frame, 0, 8, $setPattern);
+            QRstr::set($frame, $width - 8, 8, $setPattern, 8);
+            
+            $yOffset = $width - 8;
+
+            for($y=0; $y<8; $y++,$yOffset++) {
+                $frame[$y][8] = "\x84";
+                $frame[$yOffset][8] = "\x84";
+            }
+
+            // Timing pattern  
+            
+            for($i=1; $i<$width-15; $i++) {
+                $frame[6][7+$i] = chr(0x90 | ($i & 1));
+                $frame[7+$i][6] = chr(0x90 | ($i & 1));
+            }
+            
+            // Alignment pattern  
+            self::putAlignmentPattern($version, $frame, $width);
+            
+            // Version information 
+            if($version >= 7) {
+                $vinf = self::getVersionPattern($version);
+
+                $v = $vinf;
+                
+                for($x=0; $x<6; $x++) {
+                    for($y=0; $y<3; $y++) {
+                        $frame[($width - 11)+$y][$x] = chr(0x88 | ($v & 1));
+                        $v = $v >> 1;
+                    }
+                }
+
+                $v = $vinf;
+                for($y=0; $y<6; $y++) {
+                    for($x=0; $x<3; $x++) {
+                        $frame[$y][$x+($width - 11)] = chr(0x88 | ($v & 1));
+                        $v = $v >> 1;
+                    }
+                }
+            }
+    
+            // and a little bit...  
+            $frame[$width - 8][8] = "\x81";
+            
+            return $frame;
+        }
+
+        //----------------------------------------------------------------------
+        public static function debug($frame, $binary_mode = false)
+        {
+            if ($binary_mode) {
+            
+                    foreach ($frame as &$frameLine) {
+                        $frameLine = join('<span class="m">&nbsp;&nbsp;</span>', explode('0', $frameLine));
+                        $frameLine = join('&#9608;&#9608;', explode('1', $frameLine));
+                    }
+                    
+                    ?>
+                <style>
+                    .m { background-color: white; }
+                </style>
+                <?php
+                    echo '<pre><tt><br/ ><br/ ><br/ >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
+                    echo join("<br/ >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", $frame);
+                    echo '</tt></pre><br/ ><br/ ><br/ ><br/ ><br/ ><br/ >';
+            
+            } else {
+            
+                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));
+                    $frameLine = join('<span class="p">&#9618;</span>', explode("\xa1", $frameLine));
+                    $frameLine = join('<span class="s">&#9671;</span>', explode("\x84", $frameLine)); //format 0
+                    $frameLine = join('<span class="s">&#9670;</span>', explode("\x85", $frameLine)); //format 1
+                    $frameLine = join('<span class="x">&#9762;</span>', explode("\x81", $frameLine)); //special bit
+                    $frameLine = join('<span class="c">&nbsp;</span>',  explode("\x90", $frameLine)); //clock 0
+                    $frameLine = join('<span class="c">&#9719;</span>', explode("\x91", $frameLine)); //clock 1
+                    $frameLine = join('<span class="f">&nbsp;</span>',  explode("\x88", $frameLine)); //version
+                    $frameLine = join('<span class="f">&#9618;</span>', explode("\x89", $frameLine)); //version
+                    $frameLine = join('&#9830;', explode("\x01", $frameLine));
+                    $frameLine = join('&#8901;', explode("\0", $frameLine));
+                }
+                
+                ?>
+                <style>
+                    .p { background-color: yellow; }
+                    .m { background-color: #00FF00; }
+                    .s { background-color: #FF0000; }
+                    .c { background-color: aqua; }
+                    .x { background-color: pink; }
+                    .f { background-color: gold; }
+                </style>
+                <?php
+                echo "<pre><tt>";
+                echo join("<br/ >", $frame);
+                echo "</tt></pre>";
+            
+            }
+        }
+
+        //----------------------------------------------------------------------
+        public static function serial($frame)
+        {
+            return gzcompress(join("\n", $frame), 9);
+        }
+        
+        //----------------------------------------------------------------------
+        public static function unserial($code)
+        {
+            return explode("\n", gzuncompress($code));
+        }
+        
+        //----------------------------------------------------------------------
+        public static function newFrame($version)
+        {
+            if($version < 1 || $version > QRSPEC_VERSION_MAX) 
+                return null;
+
+            if(!isset(self::$frames[$version])) {
+                
+                $fileName = QR_CACHE_DIR.'frame_'.$version.'.dat';
+                
+                if (QR_CACHEABLE) {
+                    if (file_exists($fileName)) {
+                        self::$frames[$version] = self::unserial(file_get_contents($fileName));
+                    } else {
+                        self::$frames[$version] = self::createFrame($version);
+                        file_put_contents($fileName, self::serial(self::$frames[$version]));
+                    }
+                } else {
+                    self::$frames[$version] = self::createFrame($version);
+                }
+            }
+            
+            if(is_null(self::$frames[$version]))
+                return null;
+
+            return self::$frames[$version];
+        }
+
+        //----------------------------------------------------------------------
+        public static function rsBlockNum($spec)     { return $spec[0] + $spec[3]; }
+        public static function rsBlockNum1($spec)    { return $spec[0]; }
+        public static function rsDataCodes1($spec)   { return $spec[1]; }
+        public static function rsEccCodes1($spec)    { return $spec[2]; }
+        public static function rsBlockNum2($spec)    { return $spec[3]; }
+        public static function rsDataCodes2($spec)   { return $spec[4]; }
+        public static function rsEccCodes2($spec)    { return $spec[2]; }
+        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 -----------------------------
+
+
+
+
+/*
+ * PHP QR Code encoder
+ *
+ * Image output of code using GD2
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+ 
+    define('QR_IMAGE', true);
+
+    class QRimage {
+    
+        //----------------------------------------------------------------------
+        public static function png($frame, $filename = false, $pixelPerPoint = 4, $outerFrame = 4,$saveandprint=FALSE) 
+        {
+            $image = self::image($frame, $pixelPerPoint, $outerFrame);
+            
+            if ($filename === false) {
+                Header("Content-type: image/png");
+                ImagePng($image);
+            } else {
+                if($saveandprint===TRUE){
+                    ImagePng($image, $filename);
+                    header("Content-type: image/png");
+                    ImagePng($image);
+                }else{
+                    ImagePng($image, $filename);
+                }
+            }
+            
+            ImageDestroy($image);
+        }
+
+        //------start of modification by bezahlcode.de------------------------    
+        public static function pngWithBezahlCode($frame, $filename = false, $pixelPerPoint = 4, $outerFrame = 16, $saveandprint=FALSE) 
+        {
+            $image = self::imageWithBezahlCode($frame, $pixelPerPoint, $outerFrame);
+            
+            if ($filename === false) {
+                Header("Content-type: image/png");
+                ImagePng($image);
+            } else {
+                if($saveandprint===TRUE){
+                    ImagePng($image, $filename);
+                    header("Content-type: image/png");
+                    ImagePng($image);
+                }else{
+                    ImagePng($image, $filename);
+                }
+            }
+            
+            ImageDestroy($image);
+        }
+        //------end of modification by bezahlcode.de--------------------------
+        
+        //----------------------------------------------------------------------
+        public static function jpg($frame, $filename = false, $pixelPerPoint = 8, $outerFrame = 4, $q = 85) 
+        {
+            $image = self::image($frame, $pixelPerPoint, $outerFrame);
+            
+            if ($filename === false) {
+                Header("Content-type: image/jpeg");
+                ImageJpeg($image, null, $q);
+            } else {
+                ImageJpeg($image, $filename, $q);            
+            }
+            
+            ImageDestroy($image);
+        }
+    
+        //----------------------------------------------------------------------
+        private static function image($frame, $pixelPerPoint = 4, $outerFrame = 4) 
+        {
+            $h = count($frame);
+            $w = strlen($frame[0]);
+            
+            $imgW = $w + 2*$outerFrame;
+            $imgH = $h + 2*$outerFrame;
+            
+            $base_image =ImageCreate($imgW, $imgH);
+            
+            $col[0] = ImageColorAllocate($base_image,255,255,255);
+            $col[1] = ImageColorAllocate($base_image,0,0,0);
+
+            imagefill($base_image, 0, 0, $col[0]);
+
+            for($y=0; $y<$h; $y++) {
+                for($x=0; $x<$w; $x++) {
+                    if ($frame[$y][$x] == '1') {
+                        ImageSetPixel($base_image,$x+$outerFrame,$y+$outerFrame,$col[1]); 
+                    }
+                }
+            }
+            
+            $target_image =ImageCreate($imgW * $pixelPerPoint, $imgH * $pixelPerPoint);
+            ImageCopyResized($target_image, $base_image, 0, 0, 0, 0, $imgW * $pixelPerPoint, $imgH * $pixelPerPoint, $imgW, $imgH);
+            ImageDestroy($base_image);
+            
+            return $target_image;
+        }
+        
+        //------start of modification by bezahlcode.de------------------------
+        private static function CenterImageString($image, $image_width, $string, $font_size, $y, $color)
+		{
+		 	$text_width = imagefontwidth($font_size)*strlen($string);
+		 	$center = ceil($image_width / 2);
+		 	$x = $center - (ceil($text_width/2));
+			ImageString($image, $font_size, $x, $y, $string, $color);
+		}
+        
+        private static function imageWithBezahlCode($frame, $pixelPerPoint = 4, $outerFrame = 4) 
+        {
+            $h = count($frame);
+            $w = strlen($frame[0]);
+            
+            $imgW = $w + 2*$outerFrame;
+            $imgH = $h + 2*$outerFrame;
+            
+            $base_image =ImageCreate($imgW, $imgH);
+            
+            $col[0] = ImageColorAllocate($base_image,255,255,255);
+            $col[1] = ImageColorAllocate($base_image,0,0,0);
+
+            imagefill($base_image, 0, 0, $col[0]);
+
+            for($y=0; $y<$h; $y++) {
+                for($x=0; $x<$w; $x++) {
+                    if ($frame[$y][$x] == '1') {
+                        ImageSetPixel($base_image,$x+$outerFrame,$y+$outerFrame,$col[1]); 
+                    }
+                }
+            }
+
+
+ 			$standardSizeImage=ImageCreate(150, 150+10); 
+		    ImageCopyResized($standardSizeImage, $base_image, 0, 0, 0, 0, 150, 150, $imgW, $imgH);
+
+			self::CenterImageString($standardSizeImage, 150, "www.BezahlCode.de", 2, 143, $col[1]);     
+
+            $target_image =ImageCreate($imgW * $pixelPerPoint, $imgH * $pixelPerPoint);
+
+            ImageCopyResized($target_image, $standardSizeImage, 0, 0, 0, 0, $imgW * $pixelPerPoint, $imgH * $pixelPerPoint, 150, 160);
+		  
+            ImageDestroy($base_image);
+			ImageDestroy($standardSizeImage);
+                
+            return $target_image;
+        }
+        //------end of modification by bezahlcode.de--------------------------
+    }
+
+
+
+//---- qrinput.php -----------------------------
+
+
+
+
+/*
+ * PHP QR Code encoder
+ *
+ * Input encoding class
+ *
+ * Based on libqrencode C library distributed under LGPL 2.1
+ * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+ 
+    define('STRUCTURE_HEADER_BITS',  20);
+    define('MAX_STRUCTURED_SYMBOLS', 16);
+
+    class QRinputItem {
+    
+        public $mode;
+        public $size;
+        public $data;
+        public $bstream;
+
+        public function __construct($mode, $size, $data, $bstream = null) 
+        {
+            $setData = array_slice($data, 0, $size);
+            
+            if (count($setData) < $size) {
+                $setData = array_merge($setData, array_fill(0,$size-count($setData),0));
+            }
+        
+            if(!QRinput::check($mode, $size, $setData)) {
+                throw new Exception('Error m:'.$mode.',s:'.$size.',d:'.join(',',$setData));
+                return null;
+            }
+            
+            $this->mode = $mode;
+            $this->size = $size;
+            $this->data = $setData;
+            $this->bstream = $bstream;
+        }
+        
+        //----------------------------------------------------------------------
+        public function encodeModeNum($version)
+        {
+            try {
+            
+                $words = (int)($this->size / 3);
+                $bs = new QRbitstream();
+                
+                $val = 0x1;
+                $bs->appendNum(4, $val);
+                $bs->appendNum(QRspec::lengthIndicator(QR_MODE_NUM, $version), $this->size);
+
+                for($i=0; $i<$words; $i++) {
+                    $val  = (ord($this->data[$i*3  ]) - ord('0')) * 100;
+                    $val += (ord($this->data[$i*3+1]) - ord('0')) * 10;
+                    $val += (ord($this->data[$i*3+2]) - ord('0'));
+                    $bs->appendNum(10, $val);
+                }
+
+                if($this->size - $words * 3 == 1) {
+                    $val = ord($this->data[$words*3]) - ord('0');
+                    $bs->appendNum(4, $val);
+                } else if($this->size - $words * 3 == 2) {
+                    $val  = (ord($this->data[$words*3  ]) - ord('0')) * 10;
+                    $val += (ord($this->data[$words*3+1]) - ord('0'));
+                    $bs->appendNum(7, $val);
+                }
+
+                $this->bstream = $bs;
+                return 0;
+                
+            } catch (Exception $e) {
+                return -1;
+            }
+        }
+        
+        //----------------------------------------------------------------------
+        public function encodeModeAn($version)
+        {
+            try {
+                $words = (int)($this->size / 2);
+                $bs = new QRbitstream();
+                
+                $bs->appendNum(4, 0x02);
+                $bs->appendNum(QRspec::lengthIndicator(QR_MODE_AN, $version), $this->size);
+
+                for($i=0; $i<$words; $i++) {
+                    $val  = (int)QRinput::lookAnTable(ord($this->data[$i*2  ])) * 45;
+                    $val += (int)QRinput::lookAnTable(ord($this->data[$i*2+1]));
+
+                    $bs->appendNum(11, $val);
+                }
+
+                if($this->size & 1) {
+                    $val = QRinput::lookAnTable(ord($this->data[$words * 2]));
+                    $bs->appendNum(6, $val);
+                }
+        
+                $this->bstream = $bs;
+                return 0;
+            
+            } catch (Exception $e) {
+                return -1;
+            }
+        }
+        
+        //----------------------------------------------------------------------
+        public function encodeMode8($version)
+        {
+            try {
+                $bs = new QRbitstream();
+
+                $bs->appendNum(4, 0x4);
+                $bs->appendNum(QRspec::lengthIndicator(QR_MODE_8, $version), $this->size);
+
+                for($i=0; $i<$this->size; $i++) {
+                    $bs->appendNum(8, ord($this->data[$i]));
+                }
+
+                $this->bstream = $bs;
+                return 0;
+            
+            } catch (Exception $e) {
+                return -1;
+            }
+        }
+        
+        //----------------------------------------------------------------------
+        public function encodeModeKanji($version)
+        {
+            try {
+
+                $bs = new QRbitrtream();
+                
+                $bs->appendNum(4, 0x8);
+                $bs->appendNum(QRspec::lengthIndicator(QR_MODE_KANJI, $version), (int)($this->size / 2));
+
+                for($i=0; $i<$this->size; $i+=2) {
+                    $val = (ord($this->data[$i]) << 8) | ord($this->data[$i+1]);
+                    if($val <= 0x9ffc) {
+                        $val -= 0x8140;
+                    } else {
+                        $val -= 0xc140;
+                    }
+                    
+                    $h = ($val >> 8) * 0xc0;
+                    $val = ($val & 0xff) + $h;
+
+                    $bs->appendNum(13, $val);
+                }
+
+                $this->bstream = $bs;
+                return 0;
+            
+            } catch (Exception $e) {
+                return -1;
+            }
+        }
+
+        //----------------------------------------------------------------------
+        public function encodeModeStructure()
+        {
+            try {
+                $bs =  new QRbitstream();
+                
+                $bs->appendNum(4, 0x03);
+                $bs->appendNum(4, ord($this->data[1]) - 1);
+                $bs->appendNum(4, ord($this->data[0]) - 1);
+                $bs->appendNum(8, ord($this->data[2]));
+
+                $this->bstream = $bs;
+                return 0;
+            
+            } catch (Exception $e) {
+                return -1;
+            }
+        }
+        
+        //----------------------------------------------------------------------
+        public function estimateBitStreamSizeOfEntry($version)
+        {
+            $bits = 0;
+
+            if($version == 0) 
+                $version = 1;
+
+            switch($this->mode) {
+                case QR_MODE_NUM:        $bits = QRinput::estimateBitsModeNum($this->size);    break;
+                case QR_MODE_AN:        $bits = QRinput::estimateBitsModeAn($this->size);    break;
+                case QR_MODE_8:            $bits = QRinput::estimateBitsMode8($this->size);    break;
+                case QR_MODE_KANJI:        $bits = QRinput::estimateBitsModeKanji($this->size);break;
+                case QR_MODE_STRUCTURE:    return STRUCTURE_HEADER_BITS;            
+                default:
+                    return 0;
+            }
+
+            $l = QRspec::lengthIndicator($this->mode, $version);
+            $m = 1 << $l;
+            $num = (int)(($this->size + $m - 1) / $m);
+
+            $bits += $num * (4 + $l);
+
+            return $bits;
+        }
+        
+        //----------------------------------------------------------------------
+        public function encodeBitStream($version)
+        {
+            try {
+            
+                unset($this->bstream);
+                $words = QRspec::maximumWords($this->mode, $version);
+                
+                if($this->size > $words) {
+                
+                    $st1 = new QRinputItem($this->mode, $words, $this->data);
+                    $st2 = new QRinputItem($this->mode, $this->size - $words, array_slice($this->data, $words));
+
+                    $st1->encodeBitStream($version);
+                    $st2->encodeBitStream($version);
+                    
+                    $this->bstream = new QRbitstream();
+                    $this->bstream->append($st1->bstream);
+                    $this->bstream->append($st2->bstream);
+                    
+                    unset($st1);
+                    unset($st2);
+                    
+                } else {
+                    
+                    $ret = 0;
+                    
+                    switch($this->mode) {
+                        case QR_MODE_NUM:        $ret = $this->encodeModeNum($version);    break;
+                        case QR_MODE_AN:        $ret = $this->encodeModeAn($version);    break;
+                        case QR_MODE_8:            $ret = $this->encodeMode8($version);    break;
+                        case QR_MODE_KANJI:        $ret = $this->encodeModeKanji($version);break;
+                        case QR_MODE_STRUCTURE:    $ret = $this->encodeModeStructure();    break;
+                        
+                        default:
+                            break;
+                    }
+                    
+                    if($ret < 0)
+                        return -1;
+                }
+
+                return $this->bstream->size();
+            
+            } catch (Exception $e) {
+                return -1;
+            }
+        }
+    };
+    
+    //##########################################################################
+
+    class QRinput {
+
+        public $items;
+        
+        private $version;
+        private $level;
+        
+        //----------------------------------------------------------------------
+        public function __construct($version = 0, $level = QR_ECLEVEL_L)
+        {
+            if ($version < 0 || $version > QRSPEC_VERSION_MAX || $level > QR_ECLEVEL_H) {
+                throw new Exception('Invalid version no');
+                return NULL;
+            }
+            
+            $this->version = $version;
+            $this->level = $level;
+        }
+        
+        //----------------------------------------------------------------------
+        public function getVersion()
+        {
+            return $this->version;
+        }
+        
+        //----------------------------------------------------------------------
+        public function setVersion($version)
+        {
+            if($version < 0 || $version > QRSPEC_VERSION_MAX) {
+                throw new Exception('Invalid version no');
+                return -1;
+            }
+
+            $this->version = $version;
+
+            return 0;
+        }
+        
+        //----------------------------------------------------------------------
+        public function getErrorCorrectionLevel()
+        {
+            return $this->level;
+        }
+
+        //----------------------------------------------------------------------
+        public function setErrorCorrectionLevel($level)
+        {
+            if($level > QR_ECLEVEL_H) {
+                throw new Exception('Invalid ECLEVEL');
+                return -1;
+            }
+
+            $this->level = $level;
+
+            return 0;
+        }
+        
+        //----------------------------------------------------------------------
+        public function appendEntry(QRinputItem $entry)
+        {
+            $this->items[] = $entry;
+        }
+        
+        //----------------------------------------------------------------------
+        public function append($mode, $size, $data)
+        {
+            try {
+                $entry = new QRinputItem($mode, $size, $data);
+                $this->items[] = $entry;
+                return 0;
+            } catch (Exception $e) {
+                return -1;
+            }
+        }
+        
+        //----------------------------------------------------------------------
+        
+        public function insertStructuredAppendHeader($size, $index, $parity)
+        {
+            if( $size > MAX_STRUCTURED_SYMBOLS ) {
+                throw new Exception('insertStructuredAppendHeader wrong size');
+            }
+            
+            if( $index <= 0 || $index > MAX_STRUCTURED_SYMBOLS ) {
+                throw new Exception('insertStructuredAppendHeader wrong index');
+            }
+
+            $buf = array($size, $index, $parity);
+            
+            try {
+                $entry = new QRinputItem(QR_MODE_STRUCTURE, 3, buf);
+                array_unshift($this->items, $entry);
+                return 0;
+            } catch (Exception $e) {
+                return -1;
+            }
+        }
+
+        //----------------------------------------------------------------------
+        public function calcParity()
+        {
+            $parity = 0;
+            
+            foreach($this->items as $item) {
+                if($item->mode != QR_MODE_STRUCTURE) {
+                    for($i=$item->size-1; $i>=0; $i--) {
+                        $parity ^= $item->data[$i];
+                    }
+                }
+            }
+
+            return $parity;
+        }
+        
+        //----------------------------------------------------------------------
+        public static function checkModeNum($size, $data)
+        {
+            for($i=0; $i<$size; $i++) {
+                if((ord($data[$i]) < ord('0')) || (ord($data[$i]) > ord('9'))){
+                    return false;
+                }
+            }
+
+            return true;
+        }
+
+        //----------------------------------------------------------------------
+        public static function estimateBitsModeNum($size)
+        {
+            $w = (int)$size / 3;
+            $bits = $w * 10;
+            
+            switch($size - $w * 3) {
+                case 1:
+                    $bits += 4;
+                    break;
+                case 2:
+                    $bits += 7;
+                    break;
+                default:
+                    break;
+            }
+
+            return $bits;
+        }
+        
+        //----------------------------------------------------------------------
+        public static $anTable = array(
+            -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+            -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+            36, -1, -1, -1, 37, 38, -1, -1, -1, -1, 39, 40, -1, 41, 42, 43,
+             0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 44, -1, -1, -1, -1, -1,
+            -1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
+            25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, -1, -1, -1, -1, -1,
+            -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+            -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
+        );
+        
+        //----------------------------------------------------------------------
+        public static function lookAnTable($c)
+        {
+            return (($c > 127)?-1:self::$anTable[$c]);
+        }
+        
+        //----------------------------------------------------------------------
+        public static function checkModeAn($size, $data)
+        {
+            for($i=0; $i<$size; $i++) {
+                if (self::lookAnTable(ord($data[$i])) == -1) {
+                    return false;
+                }
+            }
+
+            return true;
+        }
+        
+        //----------------------------------------------------------------------
+        public static function estimateBitsModeAn($size)
+        {
+            $w = (int)($size / 2);
+            $bits = $w * 11;
+            
+            if($size & 1) {
+                $bits += 6;
+            }
+
+            return $bits;
+        }
+    
+        //----------------------------------------------------------------------
+        public static function estimateBitsMode8($size)
+        {
+            return $size * 8;
+        }
+        
+        //----------------------------------------------------------------------
+        public function estimateBitsModeKanji($size)
+        {
+            return (int)(($size / 2) * 13);
+        }
+        
+        //----------------------------------------------------------------------
+        public static function checkModeKanji($size, $data)
+        {
+            if($size & 1)
+                return false;
+
+            for($i=0; $i<$size; $i+=2) {
+                $val = (ord($data[$i]) << 8) | ord($data[$i+1]);
+                if( $val < 0x8140 
+                || ($val > 0x9ffc && $val < 0xe040) 
+                || $val > 0xebbf) {
+                    return false;
+                }
+            }
+
+            return true;
+        }
+
+        /***********************************************************************
+         * Validation
+         **********************************************************************/
+
+        public static function check($mode, $size, $data)
+        {
+            if($size <= 0) 
+                return false;
+
+            switch($mode) {
+                case QR_MODE_NUM:       return self::checkModeNum($size, $data);   break;
+                case QR_MODE_AN:        return self::checkModeAn($size, $data);    break;
+                case QR_MODE_KANJI:     return self::checkModeKanji($size, $data); break;
+                case QR_MODE_8:         return true; break;
+                case QR_MODE_STRUCTURE: return true; break;
+                
+                default:
+                    break;
+            }
+
+            return false;
+        }
+        
+        
+        //----------------------------------------------------------------------
+        public function estimateBitStreamSize($version)
+        {
+            $bits = 0;
+
+            foreach($this->items as $item) {
+                $bits += $item->estimateBitStreamSizeOfEntry($version);
+            }
+
+            return $bits;
+        }
+        
+        //----------------------------------------------------------------------
+        public function estimateVersion()
+        {
+            $version = 0;
+            $prev = 0;
+            do {
+                $prev = $version;
+                $bits = $this->estimateBitStreamSize($prev);
+                $version = QRspec::getMinimumVersion((int)(($bits + 7) / 8), $this->level);
+                if ($version < 0) {
+                    return -1;
+                }
+            } while ($version > $prev);
+
+            return $version;
+        }
+        
+        //----------------------------------------------------------------------
+        public static function lengthOfCode($mode, $version, $bits)
+        {
+            $payload = $bits - 4 - QRspec::lengthIndicator($mode, $version);
+            switch($mode) {
+                case QR_MODE_NUM:
+                    $chunks = (int)($payload / 10);
+                    $remain = $payload - $chunks * 10;
+                    $size = $chunks * 3;
+                    if($remain >= 7) {
+                        $size += 2;
+                    } else if($remain >= 4) {
+                        $size += 1;
+                    }
+                    break;
+                case QR_MODE_AN:
+                    $chunks = (int)($payload / 11);
+                    $remain = $payload - $chunks * 11;
+                    $size = $chunks * 2;
+                    if($remain >= 6) 
+                        $size++;
+                    break;
+                case QR_MODE_8:
+                    $size = (int)($payload / 8);
+                    break;
+                case QR_MODE_KANJI:
+                    $size = (int)(($payload / 13) * 2);
+                    break;
+                case QR_MODE_STRUCTURE:
+                    $size = (int)($payload / 8);
+                    break;
+                default:
+                    $size = 0;
+                    break;
+            }
+            
+            $maxsize = QRspec::maximumWords($mode, $version);
+            if($size < 0) $size = 0;
+            if($size > $maxsize) $size = $maxsize;
+
+            return $size;
+        }
+        
+        //----------------------------------------------------------------------
+        public function createBitStream()
+        {
+            $total = 0;
+
+            foreach($this->items as $item) {
+                $bits = $item->encodeBitStream($this->version);
+                
+                if($bits < 0) 
+                    return -1;
+                    
+                $total += $bits;
+            }
+
+            return $total;
+        }
+        
+        //----------------------------------------------------------------------
+        public function convertData()
+        {
+            $ver = $this->estimateVersion();
+            if($ver > $this->getVersion()) {
+                $this->setVersion($ver);
+            }
+
+            for(;;) {
+                $bits = $this->createBitStream();
+                
+                if($bits < 0) 
+                    return -1;
+                    
+                $ver = QRspec::getMinimumVersion((int)(($bits + 7) / 8), $this->level);
+                if($ver < 0) {
+                    throw new Exception('WRONG VERSION');
+                    return -1;
+                } else if($ver > $this->getVersion()) {
+                    $this->setVersion($ver);
+                } else {
+                    break;
+                }
+            }
+
+            return 0;
+        }
+        
+        //----------------------------------------------------------------------
+        public function appendPaddingBit(&$bstream)
+        {
+            $bits = $bstream->size();
+            $maxwords = QRspec::getDataLength($this->version, $this->level);
+            $maxbits = $maxwords * 8;
+
+            if ($maxbits == $bits) {
+                return 0;
+            }
+
+            if ($maxbits - $bits < 5) {
+                return $bstream->appendNum($maxbits - $bits, 0);
+            }
+
+            $bits += 4;
+            $words = (int)(($bits + 7) / 8);
+
+            $padding = new QRbitstream();
+            $ret = $padding->appendNum($words * 8 - $bits + 4, 0);
+            
+            if($ret < 0) 
+                return $ret;
+
+            $padlen = $maxwords - $words;
+            
+            if($padlen > 0) {
+                
+                $padbuf = array();
+                for($i=0; $i<$padlen; $i++) {
+                    $padbuf[$i] = ($i&1)?0x11:0xec;
+                }
+                
+                $ret = $padding->appendBytes($padlen, $padbuf);
+                
+                if($ret < 0)
+                    return $ret;
+                
+            }
+
+            $ret = $bstream->append($padding);
+            
+            return $ret;
+        }
+
+        //----------------------------------------------------------------------
+        public function mergeBitStream()
+        {
+            if($this->convertData() < 0) {
+                return null;
+            }
+
+            $bstream = new QRbitstream();
+            
+            foreach($this->items as $item) {
+                $ret = $bstream->append($item->bstream);
+                if($ret < 0) {
+                    return null;
+                }
+            }
+
+            return $bstream;
+        }
+
+        //----------------------------------------------------------------------
+        public function getBitStream()
+        {
+
+            $bstream = $this->mergeBitStream();
+            
+            if($bstream == null) {
+                return null;
+            }
+            
+            $ret = $this->appendPaddingBit($bstream);
+            if($ret < 0) {
+                return null;
+            }
+
+            return $bstream;
+        }
+        
+        //----------------------------------------------------------------------
+        public function getByteStream()
+        {
+            $bstream = $this->getBitStream();
+            if($bstream == null) {
+                return null;
+            }
+            
+            return $bstream->toByte();
+        }
+    }
+        
+        
+    
+
+
+
+//---- qrbitstream.php -----------------------------
+
+
+
+
+/*
+ * PHP QR Code encoder
+ *
+ * Bitstream class
+ *
+ * Based on libqrencode C library distributed under LGPL 2.1
+ * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+     
+    class QRbitstream {
+    
+        public $data = array();
+        
+        //----------------------------------------------------------------------
+        public function size()
+        {
+            return count($this->data);
+        }
+        
+        //----------------------------------------------------------------------
+        public function allocate($setLength)
+        {
+            $this->data = array_fill(0, $setLength, 0);
+            return 0;
+        }
+    
+        //----------------------------------------------------------------------
+        public static function newFromNum($bits, $num)
+        {
+            $bstream = new QRbitstream();
+            $bstream->allocate($bits);
+            
+            $mask = 1 << ($bits - 1);
+            for($i=0; $i<$bits; $i++) {
+                if($num & $mask) {
+                    $bstream->data[$i] = 1;
+                } else {
+                    $bstream->data[$i] = 0;
+                }
+                $mask = $mask >> 1;
+            }
+
+            return $bstream;
+        }
+        
+        //----------------------------------------------------------------------
+        public static function newFromBytes($size, $data)
+        {
+            $bstream = new QRbitstream();
+            $bstream->allocate($size * 8);
+            $p=0;
+
+            for($i=0; $i<$size; $i++) {
+                $mask = 0x80;
+                for($j=0; $j<8; $j++) {
+                    if($data[$i] & $mask) {
+                        $bstream->data[$p] = 1;
+                    } else {
+                        $bstream->data[$p] = 0;
+                    }
+                    $p++;
+                    $mask = $mask >> 1;
+                }
+            }
+
+            return $bstream;
+        }
+        
+        //----------------------------------------------------------------------
+        public function append(QRbitstream $arg)
+        {
+            if (is_null($arg)) {
+                return -1;
+            }
+            
+            if($arg->size() == 0) {
+                return 0;
+            }
+            
+            if($this->size() == 0) {
+                $this->data = $arg->data;
+                return 0;
+            }
+            
+            $this->data = array_values(array_merge($this->data, $arg->data));
+
+            return 0;
+        }
+        
+        //----------------------------------------------------------------------
+        public function appendNum($bits, $num)
+        {
+            if ($bits == 0) 
+                return 0;
+
+            $b = QRbitstream::newFromNum($bits, $num);
+            
+            if(is_null($b))
+                return -1;
+
+            $ret = $this->append($b);
+            unset($b);
+
+            return $ret;
+        }
+
+        //----------------------------------------------------------------------
+        public function appendBytes($size, $data)
+        {
+            if ($size == 0) 
+                return 0;
+
+            $b = QRbitstream::newFromBytes($size, $data);
+            
+            if(is_null($b))
+                return -1;
+
+            $ret = $this->append($b);
+            unset($b);
+
+            return $ret;
+        }
+        
+        //----------------------------------------------------------------------
+        public function toByte()
+        {
+        
+            $size = $this->size();
+
+            if($size == 0) {
+                return array();
+            }
+            
+            $data = array_fill(0, (int)(($size + 7) / 8), 0);
+            $bytes = (int)($size / 8);
+
+            $p = 0;
+            
+            for($i=0; $i<$bytes; $i++) {
+                $v = 0;
+                for($j=0; $j<8; $j++) {
+                    $v = $v << 1;
+                    $v |= $this->data[$p];
+                    $p++;
+                }
+                $data[$i] = $v;
+            }
+            
+            if($size & 7) {
+                $v = 0;
+                for($j=0; $j<($size & 7); $j++) {
+                    $v = $v << 1;
+                    $v |= $this->data[$p];
+                    $p++;
+                }
+                $data[$bytes] = $v;
+            }
+
+            return $data;
+        }
+
+    }
+
+
+
+
+//---- qrsplit.php -----------------------------
+
+
+
+
+/*
+ * PHP QR Code encoder
+ *
+ * Input splitting classes
+ *
+ * Based on libqrencode C library distributed under LGPL 2.1
+ * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
+ *
+ * The following data / specifications are taken from
+ * "Two dimensional symbol -- QR-code -- Basic Specification" (JIS X0510:2004)
+ *  or
+ * "Automatic identification and data capture techniques -- 
+ *  QR Code 2005 bar code symbology specification" (ISO/IEC 18004:2006)
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+    class QRsplit {
+
+        public $dataStr = '';
+        public $input;
+        public $modeHint;
+
+        //----------------------------------------------------------------------
+        public function __construct($dataStr, $input, $modeHint) 
+        {
+            $this->dataStr  = $dataStr;
+            $this->input    = $input;
+            $this->modeHint = $modeHint;
+        }
+        
+        //----------------------------------------------------------------------
+        public static function isdigitat($str, $pos)
+        {    
+            if ($pos >= strlen($str))
+                return false;
+            
+            return ((ord($str[$pos]) >= ord('0'))&&(ord($str[$pos]) <= ord('9')));
+        }
+        
+        //----------------------------------------------------------------------
+        public static function isalnumat($str, $pos)
+        {
+            if ($pos >= strlen($str))
+                return false;
+                
+            return (QRinput::lookAnTable(ord($str[$pos])) >= 0);
+        }
+
+        //----------------------------------------------------------------------
+        public function identifyMode($pos)
+        {
+            if ($pos >= strlen($this->dataStr)) 
+                return QR_MODE_NUL;
+                
+            $c = $this->dataStr[$pos];
+            
+            if(self::isdigitat($this->dataStr, $pos)) {
+                return QR_MODE_NUM;
+            } else if(self::isalnumat($this->dataStr, $pos)) {
+                return QR_MODE_AN;
+            } else if($this->modeHint == QR_MODE_KANJI) {
+            
+                if ($pos+1 < strlen($this->dataStr)) 
+                {
+                    $d = $this->dataStr[$pos+1];
+                    $word = (ord($c) << 8) | ord($d);
+                    if(($word >= 0x8140 && $word <= 0x9ffc) || ($word >= 0xe040 && $word <= 0xebbf)) {
+                        return QR_MODE_KANJI;
+                    }
+                }
+            }
+
+            return QR_MODE_8;
+        } 
+        
+        //----------------------------------------------------------------------
+        public function eatNum()
+        {
+            $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion());
+
+            $p = 0;
+            while(self::isdigitat($this->dataStr, $p)) {
+                $p++;
+            }
+            
+            $run = $p;
+            $mode = $this->identifyMode($p);
+            
+            if($mode == QR_MODE_8) {
+                $dif = QRinput::estimateBitsModeNum($run) + 4 + $ln
+                     + QRinput::estimateBitsMode8(1)         // + 4 + l8
+                     - QRinput::estimateBitsMode8($run + 1); // - 4 - l8
+                if($dif > 0) {
+                    return $this->eat8();
+                }
+            }
+            if($mode == QR_MODE_AN) {
+                $dif = QRinput::estimateBitsModeNum($run) + 4 + $ln
+                     + QRinput::estimateBitsModeAn(1)        // + 4 + la
+                     - QRinput::estimateBitsModeAn($run + 1);// - 4 - la
+                if($dif > 0) {
+                    return $this->eatAn();
+                }
+            }
+            
+            $ret = $this->input->append(QR_MODE_NUM, $run, str_split($this->dataStr));
+            if($ret < 0)
+                return -1;
+
+            return $run;
+        }
+        
+        //----------------------------------------------------------------------
+        public function eatAn()
+        {
+            $la = QRspec::lengthIndicator(QR_MODE_AN,  $this->input->getVersion());
+            $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion());
+
+            $p = 0;
+            
+            while(self::isalnumat($this->dataStr, $p)) {
+                if(self::isdigitat($this->dataStr, $p)) {
+                    $q = $p;
+                    while(self::isdigitat($this->dataStr, $q)) {
+                        $q++;
+                    }
+                    
+                    $dif = QRinput::estimateBitsModeAn($p) // + 4 + la
+                         + QRinput::estimateBitsModeNum($q - $p) + 4 + $ln
+                         - QRinput::estimateBitsModeAn($q); // - 4 - la
+                         
+                    if($dif < 0) {
+                        break;
+                    } else {
+                        $p = $q;
+                    }
+                } else {
+                    $p++;
+                }
+            }
+
+            $run = $p;
+
+            if(!self::isalnumat($this->dataStr, $p)) {
+                $dif = QRinput::estimateBitsModeAn($run) + 4 + $la
+                     + QRinput::estimateBitsMode8(1) // + 4 + l8
+                      - QRinput::estimateBitsMode8($run + 1); // - 4 - l8
+                if($dif > 0) {
+                    return $this->eat8();
+                }
+            }
+
+            $ret = $this->input->append(QR_MODE_AN, $run, str_split($this->dataStr));
+            if($ret < 0)
+                return -1;
+
+            return $run;
+        }
+        
+        //----------------------------------------------------------------------
+        public function eatKanji()
+        {
+            $p = 0;
+            
+            while($this->identifyMode($p) == QR_MODE_KANJI) {
+                $p += 2;
+            }
+            
+            $ret = $this->input->append(QR_MODE_KANJI, $p, str_split($this->dataStr));
+            if($ret < 0)
+                return -1;
+
+            return $run;
+        }
+
+        //----------------------------------------------------------------------
+        public function eat8()
+        {
+            $la = QRspec::lengthIndicator(QR_MODE_AN, $this->input->getVersion());
+            $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion());
+
+            $p = 1;
+            $dataStrLen = strlen($this->dataStr);
+            
+            while($p < $dataStrLen) {
+                
+                $mode = $this->identifyMode($p);
+                if($mode == QR_MODE_KANJI) {
+                    break;
+                }
+                if($mode == QR_MODE_NUM) {
+                    $q = $p;
+                    while(self::isdigitat($this->dataStr, $q)) {
+                        $q++;
+                    }
+                    $dif = QRinput::estimateBitsMode8($p) // + 4 + l8
+                         + QRinput::estimateBitsModeNum($q - $p) + 4 + $ln
+                         - QRinput::estimateBitsMode8($q); // - 4 - l8
+                    if($dif < 0) {
+                        break;
+                    } else {
+                        $p = $q;
+                    }
+                } else if($mode == QR_MODE_AN) {
+                    $q = $p;
+                    while(self::isalnumat($this->dataStr, $q)) {
+                        $q++;
+                    }
+                    $dif = QRinput::estimateBitsMode8($p)  // + 4 + l8
+                         + QRinput::estimateBitsModeAn($q - $p) + 4 + $la
+                         - QRinput::estimateBitsMode8($q); // - 4 - l8
+                    if($dif < 0) {
+                        break;
+                    } else {
+                        $p = $q;
+                    }
+                } else {
+                    $p++;
+                }
+            }
+
+            $run = $p;
+            $ret = $this->input->append(QR_MODE_8, $run, str_split($this->dataStr));
+            
+            if($ret < 0)
+                return -1;
+
+            return $run;
+        }
+
+        //----------------------------------------------------------------------
+        public function splitString()
+        {
+            while (strlen($this->dataStr) > 0)
+            {
+                if($this->dataStr == '')
+                    return 0;
+
+                $mode = $this->identifyMode(0);
+                
+                switch ($mode) {
+                    case QR_MODE_NUM: $length = $this->eatNum(); break;
+                    case QR_MODE_AN:  $length = $this->eatAn(); break;
+                    case QR_MODE_KANJI:
+                        if ($hint == QR_MODE_KANJI)
+                                $length = $this->eatKanji();
+                        else    $length = $this->eat8();
+                        break;
+                    default: $length = $this->eat8(); break;
+                
+                }
+
+                if($length == 0) return 0;
+                if($length < 0)  return -1;
+                
+                $this->dataStr = substr($this->dataStr, $length);
+            }
+        }
+
+        //----------------------------------------------------------------------
+        public function toUpper()
+        {
+            $stringLen = strlen($this->dataStr);
+            $p = 0;
+            
+            while ($p<$stringLen) {
+                $mode = self::identifyMode(substr($this->dataStr, $p), $this->modeHint);
+                if($mode == QR_MODE_KANJI) {
+                    $p += 2;
+                } else {
+                    if (ord($this->dataStr[$p]) >= ord('a') && ord($this->dataStr[$p]) <= ord('z')) {
+                        $this->dataStr[$p] = chr(ord($this->dataStr[$p]) - 32);
+                    }
+                    $p++;
+                }
+            }
+
+            return $this->dataStr;
+        }
+
+        //----------------------------------------------------------------------
+        public static function splitStringToQRinput($string, QRinput $input, $modeHint, $casesensitive = true)
+        {
+            if(is_null($string) || $string == '\0' || $string == '') {
+                throw new Exception('empty string!!!');
+            }
+
+            $split = new QRsplit($string, $input, $modeHint);
+            
+            if(!$casesensitive)
+                $split->toUpper();
+                
+            return $split->splitString();
+        }
+    }
+
+
+
+//---- qrrscode.php -----------------------------
+
+
+
+
+/*
+ * PHP QR Code encoder
+ *
+ * Reed-Solomon error correction support
+ * 
+ * Copyright (C) 2002, 2003, 2004, 2006 Phil Karn, KA9Q
+ * (libfec is released under the GNU Lesser General Public License.)
+ *
+ * Based on libqrencode C library distributed under LGPL 2.1
+ * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+ 
+    class QRrsItem {
+    
+        public $mm;                  // Bits per symbol 
+        public $nn;                  // Symbols per block (= (1<<mm)-1) 
+        public $alpha_to = array();  // log lookup table 
+        public $index_of = array();  // Antilog lookup table 
+        public $genpoly = array();   // Generator polynomial 
+        public $nroots;              // Number of generator roots = number of parity symbols 
+        public $fcr;                 // First consecutive root, index form 
+        public $prim;                // Primitive element, index form 
+        public $iprim;               // prim-th root of 1, index form 
+        public $pad;                 // Padding bytes in shortened block 
+        public $gfpoly;
+    
+        //----------------------------------------------------------------------
+        public function modnn($x)
+        {
+            while ($x >= $this->nn) {
+                $x -= $this->nn;
+                $x = ($x >> $this->mm) + ($x & $this->nn);
+            }
+            
+            return $x;
+        }
+        
+        //----------------------------------------------------------------------
+        public static function init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad)
+        {
+            // Common code for intializing a Reed-Solomon control block (char or int symbols)
+            // Copyright 2004 Phil Karn, KA9Q
+            // May be used under the terms of the GNU Lesser General Public License (LGPL)
+
+            $rs = null;
+            
+            // Check parameter ranges
+            if($symsize < 0 || $symsize > 8)                     return $rs;
+            if($fcr < 0 || $fcr >= (1<<$symsize))                return $rs;
+            if($prim <= 0 || $prim >= (1<<$symsize))             return $rs;
+            if($nroots < 0 || $nroots >= (1<<$symsize))          return $rs; // Can't have more roots than symbol values!
+            if($pad < 0 || $pad >= ((1<<$symsize) -1 - $nroots)) return $rs; // Too much padding
+
+            $rs = new QRrsItem();
+            $rs->mm = $symsize;
+            $rs->nn = (1<<$symsize)-1;
+            $rs->pad = $pad;
+
+            $rs->alpha_to = array_fill(0, $rs->nn+1, 0);
+            $rs->index_of = array_fill(0, $rs->nn+1, 0);
+          
+            // PHP style macro replacement ;)
+            $NN =& $rs->nn;
+            $A0 =& $NN;
+            
+            // Generate Galois field lookup tables
+            $rs->index_of[0] = $A0; // log(zero) = -inf
+            $rs->alpha_to[$A0] = 0; // alpha**-inf = 0
+            $sr = 1;
+          
+            for($i=0; $i<$rs->nn; $i++) {
+                $rs->index_of[$sr] = $i;
+                $rs->alpha_to[$i] = $sr;
+                $sr <<= 1;
+                if($sr & (1<<$symsize)) {
+                    $sr ^= $gfpoly;
+                }
+                $sr &= $rs->nn;
+            }
+            
+            if($sr != 1){
+                // field generator polynomial is not primitive!
+                $rs = NULL;
+                return $rs;
+            }
+
+            /* Form RS code generator polynomial from its roots */
+            $rs->genpoly = array_fill(0, $nroots+1, 0);
+        
+            $rs->fcr = $fcr;
+            $rs->prim = $prim;
+            $rs->nroots = $nroots;
+            $rs->gfpoly = $gfpoly;
+
+            /* Find prim-th root of 1, used in decoding */
+            for($iprim=1;($iprim % $prim) != 0;$iprim += $rs->nn)
+            ; // intentional empty-body loop!
+            
+            $rs->iprim = (int)($iprim / $prim);
+            $rs->genpoly[0] = 1;
+            
+            for ($i = 0,$root=$fcr*$prim; $i < $nroots; $i++, $root += $prim) {
+                $rs->genpoly[$i+1] = 1;
+
+                // Multiply rs->genpoly[] by  @**(root + x)
+                for ($j = $i; $j > 0; $j--) {
+                    if ($rs->genpoly[$j] != 0) {
+                        $rs->genpoly[$j] = $rs->genpoly[$j-1] ^ $rs->alpha_to[$rs->modnn($rs->index_of[$rs->genpoly[$j]] + $root)];
+                    } else {
+                        $rs->genpoly[$j] = $rs->genpoly[$j-1];
+                    }
+                }
+                // rs->genpoly[0] can never be zero
+                $rs->genpoly[0] = $rs->alpha_to[$rs->modnn($rs->index_of[$rs->genpoly[0]] + $root)];
+            }
+            
+            // convert rs->genpoly[] to index form for quicker encoding
+            for ($i = 0; $i <= $nroots; $i++)
+                $rs->genpoly[$i] = $rs->index_of[$rs->genpoly[$i]];
+
+            return $rs;
+        }
+        
+        //----------------------------------------------------------------------
+        public function encode_rs_char($data, &$parity)
+        {
+            $MM       =& $this->mm;
+            $NN       =& $this->nn;
+            $ALPHA_TO =& $this->alpha_to;
+            $INDEX_OF =& $this->index_of;
+            $GENPOLY  =& $this->genpoly;
+            $NROOTS   =& $this->nroots;
+            $FCR      =& $this->fcr;
+            $PRIM     =& $this->prim;
+            $IPRIM    =& $this->iprim;
+            $PAD      =& $this->pad;
+            $A0       =& $NN;
+
+            $parity = array_fill(0, $NROOTS, 0);
+
+            for($i=0; $i< ($NN-$NROOTS-$PAD); $i++) {
+                
+                $feedback = $INDEX_OF[$data[$i] ^ $parity[0]];
+                if($feedback != $A0) {      
+                    // feedback term is non-zero
+            
+                    // This line is unnecessary when GENPOLY[NROOTS] is unity, as it must
+                    // always be for the polynomials constructed by init_rs()
+                    $feedback = $this->modnn($NN - $GENPOLY[$NROOTS] + $feedback);
+            
+                    for($j=1;$j<$NROOTS;$j++) {
+                        $parity[$j] ^= $ALPHA_TO[$this->modnn($feedback + $GENPOLY[$NROOTS-$j])];
+                    }
+                }
+                
+                // Shift 
+                array_shift($parity);
+                if($feedback != $A0) {
+                    array_push($parity, $ALPHA_TO[$this->modnn($feedback + $GENPOLY[0])]);
+                } else {
+                    array_push($parity, 0);
+                }
+            }
+        }
+    }
+    
+    //##########################################################################
+    
+    class QRrs {
+    
+        public static $items = array();
+        
+        //----------------------------------------------------------------------
+        public static function init_rs($symsize, $gfpoly, $fcr, $prim, $nroots, $pad)
+        {
+            foreach(self::$items as $rs) {
+                if($rs->pad != $pad)       continue;
+                if($rs->nroots != $nroots) continue;
+                if($rs->mm != $symsize)    continue;
+                if($rs->gfpoly != $gfpoly) continue;
+                if($rs->fcr != $fcr)       continue;
+                if($rs->prim != $prim)     continue;
+
+                return $rs;
+            }
+
+            $rs = QRrsItem::init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad);
+            array_unshift(self::$items, $rs);
+
+            return $rs;
+        }
+    }
+
+
+
+//---- qrmask.php -----------------------------
+
+
+
+
+/*
+ * PHP QR Code encoder
+ *
+ * Masking
+ *
+ * Based on libqrencode C library distributed under LGPL 2.1
+ * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+ 
+	define('N1', 3);
+	define('N2', 3);
+	define('N3', 40);
+	define('N4', 10);
+
+	class QRmask {
+	
+		public $runLength = array();
+		
+		//----------------------------------------------------------------------
+		public function __construct() 
+        {
+            $this->runLength = array_fill(0, QRSPEC_WIDTH_MAX + 1, 0);
+        }
+        
+        //----------------------------------------------------------------------
+        public function writeFormatInformation($width, &$frame, $mask, $level)
+        {
+            $blacks = 0;
+            $format =  QRspec::getFormatInfo($mask, $level);
+
+            for($i=0; $i<8; $i++) {
+                if($format & 1) {
+                    $blacks += 2;
+                    $v = 0x85;
+                } else {
+                    $v = 0x84;
+                }
+                
+                $frame[8][$width - 1 - $i] = chr($v);
+                if($i < 6) {
+                    $frame[$i][8] = chr($v);
+                } else {
+                    $frame[$i + 1][8] = chr($v);
+                }
+                $format = $format >> 1;
+            }
+            
+            for($i=0; $i<7; $i++) {
+                if($format & 1) {
+                    $blacks += 2;
+                    $v = 0x85;
+                } else {
+                    $v = 0x84;
+                }
+                
+                $frame[$width - 7 + $i][8] = chr($v);
+                if($i == 0) {
+                    $frame[8][7] = chr($v);
+                } else {
+                    $frame[8][6 - $i] = chr($v);
+                }
+                
+                $format = $format >> 1;
+            }
+
+            return $blacks;
+        }
+        
+        //----------------------------------------------------------------------
+        public function mask0($x, $y) { return ($x+$y)&1;                       }
+        public function mask1($x, $y) { return ($y&1);                          }
+        public function mask2($x, $y) { return ($x%3);                          }
+        public function mask3($x, $y) { return ($x+$y)%3;                       }
+        public function mask4($x, $y) { return (((int)($y/2))+((int)($x/3)))&1; }
+        public function mask5($x, $y) { return (($x*$y)&1)+($x*$y)%3;           }
+        public function mask6($x, $y) { return ((($x*$y)&1)+($x*$y)%3)&1;       }
+        public function mask7($x, $y) { return ((($x*$y)%3)+(($x+$y)&1))&1;     }
+        
+        //----------------------------------------------------------------------
+        private function generateMaskNo($maskNo, $width, $frame)
+        {
+            $bitMask = array_fill(0, $width, array_fill(0, $width, 0));
+            
+            for($y=0; $y<$width; $y++) {
+                for($x=0; $x<$width; $x++) {
+                    if(ord($frame[$y][$x]) & 0x80) {
+                        $bitMask[$y][$x] = 0;
+                    } else {
+                        $maskFunc = call_user_func(array($this, 'mask'.$maskNo), $x, $y);
+                        $bitMask[$y][$x] = ($maskFunc == 0)?1:0;
+                    }
+                    
+                }
+            }
+            
+            return $bitMask;
+        }
+        
+        //----------------------------------------------------------------------
+        public static function serial($bitFrame)
+        {
+            $codeArr = array();
+            
+            foreach ($bitFrame as $line)
+                $codeArr[] = join('', $line);
+                
+            return gzcompress(join("\n", $codeArr), 9);
+        }
+        
+        //----------------------------------------------------------------------
+        public static function unserial($code)
+        {
+            $codeArr = array();
+            
+            $codeLines = explode("\n", gzuncompress($code));
+            foreach ($codeLines as $line)
+                $codeArr[] = str_split($line);
+            
+            return $codeArr;
+        }
+        
+        //----------------------------------------------------------------------
+        public function makeMaskNo($maskNo, $width, $s, &$d, $maskGenOnly = false) 
+        {
+            $b = 0;
+            $bitMask = array();
+            
+            $fileName = QR_CACHE_DIR.'mask_'.$maskNo.DIRECTORY_SEPARATOR.'mask_'.$width.'_'.$maskNo.'.dat';
+
+            if (QR_CACHEABLE) {
+                if (file_exists($fileName)) {
+                    $bitMask = self::unserial(file_get_contents($fileName));
+                } else {
+                    $bitMask = $this->generateMaskNo($maskNo, $width, $s, $d);
+                    if (!file_exists(QR_CACHE_DIR.'mask_'.$maskNo))
+                        mkdir(QR_CACHE_DIR.'mask_'.$maskNo);
+                    file_put_contents($fileName, self::serial($bitMask));
+                }
+            } else {
+                $bitMask = $this->generateMaskNo($maskNo, $width, $s, $d);
+            }
+
+            if ($maskGenOnly)
+                return;
+                
+            $d = $s;
+
+            for($y=0; $y<$width; $y++) {
+                for($x=0; $x<$width; $x++) {
+                    if($bitMask[$y][$x] == 1) {
+                        $d[$y][$x] = chr(ord($s[$y][$x]) ^ (int)$bitMask[$y][$x]);
+                    }
+                    $b += (int)(ord($d[$y][$x]) & 1);
+                }
+            }
+
+            return $b;
+        }
+        
+        //----------------------------------------------------------------------
+        public function makeMask($width, $frame, $maskNo, $level)
+        {
+            $masked = array_fill(0, $width, str_repeat("\0", $width));
+            $this->makeMaskNo($maskNo, $width, $frame, $masked);
+            $this->writeFormatInformation($width, $masked, $maskNo, $level);
+       
+            return $masked;
+        }
+        
+        //----------------------------------------------------------------------
+        public function calcN1N3($length)
+        {
+            $demerit = 0;
+
+            for($i=0; $i<$length; $i++) {
+                
+                if($this->runLength[$i] >= 5) {
+                    $demerit += (N1 + ($this->runLength[$i] - 5));
+                }
+                if($i & 1) {
+                    if(($i >= 3) && ($i < ($length-2)) && ($this->runLength[$i] % 3 == 0)) {
+                        $fact = (int)($this->runLength[$i] / 3);
+                        if(($this->runLength[$i-2] == $fact) &&
+                           ($this->runLength[$i-1] == $fact) &&
+                           ($this->runLength[$i+1] == $fact) &&
+                           ($this->runLength[$i+2] == $fact)) {
+                            if(($this->runLength[$i-3] < 0) || ($this->runLength[$i-3] >= (4 * $fact))) {
+                                $demerit += N3;
+                            } else if((($i+3) >= $length) || ($this->runLength[$i+3] >= (4 * $fact))) {
+                                $demerit += N3;
+                            }
+                        }
+                    }
+                }
+            }
+            return $demerit;
+        }
+        
+        //----------------------------------------------------------------------
+        public function evaluateSymbol($width, $frame)
+        {
+            $head = 0;
+            $demerit = 0;
+
+            for($y=0; $y<$width; $y++) {
+                $head = 0;
+                $this->runLength[0] = 1;
+                
+                $frameY = $frame[$y];
+                
+                if ($y>0)
+                    $frameYM = $frame[$y-1];
+                
+                for($x=0; $x<$width; $x++) {
+                    if(($x > 0) && ($y > 0)) {
+                        $b22 = ord($frameY[$x]) & ord($frameY[$x-1]) & ord($frameYM[$x]) & ord($frameYM[$x-1]);
+                        $w22 = ord($frameY[$x]) | ord($frameY[$x-1]) | ord($frameYM[$x]) | ord($frameYM[$x-1]);
+                        
+                        if(($b22 | ($w22 ^ 1))&1) {                                                                     
+                            $demerit += N2;
+                        }
+                    }
+                    if(($x == 0) && (ord($frameY[$x]) & 1)) {
+                        $this->runLength[0] = -1;
+                        $head = 1;
+                        $this->runLength[$head] = 1;
+                    } else if($x > 0) {
+                        if((ord($frameY[$x]) ^ ord($frameY[$x-1])) & 1) {
+                            $head++;
+                            $this->runLength[$head] = 1;
+                        } else {
+                            $this->runLength[$head]++;
+                        }
+                    }
+                }
+    
+                $demerit += $this->calcN1N3($head+1);
+            }
+
+            for($x=0; $x<$width; $x++) {
+                $head = 0;
+                $this->runLength[0] = 1;
+                
+                for($y=0; $y<$width; $y++) {
+                    if($y == 0 && (ord($frame[$y][$x]) & 1)) {
+                        $this->runLength[0] = -1;
+                        $head = 1;
+                        $this->runLength[$head] = 1;
+                    } else if($y > 0) {
+                        if((ord($frame[$y][$x]) ^ ord($frame[$y-1][$x])) & 1) {
+                            $head++;
+                            $this->runLength[$head] = 1;
+                        } else {
+                            $this->runLength[$head]++;
+                        }
+                    }
+                }
+            
+                $demerit += $this->calcN1N3($head+1);
+            }
+
+            return $demerit;
+        }
+        
+        
+        //----------------------------------------------------------------------
+        public function mask($width, $frame, $level)
+        {
+            $minDemerit = PHP_INT_MAX;
+            $bestMaskNum = 0;
+            $bestMask = array();
+            
+            $checked_masks = array(0,1,2,3,4,5,6,7);
+            
+            if (QR_FIND_FROM_RANDOM !== false) {
+            
+                $howManuOut = 8-(QR_FIND_FROM_RANDOM % 9);
+                for ($i = 0; $i <  $howManuOut; $i++) {
+                    $remPos = rand (0, count($checked_masks)-1);
+                    unset($checked_masks[$remPos]);
+                    $checked_masks = array_values($checked_masks);
+                }
+            
+            }
+            
+            $bestMask = $frame;
+             
+            foreach($checked_masks as $i) {
+                $mask = array_fill(0, $width, str_repeat("\0", $width));
+
+                $demerit = 0;
+                $blacks = 0;
+                $blacks  = $this->makeMaskNo($i, $width, $frame, $mask);
+                $blacks += $this->writeFormatInformation($width, $mask, $i, $level);
+                $blacks  = (int)(100 * $blacks / ($width * $width));
+                $demerit = (int)((int)(abs($blacks - 50) / 5) * N4);
+                $demerit += $this->evaluateSymbol($width, $mask);
+                
+                if($demerit < $minDemerit) {
+                    $minDemerit = $demerit;
+                    $bestMask = $mask;
+                    $bestMaskNum = $i;
+                }
+            }
+            
+            return $bestMask;
+        }
+        
+        //----------------------------------------------------------------------
+    }
+
+
+
+
+//---- qrencode.php -----------------------------
+
+
+
+
+/*
+ * PHP QR Code encoder
+ *
+ * Main encoder classes.
+ *
+ * Based on libqrencode C library distributed under LGPL 2.1
+ * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+ 
+    class QRrsblock {
+        public $dataLength;
+        public $data = array();
+        public $eccLength;
+        public $ecc = array();
+        
+        public function __construct($dl, $data, $el, &$ecc, QRrsItem $rs)
+        {
+            $rs->encode_rs_char($data, $ecc);
+        
+            $this->dataLength = $dl;
+            $this->data = $data;
+            $this->eccLength = $el;
+            $this->ecc = $ecc;
+        }
+    };
+    
+    //##########################################################################
+
+    class QRrawcode {
+        public $version;
+        public $datacode = array();
+        public $ecccode = array();
+        public $blocks;
+        public $rsblocks = array(); //of RSblock
+        public $count;
+        public $dataLength;
+        public $eccLength;
+        public $b1;
+        
+        //----------------------------------------------------------------------
+        public function __construct(QRinput $input)
+        {
+            $spec = array(0,0,0,0,0);
+            
+            $this->datacode = $input->getByteStream();
+            if(is_null($this->datacode)) {
+                throw new Exception('null imput string');
+            }
+
+            QRspec::getEccSpec($input->getVersion(), $input->getErrorCorrectionLevel(), $spec);
+
+            $this->version = $input->getVersion();
+            $this->b1 = QRspec::rsBlockNum1($spec);
+            $this->dataLength = QRspec::rsDataLength($spec);
+            $this->eccLength = QRspec::rsEccLength($spec);
+            $this->ecccode = array_fill(0, $this->eccLength, 0);
+            $this->blocks = QRspec::rsBlockNum($spec);
+            
+            $ret = $this->init($spec);
+            if($ret < 0) {
+                throw new Exception('block alloc error');
+                return null;
+            }
+
+            $this->count = 0;
+        }
+        
+        //----------------------------------------------------------------------
+        public function init(array $spec)
+        {
+            $dl = QRspec::rsDataCodes1($spec);
+            $el = QRspec::rsEccCodes1($spec);
+            $rs = QRrs::init_rs(8, 0x11d, 0, 1, $el, 255 - $dl - $el);
+            
+
+            $blockNo = 0;
+            $dataPos = 0;
+            $eccPos = 0;
+            for($i=0; $i<QRspec::rsBlockNum1($spec); $i++) {
+                $ecc = array_slice($this->ecccode,$eccPos);
+                $this->rsblocks[$blockNo] = new QRrsblock($dl, array_slice($this->datacode, $dataPos), $el,  $ecc, $rs);
+                $this->ecccode = array_merge(array_slice($this->ecccode,0, $eccPos), $ecc);
+                
+                $dataPos += $dl;
+                $eccPos += $el;
+                $blockNo++;
+            }
+
+            if(QRspec::rsBlockNum2($spec) == 0)
+                return 0;
+
+            $dl = QRspec::rsDataCodes2($spec);
+            $el = QRspec::rsEccCodes2($spec);
+            $rs = QRrs::init_rs(8, 0x11d, 0, 1, $el, 255 - $dl - $el);
+            
+            if($rs == NULL) return -1;
+            
+            for($i=0; $i<QRspec::rsBlockNum2($spec); $i++) {
+                $ecc = array_slice($this->ecccode,$eccPos);
+                $this->rsblocks[$blockNo] = new QRrsblock($dl, array_slice($this->datacode, $dataPos), $el, $ecc, $rs);
+                $this->ecccode = array_merge(array_slice($this->ecccode,0, $eccPos), $ecc);
+                
+                $dataPos += $dl;
+                $eccPos += $el;
+                $blockNo++;
+            }
+
+            return 0;
+        }
+        
+        //----------------------------------------------------------------------
+        public function getCode()
+        {
+            $ret;
+
+            if($this->count < $this->dataLength) {
+                $row = $this->count % $this->blocks;
+                $col = $this->count / $this->blocks;
+                if($col >= $this->rsblocks[0]->dataLength) {
+                    $row += $this->b1;
+                }
+                $ret = $this->rsblocks[$row]->data[$col];
+            } else if($this->count < $this->dataLength + $this->eccLength) {
+                $row = ($this->count - $this->dataLength) % $this->blocks;
+                $col = ($this->count - $this->dataLength) / $this->blocks;
+                $ret = $this->rsblocks[$row]->ecc[$col];
+            } else {
+                return 0;
+            }
+            $this->count++;
+            
+            return $ret;
+        }
+    }
+
+    //##########################################################################
+    
+    class QRcode {
+    
+        public $version;
+        public $width;
+        public $data; 
+        
+        //----------------------------------------------------------------------
+        public function encodeMask(QRinput $input, $mask)
+        {
+            if($input->getVersion() < 0 || $input->getVersion() > QRSPEC_VERSION_MAX) {
+                throw new Exception('wrong version');
+            }
+            if($input->getErrorCorrectionLevel() > QR_ECLEVEL_H) {
+                throw new Exception('wrong level');
+            }
+
+            $raw = new QRrawcode($input);
+            
+            QRtools::markTime('after_raw');
+            
+            $version = $raw->version;
+            $width = QRspec::getWidth($version);
+            $frame = QRspec::newFrame($version);
+            
+            $filler = new FrameFiller($width, $frame);
+            if(is_null($filler)) {
+                return NULL;
+            }
+
+            // inteleaved data and ecc codes
+            for($i=0; $i<$raw->dataLength + $raw->eccLength; $i++) {
+                $code = $raw->getCode();
+                $bit = 0x80;
+                for($j=0; $j<8; $j++) {
+                    $addr = $filler->next();
+                    $filler->setFrameAt($addr, 0x02 | (($bit & $code) != 0));
+                    $bit = $bit >> 1;
+                }
+            }
+            
+            QRtools::markTime('after_filler');
+            
+            unset($raw);
+            
+            // remainder bits
+            $j = QRspec::getRemainder($version);
+            for($i=0; $i<$j; $i++) {
+                $addr = $filler->next();
+                $filler->setFrameAt($addr, 0x02);
+            }
+            
+            $frame = $filler->frame;
+            unset($filler);
+            
+            
+            // masking
+            $maskObj = new QRmask();
+            if($mask < 0) {
+            
+                if (QR_FIND_BEST_MASK) {
+                    $masked = $maskObj->mask($width, $frame, $input->getErrorCorrectionLevel());
+                } else {
+                    $masked = $maskObj->makeMask($width, $frame, (intval(QR_DEFAULT_MASK) % 8), $input->getErrorCorrectionLevel());
+                }
+            } else {
+                $masked = $maskObj->makeMask($width, $frame, $mask, $input->getErrorCorrectionLevel());
+            }
+            
+            if($masked == NULL) {
+                return NULL;
+            }
+            
+            QRtools::markTime('after_mask');
+            
+            $this->version = $version;
+            $this->width = $width;
+            $this->data = $masked;
+            
+            return $this;
+        }
+    
+        //----------------------------------------------------------------------
+        public function encodeInput(QRinput $input)
+        {
+            return $this->encodeMask($input, -1);
+        }
+        
+        //----------------------------------------------------------------------
+        public function encodeString8bit($string, $version, $level)
+        {
+            if(string == NULL) {
+                throw new Exception('empty string!');
+                return NULL;
+            }
+
+            $input = new QRinput($version, $level);
+            if($input == NULL) return NULL;
+
+            $ret = $input->append($input, QR_MODE_8, strlen($string), str_split($string));
+            if($ret < 0) {
+                unset($input);
+                return NULL;
+            }
+            return $this->encodeInput($input);
+        }
+
+        //----------------------------------------------------------------------
+        public function encodeString($string, $version, $level, $hint, $casesensitive)
+        {
+
+            if($hint != QR_MODE_8 && $hint != QR_MODE_KANJI) {
+                throw new Exception('bad hint');
+                return NULL;
+            }
+
+            $input = new QRinput($version, $level);
+            if($input == NULL) return NULL;
+
+            $ret = QRsplit::splitStringToQRinput($string, $input, $hint, $casesensitive);
+            if($ret < 0) {
+                return NULL;
+            }
+
+            return $this->encodeInput($input);
+        }
+        
+        //----------------------------------------------------------------------
+        public static function png($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4, $saveandprint=false) 
+        {
+            $enc = QRencode::factory($level, $size, $margin);
+            return $enc->encodePNG($text, $outfile, $saveandprint=false);
+        }
+        
+        //------start of modification by bezahlcode.de------------------------
+        public static function pngWithBezahlCode($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4, $saveandprint=false) 
+        {
+            $enc = QRencode::factory($level, $size, $margin);
+            return $enc->encodePNGWithBezahlCode($text, $outfile, $saveandprint=false);
+        }
+        //------end of modification by bezahlcode.de--------------------------
+
+        //----------------------------------------------------------------------
+        public static function text($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4) 
+        {
+            $enc = QRencode::factory($level, $size, $margin);
+            return $enc->encode($text, $outfile);
+        }
+
+        //----------------------------------------------------------------------
+        public static function raw($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4) 
+        {
+            $enc = QRencode::factory($level, $size, $margin);
+            return $enc->encodeRAW($text, $outfile);
+        }
+    }
+    
+    //##########################################################################
+    
+    class FrameFiller {
+    
+        public $width;
+        public $frame;
+        public $x;
+        public $y;
+        public $dir;
+        public $bit;
+        
+        //----------------------------------------------------------------------
+        public function __construct($width, &$frame)
+        {
+            $this->width = $width;
+            $this->frame = $frame;
+            $this->x = $width - 1;
+            $this->y = $width - 1;
+            $this->dir = -1;
+            $this->bit = -1;
+        }
+        
+        //----------------------------------------------------------------------
+        public function setFrameAt($at, $val)
+        {
+            $this->frame[$at['y']][$at['x']] = chr($val);
+        }
+        
+        //----------------------------------------------------------------------
+        public function getFrameAt($at)
+        {
+            return ord($this->frame[$at['y']][$at['x']]);
+        }
+        
+        //----------------------------------------------------------------------
+        public function next()
+        {
+            do {
+            
+                if($this->bit == -1) {
+                    $this->bit = 0;
+                    return array('x'=>$this->x, 'y'=>$this->y);
+                }
+
+                $x = $this->x;
+                $y = $this->y;
+                $w = $this->width;
+
+                if($this->bit == 0) {
+                    $x--;
+                    $this->bit++;
+                } else {
+                    $x++;
+                    $y += $this->dir;
+                    $this->bit--;
+                }
+
+                if($this->dir < 0) {
+                    if($y < 0) {
+                        $y = 0;
+                        $x -= 2;
+                        $this->dir = 1;
+                        if($x == 6) {
+                            $x--;
+                            $y = 9;
+                        }
+                    }
+                } else {
+                    if($y == $w) {
+                        $y = $w - 1;
+                        $x -= 2;
+                        $this->dir = -1;
+                        if($x == 6) {
+                            $x--;
+                            $y -= 8;
+                        }
+                    }
+                }
+                if($x < 0 || $y < 0) return null;
+
+                $this->x = $x;
+                $this->y = $y;
+
+            } while(ord($this->frame[$y][$x]) & 0x80);
+                        
+            return array('x'=>$x, 'y'=>$y);
+        }
+        
+    } ;
+    
+    //##########################################################################    
+    
+    class QRencode {
+    
+        public $casesensitive = true;
+        public $eightbit = false;
+        
+        public $version = 0;
+        public $size = 3;
+        public $margin = 4;
+        
+        public $structured = 0; // not supported yet
+        
+        public $level = QR_ECLEVEL_L;
+        public $hint = QR_MODE_8;
+        
+        //----------------------------------------------------------------------
+        public static function factory($level = QR_ECLEVEL_L, $size = 3, $margin = 4)
+        {
+            $enc = new QRencode();
+            $enc->size = $size;
+            $enc->margin = $margin;
+            
+            switch ($level.'') {
+                case '0':
+                case '1':
+                case '2':
+                case '3':
+                        $enc->level = $level;
+                    break;
+                case 'l':
+                case 'L':
+                        $enc->level = QR_ECLEVEL_L;
+                    break;
+                case 'm':
+                case 'M':
+                        $enc->level = QR_ECLEVEL_M;
+                    break;
+                case 'q':
+                case 'Q':
+                        $enc->level = QR_ECLEVEL_Q;
+                    break;
+                case 'h':
+                case 'H':
+                        $enc->level = QR_ECLEVEL_H;
+                    break;
+            }
+            
+            return $enc;
+        }
+        
+        //----------------------------------------------------------------------
+        public function encodeRAW($intext, $outfile = false) 
+        {
+            $code = new QRcode();
+
+            if($this->eightbit) {
+                $code->encodeString8bit($intext, $this->version, $this->level);
+            } else {
+                $code->encodeString($intext, $this->version, $this->level, $this->hint, $this->casesensitive);
+            }
+            
+            return $code->data;
+        }
+
+        //----------------------------------------------------------------------
+        public function encode($intext, $outfile = false) 
+        {
+            $code = new QRcode();
+
+            if($this->eightbit) {
+                $code->encodeString8bit($intext, $this->version, $this->level);
+            } else {
+                $code->encodeString($intext, $this->version, $this->level, $this->hint, $this->casesensitive);
+            }
+            
+            QRtools::markTime('after_encode');
+            
+            if ($outfile!== false) {
+                file_put_contents($outfile, join("\n", QRtools::binarize($code->data)));
+            } else {
+                return QRtools::binarize($code->data);
+            }
+        }
+        
+        //----------------------------------------------------------------------
+        public function encodePNG($intext, $outfile = false,$saveandprint=false) 
+        {
+            try {
+            
+                ob_start();
+                $tab = $this->encode($intext);
+                $err = ob_get_contents();
+                ob_end_clean();
+                
+                if ($err != '')
+                    QRtools::log($outfile, $err);
+                
+                $maxSize = (int)(QR_PNG_MAXIMUM_SIZE / (count($tab)+2*$this->margin));
+                
+                QRimage::png($tab, $outfile, min(max(1, $this->size), $maxSize), $this->margin,$saveandprint);
+            
+            } catch (Exception $e) {
+            
+                QRtools::log($outfile, $e->getMessage());
+            
+            }
+        }
+        
+        //------start of modification by bezahlcode.de------------------------
+        public function encodePNGWithBezahlCode($intext, $outfile = false,$saveandprint=false) 
+        {
+            try {
+            
+                ob_start();
+                $tab = $this->encode($intext);
+                $err = ob_get_contents();
+                ob_end_clean();
+                
+                if ($err != '')
+                    QRtools::log($outfile, $err);
+                
+                $maxSize = (int)(QR_PNG_MAXIMUM_SIZE / (count($tab)+2*$this->margin));
+                
+                QRimage::pngWithBezahlCode($tab, $outfile, min(max(1, $this->size), $maxSize), $this->margin,$saveandprint);
+            
+            } catch (Exception $e) {
+            
+                QRtools::log($outfile, $e->getMessage());
+            
+            }
+        }
+        //------end of modification by bezahlcode.de--------------------------
+    }
+
+
Index: /lib/phpqrcode/qrbitstream.php
===================================================================
--- /lib/phpqrcode/qrbitstream.php	(revision 6232)
+++ /lib/phpqrcode/qrbitstream.php	(revision 6232)
@@ -0,0 +1,180 @@
+<?php
+/*
+ * PHP QR Code encoder
+ *
+ * Bitstream class
+ *
+ * Based on libqrencode C library distributed under LGPL 2.1
+ * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+     
+    class QRbitstream {
+    
+        public $data = array();
+        
+        //----------------------------------------------------------------------
+        public function size()
+        {
+            return count($this->data);
+        }
+        
+        //----------------------------------------------------------------------
+        public function allocate($setLength)
+        {
+            $this->data = array_fill(0, $setLength, 0);
+            return 0;
+        }
+    
+        //----------------------------------------------------------------------
+        public static function newFromNum($bits, $num)
+        {
+            $bstream = new QRbitstream();
+            $bstream->allocate($bits);
+            
+            $mask = 1 << ($bits - 1);
+            for($i=0; $i<$bits; $i++) {
+                if($num & $mask) {
+                    $bstream->data[$i] = 1;
+                } else {
+                    $bstream->data[$i] = 0;
+                }
+                $mask = $mask >> 1;
+            }
+
+            return $bstream;
+        }
+        
+        //----------------------------------------------------------------------
+        public static function newFromBytes($size, $data)
+        {
+            $bstream = new QRbitstream();
+            $bstream->allocate($size * 8);
+            $p=0;
+
+            for($i=0; $i<$size; $i++) {
+                $mask = 0x80;
+                for($j=0; $j<8; $j++) {
+                    if($data[$i] & $mask) {
+                        $bstream->data[$p] = 1;
+                    } else {
+                        $bstream->data[$p] = 0;
+                    }
+                    $p++;
+                    $mask = $mask >> 1;
+                }
+            }
+
+            return $bstream;
+        }
+        
+        //----------------------------------------------------------------------
+        public function append(QRbitstream $arg)
+        {
+            if (is_null($arg)) {
+                return -1;
+            }
+            
+            if($arg->size() == 0) {
+                return 0;
+            }
+            
+            if($this->size() == 0) {
+                $this->data = $arg->data;
+                return 0;
+            }
+            
+            $this->data = array_values(array_merge($this->data, $arg->data));
+
+            return 0;
+        }
+        
+        //----------------------------------------------------------------------
+        public function appendNum($bits, $num)
+        {
+            if ($bits == 0) 
+                return 0;
+
+            $b = QRbitstream::newFromNum($bits, $num);
+            
+            if(is_null($b))
+                return -1;
+
+            $ret = $this->append($b);
+            unset($b);
+
+            return $ret;
+        }
+
+        //----------------------------------------------------------------------
+        public function appendBytes($size, $data)
+        {
+            if ($size == 0) 
+                return 0;
+
+            $b = QRbitstream::newFromBytes($size, $data);
+            
+            if(is_null($b))
+                return -1;
+
+            $ret = $this->append($b);
+            unset($b);
+
+            return $ret;
+        }
+        
+        //----------------------------------------------------------------------
+        public function toByte()
+        {
+        
+            $size = $this->size();
+
+            if($size == 0) {
+                return array();
+            }
+            
+            $data = array_fill(0, (int)(($size + 7) / 8), 0);
+            $bytes = (int)($size / 8);
+
+            $p = 0;
+            
+            for($i=0; $i<$bytes; $i++) {
+                $v = 0;
+                for($j=0; $j<8; $j++) {
+                    $v = $v << 1;
+                    $v |= $this->data[$p];
+                    $p++;
+                }
+                $data[$i] = $v;
+            }
+            
+            if($size & 7) {
+                $v = 0;
+                for($j=0; $j<($size & 7); $j++) {
+                    $v = $v << 1;
+                    $v |= $this->data[$p];
+                    $p++;
+                }
+                $data[$bytes] = $v;
+            }
+
+            return $data;
+        }
+
+    }
Index: /lib/phpqrcode/qrconfig.php
===================================================================
--- /lib/phpqrcode/qrconfig.php	(revision 6232)
+++ /lib/phpqrcode/qrconfig.php	(revision 6232)
@@ -0,0 +1,17 @@
+<?php
+/*
+ * PHP QR Code encoder
+ *
+ * Config file, feel free to modify
+ */
+     
+    define('QR_CACHEABLE', true);                                                               // use cache - more disk reads but less CPU power, masks and format templates are stored there
+    define('QR_CACHE_DIR', dirname(__FILE__).DIRECTORY_SEPARATOR.'cache'.DIRECTORY_SEPARATOR);  // used when QR_CACHEABLE === true
+    define('QR_LOG_DIR', dirname(__FILE__).DIRECTORY_SEPARATOR);                                // default error logs dir   
+    
+    define('QR_FIND_BEST_MASK', true);                                                          // if true, estimates best mask (spec. default, but extremally slow; set to false to significant performance boost but (propably) worst quality code
+    define('QR_FIND_FROM_RANDOM', false);                                                       // if false, checks all masks available, otherwise value tells count of masks need to be checked, mask id are got randomly
+    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
+                                                  
Index: /lib/phpqrcode/qrconst.php
===================================================================
--- /lib/phpqrcode/qrconst.php	(revision 6232)
+++ /lib/phpqrcode/qrconst.php	(revision 6232)
@@ -0,0 +1,54 @@
+<?php
+
+/*
+ * PHP QR Code encoder
+ *
+ * Common constants
+ *
+ * Based on libqrencode C library distributed under LGPL 2.1
+ * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+ 
+	// Encoding modes
+	 
+	define('QR_MODE_NUL', -1);
+	define('QR_MODE_NUM', 0);
+	define('QR_MODE_AN', 1);
+	define('QR_MODE_8', 2);
+	define('QR_MODE_KANJI', 3);
+	define('QR_MODE_STRUCTURE', 4);
+
+	// Levels of error correction.
+
+	define('QR_ECLEVEL_L', 0);
+	define('QR_ECLEVEL_M', 1);
+	define('QR_ECLEVEL_Q', 2);
+	define('QR_ECLEVEL_H', 3);
+	
+	// Supported output formats
+	
+	define('QR_FORMAT_TEXT', 0);
+	define('QR_FORMAT_PNG',  1);
+	
+	class qrstr {
+		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));
+		}
+	}	
Index: /lib/phpqrcode/qrencode.php
===================================================================
--- /lib/phpqrcode/qrencode.php	(revision 6232)
+++ /lib/phpqrcode/qrencode.php	(revision 6232)
@@ -0,0 +1,535 @@
+<?php
+/*
+ * PHP QR Code encoder
+ *
+ * Main encoder classes.
+ *
+ * Based on libqrencode C library distributed under LGPL 2.1
+ * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+ 
+    class QRrsblock {
+        public $dataLength;
+        public $data = array();
+        public $eccLength;
+        public $ecc = array();
+        
+        public function __construct($dl, $data, $el, &$ecc, QRrsItem $rs)
+        {
+            $rs->encode_rs_char($data, $ecc);
+        
+            $this->dataLength = $dl;
+            $this->data = $data;
+            $this->eccLength = $el;
+            $this->ecc = $ecc;
+        }
+    };
+    
+    //##########################################################################
+
+    class QRrawcode {
+        public $version;
+        public $datacode = array();
+        public $ecccode = array();
+        public $blocks;
+        public $rsblocks = array(); //of RSblock
+        public $count;
+        public $dataLength;
+        public $eccLength;
+        public $b1;
+        
+        //----------------------------------------------------------------------
+        public function __construct(QRinput $input)
+        {
+            $spec = array(0,0,0,0,0);
+            
+            $this->datacode = $input->getByteStream();
+            if(is_null($this->datacode)) {
+                throw new Exception('null imput string');
+            }
+
+            QRspec::getEccSpec($input->getVersion(), $input->getErrorCorrectionLevel(), $spec);
+
+            $this->version = $input->getVersion();
+            $this->b1 = QRspec::rsBlockNum1($spec);
+            $this->dataLength = QRspec::rsDataLength($spec);
+            $this->eccLength = QRspec::rsEccLength($spec);
+            $this->ecccode = array_fill(0, $this->eccLength, 0);
+            $this->blocks = QRspec::rsBlockNum($spec);
+            
+            $ret = $this->init($spec);
+            if($ret < 0) {
+                throw new Exception('block alloc error');
+                return null;
+            }
+
+            $this->count = 0;
+        }
+        
+        //----------------------------------------------------------------------
+        public function init(array $spec)
+        {
+            $dl = QRspec::rsDataCodes1($spec);
+            $el = QRspec::rsEccCodes1($spec);
+            $rs = QRrs::init_rs(8, 0x11d, 0, 1, $el, 255 - $dl - $el);
+            
+
+            $blockNo = 0;
+            $dataPos = 0;
+            $eccPos = 0;
+            for($i=0; $i<QRspec::rsBlockNum1($spec); $i++) {
+                $ecc = array_slice($this->ecccode,$eccPos);
+                $this->rsblocks[$blockNo] = new QRrsblock($dl, array_slice($this->datacode, $dataPos), $el,  $ecc, $rs);
+                $this->ecccode = array_merge(array_slice($this->ecccode,0, $eccPos), $ecc);
+                
+                $dataPos += $dl;
+                $eccPos += $el;
+                $blockNo++;
+            }
+
+            if(QRspec::rsBlockNum2($spec) == 0)
+                return 0;
+
+            $dl = QRspec::rsDataCodes2($spec);
+            $el = QRspec::rsEccCodes2($spec);
+            $rs = QRrs::init_rs(8, 0x11d, 0, 1, $el, 255 - $dl - $el);
+            
+            if($rs == NULL) return -1;
+            
+            for($i=0; $i<QRspec::rsBlockNum2($spec); $i++) {
+                $ecc = array_slice($this->ecccode,$eccPos);
+                $this->rsblocks[$blockNo] = new QRrsblock($dl, array_slice($this->datacode, $dataPos), $el, $ecc, $rs);
+                $this->ecccode = array_merge(array_slice($this->ecccode,0, $eccPos), $ecc);
+                
+                $dataPos += $dl;
+                $eccPos += $el;
+                $blockNo++;
+            }
+
+            return 0;
+        }
+        
+        //----------------------------------------------------------------------
+        public function getCode()
+        {
+            $ret;
+
+            if($this->count < $this->dataLength) {
+                $row = $this->count % $this->blocks;
+                $col = $this->count / $this->blocks;
+                if($col >= $this->rsblocks[0]->dataLength) {
+                    $row += $this->b1;
+                }
+                $ret = $this->rsblocks[$row]->data[$col];
+            } else if($this->count < $this->dataLength + $this->eccLength) {
+                $row = ($this->count - $this->dataLength) % $this->blocks;
+                $col = ($this->count - $this->dataLength) / $this->blocks;
+                $ret = $this->rsblocks[$row]->ecc[$col];
+            } else {
+                return 0;
+            }
+            $this->count++;
+            
+            return $ret;
+        }
+    }
+
+    //##########################################################################
+    
+    class QRcode {
+    
+        public $version;
+        public $width;
+        public $data; 
+        
+        //----------------------------------------------------------------------
+        public function encodeMask(QRinput $input, $mask)
+        {
+            if($input->getVersion() < 0 || $input->getVersion() > QRSPEC_VERSION_MAX) {
+                throw new Exception('wrong version');
+            }
+            if($input->getErrorCorrectionLevel() > QR_ECLEVEL_H) {
+                throw new Exception('wrong level');
+            }
+
+            $raw = new QRrawcode($input);
+            
+            QRtools::markTime('after_raw');
+            
+            $version = $raw->version;
+            $width = QRspec::getWidth($version);
+            $frame = QRspec::newFrame($version);
+            
+            $filler = new FrameFiller($width, $frame);
+            if(is_null($filler)) {
+                return NULL;
+            }
+
+            // inteleaved data and ecc codes
+            for($i=0; $i<$raw->dataLength + $raw->eccLength; $i++) {
+                $code = $raw->getCode();
+                $bit = 0x80;
+                for($j=0; $j<8; $j++) {
+                    $addr = $filler->next();
+                    $filler->setFrameAt($addr, 0x02 | (($bit & $code) != 0));
+                    $bit = $bit >> 1;
+                }
+            }
+            
+            QRtools::markTime('after_filler');
+            
+            unset($raw);
+            
+            // remainder bits
+            $j = QRspec::getRemainder($version);
+            for($i=0; $i<$j; $i++) {
+                $addr = $filler->next();
+                $filler->setFrameAt($addr, 0x02);
+            }
+            
+            $frame = $filler->frame;
+            unset($filler);
+            
+            
+            // masking
+            $maskObj = new QRmask();
+            if($mask < 0) {
+            
+                if (QR_FIND_BEST_MASK) {
+                    $masked = $maskObj->mask($width, $frame, $input->getErrorCorrectionLevel());
+                } else {
+                    $masked = $maskObj->makeMask($width, $frame, (intval(QR_DEFAULT_MASK) % 8), $input->getErrorCorrectionLevel());
+                }
+            } else {
+                $masked = $maskObj->makeMask($width, $frame, $mask, $input->getErrorCorrectionLevel());
+            }
+            
+            if($masked == NULL) {
+                return NULL;
+            }
+            
+            QRtools::markTime('after_mask');
+            
+            $this->version = $version;
+            $this->width = $width;
+            $this->data = $masked;
+            
+            return $this;
+        }
+    
+        //----------------------------------------------------------------------
+        public function encodeInput(QRinput $input)
+        {
+            return $this->encodeMask($input, -1);
+        }
+        
+        //----------------------------------------------------------------------
+        public function encodeString8bit($string, $version, $level)
+        {
+            if(string == NULL) {
+                throw new Exception('empty string!');
+                return NULL;
+            }
+
+            $input = new QRinput($version, $level);
+            if($input == NULL) return NULL;
+
+            $ret = $input->append($input, QR_MODE_8, strlen($string), str_split($string));
+            if($ret < 0) {
+                unset($input);
+                return NULL;
+            }
+            return $this->encodeInput($input);
+        }
+
+        //----------------------------------------------------------------------
+        public function encodeString($string, $version, $level, $hint, $casesensitive)
+        {
+
+            if($hint != QR_MODE_8 && $hint != QR_MODE_KANJI) {
+                throw new Exception('bad hint');
+                return NULL;
+            }
+
+            $input = new QRinput($version, $level);
+            if($input == NULL) return NULL;
+
+            $ret = QRsplit::splitStringToQRinput($string, $input, $hint, $casesensitive);
+            if($ret < 0) {
+                return NULL;
+            }
+
+            return $this->encodeInput($input);
+        }
+        
+        //----------------------------------------------------------------------
+        public static function png($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4, $saveandprint=false) 
+        {
+            $enc = QRencode::factory($level, $size, $margin);
+            return $enc->encodePNG($text, $outfile, $saveandprint=false);
+        }
+        
+        //------start of modification by bezahlcode.de------------------------
+        public static function pngWithBezahlCode($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4, $saveandprint=false) 
+        {
+            $enc = QRencode::factory($level, $size, $margin);
+            return $enc->encodePNGWithBezahlCode($text, $outfile, $saveandprint=false);
+        }
+        //------end of modification by bezahlcode.de--------------------------
+
+        //----------------------------------------------------------------------
+        public static function text($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4) 
+        {
+            $enc = QRencode::factory($level, $size, $margin);
+            return $enc->encode($text, $outfile);
+        }
+
+        //----------------------------------------------------------------------
+        public static function raw($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4) 
+        {
+            $enc = QRencode::factory($level, $size, $margin);
+            return $enc->encodeRAW($text, $outfile);
+        }
+    }
+    
+    //##########################################################################
+    
+    class FrameFiller {
+    
+        public $width;
+        public $frame;
+        public $x;
+        public $y;
+        public $dir;
+        public $bit;
+        
+        //----------------------------------------------------------------------
+        public function __construct($width, &$frame)
+        {
+            $this->width = $width;
+            $this->frame = $frame;
+            $this->x = $width - 1;
+            $this->y = $width - 1;
+            $this->dir = -1;
+            $this->bit = -1;
+        }
+        
+        //----------------------------------------------------------------------
+        public function setFrameAt($at, $val)
+        {
+            $this->frame[$at['y']][$at['x']] = chr($val);
+        }
+        
+        //----------------------------------------------------------------------
+        public function getFrameAt($at)
+        {
+            return ord($this->frame[$at['y']][$at['x']]);
+        }
+        
+        //----------------------------------------------------------------------
+        public function next()
+        {
+            do {
+            
+                if($this->bit == -1) {
+                    $this->bit = 0;
+                    return array('x'=>$this->x, 'y'=>$this->y);
+                }
+
+                $x = $this->x;
+                $y = $this->y;
+                $w = $this->width;
+
+                if($this->bit == 0) {
+                    $x--;
+                    $this->bit++;
+                } else {
+                    $x++;
+                    $y += $this->dir;
+                    $this->bit--;
+                }
+
+                if($this->dir < 0) {
+                    if($y < 0) {
+                        $y = 0;
+                        $x -= 2;
+                        $this->dir = 1;
+                        if($x == 6) {
+                            $x--;
+                            $y = 9;
+                        }
+                    }
+                } else {
+                    if($y == $w) {
+                        $y = $w - 1;
+                        $x -= 2;
+                        $this->dir = -1;
+                        if($x == 6) {
+                            $x--;
+                            $y -= 8;
+                        }
+                    }
+                }
+                if($x < 0 || $y < 0) return null;
+
+                $this->x = $x;
+                $this->y = $y;
+
+            } while(ord($this->frame[$y][$x]) & 0x80);
+                        
+            return array('x'=>$x, 'y'=>$y);
+        }
+        
+    } ;
+    
+    //##########################################################################    
+    
+    class QRencode {
+    
+        public $casesensitive = true;
+        public $eightbit = false;
+        
+        public $version = 0;
+        public $size = 3;
+        public $margin = 4;
+        
+        public $structured = 0; // not supported yet
+        
+        public $level = QR_ECLEVEL_L;
+        public $hint = QR_MODE_8;
+        
+        //----------------------------------------------------------------------
+        public static function factory($level = QR_ECLEVEL_L, $size = 3, $margin = 4)
+        {
+            $enc = new QRencode();
+            $enc->size = $size;
+            $enc->margin = $margin;
+            
+            switch ($level.'') {
+                case '0':
+                case '1':
+                case '2':
+                case '3':
+                        $enc->level = $level;
+                    break;
+                case 'l':
+                case 'L':
+                        $enc->level = QR_ECLEVEL_L;
+                    break;
+                case 'm':
+                case 'M':
+                        $enc->level = QR_ECLEVEL_M;
+                    break;
+                case 'q':
+                case 'Q':
+                        $enc->level = QR_ECLEVEL_Q;
+                    break;
+                case 'h':
+                case 'H':
+                        $enc->level = QR_ECLEVEL_H;
+                    break;
+            }
+            
+            return $enc;
+        }
+        
+        //----------------------------------------------------------------------
+        public function encodeRAW($intext, $outfile = false) 
+        {
+            $code = new QRcode();
+
+            if($this->eightbit) {
+                $code->encodeString8bit($intext, $this->version, $this->level);
+            } else {
+                $code->encodeString($intext, $this->version, $this->level, $this->hint, $this->casesensitive);
+            }
+            
+            return $code->data;
+        }
+
+        //----------------------------------------------------------------------
+        public function encode($intext, $outfile = false) 
+        {
+            $code = new QRcode();
+
+            if($this->eightbit) {
+                $code->encodeString8bit($intext, $this->version, $this->level);
+            } else {
+                $code->encodeString($intext, $this->version, $this->level, $this->hint, $this->casesensitive);
+            }
+            
+            QRtools::markTime('after_encode');
+            
+            if ($outfile!== false) {
+                file_put_contents($outfile, join("\n", QRtools::binarize($code->data)));
+            } else {
+                return QRtools::binarize($code->data);
+            }
+        }
+        
+        //----------------------------------------------------------------------
+        public function encodePNG($intext, $outfile = false,$saveandprint=false) 
+        {
+            try {
+            
+                ob_start();
+                $tab = $this->encode($intext);
+                $err = ob_get_contents();
+                ob_end_clean();
+                
+                if ($err != '')
+                    QRtools::log($outfile, $err);
+                
+                $maxSize = (int)(QR_PNG_MAXIMUM_SIZE / (count($tab)+2*$this->margin));
+                
+                QRimage::png($tab, $outfile, min(max(1, $this->size), $maxSize), $this->margin,$saveandprint);
+            
+            } catch (Exception $e) {
+            
+                QRtools::log($outfile, $e->getMessage());
+            
+            }
+        }
+        
+        //------start of modification by bezahlcode.de------------------------
+        public function encodePNGWithBezahlCode($intext, $outfile = false,$saveandprint=false) 
+        {
+            try {
+            
+                ob_start();
+                $tab = $this->encode($intext);
+                $err = ob_get_contents();
+                ob_end_clean();
+                
+                if ($err != '')
+                    QRtools::log($outfile, $err);
+                
+                $maxSize = (int)(QR_PNG_MAXIMUM_SIZE / (count($tab)+2*$this->margin));
+                
+                QRimage::pngWithBezahlCode($tab, $outfile, min(max(1, $this->size), $maxSize), $this->margin,$saveandprint);
+            
+            } catch (Exception $e) {
+            
+                QRtools::log($outfile, $e->getMessage());
+            
+            }
+        }
+        //------end of modification by bezahlcode.de--------------------------
+    }
Index: /lib/phpqrcode/qrimage.php
===================================================================
--- /lib/phpqrcode/qrimage.php	(revision 6232)
+++ /lib/phpqrcode/qrimage.php	(revision 6232)
@@ -0,0 +1,166 @@
+<?php
+/*
+ * PHP QR Code encoder
+ *
+ * Image output of code using GD2
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+ 
+    define('QR_IMAGE', true);
+
+    class QRimage {
+    
+        //----------------------------------------------------------------------
+        public static function png($frame, $filename = false, $pixelPerPoint = 4, $outerFrame = 4,$saveandprint=FALSE) 
+        {
+            $image = self::image($frame, $pixelPerPoint, $outerFrame);
+            
+            if ($filename === false) {
+                Header("Content-type: image/png");
+                ImagePng($image);
+            } else {
+                if($saveandprint===TRUE){
+                    ImagePng($image, $filename);
+                    header("Content-type: image/png");
+                    ImagePng($image);
+                }else{
+                    ImagePng($image, $filename);
+                }
+            }
+            
+            ImageDestroy($image);
+        }
+
+        //------start of modification by bezahlcode.de------------------------    
+        public static function pngWithBezahlCode($frame, $filename = false, $pixelPerPoint = 4, $outerFrame = 16, $saveandprint=FALSE) 
+        {
+            $image = self::imageWithBezahlCode($frame, $pixelPerPoint, $outerFrame);
+            
+            if ($filename === false) {
+                Header("Content-type: image/png");
+                ImagePng($image);
+            } else {
+                if($saveandprint===TRUE){
+                    ImagePng($image, $filename);
+                    header("Content-type: image/png");
+                    ImagePng($image);
+                }else{
+                    ImagePng($image, $filename);
+                }
+            }
+            
+            ImageDestroy($image);
+        }
+        //------end of modification by bezahlcode.de--------------------------
+        
+        //----------------------------------------------------------------------
+        public static function jpg($frame, $filename = false, $pixelPerPoint = 8, $outerFrame = 4, $q = 85) 
+        {
+            $image = self::image($frame, $pixelPerPoint, $outerFrame);
+            
+            if ($filename === false) {
+                Header("Content-type: image/jpeg");
+                ImageJpeg($image, null, $q);
+            } else {
+                ImageJpeg($image, $filename, $q);            
+            }
+            
+            ImageDestroy($image);
+        }
+    
+        //----------------------------------------------------------------------
+        private static function image($frame, $pixelPerPoint = 4, $outerFrame = 4) 
+        {
+            $h = count($frame);
+            $w = strlen($frame[0]);
+            
+            $imgW = $w + 2*$outerFrame;
+            $imgH = $h + 2*$outerFrame;
+            
+            $base_image =ImageCreate($imgW, $imgH);
+            
+            $col[0] = ImageColorAllocate($base_image,255,255,255);
+            $col[1] = ImageColorAllocate($base_image,0,0,0);
+
+            imagefill($base_image, 0, 0, $col[0]);
+
+            for($y=0; $y<$h; $y++) {
+                for($x=0; $x<$w; $x++) {
+                    if ($frame[$y][$x] == '1') {
+                        ImageSetPixel($base_image,$x+$outerFrame,$y+$outerFrame,$col[1]); 
+                    }
+                }
+            }
+            
+            $target_image =ImageCreate($imgW * $pixelPerPoint, $imgH * $pixelPerPoint);
+            ImageCopyResized($target_image, $base_image, 0, 0, 0, 0, $imgW * $pixelPerPoint, $imgH * $pixelPerPoint, $imgW, $imgH);
+            ImageDestroy($base_image);
+            
+            return $target_image;
+        }
+        
+        //------start of modification by bezahlcode.de------------------------
+        private static function CenterImageString($image, $image_width, $string, $font_size, $y, $color)
+		{
+		 	$text_width = imagefontwidth($font_size)*strlen($string);
+		 	$center = ceil($image_width / 2);
+		 	$x = $center - (ceil($text_width/2));
+			ImageString($image, $font_size, $x, $y, $string, $color);
+		}
+        
+        private static function imageWithBezahlCode($frame, $pixelPerPoint = 4, $outerFrame = 4) 
+        {
+            $h = count($frame);
+            $w = strlen($frame[0]);
+            
+            $imgW = $w + 2*$outerFrame;
+            $imgH = $h + 2*$outerFrame;
+            
+            $base_image =ImageCreate($imgW, $imgH);
+            
+            $col[0] = ImageColorAllocate($base_image,255,255,255);
+            $col[1] = ImageColorAllocate($base_image,0,0,0);
+
+            imagefill($base_image, 0, 0, $col[0]);
+
+            for($y=0; $y<$h; $y++) {
+                for($x=0; $x<$w; $x++) {
+                    if ($frame[$y][$x] == '1') {
+                        ImageSetPixel($base_image,$x+$outerFrame,$y+$outerFrame,$col[1]); 
+                    }
+                }
+            }
+
+
+ 			$standardSizeImage=ImageCreate(150, 150+10); 
+		    ImageCopyResized($standardSizeImage, $base_image, 0, 0, 0, 0, 150, 150, $imgW, $imgH);
+
+			self::CenterImageString($standardSizeImage, 150, "www.BezahlCode.de", 2, 143, $col[1]);     
+
+            $target_image =ImageCreate($imgW * $pixelPerPoint, $imgH * $pixelPerPoint);
+
+            ImageCopyResized($target_image, $standardSizeImage, 0, 0, 0, 0, $imgW * $pixelPerPoint, $imgH * $pixelPerPoint, 150, 160);
+		  
+            ImageDestroy($base_image);
+			ImageDestroy($standardSizeImage);
+                
+            return $target_image;
+        }
+        //------end of modification by bezahlcode.de--------------------------
+    }
Index: /lib/phpqrcode/qrinput.php
===================================================================
--- /lib/phpqrcode/qrinput.php	(revision 6232)
+++ /lib/phpqrcode/qrinput.php	(revision 6232)
@@ -0,0 +1,729 @@
+<?php
+/*
+ * PHP QR Code encoder
+ *
+ * Input encoding class
+ *
+ * Based on libqrencode C library distributed under LGPL 2.1
+ * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+ 
+    define('STRUCTURE_HEADER_BITS',  20);
+    define('MAX_STRUCTURED_SYMBOLS', 16);
+
+    class QRinputItem {
+    
+        public $mode;
+        public $size;
+        public $data;
+        public $bstream;
+
+        public function __construct($mode, $size, $data, $bstream = null) 
+        {
+            $setData = array_slice($data, 0, $size);
+            
+            if (count($setData) < $size) {
+                $setData = array_merge($setData, array_fill(0,$size-count($setData),0));
+            }
+        
+            if(!QRinput::check($mode, $size, $setData)) {
+                throw new Exception('Error m:'.$mode.',s:'.$size.',d:'.join(',',$setData));
+                return null;
+            }
+            
+            $this->mode = $mode;
+            $this->size = $size;
+            $this->data = $setData;
+            $this->bstream = $bstream;
+        }
+        
+        //----------------------------------------------------------------------
+        public function encodeModeNum($version)
+        {
+            try {
+            
+                $words = (int)($this->size / 3);
+                $bs = new QRbitstream();
+                
+                $val = 0x1;
+                $bs->appendNum(4, $val);
+                $bs->appendNum(QRspec::lengthIndicator(QR_MODE_NUM, $version), $this->size);
+
+                for($i=0; $i<$words; $i++) {
+                    $val  = (ord($this->data[$i*3  ]) - ord('0')) * 100;
+                    $val += (ord($this->data[$i*3+1]) - ord('0')) * 10;
+                    $val += (ord($this->data[$i*3+2]) - ord('0'));
+                    $bs->appendNum(10, $val);
+                }
+
+                if($this->size - $words * 3 == 1) {
+                    $val = ord($this->data[$words*3]) - ord('0');
+                    $bs->appendNum(4, $val);
+                } else if($this->size - $words * 3 == 2) {
+                    $val  = (ord($this->data[$words*3  ]) - ord('0')) * 10;
+                    $val += (ord($this->data[$words*3+1]) - ord('0'));
+                    $bs->appendNum(7, $val);
+                }
+
+                $this->bstream = $bs;
+                return 0;
+                
+            } catch (Exception $e) {
+                return -1;
+            }
+        }
+        
+        //----------------------------------------------------------------------
+        public function encodeModeAn($version)
+        {
+            try {
+                $words = (int)($this->size / 2);
+                $bs = new QRbitstream();
+                
+                $bs->appendNum(4, 0x02);
+                $bs->appendNum(QRspec::lengthIndicator(QR_MODE_AN, $version), $this->size);
+
+                for($i=0; $i<$words; $i++) {
+                    $val  = (int)QRinput::lookAnTable(ord($this->data[$i*2  ])) * 45;
+                    $val += (int)QRinput::lookAnTable(ord($this->data[$i*2+1]));
+
+                    $bs->appendNum(11, $val);
+                }
+
+                if($this->size & 1) {
+                    $val = QRinput::lookAnTable(ord($this->data[$words * 2]));
+                    $bs->appendNum(6, $val);
+                }
+        
+                $this->bstream = $bs;
+                return 0;
+            
+            } catch (Exception $e) {
+                return -1;
+            }
+        }
+        
+        //----------------------------------------------------------------------
+        public function encodeMode8($version)
+        {
+            try {
+                $bs = new QRbitstream();
+
+                $bs->appendNum(4, 0x4);
+                $bs->appendNum(QRspec::lengthIndicator(QR_MODE_8, $version), $this->size);
+
+                for($i=0; $i<$this->size; $i++) {
+                    $bs->appendNum(8, ord($this->data[$i]));
+                }
+
+                $this->bstream = $bs;
+                return 0;
+            
+            } catch (Exception $e) {
+                return -1;
+            }
+        }
+        
+        //----------------------------------------------------------------------
+        public function encodeModeKanji($version)
+        {
+            try {
+
+                $bs = new QRbitrtream();
+                
+                $bs->appendNum(4, 0x8);
+                $bs->appendNum(QRspec::lengthIndicator(QR_MODE_KANJI, $version), (int)($this->size / 2));
+
+                for($i=0; $i<$this->size; $i+=2) {
+                    $val = (ord($this->data[$i]) << 8) | ord($this->data[$i+1]);
+                    if($val <= 0x9ffc) {
+                        $val -= 0x8140;
+                    } else {
+                        $val -= 0xc140;
+                    }
+                    
+                    $h = ($val >> 8) * 0xc0;
+                    $val = ($val & 0xff) + $h;
+
+                    $bs->appendNum(13, $val);
+                }
+
+                $this->bstream = $bs;
+                return 0;
+            
+            } catch (Exception $e) {
+                return -1;
+            }
+        }
+
+        //----------------------------------------------------------------------
+        public function encodeModeStructure()
+        {
+            try {
+                $bs =  new QRbitstream();
+                
+                $bs->appendNum(4, 0x03);
+                $bs->appendNum(4, ord($this->data[1]) - 1);
+                $bs->appendNum(4, ord($this->data[0]) - 1);
+                $bs->appendNum(8, ord($this->data[2]));
+
+                $this->bstream = $bs;
+                return 0;
+            
+            } catch (Exception $e) {
+                return -1;
+            }
+        }
+        
+        //----------------------------------------------------------------------
+        public function estimateBitStreamSizeOfEntry($version)
+        {
+            $bits = 0;
+
+            if($version == 0) 
+                $version = 1;
+
+            switch($this->mode) {
+                case QR_MODE_NUM:        $bits = QRinput::estimateBitsModeNum($this->size);    break;
+                case QR_MODE_AN:        $bits = QRinput::estimateBitsModeAn($this->size);    break;
+                case QR_MODE_8:            $bits = QRinput::estimateBitsMode8($this->size);    break;
+                case QR_MODE_KANJI:        $bits = QRinput::estimateBitsModeKanji($this->size);break;
+                case QR_MODE_STRUCTURE:    return STRUCTURE_HEADER_BITS;            
+                default:
+                    return 0;
+            }
+
+            $l = QRspec::lengthIndicator($this->mode, $version);
+            $m = 1 << $l;
+            $num = (int)(($this->size + $m - 1) / $m);
+
+            $bits += $num * (4 + $l);
+
+            return $bits;
+        }
+        
+        //----------------------------------------------------------------------
+        public function encodeBitStream($version)
+        {
+            try {
+            
+                unset($this->bstream);
+                $words = QRspec::maximumWords($this->mode, $version);
+                
+                if($this->size > $words) {
+                
+                    $st1 = new QRinputItem($this->mode, $words, $this->data);
+                    $st2 = new QRinputItem($this->mode, $this->size - $words, array_slice($this->data, $words));
+
+                    $st1->encodeBitStream($version);
+                    $st2->encodeBitStream($version);
+                    
+                    $this->bstream = new QRbitstream();
+                    $this->bstream->append($st1->bstream);
+                    $this->bstream->append($st2->bstream);
+                    
+                    unset($st1);
+                    unset($st2);
+                    
+                } else {
+                    
+                    $ret = 0;
+                    
+                    switch($this->mode) {
+                        case QR_MODE_NUM:        $ret = $this->encodeModeNum($version);    break;
+                        case QR_MODE_AN:        $ret = $this->encodeModeAn($version);    break;
+                        case QR_MODE_8:            $ret = $this->encodeMode8($version);    break;
+                        case QR_MODE_KANJI:        $ret = $this->encodeModeKanji($version);break;
+                        case QR_MODE_STRUCTURE:    $ret = $this->encodeModeStructure();    break;
+                        
+                        default:
+                            break;
+                    }
+                    
+                    if($ret < 0)
+                        return -1;
+                }
+
+                return $this->bstream->size();
+            
+            } catch (Exception $e) {
+                return -1;
+            }
+        }
+    };
+    
+    //##########################################################################
+
+    class QRinput {
+
+        public $items;
+        
+        private $version;
+        private $level;
+        
+        //----------------------------------------------------------------------
+        public function __construct($version = 0, $level = QR_ECLEVEL_L)
+        {
+            if ($version < 0 || $version > QRSPEC_VERSION_MAX || $level > QR_ECLEVEL_H) {
+                throw new Exception('Invalid version no');
+                return NULL;
+            }
+            
+            $this->version = $version;
+            $this->level = $level;
+        }
+        
+        //----------------------------------------------------------------------
+        public function getVersion()
+        {
+            return $this->version;
+        }
+        
+        //----------------------------------------------------------------------
+        public function setVersion($version)
+        {
+            if($version < 0 || $version > QRSPEC_VERSION_MAX) {
+                throw new Exception('Invalid version no');
+                return -1;
+            }
+
+            $this->version = $version;
+
+            return 0;
+        }
+        
+        //----------------------------------------------------------------------
+        public function getErrorCorrectionLevel()
+        {
+            return $this->level;
+        }
+
+        //----------------------------------------------------------------------
+        public function setErrorCorrectionLevel($level)
+        {
+            if($level > QR_ECLEVEL_H) {
+                throw new Exception('Invalid ECLEVEL');
+                return -1;
+            }
+
+            $this->level = $level;
+
+            return 0;
+        }
+        
+        //----------------------------------------------------------------------
+        public function appendEntry(QRinputItem $entry)
+        {
+            $this->items[] = $entry;
+        }
+        
+        //----------------------------------------------------------------------
+        public function append($mode, $size, $data)
+        {
+            try {
+                $entry = new QRinputItem($mode, $size, $data);
+                $this->items[] = $entry;
+                return 0;
+            } catch (Exception $e) {
+                return -1;
+            }
+        }
+        
+        //----------------------------------------------------------------------
+        
+        public function insertStructuredAppendHeader($size, $index, $parity)
+        {
+            if( $size > MAX_STRUCTURED_SYMBOLS ) {
+                throw new Exception('insertStructuredAppendHeader wrong size');
+            }
+            
+            if( $index <= 0 || $index > MAX_STRUCTURED_SYMBOLS ) {
+                throw new Exception('insertStructuredAppendHeader wrong index');
+            }
+
+            $buf = array($size, $index, $parity);
+            
+            try {
+                $entry = new QRinputItem(QR_MODE_STRUCTURE, 3, buf);
+                array_unshift($this->items, $entry);
+                return 0;
+            } catch (Exception $e) {
+                return -1;
+            }
+        }
+
+        //----------------------------------------------------------------------
+        public function calcParity()
+        {
+            $parity = 0;
+            
+            foreach($this->items as $item) {
+                if($item->mode != QR_MODE_STRUCTURE) {
+                    for($i=$item->size-1; $i>=0; $i--) {
+                        $parity ^= $item->data[$i];
+                    }
+                }
+            }
+
+            return $parity;
+        }
+        
+        //----------------------------------------------------------------------
+        public static function checkModeNum($size, $data)
+        {
+            for($i=0; $i<$size; $i++) {
+                if((ord($data[$i]) < ord('0')) || (ord($data[$i]) > ord('9'))){
+                    return false;
+                }
+            }
+
+            return true;
+        }
+
+        //----------------------------------------------------------------------
+        public static function estimateBitsModeNum($size)
+        {
+            $w = (int)$size / 3;
+            $bits = $w * 10;
+            
+            switch($size - $w * 3) {
+                case 1:
+                    $bits += 4;
+                    break;
+                case 2:
+                    $bits += 7;
+                    break;
+                default:
+                    break;
+            }
+
+            return $bits;
+        }
+        
+        //----------------------------------------------------------------------
+        public static $anTable = array(
+            -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+            -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+            36, -1, -1, -1, 37, 38, -1, -1, -1, -1, 39, 40, -1, 41, 42, 43,
+             0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 44, -1, -1, -1, -1, -1,
+            -1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
+            25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, -1, -1, -1, -1, -1,
+            -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+            -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
+        );
+        
+        //----------------------------------------------------------------------
+        public static function lookAnTable($c)
+        {
+            return (($c > 127)?-1:self::$anTable[$c]);
+        }
+        
+        //----------------------------------------------------------------------
+        public static function checkModeAn($size, $data)
+        {
+            for($i=0; $i<$size; $i++) {
+                if (self::lookAnTable(ord($data[$i])) == -1) {
+                    return false;
+                }
+            }
+
+            return true;
+        }
+        
+        //----------------------------------------------------------------------
+        public static function estimateBitsModeAn($size)
+        {
+            $w = (int)($size / 2);
+            $bits = $w * 11;
+            
+            if($size & 1) {
+                $bits += 6;
+            }
+
+            return $bits;
+        }
+    
+        //----------------------------------------------------------------------
+        public static function estimateBitsMode8($size)
+        {
+            return $size * 8;
+        }
+        
+        //----------------------------------------------------------------------
+        public function estimateBitsModeKanji($size)
+        {
+            return (int)(($size / 2) * 13);
+        }
+        
+        //----------------------------------------------------------------------
+        public static function checkModeKanji($size, $data)
+        {
+            if($size & 1)
+                return false;
+
+            for($i=0; $i<$size; $i+=2) {
+                $val = (ord($data[$i]) << 8) | ord($data[$i+1]);
+                if( $val < 0x8140 
+                || ($val > 0x9ffc && $val < 0xe040) 
+                || $val > 0xebbf) {
+                    return false;
+                }
+            }
+
+            return true;
+        }
+
+        /***********************************************************************
+         * Validation
+         **********************************************************************/
+
+        public static function check($mode, $size, $data)
+        {
+            if($size <= 0) 
+                return false;
+
+            switch($mode) {
+                case QR_MODE_NUM:       return self::checkModeNum($size, $data);   break;
+                case QR_MODE_AN:        return self::checkModeAn($size, $data);    break;
+                case QR_MODE_KANJI:     return self::checkModeKanji($size, $data); break;
+                case QR_MODE_8:         return true; break;
+                case QR_MODE_STRUCTURE: return true; break;
+                
+                default:
+                    break;
+            }
+
+            return false;
+        }
+        
+        
+        //----------------------------------------------------------------------
+        public function estimateBitStreamSize($version)
+        {
+            $bits = 0;
+
+            foreach($this->items as $item) {
+                $bits += $item->estimateBitStreamSizeOfEntry($version);
+            }
+
+            return $bits;
+        }
+        
+        //----------------------------------------------------------------------
+        public function estimateVersion()
+        {
+            $version = 0;
+            $prev = 0;
+            do {
+                $prev = $version;
+                $bits = $this->estimateBitStreamSize($prev);
+                $version = QRspec::getMinimumVersion((int)(($bits + 7) / 8), $this->level);
+                if ($version < 0) {
+                    return -1;
+                }
+            } while ($version > $prev);
+
+            return $version;
+        }
+        
+        //----------------------------------------------------------------------
+        public static function lengthOfCode($mode, $version, $bits)
+        {
+            $payload = $bits - 4 - QRspec::lengthIndicator($mode, $version);
+            switch($mode) {
+                case QR_MODE_NUM:
+                    $chunks = (int)($payload / 10);
+                    $remain = $payload - $chunks * 10;
+                    $size = $chunks * 3;
+                    if($remain >= 7) {
+                        $size += 2;
+                    } else if($remain >= 4) {
+                        $size += 1;
+                    }
+                    break;
+                case QR_MODE_AN:
+                    $chunks = (int)($payload / 11);
+                    $remain = $payload - $chunks * 11;
+                    $size = $chunks * 2;
+                    if($remain >= 6) 
+                        $size++;
+                    break;
+                case QR_MODE_8:
+                    $size = (int)($payload / 8);
+                    break;
+                case QR_MODE_KANJI:
+                    $size = (int)(($payload / 13) * 2);
+                    break;
+                case QR_MODE_STRUCTURE:
+                    $size = (int)($payload / 8);
+                    break;
+                default:
+                    $size = 0;
+                    break;
+            }
+            
+            $maxsize = QRspec::maximumWords($mode, $version);
+            if($size < 0) $size = 0;
+            if($size > $maxsize) $size = $maxsize;
+
+            return $size;
+        }
+        
+        //----------------------------------------------------------------------
+        public function createBitStream()
+        {
+            $total = 0;
+
+            foreach($this->items as $item) {
+                $bits = $item->encodeBitStream($this->version);
+                
+                if($bits < 0) 
+                    return -1;
+                    
+                $total += $bits;
+            }
+
+            return $total;
+        }
+        
+        //----------------------------------------------------------------------
+        public function convertData()
+        {
+            $ver = $this->estimateVersion();
+            if($ver > $this->getVersion()) {
+                $this->setVersion($ver);
+            }
+
+            for(;;) {
+                $bits = $this->createBitStream();
+                
+                if($bits < 0) 
+                    return -1;
+                    
+                $ver = QRspec::getMinimumVersion((int)(($bits + 7) / 8), $this->level);
+                if($ver < 0) {
+                    throw new Exception('WRONG VERSION');
+                    return -1;
+                } else if($ver > $this->getVersion()) {
+                    $this->setVersion($ver);
+                } else {
+                    break;
+                }
+            }
+
+            return 0;
+        }
+        
+        //----------------------------------------------------------------------
+        public function appendPaddingBit(&$bstream)
+        {
+            $bits = $bstream->size();
+            $maxwords = QRspec::getDataLength($this->version, $this->level);
+            $maxbits = $maxwords * 8;
+
+            if ($maxbits == $bits) {
+                return 0;
+            }
+
+            if ($maxbits - $bits < 5) {
+                return $bstream->appendNum($maxbits - $bits, 0);
+            }
+
+            $bits += 4;
+            $words = (int)(($bits + 7) / 8);
+
+            $padding = new QRbitstream();
+            $ret = $padding->appendNum($words * 8 - $bits + 4, 0);
+            
+            if($ret < 0) 
+                return $ret;
+
+            $padlen = $maxwords - $words;
+            
+            if($padlen > 0) {
+                
+                $padbuf = array();
+                for($i=0; $i<$padlen; $i++) {
+                    $padbuf[$i] = ($i&1)?0x11:0xec;
+                }
+                
+                $ret = $padding->appendBytes($padlen, $padbuf);
+                
+                if($ret < 0)
+                    return $ret;
+                
+            }
+
+            $ret = $bstream->append($padding);
+            
+            return $ret;
+        }
+
+        //----------------------------------------------------------------------
+        public function mergeBitStream()
+        {
+            if($this->convertData() < 0) {
+                return null;
+            }
+
+            $bstream = new QRbitstream();
+            
+            foreach($this->items as $item) {
+                $ret = $bstream->append($item->bstream);
+                if($ret < 0) {
+                    return null;
+                }
+            }
+
+            return $bstream;
+        }
+
+        //----------------------------------------------------------------------
+        public function getBitStream()
+        {
+
+            $bstream = $this->mergeBitStream();
+            
+            if($bstream == null) {
+                return null;
+            }
+            
+            $ret = $this->appendPaddingBit($bstream);
+            if($ret < 0) {
+                return null;
+            }
+
+            return $bstream;
+        }
+        
+        //----------------------------------------------------------------------
+        public function getByteStream()
+        {
+            $bstream = $this->getBitStream();
+            if($bstream == null) {
+                return null;
+            }
+            
+            return $bstream->toByte();
+        }
+    }
+        
+        
+    
Index: /lib/phpqrcode/qrlib.php
===================================================================
--- /lib/phpqrcode/qrlib.php	(revision 6232)
+++ /lib/phpqrcode/qrlib.php	(revision 6232)
@@ -0,0 +1,43 @@
+<?php
+/*
+ * PHP QR Code encoder
+ *
+ * Root library file, prepares environment and includes dependencies
+ *
+ * Based on libqrencode C library distributed under LGPL 2.1
+ * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+	
+	$QR_BASEDIR = dirname(__FILE__).DIRECTORY_SEPARATOR;
+	
+	// Required libs
+	
+	include $QR_BASEDIR."qrconst.php";
+	include $QR_BASEDIR."qrconfig.php";
+	include $QR_BASEDIR."qrtools.php";
+	include $QR_BASEDIR."qrspec.php";
+	include $QR_BASEDIR."qrimage.php";
+	include $QR_BASEDIR."qrinput.php";
+	include $QR_BASEDIR."qrbitstream.php";
+	include $QR_BASEDIR."qrsplit.php";
+	include $QR_BASEDIR."qrrscode.php";
+	include $QR_BASEDIR."qrmask.php";
+	include $QR_BASEDIR."qrencode.php";
+
Index: /lib/phpqrcode/qrmask.php
===================================================================
--- /lib/phpqrcode/qrmask.php	(revision 6232)
+++ /lib/phpqrcode/qrmask.php	(revision 6232)
@@ -0,0 +1,328 @@
+<?php
+/*
+ * PHP QR Code encoder
+ *
+ * Masking
+ *
+ * Based on libqrencode C library distributed under LGPL 2.1
+ * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+ 
+	define('N1', 3);
+	define('N2', 3);
+	define('N3', 40);
+	define('N4', 10);
+
+	class QRmask {
+	
+		public $runLength = array();
+		
+		//----------------------------------------------------------------------
+		public function __construct() 
+        {
+            $this->runLength = array_fill(0, QRSPEC_WIDTH_MAX + 1, 0);
+        }
+        
+        //----------------------------------------------------------------------
+        public function writeFormatInformation($width, &$frame, $mask, $level)
+        {
+            $blacks = 0;
+            $format =  QRspec::getFormatInfo($mask, $level);
+
+            for($i=0; $i<8; $i++) {
+                if($format & 1) {
+                    $blacks += 2;
+                    $v = 0x85;
+                } else {
+                    $v = 0x84;
+                }
+                
+                $frame[8][$width - 1 - $i] = chr($v);
+                if($i < 6) {
+                    $frame[$i][8] = chr($v);
+                } else {
+                    $frame[$i + 1][8] = chr($v);
+                }
+                $format = $format >> 1;
+            }
+            
+            for($i=0; $i<7; $i++) {
+                if($format & 1) {
+                    $blacks += 2;
+                    $v = 0x85;
+                } else {
+                    $v = 0x84;
+                }
+                
+                $frame[$width - 7 + $i][8] = chr($v);
+                if($i == 0) {
+                    $frame[8][7] = chr($v);
+                } else {
+                    $frame[8][6 - $i] = chr($v);
+                }
+                
+                $format = $format >> 1;
+            }
+
+            return $blacks;
+        }
+        
+        //----------------------------------------------------------------------
+        public function mask0($x, $y) { return ($x+$y)&1;                       }
+        public function mask1($x, $y) { return ($y&1);                          }
+        public function mask2($x, $y) { return ($x%3);                          }
+        public function mask3($x, $y) { return ($x+$y)%3;                       }
+        public function mask4($x, $y) { return (((int)($y/2))+((int)($x/3)))&1; }
+        public function mask5($x, $y) { return (($x*$y)&1)+($x*$y)%3;           }
+        public function mask6($x, $y) { return ((($x*$y)&1)+($x*$y)%3)&1;       }
+        public function mask7($x, $y) { return ((($x*$y)%3)+(($x+$y)&1))&1;     }
+        
+        //----------------------------------------------------------------------
+        private function generateMaskNo($maskNo, $width, $frame)
+        {
+            $bitMask = array_fill(0, $width, array_fill(0, $width, 0));
+            
+            for($y=0; $y<$width; $y++) {
+                for($x=0; $x<$width; $x++) {
+                    if(ord($frame[$y][$x]) & 0x80) {
+                        $bitMask[$y][$x] = 0;
+                    } else {
+                        $maskFunc = call_user_func(array($this, 'mask'.$maskNo), $x, $y);
+                        $bitMask[$y][$x] = ($maskFunc == 0)?1:0;
+                    }
+                    
+                }
+            }
+            
+            return $bitMask;
+        }
+        
+        //----------------------------------------------------------------------
+        public static function serial($bitFrame)
+        {
+            $codeArr = array();
+            
+            foreach ($bitFrame as $line)
+                $codeArr[] = join('', $line);
+                
+            return gzcompress(join("\n", $codeArr), 9);
+        }
+        
+        //----------------------------------------------------------------------
+        public static function unserial($code)
+        {
+            $codeArr = array();
+            
+            $codeLines = explode("\n", gzuncompress($code));
+            foreach ($codeLines as $line)
+                $codeArr[] = str_split($line);
+            
+            return $codeArr;
+        }
+        
+        //----------------------------------------------------------------------
+        public function makeMaskNo($maskNo, $width, $s, &$d, $maskGenOnly = false) 
+        {
+            $b = 0;
+            $bitMask = array();
+            
+            $fileName = QR_CACHE_DIR.'mask_'.$maskNo.DIRECTORY_SEPARATOR.'mask_'.$width.'_'.$maskNo.'.dat';
+
+            if (QR_CACHEABLE) {
+                if (file_exists($fileName)) {
+                    $bitMask = self::unserial(file_get_contents($fileName));
+                } else {
+                    $bitMask = $this->generateMaskNo($maskNo, $width, $s, $d);
+                    if (!file_exists(QR_CACHE_DIR.'mask_'.$maskNo))
+                        mkdir(QR_CACHE_DIR.'mask_'.$maskNo);
+                    file_put_contents($fileName, self::serial($bitMask));
+                }
+            } else {
+                $bitMask = $this->generateMaskNo($maskNo, $width, $s, $d);
+            }
+
+            if ($maskGenOnly)
+                return;
+                
+            $d = $s;
+
+            for($y=0; $y<$width; $y++) {
+                for($x=0; $x<$width; $x++) {
+                    if($bitMask[$y][$x] == 1) {
+                        $d[$y][$x] = chr(ord($s[$y][$x]) ^ (int)$bitMask[$y][$x]);
+                    }
+                    $b += (int)(ord($d[$y][$x]) & 1);
+                }
+            }
+
+            return $b;
+        }
+        
+        //----------------------------------------------------------------------
+        public function makeMask($width, $frame, $maskNo, $level)
+        {
+            $masked = array_fill(0, $width, str_repeat("\0", $width));
+            $this->makeMaskNo($maskNo, $width, $frame, $masked);
+            $this->writeFormatInformation($width, $masked, $maskNo, $level);
+       
+            return $masked;
+        }
+        
+        //----------------------------------------------------------------------
+        public function calcN1N3($length)
+        {
+            $demerit = 0;
+
+            for($i=0; $i<$length; $i++) {
+                
+                if($this->runLength[$i] >= 5) {
+                    $demerit += (N1 + ($this->runLength[$i] - 5));
+                }
+                if($i & 1) {
+                    if(($i >= 3) && ($i < ($length-2)) && ($this->runLength[$i] % 3 == 0)) {
+                        $fact = (int)($this->runLength[$i] / 3);
+                        if(($this->runLength[$i-2] == $fact) &&
+                           ($this->runLength[$i-1] == $fact) &&
+                           ($this->runLength[$i+1] == $fact) &&
+                           ($this->runLength[$i+2] == $fact)) {
+                            if(($this->runLength[$i-3] < 0) || ($this->runLength[$i-3] >= (4 * $fact))) {
+                                $demerit += N3;
+                            } else if((($i+3) >= $length) || ($this->runLength[$i+3] >= (4 * $fact))) {
+                                $demerit += N3;
+                            }
+                        }
+                    }
+                }
+            }
+            return $demerit;
+        }
+        
+        //----------------------------------------------------------------------
+        public function evaluateSymbol($width, $frame)
+        {
+            $head = 0;
+            $demerit = 0;
+
+            for($y=0; $y<$width; $y++) {
+                $head = 0;
+                $this->runLength[0] = 1;
+                
+                $frameY = $frame[$y];
+                
+                if ($y>0)
+                    $frameYM = $frame[$y-1];
+                
+                for($x=0; $x<$width; $x++) {
+                    if(($x > 0) && ($y > 0)) {
+                        $b22 = ord($frameY[$x]) & ord($frameY[$x-1]) & ord($frameYM[$x]) & ord($frameYM[$x-1]);
+                        $w22 = ord($frameY[$x]) | ord($frameY[$x-1]) | ord($frameYM[$x]) | ord($frameYM[$x-1]);
+                        
+                        if(($b22 | ($w22 ^ 1))&1) {                                                                     
+                            $demerit += N2;
+                        }
+                    }
+                    if(($x == 0) && (ord($frameY[$x]) & 1)) {
+                        $this->runLength[0] = -1;
+                        $head = 1;
+                        $this->runLength[$head] = 1;
+                    } else if($x > 0) {
+                        if((ord($frameY[$x]) ^ ord($frameY[$x-1])) & 1) {
+                            $head++;
+                            $this->runLength[$head] = 1;
+                        } else {
+                            $this->runLength[$head]++;
+                        }
+                    }
+                }
+    
+                $demerit += $this->calcN1N3($head+1);
+            }
+
+            for($x=0; $x<$width; $x++) {
+                $head = 0;
+                $this->runLength[0] = 1;
+                
+                for($y=0; $y<$width; $y++) {
+                    if($y == 0 && (ord($frame[$y][$x]) & 1)) {
+                        $this->runLength[0] = -1;
+                        $head = 1;
+                        $this->runLength[$head] = 1;
+                    } else if($y > 0) {
+                        if((ord($frame[$y][$x]) ^ ord($frame[$y-1][$x])) & 1) {
+                            $head++;
+                            $this->runLength[$head] = 1;
+                        } else {
+                            $this->runLength[$head]++;
+                        }
+                    }
+                }
+            
+                $demerit += $this->calcN1N3($head+1);
+            }
+
+            return $demerit;
+        }
+        
+        
+        //----------------------------------------------------------------------
+        public function mask($width, $frame, $level)
+        {
+            $minDemerit = PHP_INT_MAX;
+            $bestMaskNum = 0;
+            $bestMask = array();
+            
+            $checked_masks = array(0,1,2,3,4,5,6,7);
+            
+            if (QR_FIND_FROM_RANDOM !== false) {
+            
+                $howManuOut = 8-(QR_FIND_FROM_RANDOM % 9);
+                for ($i = 0; $i <  $howManuOut; $i++) {
+                    $remPos = rand (0, count($checked_masks)-1);
+                    unset($checked_masks[$remPos]);
+                    $checked_masks = array_values($checked_masks);
+                }
+            
+            }
+            
+            $bestMask = $frame;
+             
+            foreach($checked_masks as $i) {
+                $mask = array_fill(0, $width, str_repeat("\0", $width));
+
+                $demerit = 0;
+                $blacks = 0;
+                $blacks  = $this->makeMaskNo($i, $width, $frame, $mask);
+                $blacks += $this->writeFormatInformation($width, $mask, $i, $level);
+                $blacks  = (int)(100 * $blacks / ($width * $width));
+                $demerit = (int)((int)(abs($blacks - 50) / 5) * N4);
+                $demerit += $this->evaluateSymbol($width, $mask);
+                
+                if($demerit < $minDemerit) {
+                    $minDemerit = $demerit;
+                    $bestMask = $mask;
+                    $bestMaskNum = $i;
+                }
+            }
+            
+            return $bestMask;
+        }
+        
+        //----------------------------------------------------------------------
+    }
Index: /lib/phpqrcode/qrrscode.php
===================================================================
--- /lib/phpqrcode/qrrscode.php	(revision 6232)
+++ /lib/phpqrcode/qrrscode.php	(revision 6232)
@@ -0,0 +1,210 @@
+<?php
+/*
+ * PHP QR Code encoder
+ *
+ * Reed-Solomon error correction support
+ * 
+ * Copyright (C) 2002, 2003, 2004, 2006 Phil Karn, KA9Q
+ * (libfec is released under the GNU Lesser General Public License.)
+ *
+ * Based on libqrencode C library distributed under LGPL 2.1
+ * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+ 
+    class QRrsItem {
+    
+        public $mm;                  // Bits per symbol 
+        public $nn;                  // Symbols per block (= (1<<mm)-1) 
+        public $alpha_to = array();  // log lookup table 
+        public $index_of = array();  // Antilog lookup table 
+        public $genpoly = array();   // Generator polynomial 
+        public $nroots;              // Number of generator roots = number of parity symbols 
+        public $fcr;                 // First consecutive root, index form 
+        public $prim;                // Primitive element, index form 
+        public $iprim;               // prim-th root of 1, index form 
+        public $pad;                 // Padding bytes in shortened block 
+        public $gfpoly;
+    
+        //----------------------------------------------------------------------
+        public function modnn($x)
+        {
+            while ($x >= $this->nn) {
+                $x -= $this->nn;
+                $x = ($x >> $this->mm) + ($x & $this->nn);
+            }
+            
+            return $x;
+        }
+        
+        //----------------------------------------------------------------------
+        public static function init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad)
+        {
+            // Common code for intializing a Reed-Solomon control block (char or int symbols)
+            // Copyright 2004 Phil Karn, KA9Q
+            // May be used under the terms of the GNU Lesser General Public License (LGPL)
+
+            $rs = null;
+            
+            // Check parameter ranges
+            if($symsize < 0 || $symsize > 8)                     return $rs;
+            if($fcr < 0 || $fcr >= (1<<$symsize))                return $rs;
+            if($prim <= 0 || $prim >= (1<<$symsize))             return $rs;
+            if($nroots < 0 || $nroots >= (1<<$symsize))          return $rs; // Can't have more roots than symbol values!
+            if($pad < 0 || $pad >= ((1<<$symsize) -1 - $nroots)) return $rs; // Too much padding
+
+            $rs = new QRrsItem();
+            $rs->mm = $symsize;
+            $rs->nn = (1<<$symsize)-1;
+            $rs->pad = $pad;
+
+            $rs->alpha_to = array_fill(0, $rs->nn+1, 0);
+            $rs->index_of = array_fill(0, $rs->nn+1, 0);
+          
+            // PHP style macro replacement ;)
+            $NN =& $rs->nn;
+            $A0 =& $NN;
+            
+            // Generate Galois field lookup tables
+            $rs->index_of[0] = $A0; // log(zero) = -inf
+            $rs->alpha_to[$A0] = 0; // alpha**-inf = 0
+            $sr = 1;
+          
+            for($i=0; $i<$rs->nn; $i++) {
+                $rs->index_of[$sr] = $i;
+                $rs->alpha_to[$i] = $sr;
+                $sr <<= 1;
+                if($sr & (1<<$symsize)) {
+                    $sr ^= $gfpoly;
+                }
+                $sr &= $rs->nn;
+            }
+            
+            if($sr != 1){
+                // field generator polynomial is not primitive!
+                $rs = NULL;
+                return $rs;
+            }
+
+            /* Form RS code generator polynomial from its roots */
+            $rs->genpoly = array_fill(0, $nroots+1, 0);
+        
+            $rs->fcr = $fcr;
+            $rs->prim = $prim;
+            $rs->nroots = $nroots;
+            $rs->gfpoly = $gfpoly;
+
+            /* Find prim-th root of 1, used in decoding */
+            for($iprim=1;($iprim % $prim) != 0;$iprim += $rs->nn)
+            ; // intentional empty-body loop!
+            
+            $rs->iprim = (int)($iprim / $prim);
+            $rs->genpoly[0] = 1;
+            
+            for ($i = 0,$root=$fcr*$prim; $i < $nroots; $i++, $root += $prim) {
+                $rs->genpoly[$i+1] = 1;
+
+                // Multiply rs->genpoly[] by  @**(root + x)
+                for ($j = $i; $j > 0; $j--) {
+                    if ($rs->genpoly[$j] != 0) {
+                        $rs->genpoly[$j] = $rs->genpoly[$j-1] ^ $rs->alpha_to[$rs->modnn($rs->index_of[$rs->genpoly[$j]] + $root)];
+                    } else {
+                        $rs->genpoly[$j] = $rs->genpoly[$j-1];
+                    }
+                }
+                // rs->genpoly[0] can never be zero
+                $rs->genpoly[0] = $rs->alpha_to[$rs->modnn($rs->index_of[$rs->genpoly[0]] + $root)];
+            }
+            
+            // convert rs->genpoly[] to index form for quicker encoding
+            for ($i = 0; $i <= $nroots; $i++)
+                $rs->genpoly[$i] = $rs->index_of[$rs->genpoly[$i]];
+
+            return $rs;
+        }
+        
+        //----------------------------------------------------------------------
+        public function encode_rs_char($data, &$parity)
+        {
+            $MM       =& $this->mm;
+            $NN       =& $this->nn;
+            $ALPHA_TO =& $this->alpha_to;
+            $INDEX_OF =& $this->index_of;
+            $GENPOLY  =& $this->genpoly;
+            $NROOTS   =& $this->nroots;
+            $FCR      =& $this->fcr;
+            $PRIM     =& $this->prim;
+            $IPRIM    =& $this->iprim;
+            $PAD      =& $this->pad;
+            $A0       =& $NN;
+
+            $parity = array_fill(0, $NROOTS, 0);
+
+            for($i=0; $i< ($NN-$NROOTS-$PAD); $i++) {
+                
+                $feedback = $INDEX_OF[$data[$i] ^ $parity[0]];
+                if($feedback != $A0) {      
+                    // feedback term is non-zero
+            
+                    // This line is unnecessary when GENPOLY[NROOTS] is unity, as it must
+                    // always be for the polynomials constructed by init_rs()
+                    $feedback = $this->modnn($NN - $GENPOLY[$NROOTS] + $feedback);
+            
+                    for($j=1;$j<$NROOTS;$j++) {
+                        $parity[$j] ^= $ALPHA_TO[$this->modnn($feedback + $GENPOLY[$NROOTS-$j])];
+                    }
+                }
+                
+                // Shift 
+                array_shift($parity);
+                if($feedback != $A0) {
+                    array_push($parity, $ALPHA_TO[$this->modnn($feedback + $GENPOLY[0])]);
+                } else {
+                    array_push($parity, 0);
+                }
+            }
+        }
+    }
+    
+    //##########################################################################
+    
+    class QRrs {
+    
+        public static $items = array();
+        
+        //----------------------------------------------------------------------
+        public static function init_rs($symsize, $gfpoly, $fcr, $prim, $nroots, $pad)
+        {
+            foreach(self::$items as $rs) {
+                if($rs->pad != $pad)       continue;
+                if($rs->nroots != $nroots) continue;
+                if($rs->mm != $symsize)    continue;
+                if($rs->gfpoly != $gfpoly) continue;
+                if($rs->fcr != $fcr)       continue;
+                if($rs->prim != $prim)     continue;
+
+                return $rs;
+            }
+
+            $rs = QRrsItem::init_rs_char($symsize, $gfpoly, $fcr, $prim, $nroots, $pad);
+            array_unshift(self::$items, $rs);
+
+            return $rs;
+        }
+    }
Index: /lib/phpqrcode/qrspec.php
===================================================================
--- /lib/phpqrcode/qrspec.php	(revision 6232)
+++ /lib/phpqrcode/qrspec.php	(revision 6232)
@@ -0,0 +1,592 @@
+<?php
+/*
+ * PHP QR Code encoder
+ *
+ * QR Code specifications
+ *
+ * Based on libqrencode C library distributed under LGPL 2.1
+ * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
+ *
+ * The following data / specifications are taken from
+ * "Two dimensional symbol -- QR-code -- Basic Specification" (JIS X0510:2004)
+ *  or
+ * "Automatic identification and data capture techniques -- 
+ *  QR Code 2005 bar code symbology specification" (ISO/IEC 18004:2006)
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+ 
+    define('QRSPEC_VERSION_MAX', 40);
+    define('QRSPEC_WIDTH_MAX',   177);
+
+    define('QRCAP_WIDTH',        0);
+    define('QRCAP_WORDS',        1);
+    define('QRCAP_REMINDER',     2);
+    define('QRCAP_EC',           3);
+
+    class QRspec {
+    
+        public static $capacity = array(
+            array(  0,    0, 0, array(   0,    0,    0,    0)),
+            array( 21,   26, 0, array(   7,   10,   13,   17)), // 1
+            array( 25,   44, 7, array(  10,   16,   22,   28)),
+            array( 29,   70, 7, array(  15,   26,   36,   44)),
+            array( 33,  100, 7, array(  20,   36,   52,   64)),
+            array( 37,  134, 7, array(  26,   48,   72,   88)), // 5
+            array( 41,  172, 7, array(  36,   64,   96,  112)),
+            array( 45,  196, 0, array(  40,   72,  108,  130)),
+            array( 49,  242, 0, array(  48,   88,  132,  156)),
+            array( 53,  292, 0, array(  60,  110,  160,  192)),
+            array( 57,  346, 0, array(  72,  130,  192,  224)), //10
+            array( 61,  404, 0, array(  80,  150,  224,  264)),
+            array( 65,  466, 0, array(  96,  176,  260,  308)),
+            array( 69,  532, 0, array( 104,  198,  288,  352)),
+            array( 73,  581, 3, array( 120,  216,  320,  384)),
+            array( 77,  655, 3, array( 132,  240,  360,  432)), //15
+            array( 81,  733, 3, array( 144,  280,  408,  480)),
+            array( 85,  815, 3, array( 168,  308,  448,  532)),
+            array( 89,  901, 3, array( 180,  338,  504,  588)),
+            array( 93,  991, 3, array( 196,  364,  546,  650)),
+            array( 97, 1085, 3, array( 224,  416,  600,  700)), //20
+            array(101, 1156, 4, array( 224,  442,  644,  750)),
+            array(105, 1258, 4, array( 252,  476,  690,  816)),
+            array(109, 1364, 4, array( 270,  504,  750,  900)),
+            array(113, 1474, 4, array( 300,  560,  810,  960)),
+            array(117, 1588, 4, array( 312,  588,  870, 1050)), //25
+            array(121, 1706, 4, array( 336,  644,  952, 1110)),
+            array(125, 1828, 4, array( 360,  700, 1020, 1200)),
+            array(129, 1921, 3, array( 390,  728, 1050, 1260)),
+            array(133, 2051, 3, array( 420,  784, 1140, 1350)),
+            array(137, 2185, 3, array( 450,  812, 1200, 1440)), //30
+            array(141, 2323, 3, array( 480,  868, 1290, 1530)),
+            array(145, 2465, 3, array( 510,  924, 1350, 1620)),
+            array(149, 2611, 3, array( 540,  980, 1440, 1710)),
+            array(153, 2761, 3, array( 570, 1036, 1530, 1800)),
+            array(157, 2876, 0, array( 570, 1064, 1590, 1890)), //35
+            array(161, 3034, 0, array( 600, 1120, 1680, 1980)),
+            array(165, 3196, 0, array( 630, 1204, 1770, 2100)),
+            array(169, 3362, 0, array( 660, 1260, 1860, 2220)),
+            array(173, 3532, 0, array( 720, 1316, 1950, 2310)),
+            array(177, 3706, 0, array( 750, 1372, 2040, 2430)) //40
+        );
+        
+        //----------------------------------------------------------------------
+        public static function getDataLength($version, $level)
+        {
+            return self::$capacity[$version][QRCAP_WORDS] - self::$capacity[$version][QRCAP_EC][$level];
+        }
+        
+        //----------------------------------------------------------------------
+        public static function getECCLength($version, $level)
+        {
+            return self::$capacity[$version][QRCAP_EC][$level];
+        }
+        
+        //----------------------------------------------------------------------
+        public static function getWidth($version)
+        {
+            return self::$capacity[$version][QRCAP_WIDTH];
+        }
+        
+        //----------------------------------------------------------------------
+        public static function getRemainder($version)
+        {
+            return self::$capacity[$version][QRCAP_REMINDER];
+        }
+        
+        //----------------------------------------------------------------------
+        public static function getMinimumVersion($size, $level)
+        {
+
+            for($i=1; $i<= QRSPEC_VERSION_MAX; $i++) {
+                $words  = self::$capacity[$i][QRCAP_WORDS] - self::$capacity[$i][QRCAP_EC][$level];
+                if($words >= $size) 
+                    return $i;
+            }
+
+            return -1;
+        }
+    
+        //######################################################################
+        
+        public static $lengthTableBits = array(
+            array(10, 12, 14),
+            array( 9, 11, 13),
+            array( 8, 16, 16),
+            array( 8, 10, 12)
+        );
+        
+        //----------------------------------------------------------------------
+        public static function lengthIndicator($mode, $version)
+        {
+            if ($mode == QR_MODE_STRUCTURE)
+                return 0;
+                
+            if ($version <= 9) {
+                $l = 0;
+            } else if ($version <= 26) {
+                $l = 1;
+            } else {
+                $l = 2;
+            }
+
+            return self::$lengthTableBits[$mode][$l];
+        }
+        
+        //----------------------------------------------------------------------
+        public static function maximumWords($mode, $version)
+        {
+            if($mode == QR_MODE_STRUCTURE) 
+                return 3;
+                
+            if($version <= 9) {
+                $l = 0;
+            } else if($version <= 26) {
+                $l = 1;
+            } else {
+                $l = 2;
+            }
+
+            $bits = self::$lengthTableBits[$mode][$l];
+            $words = (1 << $bits) - 1;
+            
+            if($mode == QR_MODE_KANJI) {
+                $words *= 2; // the number of bytes is required
+            }
+
+            return $words;
+        }
+
+        // Error correction code -----------------------------------------------
+        // Table of the error correction code (Reed-Solomon block)
+        // See Table 12-16 (pp.30-36), JIS X0510:2004.
+
+        public static $eccTable = array(
+            array(array( 0,  0), array( 0,  0), array( 0,  0), array( 0,  0)),
+            array(array( 1,  0), array( 1,  0), array( 1,  0), array( 1,  0)), // 1
+            array(array( 1,  0), array( 1,  0), array( 1,  0), array( 1,  0)),
+            array(array( 1,  0), array( 1,  0), array( 2,  0), array( 2,  0)),
+            array(array( 1,  0), array( 2,  0), array( 2,  0), array( 4,  0)),
+            array(array( 1,  0), array( 2,  0), array( 2,  2), array( 2,  2)), // 5
+            array(array( 2,  0), array( 4,  0), array( 4,  0), array( 4,  0)),
+            array(array( 2,  0), array( 4,  0), array( 2,  4), array( 4,  1)),
+            array(array( 2,  0), array( 2,  2), array( 4,  2), array( 4,  2)),
+            array(array( 2,  0), array( 3,  2), array( 4,  4), array( 4,  4)),
+            array(array( 2,  2), array( 4,  1), array( 6,  2), array( 6,  2)), //10
+            array(array( 4,  0), array( 1,  4), array( 4,  4), array( 3,  8)),
+            array(array( 2,  2), array( 6,  2), array( 4,  6), array( 7,  4)),
+            array(array( 4,  0), array( 8,  1), array( 8,  4), array(12,  4)),
+            array(array( 3,  1), array( 4,  5), array(11,  5), array(11,  5)),
+            array(array( 5,  1), array( 5,  5), array( 5,  7), array(11,  7)), //15
+            array(array( 5,  1), array( 7,  3), array(15,  2), array( 3, 13)),
+            array(array( 1,  5), array(10,  1), array( 1, 15), array( 2, 17)),
+            array(array( 5,  1), array( 9,  4), array(17,  1), array( 2, 19)),
+            array(array( 3,  4), array( 3, 11), array(17,  4), array( 9, 16)),
+            array(array( 3,  5), array( 3, 13), array(15,  5), array(15, 10)), //20
+            array(array( 4,  4), array(17,  0), array(17,  6), array(19,  6)),
+            array(array( 2,  7), array(17,  0), array( 7, 16), array(34,  0)),
+            array(array( 4,  5), array( 4, 14), array(11, 14), array(16, 14)),
+            array(array( 6,  4), array( 6, 14), array(11, 16), array(30,  2)),
+            array(array( 8,  4), array( 8, 13), array( 7, 22), array(22, 13)), //25
+            array(array(10,  2), array(19,  4), array(28,  6), array(33,  4)),
+            array(array( 8,  4), array(22,  3), array( 8, 26), array(12, 28)),
+            array(array( 3, 10), array( 3, 23), array( 4, 31), array(11, 31)),
+            array(array( 7,  7), array(21,  7), array( 1, 37), array(19, 26)),
+            array(array( 5, 10), array(19, 10), array(15, 25), array(23, 25)), //30
+            array(array(13,  3), array( 2, 29), array(42,  1), array(23, 28)),
+            array(array(17,  0), array(10, 23), array(10, 35), array(19, 35)),
+            array(array(17,  1), array(14, 21), array(29, 19), array(11, 46)),
+            array(array(13,  6), array(14, 23), array(44,  7), array(59,  1)),
+            array(array(12,  7), array(12, 26), array(39, 14), array(22, 41)), //35
+            array(array( 6, 14), array( 6, 34), array(46, 10), array( 2, 64)),
+            array(array(17,  4), array(29, 14), array(49, 10), array(24, 46)),
+            array(array( 4, 18), array(13, 32), array(48, 14), array(42, 32)),
+            array(array(20,  4), array(40,  7), array(43, 22), array(10, 67)),
+            array(array(19,  6), array(18, 31), array(34, 34), array(20, 61)),//40
+        );                                                                       
+
+        //----------------------------------------------------------------------
+        // CACHEABLE!!!
+        
+        public static function getEccSpec($version, $level, array &$spec)
+        {
+            if (count($spec) < 5) {
+                $spec = array(0,0,0,0,0);
+            }
+
+            $b1   = self::$eccTable[$version][$level][0];
+            $b2   = self::$eccTable[$version][$level][1];
+            $data = self::getDataLength($version, $level);
+            $ecc  = self::getECCLength($version, $level);
+
+            if($b2 == 0) {
+                $spec[0] = $b1;
+                $spec[1] = (int)($data / $b1);
+                $spec[2] = (int)($ecc / $b1);
+                $spec[3] = 0; 
+                $spec[4] = 0;
+            } else {
+                $spec[0] = $b1;
+                $spec[1] = (int)($data / ($b1 + $b2));
+                $spec[2] = (int)($ecc  / ($b1 + $b2));
+                $spec[3] = $b2;
+                $spec[4] = $spec[1] + 1;
+            }
+        }
+
+        // Alignment pattern ---------------------------------------------------
+
+        // Positions of alignment patterns.
+        // This array includes only the second and the third position of the 
+        // alignment patterns. Rest of them can be calculated from the distance 
+        // between them.
+         
+        // See Table 1 in Appendix E (pp.71) of JIS X0510:2004.
+         
+        public static $alignmentPattern = array(      
+            array( 0,  0),
+            array( 0,  0), array(18,  0), array(22,  0), array(26,  0), array(30,  0), // 1- 5
+            array(34,  0), array(22, 38), array(24, 42), array(26, 46), array(28, 50), // 6-10
+            array(30, 54), array(32, 58), array(34, 62), array(26, 46), array(26, 48), //11-15
+            array(26, 50), array(30, 54), array(30, 56), array(30, 58), array(34, 62), //16-20
+            array(28, 50), array(26, 50), array(30, 54), array(28, 54), array(32, 58), //21-25
+            array(30, 58), array(34, 62), array(26, 50), array(30, 54), array(26, 52), //26-30
+            array(30, 56), array(34, 60), array(30, 58), array(34, 62), array(30, 54), //31-35
+            array(24, 50), array(28, 54), array(32, 58), array(26, 54), array(30, 58), //35-40
+        );                                                                                  
+
+        
+        /** --------------------------------------------------------------------
+         * Put an alignment marker.
+         * @param frame
+         * @param width
+         * @param ox,oy center coordinate of the pattern
+         */
+        public static function putAlignmentMarker(array &$frame, $ox, $oy)
+        {
+            $finder = array(
+                "\xa1\xa1\xa1\xa1\xa1",
+                "\xa1\xa0\xa0\xa0\xa1",
+                "\xa1\xa0\xa1\xa0\xa1",
+                "\xa1\xa0\xa0\xa0\xa1",
+                "\xa1\xa1\xa1\xa1\xa1"
+            );                        
+            
+            $yStart = $oy-2;         
+            $xStart = $ox-2;
+            
+            for($y=0; $y<5; $y++) {
+                QRstr::set($frame, $xStart, $yStart+$y, $finder[$y]);
+            }
+        }
+
+        //----------------------------------------------------------------------
+        public static function putAlignmentPattern($version, &$frame, $width)
+        {
+            if($version < 2)
+                return;
+
+            $d = self::$alignmentPattern[$version][1] - self::$alignmentPattern[$version][0];
+            if($d < 0) {
+                $w = 2;
+            } else {
+                $w = (int)(($width - self::$alignmentPattern[$version][0]) / $d + 2);
+            }
+
+            if($w * $w - 3 == 1) {
+                $x = self::$alignmentPattern[$version][0];
+                $y = self::$alignmentPattern[$version][0];
+                self::putAlignmentMarker($frame, $x, $y);
+                return;
+            }
+
+            $cx = self::$alignmentPattern[$version][0];
+            for($x=1; $x<$w - 1; $x++) {
+                self::putAlignmentMarker($frame, 6, $cx);
+                self::putAlignmentMarker($frame, $cx,  6);
+                $cx += $d;
+            }
+
+            $cy = self::$alignmentPattern[$version][0];
+            for($y=0; $y<$w-1; $y++) {
+                $cx = self::$alignmentPattern[$version][0];
+                for($x=0; $x<$w-1; $x++) {
+                    self::putAlignmentMarker($frame, $cx, $cy);
+                    $cx += $d;
+                }
+                $cy += $d;
+            }
+        }
+
+        // Version information pattern -----------------------------------------
+
+		// Version information pattern (BCH coded).
+        // See Table 1 in Appendix D (pp.68) of JIS X0510:2004.
+        
+		// size: [QRSPEC_VERSION_MAX - 6]
+		
+        public static $versionPattern = array(
+            0x07c94, 0x085bc, 0x09a99, 0x0a4d3, 0x0bbf6, 0x0c762, 0x0d847, 0x0e60d,
+            0x0f928, 0x10b78, 0x1145d, 0x12a17, 0x13532, 0x149a6, 0x15683, 0x168c9,
+            0x177ec, 0x18ec4, 0x191e1, 0x1afab, 0x1b08e, 0x1cc1a, 0x1d33f, 0x1ed75,
+            0x1f250, 0x209d5, 0x216f0, 0x228ba, 0x2379f, 0x24b0b, 0x2542e, 0x26a64,
+            0x27541, 0x28c69
+        );
+
+        //----------------------------------------------------------------------
+        public static function getVersionPattern($version)
+        {
+            if($version < 7 || $version > QRSPEC_VERSION_MAX)
+                return 0;
+
+            return self::$versionPattern[$version -7];
+        }
+
+        // Format information --------------------------------------------------
+        // See calcFormatInfo in tests/test_qrspec.c (orginal qrencode c lib)
+        
+        public static $formatInfo = array(
+            array(0x77c4, 0x72f3, 0x7daa, 0x789d, 0x662f, 0x6318, 0x6c41, 0x6976),
+            array(0x5412, 0x5125, 0x5e7c, 0x5b4b, 0x45f9, 0x40ce, 0x4f97, 0x4aa0),
+            array(0x355f, 0x3068, 0x3f31, 0x3a06, 0x24b4, 0x2183, 0x2eda, 0x2bed),
+            array(0x1689, 0x13be, 0x1ce7, 0x19d0, 0x0762, 0x0255, 0x0d0c, 0x083b)
+        );
+
+        public static function getFormatInfo($mask, $level)
+        {
+            if($mask < 0 || $mask > 7)
+                return 0;
+                
+            if($level < 0 || $level > 3)
+                return 0;                
+
+            return self::$formatInfo[$level][$mask];
+        }
+
+        // Frame ---------------------------------------------------------------
+        // Cache of initial frames.
+         
+        public static $frames = array();
+
+        /** --------------------------------------------------------------------
+         * Put a finder pattern.
+         * @param frame
+         * @param width
+         * @param ox,oy upper-left coordinate of the pattern
+         */
+        public static function putFinderPattern(&$frame, $ox, $oy)
+        {
+            $finder = array(
+                "\xc1\xc1\xc1\xc1\xc1\xc1\xc1",
+                "\xc1\xc0\xc0\xc0\xc0\xc0\xc1",
+                "\xc1\xc0\xc1\xc1\xc1\xc0\xc1",
+                "\xc1\xc0\xc1\xc1\xc1\xc0\xc1",
+                "\xc1\xc0\xc1\xc1\xc1\xc0\xc1",
+                "\xc1\xc0\xc0\xc0\xc0\xc0\xc1",
+                "\xc1\xc1\xc1\xc1\xc1\xc1\xc1"
+            );                            
+            
+            for($y=0; $y<7; $y++) {
+                QRstr::set($frame, $ox, $oy+$y, $finder[$y]);
+            }
+        }
+
+        //----------------------------------------------------------------------
+        public static function createFrame($version)
+        {
+            $width = self::$capacity[$version][QRCAP_WIDTH];
+            $frameLine = str_repeat ("\0", $width);
+            $frame = array_fill(0, $width, $frameLine);
+
+            // Finder pattern
+            self::putFinderPattern($frame, 0, 0);
+            self::putFinderPattern($frame, $width - 7, 0);
+            self::putFinderPattern($frame, 0, $width - 7);
+            
+            // Separator
+            $yOffset = $width - 7;
+            
+            for($y=0; $y<7; $y++) {
+                $frame[$y][7] = "\xc0";
+                $frame[$y][$width - 8] = "\xc0";
+                $frame[$yOffset][7] = "\xc0";
+                $yOffset++;
+            }
+            
+            $setPattern = str_repeat("\xc0", 8);
+            
+            QRstr::set($frame, 0, 7, $setPattern);
+            QRstr::set($frame, $width-8, 7, $setPattern);
+            QRstr::set($frame, 0, $width - 8, $setPattern);
+        
+            // Format info
+            $setPattern = str_repeat("\x84", 9);
+            QRstr::set($frame, 0, 8, $setPattern);
+            QRstr::set($frame, $width - 8, 8, $setPattern, 8);
+            
+            $yOffset = $width - 8;
+
+            for($y=0; $y<8; $y++,$yOffset++) {
+                $frame[$y][8] = "\x84";
+                $frame[$yOffset][8] = "\x84";
+            }
+
+            // Timing pattern  
+            
+            for($i=1; $i<$width-15; $i++) {
+                $frame[6][7+$i] = chr(0x90 | ($i & 1));
+                $frame[7+$i][6] = chr(0x90 | ($i & 1));
+            }
+            
+            // Alignment pattern  
+            self::putAlignmentPattern($version, $frame, $width);
+            
+            // Version information 
+            if($version >= 7) {
+                $vinf = self::getVersionPattern($version);
+
+                $v = $vinf;
+                
+                for($x=0; $x<6; $x++) {
+                    for($y=0; $y<3; $y++) {
+                        $frame[($width - 11)+$y][$x] = chr(0x88 | ($v & 1));
+                        $v = $v >> 1;
+                    }
+                }
+
+                $v = $vinf;
+                for($y=0; $y<6; $y++) {
+                    for($x=0; $x<3; $x++) {
+                        $frame[$y][$x+($width - 11)] = chr(0x88 | ($v & 1));
+                        $v = $v >> 1;
+                    }
+                }
+            }
+    
+            // and a little bit...  
+            $frame[$width - 8][8] = "\x81";
+            
+            return $frame;
+        }
+
+        //----------------------------------------------------------------------
+        public static function debug($frame, $binary_mode = false)
+        {
+            if ($binary_mode) {
+            
+                    foreach ($frame as &$frameLine) {
+                        $frameLine = join('<span class="m">&nbsp;&nbsp;</span>', explode('0', $frameLine));
+                        $frameLine = join('&#9608;&#9608;', explode('1', $frameLine));
+                    }
+                    
+                    ?>
+                <style>
+                    .m { background-color: white; }
+                </style>
+                <?php
+                    echo '<pre><tt><br/ ><br/ ><br/ >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
+                    echo join("<br/ >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", $frame);
+                    echo '</tt></pre><br/ ><br/ ><br/ ><br/ ><br/ ><br/ >';
+            
+            } else {
+            
+                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));
+                    $frameLine = join('<span class="p">&#9618;</span>', explode("\xa1", $frameLine));
+                    $frameLine = join('<span class="s">&#9671;</span>', explode("\x84", $frameLine)); //format 0
+                    $frameLine = join('<span class="s">&#9670;</span>', explode("\x85", $frameLine)); //format 1
+                    $frameLine = join('<span class="x">&#9762;</span>', explode("\x81", $frameLine)); //special bit
+                    $frameLine = join('<span class="c">&nbsp;</span>',  explode("\x90", $frameLine)); //clock 0
+                    $frameLine = join('<span class="c">&#9719;</span>', explode("\x91", $frameLine)); //clock 1
+                    $frameLine = join('<span class="f">&nbsp;</span>',  explode("\x88", $frameLine)); //version
+                    $frameLine = join('<span class="f">&#9618;</span>', explode("\x89", $frameLine)); //version
+                    $frameLine = join('&#9830;', explode("\x01", $frameLine));
+                    $frameLine = join('&#8901;', explode("\0", $frameLine));
+                }
+                
+                ?>
+                <style>
+                    .p { background-color: yellow; }
+                    .m { background-color: #00FF00; }
+                    .s { background-color: #FF0000; }
+                    .c { background-color: aqua; }
+                    .x { background-color: pink; }
+                    .f { background-color: gold; }
+                </style>
+                <?php
+                echo "<pre><tt>";
+                echo join("<br/ >", $frame);
+                echo "</tt></pre>";
+            
+            }
+        }
+
+        //----------------------------------------------------------------------
+        public static function serial($frame)
+        {
+            return gzcompress(join("\n", $frame), 9);
+        }
+        
+        //----------------------------------------------------------------------
+        public static function unserial($code)
+        {
+            return explode("\n", gzuncompress($code));
+        }
+        
+        //----------------------------------------------------------------------
+        public static function newFrame($version)
+        {
+            if($version < 1 || $version > QRSPEC_VERSION_MAX) 
+                return null;
+
+            if(!isset(self::$frames[$version])) {
+                
+                $fileName = QR_CACHE_DIR.'frame_'.$version.'.dat';
+                
+                if (QR_CACHEABLE) {
+                    if (file_exists($fileName)) {
+                        self::$frames[$version] = self::unserial(file_get_contents($fileName));
+                    } else {
+                        self::$frames[$version] = self::createFrame($version);
+                        file_put_contents($fileName, self::serial(self::$frames[$version]));
+                    }
+                } else {
+                    self::$frames[$version] = self::createFrame($version);
+                }
+            }
+            
+            if(is_null(self::$frames[$version]))
+                return null;
+
+            return self::$frames[$version];
+        }
+
+        //----------------------------------------------------------------------
+        public static function rsBlockNum($spec)     { return $spec[0] + $spec[3]; }
+        public static function rsBlockNum1($spec)    { return $spec[0]; }
+        public static function rsDataCodes1($spec)   { return $spec[1]; }
+        public static function rsEccCodes1($spec)    { return $spec[2]; }
+        public static function rsBlockNum2($spec)    { return $spec[3]; }
+        public static function rsDataCodes2($spec)   { return $spec[4]; }
+        public static function rsEccCodes2($spec)    { return $spec[2]; }
+        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]; }
+        
+    }
Index: /lib/phpqrcode/qrsplit.php
===================================================================
--- /lib/phpqrcode/qrsplit.php	(revision 6232)
+++ /lib/phpqrcode/qrsplit.php	(revision 6232)
@@ -0,0 +1,311 @@
+<?php
+/*
+ * PHP QR Code encoder
+ *
+ * Input splitting classes
+ *
+ * Based on libqrencode C library distributed under LGPL 2.1
+ * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
+ *
+ * The following data / specifications are taken from
+ * "Two dimensional symbol -- QR-code -- Basic Specification" (JIS X0510:2004)
+ *  or
+ * "Automatic identification and data capture techniques -- 
+ *  QR Code 2005 bar code symbology specification" (ISO/IEC 18004:2006)
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+    class QRsplit {
+
+        public $dataStr = '';
+        public $input;
+        public $modeHint;
+
+        //----------------------------------------------------------------------
+        public function __construct($dataStr, $input, $modeHint) 
+        {
+            $this->dataStr  = $dataStr;
+            $this->input    = $input;
+            $this->modeHint = $modeHint;
+        }
+        
+        //----------------------------------------------------------------------
+        public static function isdigitat($str, $pos)
+        {    
+            if ($pos >= strlen($str))
+                return false;
+            
+            return ((ord($str[$pos]) >= ord('0'))&&(ord($str[$pos]) <= ord('9')));
+        }
+        
+        //----------------------------------------------------------------------
+        public static function isalnumat($str, $pos)
+        {
+            if ($pos >= strlen($str))
+                return false;
+                
+            return (QRinput::lookAnTable(ord($str[$pos])) >= 0);
+        }
+
+        //----------------------------------------------------------------------
+        public function identifyMode($pos)
+        {
+            if ($pos >= strlen($this->dataStr)) 
+                return QR_MODE_NUL;
+                
+            $c = $this->dataStr[$pos];
+            
+            if(self::isdigitat($this->dataStr, $pos)) {
+                return QR_MODE_NUM;
+            } else if(self::isalnumat($this->dataStr, $pos)) {
+                return QR_MODE_AN;
+            } else if($this->modeHint == QR_MODE_KANJI) {
+            
+                if ($pos+1 < strlen($this->dataStr)) 
+                {
+                    $d = $this->dataStr[$pos+1];
+                    $word = (ord($c) << 8) | ord($d);
+                    if(($word >= 0x8140 && $word <= 0x9ffc) || ($word >= 0xe040 && $word <= 0xebbf)) {
+                        return QR_MODE_KANJI;
+                    }
+                }
+            }
+
+            return QR_MODE_8;
+        } 
+        
+        //----------------------------------------------------------------------
+        public function eatNum()
+        {
+            $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion());
+
+            $p = 0;
+            while(self::isdigitat($this->dataStr, $p)) {
+                $p++;
+            }
+            
+            $run = $p;
+            $mode = $this->identifyMode($p);
+            
+            if($mode == QR_MODE_8) {
+                $dif = QRinput::estimateBitsModeNum($run) + 4 + $ln
+                     + QRinput::estimateBitsMode8(1)         // + 4 + l8
+                     - QRinput::estimateBitsMode8($run + 1); // - 4 - l8
+                if($dif > 0) {
+                    return $this->eat8();
+                }
+            }
+            if($mode == QR_MODE_AN) {
+                $dif = QRinput::estimateBitsModeNum($run) + 4 + $ln
+                     + QRinput::estimateBitsModeAn(1)        // + 4 + la
+                     - QRinput::estimateBitsModeAn($run + 1);// - 4 - la
+                if($dif > 0) {
+                    return $this->eatAn();
+                }
+            }
+            
+            $ret = $this->input->append(QR_MODE_NUM, $run, str_split($this->dataStr));
+            if($ret < 0)
+                return -1;
+
+            return $run;
+        }
+        
+        //----------------------------------------------------------------------
+        public function eatAn()
+        {
+            $la = QRspec::lengthIndicator(QR_MODE_AN,  $this->input->getVersion());
+            $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion());
+
+            $p = 0;
+            
+            while(self::isalnumat($this->dataStr, $p)) {
+                if(self::isdigitat($this->dataStr, $p)) {
+                    $q = $p;
+                    while(self::isdigitat($this->dataStr, $q)) {
+                        $q++;
+                    }
+                    
+                    $dif = QRinput::estimateBitsModeAn($p) // + 4 + la
+                         + QRinput::estimateBitsModeNum($q - $p) + 4 + $ln
+                         - QRinput::estimateBitsModeAn($q); // - 4 - la
+                         
+                    if($dif < 0) {
+                        break;
+                    } else {
+                        $p = $q;
+                    }
+                } else {
+                    $p++;
+                }
+            }
+
+            $run = $p;
+
+            if(!self::isalnumat($this->dataStr, $p)) {
+                $dif = QRinput::estimateBitsModeAn($run) + 4 + $la
+                     + QRinput::estimateBitsMode8(1) // + 4 + l8
+                      - QRinput::estimateBitsMode8($run + 1); // - 4 - l8
+                if($dif > 0) {
+                    return $this->eat8();
+                }
+            }
+
+            $ret = $this->input->append(QR_MODE_AN, $run, str_split($this->dataStr));
+            if($ret < 0)
+                return -1;
+
+            return $run;
+        }
+        
+        //----------------------------------------------------------------------
+        public function eatKanji()
+        {
+            $p = 0;
+            
+            while($this->identifyMode($p) == QR_MODE_KANJI) {
+                $p += 2;
+            }
+            
+            $ret = $this->input->append(QR_MODE_KANJI, $p, str_split($this->dataStr));
+            if($ret < 0)
+                return -1;
+
+            return $run;
+        }
+
+        //----------------------------------------------------------------------
+        public function eat8()
+        {
+            $la = QRspec::lengthIndicator(QR_MODE_AN, $this->input->getVersion());
+            $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion());
+
+            $p = 1;
+            $dataStrLen = strlen($this->dataStr);
+            
+            while($p < $dataStrLen) {
+                
+                $mode = $this->identifyMode($p);
+                if($mode == QR_MODE_KANJI) {
+                    break;
+                }
+                if($mode == QR_MODE_NUM) {
+                    $q = $p;
+                    while(self::isdigitat($this->dataStr, $q)) {
+                        $q++;
+                    }
+                    $dif = QRinput::estimateBitsMode8($p) // + 4 + l8
+                         + QRinput::estimateBitsModeNum($q - $p) + 4 + $ln
+                         - QRinput::estimateBitsMode8($q); // - 4 - l8
+                    if($dif < 0) {
+                        break;
+                    } else {
+                        $p = $q;
+                    }
+                } else if($mode == QR_MODE_AN) {
+                    $q = $p;
+                    while(self::isalnumat($this->dataStr, $q)) {
+                        $q++;
+                    }
+                    $dif = QRinput::estimateBitsMode8($p)  // + 4 + l8
+                         + QRinput::estimateBitsModeAn($q - $p) + 4 + $la
+                         - QRinput::estimateBitsMode8($q); // - 4 - l8
+                    if($dif < 0) {
+                        break;
+                    } else {
+                        $p = $q;
+                    }
+                } else {
+                    $p++;
+                }
+            }
+
+            $run = $p;
+            $ret = $this->input->append(QR_MODE_8, $run, str_split($this->dataStr));
+            
+            if($ret < 0)
+                return -1;
+
+            return $run;
+        }
+
+        //----------------------------------------------------------------------
+        public function splitString()
+        {
+            while (strlen($this->dataStr) > 0)
+            {
+                if($this->dataStr == '')
+                    return 0;
+
+                $mode = $this->identifyMode(0);
+                
+                switch ($mode) {
+                    case QR_MODE_NUM: $length = $this->eatNum(); break;
+                    case QR_MODE_AN:  $length = $this->eatAn(); break;
+                    case QR_MODE_KANJI:
+                        if ($hint == QR_MODE_KANJI)
+                                $length = $this->eatKanji();
+                        else    $length = $this->eat8();
+                        break;
+                    default: $length = $this->eat8(); break;
+                
+                }
+
+                if($length == 0) return 0;
+                if($length < 0)  return -1;
+                
+                $this->dataStr = substr($this->dataStr, $length);
+            }
+        }
+
+        //----------------------------------------------------------------------
+        public function toUpper()
+        {
+            $stringLen = strlen($this->dataStr);
+            $p = 0;
+            
+            while ($p<$stringLen) {
+                $mode = self::identifyMode(substr($this->dataStr, $p), $this->modeHint);
+                if($mode == QR_MODE_KANJI) {
+                    $p += 2;
+                } else {
+                    if (ord($this->dataStr[$p]) >= ord('a') && ord($this->dataStr[$p]) <= ord('z')) {
+                        $this->dataStr[$p] = chr(ord($this->dataStr[$p]) - 32);
+                    }
+                    $p++;
+                }
+            }
+
+            return $this->dataStr;
+        }
+
+        //----------------------------------------------------------------------
+        public static function splitStringToQRinput($string, QRinput $input, $modeHint, $casesensitive = true)
+        {
+            if(is_null($string) || $string == '\0' || $string == '') {
+                throw new Exception('empty string!!!');
+            }
+
+            $split = new QRsplit($string, $input, $modeHint);
+            
+            if(!$casesensitive)
+                $split->toUpper();
+                
+            return $split->splitString();
+        }
+    }
Index: /lib/phpqrcode/qrtools.php
===================================================================
--- /lib/phpqrcode/qrtools.php	(revision 6232)
+++ /lib/phpqrcode/qrtools.php	(revision 6232)
@@ -0,0 +1,172 @@
+<?php
+/*
+ * PHP QR Code encoder
+ *
+ * Toolset, handy and debug utilites.
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+    class QRtools {
+    
+        //----------------------------------------------------------------------
+        public static function binarize($frame)
+        {
+            $len = count($frame);
+            foreach ($frame as &$frameLine) {
+                
+                for($i=0; $i<$len; $i++) {
+                    $frameLine[$i] = (ord($frameLine[$i])&1)?'1':'0';
+                }
+            }
+            
+            return $frame;
+        }
+        
+        //----------------------------------------------------------------------
+        public static function tcpdfBarcodeArray($code, $mode = 'QR,L', $tcPdfVersion = '4.5.037')
+        {
+            $barcode_array = array();
+            
+            if (!is_array($mode))
+                $mode = explode(',', $mode);
+                
+            $eccLevel = 'L';
+                
+            if (count($mode) > 1) {
+                $eccLevel = $mode[1];
+            }
+                
+            $qrTab = QRcode::text($code, false, $eccLevel);
+            $size = count($qrTab);
+                
+            $barcode_array['num_rows'] = $size;
+            $barcode_array['num_cols'] = $size;
+            $barcode_array['bcode'] = array();
+                
+            foreach ($qrTab as $line) {
+                $arrAdd = array();
+                foreach(str_split($line) as $char)
+                    $arrAdd[] = ($char=='1')?1:0;
+                $barcode_array['bcode'][] = $arrAdd;
+            }
+                    
+            return $barcode_array;
+        }
+        
+        //----------------------------------------------------------------------
+        public static function clearCache()
+        {
+            self::$frames = array();
+        }
+        
+        //----------------------------------------------------------------------
+        public static function buildCache()
+        {
+			QRtools::markTime('before_build_cache');
+			
+			$mask = new QRmask();
+            for ($a=1; $a <= QRSPEC_VERSION_MAX; $a++) {
+                $frame = QRspec::newFrame($a);
+                if (QR_IMAGE) {
+                    $fileName = QR_CACHE_DIR.'frame_'.$a.'.png';
+                    QRimage::png(self::binarize($frame), $fileName, 1, 0);
+                }
+				
+				$width = count($frame);
+				$bitMask = array_fill(0, $width, array_fill(0, $width, 0));
+				for ($maskNo=0; $maskNo<8; $maskNo++)
+					$mask->makeMaskNo($maskNo, $width, $frame, $bitMask, true);
+            }
+			
+			QRtools::markTime('after_build_cache');
+        }
+
+        //----------------------------------------------------------------------
+        public static function log($outfile, $err)
+        {
+            if (QR_LOG_DIR !== false) {
+                if ($err != '') {
+                    if ($outfile !== false) {
+                        file_put_contents(QR_LOG_DIR.basename($outfile).'-errors.txt', date('Y-m-d H:i:s').': '.$err, FILE_APPEND);
+                    } else {
+                        file_put_contents(QR_LOG_DIR.'errors.txt', date('Y-m-d H:i:s').': '.$err, FILE_APPEND);
+                    }
+                }    
+            }
+        }
+        
+        //----------------------------------------------------------------------
+        public static function dumpMask($frame) 
+        {
+            $width = count($frame);
+            for($y=0;$y<$width;$y++) {
+                for($x=0;$x<$width;$x++) {
+                    echo ord($frame[$y][$x]).',';
+                }
+            }
+        }
+        
+        //----------------------------------------------------------------------
+        public static function markTime($markerId)
+        {
+            list($usec, $sec) = explode(" ", microtime());
+            $time = ((float)$usec + (float)$sec);
+            
+            if (!isset($GLOBALS['qr_time_bench']))
+                $GLOBALS['qr_time_bench'] = array();
+            
+            $GLOBALS['qr_time_bench'][$markerId] = $time;
+        }
+        
+        //----------------------------------------------------------------------
+        public static function timeBenchmark()
+        {
+            self::markTime('finish');
+        
+            $lastTime = 0;
+            $startTime = 0;
+            $p = 0;
+
+            echo '<table cellpadding="3" cellspacing="1">
+                    <thead><tr style="border-bottom:1px solid silver"><td colspan="2" style="text-align:center">BENCHMARK</td></tr></thead>
+                    <tbody>';
+
+            foreach($GLOBALS['qr_time_bench'] as $markerId=>$thisTime) {
+                if ($p > 0) {
+                    echo '<tr><th style="text-align:right">till '.$markerId.': </th><td>'.number_format($thisTime-$lastTime, 6).'s</td></tr>';
+                } else {
+                    $startTime = $thisTime;
+                }
+                
+                $p++;
+                $lastTime = $thisTime;
+            }
+            
+            echo '</tbody><tfoot>
+                <tr style="border-top:2px solid black"><th style="text-align:right">TOTAL: </th><td>'.number_format($lastTime-$startTime, 6).'s</td></tr>
+            </tfoot>
+            </table>';
+        }
+        
+    }
+    
+    //##########################################################################
+    
+    QRtools::markTime('start');
+    
Index: /lib/phpqrcode/tools/merge.bat
===================================================================
--- /lib/phpqrcode/tools/merge.bat	(revision 6232)
+++ /lib/phpqrcode/tools/merge.bat	(revision 6232)
@@ -0,0 +1,2 @@
+php ./merge.php
+pause
Index: /lib/phpqrcode/tools/merge.php
===================================================================
--- /lib/phpqrcode/tools/merge.php	(revision 6232)
+++ /lib/phpqrcode/tools/merge.php	(revision 6232)
@@ -0,0 +1,70 @@
+<?php
+
+/*
+ * PHP QR Code encoder
+ *
+ * Tool for merging all library files into one, simpler to incorporate.
+ * 
+ * MAKE SURE THAT RESULTING PHPQRCode.php (and its dir) ARE WRITABLE!
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+ 
+    $QR_BASEDIR = dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR;
+    $QR_TOOLSDIR = dirname(__FILE__).DIRECTORY_SEPARATOR;
+    
+    $outputFile = $QR_BASEDIR.'phpqrcode.php';
+    
+    // Required libs
+    
+    $fileList = array(
+        $QR_BASEDIR.'qrconst.php',
+        $QR_TOOLSDIR.'merged_config.php',
+        $QR_BASEDIR.'qrtools.php',
+        $QR_BASEDIR.'qrspec.php',
+        $QR_BASEDIR.'qrimage.php',
+        $QR_BASEDIR.'qrinput.php',
+        $QR_BASEDIR.'qrbitstream.php',
+        $QR_BASEDIR.'qrsplit.php',
+        $QR_BASEDIR.'qrrscode.php',
+        $QR_BASEDIR.'qrmask.php',
+        $QR_BASEDIR.'qrencode.php'
+    );
+    
+    $headerFile = $QR_TOOLSDIR.'merged_header.php';
+    $versionFile = $QR_BASEDIR.'VERSION';
+    
+    $outputCode = '';
+    
+    foreach($fileList as $fileName) {
+        $outputCode .= "\n\n".'//---- '.basename($fileName).' -----------------------------'."\n\n";
+        $anotherCode = file_get_contents($fileName);
+        $anotherCode = preg_replace ('/^<\?php/', '', $anotherCode);
+        $anotherCode = preg_replace ('/\?>\*$/', '', $anotherCode);
+        $outputCode .= "\n\n".$anotherCode."\n\n";
+    }
+    
+	$versionDataEx = explode("\n", file_get_contents($versionFile));
+	
+    $outputContents = file_get_contents($headerFile);
+    $outputContents .= "\n\n/*\n * Version: ".trim($versionDataEx[0])."\n * Build: ".trim($versionDataEx[1])."\n */\n\n";
+    $outputContents .= $outputCode;
+    
+    file_put_contents($outputFile, $outputContents);
+    
+    
Index: /lib/phpqrcode/tools/merge.sh
===================================================================
--- /lib/phpqrcode/tools/merge.sh	(revision 6232)
+++ /lib/phpqrcode/tools/merge.sh	(revision 6232)
@@ -0,0 +1,2 @@
+#!/bin/sh
+php ./merge.php
Index: /lib/phpqrcode/tools/merged_config.php
===================================================================
--- /lib/phpqrcode/tools/merged_config.php	(revision 6232)
+++ /lib/phpqrcode/tools/merged_config.php	(revision 6232)
@@ -0,0 +1,17 @@
+<?php
+/*
+ * PHP QR Code encoder
+ *
+ * Config file, tuned-up for merged verion
+ */
+     
+    define('QR_CACHEABLE', false);       // use cache - more disk reads but less CPU power, masks and format templates are stored there
+    define('QR_CACHE_DIR', false);       // used when QR_CACHEABLE === true
+    define('QR_LOG_DIR', false);         // default error logs dir   
+    
+    define('QR_FIND_BEST_MASK', true);  // if true, estimates best mask (spec. default, but extremally slow; set to false to significant performance boost but (propably) worst quality code
+    define('QR_FIND_FROM_RANDOM', 2);   // if false, checks all masks available, otherwise value tells count of masks need to be checked, mask id are got randomly
+    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
+                                                  
Index: /lib/phpqrcode/tools/merged_header.php
===================================================================
--- /lib/phpqrcode/tools/merged_header.php	(revision 6232)
+++ /lib/phpqrcode/tools/merged_header.php	(revision 6232)
@@ -0,0 +1,36 @@
+<?php
+
+/*
+ * PHP QR Code encoder
+ *
+ * This file contains MERGED version of PHP QR Code library.
+ * It was auto-generated from full version for your convenience.
+ *
+ * This merged version was configured to not requre any external files,
+ * with disabled cache, error loging and weker but faster mask matching.
+ * If you need tune it up please use non-merged version.
+ *
+ * For full version, documentation, examples of use please visit:
+ *
+ *    http://phpqrcode.sourceforge.net/
+ *    https://sourceforge.net/projects/phpqrcode/
+ *
+ * PHP QR Code is distributed under LGPL 3
+ * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+ 
+ 
Index: /lib/wpsg_basket.class.php
===================================================================
--- /lib/wpsg_basket.class.php	(revision 6230)
+++ /lib/wpsg_basket.class.php	(revision 6232)
@@ -540,4 +540,8 @@
 			{
 			
+				$arAttach = array();
+				// Anhang aufbereiten
+				$this->shop->callMod('wpsg_mod_orderupload', 'getAdminAttachment', array(&$arAttach));
+				
 				$mail_text = $this->shop->render(WPSG_PATH_VIEW.'/mailtemplates/adminmail.phtml', false);
 				
@@ -545,5 +549,5 @@
 				else $mail_html = false;
 				
-				$this->shop->sendMail($mail_text, $this->shop->get_option('wpsg_adminmail_empfaenger'), 'adminmail', array(), $order_id, $oOrder->k_id, $mail_html);
+				$this->shop->sendMail($mail_text, $this->shop->get_option('wpsg_adminmail_empfaenger'), 'adminmail', $arAttach, $order_id, $oOrder->k_id, $mail_html);
 				
 				if ($bDebug === false)
Index: /mods/wpsg_mod_orderupload.class.php
===================================================================
--- /mods/wpsg_mod_orderupload.class.php	(revision 6230)
+++ /mods/wpsg_mod_orderupload.class.php	(revision 6232)
@@ -56,5 +56,5 @@
 			
 		} // public function settings_save()
-				
+		
 		public function checkout_inner_prebutton(&$checkout_view) { 
 			
@@ -106,5 +106,5 @@
 						{
 							
-							// Cache sauber haltens
+							// Cache sauber halten
 							foreach ($_SESSION['wpsg']['wpsg_mod_orderupload'] as $ou)
 							{
@@ -142,4 +142,22 @@
 		} // public function checkCheckout(&$state, &$error, &$arCheckout)
 		
+		public function checkBasket(&$error) {
+			
+			$sum = 0;
+			foreach ($_SESSION['wpsg']['wpsg_mod_orderupload'] as $k => $ou)
+			{
+				$sum += filesize($ou[3]);
+			}
+			$sum = $sum / (1024 * 1000);
+			$sum = $this->shop->get_option('wpsg_mod_orderupload_maxweight') - $sum;
+			if ($sum <= 0) {
+				$this->shop->addFrontendError(__($this->shop->get_option('wpsg_mod_orderupload_maxweight_text'), 'wpsg'));
+			}
+			
+			$this->shop->view['wpsg_mod_orderupload']['uploadsum'] = round($sum, 2);
+			$this->shop->view['wpsg_mod_orderupload']['maxweight'] = $this->shop->get_option('wpsg_mod_orderupload_maxweight');
+			
+		}
+		
 		public function wp_loaded() 
 		{ 
@@ -197,5 +215,5 @@
 					unlink($ou[3]);
 					
-					unset($_SESSION['wpsg']['wpsg_mod_orderupload'][$k]);
+					//unset($_SESSION['wpsg']['wpsg_mod_orderupload'][$k]);
 					
 				}
@@ -282,6 +300,62 @@
 			else return $path;
 			
- 		} // private function getSavePath($order_id, $url = false)
-				
+ 		} // public function getSavePath($order_id, $url = false)
+
+ 		public function getAdminAttachment(&$attach)
+ 		{
+ 			
+ 			$o_id = $_SESSION['wpsg']['order_id'];
+ 			$path = $this->getSavePath($o_id);
+ 			
+ 			if ($this->shop->get_option('wpsg_mod_orderupload_mail') == 1) {
+ 				
+	 			foreach ($_SESSION['wpsg']['wpsg_mod_orderupload'] as $k => $ou)
+	 			{
+	 				/*
+	 				copy(
+	 						$ou[3],
+	 						$path.'/'.$this->getNewName($ou[0], $o_id)
+	 						);
+	 				unset($_SESSION['wpsg']['wpsg_mod_orderupload'][$k]);
+					*/
+	 				
+	 				$attach[] = $path.$this->getNewName($ou[0], $o_id);
+	 				
+	 				unset($_SESSION['wpsg']['wpsg_mod_orderupload'][$k]);
+	 				
+	 			}
+
+ 				if ($this->shop->get_option('wpsg_mod_orderupload_zip') == 1) {
+ 					
+ 					$zpath = $path.$this->getNewName('archiv', $o_id).'.zip';
+ 					// Objekt erstellen und prÃŒfen, ob der Server zippen kann
+ 					$zip = new ZipArchive();
+ 					// ZIPARCHIVE::CREATE | ZIPARCHIVE::OVERWRITE ÃŒberschreibt nicht das Archiv,
+ 					// deshalb die Archivdatei vorher lÃ¶schen
+ 					if (file_exists($zpath)) unlink($zpath);
+ 					
+ 					if ($zip->open($zpath, ZIPARCHIVE::CREATE | ZIPARCHIVE::OVERWRITE) !== TRUE) {
+ 						die ("ERROR: Could not open archive");
+ 					}
+ 					
+ 					foreach ($attach as $k => $v) {
+ 						
+ 						$vl = pathinfo($v);
+ 						$zip->addFile($v, $vl['basename']) or die ("ERROR: Could not add file: $v");
+ 					}
+
+ 					// Zip-Datei speichern
+ 					$anz = $zip->numFiles;
+ 					$zip->close();
+ 					
+ 					$attach = array();
+ 					$attach[] = $zpath;
+ 					
+ 				}
+ 			}
+ 			//TODO
+ 			
+ 		} // public function getAdminAttachment(&$attach)
+ 		
 	} // class wpsg_mod_orderupload extends wpsg_mod_basic
 
Index: /mods/wpsg_mod_prepayment.class.php
===================================================================
--- /mods/wpsg_mod_prepayment.class.php	(revision 6230)
+++ /mods/wpsg_mod_prepayment.class.php	(revision 6232)
@@ -231,4 +231,44 @@
 		} // private function get_subject($order_id)
 		
+		/**
+		 * QRCode fÃŒr eMail erzeugen
+		 */
+		public function genQRCode($betrag, $subject, $size, $out)
+		{
+			
+			require_once WPSG_PATH_LIB.'phpqrcode/qrlib.php';
+			require_once WPSG_PATH_LIB.'phpgirocode.class.php';
+			
+			$fname1 = WPSG_PATH_UPLOADS.'wpsg_girocode/'.$subject.'.png';
+			$fname2 = WPSG_URL_UPLOADS.'wpsg_girocode/'.$subject.'.png';
+			$phpGiroCode = new PhpGirocode();
+			$phpGiroCode->setBIC(wpsg_getStr($this->shop->get_option('wpsg_shopdata_bank_bic')));
+			$phpGiroCode->setIBAN(wpsg_getStr($this->shop->get_option('wpsg_shopdata_bank_iban')));
+			$phpGiroCode->setReciver(wpsg_getStr($this->shop->get_option('wpsg_shopdata_bank_owner')));
+			$phpGiroCode->setAmount($betrag);
+			$phpGiroCode->setText($subject);
+			$phpGiroCode->setSize($size);
+			
+			if ($out == PhpGirocode::OUTPUT_BROWSER) {
+				$phpGiroCode->generate(PhpGirocode::OUTPUT_BROWSER, $fname1);
+			
+			} else if ($out == PhpGirocode::OUTPUT_FILE) {
+				$phpGiroCode->generate(PhpGirocode::OUTPUT_FILE, $fname1);
+				$ret = '<img src="'.$fname2.'" />';
+
+			} else if ($out == PhpGirocode::OUTPUT_BASE64) {
+				$tmpfname = tempnam("/tmp", "phpgirocode");
+				$ret = $phpGiroCode->generate(PhpGirocode::OUTPUT_BASE64, $tmpfname);
+				//$ret = base64_encode(file_get_contents($tmpfname));
+				
+			} else {
+				$ret = $phpGiroCode->generate(PhpGirocode::OUTPUT_TEST, false);
+			}
+			
+			return $ret;
+			
+		} // private function genQRCode($betrag, $subject, $size, $out)
+		
+		
 	} // class wpsg_mod_prepayment extends wpsg_mod_basic
 
Index: /views/mailtemplates/html/customer.phtml
===================================================================
--- /views/mailtemplates/html/customer.phtml	(revision 6230)
+++ /views/mailtemplates/html/customer.phtml	(revision 6232)
@@ -162,5 +162,19 @@
 	</tr>
 	<tr>
-		<td style="padding:2px; line-height:100%; vertical-align:top;" class="col0"><?php echo __('Zahlungsart', 'wpsg'); ?>:</td>
+		<td style="padding:2px; line-height:100%; vertical-align:top;" class="col0"><?php echo __('Zahlungsart', 'wpsg'); ?>:
+<br />		
+
+<?php
+	require_once WPSG_PATH_LIB.'phpgirocode.class.php';
+	if (isset($this->view['mod_prepayment']['subject'])) { 
+		if (in_array('kundenmail.phtml', $this->arTemplateStack)) {
+			echo $this->callMod('wpsg_mod_prepayment', 'genQRCode', array($this->view['basket']['sum']['preis_gesamt_brutto'],
+				$this->view['mod_prepayment']['subject'], 3, PhpGirocode::OUTPUT_FILE));
+		}
+	}
+?>
+		
+		
+		</td>
 		<td style="padding:2px; line-height:100%; vertical-align:top;" class="col1">
 			<?php echo $this->arPayment[$this->view['basket']['checkout']['payment']]['name']; ?><br />
Index: /views/mailtemplates/html/html_head.phtml
===================================================================
--- /views/mailtemplates/html/html_head.phtml	(revision 6230)
+++ /views/mailtemplates/html/html_head.phtml	(revision 6232)
@@ -3,5 +3,5 @@
     <head>
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />        
-        <title><?php echo $this->view['subject']; ?></title>
+        <title><?php //echo $this->view['subject']; ?></title>
 		<style type="text/css">
  
Index: /views/mods/mod_orderupload/checkout_inner_prebutton.phtml
===================================================================
--- /views/mods/mod_orderupload/checkout_inner_prebutton.phtml	(revision 6230)
+++ /views/mods/mod_orderupload/checkout_inner_prebutton.phtml	(revision 6232)
@@ -46,5 +46,5 @@
 	<?php /* Counter, wie viel MB noch ÃŒbrig sind */?>
 	<label class="wpsg_fileweight">
-		<?php echo __('Es stehen Ihnen #1# Mb von #2# Mb fÃŒr den Upload zur VerfÃŒgung', 'wpsg'), $this->view['wpsg_mod_orderupload']['uploadsum'],$this->view['wpsg_mod_orderupload']['maxweight'];?>
+		<?php echo wpsg_translate(__('Es stehen Ihnen #1# Mb von #2# Mb fÃŒr den Upload zur VerfÃŒgung', 'wpsg'), $this->view['wpsg_mod_orderupload']['uploadsum'],$this->view['wpsg_mod_orderupload']['maxweight']);?>
 	</label>
 	
Index: /views/mods/mod_orderupload/order_view_sidebar.phtml
===================================================================
--- /views/mods/mod_orderupload/order_view_sidebar.phtml	(revision 6230)
+++ /views/mods/mod_orderupload/order_view_sidebar.phtml	(revision 6232)
@@ -6,22 +6,23 @@
  
 ?>
-<div class="postbox" id="wpsg_modorderupload">
-	<div title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br></div>
-	<h3 class="hndle">
-		<span><?php echo __('Bestelluploads', 'wpsg'); ?></span>
-	</h3> 
-	<div class="inside">
-		 <?php if (!wpsg_isSizedArray($this->view['arFiles'])) { ?>
-		 <p class="wpsg_checkout_orderupload_backend">
-		 	<?php echo __('Keine Dateien hochgeladen.', 'wpsg'); ?>
-		 </p>
-		 <?php } else { ?>
-		 <?php foreach ($this->view['arFiles'] as $f) { ?>
-		 <p class="wpsg_checkout_orderupload_backend">
-		 	<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&edit_id=<?php echo $this->view['data']['id']; ?>&noheader=1&action=ajax&mod=wpsg_mod_orderupload&wpsg_mod_orderupload_download=<?php echo rawurlencode($f); ?>"><?php echo $f; ?></a><br /> 
-		 	<span class="wpsg_checkout_orderupload_backend_weight">(<?php echo wpsg_formatSize($this->callMod('wpsg_mod_orderupload', 'getSavePath', array($this->view['data']['id'])).$f); ?>)</span>
-		 </p>
-		 <?php } ?>
-		 <?php } ?>
-	</div>
-</div>
+
+	<?php if ($this->hasMod('wpsg_mod_orderupload')) { ?>
+		<?php echo wpsg_drawForm_AdminboxStart(__('Bestelluploads', 'wpsg')); ?>
+		
+			<div class="inside">
+				 <?php if (!wpsg_isSizedArray($this->view['arFiles'])) { ?>
+				 <p class="wpsg_checkout_orderupload_backend">
+				 	<?php echo __('Keine Dateien hochgeladen.', 'wpsg'); ?>
+				 </p>
+				 <?php } else { ?>
+				 <?php foreach ($this->view['arFiles'] as $f) { ?>
+				 <p class="wpsg_checkout_orderupload_backend">
+				 	<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&edit_id=<?php echo $this->view['data']['id']; ?>&noheader=1&action=ajax&mod=wpsg_mod_orderupload&wpsg_mod_orderupload_download=<?php echo rawurlencode($f); ?>"><?php echo $f; ?></a><br /> 
+				 	<span class="wpsg_checkout_orderupload_backend_weight">(<?php echo wpsg_formatSize($this->callMod('wpsg_mod_orderupload', 'getSavePath', array($this->view['data']['id'])).$f); ?>)</span>
+				 </p>
+				 <?php } ?>
+				 <?php } ?>
+			</div>
+		
+		<?php echo wpsg_drawForm_AdminboxEnd(); ?>
+	<?php } ?>
Index: /views/mods/mod_orderupload/settings_edit.phtml
===================================================================
--- /views/mods/mod_orderupload/settings_edit.phtml	(revision 6230)
+++ /views/mods/mod_orderupload/settings_edit.phtml	(revision 6232)
@@ -31,5 +31,5 @@
 
 <?php /* Anhang an Adminmail */ ?>
-<?php echo wpsg_drawForm_Checkbox('wpsg_mod_orderupload_mail', __('Upload an Anhang an Adminmail', 'wpsg'), $this->get_option('wpsg_mod_orderupload_mail'), array('help' => 'wpsg_mod_orderupload_mail')); ?>
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_orderupload_mail', __('Upload als Anhang an Adminmail', 'wpsg'), $this->get_option('wpsg_mod_orderupload_mail'), array('help' => 'wpsg_mod_orderupload_mail')); ?>
 
 <?php /* mehrere AnhÃ€nge zippen (wenn "mehrere Dateien" und wenn "Adminmail"*/ ?>
Index: /views/mods/mod_ordervars/order_view_sidebar.phtml
===================================================================
--- /views/mods/mod_ordervars/order_view_sidebar.phtml	(revision 6230)
+++ /views/mods/mod_ordervars/order_view_sidebar.phtml	(revision 6232)
@@ -6,10 +6,7 @@
 
 ?>
-<div id="wpsg_ordervars" class="postbox">
-	<h3 class="wpsg_handlediv">
-		<span class="handlediv" title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>"><br></span>
-		<span><?php echo __('Bestellvariablen', 'wpsg'); ?></span>
-	</h3>
-	<div class="inside">
+	
+	<?php echo wpsg_drawForm_AdminboxStart(__('Bestellvariablen', 'wpsg')); ?>
+	
 		<?php foreach ($this->view['wpsg_mod_ordervars']['data'] as $ov_id => $ov) { ?>
 		
@@ -60,4 +57,4 @@
 			
 		<?php } ?>
-	</div>
-</div>
+	
+	<?php echo wpsg_drawForm_AdminboxEnd(); ?>
Index: /views/warenkorb/done.phtml
===================================================================
--- /views/warenkorb/done.phtml	(revision 6230)
+++ /views/warenkorb/done.phtml	(revision 6232)
@@ -42,7 +42,22 @@
 	<p><?php echo __('Vielen Dank fÃŒr Ihre Bestellung!', 'wpsg'); ?></p>
 	<p><?php $this->callMods('order_done', array(&$this->view['o_id'], &$this->view)); ?></p>
-		
+	
 	<br />
 	<div class="wpsg_clear"></div>
 	
+	<?php if (isset($this->view['wpsg_mod_prepayment']['subject'])) { ?>
+		<p><?php echo __('Wenn Ihre Banking-App Girocode versteht, kÃ¶nnen Sie diesen QRCode scannen.', 'wpsg'); ?></p>
+		<?php 
+		require_once WPSG_PATH_LIB.'phpgirocode.class.php';
+		
+		$img = $this->callMod('wpsg_mod_prepayment', 'genQRCode', array($this->view['basket']['sum']['preis_gesamt_brutto'],
+				$this->view['wpsg_mod_prepayment']['subject'], 8, PhpGirocode::OUTPUT_BASE64));
+		?>
+		<img src="data:image/gif;base64,<?php echo $img; ?>" alt="" />
+		
+	  	<pre><?php 	echo $this->callMod('wpsg_mod_prepayment', 'genQRCode', array($this->view['basket']['sum']['preis_gesamt_brutto'],
+	  			$this->view['wpsg_mod_prepayment']['subject'], 8, PhpGirocode::OUTPUT_TEST));
+	  	?></pre>
+	<?php } ?>
+	
 </div>
