<?php
namespace tekintian; define("\121\122\x5f\115\117\104\105\x5f\x4e\125\114", -1); define("\x51\122\x5f\x4d\x4f\104\x45\137\x4e\125\x4d", 0); define("\121\122\x5f\115\117\x44\105\137\101\116", 1); define("\121\x52\x5f\x4d\117\x44\x45\137\x38", 2); define("\121\x52\137\x4d\117\104\x45\x5f\x4b\x41\116\x4a\x49", 3); define("\121\122\x5f\x4d\117\104\105\x5f\123\x54\122\125\103\x54\125\x52\x45", 4); define("\121\122\x5f\x45\103\114\105\x56\x45\114\x5f\x4c", 0); define("\x51\x52\137\105\x43\x4c\105\x56\x45\114\137\x4d", 1); define("\121\122\137\x45\x43\x4c\x45\x56\105\114\x5f\x51", 2); define("\121\122\x5f\105\103\x4c\105\x56\105\114\137\x48", 3); define("\121\122\x5f\x46\117\122\115\101\124\137\x54\105\130\x54", 0); define("\x51\x52\137\106\117\x52\115\x41\124\137\120\116\x47", 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)); } } define("\x51\122\x5f\x43\x41\x43\x48\x45\101\x42\114\105", false); define("\x51\122\137\x43\101\103\x48\105\x5f\x44\x49\122", false); define("\121\122\137\114\x4f\107\137\104\111\x52", false); define("\x51\x52\137\106\x49\x4e\x44\137\x42\x45\123\124\137\x4d\x41\123\x4b", true); define("\x51\122\137\x46\x49\116\x44\137\106\x52\117\115\x5f\x52\101\116\104\117\x4d", 2); define("\121\x52\137\x44\x45\x46\x41\x55\114\x54\x5f\115\x41\x53\x4b", 2); define("\121\x52\137\x50\116\x47\137\115\x41\130\x49\x4d\x55\x4d\137\123\x49\x5a\x45", 1024); class QRtools { public static function binarize($frame) { goto aTcOD; mu4l3: S56gy: goto l9bgP; lZWRl: foreach ($frame as &$frameLine) { goto aOM29; yxdR2: $frameLine[$i] = ord($frameLine[$i]) & 1 ? "\61" : "\60"; goto TK4F7; u1wD6: Ih19u: goto Iw4Bh; ilrK7: if (!($i < $len)) { goto Ijh2Q; } goto yxdR2; aOM29: $i = 0; goto fzjjI; T4DAb: goto a517D; goto XXHyC; fzjjI: a517D: goto ilrK7; XXHyC: Ijh2Q: goto u1wD6; i5i3t: $i++; goto T4DAb; TK4F7: dCHIo: goto i5i3t; Iw4Bh: } goto mu4l3; aTcOD: $len = count($frame); goto lZWRl; l9bgP: return $frame; goto UpzRU; UpzRU: } public static function tcpdfBarcodeArray($code, $mode = "\121\x52\x2c\114", $tcPdfVersion = "\x34\56\65\56\60\63\x37") { goto pQ105; STfy5: $qrTab = QRcode::text($code, false, $eccLevel); goto X7sVu; X7sVu: $size = count($qrTab); goto fSW1d; wcPWB: foreach ($qrTab as $line) { goto LQro8; OSPyl: $barcode_array["\142\143\x6f\144\145"][] = $arrAdd; goto Hw0br; CjJnK: foreach (str_split($line) as $char) { $arrAdd[] = $char == "\61" ? 1 : 0; B59R3: } goto nCO3l; LQro8: $arrAdd = array(); goto CjJnK; Hw0br: Md5z6: goto WGoSs; nCO3l: blhnO: goto OSPyl; WGoSs: } goto IMK3A; O5Evh: $barcode_array["\156\x75\155\x5f\143\x6f\x6c\x73"] = $size; goto kY4rI; pQ105: $barcode_array = array(); goto kiXSE; IMK3A: Hubmu: goto FXuYQ; fSW1d: $barcode_array["\x6e\165\x6d\x5f\162\x6f\x77\163"] = $size; goto O5Evh; xCtUX: $eccLevel = "\114"; goto A3he0; c6R6p: D8oSY: goto xCtUX; jF4US: $mode = explode("\54", $mode); goto c6R6p; A3he0: if (!(count($mode) > 1)) { goto tgPVc; } goto Cr4YG; FXuYQ: return $barcode_array; goto pc2OQ; kY4rI: $barcode_array["\x62\x63\157\144\x65"] = array(); goto wcPWB; kiXSE: if (is_array($mode)) { goto D8oSY; } goto jF4US; efS4S: tgPVc: goto STfy5; Cr4YG: $eccLevel = $mode[1]; goto efS4S; pc2OQ: } public static function clearCache() { self::$frames = array(); } public static function buildCache() { goto Kwbez; bCKDB: $maskNo++; goto c_8MP; CbYoH: QRimage::png(self::binarize($frame), $fileName, 1, 0); goto CmLVK; KRXNN: if (!($maskNo < 8)) { goto EMnEK; } goto C0fh1; uazfy: pCVP6: goto bCKDB; J24NS: $a++; goto Vly2a; ovdsP: QRtools::markTime("\x61\146\164\x65\162\x5f\142\x75\151\x6c\144\137\143\141\x63\150\x65"); goto R40m_; EBFvj: zDvDH: goto EnLuV; QkFSU: $mask = new QRmask(); goto mvqvz; EdodL: $frame = QRspec::newFrame($a); goto AC6xT; Kwbez: QRtools::markTime("\142\145\146\x6f\x72\145\x5f\x62\x75\x69\x6c\x64\137\143\x61\143\x68\x65"); goto QkFSU; c_8MP: goto mJy_8; goto kpHOT; mvqvz: $a = 1; goto EBFvj; CmLVK: lQV2F: goto x3MWH; MXwMk: $maskNo = 0; goto RkqtA; EnLuV: if (!($a <= QRSPEC_VERSION_MAX)) { goto lmrrE; } goto EdodL; RkqtA: mJy_8: goto KRXNN; Vly2a: goto zDvDH; goto c7Mh5; wuUqk: $bitMask = array_fill(0, $width, array_fill(0, $width, 0)); goto MXwMk; x3MWH: $width = count($frame); goto wuUqk; c7Mh5: lmrrE: goto ovdsP; AC6xT: if (!QR_IMAGE) { goto lQV2F; } goto rW_1k; C0fh1: $mask->makeMaskNo($maskNo, $width, $frame, $bitMask, true); goto uazfy; R9p7g: lhpvi: goto J24NS; kpHOT: EMnEK: goto R9p7g; rW_1k: $fileName = QR_CACHE_DIR . "\146\162\x61\x6d\145\137" . $a . "\x2e\x70\156\x67"; goto CbYoH; R40m_: } public static function log($outfile, $err) { goto qmqMa; K84Rz: CPiQe: goto K32p5; qfet4: if (!($err != '')) { goto drd26; } goto jeZgN; qmqMa: if (!(QR_LOG_DIR !== false)) { goto CPiQe; } goto qfet4; cJlsM: file_put_contents(QR_LOG_DIR . basename($outfile) . "\55\x65\162\162\157\x72\x73\x2e\x74\x78\164", date("\131\55\155\x2d\x64\40\110\x3a\x69\72\163") . "\72\x20" . $err, FILE_APPEND); goto xIVb_; qwEt9: file_put_contents(QR_LOG_DIR . "\145\x72\162\x6f\162\163\56\164\x78\164", date("\131\55\155\55\144\40\110\x3a\x69\72\x73") . "\x3a\40" . $err, FILE_APPEND); goto REjRK; xIVb_: DfNFV: goto UtTVU; REjRK: goto DfNFV; goto X6lJe; jeZgN: if ($outfile !== false) { goto lF99a; } goto qwEt9; UtTVU: drd26: goto K84Rz; X6lJe: lF99a: goto cJlsM; K32p5: } public static function dumpMask($frame) { goto ARjhO; W0gPr: if (!($y < $width)) { goto yPavk; } goto UfLNP; lrGU4: JD0Qu: goto tdg24; SbnPQ: RA_TC: goto vvXsM; UfLNP: $x = 0; goto SbnPQ; lHTi6: XS_OW: goto lrGU4; vvXsM: if (!($x < $width)) { goto XS_OW; } goto Vg3TZ; tdg24: $y++; goto WoQ_o; ARjhO: $width = count($frame); goto gPRIv; gPRIv: $y = 0; goto ffIQi; bxeHb: goto RA_TC; goto lHTi6; WoQ_o: goto kUo51; goto V34mI; Vg3TZ: echo ord($frame[$y][$x]) . "\54"; goto wWizP; ffIQi: kUo51: goto W0gPr; wWizP: IcIhL: goto tc0Pi; tc0Pi: $x++; goto bxeHb; V34mI: yPavk: goto wx1pa; wx1pa: } public static function markTime($markerId) { goto kxpCv; YfA81: if (isset($GLOBALS["\161\x72\x5f\164\x69\155\x65\x5f\142\145\156\143\150"])) { goto Id2mX; } goto ESYi1; b4JiO: $GLOBALS["\161\162\137\164\151\x6d\x65\x5f\142\145\x6e\x63\150"][$markerId] = $time; goto Dc63N; kxpCv: list($usec, $sec) = explode("\x20", microtime()); goto yxoOd; ESYi1: $GLOBALS["\x71\162\137\164\x69\x6d\x65\x5f\142\x65\x6e\x63\x68"] = array(); goto NzLCC; yxoOd: $time = (double) $usec + (double) $sec; goto YfA81; NzLCC: Id2mX: goto b4JiO; Dc63N: } public static function timeBenchmark() { goto ECd1a; u988_: echo "\74\x74\141\x62\154\x65\40\x63\x65\x6c\154\x70\141\144\x64\x69\156\147\x3d\x22\x33\42\x20\143\x65\x6c\x6c\163\160\x61\x63\x69\x6e\147\75\x22\x31\x22\76\xa\40\x20\x20\40\x20\x20\x20\40\x20\x20\40\40\40\40\x20\x20\40\x20\x20\40\x3c\x74\x68\x65\141\144\76\x3c\x74\162\x20\x73\164\171\x6c\145\75\x22\x62\157\x72\144\145\x72\x2d\142\x6f\164\164\x6f\155\x3a\61\160\x78\x20\x73\x6f\154\151\x64\x20\163\151\154\166\x65\162\x22\x3e\x3c\x74\144\40\x63\157\x6c\163\160\x61\x6e\75\42\62\x22\40\163\x74\171\x6c\145\75\42\x74\145\170\164\55\141\154\x69\x67\x6e\72\x63\x65\x6e\164\145\x72\42\76\102\105\116\103\110\115\x41\122\x4b\x3c\x2f\x74\x64\76\74\x2f\164\x72\76\74\57\164\x68\x65\141\144\x3e\12\40\40\x20\40\40\40\x20\40\x20\x20\40\40\40\40\x20\x20\x20\x20\40\40\x3c\x74\x62\157\144\x79\x3e"; goto rCiL5; tRmQE: $startTime = 0; goto FTD7A; LrbS0: $lastTime = 0; goto tRmQE; rCiL5: foreach ($GLOBALS["\161\162\x5f\164\151\x6d\x65\x5f\142\145\x6e\x63\x68"] as $markerId => $thisTime) { goto scqDT; fR1VL: $lastTime = $thisTime; goto ckxW7; fmytY: $p++; goto fR1VL; scqDT: if ($p > 0) { goto EfhjM; } goto U13m4; Ki_8d: goto BkwHz; goto kS1_G; i3l1S: echo "\x3c\164\162\76\x3c\164\x68\40\163\164\171\154\x65\75\42\164\145\x78\164\x2d\x61\154\x69\x67\x6e\x3a\x72\151\147\150\164\x22\76\x74\151\154\x6c\x20" . $markerId . "\x3a\40\74\x2f\x74\x68\x3e\74\164\144\7