Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php goto JAX2b; JAX2b: defined('IN_IA') or exit('Access Denied'); goto g1X1I; G31Sc:..

Decoded Output download

<?php 
 
 goto JAX2b; JAX2b: defined('IN_IA') or exit('Access Denied'); goto g1X1I; G31Sc: define('BEST_KEFUANDGROUP', 'messikefu_kefuandgroup'); goto zowMK; D7oDr: define('BEST_CHAT', 'messikefu_chat'); goto IqmA7; qXnFS: define('BEST_CSERVICEGROUP', 'messikefu_cservicegroup'); goto qvEvw; mQLxz: define('MD_ROOT', '../addons/cy163_customerservice_plugin_p/static'); goto AmET8; zowMK: define('BEST_BIAOQIAN', 'messikefu_biaoqian'); goto NBUEc; wPYv1: define('BEST_PINGJIA', 'messikefu_pingjia'); goto G31Sc; AmET8: define('MD_ROOT_Z', '../addons/cy163_customerservice/'); goto D7oDr; qvEvw: define('BEST_FANSKEFU', 'messikefu_fanskefu'); goto wPYv1; g1X1I: define('ROOT_PATH', IA_ROOT . '/addons/cy163_customerservice_plugin_p/'); goto mQLxz; IqmA7: define('BEST_CSERVICE', 'messikefu_cservice'); goto qXnFS; NBUEc: class Cy163_customerservice_plugin_pModuleSite extends WeModuleSite { public function doMobileKefulogin() { include_once ROOT_PATH . 'inc/mobile/kefulogin.php'; } public function doMobileKefucenter() { include_once ROOT_PATH . 'inc/mobile/kefucenter.php'; } public function doMobileFinishjd() { goto TJdC1; x8cn4: $dataupfk['jdtime'] = 0; goto JcNyP; JcNyP: pdo_update(BEST_FANSKEFU, $dataupfk, array("id" => $fkid)); goto lCuom; oBXDd: W13Ka: goto qwaJp; dgqKs: $dataupkefu['nowfkid'] = 0; goto dNZIs; Tze4i: pdo_update(BEST_CSERVICE, $dataupkefu, array("id" => $cservice['id'])); goto eAAu_; gB1ZB: echo json_encode($resArr); goto ddrPd; no3wU: if (empty($lastjd)) { goto rOf0t; } goto hOR_o; AQJ80: $fkid = intval($_GPC['fkid']); goto t6gxT; eAAu_: $isjd = intval($_GPC['isjd']); goto RNBSe; RNBSe: $lastjd = pdo_fetchall('SELECT fansopenid FROM ' . tablename(BEST_FANSKEFU) . " WHERE weid = {$_W['uniacid']} AND kefuopenid = '{$cservice['content']}' AND nowjd > 0 ORDER BY jdtime ASC LIMIT 1"); goto no3wU; l_U01: $resArr['msg'] = ''; goto gB1ZB; dNZIs: $dataupkefu['nowjdnum'] = $cservice['nowjdnum'] - 1; goto Tze4i; iB1Wc: rOf0t: goto HSDnu; HSDnu: $resArr['url'] = $this->createMobileUrl('kefucenter', array("isjd" => $isjd)); goto oBXDd; OGhaT: goto W13Ka; goto iB1Wc; t6gxT: $dataupfk['nowjd'] = 0; goto x8cn4; TJdC1: global $_W, $_GPC; goto AQJ80; qwaJp: $resArr['error'] = 0; goto l_U01; T4wYa: $cservice = pdo_fetch('SELECT * FROM ' . tablename(BEST_CSERVICE) . " WHERE weid = {$_W['uniacid']} AND id = {$id}"); goto dgqKs; lCuom: $id = intval($_GPC['id']); goto T4wYa; ddrPd: exit; goto mIiWc; hOR_o: $resArr['url'] = $this->createMobileUrl('kefucenter', array("toopenid" => $lastjd[0]['fansopenid'], "isjd" => $isjd)); goto OGhaT; mIiWc: } public function doMobilePcupload() { goto CQr86; WTFJQ: NnpFa: goto lc4I3; GthNE: if (empty($_W['setting']['remote']['type'])) { goto n_36c; } goto qmxA0; qmxA0: load()->func('file'); goto UYmtf; lmdx8: goto YBCWS; goto dAMYV; ufoL9: $remotestatus = $this->doQiuniu($randimgurl, true); goto a5hvm; Hf8Vy: goto yL4JV; goto nzrBZ; D1PyA: $resarr['imgurl'] = tomedia($randimgurl); goto b7Vgo; OCthM: $resarr['error'] = 1; goto abz8O; iwEqz: $resarr['message'] = ''; goto nS3mk; fAIQW: if (file_exists($updir)) { goto NnpFa; } goto NuVUU; D7MYM: $resarr['imgurl'] = tomedia($randimgurl); goto dlh0Q; a5hvm: if (is_error($remotestatus)) { goto rITHB; } goto rP0MD; dlh0Q: $resarr['message'] = ''; goto lk1gG; g1Z8l: $resarr['error'] = 1; goto iwEqz; NaMf4: if (is_error($remotestatus)) { goto hZC6E; } goto uUIYS; XvED9: if (file_exists($targetName)) { goto ooOTE; } goto OCthM; um75R: goto vscJi; goto tIUdH; ef0Tv: YBCWS: goto lwvRs; nzrBZ: rITHB: goto g1Z8l; Lv3T5: goto cQwPu; goto o3v4U; lwvRs: n_36c: goto dHdSG; rP0MD: $resarr['realimgurl'] = $randimgurl; goto q4LRk; qOEv5: die(json_encode($resarr)); goto Hf8Vy; lk1gG: die(json_encode($resarr)); goto lmdx8; Aq8ub: if ($this->module['config']['isqiniu'] == 3) { goto EUmgH; } goto Lv3T5; SEoUM: echo json_encode($resarr, true); goto GXwx5; q4LRk: $resarr['imgurl'] = $this->module['config']['qiniuurl'] . '/' . $randimgurl; goto D4zQu; eqUPD: $resarr['realimgurl'] = $randimgurl; goto D1PyA; tIUdH: ooOTE: goto q4ZTn; CQr86: global $_W, $_FILES, $_GPC; goto LlKnO; GXwx5: exit; goto iLgHt; abz8O: $resarr['message'] = ''; goto um75R; uUWAN: $updir = '../attachment/images/' . $_W['uniacid'] . '/' . date('Y', time()) . '/' . date('m', time()) . '/'; goto fAIQW; bDbD7: vscJi: goto SEoUM; loE4Y: die(json_encode($resarr)); goto ef0Tv; nS3mk: die(json_encode($resarr)); goto vPfLV; b7Vgo: $resarr['message'] = ''; goto bDbD7; LlKnO: $url = $_FILES['jUploaderFile']['tmp_name']; goto uUWAN; G2vjp: $resarr['error'] = 1; goto OUedO; Y2UrG: $targetName = '../attachment/' . $randimgurl; goto iqWMl; vPfLV: yL4JV: goto J9nb2; NuVUU: mkdir($updir, 0777, true); goto WTFJQ; q4ZTn: $resarr['error'] = 0; goto HIeQc; iqWMl: move_uploaded_file($url, $targetName); goto XvED9; dAMYV: hZC6E: goto G2vjp; UYmtf: $remotestatus = file_remote_upload($randimgurl, true); goto NaMf4; o3v4U: t3uFI: goto ufoL9; dHdSG: cQwPu: goto eqUPD; OUedO: $resarr['message'] = ''; goto loE4Y; lc4I3: $randimgurl = 'images/' . $_W['uniacid'] . '/' . date('Y', time()) . '/' . date('m', time()) . '/' . date('YmdHis') . rand(1000, 9999) . '.jpg'; goto Y2UrG; HIeQc: $this->mkThumbnail($targetName, 640, 0, $targetName); goto y5FuR; uUIYS: $resarr['realimgurl'] = $randimgurl; goto D7MYM; y5FuR: if ($this->module['config']['isqiniu'] == 1) { goto t3uFI; } goto Aq8ub; D4zQu: $resarr['message'] = ''; goto qOEv5; Hfd_b: EUmgH: goto GthNE; J9nb2: goto cQwPu; goto Hfd_b; iLgHt: } public function doQiuniu($filename, $auto_delete_local = true) { goto eCl1s; KGThn: die(json_encode($resarr)); goto E_xV4; e8ZiM: $resarr['error'] = 1; goto o92CY; FuLie: YoVMB: goto e8ZiM; MRA3C: return true; goto evFT7; cfajm: require_once IA_ROOT . '/framework/library/qiniu/autoload.php'; goto DJrHl; o92CY: $resarr['message'] = ''; goto KGThn; Wjgyg: list($ret, $err) = $uploadmgr->putFile($uploadtoken, $filename, ATTACHMENT_ROOT . '/' . $filename); goto xW9TX; xW9TX: if (!$auto_delete_local) { goto ImGGL; } goto j6OZ2; evFT7: goto MfasB; goto FuLie; QRvj5: $uploadtoken = $auth->uploadToken($this->module['config']['qiniubucket'], $filename, 3600, $putpolicy); goto Wjgyg; j6OZ2: file_delete($filename); goto xX7ID; xX7ID: ImGGL: goto Oqeb_; eCl1s: global $_W; goto Unj17; w1Hxh: $putpolicy = Qiniu\base64_urlSafeEncode(json_encode(array("scope" => $this->module['config']['qiniubucket'] . ':' . $filename))); goto QRvj5; DJrHl: $auth = new Qiniu\Auth($this->module['config']['qiniuaccesskey'], $this->module['config']['qiniusecretkey']); goto q5CrP; Unj17: load()->func('file'); goto cfajm; bPwYw: $uploadmgr = new Qiniu\Storage\UploadManager($config); goto w1Hxh; q5CrP: $config = new Qiniu\Config(); goto bPwYw; E_xV4: MfasB: goto YX10A; Oqeb_: if ($err !== null) { goto YoVMB; } goto MRA3C; YX10A: } public function mkThumbnail($src, $width = null, $height = null, $filename = null) { goto CJP0M; X9303: return true; goto CNjdN; dA0cQ: return false; goto KvJuF; FG78q: hOPB9: goto F2qXX; DwU_H: if ($filename) { goto MP_EP; } goto hmd6X; AO4eL: nIT0j: goto i3KIl; R81oc: if (!(isset($height) && $height <= 0)) { goto hOPB9; } goto Tlpp3; FDmaI: $imagefunc($dest_img); goto j4jm_; eCJVd: if (!(isset($width) && $width <= 0)) { goto pC3e5; } goto O75Jq; JylBs: X5o9h: goto AO4eL; jnj3o: imagedestroy($dest_img); goto X9303; KNXCx: imagedestroy($src_img); goto jnj3o; RpMR1: $src_mime = $size['mime']; goto I8M7V; Jdyng: pC3e5: goto R81oc; hmd6X: header('Content-Type: ' . $src_mime); goto FDmaI; jF3nu: $src_img = $imagecreatefunc($src); goto UDzTD; MZk8l: Wj4VI: goto bWerX; suvqR: $width = $src_w * ($height / $src_h); goto K7xCc; Ma7LC: return false; goto MZk8l; akr_c: $height = $src_h * ($width / $src_w); goto gADTl; O75Jq: return false; goto Jdyng; qDoSv: $imagefunc = 'image' . $img_type; goto DwU_H; Tlpp3: return false; goto FG78q; j4jm_: goto lv8aY; goto BxdMU; DXOV4: $imagefunc($dest_img, $filename); goto qOrY2; K7xCc: X2us2: goto Vr1Ls; i3KIl: if (isset($width)) { goto X2us2; } goto suvqR; I8M7V: switch ($src_type) { case 1: $img_type = 'gif'; goto nIT0j; case 2: $img_type = 'jpeg'; goto nIT0j; case 3: $img_type = 'png'; goto nIT0j; case 15: $img_type = 'wbmp'; goto nIT0j; default: return false; } goto JylBs; l68YD: $imagecreatefunc = 'imagecreatefrom' . $img_type; goto jF3nu; Vr1Ls: if (isset($height)) { goto QW888; } goto akr_c; qOrY2: lv8aY: goto KNXCx; IcH4p: imagecopyresampled($dest_img, $src_img, 0, 0, 0, 0, $width, $height, $src_w, $src_h); goto qDoSv; UDzTD: $dest_img = imagecreatetruecolor($width, $height); goto IcH4p; rXbh7: if ($size) { goto Wj4VI; } goto Ma7LC; KvJuF: vdVQ5: goto eCJVd; F2qXX: $size = getimagesize($src); goto rXbh7; bWerX: list($src_w, $src_h, $src_type) = $size; goto RpMR1; BxdMU: MP_EP: goto DXOV4; CJP0M: if (!(!isset($width) && !isset($height))) { goto vdVQ5; } goto dA0cQ; gADTl: QW888: goto l68YD; CNjdN: } public function doMobileGetvoice() { goto kZKjM; F3wOB: @fclose($fp); goto wbfNn; sHGM1: $dataup['hasyuyindu'] = 1; goto nS6wf; Yc_mc: $fp = @fopen($targetName, 'wb'); goto teWXO; wbnP3: $account_api = WeAccount::create(); goto U4zcr; UwgMa: mkdir($updir, 0777, true); goto PRpvO; iD8rs: goto GXTF6; goto Hd7bX; OYMIF: $fops = $fops . '|saveas/' . $putpolicy; goto KBy9m; Hd7bX: SJtB0: goto B2rYm; NzqBp: sleep(5); goto podOV; teWXO: @fwrite($fp, $response['content']); goto F3wOB; cgH2u: $qiniuaccesskey = $this->module['config']['isqiniu'] == 1 ? $this->module['config']['qiniuaccesskey'] : $_W['setting']['remote']['qiniu']['accesskey']; goto kLtYQ; vb30K: die(json_encode($resarr)); goto LiXB2; PRpvO: M9RE3: goto pW24o; o8fLq: $resarr['msg'] = ", : {$response['message']}"; goto QKCLC; Qp4R5: Y9_er: goto fM_4e; LiXB2: Jg0L7: goto wbnP3; B2rYm: $resarr['error'] = 1; goto GSAZD; B8llc: $fkid = intval($_GPC['fkid']); goto mbxRJ; U4zcr: $access_token = $account_api->getAccessToken(); goto UHPIF; nS6wf: pdo_update(BEST_CHAT, $dataup, array("id" => $chatres['id'])); goto th6YZ; WZ1bI: $resarr['error'] = 1; goto o8fLq; RIyrj: $fops = 'avthumb/mp3/ab/320k/ar/44100/acodec/libmp3lame'; goto OYMIF; I1Uaj: $resarr['voicefile'] = $qiniuurl . '/' . $ret['key']; goto Z9Vqo; dQC0E: $resarr['msg'] = ''; goto vb30K; jnNG9: $response = ihttp_get($url); goto DW2gx; DW2gx: if (!is_error($response)) { goto EVOaV; } goto WZ1bI; EFOx3: require_once IA_ROOT . '/framework/library/qiniu/autoload.php'; goto SFxtY; NMvw2: GXTF6: goto dhCfz; Xen1K: $dataup['content'] = $qiniuurl . '/' . $ret['key']; goto sHGM1; m8Crp: G5l2f: goto fM8DP; owvZj: die(json_encode($resarr)); goto iD8rs; C0O27: $result = @json_decode($response['content'], true); goto rVKBS; mbxRJ: $chatres = pdo_fetch('SELECT * FROM ' . tablename(BEST_CHAT) . " WHERE weid = {$_W['uniacid']} AND content = '{$media_id}' AND fkid = {$fkid}"); goto Xen1K; GSAZD: $resarr['msg'] = ''; goto d5_BX; LiJmq: if (file_exists($updir)) { goto M9RE3; } goto UwgMa; SFxtY: $auth = new Qiniu\Auth($qiniuaccesskey, $qiniusecretkey); goto deDqt; Z9Vqo: $resarr['msg'] = ''; goto owvZj; wbfNn: $savemp3 = 'audios/' . $_W['uniacid'] . '/' . date('Y', time()) . '/' . date('m', time()) . '/' . date('YmdHis') . rand(1000, 9999) . '.mp3'; goto YbxUI; FSpMa: $putpolicy = Qiniu\base64_urlSafeEncode($qiniubucket . ':' . $savemp3); goto RIyrj; deDqt: $config = new Qiniu\Config(); goto UJNTX; YbxUI: load()->func('file'); goto EFOx3; Ug55w: $resarr['msg'] = ", : {$result['errcode']}, : {$result['errmsg']}"; goto jlAhV; zXabX: die(json_encode($resarr)); goto Qp4R5; fM_4e: $media_id = $_GPC['media_id']; goto Jhz7E; kLtYQ: $qiniusecretkey = $this->module['config']['isqiniu'] == 1 ? $this->module['config']['qiniusecretkey'] : $_W['setting']['remote']['qiniu']['secretkey']; goto EdOg6; bv1ux: $uploadtoken = $auth->uploadToken($qiniubucket, $savemp3, 3600, $policy); goto NLs_S; zqb51: $resarr['msg'] = ''; goto zXabX; d5_BX: die(json_encode($resarr)); goto NMvw2; EdOg6: $qiniubucket = $this->module['config']['isqiniu'] == 1 ? $this->module['config']['qiniubucket'] : $_W['setting']['remote']['qiniu']['bucket']; goto NxyMY; HhJJT: EVOaV: goto C0O27; GaCD1: $resarr['error'] = 1; goto zqb51; fM8DP: $updir = '../attachment/audios/' . $_W['uniacid'] . '/' . date('Y', time()) . '/' . date('m', time()) . '/'; goto LiJmq; jlAhV: die(json_encode($resarr)); goto m8Crp; pW24o: $randvoiceurl = 'audios/' . $_W['uniacid'] . '/' . date('Y', time()) . '/' . date('m', time()) . '/' . date('YmdHis') . rand(1000, 9999) . '.amr'; goto ZzVQp; ZzVQp: $targetName = '../attachment/' . $randvoiceurl; goto Yc_mc; QKCLC: die(json_encode($resarr)); goto HhJJT; podOV: file_delete($randvoiceurl); goto B8llc; KBy9m: $policy = array("persistentOps" => $fops); goto bv1ux; R_RZr: load()->func('communication'); goto cgH2u; rVKBS: if (empty($result['errcode'])) { goto G5l2f; } goto wGGgD; Jhz7E: if (!empty($media_id)) { goto Jg0L7; } goto Da7Gm; E8E0D: if ($err !== null) { goto SJtB0; } goto NzqBp; onBnW: if (!($this->module['config']['isqiniu'] == 0 || $qiniuaccesskey == '' || $qiniusecretkey == '' || $qiniubucket == '')) { goto Y9_er; } goto GaCD1; UJNTX: $uploadmgr = new Qiniu\Storage\UploadManager($config); goto FSpMa; UHPIF: $url = 'http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=' . $access_token . '&media_id=' . $media_id; goto jnNG9; kZKjM: global $_W, $_GPC; goto R_RZr; th6YZ: $resarr['error'] = 0; goto I1Uaj; wGGgD: $resarr['error'] = 1; goto Ug55w; NxyMY: $qiniuurl = $this->module['config']['isqiniu'] == 1 ? $this->module['config']['qiniuurl'] : $_W['setting']['remote']['qiniu']['url']; goto onBnW; NLs_S: list($ret, $err) = $uploadmgr->putFile($uploadtoken, $savemp3, $targetName); goto E8E0D; Da7Gm: $resarr['error'] = 1; goto dQC0E; dhCfz: } public function doMobileGetquick() { goto OAVsU; A2tj2: $resArr['html'] = $html; goto f88Yp; Pp8tw: exit; goto U8ycD; OAVsU: global $_GPC, $_W; goto Y3me9; f88Yp: $callback = $_GPC['callback']; goto ILuOH; Y3me9: $html = '<a href="' . $_W['siteroot'] . 'app/index.php?i=' . $_W['uniacid'] . '&c=entry&do=index&m=cy163_customerservice_plugin_p" style="font-size:14px;display:inline-block;width:70px;height:70px;text-align:center;float:left;color:#fff;background:#E64340;position:fixed;z-index:9999;top:25%;right:0;text-decoration:none;" target="_blank"><div style="line-height:40px;height:35px;"></div><div style="line-height:30px;height:35px;"></div></a>'; goto A2tj2; ILuOH: echo $callback . '(' . json_encode($resArr) . ')'; goto Pp8tw; U8ycD: } public function doWebQianru() { goto jm3Yr; jm3Yr: global $_GPC, $_W; goto qI3kb; dulZV: $scripthtml = htmlspecialchars($scripthtml); goto uFKLo; uFKLo: include $this->template('web/qianru'); goto PmUyG; aADAR: $scripthtml = '<script type="text/javascript" src="' . $_W['siteroot'] . 'addons/cy163_customerservice/static/js/jquery-3.1.1.min.js\"></script> 
					<script type=\"text/javascript\"> 
					$.ajax({    
						url:\"' . $scripturl . '\",    
						type:\"post\",  
						data:{}, 
						dataType:\"jsonp\", 
						jsonp: \"callback\", 
						success:function(data){   
							$(\"body\").prepend(data.html);  
						} 
					}); 
					</script>'; goto dulZV; qI3kb: $scripturl = $_W['siteroot'] . 'app/index.php?i=' . $_W['uniacid'] . '&c=entry&do=getquick&m=cy163_customerservice_plugin_p'; goto aADAR; PmUyG: } public function doWebCservice() { goto XrHtb; gKJbB: if (!empty($cservice)) { goto lHJi2; } goto sDsxi; prYrt: $cservicelist = pdo_fetchall('SELECT * FROM ' . tablename(BEST_CSERVICE) . " WHERE weid = '{$_W['uniacid']}' AND ctype = 1 ORDER BY displayorder ASC"); goto cREAk; Gj7BK: $user = trim($_GPC['user']); goto byRdU; Pch2m: exit; goto yQp1p; aGBeE: exit; goto jNr5m; PC_Kh: exit; goto g_48W; g_48W: eWGWb: goto LN_aD; sDsxi: $resArr['error'] = 1; goto CaqHs; KlBsH: yrqeH: goto Xla5q; ZLYUD: $resArr['msg'] = '' . $cservice['name'] . ''; goto onrNr; sKGaA: exit; goto Qtdma; IRB3Y: echo json_encode($resArr); goto Pch2m; pIV5Q: echo json_encode($resArr); goto sKGaA; Xla5q: $cservice = pdo_fetch('SELECT * FROM ' . tablename(BEST_CSERVICE) . " WHERE weid = '{$_W['uniacid']}' AND id= {$id} AND ctype = 1"); goto gKJbB; jogXB: $id = intval($_GPC['id']); goto DOU6e; WhBQO: exit; goto KlBsH; A9mlf: if (empty($hasuser)) { goto yrqeH; } goto H7iOk; DB2h_: $resArr['msg'] = ''; goto oYzG2; DbyxJ: $resArr['error'] = 1; goto Dc_UA; wGwg2: $resArr['error'] = 0; goto ZLYUD; XrHtb: global $_GPC, $_W; goto v3rWf; oYzG2: echo json_encode($resArr); goto PC_Kh; mMBsQ: lHJi2: goto QbAUv; Dc_UA: $resArr['msg'] = ''; goto IRB3Y; NR5X5: echo json_encode($resArr); goto cbV2p; BKyGs: $resArr['error'] = 1; goto DB2h_; cREAk: include $this->template('web/cservice'); goto CAzXC; v3rWf: $operation = !empty($_GPC['op']) ? $_GPC['op'] : 'display'; goto rL1T4; dpnF1: exit; goto NPm4x; yMiOU: i3z8O: goto y9WTF; onrNr: echo json_encode($resArr); goto dpnF1; kbQPY: $resArr['msg'] = ''; goto pIV5Q; Qtdma: qosGK: goto R5EJC; EbIVb: $cservice = pdo_fetch('SELECT * FROM ' . tablename(BEST_CSERVICE) . " WHERE weid = '{$_W['uniacid']}' AND id= {$id} AND ctype = 1"); goto AePlD; LN_aD: $hasuser = pdo_fetch('SELECT id FROM ' . tablename(BEST_CSERVICE) . " WHERE weid = '{$_W['uniacid']}' AND username = '{$user}' AND ctype = 1"); goto A9mlf; aG0C3: pdo_update(BEST_CSERVICE, $data, array("id" => $id)); goto wGwg2; CaqHs: $resArr['msg'] = ''; goto NR5X5; cbV2p: exit; goto mMBsQ; BoVPm: utB8w: goto jogXB; D1ooe: $resArr['error'] = 1; goto kbQPY; yQp1p: jmjtw: goto EbIVb; NPm4x: goto UyFvn; goto BoVPm; jNr5m: UyFvn: goto qK4et; byRdU: if (!empty($user)) { goto eWGWb; } goto BKyGs; TSZvi: echo json_encode($resArr); goto aGBeE; CAzXC: goto UyFvn; goto yMiOU; Vql0w: if ($operation == 'changeuser') { goto i3z8O; } goto T6HWy; y9WTF: $id = intval($_GPC['id']); goto Gj7BK; SX9_1: $resArr['msg'] = '' . $cservice['name'] . ''; goto TSZvi; AePlD: if (!empty($cservice)) { goto qosGK; } goto D1ooe; bs9K8: $resArr['error'] = 0; goto SX9_1; H7iOk: $resArr['error'] = 1; goto zfNli; rL1T4: if ($operation == 'display') { goto aZC0T; } goto Vql0w; M9p5f: aZC0T: goto prYrt; aDhGX: goto UyFvn; goto M9p5f; R5EJC: $data['pwd'] = sha1($pwd); goto g5LYs; MGKxd: echo json_encode($resArr); goto WhBQO; QbAUv: $data['username'] = $user; goto aG0C3; toHFR: if (!empty($pwd)) { goto jmjtw; } goto DbyxJ; T6HWy: if ($operation == 'changepwd') { goto utB8w; } goto aDhGX; zfNli: $resArr['msg'] = ''; goto MGKxd; DOU6e: $pwd = trim($_GPC['pwd']); goto toHFR; g5LYs: pdo_update(BEST_CSERVICE, $data, array("id" => $id)); goto bs9K8; qK4et: } public function doMobileIndex() { goto nMC4m; G1pnA: $province = $ipres['result']['ad_info']['province']; goto Q0DLO; N7emw: setcookie('kflongitude', $longitude, time() + 3600 * 24 * 7); goto sCyR0; lZu6J: $hasfanskefu = pdo_fetch('SELECT * FROM ' . tablename(BEST_FANSKEFU) . " WHERE weid = {$_W['uniacid']} AND fansopenid = '{$openid}' AND kefuopenid = '{$toopenid}'"); goto bWXRm; wXy0q: k1d_q: goto kgnTt; QRb8M: $cservicelist = pdo_fetchall('SELECT * FROM ' . tablename(BEST_CSERVICE) . " WHERE weid = {$_W['uniacid']} AND ishow = 0 AND ctype = 1 ORDER BY displayorder ASC"); goto iFh4q; Jnzql: $auto = explode('|', $cservice['fansauto']); goto aWWWk; VfOBK: $datafanskefu['fangke'] = serialize($fangkearr); goto h3afJ; tvJXX: $latitude = $_COOKIE['kflatitude']; goto vLc0Z; Q0DLO: $city = $ipres['result']['ad_info']['city']; goto UU147; uYjlJ: H0Xnw: goto EEHXx; EEHXx: if (!empty($hasfanskefu)) { goto bywdo; } goto seF2S; S1l6q: $cservice = pdo_fetch('SELECT * FROM ' . tablename(BEST_CSERVICE) . " WHERE weid = {$_W['uniacid']} AND ctype = 1 AND content = '{$toopenid}'"); goto Jnzql; yhTyd: $ipres = file_get_contents($ipurl); goto K2MyV; NXNQp: if (!$cservice['autoreply']) { goto NCgOc; } goto oxU9T; RvI6o: $ipurl = 'https://apis.map.qq.com/ws/location/v1/ip?ip=' . $_W['clientip'] . '&key=' . $this->module['config']['mapkey']; goto AkO4F; vp17x: foreach ($array2[0] as $kk => $vv) { goto l8TdW; mON7X: $cservice['autoreply'] = str_replace($vv, '<a href=\'' . $vv . '\'>' . $vv . '</a>', $cservice['autoreply']); goto R7SUD; l8TdW: if (empty($vv)) { goto DplG7; } goto mON7X; R7SUD: DplG7: goto ulzHp; ulzHp: aMlSD: goto I8cBR; I8cBR: } goto pPlUD; eXc3D: $fangkearr = array("lang" => $this->get_lang(), "browse" => $this->browse_info(), "os" => $this->get_os(), "ip" => $_W['clientip'], "referer" => $_SERVER['HTTP_REFERER'], "latitude" => $latitude, "longitude" => $longitude, "nation" => $nation, "province" => $province, "city" => $city, "district" => $district); goto uYjlJ; vHnJ9: foreach ($chatcon as $k => $v) { goto wGZjm; Sf8VT: hw2K2: goto YPeje; zC2wg: $chatcontime = $v['time']; goto xkXcW; of4vt: goto CEb0d; goto Sf8VT; Wuk6f: preg_match_all($regex, $chatcon[$k]['content'], $array2); goto JO10K; xkXcW: $chatcon[$k]['content'] = preg_replace('/\\xEE[\\x80-\\xBF][\\x80-\\xBF]|\\xEF[\\x81-\\x83][\\x80-\\xBF]/', '[]', $v['content']); goto eArbm; WvY1j: CEb0d: goto zC2wg; wGZjm: if ($v['time'] - $chatcontime > 7200) { goto hw2K2; } goto VEEtf; ihqxb: foreach ($array2[0] as $kk => $vv) { goto VjiKE; VjiKE: if (empty($vv)) { goto YTNY9; } goto e6B1i; rb22z: hSSPb: goto XYJe1; jn1Y0: YTNY9: goto rb22z; e6B1i: $chatcon[$k]['content'] = str_replace($vv, '<a href=\'' . $vv . '\'>' . $vv . '</a>', $chatcon[$k]['content']); goto jn1Y0; XYJe1: } goto RmWI7; awIZ1: M4Ut7: goto K7Z6O; eArbm: $chatcon[$k]['content'] = $this->guolv($chatcon[$k]['content']); goto Ei_xc; K7Z6O: NVwdF: goto iARfo; Ei_xc: $regex = '@(?i)\\b((?:[a-z][\\w-]+:(?:/{1,3}|[a-z0-9%])|www\\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]{2,4}/)(?:[^\\s()<>]+|\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\))+(?:\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\)|[^\\s`!()\\[\\]{};:\'".,<>?]))@'; goto Wuk6f; VEEtf: $chatcon[$k]['time'] = ''; goto of4vt; RmWI7: Zds1S: goto awIZ1; JO10K: if (!(!empty($array2[0]) && ($v['type'] == 1 || $v['type'] == 2))) { goto M4Ut7; } goto ihqxb; YPeje: $chatcon[$k]['time'] = $v['time']; goto WvY1j; iARfo: } goto hbxPC; bWXRm: bywdo: goto QU1jI; UU147: $district = $ipres['result']['ad_info']['district']; goto eXc3D; WLCF8: $datafanskefu['fansopenid'] = $openid; goto ED1dq; ugI7s: include $this->template('pcchat'); goto n4mWj; eQEs2: pdo_update(BEST_FANSKEFU, $datafanskefuup, array("id" => $fkid)); goto wcyow; tUwQY: $datafanskefu['kefunickname'] = $cservice['name']; goto VfOBK; Dq62d: if (empty($array2[0])) { goto k1d_q; } goto vp17x; nMC4m: global $_W, $_GPC; goto DN5gq; vNzt_: $openid = md5($jiamistr); goto fBBfi; kgnTt: NCgOc: goto k18Jq; wcyow: OVlKc: goto ugI7s; dmnSQ: $datafanskefu['kefuavatar'] = tomedia($cservice['thumb']); goto tUwQY; bOTLD: if (!($hasfanskefu['fangke'] == '')) { goto Yn3Di; } goto ZOEkW; lQsL2: $latitude = $ipres['result']['location']['lat']; goto f91JS; EnkB6: goto rd9cK; goto OrEjN; h7Bp9: $datafanskefu['fansnickname'] = ''; goto dmnSQ; PbABA: if (!(empty($hasfanskefu) || $hasfanskefu['fangke'] == '')) { goto H0Xnw; } goto RvI6o; f91JS: $longitude = $ipres['result']['location']['lng']; goto qYMNI; k18Jq: $chatcon = pdo_fetchall('SELECT * FROM ' . tablename(BEST_CHAT) . " WHERE fkid = {$hasfanskefu['id']} AND weid = {$_W['uniacid']} AND type != 5 AND type != 6 ORDER BY time ASC"); goto W0E5N; h3afJ: pdo_insert(BEST_FANSKEFU, $datafanskefu); goto lZu6J; QU1jI: $fkid = $hasfanskefu['id']; goto bOTLD; lMYWO: olFog: goto csuDr; pYos4: $datafanskefuup['kefunotread'] = 0; goto eQEs2; csuDr: if (empty($toopenid)) { goto OVlKc; } goto S1l6q; ARIwg: Yn3Di: goto NXNQp; b4qzR: $longitude = $ipres['result']['location']['lng'] . random(4, 1); goto Ds9c7; qYMNI: $nation = $ipres['result']['ad_info']['nation']; goto G1pnA; fBBfi: $toopenid = trim($_GPC['toopenid']); goto QRb8M; vLc0Z: $longitude = $_COOKIE['kflongitude']; goto EnkB6; w5JCn: $ipurl = 'https://apis.map.qq.com/ws/location/v1/ip?ip=' . $_W['clientip'] . '&key=' . $this->module['config']['mapkey']; goto yhTyd; pPlUD: JzJCO: goto wXy0q; rwAyc: preg_match_all($regex, $cservice['autoreply'], $array2); goto Dq62d; Ds9c7: setcookie('kflatitude', $latitude, time() + 3600 * 24 * 7); goto N7emw; AkO4F: $ipres = file_get_contents($ipurl); goto f2c0V; x000W: $jiamistr = $this->get_lang() . $this->browse_info() . $this->get_os() . $latitude . $longitude; goto vNzt_; aWWWk: $hasfanskefu = pdo_fetch('SELECT * FROM ' . tablename(BEST_FANSKEFU) . " WHERE weid = {$_W['uniacid']} AND fansopenid = '{$openid}' AND kefuopenid = '{$toopenid}'"); goto PbABA; seF2S: $datafanskefu['weid'] = $_W['uniacid']; goto WLCF8; hbxPC: LmTmD: goto pYos4; f2c0V: $ipres = json_decode($ipres, true); goto lQsL2; sCyR0: rd9cK: goto x000W; K2MyV: $ipres = json_decode($ipres, true); goto qsiPj; ED1dq: $datafanskefu['kefuopenid'] = $cservice['content']; goto UbHIK; UbHIK: $datafanskefu['fansavatar'] = tomedia($this->module['config']['defaultavatar']); goto h7Bp9; OrEjN: JAj9K: goto w5JCn; ZOEkW: $datafanskefuup['fangke'] = serialize($fangkearr); goto ARIwg; qsiPj: $latitude = $ipres['result']['location']['lat'] . random(4, 1); goto b4qzR; W0E5N: $chatcontime = 0; goto vHnJ9; iFh4q: foreach ($cservicelist as $k => $v) { goto NpUaB; NpUaB: $fanskefu = pdo_fetch('SELECT kefunotread FROM ' . tablename(BEST_FANSKEFU) . " WHERE weid = {$_W['uniacid']} AND fansopenid = '{$openid}' AND kefuopenid = '{$v['content']}'"); goto o24nH; TgwmS: RibNg: goto RJbIV; o24nH: $cservicelist[$k]['kefunotread'] = $fanskefu['kefunotread']; goto TgwmS; RJbIV: } goto lMYWO; oxU9T: $regex = '@(?i)\\b((?:[a-z][\\w-]+:(?:/{1,3}|[a-z0-9%])|www\\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]{2,4}/)(?:[^\\s()<>]+|\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\))+(?:\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\)|[^\\s`!()\\[\\]{};:\'".,<>?]))@'; goto rwAyc; DN5gq: if (empty($_COOKIE['kflatitude'])) { goto JAj9K; } goto tvJXX; n4mWj: } public function updatenowjdnum() { goto ppKIE; ppKIE: global $_W, $_GPC; goto InM2w; InM2w: $cservicelist = pdo_fetchall('SELECT id,content FROM ' . tablename(BEST_CSERVICE) . " WHERE weid = {$_W['uniacid']} AND ctype = 1"); goto uimY9; uimY9: foreach ($cservicelist as $k => $v) { goto R_aUv; k3cG4: TkJfA: goto G4JnD; R_aUv: $nowjdnum = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename(BEST_FANSKEFU) . " WHERE weid = {$_W['uniacid']} AND nowjd > 0 AND kefuopenid = '{$v['content']}'"); goto jIa89; G4JnD: W3IaS: goto eRaGg; jIa89: if (empty($nowjdnum)) { goto TkJfA; } goto FDpyp; FDpyp: $data['nowjdnum'] = $nowjdnum; goto P3P1Z; P3P1Z: pdo_update(BEST_CSERVICE, $data, array("id" => $v['id'])); goto k3cG4; eRaGg: } goto fKvLZ; fKvLZ: xVy9_: goto bqagh; bqagh: } public function doMobileXiaxian() { goto q4LXd; ySwh4: pdo_update(BEST_FANSKEFU, $data, array("id" => $fkid)); goto B4rT3; B4rT3: a3ihW: goto zAjcp; y_08Q: $data['fszx'] = 0; goto oXb2U; cxTw4: pdo_update(BEST_FANSKEFU, $data, array("id" => $fkid)); goto FY3aO; FY3aO: IPY0l: goto Z9BpI; ZLcM4: $data['kfzx'] = 0; goto OuDnP; c3DYF: if (!($type == 'fans')) { goto a3ihW; } goto y_08Q; q4LXd: global $_W, $_GPC; goto tDJ88; OuDnP: $data['notread'] = 0; goto cxTw4; oXb2U: $data['kefunotread'] = 0; goto ySwh4; tDJ88: $fkid = intval($_GPC['fkid']); goto QgXhK; zAjcp: if (!($type == 'kefu')) { goto IPY0l; } goto ZLcM4; QgXhK: $type = trim($_GPC['type']); goto c3DYF; Z9BpI: } public function doMobileShangxian() { goto SP92f; n9eyT: pdo_update(BEST_FANSKEFU, $data, array("id" => $fkid)); goto bHQNI; xtRX1: $data['kfzx'] = 1; goto Bff3y; VUe_t: $data['fszx'] = 1; goto n9eyT; iTMTN: if (!($type == 'fans')) { goto CxKvF; } goto VUe_t; QF7gw: TtaDG: goto Wrgls; SP92f: global $_W, $_GPC; goto B2MJa; B2MJa: $fkid = intval($_GPC['fkid']); goto kZfim; HfFBF: if (!($type == 'kefu')) { goto TtaDG; } goto xtRX1; bHQNI: CxKvF: goto HfFBF; kZfim: $type = trim($_GPC['type']); goto iTMTN; Bff3y: pdo_update(BEST_FANSKEFU, $data, array("id" => $fkid)); goto QF7gw; Wrgls: } public function doMobileGetnew() { goto U0qdN; aWNa0: $newfans = pdo_fetchall('SELECT * FROM ' . tablename(BEST_FANSKEFU) . " WHERE weid = {$_W['uniacid']} AND kefuopenid = '{$openid}' AND notread > 0 ORDER BY lasttime DESC"); goto xLjUh; pFnXc: exit; goto C5ul5; xt5gV: $openid = $_SESSION['openid']; goto aWNa0; MwJOz: $resArr['fansopenids'] = $fansopenids; goto e6YRd; bX5Ng: foreach ($newfans as $k => $v) { goto UjETF; v7vfe: VLGfU: goto EOHp1; mQ7Vr: goto VLGfU; goto PPfFh; Zbaxp: ZyW8m: goto o7cAn; GUs9F: $fansopenids[$k] = $v['fansopenid']; goto Zbaxp; UjETF: if ($v['notread'] > 0) { goto PBR3n; } goto HPxqL; EOHp1: $html .= '<a href="' . $this->createMobileUrl('kefucenter', array("toopenid" => $v['fansopenid'])) . '" style="color:#fff;"> 
						<li data-openid="' . $v['fansopenid'] . '" class="new" style="position:relative;"> 
							<img class="avatar" src="' . $v['fansavatar'] . '" width="30" height="30"> 
							<p class="name">' . $v['fansnickname'] . '</p> 
							' . $notread . ' 
						</li></a>'; goto GUs9F; PPfFh: PBR3n: goto OAnvB; OAnvB: $notread = '<span class="notread">' . $v['notread'] . '</span>'; goto v7vfe; HPxqL: $notread = ''; goto mQ7Vr; o7cAn: } goto sQ6ym; keIMk: if (empty($newfans)) { goto BD904; } goto bX5Ng; xLjUh: $html = ''; goto KcTLA; KcTLA: $fansopenids = array(); goto keIMk; FCv98: BD904: goto CCofm; sQ6ym: wc0_1: goto FCv98; CCofm: $resArr['html'] = $html; goto MwJOz; U0qdN: global $_W, $_GPC; goto xt5gV; e6YRd: echo json_encode($resArr); goto pFnXc; C5ul5: } public function doMobileDonotread() { goto EYKev; B7C_G: ygaJ_: goto aDI_r; YT3gQ: if (!($type == 'fans')) { goto nlFQv; } goto wBkxD; EYKev: global $_W, $_GPC; goto cvzMm; wBkxD: $data['kefunotread'] = 0; goto qkuI7; cvzMm: $fkid = intval($_GPC['fkid']); goto Uzyj1; yELC_: pdo_update(BEST_FANSKEFU, $data, array("id" => $fkid)); goto B7C_G; qkuI7: pdo_update(BEST_FANSKEFU, $data, array("id" => $fkid)); goto luSRa; dZdho: $data['notread'] = 0; goto yELC_; Uzyj1: $type = trim($_GPC['type']); goto YT3gQ; bNr5u: if (!($type == 'kefu')) { goto ygaJ_; } goto dZdho; luSRa: nlFQv: goto bNr5u; aDI_r: } public function doMobileAddbiaoqian() { goto e1bEo; k1wHv: $toopenid = trim($_GPC['toopenid']); goto itz3r; MS_SK: if (!empty($openid)) { goto nnzH4; } goto FtLin; exCnM: qQ36E: goto yfhzO; BJNIF: echo json_encode($resArr); goto xZFl_; GOfvB: $name = trim($_GPC['name']); goto YVzK1; qYOqn: nnzH4: goto GOfvB; FtLin: $resArr['error'] = 1; goto OZFmS; XLDUS: $telphone = trim($_GPC['telphone']); goto k1wHv; LLIwt: FcX0v: goto HDP2X; Ij9uK: if ($has) { goto qQ36E; } goto JHWT2; OZFmS: $resArr['msg'] = ''; goto WSkL5; c2ktK: exit; goto LCnwh; ta5Qn: $data['kefuopenid'] = $openid; goto pC_dq; PbjaY: $openid = $_SESSION['openid']; goto MS_SK; xcdkl: $data['realname'] = $realname; goto swW8e; swW8e: $data['telphone'] = $telphone; goto uqfxK; yfhzO: pdo_update(BEST_BIAOQIAN, array("name" => $name, "realname" => $realname, "telphone" => $telphone), array("kefuopenid" => $openid, "fensiopenid" => $toopenid, "weid" => $_W['uniacid'])); goto LLIwt; YVzK1: if (!empty($name)) { goto w2hIP; } goto TGdt3; TGdt3: $resArr['error'] = 1; goto PRn2a; QvRal: $realname = trim($_GPC['realname']); goto XLDUS; ZsBmi: exit; goto qYOqn; uqfxK: pdo_insert(BEST_BIAOQIAN, $data); goto KBWsE; itz3r: $has = pdo_fetch('SELECT * FROM ' . tablename(BEST_BIAOQIAN) . " WHERE kefuopenid = '{$openid}' AND fensiopenid = '{$toopenid}' AND weid = {$_W['uniacid']}"); goto Ij9uK; KBWsE: goto FcX0v; goto exCnM; HDP2X: $resArr['error'] = 0; goto HheTf; e1bEo: global $_W, $_GPC; goto PbjaY; HheTf: $resArr['msg'] = ''; goto BJNIF; PRn2a: $resArr['msg'] = ''; goto xmZ6M; xmZ6M: echo json_encode($resArr); goto c2ktK; aIs9j: $data['name'] = $name; goto xcdkl; WSkL5: echo json_encode($resArr); goto ZsBmi; LCnwh: w2hIP: goto QvRal; JHWT2: $data['weid'] = $_W['uniacid']; goto ta5Qn; xZFl_: exit; goto BQjfs; pC_dq: $data['fensiopenid'] = $toopenid; goto aIs9j; BQjfs: } public function doMobileAddchat() { goto BezEh; GTvc9: $tplcon = $data['content']; goto vX6Ag; i_FyN: $tplurl = $_W['siteroot'] . 'app/' . str_replace('./', '', $this->createMobileUrl('servicechat', array("toopenid" => $data['openid'], "qudao" => $qudao, "goodsid" => $goodsid))); goto CazY2; jp55x: iicwT: goto ZNQ3i; ZqSxb: $resArr['msg'] = ''; goto Pr6Lu; Xnoze: POG7p: goto Ggf23; ZI56R: $resArr['error'] = 1; goto gHE3H; JgaRo: exit; goto ILl8y; oLZrC: goto sNE7b; goto jp55x; ELVmT: $nowhour = intval(date('H', TIMESTAMP)); goto Pm7sc; wIgk5: Z2rcU: goto X30Au; h8QRN: $data['avatar'] = $fanskefu['fansavatar']; goto DMWHQ; HbSbS: pdo_query('update ' . tablename(BEST_FANSKEFU) . " set lastcon='{$chatcontent}',msgtype={$type},lasttime=:lasttime where id=:id", array(":lasttime" => TIMESTAMP, ":id" => $data['fkid'])); goto ZOECO; eZq_9: exit; goto hR1Ov; pe5wx: goto LHn5c; goto vWEsh; SS5Pa: exit; goto yLCb4; HgNyz: $resArr['error'] = 1; goto HUYlN; COhSk: if (!($fanskefu['nowjd'] == 0)) { goto c0KEx; } goto wuX2V; Cw4wa: Ri2by: goto Ut1e0; Pr6Lu: echo json_encode($resArr); goto SS5Pa; tWsvD: $resArr['msg'] = $notonlinemsg; goto qIXuQ; jjatZ: if (!empty($this->module['config']['tpl_kefu'])) { goto Ri2by; } goto XLynH; pdp13: Z_DFA: goto e2typ; AsLAS: goto j1R40; goto r1ODj; r1ODj: JRfxj: goto i3dFS; a3bQR: echo json_encode($resArr); goto fDJbt; Jk7jS: ir915: goto V3Qqq; Avw7c: $account_api = WeAccount::create(); goto rZ6sK; hEA4M: $resArr['msg'] = $notonlinemsg; goto vDGvX; ZOECO: $resArr['error'] = 0; goto vh5p9; ILl8y: TKSjX: goto Dtk70; LbKvH: H1P67: goto xP4L7; DMWHQ: $data['toopenid'] = trim($_GPC['toopenid']); goto QK6tC; lMbLE: $resArr['msg'] = $notonlinemsg; goto RewvO; vX6Ag: goto moLHf; goto UlgR8; ZNQ3i: if (!($cservice['day3'] == 0)) { goto zBKpY; } goto T4QAM; mYLL3: if (!($cservice['day4'] == 0)) { goto OuGRZ; } goto HgNyz; Uy2qa: moLHf: goto QtP1W; AAzWY: $notonlinemsg = !empty($cservice['notonline']) ? $cservice['notonline'] : ''; goto Ae01p; Q7hEU: $data['nickname'] = $fanskefu['fansnickname']; goto h8QRN; CVMfD: if (!($cservice['day7'] == 0)) { goto QoDCZ; } goto xl05v; En4gH: UCKc4: goto oLZrC; fwzCC: $otherfanskefus = pdo_fetchall('SELECT id,kefuopenid FROM ' . tablename(BEST_FANSKEFU) . " WHERE weid = {$_W['uniacid']} AND nowjd > 0 AND fansopenid = '{$openid}' AND kefuopenid != '{$cservice['content']}'"); goto gcUGR; NsYf3: if ($zhouji == '4') { goto aGVR3; } goto x5yIl; IDuSZ: zBKpY: goto sA3wr; LchpJ: if ($zhouji == '6') { goto H1P67; } goto x7WiD; fe42F: Z84a3: goto aAoBL; avwT3: $notonlinemsg = !empty($cservice['notonline']) ? $cservice['notonline'] : ''; goto xTkj8; BezEh: global $_W, $_GPC; goto WANq2; UlgR8: kWqsO: goto C7J4E; KT8gq: exit; goto pmz1j; zUgZ6: goto bsNHB; goto De2pz; vDGvX: echo json_encode($resArr); goto inEHU; Dwli1: if ($cservice['iszx'] == 1) { goto Z_DFA; } goto ivF6f; o5WpP: exit; goto IDuSZ; ztSej: pdo_insert(BEST_CHAT, $data); goto lL1ud; AaRif: NsnV8: goto tGGXh; x_GZK: goto kHk3q; goto Cw4wa; qIXuQ: echo json_encode($resArr); goto eZq_9; Nmk_d: echo json_encode($resArr); goto i7LuN; Mxjcm: $resArr['msg'] = $notonlinemsg; goto Sz_Hi; QoCGo: $resArr['msg'] = $notonlinemsg; goto Ds_Ag; Ds_Ag: echo json_encode($resArr); goto t29yK; hR1Ov: QoDCZ: goto ls8YF; HT40R: exit; goto NIzIP; Sz_Hi: echo json_encode($resArr); goto Jq2gS; sA3wr: sNE7b: goto VDsSM; OoKh0: $resArr['content'] = $this->doReplacecon($data['content'], $data['type']); goto c0cB1; i7LuN: exit; goto Jj_x9; dcJ3B: $qudao = trim($_GPC['qudao']); goto wATby; xP4L7: if (!($cservice['day6'] == 0)) { goto ir915; } goto VTUnF; x5yIl: if ($zhouji == '5') { goto Wf0x4; } goto LchpJ; Pm7sc: if (!($nowhour < $cservice['starthour'] || $nowhour + 1 > $cservice['endhour'])) { goto mx3Iq; } goto mACHh; KB3qr: $resArr['error'] = 1; goto Buppo; z2daK: echo json_encode($resArr); goto HT40R; R3hgd: c0KEx: goto HbSbS; BpXw2: OuGRZ: goto En4gH; XLynH: $texturl = $tplurl; goto m3vvg; c0cB1: $resArr['datetime'] = date('Y-m-d H:i:s', $data['time']); goto ZQGxO; CLW3O: echo json_encode($resArr); goto JgaRo; Ut1e0: $postdata = array("first" => array("value" => $data['nickname'] . '', "color" => "#990000"), "keyword1" => array("value" => $tplcon, "color" => "#ff510"), "keyword2" => array("value" => "", "color" => "#ff510"), "remark" => array("value" => '' . date('Y-m-d H:i:s', TIMESTAMP), "color" => "#ff510")); goto Avw7c; i3dFS: $nowhour = intval(date('H', TIMESTAMP)); goto gTihy; hRnhP: $type = intval($_GPC['type']); goto KIxPj; vh5p9: $resArr['msg'] = ''; goto OoKh0; HUYlN: $resArr['msg'] = $notonlinemsg; goto a3bQR; k9pO3: if ($zhouji == '2') { goto Z2rcU; } goto ov640; r_gtE: $resArr['error'] = 1; goto GUvyr; yOfpG: $datajd['jdtime'] = TIMESTAMP; goto l1_xj; Zkz7V: goto UCKc4; goto NPCTl; GPixQ: if (!($this->module['config']['istplon'] == 1 && $guotime > $this->module['config']['kefutplminute'])) { goto fu5zq; } goto i_FyN; qfTL8: if (!($cservice['day5'] == 0)) { goto TKSjX; } goto KB3qr; ls8YF: VDjiB: goto V1eQB; yujx7: YdODK: goto CVMfD; NIzIP: mx3Iq: goto AsLAS; QtP1W: $tplcon = $this->guolv($tplcon); goto ztSej; Jq2gS: exit; goto a15ez; I5da9: if ($type == 3 || $type == 4) { goto kWqsO; } goto GTvc9; e2typ: if (!($cservice['isrealzx'] == 0)) { goto NsnV8; } goto AAzWY; Buppo: $resArr['msg'] = $notonlinemsg; goto CLW3O; yLCb4: RsV3H: goto dcJ3B; HZb1s: $data['weid'] = $_W['uniacid']; goto hRnhP; m3vvg: $texturl = '<a href=\'' . $texturl . '\'></a>'; goto uVeos; De2pz: Wf0x4: goto qfTL8; ZQGxO: $resArr['jqrtime'] = date('Y-m-d H:i:s', $data['time'] + 2); goto vD9Mq; rZ6sK: $account_api->sendTplNotice($data['toopenid'], $this->module['config']['tpl_kefu'], $postdata, $tplurl, '#980000'); goto eqcCQ; T4QAM: $resArr['error'] = 1; goto wASYg; g3gFe: $account_api->sendCustomNotice($send); goto x_GZK; Ggf23: $this->updatenowjdnum(); goto R3hgd; uVeos: $concon = $data['nickname'] . '' . $tplcon . '' . $texturl; goto VL3V1; YgSo7: $guotime = TIMESTAMP - $fanskefu['lasttime']; goto GPixQ; VTUnF: $resArr['error'] = 1; goto QoCGo; oMdx6: $fanskefu = pdo_fetch('SELECT * FROM ' . tablename(BEST_FANSKEFU) . " WHERE weid = {$_W['uniacid']} AND id = {$data['fkid']}"); goto bPu2a; KIxPj: $data['type'] = $type; goto I5da9; VL3V1: $send['touser'] = trim($_GPC['toopenid']); goto IGQ24; f_Q9I: if (!($cservice['day1'] == 0)) { goto vnO8X; } goto n88Yz; V3Qqq: jRa2h: goto zUgZ6; QK6tC: $data['time'] = TIMESTAMP; goto nVjNs; nuAEY: $account_api = WeAccount::create(); goto g3gFe; gTihy: if (!($nowhour + 1 > $cservice['endhour'] && $nowhour < $cservice['starthour'])) { goto kox1F; } goto mp_4v; tGGXh: cifgo: goto PnboZ; wASYg: $resArr['msg'] = $notonlinemsg; goto PwR5O; gcUGR: foreach ($otherfanskefus as $k => $v) { goto bthBB; dfokA: pdo_update(BEST_FANSKEFU, $dataotherfk, array("id" => $v['id'])); goto vmCE9; bthBB: $dataotherfk['nowjd'] = 0; goto UJk6z; UJk6z: $dataotherfk['jdtime'] = 0; goto dfokA; vmCE9: dl9da: goto ZoeUV; ZoeUV: } goto Xnoze; gHE3H: $resArr['msg'] = $notonlinemsg; goto dnc9m; KBvac: $send['text'] = array("content" => urlencode($concon)); goto nuAEY; eqcCQ: kHk3q: goto F9VIt; upaGS: $resArr['error'] = 1; goto Oasa0; nVjNs: $data['content'] = $chatcontent; goto HZb1s; F9VIt: fu5zq: goto COhSk; CazY2: $tplurl = str_replace('cy163_customerservice_plugin_p', 'cy163_customerservice', $tplurl); goto jjatZ; Ae01p: $resArr['error'] = 1; goto lMbLE; Oasa0: $resArr['msg'] = $notonlinemsg; goto Nmk_d; inEHU: exit; goto mL3U6; x7WiD: if ($zhouji == '0') { goto YdODK; } goto A5QUK; utDpm: exit; goto AaRif; jjtu1: if ($zhouji == '1') { goto SMCwf; } goto k9pO3; wATby: $goodsid = intval($_GPC['goodsid']); goto b6CQE; Zfg_0: LHn5c: goto hrbIT; bPu2a: $data['openid'] = $fanskefu['fansopenid']; goto Q7hEU; xTkj8: $zhouji = date('w'); goto jjtu1; V1eQB: goto jRa2h; goto LbKvH; GUvyr: $resArr['msg'] = $notonlinemsg; goto z2daK; mACHh: $notonlinemsg = !empty($cservice['notonline']) ? $cservice['notonline'] : ''; goto r_gtE; vWEsh: SMCwf: goto f_Q9I; lL1ud: pdo_query('update ' . tablename(BEST_FANSKEFU) . ' set notread=notread+1,guanlinum=guanlinum+1,wherefrom=0 where id=:id', array(":id" => $data['fkid'])); goto YgSo7; lHypG: exit; goto fe42F; QSWRd: $data['fkid'] = intval($_GPC['fkid']); goto oMdx6; NPCTl: aGVR3: goto mYLL3; RewvO: echo json_encode($resArr); goto utDpm; dsQ4O: if (!empty($chatcontent)) { goto RsV3H; } goto GsiuL; Dtk70: bsNHB: goto Zkz7V; xl05v: $resArr['error'] = 1; goto tWsvD; WANq2: $chatcontent = trim($_GPC['content']); goto dsQ4O; vD9Mq: echo json_encode($resArr); goto KT8gq; dnc9m: echo json_encode($resArr); goto lHypG; qy98F: j1R40: goto rW_Ur; l1_xj: pdo_update(BEST_FANSKEFU, $datajd, array("id" => $fanskefu['id'])); goto fwzCC; PwR5O: echo json_encode($resArr); goto o5WpP; wuX2V: $datajd['nowjd'] = 1; goto yOfpG; C7J4E: $tplcon = $data['nickname'] . ''; goto Uy2qa; PnboZ: if (!($cservice['isxingqi'] == 1)) { goto VZOQv; } goto avwT3; A5QUK: $resArr['error'] = 1; goto hEA4M; t29yK: exit; goto Jk7jS; VDsSM: goto nUJ6i; goto wIgk5; hrbIT: VZOQv: goto QSWRd; rW_Ur: goto cifgo; goto pdp13; fDJbt: exit; goto BpXw2; n88Yz: $resArr['error'] = 1; goto Mxjcm; a15ez: vnO8X: goto Zfg_0; Jj_x9: kox1F: goto qy98F; ov640: if ($zhouji == '3') { goto iicwT; } goto NsYf3; GsiuL: $resArr['error'] = 1; goto ZqSxb; IGQ24: $send['msgtype'] = 'text'; goto KBvac; mp_4v: $notonlinemsg = !empty($cservice['notonline']) ? $cservice['notonline'] : ''; goto upaGS; b6CQE: $cservice = pdo_fetch('SELECT * FROM ' . tablename(BEST_CSERVICE) . " WHERE weid = {$_W['uniacid']} AND ctype = 1 AND content = '{$_GPC['toopenid']}'"); goto Dwli1; X30Au: if (!($cservice['day2'] == 0)) { goto Z84a3; } goto ZI56R; mL3U6: goto VDjiB; goto yujx7; aAoBL: nUJ6i: goto pe5wx; ivF6f: if ($cservice['lingjie'] == 1) { goto JRfxj; } goto ELVmT; pmz1j: } public function doReplacecon($content, $msgtype) { goto NOm_P; SOe7q: $content = '<img src="' . $content . '" />'; goto XH7Tz; XnRlZ: foreach ($array2[0] as $kk => $vv) { goto BZMWv; DopiP: Y1_yw: goto LLz2E; psPYf: tOPb8: goto DopiP; BZMWv: if (empty($vv)) { goto tOPb8; } goto bkReu; bkReu: $content = str_replace($vv, '<a href=\'' . $vv . '\'>' . $vv . '</a>', $content); goto psPYf; LLz2E: } goto rerTf; XPKhf: goto h7IGX; goto i1lt5; rerTf: Z0M4p: goto jrt3U; uiA7c: preg_match_all($regex, $content, $array2); goto QkHDY; Vdw3o: if ($msgtype == 3 || $msgtype == 4) { goto f0xZb; } goto XPKhf; XH7Tz: h7IGX: goto LGNUX; QkHDY: if (!empty($array2[0]) && ($msgtype == 1 || $msgtype == 2)) { goto XZxHo; } goto Vdw3o; aiZQd: $regex = '@(?i)\\b((?:[a-z][\\w-]+:(?:/{1,3}|[a-z0-9%])|www\\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]{2,4}/)(?:[^\\s()<>]+|\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\))+(?:\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\)|[^\\s`!()\\[\\]{};:\'".,<>?]))@'; goto uiA7c; jrt3U: goto h7IGX; goto u_kWw; LGNUX: return $content; goto WYgTc; i1lt5: XZxHo: goto XnRlZ; NOm_P: $content = $this->guolv($content); goto aiZQd; u_kWw: f0xZb: goto SOe7q; WYgTc: } public function guolv($content) { goto ADMZx; lxDLz: thjP6: goto MPIRI; MPIRI: rm_Mr: goto kwSNb; Z4FDC: $sensitivewordarr = explode('|', $this->module['config']['mingan']); goto ll53y; kwSNb: $content = str_replace(' 
', '<br>', $content); goto r233t; ADMZx: if (empty($this->module['config']['mingan'])) { goto rm_Mr; } goto Z4FDC; ll53y: foreach ($sensitivewordarr as $k => $v) { goto YxXEM; tZBFR: $content = str_replace($v, '***', $content); goto H4pwz; oHjuH: Zcsik: goto I66al; H4pwz: KmYFU: goto oHjuH; YxXEM: if (empty($v)) { goto KmYFU; } goto tZBFR; I66al: } goto lxDLz; r233t: return $content; goto sZEii; sZEii: } public function get_os() { goto rHDyX; ACPH9: Ny_kq: goto Mfn_d; YmaoZ: $os = $_SERVER['HTTP_USER_AGENT']; goto yPnpT; MNKIH: goto eYwsE; goto EEh3H; d9YVo: $os = 'Other'; goto BeVC3; eJxnW: return 'unknow'; goto JlwJD; HgbkJ: FOpq4: goto kSnAq; tBO19: orH3l: goto ibc7U; q31Y7: $os = 'MAC'; goto c2MtM; HThQb: $os = 'Windows'; goto tBO19; YN0vz: if (preg_match('/linux/i', $os)) { goto QjY8I; } goto jTA68; moyci: pb1hA: goto VYhwX; gXG01: QjY8I: goto GNBIT; EEh3H: fiiOZ: goto q31Y7; I8Ybw: if (preg_match('/bsd/i', $os)) { goto FOpq4; } goto d9YVo; Bb61i: r7qgM: goto MNKIH; GNBIT: $os = 'Linux'; goto Bb61i; eCFPZ: XlY3o: goto qXP2s; ibc7U: return $os; goto eCFPZ; Bk_4T: c9IA8: goto VfKav; kDQjV: goto orH3l; goto V9u3X; rHDyX: if (!empty($_SERVER['HTTP_USER_AGENT'])) { goto P5PAl; } goto eJxnW; VfKav: goto r7qgM; goto gXG01; qc4kV: P5PAl: goto YmaoZ; V9u3X: Tx2Q6: goto HThQb; JlwJD: goto XlY3o; goto qc4kV; kSnAq: $os = 'BSD'; goto ACPH9; jTA68: if (preg_match('/unix/i', $os)) { goto pb1hA; } goto I8Ybw; c2MtM: eYwsE: goto kDQjV; BeVC3: goto Ny_kq; goto HgbkJ; yPnpT: if (preg_match('/win/i', $os)) { goto Tx2Q6; } goto ufasq; ufasq: if (preg_match('/mac/i', $os)) { goto fiiOZ; } goto YN0vz; VYhwX: $os = 'Unix'; goto Bk_4T; Mfn_d: goto c9IA8; goto moyci; qXP2s: } public function browse_info() { goto v1Oki; Rcb8w: $br = 'Firefox'; goto O38dq; eov16: return $br; goto NkJ9d; VEqVP: $br = 'Opera'; goto Qspoj; IhRsQ: gpGVu: goto iwH6X; Yw13G: $br = $_SERVER['HTTP_USER_AGENT']; goto bCuh4; f5ChA: NVrko: goto PeH0T; u_OCx: $br = 'Chrome'; goto f5ChA; Qspoj: SjCW9: goto cd2U3; NOTtJ: $br = 'Other'; goto nDvzp; NkJ9d: c0vIy: goto SEao9; nDvzp: goto SjCW9; goto LMZor; rspNV: goto c0vIy; goto OMjX_; v1Oki: if (!empty($_SERVER['HTTP_USER_AGENT'])) { goto dvnbX; } goto ODsc8; a8Y_z: goto sypbO; goto HfUYW; Y6qdP: if (preg_match('/Chrome/i', $br)) { goto Lx2Hv; } goto QfNim; LMZor: GJA8J: goto VEqVP; cd2U3: goto gpGVu; goto MW3Rm; OEHUy: if (preg_match('/Firefox/i', $br)) { goto VZJE5; } goto Y6qdP; fLGWC: VZJE5: goto Rcb8w; ODsc8: return 'unknow'; goto rspNV; Mr469: sypbO: goto eov16; OMjX_: dvnbX: goto Yw13G; HfUYW: mT07R: goto NQwdv; f6UhE: if (preg_match('/Opera/i', $br)) { goto GJA8J; } goto NOTtJ; O38dq: lKxfi: goto a8Y_z; NQwdv: $br = 'MSIE'; goto Mr469; BkzVj: $br = 'Safari'; goto IhRsQ; MW3Rm: P2Flf: goto BkzVj; bCuh4: if (preg_match('/MSIE/i', $br)) { goto mT07R; } goto OEHUy; PeH0T: goto lKxfi; goto fLGWC; hJiLs: Lx2Hv: goto u_OCx; iwH6X: goto NVrko; goto hJiLs; QfNim: if (preg_match('/Safari/i', $br)) { goto P2Flf; } goto f6UhE; SEao9: } public function curl_post2($url = "", $path = "") { goto st4Sm; PqX59: if (class_exists('CURLFile')) { goto XJ1C3; } goto F6pBB; sJJAg: $data = array("media" => '@' . $path); goto yORbA; iv3l6: return $res; goto fQT2T; e3gGO: curl_setopt($curl, CURLOPT_SAFE_UPLOAD, true); goto qYuUp; dpvr6: curl_setopt($curl, CURLOPT_USERAGENT, 'TEST'); goto jEDnT; nPU5y: curl_setopt($curl, CURLOPT_URL, $url); goto YSYc9; RNbrD: XJ1C3: goto e3gGO; F6pBB: curl_setopt($curl, CURLOPT_SAFE_UPLOAD, false); goto sJJAg; jEDnT: $result = curl_exec($curl); goto KJXa1; qYuUp: $data = array("media" => new CURLFile($path)); goto la6t6; KJXa1: $res = json_decode($result, true); goto iv3l6; YSYc9: curl_setopt($curl, CURLOPT_POST, 1); goto V96e8; yORbA: goto AOJ0d; goto RNbrD; VKDD4: curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); goto dpvr6; st4Sm: $curl = curl_init(); goto PqX59; V96e8: curl_setopt($curl, CURLOPT_POSTFIELDS, $data); goto VKDD4; la6t6: AOJ0d: goto nPU5y; fQT2T: } public function get_lang() { goto Im0q6; hO6tU: if (preg_match('/zh/i', $lang)) { goto EcLDN; } goto Jr2CQ; sAW3R: $lang = substr($lang, 0, 5); goto KAtaa; bIua6: tX26n: goto lhYKj; lGRvn: $lang = ''; goto LBbJ2; eiqtj: return 'unknow'; goto RcZgv; KAtaa: if (preg_match('/zh-cn/i', $lang)) { goto IcXJ1; } goto hO6tU; Jr2CQ: $lang = 'English'; goto yCAsd; RcZgv: goto duLCF; goto vTsIl; rKK_c: EcLDN: goto wuY25; Y_o50: IcXJ1: goto lGRvn; lhYKj: goto jy5Zd; goto Y_o50; gXM21: duLCF: goto wg1NI; ZRJSf: $lang = $_SERVER['HTTP_ACCEPT_LANGUAGE']; goto sAW3R; wuY25: $lang = ''; goto bIua6; Im0q6: if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { goto uRZVU; } goto eiqtj; vTsIl: uRZVU: goto ZRJSf; LBbJ2: jy5Zd: goto N3p7X; yCAsd: goto tX26n; goto rKK_c; N3p7X: return $lang; goto gXM21; wg1NI: } } ?>

Did this file decode correctly?

Original Code

<?php

 goto JAX2b; JAX2b: defined('IN_IA') or exit('Access Denied'); goto g1X1I; G31Sc: define('BEST_KEFUANDGROUP', 'messikefu_kefuandgroup'); goto zowMK; D7oDr: define('BEST_CHAT', 'messikefu_chat'); goto IqmA7; qXnFS: define('BEST_CSERVICEGROUP', 'messikefu_cservicegroup'); goto qvEvw; mQLxz: define('MD_ROOT', '../addons/cy163_customerservice_plugin_p/static'); goto AmET8; zowMK: define('BEST_BIAOQIAN', 'messikefu_biaoqian'); goto NBUEc; wPYv1: define('BEST_PINGJIA', 'messikefu_pingjia'); goto G31Sc; AmET8: define('MD_ROOT_Z', '../addons/cy163_customerservice/'); goto D7oDr; qvEvw: define('BEST_FANSKEFU', 'messikefu_fanskefu'); goto wPYv1; g1X1I: define('ROOT_PATH', IA_ROOT . '/addons/cy163_customerservice_plugin_p/'); goto mQLxz; IqmA7: define('BEST_CSERVICE', 'messikefu_cservice'); goto qXnFS; NBUEc: class Cy163_customerservice_plugin_pModuleSite extends WeModuleSite { public function doMobileKefulogin() { include_once ROOT_PATH . 'inc/mobile/kefulogin.php'; } public function doMobileKefucenter() { include_once ROOT_PATH . 'inc/mobile/kefucenter.php'; } public function doMobileFinishjd() { goto TJdC1; x8cn4: $dataupfk['jdtime'] = 0; goto JcNyP; JcNyP: pdo_update(BEST_FANSKEFU, $dataupfk, array("id" => $fkid)); goto lCuom; oBXDd: W13Ka: goto qwaJp; dgqKs: $dataupkefu['nowfkid'] = 0; goto dNZIs; Tze4i: pdo_update(BEST_CSERVICE, $dataupkefu, array("id" => $cservice['id'])); goto eAAu_; gB1ZB: echo json_encode($resArr); goto ddrPd; no3wU: if (empty($lastjd)) { goto rOf0t; } goto hOR_o; AQJ80: $fkid = intval($_GPC['fkid']); goto t6gxT; eAAu_: $isjd = intval($_GPC['isjd']); goto RNBSe; RNBSe: $lastjd = pdo_fetchall('SELECT fansopenid FROM ' . tablename(BEST_FANSKEFU) . " WHERE weid = {$_W['uniacid']} AND kefuopenid = '{$cservice['content']}' AND nowjd > 0 ORDER BY jdtime ASC LIMIT 1"); goto no3wU; l_U01: $resArr['msg'] = ''; goto gB1ZB; dNZIs: $dataupkefu['nowjdnum'] = $cservice['nowjdnum'] - 1; goto Tze4i; iB1Wc: rOf0t: goto HSDnu; HSDnu: $resArr['url'] = $this->createMobileUrl('kefucenter', array("isjd" => $isjd)); goto oBXDd; OGhaT: goto W13Ka; goto iB1Wc; t6gxT: $dataupfk['nowjd'] = 0; goto x8cn4; TJdC1: global $_W, $_GPC; goto AQJ80; qwaJp: $resArr['error'] = 0; goto l_U01; T4wYa: $cservice = pdo_fetch('SELECT * FROM ' . tablename(BEST_CSERVICE) . " WHERE weid = {$_W['uniacid']} AND id = {$id}"); goto dgqKs; lCuom: $id = intval($_GPC['id']); goto T4wYa; ddrPd: exit; goto mIiWc; hOR_o: $resArr['url'] = $this->createMobileUrl('kefucenter', array("toopenid" => $lastjd[0]['fansopenid'], "isjd" => $isjd)); goto OGhaT; mIiWc: } public function doMobilePcupload() { goto CQr86; WTFJQ: NnpFa: goto lc4I3; GthNE: if (empty($_W['setting']['remote']['type'])) { goto n_36c; } goto qmxA0; qmxA0: load()->func('file'); goto UYmtf; lmdx8: goto YBCWS; goto dAMYV; ufoL9: $remotestatus = $this->doQiuniu($randimgurl, true); goto a5hvm; Hf8Vy: goto yL4JV; goto nzrBZ; D1PyA: $resarr['imgurl'] = tomedia($randimgurl); goto b7Vgo; OCthM: $resarr['error'] = 1; goto abz8O; iwEqz: $resarr['message'] = ''; goto nS3mk; fAIQW: if (file_exists($updir)) { goto NnpFa; } goto NuVUU; D7MYM: $resarr['imgurl'] = tomedia($randimgurl); goto dlh0Q; a5hvm: if (is_error($remotestatus)) { goto rITHB; } goto rP0MD; dlh0Q: $resarr['message'] = ''; goto lk1gG; g1Z8l: $resarr['error'] = 1; goto iwEqz; NaMf4: if (is_error($remotestatus)) { goto hZC6E; } goto uUIYS; XvED9: if (file_exists($targetName)) { goto ooOTE; } goto OCthM; um75R: goto vscJi; goto tIUdH; ef0Tv: YBCWS: goto lwvRs; nzrBZ: rITHB: goto g1Z8l; Lv3T5: goto cQwPu; goto o3v4U; lwvRs: n_36c: goto dHdSG; rP0MD: $resarr['realimgurl'] = $randimgurl; goto q4LRk; qOEv5: die(json_encode($resarr)); goto Hf8Vy; lk1gG: die(json_encode($resarr)); goto lmdx8; Aq8ub: if ($this->module['config']['isqiniu'] == 3) { goto EUmgH; } goto Lv3T5; SEoUM: echo json_encode($resarr, true); goto GXwx5; q4LRk: $resarr['imgurl'] = $this->module['config']['qiniuurl'] . '/' . $randimgurl; goto D4zQu; eqUPD: $resarr['realimgurl'] = $randimgurl; goto D1PyA; tIUdH: ooOTE: goto q4ZTn; CQr86: global $_W, $_FILES, $_GPC; goto LlKnO; GXwx5: exit; goto iLgHt; abz8O: $resarr['message'] = ''; goto um75R; uUWAN: $updir = '../attachment/images/' . $_W['uniacid'] . '/' . date('Y', time()) . '/' . date('m', time()) . '/'; goto fAIQW; bDbD7: vscJi: goto SEoUM; loE4Y: die(json_encode($resarr)); goto ef0Tv; nS3mk: die(json_encode($resarr)); goto vPfLV; b7Vgo: $resarr['message'] = ''; goto bDbD7; LlKnO: $url = $_FILES['jUploaderFile']['tmp_name']; goto uUWAN; G2vjp: $resarr['error'] = 1; goto OUedO; Y2UrG: $targetName = '../attachment/' . $randimgurl; goto iqWMl; vPfLV: yL4JV: goto J9nb2; NuVUU: mkdir($updir, 0777, true); goto WTFJQ; q4ZTn: $resarr['error'] = 0; goto HIeQc; iqWMl: move_uploaded_file($url, $targetName); goto XvED9; dAMYV: hZC6E: goto G2vjp; UYmtf: $remotestatus = file_remote_upload($randimgurl, true); goto NaMf4; o3v4U: t3uFI: goto ufoL9; dHdSG: cQwPu: goto eqUPD; OUedO: $resarr['message'] = ''; goto loE4Y; lc4I3: $randimgurl = 'images/' . $_W['uniacid'] . '/' . date('Y', time()) . '/' . date('m', time()) . '/' . date('YmdHis') . rand(1000, 9999) . '.jpg'; goto Y2UrG; HIeQc: $this->mkThumbnail($targetName, 640, 0, $targetName); goto y5FuR; uUIYS: $resarr['realimgurl'] = $randimgurl; goto D7MYM; y5FuR: if ($this->module['config']['isqiniu'] == 1) { goto t3uFI; } goto Aq8ub; D4zQu: $resarr['message'] = ''; goto qOEv5; Hfd_b: EUmgH: goto GthNE; J9nb2: goto cQwPu; goto Hfd_b; iLgHt: } public function doQiuniu($filename, $auto_delete_local = true) { goto eCl1s; KGThn: die(json_encode($resarr)); goto E_xV4; e8ZiM: $resarr['error'] = 1; goto o92CY; FuLie: YoVMB: goto e8ZiM; MRA3C: return true; goto evFT7; cfajm: require_once IA_ROOT . '/framework/library/qiniu/autoload.php'; goto DJrHl; o92CY: $resarr['message'] = ''; goto KGThn; Wjgyg: list($ret, $err) = $uploadmgr->putFile($uploadtoken, $filename, ATTACHMENT_ROOT . '/' . $filename); goto xW9TX; xW9TX: if (!$auto_delete_local) { goto ImGGL; } goto j6OZ2; evFT7: goto MfasB; goto FuLie; QRvj5: $uploadtoken = $auth->uploadToken($this->module['config']['qiniubucket'], $filename, 3600, $putpolicy); goto Wjgyg; j6OZ2: file_delete($filename); goto xX7ID; xX7ID: ImGGL: goto Oqeb_; eCl1s: global $_W; goto Unj17; w1Hxh: $putpolicy = Qiniu\base64_urlSafeEncode(json_encode(array("scope" => $this->module['config']['qiniubucket'] . ':' . $filename))); goto QRvj5; DJrHl: $auth = new Qiniu\Auth($this->module['config']['qiniuaccesskey'], $this->module['config']['qiniusecretkey']); goto q5CrP; Unj17: load()->func('file'); goto cfajm; bPwYw: $uploadmgr = new Qiniu\Storage\UploadManager($config); goto w1Hxh; q5CrP: $config = new Qiniu\Config(); goto bPwYw; E_xV4: MfasB: goto YX10A; Oqeb_: if ($err !== null) { goto YoVMB; } goto MRA3C; YX10A: } public function mkThumbnail($src, $width = null, $height = null, $filename = null) { goto CJP0M; X9303: return true; goto CNjdN; dA0cQ: return false; goto KvJuF; FG78q: hOPB9: goto F2qXX; DwU_H: if ($filename) { goto MP_EP; } goto hmd6X; AO4eL: nIT0j: goto i3KIl; R81oc: if (!(isset($height) && $height <= 0)) { goto hOPB9; } goto Tlpp3; FDmaI: $imagefunc($dest_img); goto j4jm_; eCJVd: if (!(isset($width) && $width <= 0)) { goto pC3e5; } goto O75Jq; JylBs: X5o9h: goto AO4eL; jnj3o: imagedestroy($dest_img); goto X9303; KNXCx: imagedestroy($src_img); goto jnj3o; RpMR1: $src_mime = $size['mime']; goto I8M7V; Jdyng: pC3e5: goto R81oc; hmd6X: header('Content-Type: ' . $src_mime); goto FDmaI; jF3nu: $src_img = $imagecreatefunc($src); goto UDzTD; MZk8l: Wj4VI: goto bWerX; suvqR: $width = $src_w * ($height / $src_h); goto K7xCc; Ma7LC: return false; goto MZk8l; akr_c: $height = $src_h * ($width / $src_w); goto gADTl; O75Jq: return false; goto Jdyng; qDoSv: $imagefunc = 'image' . $img_type; goto DwU_H; Tlpp3: return false; goto FG78q; j4jm_: goto lv8aY; goto BxdMU; DXOV4: $imagefunc($dest_img, $filename); goto qOrY2; K7xCc: X2us2: goto Vr1Ls; i3KIl: if (isset($width)) { goto X2us2; } goto suvqR; I8M7V: switch ($src_type) { case 1: $img_type = 'gif'; goto nIT0j; case 2: $img_type = 'jpeg'; goto nIT0j; case 3: $img_type = 'png'; goto nIT0j; case 15: $img_type = 'wbmp'; goto nIT0j; default: return false; } goto JylBs; l68YD: $imagecreatefunc = 'imagecreatefrom' . $img_type; goto jF3nu; Vr1Ls: if (isset($height)) { goto QW888; } goto akr_c; qOrY2: lv8aY: goto KNXCx; IcH4p: imagecopyresampled($dest_img, $src_img, 0, 0, 0, 0, $width, $height, $src_w, $src_h); goto qDoSv; UDzTD: $dest_img = imagecreatetruecolor($width, $height); goto IcH4p; rXbh7: if ($size) { goto Wj4VI; } goto Ma7LC; KvJuF: vdVQ5: goto eCJVd; F2qXX: $size = getimagesize($src); goto rXbh7; bWerX: list($src_w, $src_h, $src_type) = $size; goto RpMR1; BxdMU: MP_EP: goto DXOV4; CJP0M: if (!(!isset($width) && !isset($height))) { goto vdVQ5; } goto dA0cQ; gADTl: QW888: goto l68YD; CNjdN: } public function doMobileGetvoice() { goto kZKjM; F3wOB: @fclose($fp); goto wbfNn; sHGM1: $dataup['hasyuyindu'] = 1; goto nS6wf; Yc_mc: $fp = @fopen($targetName, 'wb'); goto teWXO; wbnP3: $account_api = WeAccount::create(); goto U4zcr; UwgMa: mkdir($updir, 0777, true); goto PRpvO; iD8rs: goto GXTF6; goto Hd7bX; OYMIF: $fops = $fops . '|saveas/' . $putpolicy; goto KBy9m; Hd7bX: SJtB0: goto B2rYm; NzqBp: sleep(5); goto podOV; teWXO: @fwrite($fp, $response['content']); goto F3wOB; cgH2u: $qiniuaccesskey = $this->module['config']['isqiniu'] == 1 ? $this->module['config']['qiniuaccesskey'] : $_W['setting']['remote']['qiniu']['accesskey']; goto kLtYQ; vb30K: die(json_encode($resarr)); goto LiXB2; PRpvO: M9RE3: goto pW24o; o8fLq: $resarr['msg'] = ", : {$response['message']}"; goto QKCLC; Qp4R5: Y9_er: goto fM_4e; LiXB2: Jg0L7: goto wbnP3; B2rYm: $resarr['error'] = 1; goto GSAZD; B8llc: $fkid = intval($_GPC['fkid']); goto mbxRJ; U4zcr: $access_token = $account_api->getAccessToken(); goto UHPIF; nS6wf: pdo_update(BEST_CHAT, $dataup, array("id" => $chatres['id'])); goto th6YZ; WZ1bI: $resarr['error'] = 1; goto o8fLq; RIyrj: $fops = 'avthumb/mp3/ab/320k/ar/44100/acodec/libmp3lame'; goto OYMIF; I1Uaj: $resarr['voicefile'] = $qiniuurl . '/' . $ret['key']; goto Z9Vqo; dQC0E: $resarr['msg'] = ''; goto vb30K; jnNG9: $response = ihttp_get($url); goto DW2gx; DW2gx: if (!is_error($response)) { goto EVOaV; } goto WZ1bI; EFOx3: require_once IA_ROOT . '/framework/library/qiniu/autoload.php'; goto SFxtY; NMvw2: GXTF6: goto dhCfz; Xen1K: $dataup['content'] = $qiniuurl . '/' . $ret['key']; goto sHGM1; m8Crp: G5l2f: goto fM8DP; owvZj: die(json_encode($resarr)); goto iD8rs; C0O27: $result = @json_decode($response['content'], true); goto rVKBS; mbxRJ: $chatres = pdo_fetch('SELECT * FROM ' . tablename(BEST_CHAT) . " WHERE weid = {$_W['uniacid']} AND content = '{$media_id}' AND fkid = {$fkid}"); goto Xen1K; GSAZD: $resarr['msg'] = ''; goto d5_BX; LiJmq: if (file_exists($updir)) { goto M9RE3; } goto UwgMa; SFxtY: $auth = new Qiniu\Auth($qiniuaccesskey, $qiniusecretkey); goto deDqt; Z9Vqo: $resarr['msg'] = ''; goto owvZj; wbfNn: $savemp3 = 'audios/' . $_W['uniacid'] . '/' . date('Y', time()) . '/' . date('m', time()) . '/' . date('YmdHis') . rand(1000, 9999) . '.mp3'; goto YbxUI; FSpMa: $putpolicy = Qiniu\base64_urlSafeEncode($qiniubucket . ':' . $savemp3); goto RIyrj; deDqt: $config = new Qiniu\Config(); goto UJNTX; YbxUI: load()->func('file'); goto EFOx3; Ug55w: $resarr['msg'] = ", : {$result['errcode']}, : {$result['errmsg']}"; goto jlAhV; zXabX: die(json_encode($resarr)); goto Qp4R5; fM_4e: $media_id = $_GPC['media_id']; goto Jhz7E; kLtYQ: $qiniusecretkey = $this->module['config']['isqiniu'] == 1 ? $this->module['config']['qiniusecretkey'] : $_W['setting']['remote']['qiniu']['secretkey']; goto EdOg6; bv1ux: $uploadtoken = $auth->uploadToken($qiniubucket, $savemp3, 3600, $policy); goto NLs_S; zqb51: $resarr['msg'] = ''; goto zXabX; d5_BX: die(json_encode($resarr)); goto NMvw2; EdOg6: $qiniubucket = $this->module['config']['isqiniu'] == 1 ? $this->module['config']['qiniubucket'] : $_W['setting']['remote']['qiniu']['bucket']; goto NxyMY; HhJJT: EVOaV: goto C0O27; GaCD1: $resarr['error'] = 1; goto zqb51; fM8DP: $updir = '../attachment/audios/' . $_W['uniacid'] . '/' . date('Y', time()) . '/' . date('m', time()) . '/'; goto LiJmq; jlAhV: die(json_encode($resarr)); goto m8Crp; pW24o: $randvoiceurl = 'audios/' . $_W['uniacid'] . '/' . date('Y', time()) . '/' . date('m', time()) . '/' . date('YmdHis') . rand(1000, 9999) . '.amr'; goto ZzVQp; ZzVQp: $targetName = '../attachment/' . $randvoiceurl; goto Yc_mc; QKCLC: die(json_encode($resarr)); goto HhJJT; podOV: file_delete($randvoiceurl); goto B8llc; KBy9m: $policy = array("persistentOps" => $fops); goto bv1ux; R_RZr: load()->func('communication'); goto cgH2u; rVKBS: if (empty($result['errcode'])) { goto G5l2f; } goto wGGgD; Jhz7E: if (!empty($media_id)) { goto Jg0L7; } goto Da7Gm; E8E0D: if ($err !== null) { goto SJtB0; } goto NzqBp; onBnW: if (!($this->module['config']['isqiniu'] == 0 || $qiniuaccesskey == '' || $qiniusecretkey == '' || $qiniubucket == '')) { goto Y9_er; } goto GaCD1; UJNTX: $uploadmgr = new Qiniu\Storage\UploadManager($config); goto FSpMa; UHPIF: $url = 'http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=' . $access_token . '&media_id=' . $media_id; goto jnNG9; kZKjM: global $_W, $_GPC; goto R_RZr; th6YZ: $resarr['error'] = 0; goto I1Uaj; wGGgD: $resarr['error'] = 1; goto Ug55w; NxyMY: $qiniuurl = $this->module['config']['isqiniu'] == 1 ? $this->module['config']['qiniuurl'] : $_W['setting']['remote']['qiniu']['url']; goto onBnW; NLs_S: list($ret, $err) = $uploadmgr->putFile($uploadtoken, $savemp3, $targetName); goto E8E0D; Da7Gm: $resarr['error'] = 1; goto dQC0E; dhCfz: } public function doMobileGetquick() { goto OAVsU; A2tj2: $resArr['html'] = $html; goto f88Yp; Pp8tw: exit; goto U8ycD; OAVsU: global $_GPC, $_W; goto Y3me9; f88Yp: $callback = $_GPC['callback']; goto ILuOH; Y3me9: $html = '<a href="' . $_W['siteroot'] . 'app/index.php?i=' . $_W['uniacid'] . '&c=entry&do=index&m=cy163_customerservice_plugin_p" style="font-size:14px;display:inline-block;width:70px;height:70px;text-align:center;float:left;color:#fff;background:#E64340;position:fixed;z-index:9999;top:25%;right:0;text-decoration:none;" target="_blank"><div style="line-height:40px;height:35px;"></div><div style="line-height:30px;height:35px;"></div></a>'; goto A2tj2; ILuOH: echo $callback . '(' . json_encode($resArr) . ')'; goto Pp8tw; U8ycD: } public function doWebQianru() { goto jm3Yr; jm3Yr: global $_GPC, $_W; goto qI3kb; dulZV: $scripthtml = htmlspecialchars($scripthtml); goto uFKLo; uFKLo: include $this->template('web/qianru'); goto PmUyG; aADAR: $scripthtml = '<script type="text/javascript" src="' . $_W['siteroot'] . 'addons/cy163_customerservice/static/js/jquery-3.1.1.min.js\"></script>
					<script type=\"text/javascript\">
					$.ajax({   
						url:\"' . $scripturl . '\",   
						type:\"post\", 
						data:{},
						dataType:\"jsonp\",
						jsonp: \"callback\",
						success:function(data){  
							$(\"body\").prepend(data.html); 
						}
					});
					</script>'; goto dulZV; qI3kb: $scripturl = $_W['siteroot'] . 'app/index.php?i=' . $_W['uniacid'] . '&c=entry&do=getquick&m=cy163_customerservice_plugin_p'; goto aADAR; PmUyG: } public function doWebCservice() { goto XrHtb; gKJbB: if (!empty($cservice)) { goto lHJi2; } goto sDsxi; prYrt: $cservicelist = pdo_fetchall('SELECT * FROM ' . tablename(BEST_CSERVICE) . " WHERE weid = '{$_W['uniacid']}' AND ctype = 1 ORDER BY displayorder ASC"); goto cREAk; Gj7BK: $user = trim($_GPC['user']); goto byRdU; Pch2m: exit; goto yQp1p; aGBeE: exit; goto jNr5m; PC_Kh: exit; goto g_48W; g_48W: eWGWb: goto LN_aD; sDsxi: $resArr['error'] = 1; goto CaqHs; KlBsH: yrqeH: goto Xla5q; ZLYUD: $resArr['msg'] = '' . $cservice['name'] . ''; goto onrNr; sKGaA: exit; goto Qtdma; IRB3Y: echo json_encode($resArr); goto Pch2m; pIV5Q: echo json_encode($resArr); goto sKGaA; Xla5q: $cservice = pdo_fetch('SELECT * FROM ' . tablename(BEST_CSERVICE) . " WHERE weid = '{$_W['uniacid']}' AND id= {$id} AND ctype = 1"); goto gKJbB; jogXB: $id = intval($_GPC['id']); goto DOU6e; WhBQO: exit; goto KlBsH; A9mlf: if (empty($hasuser)) { goto yrqeH; } goto H7iOk; DB2h_: $resArr['msg'] = ''; goto oYzG2; DbyxJ: $resArr['error'] = 1; goto Dc_UA; wGwg2: $resArr['error'] = 0; goto ZLYUD; XrHtb: global $_GPC, $_W; goto v3rWf; oYzG2: echo json_encode($resArr); goto PC_Kh; mMBsQ: lHJi2: goto QbAUv; Dc_UA: $resArr['msg'] = ''; goto IRB3Y; NR5X5: echo json_encode($resArr); goto cbV2p; BKyGs: $resArr['error'] = 1; goto DB2h_; cREAk: include $this->template('web/cservice'); goto CAzXC; v3rWf: $operation = !empty($_GPC['op']) ? $_GPC['op'] : 'display'; goto rL1T4; dpnF1: exit; goto NPm4x; yMiOU: i3z8O: goto y9WTF; onrNr: echo json_encode($resArr); goto dpnF1; kbQPY: $resArr['msg'] = ''; goto pIV5Q; Qtdma: qosGK: goto R5EJC; EbIVb: $cservice = pdo_fetch('SELECT * FROM ' . tablename(BEST_CSERVICE) . " WHERE weid = '{$_W['uniacid']}' AND id= {$id} AND ctype = 1"); goto AePlD; LN_aD: $hasuser = pdo_fetch('SELECT id FROM ' . tablename(BEST_CSERVICE) . " WHERE weid = '{$_W['uniacid']}' AND username = '{$user}' AND ctype = 1"); goto A9mlf; aG0C3: pdo_update(BEST_CSERVICE, $data, array("id" => $id)); goto wGwg2; CaqHs: $resArr['msg'] = ''; goto NR5X5; cbV2p: exit; goto mMBsQ; BoVPm: utB8w: goto jogXB; D1ooe: $resArr['error'] = 1; goto kbQPY; yQp1p: jmjtw: goto EbIVb; NPm4x: goto UyFvn; goto BoVPm; jNr5m: UyFvn: goto qK4et; byRdU: if (!empty($user)) { goto eWGWb; } goto BKyGs; TSZvi: echo json_encode($resArr); goto aGBeE; CAzXC: goto UyFvn; goto yMiOU; Vql0w: if ($operation == 'changeuser') { goto i3z8O; } goto T6HWy; y9WTF: $id = intval($_GPC['id']); goto Gj7BK; SX9_1: $resArr['msg'] = '' . $cservice['name'] . ''; goto TSZvi; AePlD: if (!empty($cservice)) { goto qosGK; } goto D1ooe; bs9K8: $resArr['error'] = 0; goto SX9_1; H7iOk: $resArr['error'] = 1; goto zfNli; rL1T4: if ($operation == 'display') { goto aZC0T; } goto Vql0w; M9p5f: aZC0T: goto prYrt; aDhGX: goto UyFvn; goto M9p5f; R5EJC: $data['pwd'] = sha1($pwd); goto g5LYs; MGKxd: echo json_encode($resArr); goto WhBQO; QbAUv: $data['username'] = $user; goto aG0C3; toHFR: if (!empty($pwd)) { goto jmjtw; } goto DbyxJ; T6HWy: if ($operation == 'changepwd') { goto utB8w; } goto aDhGX; zfNli: $resArr['msg'] = ''; goto MGKxd; DOU6e: $pwd = trim($_GPC['pwd']); goto toHFR; g5LYs: pdo_update(BEST_CSERVICE, $data, array("id" => $id)); goto bs9K8; qK4et: } public function doMobileIndex() { goto nMC4m; G1pnA: $province = $ipres['result']['ad_info']['province']; goto Q0DLO; N7emw: setcookie('kflongitude', $longitude, time() + 3600 * 24 * 7); goto sCyR0; lZu6J: $hasfanskefu = pdo_fetch('SELECT * FROM ' . tablename(BEST_FANSKEFU) . " WHERE weid = {$_W['uniacid']} AND fansopenid = '{$openid}' AND kefuopenid = '{$toopenid}'"); goto bWXRm; wXy0q: k1d_q: goto kgnTt; QRb8M: $cservicelist = pdo_fetchall('SELECT * FROM ' . tablename(BEST_CSERVICE) . " WHERE weid = {$_W['uniacid']} AND ishow = 0 AND ctype = 1 ORDER BY displayorder ASC"); goto iFh4q; Jnzql: $auto = explode('|', $cservice['fansauto']); goto aWWWk; VfOBK: $datafanskefu['fangke'] = serialize($fangkearr); goto h3afJ; tvJXX: $latitude = $_COOKIE['kflatitude']; goto vLc0Z; Q0DLO: $city = $ipres['result']['ad_info']['city']; goto UU147; uYjlJ: H0Xnw: goto EEHXx; EEHXx: if (!empty($hasfanskefu)) { goto bywdo; } goto seF2S; S1l6q: $cservice = pdo_fetch('SELECT * FROM ' . tablename(BEST_CSERVICE) . " WHERE weid = {$_W['uniacid']} AND ctype = 1 AND content = '{$toopenid}'"); goto Jnzql; yhTyd: $ipres = file_get_contents($ipurl); goto K2MyV; NXNQp: if (!$cservice['autoreply']) { goto NCgOc; } goto oxU9T; RvI6o: $ipurl = 'https://apis.map.qq.com/ws/location/v1/ip?ip=' . $_W['clientip'] . '&key=' . $this->module['config']['mapkey']; goto AkO4F; vp17x: foreach ($array2[0] as $kk => $vv) { goto l8TdW; mON7X: $cservice['autoreply'] = str_replace($vv, '<a href=\'' . $vv . '\'>' . $vv . '</a>', $cservice['autoreply']); goto R7SUD; l8TdW: if (empty($vv)) { goto DplG7; } goto mON7X; R7SUD: DplG7: goto ulzHp; ulzHp: aMlSD: goto I8cBR; I8cBR: } goto pPlUD; eXc3D: $fangkearr = array("lang" => $this->get_lang(), "browse" => $this->browse_info(), "os" => $this->get_os(), "ip" => $_W['clientip'], "referer" => $_SERVER['HTTP_REFERER'], "latitude" => $latitude, "longitude" => $longitude, "nation" => $nation, "province" => $province, "city" => $city, "district" => $district); goto uYjlJ; vHnJ9: foreach ($chatcon as $k => $v) { goto wGZjm; Sf8VT: hw2K2: goto YPeje; zC2wg: $chatcontime = $v['time']; goto xkXcW; of4vt: goto CEb0d; goto Sf8VT; Wuk6f: preg_match_all($regex, $chatcon[$k]['content'], $array2); goto JO10K; xkXcW: $chatcon[$k]['content'] = preg_replace('/\\xEE[\\x80-\\xBF][\\x80-\\xBF]|\\xEF[\\x81-\\x83][\\x80-\\xBF]/', '[]', $v['content']); goto eArbm; WvY1j: CEb0d: goto zC2wg; wGZjm: if ($v['time'] - $chatcontime > 7200) { goto hw2K2; } goto VEEtf; ihqxb: foreach ($array2[0] as $kk => $vv) { goto VjiKE; VjiKE: if (empty($vv)) { goto YTNY9; } goto e6B1i; rb22z: hSSPb: goto XYJe1; jn1Y0: YTNY9: goto rb22z; e6B1i: $chatcon[$k]['content'] = str_replace($vv, '<a href=\'' . $vv . '\'>' . $vv . '</a>', $chatcon[$k]['content']); goto jn1Y0; XYJe1: } goto RmWI7; awIZ1: M4Ut7: goto K7Z6O; eArbm: $chatcon[$k]['content'] = $this->guolv($chatcon[$k]['content']); goto Ei_xc; K7Z6O: NVwdF: goto iARfo; Ei_xc: $regex = '@(?i)\\b((?:[a-z][\\w-]+:(?:/{1,3}|[a-z0-9%])|www\\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]{2,4}/)(?:[^\\s()<>]+|\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\))+(?:\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\)|[^\\s`!()\\[\\]{};:\'".,<>?]))@'; goto Wuk6f; VEEtf: $chatcon[$k]['time'] = ''; goto of4vt; RmWI7: Zds1S: goto awIZ1; JO10K: if (!(!empty($array2[0]) && ($v['type'] == 1 || $v['type'] == 2))) { goto M4Ut7; } goto ihqxb; YPeje: $chatcon[$k]['time'] = $v['time']; goto WvY1j; iARfo: } goto hbxPC; bWXRm: bywdo: goto QU1jI; UU147: $district = $ipres['result']['ad_info']['district']; goto eXc3D; WLCF8: $datafanskefu['fansopenid'] = $openid; goto ED1dq; ugI7s: include $this->template('pcchat'); goto n4mWj; eQEs2: pdo_update(BEST_FANSKEFU, $datafanskefuup, array("id" => $fkid)); goto wcyow; tUwQY: $datafanskefu['kefunickname'] = $cservice['name']; goto VfOBK; Dq62d: if (empty($array2[0])) { goto k1d_q; } goto vp17x; nMC4m: global $_W, $_GPC; goto DN5gq; vNzt_: $openid = md5($jiamistr); goto fBBfi; kgnTt: NCgOc: goto k18Jq; wcyow: OVlKc: goto ugI7s; dmnSQ: $datafanskefu['kefuavatar'] = tomedia($cservice['thumb']); goto tUwQY; bOTLD: if (!($hasfanskefu['fangke'] == '')) { goto Yn3Di; } goto ZOEkW; lQsL2: $latitude = $ipres['result']['location']['lat']; goto f91JS; EnkB6: goto rd9cK; goto OrEjN; h7Bp9: $datafanskefu['fansnickname'] = ''; goto dmnSQ; PbABA: if (!(empty($hasfanskefu) || $hasfanskefu['fangke'] == '')) { goto H0Xnw; } goto RvI6o; f91JS: $longitude = $ipres['result']['location']['lng']; goto qYMNI; k18Jq: $chatcon = pdo_fetchall('SELECT * FROM ' . tablename(BEST_CHAT) . " WHERE fkid = {$hasfanskefu['id']} AND weid = {$_W['uniacid']} AND type != 5 AND type != 6 ORDER BY time ASC"); goto W0E5N; h3afJ: pdo_insert(BEST_FANSKEFU, $datafanskefu); goto lZu6J; QU1jI: $fkid = $hasfanskefu['id']; goto bOTLD; lMYWO: olFog: goto csuDr; pYos4: $datafanskefuup['kefunotread'] = 0; goto eQEs2; csuDr: if (empty($toopenid)) { goto OVlKc; } goto S1l6q; ARIwg: Yn3Di: goto NXNQp; b4qzR: $longitude = $ipres['result']['location']['lng'] . random(4, 1); goto Ds9c7; qYMNI: $nation = $ipres['result']['ad_info']['nation']; goto G1pnA; fBBfi: $toopenid = trim($_GPC['toopenid']); goto QRb8M; vLc0Z: $longitude = $_COOKIE['kflongitude']; goto EnkB6; w5JCn: $ipurl = 'https://apis.map.qq.com/ws/location/v1/ip?ip=' . $_W['clientip'] . '&key=' . $this->module['config']['mapkey']; goto yhTyd; pPlUD: JzJCO: goto wXy0q; rwAyc: preg_match_all($regex, $cservice['autoreply'], $array2); goto Dq62d; Ds9c7: setcookie('kflatitude', $latitude, time() + 3600 * 24 * 7); goto N7emw; AkO4F: $ipres = file_get_contents($ipurl); goto f2c0V; x000W: $jiamistr = $this->get_lang() . $this->browse_info() . $this->get_os() . $latitude . $longitude; goto vNzt_; aWWWk: $hasfanskefu = pdo_fetch('SELECT * FROM ' . tablename(BEST_FANSKEFU) . " WHERE weid = {$_W['uniacid']} AND fansopenid = '{$openid}' AND kefuopenid = '{$toopenid}'"); goto PbABA; seF2S: $datafanskefu['weid'] = $_W['uniacid']; goto WLCF8; hbxPC: LmTmD: goto pYos4; f2c0V: $ipres = json_decode($ipres, true); goto lQsL2; sCyR0: rd9cK: goto x000W; K2MyV: $ipres = json_decode($ipres, true); goto qsiPj; ED1dq: $datafanskefu['kefuopenid'] = $cservice['content']; goto UbHIK; UbHIK: $datafanskefu['fansavatar'] = tomedia($this->module['config']['defaultavatar']); goto h7Bp9; OrEjN: JAj9K: goto w5JCn; ZOEkW: $datafanskefuup['fangke'] = serialize($fangkearr); goto ARIwg; qsiPj: $latitude = $ipres['result']['location']['lat'] . random(4, 1); goto b4qzR; W0E5N: $chatcontime = 0; goto vHnJ9; iFh4q: foreach ($cservicelist as $k => $v) { goto NpUaB; NpUaB: $fanskefu = pdo_fetch('SELECT kefunotread FROM ' . tablename(BEST_FANSKEFU) . " WHERE weid = {$_W['uniacid']} AND fansopenid = '{$openid}' AND kefuopenid = '{$v['content']}'"); goto o24nH; TgwmS: RibNg: goto RJbIV; o24nH: $cservicelist[$k]['kefunotread'] = $fanskefu['kefunotread']; goto TgwmS; RJbIV: } goto lMYWO; oxU9T: $regex = '@(?i)\\b((?:[a-z][\\w-]+:(?:/{1,3}|[a-z0-9%])|www\\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]{2,4}/)(?:[^\\s()<>]+|\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\))+(?:\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\)|[^\\s`!()\\[\\]{};:\'".,<>?]))@'; goto rwAyc; DN5gq: if (empty($_COOKIE['kflatitude'])) { goto JAj9K; } goto tvJXX; n4mWj: } public function updatenowjdnum() { goto ppKIE; ppKIE: global $_W, $_GPC; goto InM2w; InM2w: $cservicelist = pdo_fetchall('SELECT id,content FROM ' . tablename(BEST_CSERVICE) . " WHERE weid = {$_W['uniacid']} AND ctype = 1"); goto uimY9; uimY9: foreach ($cservicelist as $k => $v) { goto R_aUv; k3cG4: TkJfA: goto G4JnD; R_aUv: $nowjdnum = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename(BEST_FANSKEFU) . " WHERE weid = {$_W['uniacid']} AND nowjd > 0 AND kefuopenid = '{$v['content']}'"); goto jIa89; G4JnD: W3IaS: goto eRaGg; jIa89: if (empty($nowjdnum)) { goto TkJfA; } goto FDpyp; FDpyp: $data['nowjdnum'] = $nowjdnum; goto P3P1Z; P3P1Z: pdo_update(BEST_CSERVICE, $data, array("id" => $v['id'])); goto k3cG4; eRaGg: } goto fKvLZ; fKvLZ: xVy9_: goto bqagh; bqagh: } public function doMobileXiaxian() { goto q4LXd; ySwh4: pdo_update(BEST_FANSKEFU, $data, array("id" => $fkid)); goto B4rT3; B4rT3: a3ihW: goto zAjcp; y_08Q: $data['fszx'] = 0; goto oXb2U; cxTw4: pdo_update(BEST_FANSKEFU, $data, array("id" => $fkid)); goto FY3aO; FY3aO: IPY0l: goto Z9BpI; ZLcM4: $data['kfzx'] = 0; goto OuDnP; c3DYF: if (!($type == 'fans')) { goto a3ihW; } goto y_08Q; q4LXd: global $_W, $_GPC; goto tDJ88; OuDnP: $data['notread'] = 0; goto cxTw4; oXb2U: $data['kefunotread'] = 0; goto ySwh4; tDJ88: $fkid = intval($_GPC['fkid']); goto QgXhK; zAjcp: if (!($type == 'kefu')) { goto IPY0l; } goto ZLcM4; QgXhK: $type = trim($_GPC['type']); goto c3DYF; Z9BpI: } public function doMobileShangxian() { goto SP92f; n9eyT: pdo_update(BEST_FANSKEFU, $data, array("id" => $fkid)); goto bHQNI; xtRX1: $data['kfzx'] = 1; goto Bff3y; VUe_t: $data['fszx'] = 1; goto n9eyT; iTMTN: if (!($type == 'fans')) { goto CxKvF; } goto VUe_t; QF7gw: TtaDG: goto Wrgls; SP92f: global $_W, $_GPC; goto B2MJa; B2MJa: $fkid = intval($_GPC['fkid']); goto kZfim; HfFBF: if (!($type == 'kefu')) { goto TtaDG; } goto xtRX1; bHQNI: CxKvF: goto HfFBF; kZfim: $type = trim($_GPC['type']); goto iTMTN; Bff3y: pdo_update(BEST_FANSKEFU, $data, array("id" => $fkid)); goto QF7gw; Wrgls: } public function doMobileGetnew() { goto U0qdN; aWNa0: $newfans = pdo_fetchall('SELECT * FROM ' . tablename(BEST_FANSKEFU) . " WHERE weid = {$_W['uniacid']} AND kefuopenid = '{$openid}' AND notread > 0 ORDER BY lasttime DESC"); goto xLjUh; pFnXc: exit; goto C5ul5; xt5gV: $openid = $_SESSION['openid']; goto aWNa0; MwJOz: $resArr['fansopenids'] = $fansopenids; goto e6YRd; bX5Ng: foreach ($newfans as $k => $v) { goto UjETF; v7vfe: VLGfU: goto EOHp1; mQ7Vr: goto VLGfU; goto PPfFh; Zbaxp: ZyW8m: goto o7cAn; GUs9F: $fansopenids[$k] = $v['fansopenid']; goto Zbaxp; UjETF: if ($v['notread'] > 0) { goto PBR3n; } goto HPxqL; EOHp1: $html .= '<a href="' . $this->createMobileUrl('kefucenter', array("toopenid" => $v['fansopenid'])) . '" style="color:#fff;">
						<li data-openid="' . $v['fansopenid'] . '" class="new" style="position:relative;">
							<img class="avatar" src="' . $v['fansavatar'] . '" width="30" height="30">
							<p class="name">' . $v['fansnickname'] . '</p>
							' . $notread . '
						</li></a>'; goto GUs9F; PPfFh: PBR3n: goto OAnvB; OAnvB: $notread = '<span class="notread">' . $v['notread'] . '</span>'; goto v7vfe; HPxqL: $notread = ''; goto mQ7Vr; o7cAn: } goto sQ6ym; keIMk: if (empty($newfans)) { goto BD904; } goto bX5Ng; xLjUh: $html = ''; goto KcTLA; KcTLA: $fansopenids = array(); goto keIMk; FCv98: BD904: goto CCofm; sQ6ym: wc0_1: goto FCv98; CCofm: $resArr['html'] = $html; goto MwJOz; U0qdN: global $_W, $_GPC; goto xt5gV; e6YRd: echo json_encode($resArr); goto pFnXc; C5ul5: } public function doMobileDonotread() { goto EYKev; B7C_G: ygaJ_: goto aDI_r; YT3gQ: if (!($type == 'fans')) { goto nlFQv; } goto wBkxD; EYKev: global $_W, $_GPC; goto cvzMm; wBkxD: $data['kefunotread'] = 0; goto qkuI7; cvzMm: $fkid = intval($_GPC['fkid']); goto Uzyj1; yELC_: pdo_update(BEST_FANSKEFU, $data, array("id" => $fkid)); goto B7C_G; qkuI7: pdo_update(BEST_FANSKEFU, $data, array("id" => $fkid)); goto luSRa; dZdho: $data['notread'] = 0; goto yELC_; Uzyj1: $type = trim($_GPC['type']); goto YT3gQ; bNr5u: if (!($type == 'kefu')) { goto ygaJ_; } goto dZdho; luSRa: nlFQv: goto bNr5u; aDI_r: } public function doMobileAddbiaoqian() { goto e1bEo; k1wHv: $toopenid = trim($_GPC['toopenid']); goto itz3r; MS_SK: if (!empty($openid)) { goto nnzH4; } goto FtLin; exCnM: qQ36E: goto yfhzO; BJNIF: echo json_encode($resArr); goto xZFl_; GOfvB: $name = trim($_GPC['name']); goto YVzK1; qYOqn: nnzH4: goto GOfvB; FtLin: $resArr['error'] = 1; goto OZFmS; XLDUS: $telphone = trim($_GPC['telphone']); goto k1wHv; LLIwt: FcX0v: goto HDP2X; Ij9uK: if ($has) { goto qQ36E; } goto JHWT2; OZFmS: $resArr['msg'] = ''; goto WSkL5; c2ktK: exit; goto LCnwh; ta5Qn: $data['kefuopenid'] = $openid; goto pC_dq; PbjaY: $openid = $_SESSION['openid']; goto MS_SK; xcdkl: $data['realname'] = $realname; goto swW8e; swW8e: $data['telphone'] = $telphone; goto uqfxK; yfhzO: pdo_update(BEST_BIAOQIAN, array("name" => $name, "realname" => $realname, "telphone" => $telphone), array("kefuopenid" => $openid, "fensiopenid" => $toopenid, "weid" => $_W['uniacid'])); goto LLIwt; YVzK1: if (!empty($name)) { goto w2hIP; } goto TGdt3; TGdt3: $resArr['error'] = 1; goto PRn2a; QvRal: $realname = trim($_GPC['realname']); goto XLDUS; ZsBmi: exit; goto qYOqn; uqfxK: pdo_insert(BEST_BIAOQIAN, $data); goto KBWsE; itz3r: $has = pdo_fetch('SELECT * FROM ' . tablename(BEST_BIAOQIAN) . " WHERE kefuopenid = '{$openid}' AND fensiopenid = '{$toopenid}' AND weid = {$_W['uniacid']}"); goto Ij9uK; KBWsE: goto FcX0v; goto exCnM; HDP2X: $resArr['error'] = 0; goto HheTf; e1bEo: global $_W, $_GPC; goto PbjaY; HheTf: $resArr['msg'] = ''; goto BJNIF; PRn2a: $resArr['msg'] = ''; goto xmZ6M; xmZ6M: echo json_encode($resArr); goto c2ktK; aIs9j: $data['name'] = $name; goto xcdkl; WSkL5: echo json_encode($resArr); goto ZsBmi; LCnwh: w2hIP: goto QvRal; JHWT2: $data['weid'] = $_W['uniacid']; goto ta5Qn; xZFl_: exit; goto BQjfs; pC_dq: $data['fensiopenid'] = $toopenid; goto aIs9j; BQjfs: } public function doMobileAddchat() { goto BezEh; GTvc9: $tplcon = $data['content']; goto vX6Ag; i_FyN: $tplurl = $_W['siteroot'] . 'app/' . str_replace('./', '', $this->createMobileUrl('servicechat', array("toopenid" => $data['openid'], "qudao" => $qudao, "goodsid" => $goodsid))); goto CazY2; jp55x: iicwT: goto ZNQ3i; ZqSxb: $resArr['msg'] = ''; goto Pr6Lu; Xnoze: POG7p: goto Ggf23; ZI56R: $resArr['error'] = 1; goto gHE3H; JgaRo: exit; goto ILl8y; oLZrC: goto sNE7b; goto jp55x; ELVmT: $nowhour = intval(date('H', TIMESTAMP)); goto Pm7sc; wIgk5: Z2rcU: goto X30Au; h8QRN: $data['avatar'] = $fanskefu['fansavatar']; goto DMWHQ; HbSbS: pdo_query('update ' . tablename(BEST_FANSKEFU) . " set lastcon='{$chatcontent}',msgtype={$type},lasttime=:lasttime where id=:id", array(":lasttime" => TIMESTAMP, ":id" => $data['fkid'])); goto ZOECO; eZq_9: exit; goto hR1Ov; pe5wx: goto LHn5c; goto vWEsh; SS5Pa: exit; goto yLCb4; HgNyz: $resArr['error'] = 1; goto HUYlN; COhSk: if (!($fanskefu['nowjd'] == 0)) { goto c0KEx; } goto wuX2V; Cw4wa: Ri2by: goto Ut1e0; Pr6Lu: echo json_encode($resArr); goto SS5Pa; tWsvD: $resArr['msg'] = $notonlinemsg; goto qIXuQ; jjatZ: if (!empty($this->module['config']['tpl_kefu'])) { goto Ri2by; } goto XLynH; pdp13: Z_DFA: goto e2typ; AsLAS: goto j1R40; goto r1ODj; r1ODj: JRfxj: goto i3dFS; a3bQR: echo json_encode($resArr); goto fDJbt; Jk7jS: ir915: goto V3Qqq; Avw7c: $account_api = WeAccount::create(); goto rZ6sK; hEA4M: $resArr['msg'] = $notonlinemsg; goto vDGvX; ZOECO: $resArr['error'] = 0; goto vh5p9; ILl8y: TKSjX: goto Dtk70; LbKvH: H1P67: goto xP4L7; DMWHQ: $data['toopenid'] = trim($_GPC['toopenid']); goto QK6tC; lMbLE: $resArr['msg'] = $notonlinemsg; goto RewvO; vX6Ag: goto moLHf; goto UlgR8; ZNQ3i: if (!($cservice['day3'] == 0)) { goto zBKpY; } goto T4QAM; mYLL3: if (!($cservice['day4'] == 0)) { goto OuGRZ; } goto HgNyz; Uy2qa: moLHf: goto QtP1W; AAzWY: $notonlinemsg = !empty($cservice['notonline']) ? $cservice['notonline'] : ''; goto Ae01p; Q7hEU: $data['nickname'] = $fanskefu['fansnickname']; goto h8QRN; CVMfD: if (!($cservice['day7'] == 0)) { goto QoDCZ; } goto xl05v; En4gH: UCKc4: goto oLZrC; fwzCC: $otherfanskefus = pdo_fetchall('SELECT id,kefuopenid FROM ' . tablename(BEST_FANSKEFU) . " WHERE weid = {$_W['uniacid']} AND nowjd > 0 AND fansopenid = '{$openid}' AND kefuopenid != '{$cservice['content']}'"); goto gcUGR; NsYf3: if ($zhouji == '4') { goto aGVR3; } goto x5yIl; IDuSZ: zBKpY: goto sA3wr; LchpJ: if ($zhouji == '6') { goto H1P67; } goto x7WiD; fe42F: Z84a3: goto aAoBL; avwT3: $notonlinemsg = !empty($cservice['notonline']) ? $cservice['notonline'] : ''; goto xTkj8; BezEh: global $_W, $_GPC; goto WANq2; UlgR8: kWqsO: goto C7J4E; KT8gq: exit; goto pmz1j; zUgZ6: goto bsNHB; goto De2pz; vDGvX: echo json_encode($resArr); goto inEHU; Dwli1: if ($cservice['iszx'] == 1) { goto Z_DFA; } goto ivF6f; o5WpP: exit; goto IDuSZ; ztSej: pdo_insert(BEST_CHAT, $data); goto lL1ud; AaRif: NsnV8: goto tGGXh; x_GZK: goto kHk3q; goto Cw4wa; qIXuQ: echo json_encode($resArr); goto eZq_9; Nmk_d: echo json_encode($resArr); goto i7LuN; Mxjcm: $resArr['msg'] = $notonlinemsg; goto Sz_Hi; QoCGo: $resArr['msg'] = $notonlinemsg; goto Ds_Ag; Ds_Ag: echo json_encode($resArr); goto t29yK; hR1Ov: QoDCZ: goto ls8YF; HT40R: exit; goto NIzIP; Sz_Hi: echo json_encode($resArr); goto Jq2gS; sA3wr: sNE7b: goto VDsSM; OoKh0: $resArr['content'] = $this->doReplacecon($data['content'], $data['type']); goto c0cB1; i7LuN: exit; goto Jj_x9; dcJ3B: $qudao = trim($_GPC['qudao']); goto wATby; xP4L7: if (!($cservice['day6'] == 0)) { goto ir915; } goto VTUnF; x5yIl: if ($zhouji == '5') { goto Wf0x4; } goto LchpJ; Pm7sc: if (!($nowhour < $cservice['starthour'] || $nowhour + 1 > $cservice['endhour'])) { goto mx3Iq; } goto mACHh; KB3qr: $resArr['error'] = 1; goto Buppo; z2daK: echo json_encode($resArr); goto HT40R; R3hgd: c0KEx: goto HbSbS; BpXw2: OuGRZ: goto En4gH; XLynH: $texturl = $tplurl; goto m3vvg; c0cB1: $resArr['datetime'] = date('Y-m-d H:i:s', $data['time']); goto ZQGxO; CLW3O: echo json_encode($resArr); goto JgaRo; Ut1e0: $postdata = array("first" => array("value" => $data['nickname'] . '', "color" => "#990000"), "keyword1" => array("value" => $tplcon, "color" => "#ff510"), "keyword2" => array("value" => "", "color" => "#ff510"), "remark" => array("value" => '' . date('Y-m-d H:i:s', TIMESTAMP), "color" => "#ff510")); goto Avw7c; i3dFS: $nowhour = intval(date('H', TIMESTAMP)); goto gTihy; hRnhP: $type = intval($_GPC['type']); goto KIxPj; vh5p9: $resArr['msg'] = ''; goto OoKh0; HUYlN: $resArr['msg'] = $notonlinemsg; goto a3bQR; k9pO3: if ($zhouji == '2') { goto Z2rcU; } goto ov640; r_gtE: $resArr['error'] = 1; goto GUvyr; yOfpG: $datajd['jdtime'] = TIMESTAMP; goto l1_xj; Zkz7V: goto UCKc4; goto NPCTl; GPixQ: if (!($this->module['config']['istplon'] == 1 && $guotime > $this->module['config']['kefutplminute'])) { goto fu5zq; } goto i_FyN; qfTL8: if (!($cservice['day5'] == 0)) { goto TKSjX; } goto KB3qr; ls8YF: VDjiB: goto V1eQB; yujx7: YdODK: goto CVMfD; NIzIP: mx3Iq: goto AsLAS; QtP1W: $tplcon = $this->guolv($tplcon); goto ztSej; Jq2gS: exit; goto a15ez; I5da9: if ($type == 3 || $type == 4) { goto kWqsO; } goto GTvc9; e2typ: if (!($cservice['isrealzx'] == 0)) { goto NsnV8; } goto AAzWY; Buppo: $resArr['msg'] = $notonlinemsg; goto CLW3O; yLCb4: RsV3H: goto dcJ3B; HZb1s: $data['weid'] = $_W['uniacid']; goto hRnhP; m3vvg: $texturl = '<a href=\'' . $texturl . '\'></a>'; goto uVeos; De2pz: Wf0x4: goto qfTL8; ZQGxO: $resArr['jqrtime'] = date('Y-m-d H:i:s', $data['time'] + 2); goto vD9Mq; rZ6sK: $account_api->sendTplNotice($data['toopenid'], $this->module['config']['tpl_kefu'], $postdata, $tplurl, '#980000'); goto eqcCQ; T4QAM: $resArr['error'] = 1; goto wASYg; g3gFe: $account_api->sendCustomNotice($send); goto x_GZK; Ggf23: $this->updatenowjdnum(); goto R3hgd; uVeos: $concon = $data['nickname'] . '' . $tplcon . '' . $texturl; goto VL3V1; YgSo7: $guotime = TIMESTAMP - $fanskefu['lasttime']; goto GPixQ; VTUnF: $resArr['error'] = 1; goto QoCGo; oMdx6: $fanskefu = pdo_fetch('SELECT * FROM ' . tablename(BEST_FANSKEFU) . " WHERE weid = {$_W['uniacid']} AND id = {$data['fkid']}"); goto bPu2a; KIxPj: $data['type'] = $type; goto I5da9; VL3V1: $send['touser'] = trim($_GPC['toopenid']); goto IGQ24; f_Q9I: if (!($cservice['day1'] == 0)) { goto vnO8X; } goto n88Yz; V3Qqq: jRa2h: goto zUgZ6; QK6tC: $data['time'] = TIMESTAMP; goto nVjNs; nuAEY: $account_api = WeAccount::create(); goto g3gFe; gTihy: if (!($nowhour + 1 > $cservice['endhour'] && $nowhour < $cservice['starthour'])) { goto kox1F; } goto mp_4v; tGGXh: cifgo: goto PnboZ; wASYg: $resArr['msg'] = $notonlinemsg; goto PwR5O; gcUGR: foreach ($otherfanskefus as $k => $v) { goto bthBB; dfokA: pdo_update(BEST_FANSKEFU, $dataotherfk, array("id" => $v['id'])); goto vmCE9; bthBB: $dataotherfk['nowjd'] = 0; goto UJk6z; UJk6z: $dataotherfk['jdtime'] = 0; goto dfokA; vmCE9: dl9da: goto ZoeUV; ZoeUV: } goto Xnoze; gHE3H: $resArr['msg'] = $notonlinemsg; goto dnc9m; KBvac: $send['text'] = array("content" => urlencode($concon)); goto nuAEY; eqcCQ: kHk3q: goto F9VIt; upaGS: $resArr['error'] = 1; goto Oasa0; nVjNs: $data['content'] = $chatcontent; goto HZb1s; F9VIt: fu5zq: goto COhSk; CazY2: $tplurl = str_replace('cy163_customerservice_plugin_p', 'cy163_customerservice', $tplurl); goto jjatZ; Ae01p: $resArr['error'] = 1; goto lMbLE; Oasa0: $resArr['msg'] = $notonlinemsg; goto Nmk_d; inEHU: exit; goto mL3U6; x7WiD: if ($zhouji == '0') { goto YdODK; } goto A5QUK; utDpm: exit; goto AaRif; jjtu1: if ($zhouji == '1') { goto SMCwf; } goto k9pO3; wATby: $goodsid = intval($_GPC['goodsid']); goto b6CQE; Zfg_0: LHn5c: goto hrbIT; bPu2a: $data['openid'] = $fanskefu['fansopenid']; goto Q7hEU; xTkj8: $zhouji = date('w'); goto jjtu1; V1eQB: goto jRa2h; goto LbKvH; GUvyr: $resArr['msg'] = $notonlinemsg; goto z2daK; mACHh: $notonlinemsg = !empty($cservice['notonline']) ? $cservice['notonline'] : ''; goto r_gtE; vWEsh: SMCwf: goto f_Q9I; lL1ud: pdo_query('update ' . tablename(BEST_FANSKEFU) . ' set notread=notread+1,guanlinum=guanlinum+1,wherefrom=0 where id=:id', array(":id" => $data['fkid'])); goto YgSo7; lHypG: exit; goto fe42F; QSWRd: $data['fkid'] = intval($_GPC['fkid']); goto oMdx6; NPCTl: aGVR3: goto mYLL3; RewvO: echo json_encode($resArr); goto utDpm; dsQ4O: if (!empty($chatcontent)) { goto RsV3H; } goto GsiuL; Dtk70: bsNHB: goto Zkz7V; xl05v: $resArr['error'] = 1; goto tWsvD; WANq2: $chatcontent = trim($_GPC['content']); goto dsQ4O; vD9Mq: echo json_encode($resArr); goto KT8gq; dnc9m: echo json_encode($resArr); goto lHypG; qy98F: j1R40: goto rW_Ur; l1_xj: pdo_update(BEST_FANSKEFU, $datajd, array("id" => $fanskefu['id'])); goto fwzCC; PwR5O: echo json_encode($resArr); goto o5WpP; wuX2V: $datajd['nowjd'] = 1; goto yOfpG; C7J4E: $tplcon = $data['nickname'] . ''; goto Uy2qa; PnboZ: if (!($cservice['isxingqi'] == 1)) { goto VZOQv; } goto avwT3; A5QUK: $resArr['error'] = 1; goto hEA4M; t29yK: exit; goto Jk7jS; VDsSM: goto nUJ6i; goto wIgk5; hrbIT: VZOQv: goto QSWRd; rW_Ur: goto cifgo; goto pdp13; fDJbt: exit; goto BpXw2; n88Yz: $resArr['error'] = 1; goto Mxjcm; a15ez: vnO8X: goto Zfg_0; Jj_x9: kox1F: goto qy98F; ov640: if ($zhouji == '3') { goto iicwT; } goto NsYf3; GsiuL: $resArr['error'] = 1; goto ZqSxb; IGQ24: $send['msgtype'] = 'text'; goto KBvac; mp_4v: $notonlinemsg = !empty($cservice['notonline']) ? $cservice['notonline'] : ''; goto upaGS; b6CQE: $cservice = pdo_fetch('SELECT * FROM ' . tablename(BEST_CSERVICE) . " WHERE weid = {$_W['uniacid']} AND ctype = 1 AND content = '{$_GPC['toopenid']}'"); goto Dwli1; X30Au: if (!($cservice['day2'] == 0)) { goto Z84a3; } goto ZI56R; mL3U6: goto VDjiB; goto yujx7; aAoBL: nUJ6i: goto pe5wx; ivF6f: if ($cservice['lingjie'] == 1) { goto JRfxj; } goto ELVmT; pmz1j: } public function doReplacecon($content, $msgtype) { goto NOm_P; SOe7q: $content = '<img src="' . $content . '" />'; goto XH7Tz; XnRlZ: foreach ($array2[0] as $kk => $vv) { goto BZMWv; DopiP: Y1_yw: goto LLz2E; psPYf: tOPb8: goto DopiP; BZMWv: if (empty($vv)) { goto tOPb8; } goto bkReu; bkReu: $content = str_replace($vv, '<a href=\'' . $vv . '\'>' . $vv . '</a>', $content); goto psPYf; LLz2E: } goto rerTf; XPKhf: goto h7IGX; goto i1lt5; rerTf: Z0M4p: goto jrt3U; uiA7c: preg_match_all($regex, $content, $array2); goto QkHDY; Vdw3o: if ($msgtype == 3 || $msgtype == 4) { goto f0xZb; } goto XPKhf; XH7Tz: h7IGX: goto LGNUX; QkHDY: if (!empty($array2[0]) && ($msgtype == 1 || $msgtype == 2)) { goto XZxHo; } goto Vdw3o; aiZQd: $regex = '@(?i)\\b((?:[a-z][\\w-]+:(?:/{1,3}|[a-z0-9%])|www\\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]{2,4}/)(?:[^\\s()<>]+|\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\))+(?:\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\)|[^\\s`!()\\[\\]{};:\'".,<>?]))@'; goto uiA7c; jrt3U: goto h7IGX; goto u_kWw; LGNUX: return $content; goto WYgTc; i1lt5: XZxHo: goto XnRlZ; NOm_P: $content = $this->guolv($content); goto aiZQd; u_kWw: f0xZb: goto SOe7q; WYgTc: } public function guolv($content) { goto ADMZx; lxDLz: thjP6: goto MPIRI; MPIRI: rm_Mr: goto kwSNb; Z4FDC: $sensitivewordarr = explode('|', $this->module['config']['mingan']); goto ll53y; kwSNb: $content = str_replace('
', '<br>', $content); goto r233t; ADMZx: if (empty($this->module['config']['mingan'])) { goto rm_Mr; } goto Z4FDC; ll53y: foreach ($sensitivewordarr as $k => $v) { goto YxXEM; tZBFR: $content = str_replace($v, '***', $content); goto H4pwz; oHjuH: Zcsik: goto I66al; H4pwz: KmYFU: goto oHjuH; YxXEM: if (empty($v)) { goto KmYFU; } goto tZBFR; I66al: } goto lxDLz; r233t: return $content; goto sZEii; sZEii: } public function get_os() { goto rHDyX; ACPH9: Ny_kq: goto Mfn_d; YmaoZ: $os = $_SERVER['HTTP_USER_AGENT']; goto yPnpT; MNKIH: goto eYwsE; goto EEh3H; d9YVo: $os = 'Other'; goto BeVC3; eJxnW: return 'unknow'; goto JlwJD; HgbkJ: FOpq4: goto kSnAq; tBO19: orH3l: goto ibc7U; q31Y7: $os = 'MAC'; goto c2MtM; HThQb: $os = 'Windows'; goto tBO19; YN0vz: if (preg_match('/linux/i', $os)) { goto QjY8I; } goto jTA68; moyci: pb1hA: goto VYhwX; gXG01: QjY8I: goto GNBIT; EEh3H: fiiOZ: goto q31Y7; I8Ybw: if (preg_match('/bsd/i', $os)) { goto FOpq4; } goto d9YVo; Bb61i: r7qgM: goto MNKIH; GNBIT: $os = 'Linux'; goto Bb61i; eCFPZ: XlY3o: goto qXP2s; ibc7U: return $os; goto eCFPZ; Bk_4T: c9IA8: goto VfKav; kDQjV: goto orH3l; goto V9u3X; rHDyX: if (!empty($_SERVER['HTTP_USER_AGENT'])) { goto P5PAl; } goto eJxnW; VfKav: goto r7qgM; goto gXG01; qc4kV: P5PAl: goto YmaoZ; V9u3X: Tx2Q6: goto HThQb; JlwJD: goto XlY3o; goto qc4kV; kSnAq: $os = 'BSD'; goto ACPH9; jTA68: if (preg_match('/unix/i', $os)) { goto pb1hA; } goto I8Ybw; c2MtM: eYwsE: goto kDQjV; BeVC3: goto Ny_kq; goto HgbkJ; yPnpT: if (preg_match('/win/i', $os)) { goto Tx2Q6; } goto ufasq; ufasq: if (preg_match('/mac/i', $os)) { goto fiiOZ; } goto YN0vz; VYhwX: $os = 'Unix'; goto Bk_4T; Mfn_d: goto c9IA8; goto moyci; qXP2s: } public function browse_info() { goto v1Oki; Rcb8w: $br = 'Firefox'; goto O38dq; eov16: return $br; goto NkJ9d; VEqVP: $br = 'Opera'; goto Qspoj; IhRsQ: gpGVu: goto iwH6X; Yw13G: $br = $_SERVER['HTTP_USER_AGENT']; goto bCuh4; f5ChA: NVrko: goto PeH0T; u_OCx: $br = 'Chrome'; goto f5ChA; Qspoj: SjCW9: goto cd2U3; NOTtJ: $br = 'Other'; goto nDvzp; NkJ9d: c0vIy: goto SEao9; nDvzp: goto SjCW9; goto LMZor; rspNV: goto c0vIy; goto OMjX_; v1Oki: if (!empty($_SERVER['HTTP_USER_AGENT'])) { goto dvnbX; } goto ODsc8; a8Y_z: goto sypbO; goto HfUYW; Y6qdP: if (preg_match('/Chrome/i', $br)) { goto Lx2Hv; } goto QfNim; LMZor: GJA8J: goto VEqVP; cd2U3: goto gpGVu; goto MW3Rm; OEHUy: if (preg_match('/Firefox/i', $br)) { goto VZJE5; } goto Y6qdP; fLGWC: VZJE5: goto Rcb8w; ODsc8: return 'unknow'; goto rspNV; Mr469: sypbO: goto eov16; OMjX_: dvnbX: goto Yw13G; HfUYW: mT07R: goto NQwdv; f6UhE: if (preg_match('/Opera/i', $br)) { goto GJA8J; } goto NOTtJ; O38dq: lKxfi: goto a8Y_z; NQwdv: $br = 'MSIE'; goto Mr469; BkzVj: $br = 'Safari'; goto IhRsQ; MW3Rm: P2Flf: goto BkzVj; bCuh4: if (preg_match('/MSIE/i', $br)) { goto mT07R; } goto OEHUy; PeH0T: goto lKxfi; goto fLGWC; hJiLs: Lx2Hv: goto u_OCx; iwH6X: goto NVrko; goto hJiLs; QfNim: if (preg_match('/Safari/i', $br)) { goto P2Flf; } goto f6UhE; SEao9: } public function curl_post2($url = "", $path = "") { goto st4Sm; PqX59: if (class_exists('CURLFile')) { goto XJ1C3; } goto F6pBB; sJJAg: $data = array("media" => '@' . $path); goto yORbA; iv3l6: return $res; goto fQT2T; e3gGO: curl_setopt($curl, CURLOPT_SAFE_UPLOAD, true); goto qYuUp; dpvr6: curl_setopt($curl, CURLOPT_USERAGENT, 'TEST'); goto jEDnT; nPU5y: curl_setopt($curl, CURLOPT_URL, $url); goto YSYc9; RNbrD: XJ1C3: goto e3gGO; F6pBB: curl_setopt($curl, CURLOPT_SAFE_UPLOAD, false); goto sJJAg; jEDnT: $result = curl_exec($curl); goto KJXa1; qYuUp: $data = array("media" => new CURLFile($path)); goto la6t6; KJXa1: $res = json_decode($result, true); goto iv3l6; YSYc9: curl_setopt($curl, CURLOPT_POST, 1); goto V96e8; yORbA: goto AOJ0d; goto RNbrD; VKDD4: curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); goto dpvr6; st4Sm: $curl = curl_init(); goto PqX59; V96e8: curl_setopt($curl, CURLOPT_POSTFIELDS, $data); goto VKDD4; la6t6: AOJ0d: goto nPU5y; fQT2T: } public function get_lang() { goto Im0q6; hO6tU: if (preg_match('/zh/i', $lang)) { goto EcLDN; } goto Jr2CQ; sAW3R: $lang = substr($lang, 0, 5); goto KAtaa; bIua6: tX26n: goto lhYKj; lGRvn: $lang = ''; goto LBbJ2; eiqtj: return 'unknow'; goto RcZgv; KAtaa: if (preg_match('/zh-cn/i', $lang)) { goto IcXJ1; } goto hO6tU; Jr2CQ: $lang = 'English'; goto yCAsd; RcZgv: goto duLCF; goto vTsIl; rKK_c: EcLDN: goto wuY25; Y_o50: IcXJ1: goto lGRvn; lhYKj: goto jy5Zd; goto Y_o50; gXM21: duLCF: goto wg1NI; ZRJSf: $lang = $_SERVER['HTTP_ACCEPT_LANGUAGE']; goto sAW3R; wuY25: $lang = ''; goto bIua6; Im0q6: if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { goto uRZVU; } goto eiqtj; vTsIl: uRZVU: goto ZRJSf; LBbJ2: jy5Zd: goto N3p7X; yCAsd: goto tX26n; goto rKK_c; N3p7X: return $lang; goto gXM21; wg1NI: } } ?>

Function Calls

None

Variables

None

Stats

MD5 aea5e5c8c1417e0b2522d2cd95297476
Eval Count 0
Decode Time 103 ms