<?php
/* __________________________________________________
| Obfuscated by YAK Pro - Php Obfuscator |
| on 2018-07-30 11:11:05 |
| GitHub: https://github.com/pk-fr/yakpro-po |
|__________________________________________________|
*/
defined("\111\116\x5f\x49\101") or exit("\101\143\143\145\163\163\x20\104\x65\x6e\151\x65\144"); class Md_daojiaModuleWxapp extends WeModuleWxapp { private $tb_banner = "\144\141\x6f\152\151\x61\x5f\x66\x6f\x63\x75\163"; private $tb_category = "\x64\x61\157\x6a\x69\x61\137\x63\141\164"; private $tb_user = "\x64\x61\x6f\x6a\x69\141\x5f\x75\x73\x65\162"; private $tb_addr = "\144\x61\157\152\x69\141\137\x61\144\x64\x72"; private $tb_project = "\x64\x61\x6f\152\x69\141\137\160\x72\x6f\x6a\145\x63\x74"; private $tb_poseal = "\x64\141\157\152\x69\141\137\160\x6f\163\145\x61\154"; private $tb_setup = "\x64\x61\x6f\x6a\x69\x61\x5f\163\x65\164\165\160"; private $tb_order = "\x64\x61\x6f\152\x69\x61\x5f\157\x72\144\x65\x72"; private $tb_comment = "\x64\141\157\152\151\141\x5f\143\x6f\x6d\x6d\x65\156\164"; private $tb_pricelog = "\x64\x61\x6f\152\151\141\137\x75\163\145\x72\x5f\x70\x72\x69\x63\x65\x5f\x6c\x6f\147"; private $tb_pricetx = "\144\x61\157\152\151\x61\x5f\165\x73\x65\x72\x5f\x70\162\x69\143\145\x5f\164\170"; private $tb_pai = "\144\141\x6f\x6a\151\141\137\x70\141\x69\x64\141\x6e"; public function doPageConfig() { global $_GPC, $_W; return $this->result(0, '', $this->getSetUpRow()); } public function doPageIndex() { goto d2FqS; HOWOW: if (!$banner) { goto UDhOP; } goto mn678; qckgR: foreach ($poseal as $key => $val) { goto nvDl8; nvDl8: if (!($val["\154\141\x74"] > 0 && $_GPC["\154\141\164"] > 0)) { goto ZjvbK; } goto Ipdn9; ZoDWU: $poseal[$key]["\154\157\x67\x6f"] = $this->getImg($val["\154\x6f\x67\x6f"]); goto w4jCk; cvd6i: ZjvbK: goto ZoDWU; zzeAX: V3YTe: goto f2G_1; w4jCk: $poseal[$key]["\x69\x6e\x66\157"] = cutstr($val["\151\156\146\x6f"], 30); goto bLQUb; bLQUb: $poseal[$key]["\x63\156\x61\155\x65"] = $this->getCatName($val["\143\141\164\151\144"]); goto zzeAX; Ipdn9: $poseal[$key]["\144\x69\x73"] = $this->getDistance($val["\x6c\156\x67"], $val["\154\141\x74"], $_GPC["\154\x6e\x67"], $_GPC["\x6c\x61\164"]); goto cvd6i; f2G_1: } goto Dp4gR; d2FqS: global $_GPC, $_W; goto X2iwH; zMv_N: pdB8w: goto O1mZC; X2iwH: $data = array(); goto AsDAO; sn9BA: $sql = "\x53\105\114\x45\x43\x54\x20\52\x20\106\x52\x4f\x4d\40" . tablename($this->tb_poseal) . "\x20\x20{$where}\x20\x4f\x52\104\105\122\40\x42\x59\40\150\x6f\x74\40\144\x65\163\143\x20\114\111\115\111\x54\40\x30\54" . $config["\x68\x6f\x74\x6e\x75\155\163"]; goto VzAVv; VzAVv: $poseal = pdo_fetchall($sql); goto LsRER; JdR3P: return $this->result(0, '', $data); goto YwkMF; h8vTU: if (!$project) { goto pdB8w; } goto FntsL; xbnTv: $where = "\40\127\110\105\122\105\40\x68\157\x74\75\x32\40\x61\156\x64\40\x75\156\151\x61\x63\151\x64\75" . $_W["\165\156\x69\141\143\x69\144"]; goto sn9BA; MrxDO: $data["\x70\x72\157\152\145\143\x74"] = array_chunk($project, 2); goto JdR3P; Dp4gR: lmdhS: goto J6_lQ; HeC2R: UDhOP: goto uox8F; J6_lQ: ONvjL: goto PLmZk; IUhR2: $config = $this->getSetUpRow(); goto xbnTv; TY5NI: ssxnA: goto HeC2R; PLmZk: $sql = "\123\x45\114\105\103\124\40\52\40\x46\122\117\115\x20" . tablename($this->tb_project) . "\x20\x20{$where}\x20\117\122\x44\105\122\40\x42\x59\x20\x69\144\x20\x64\145\163\143\x20\x4c\111\x4d\x49\x54\40\60\x2c" . $config["\x70\162\157\152\x65\x63\164\156\x75\x6d\163"]; goto UQSKZ; q32kR: $data["\x63\141\x74"] = $data["\x63\141\164"] ? array_chunk($data["\143\141\x74"], 5) : array(); goto IUhR2; O1mZC: $data["\160\x6f\x73\x65\141\x6c"] = $poseal; goto MrxDO; FntsL: foreach ($project as $key => $val) { $project[$key]["\x6c\x6f\x67\157"] = $this->getImg($val["\x6c\157\x67\x6f"]); Vvrko: } goto AlxKS; UQSKZ: $project = pdo_fetchall($sql); goto h8vTU; uox8F: $data["\x66\x6f\143\165\x73"] = $banner; goto Af3cn; LsRER: if (!$poseal) { goto ONvjL; } goto qckgR; mn678: foreach ($banner as $key => $val) { $banner[$key]["\x69\155\x67"] = $this->getImg($val["\151\155\147"]); ZzN54: } goto TY5NI; AlxKS: wBgk1: goto zMv_N; Af3cn: $data["\x63\x61\x74"] = $this->getAllCategory(0); goto q32kR; AsDAO: $banner = $this->getAllBanner(); goto HOWOW; YwkMF: } public function doPageUser() { goto UlY_k; s79Ra: if (!($row["\160\162\151\143\x65"] > 0 && $price > 0)) { goto OrDPz; } goto dbtBJ; ytk3W: if ($row["\x76\151\x70\163\164\x79\x70\x65"] == 1) { goto Fc8LX; } goto mKIyS; PmKn5: ei9KV: goto gKrTe; E9Fu5: OrDPz: goto sykFN; uCXiy: $price = $_GPC["\x70\x72\151\x63\x65"]; goto K111T; GgalL: foreach ($list as $val) { goto CCy_c; CCy_c: $arr[] = array("\x73\164\x72" => "\50\347\xba\242\xe5\x8c\x85\51" . $val["\x73\150\x6f\x77\164\145\x78\x74"] . $val["\160\x72\x69\143\x65"] . "\x20\xe5\205\203", "\144\x6b" => $val["\x70\162\x69\143\x65"], "\163\164\x79\160\145" => 3, "\x69\144" => $val["\151\144"]); goto DHVHD; DHVHD: $arr2[] = "\x28\347\xba\242\345\x8c\205\51" . $val["\x73\150\157\x77\164\x65\x78\x74"] . $val["\x70\x72\151\143\145"] . "\x20\xe5\x85\203"; goto JeIXj; JeIXj: w3Xgr: goto tKuY5; tKuY5: } goto Yj0vA; aZoz9: $row["\163\x65\166\x69\x63\x65"] = $p ? $p["\x69\x64"] : 0; goto uCXiy; ms_88: goto orwVJ; goto AtApW; sykFN: $list = pdo_fetchall("\x73\x65\x6c\x65\x63\x74\40\52\40\x66\x72\157\x6d\x20" . tablename("\144\x61\157\x6a\151\x61\x5f\x6a\165\141\x6e") . "\x20\167\150\x65\x72\x65\x20\x75\151\144\x3d" . $_GPC["\165\151\144"] . "\40\141\156\x64\40\x69\x73\x75\163\145\x3d\61\x20\x61\x6e\x64\x20\165\156\151\x61\143\151\144\x3d" . $_W["\x75\156\x69\x61\x63\151\x64"]); goto Q2zmQ; kCWZP: if (!($zhe && $row["\166\151\x70\160\x72\151\143\145"] >= $price)) { goto KQlKz; } goto ggIkE; fgk22: $dk2 = $row["\160\162\151\x63\x65"] >= $price ? $price : $row["\160\x72\151\143\x65"]; goto UhCBK; rVSwK: if (!($price > 0 && $row["\x76\151\160\61"])) { goto LFtCi; } goto h_v3K; gKrTe: $zhe = $config["\x76\x69\x70\x7a\x68\x65\x32"]; goto aP0MU; ncQ1x: LFtCi: goto EBYRd; o6nJh: $row = pdo_fetch("\163\x65\x6c\x65\143\164\x20\x2a\x20\146\162\157\155\40" . tablename($this->tb_user) . "\40\x20\x77\150\x65\162\145\x20\x69\144\75" . $_GPC["\x75\151\x64"]); goto W7CsR; Ql_7r: if (!($dk1 > 0)) { goto E2n2y; } goto eQ6R0; RA0rZ: $row["\144\153"] = $arr; goto nzBed; eB0kO: E2n2y: goto N6GKe; pnp42: $zhe = $config["\x76\x69\x70\172\x68\x65\x34"]; goto inaL1; bhc6h: $zhe = $config["\x76\x69\160\172\150\x65\61"]; goto tfPEy; nzBed: $row["\144\x6b\62"] = $arr2; goto Em8Km; F3kav: M8Ik8: goto RA0rZ; UhCBK: $arr[] = array("\163\x74\162" => $str2, "\144\x6b" => $dk2, "\x73\164\x79\x70\145" => 2, "\x69\x64" => 0); goto E9Fu5; vk3VJ: goto a86JM; goto v_fqQ; CEvcn: $row["\166\151\x70\164\x69\155\x65"] = date("\131\56\155\56\144", $row["\166\151\x70\164\x69\155\145"]); goto Riwvk; Em8Km: return $this->result(0, '', $row); goto HDx3T; ggIkE: $dk1 = $price - round((1 - $zhe * 0.01) * $price, 2); goto Ql_7r; Q2zmQ: if (!$list) { goto M8Ik8; } goto GgalL; Yj0vA: KpWcE: goto F3kav; EBYRd: LBVqn: goto s79Ra; N6GKe: KQlKz: goto ncQ1x; EJ54R: if (!($row["\x76\x69\160\61"] > 0)) { goto LBVqn; } goto rVSwK; mKIyS: if ($row["\x76\151\x70\163\164\171\160\x65"] == 2) { goto ei9KV; } goto hrIyk; hrIyk: if ($row["\166\151\x70\163\x74\171\160\x65"] == 3) { goto H6M1r; } goto d5Pqf; d5Pqf: if (!($row["\166\x69\x70\163\x74\x79\x70\145"] == 4)) { goto em1Dq; } goto pnp42; A8GMf: a86JM: goto UyDQ_; UyDQ_: goto sPLQG; goto PmKn5; ORBwm: $arr[] = array("\163\164\x72" => $str1, "\x64\x6b" => $dk1, "\x73\164\171\x70\145" => 1, "\151\x64" => 0); goto eB0kO; dbtBJ: $arr2[] = $str2 = "\40\xe4\xbd\231\351\xa2\x9d\x20\346\x94\257\xe4\273\x98\40\x20\55" . ($row["\x70\x72\151\x63\x65"] >= $price ? $price : $row["\x70\x72\x69\143\x65"]) . "\40\345\205\203"; goto fgk22; K111T: $row["\166\x69\x70\61"] = $row["\x76\x69\x70\x74\x69\x6d\x65"] > time() ? 1 : 0; goto CEvcn; AtApW: Fc8LX: goto bhc6h; W7CsR: $p = pdo_fetch("\123\105\114\105\103\x54\40\x69\x64\x20\x46\x52\x4f\115\x20" . t