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 zW8gV; zW8gV: defined('IN_IA') or exit('Access Denied'); goto hFgoB; ItsmJ: c..

Decoded Output download

<?php 
 goto zW8gV; zW8gV: defined('IN_IA') or exit('Access Denied'); goto hFgoB; ItsmJ: class Super_cardModuleSite extends WeModuleSite { private $pageCount = 10; private $tablePrefix = ""; private $configTable = ""; function __construct() { goto yCmkt; YDwYR: SXqwQ: goto SuCSX; viJko: SA7e8: goto Jf4B9; DnkFa: $this->tablePrefix = $_W['otherConfigs']['table_prefix']; goto QhAsF; D46TF: $count = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . $this->configTable) . ' WHERE `uniacid` = ' . $_W['uniacid']); goto oB20e; aUWWR: $feeData = array(); goto m4W_c; KQx1_: $ruleData = array(); goto aUWWR; QhAsF: $this->configTable = $_W['otherConfigs']['config_table']; goto D46TF; WvSUp: if ($count < 1) { goto cdGU3; } goto ussdv; kqczE: jqp2u: goto VaDvl; Jf4B9: foreach ($configParent as $k => $v) { goto kPXJl; hKI0x: WZjh4: goto WZjSJ; pwXMD: hiAru: goto TcOAX; kPXJl: if ($v['code'] === $basicData['code']) { goto fJMwU; } goto wjAYh; WZjSJ: $this->doWebUpdatecode($v['code'], $v, $feeData); goto B0g7M; MjcIe: UZ7de: goto Y3i12; InsSw: if ($v['code'] == $feeData['code']) { goto WZjh4; } goto IsBsl; zmMyH: $this->doWebUpdatecode($v['code'], $v, $otherData); goto pwXMD; Y3i12: goto J3fTZ; goto mHwoa; M2yt4: $this->doWebUpdatecode($v['code'], $v, $basicData); goto lbfrB; KBn0G: goto UZ7de; goto xW2Vw; YLjNS: $this->doWebUpdatecode($v['code'], $v, $msgTemData); goto MGmdD; xW2Vw: EPmf5: goto E1HBD; mHwoa: fJMwU: goto M2yt4; PUyQe: goto FimKd; goto hKI0x; wjAYh: if ($v['code'] == $ruleData['code']) { goto EPmf5; } goto InsSw; C5qgW: If2W4: goto YLjNS; E1HBD: $this->doWebUpdatecode($v['code'], $v, $ruleData); goto MjcIe; h3xST: Ky1HI: goto is5xU; lbfrB: J3fTZ: goto h3xST; IsBsl: if ($v['code'] == $msgTemData['code']) { goto If2W4; } goto IV3uB; B0g7M: FimKd: goto KBn0G; TcOAX: goto pVRCx; goto C5qgW; IV3uB: if (!($v['code'] == $otherData['code'])) { goto hiAru; } goto zmMyH; MGmdD: pVRCx: goto PUyQe; is5xU: } goto vth0T; nRXkP: IWWKH: goto YDwYR; l0pcy: $configParent = array(); goto YsfrJ; c_Xqv: cdGU3: goto j2lJa; VaDvl: goto SXqwQ; goto c_Xqv; oB20e: $arr = getOtherConf('config_item_list'); goto WvSUp; zBQ6I: $otherData = array(); goto VbYQe; rH8AB: $afterData = pdo_getall($this->tablePrefix . $this->configTable, array("parent_id >" => "0", "uniacid" => $_W['uniacid']), array("id", "parent_id", "code", "name", "value", "type", "store_range", "value", "tip", "status", "sort_order"), ''); goto lih5R; l_Z0g: $basicData = array(); goto KQx1_; IIaFr: foreach ($configParent as $v) { goto XzbPt; XzbPt: unset($v['children']); goto LDjPm; LDjPm: foreach ($oldParent as $v2) { goto n7bzr; BOpaE: $v['sort_order'] = intval($v['sort_order']); goto qGNr5; xF2dQ: O5Ogl: goto Bhzhp; qGNr5: pdo_update($this->tablePrefix . $this->configTable, $v, array("code" => $v['code'], "uniacid" => $_W['uniacid'])); goto xF2dQ; iUTMG: $v['status'] = intval($v['status']); goto BOpaE; MxGWu: $v['uniacid'] = intval($_W['uniacid']); goto iUTMG; Bhzhp: k1QaE: goto bXPRx; n7bzr: if (!($v2['code'] == $v['code'])) { goto O5Ogl; } goto MxGWu; bXPRx: } goto xy52i; xy52i: TOCoA: goto mAv1b; mAv1b: xgSXz: goto GReV6; GReV6: } goto e1GWK; j2lJa: foreach ($arr as $key => $v) { goto mH5sn; mH5sn: $v2 = $v; goto VMo0s; KV9ba: ANtcn: goto YyeJG; VMo0s: unset($v2['children']); goto PZEWO; aL6F8: if (empty($re)) { goto E6k5d; } goto q1Kjy; RZ4lS: $re = pdo_insert($this->tablePrefix . $this->configTable, $v2); goto aL6F8; PZEWO: $v2['uniacid'] = $_W['uniacid']; goto RZ4lS; JOrID: E6k5d: goto KV9ba; nwNmh: foreach ($v['children'] as $v3) { goto XZJmu; WeLRV: $v3['parent_id'] = $config_id; goto G28In; XZJmu: $v3['uniacid'] = $_W['uniacid']; goto WeLRV; Yqqq4: q8q_N: goto oRPQF; G28In: pdo_insert($this->tablePrefix . $this->configTable, $v3); goto Yqqq4; oRPQF: } goto BnXeC; q1Kjy: $config_id = pdo_insertid(); goto nwNmh; BnXeC: zFvVx: goto JOrID; YyeJG: } goto nRXkP; VSjIi: $oldParent = pdo_getall($this->tablePrefix . $this->configTable, array("parent_id" => "0", "uniacid" => $_W['uniacid']), array("id", "parent_id", "code", "name", "value", "type", "store_range", "value", "tip", "status", "sort_order"), ''); goto l0pcy; e1GWK: zyYy_: goto rH8AB; vth0T: m5QBP: goto kqczE; lih5R: foreach ($afterData as $k => $v) { goto y08IJ; M7FoG: hiIfj: goto eFzqJ; UyYLD: $basicData['codes'][$v['code']] = $v['code']; goto HQByX; slRsW: ydSCy: goto aksyr; RzQPa: t4lbu: goto tF2kX; aSdZx: $basicData['children'][] = $v; goto UyYLD; eFzqJ: if (!($v['parent_id'] === $msgTemData['id'])) { goto t4lbu; } goto U4yR8; HvRMP: $ruleData['children'][] = $v; goto tEE1t; StRVF: $otherData['children'][] = $v; goto Vsnps; Vsnps: ssRPV: goto slRsW; tF2kX: if (!($v['parent_id'] === $otherData['id'])) { goto ssRPV; } goto StRVF; fUF2c: if (!($v['parent_id'] === $ruleData['id'])) { goto OoA45; } goto HvRMP; U4yR8: $msgTemData['children'][] = $v; goto RzQPa; y08IJ: if (!($v['parent_id'] === $basicData['id'])) { goto A7UqU; } goto aSdZx; YhIve: $feeData['children'][] = $v; goto M7FoG; HQByX: A7UqU: goto fUF2c; tEE1t: OoA45: goto FwZnz; FwZnz: if (!($v['parent_id'] === $feeData['id'])) { goto hiIfj; } goto YhIve; aksyr: } goto viJko; yCmkt: global $_GPC, $_W; goto DnkFa; tD_aY: V2Gsg: goto kEgID; VbYQe: $oldData = pdo_getall($this->tablePrefix . $this->configTable, array("uniacid" => $_W['uniacid']), array("id", "parent_id", "code"), ''); goto VSjIi; kEgID: foreach ($oldData as $key => $v) { goto gDhsI; D3aVR: EBW3p: goto MPYE3; k6CmA: SCRJX: goto Tbjv1; njpBQ: goto syOgg; goto QIs_k; ueO5C: if (!($v['code'] == 'other_group_set')) { goto ILzak; } goto vsBBX; i6Nwg: goto EBW3p; goto kU00l; TJsLC: $msgTemData = $v; goto wzRiX; jH_rL: $testArr[] = $v['code']; goto k47Eo; fIZ2u: y7VV7: goto dXmL2; Oo713: if ($v['code'] == 'fee_set') { goto y7VV7; } goto AvoyA; RQ8au: yzToO: goto AR74X; k47Eo: pdo_delete($this->tablePrefix . $this->configTable, array("code" => $v['code'], "uniacid" => $_W['uniacid'])); goto Hwj32; AR74X: goto cdBPz; goto IOjwb; yhWlq: cdBPz: goto i6Nwg; IOjwb: OMzOu: goto cHkhX; cHkhX: $ruleData = $v; goto yhWlq; dXmL2: $feeData = $v; goto RQ8au; AvoyA: if ($v['code'] == 'message_template_set') { goto gt3Np; } goto ueO5C; GsLms: ILzak: goto njpBQ; Tbjv1: s4W9v: goto XjbTx; kU00l: tYXT8: goto cJMi2; bwZR8: if ($v['code'] == 'rule_set') { goto OMzOu; } goto Oo713; N0Phs: if (in_array($v['code'], $codes)) { goto KS05_; } goto jH_rL; gDhsI: if ($v['code'] == 'basic_set') { goto tYXT8; } goto bwZR8; vsBBX: $otherData = $v; goto GsLms; Hwj32: KS05_: goto k6CmA; ZyCez: goto yzToO; goto fIZ2u; QIs_k: gt3Np: goto TJsLC; wzRiX: syOgg: goto ZyCez; cJMi2: $basicData = $v; goto D3aVR; MPYE3: if (!($v['type'] != 'group')) { goto SCRJX; } goto N0Phs; XjbTx: } goto ZXgbU; ZXgbU: dnhLD: goto IIaFr; m4W_c: $msgTemData = array(); goto zBQ6I; YsfrJ: foreach ($arr as $k => $v) { goto aftVl; dLIYw: Ygpyy: goto WdmVo; wmVbm: q4Fh1: goto LxQ3U; aftVl: $codes[] = $v['code']; goto YUzBk; rc4rA: foreach ($v['children'] as $k2 => $v3) { goto pbmbA; pbmbA: $codes[] = $v3['code']; goto iUfUF; WEWwk: rtZHi: goto cJx7a; iUfUF: $configParent[$k]['children'][] = $v3; goto WEWwk; cJx7a: } goto dLIYw; WdmVo: arvDM: goto wmVbm; InF7m: unset($v2['children']); goto Lloj4; YUzBk: if (!($v['parent_id'] == '0' && $v['type'] == 'group')) { goto q4Fh1; } goto RiiuU; LxQ3U: iyY7_: goto PwhjZ; RiiuU: $v2 = $v; goto InF7m; Lloj4: $configParent[] = $v2; goto c5QF2; c5QF2: if (!isset($v['children'])) { goto arvDM; } goto rc4rA; PwhjZ: } goto tD_aY; ussdv: $status = $this->doWebSystemUpdateStatus($arr); goto RPmla; RPmla: if (!($status !== true)) { goto jqp2u; } goto l_Z0g; SuCSX: } public function doMobileEditSave() { goto XXtS1; XXtS1: global $_GPC, $_W; goto SK4rk; aqi5H: $content = str_replace('http://img01.store.sogou.com/net/a/04/link?appid=100520029&url=', '', html_entity_decode(trim($_GPC['art_content']))); goto X_234; F8KPb: $result = pdo_update($this->tablePrefix . 'art', array("content" => $content), array("id" => $art_id)); goto sKUYs; hFx2d: wJsPX: goto aqi5H; YXu6l: message(''); goto hFx2d; f3SQD: $art_id = intval($_GPC['art_id']); goto sOFbw; sOFbw: if (!($art_id < 1)) { goto wJsPX; } goto YXu6l; X_234: $content = str_replace('data-href', 'href', $content); goto F8KPb; SK4rk: load()->func('tpl'); goto f3SQD; sKUYs: $this->json_return('', 0, $result); goto EAW6W; EAW6W: } public function doMobileArt() { goto Z6PXk; EHfPV: $rs[1] = array_unique($rs[1]); goto InAjj; DVZws: $art['content'] = str_replace('onclick="afterSelected(this);"', '', $art['content']); goto Sf4Ei; iJpfO: $view_list = pdo_fetchall('select t.`create_time`, i.`name`, i.`picture`, i.`qrcode`, count(*) AS counts FROM ' . tablename($this->tablePrefix . 'artrecord') . ' as t LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' as i ON i.`id` = t.`card_id` WHERE t.`art_id`=' . $art_id . " AND t.`uid` <> {$art['uid']} GROUP BY t.`card_id` ORDER BY t.`create_time` DESC LIMIT 10"); goto VzrYb; Z4fUe: $art['content'] = str_replace('display:none;', '', $art['content']); goto GYiM7; GYiM7: $art['content'] = str_replace('width: 0px;', '', $art['content']); goto DVZws; a3o6U: $view_list_length = sizeof($view_list); goto GHwrh; zBYVA: if (!($art_id < 1)) { goto GDfPI; } goto u1Rz_; rWQJ4: AO3eH: goto w7sGD; wuu9a: message(''); goto rWQJ4; Kpvnt: $art_id = intval($_GPC['art_id']); goto zBYVA; uY9pj: GDfPI: goto lAviF; uHXNd: foreach ($imgs as $k => $img) { $imgs[$k] = 'http://img01.store.sogou.com/net/a/04/link?appid=100520029&url=' . $img; pTpj4: } goto dwY6J; xjdlo: load()->func('tpl'); goto Kpvnt; InAjj: $imgs = $rs[1]; goto uHXNd; w7sGD: $art['picture'] = getFileUrlSd($art['picture']); goto a2Lhl; No_6g: foreach ($rec_list as $k => $v) { $rec_list[$k]['pic'] = getFileUrlSd($v['pic']); RScLw: } goto C1vKs; Sf4Ei: $art['content'] = preg_replace('/<iframe.*?\ssrc=".*?".*?>/is', '', $art['content']); goto jM91i; Z6PXk: global $_GPC, $_W; goto xjdlo; a2Lhl: $art['qrcode'] = getFileUrlSd($art['qrcode']); goto h1OvT; jM91i: $rec_list = pdo_fetchall('SELECT a.`id`, a.`card_id`, a.`title`, a.`pic`, a.`views`, a.`forwards`, c.`name` FROM ' . tablename($this->tablePrefix . 'art') . ' as a LEFT JOIN ' . tablename($this->tablePrefix . 'artcate') . " as c ON a.`cate_id` = c.`id` WHERE a.`card_id` = {$art['card_id']} AND a.`id` <> {$art_id} AND a.`status` = 1 ORDER BY a.`views` DESC LIMIT 5"); goto No_6g; lAviF: $art = pdo_fetch('SELECT a.`id`, a.`uid`, a.`card_id`, a.`title`, a.`content`, a.`share_words`, a.`pic`, a.`create_time`, i.`name`, i.`picture`, i.`company`, i.`mobile`, i.`title` as `card_title`, i.`qrcode` FROM ' . tablename($this->tablePrefix . 'art') . ' as a LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' as i ON i.`id` = a.`card_id` WHERE a.`id`=:art_id', array(":art_id" => $art_id)); goto qzp0V; GHwrh: include $this->template('article_content'); goto yzB1k; VzrYb: foreach ($view_list as $k => $v) { goto D2QVi; D8907: $view_list[$k]['qrcode'] = getFileUrlSd($v['qrcode']); goto HLxfW; D2QVi: $view_list[$k]['picture'] = getFileUrlSd($v['picture']); goto D8907; HLxfW: kllhD: goto ZuKOZ; ZuKOZ: } goto OMfG5; MZT2U: $art['content'] = str_replace($rs[1], $imgs, $art['content']); goto Z4fUe; h1OvT: preg_match_all('/<img.*?\ssrc="(.*?)".*?>/is', $art['content'], $rs); goto EHfPV; C1vKs: iAiun: goto iJpfO; dwY6J: Vc1Jv: goto MZT2U; u1Rz_: message(''); goto uY9pj; OMfG5: jW_AA: goto a3o6U; qzp0V: if ($art) { goto AO3eH; } goto wuu9a; yzB1k: } public function doMobileArtEdit() { goto DM6HA; DM6HA: global $_GPC, $_W; goto dzSHh; c0a_1: foreach ($imgs as $k => $img) { $imgs[$k] = 'http://img01.store.sogou.com/net/a/04/link?appid=100520029&url=' . $img; BL7uE: } goto C6Azf; q67g6: $imgs = $rs[1]; goto c0a_1; JkNcn: $art['content'] = str_replace('width: 0px;', '', $art['content']); goto QY6z8; iMqm6: $rs[1] = array_unique($rs[1]); goto q67g6; r8xY2: if (!($art_id < 1)) { goto WoQe0; } goto gahfy; UkHMQ: $art['content'] = str_replace($rs[1], $imgs, $art['content']); goto h6LEq; cJVvM: preg_match_all('/<img.*?\ssrc="(.*?)".*?>/is', $art['content'], $rs); goto iMqm6; dzSHh: load()->func('tpl'); goto l74ji; C6Azf: Yd4wN: goto UkHMQ; KXOKB: if ($art) { goto xlfwG; } goto i711B; A_g1w: $art = pdo_fetch('SELECT a.`content`, i.`name`, i.`picture`, i.`company`, i.`mobile`, i.`title` as `card_title`, i.`qrcode` FROM ' . tablename($this->tablePrefix . 'art') . ' as a LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' as i ON i.`id` = a.`card_id` WHERE a.`id`=:art_id', array(":art_id" => $art_id)); goto KXOKB; FOq_j: $art['qrcode'] = getFileUrlSd($art['qrcode']); goto cJVvM; h6LEq: $art['content'] = str_replace('display:none;', '', $art['content']); goto JkNcn; g33N2: xlfwG: goto KYuPl; ZZccW: WoQe0: goto A_g1w; i711B: message(''); goto g33N2; KYuPl: $art['picture'] = getFileUrlSd($art['picture']); goto FOq_j; l74ji: $art_id = intval($_GPC['art_id']); goto r8xY2; Yq_kP: $art['content'] = preg_replace('/<iframe.*?\ssrc=".*?".*?>/is', '', $art['content']); goto L4MEU; gahfy: message(''); goto ZZccW; QY6z8: $art['content'] = str_replace('href', 'data-href', $art['content']); goto Yq_kP; L4MEU: include $this->template('article_edit'); goto NSuLj; NSuLj: } public function doMobileUploadTempPic() { goto EWaEE; s06sC: if ($_GPC['noUrl']) { goto dqq5_; } goto CMMwc; ORiHC: $this->json_return('' . $result['message'], 1); goto WWRaT; Si1tF: return $this->json_return('ok', 0, $result); goto fnJmz; EWaEE: global $_GPC, $_W; goto oG0rx; WWRaT: FnAkb: goto s06sC; A0ia7: if (!($result['success'] !== true)) { goto FnAkb; } goto ORiHC; CMMwc: $result['path'] = getFileUrlSd($result['path']); goto V4cRY; V4cRY: dqq5_: goto Si1tF; oG0rx: $result = $this->uploadFile($_FILES['pic']); goto A0ia7; fnJmz: } private function uploadFile($file, $type = "image") { goto JIauX; O4CO7: load()->func('file'); goto St1Oq; hqyLe: $res = file_remote_upload($result['path'], true); goto Wo2FM; YCy1i: if (!(intval($_W['setting']['remote']['type']) > 0)) { goto Nt9Vf; } goto hqyLe; CIPo2: rho0T: goto AD7y5; St1Oq: $result = file_upload($file, $type); goto YCy1i; Wo2FM: if (!isset($res['errno'])) { goto rho0T; } goto LfSC_; LfSC_: return $this->json_return($res['message'], 1); goto CIPo2; AD7y5: Nt9Vf: goto KmqYu; JIauX: global $_GPC, $_W; goto O4CO7; KmqYu: return $result; goto QgydU; QgydU: } private function doWebUpdatecode($code, $configParentData, $tableParent) { goto C_cjq; C_cjq: global $_GPC, $_W; goto G9loi; oiJ_5: Wrtic: goto RqDwk; nMK7i: g6mbS: goto yNF9o; vbETv: foreach ($configParentData['children'] as $v) { goto gksED; bQbGT: hs3Hj: goto AGqJW; M_OWJ: $v['sort_order'] = intval($v['sort_order']); goto RKupa; o6FG4: $v['parent_id'] = $tableParent['id']; goto eF06v; gksED: $v['uniacid'] = $_W['uniacid']; goto o6FG4; RKupa: pdo_insert($this->tablePrefix . $this->configTable, $v); goto bQbGT; eF06v: $v['status'] = intval($v['status']); goto M_OWJ; AGqJW: } goto nMK7i; yNF9o: LX2na: goto ThlNe; G9loi: foreach ($configParentData['children'] as $k2 => $v2) { goto KJo2W; Ooieu: clO7Y: goto BrxLU; KJo2W: foreach ($tableParent['children'] as $j => $item) { goto bdgjp; pgouB: unset($configParentData['children'][$k2]); goto wVNYo; lA0gU: if (!($item['value'] === '' || $item['code'] == 'system_update_status')) { goto UB2mh; } goto kzuGl; wVNYo: unset($tableParent['children'][$j]); goto JkOTR; bdgjp: if (!($item['code'] === $v2['code'])) { goto Fsidv; } goto lA0gU; xSckx: pdo_update($this->tablePrefix . $this->configTable, $v2, array("code" => $v2['code'], "uniacid" => $_W['uniacid'])); goto YHdQK; kzuGl: $v2['status'] = intval($v2['status']); goto R_kh2; wQZwn: WvOIL: goto cQVet; R_kh2: $v2['sort_order'] = intval($v2['sort_order']); goto xSckx; YHdQK: UB2mh: goto pgouB; JkOTR: Fsidv: goto wQZwn; cQVet: } goto Ooieu; BrxLU: z_ke7: goto Zqn1S; Zqn1S: } goto oiJ_5; RqDwk: if (!(count($configParentData['children']) > 0)) { goto LX2na; } goto vbETv; ThlNe: } private function doWebSystemUpdateStatus($arr) { goto TiadI; TiadI: global $_GPC, $_W; goto eLoUr; W9DIg: $temp = false; goto FEPEL; CWgJZ: return $temp; goto WkkUR; OlCKm: r_3lH: goto KkI4g; KkI4g: foreach ($arr as $k => $v) { goto XDend; XDend: if (!($v['code'] == 'basic_set')) { goto F_n6L; } goto GoGEn; fvy6i: F_n6L: goto LSVc9; GoGEn: foreach ($v['children'] as $k2 => $v2) { goto vp3NN; z1Aqx: $temp = false; goto YyyCZ; ab3kU: $temp = true; goto qq0Bc; TVDwv: if (intval($v2['value']) !== intval($status)) { goto b1cWF; } goto ab3kU; kwlUf: goto UL_ne; goto wFo3X; rxOtU: TYOjV: goto W4ltw; qq0Bc: goto VxvJy; goto OAGxK; OAGxK: b1cWF: goto z1Aqx; wFo3X: NrN5o: goto rxOtU; vp3NN: if (!($v2['code'] == 'system_update_status')) { goto NrN5o; } goto TVDwv; YyyCZ: VxvJy: goto kwlUf; W4ltw: } goto q1P44; Gitl_: goto sL8g5; goto fvy6i; q1P44: UL_ne: goto Gitl_; LSVc9: l8A3_: goto GOkYd; GOkYd: } goto P8ui1; P8ui1: sL8g5: goto CWgJZ; FEPEL: if (!empty($status)) { goto r_3lH; } goto DF8Hy; eLoUr: $status = getAppConfSd('system_update_status'); goto W9DIg; DF8Hy: return false; goto OlCKm; WkkUR: } private function sendTemplateMsg($touser, $temp_id, $page, $form_id, $data) { goto CF5U0; Tc7V1: $response = ihttp_post($url, json_encode($postdata)); goto yrsz0; ym2Wg: $token = $account_api->getAccessToken(); goto gN1wF; yrsz0: return $response; goto wu5SJ; gN1wF: $url = getOtherConf('send_tempMsg_url') . $token; goto Lg0ws; CF5U0: $account_api = WeAccount::create(); goto ym2Wg; Lg0ws: $postdata = array("touser" => $touser, "template_id" => $temp_id, "page" => $page, "form_id" => $form_id, "data" => $data); goto Tc7V1; wu5SJ: } private function sendAccountMsg($touser, $page, $data, $type, $t_uid) { goto VK5QT; yRIFF: $account_api = WeAccount::create(); goto AemrU; RDQIj: mINkT: goto hh6mQ; MuSLn: zkU5i: goto jcIv3; hh6mQ: $appid = $_W['oauth_account']['key']; goto gEyIL; Oghdm: jYXBb: goto Q2SMb; nyICM: $account_appid = getAppConfSd('account_appid'); goto Dh3Vy; l0il2: $response = ihttp_post($url, json_encode($postdata)); goto JIg58; AemrU: $token = $account_api->getAccessToken(); goto nyICM; IfwQ_: return false; goto qAqhO; ignFz: ZjMX3: goto fAjFv; jcIv3: $postdata = array("touser" => $touser, "mp_template_msg" => array("appid" => $account_appid, "template_id" => $temp_id, "url" => "http://weixin.qq.com/download", "miniprogram" => array("appid" => $appid, "pagepath" => $page), "data" => $data)); goto l0il2; Npxx_: return false; goto RDQIj; Gz6Bb: $url = 'https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send?access_token=' . $token; goto b_eZn; JIg58: pdo_insert($this->tablePrefix . 'msglog', array("uniacid" => $_W['uniacid'], "uid" => $t_uid, "msg" => 'accountMSG' . $type, "r_content" => $response['content'], "create_time" => time())); goto okhVE; ZuHyS: if ($temp_id) { goto wRVTM; } goto cDYGM; AirmK: wRVTM: goto Gz6Bb; Q2SMb: return true; goto ignFz; ytrBS: if ($re['errcode'] == 0 && $re['errmsg'] == 'ok') { goto jYXBb; } goto K_jaa; gEyIL: if ($appid) { goto GdvvJ; } goto IfwQ_; VK5QT: global $_GPC, $_W; goto yRIFF; b_eZn: foreach ($data as $k => $v) { goto miF1_; ahoY2: $data[$k]['color'] = '#173177'; goto A8WCy; N5cX2: if (!($k == 'remark' && !isset($v['color']))) { goto W2u2D; } goto zYFcq; miF1_: if (!($k == 'first' && !isset($v['color']))) { goto ouMKH; } goto W4e1E; W4e1E: $data[$k]['color'] = '#173177'; goto Zz51v; OEwW0: jRt56: goto N5cX2; EUuye: $data[$k]['color'] = '#173177'; goto OEwW0; Snvu_: if (!($k == 'keyword1' && !isset($v['color']))) { goto TXa5O; } goto ahoY2; Q_8Fs: if (!($k == 'keyword2' && !isset($v['color']))) { goto jRt56; } goto EUuye; A8WCy: TXa5O: goto Q_8Fs; q5iFk: W2u2D: goto NHYVU; Zz51v: ouMKH: goto Snvu_; zYFcq: $data[$k]['color'] = '#173177'; goto q5iFk; NHYVU: u3z80: goto GJT8v; GJT8v: } goto MuSLn; cDYGM: return false; goto AirmK; qAqhO: GdvvJ: goto sipyU; a8WDf: goto ZjMX3; goto Oghdm; sipyU: $temp_id = getAppConfSd('account_tempid'); goto ZuHyS; K_jaa: return false; goto a8WDf; okhVE: $re = json_decode($response['content'], true); goto ytrBS; Dh3Vy: if ($account_appid) { goto mINkT; } goto Npxx_; fAjFv: } private function sendSubMsg($touser, $temp_id, $page, $data) { goto WW4BK; d56hd: $postdata = array("touser" => $touser, "template_id" => $temp_id, "page" => $page, "data" => $data); goto BNNeK; meNgR: return $response; goto SDvzk; g9h49: $url = 'https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=' . $token; goto d56hd; BNNeK: $response = ihttp_post($url, json_encode($postdata)); goto meNgR; WW4BK: $account_api = WeAccount::create(); goto QtonF; QtonF: $token = $account_api->getAccessToken(); goto g9h49; SDvzk: } private function getFansInfoByUid($uid, $field) { goto XSolW; XSolW: if (in_array($field, array("openid", "nickname"))) { goto uN8NA; } goto vuLgR; vuLgR: return false; goto Mtufn; m8BsC: return $fans[$field]; goto XvsXt; Mtufn: uN8NA: goto cAdXo; cAdXo: $fans = pdo_fetch('SELECT `openid` FROM ' . tablename('mc_mapping_fans') . ' WHERE uid = :uid LIMIT 1', array(":uid" => $uid)); goto m8BsC; XvsXt: } public function doWebManage() { goto Muuts; q8UWc: $feed_back = $this->createWebUrl('feedBackList'); goto VqUWo; RteTB: $agent_design = $this->createWebUrl('agentDesign'); goto Z2hgF; SEgeK: $industry = $this->createWebUrl('industry'); goto SsccR; fYqUJ: $member_grade = $this->createWebUrl('MemberGrade'); goto k9UEP; cElNb: $item_banner = $this->createWebUrl('itemBanner'); goto ca5Kx; YUO8t: $withdrawal_applys = $this->createWebUrl('withdrawalApplys'); goto c6yAv; Y3AZB: $agent_grade = $this->createWebUrl('agentGrade'); goto RteTB; C0MKo: Mtw99: goto kD4b4; FWIBA: $service_group_set = $this->createWebUrl('serviceGroupSet'); goto C0MKo; cQbA3: $square_set = $this->createWebUrl('squareSet'); goto qb2X8; Muuts: global $_GPC, $_W; goto Srw86; okZlq: $dashboard = $this->createWebUrl('dashboard'); goto JaF49; Yw3j_: $personal_certify = $this->createWebUrl('personalCertify'); goto Zwyog; GZGVn: $square_report = $this->createWebUrl('squareReport'); goto cQbA3; PULjF: $come_back = $this->createWebUrl('comebackList'); goto q8UWc; SsccR: $identify = $this->createWebUrl('identify'); goto k73L6; CmbUI: if (!$show_service_set) { goto Mtw99; } goto FWIBA; CDjCn: $red_packets_set = $this->createWebUrl('redPackersSet'); goto gW1bc; un5Rx: $art_set = $this->createWebUrl('artPoster'); goto tGXG2; WpP3A: $user_set = $this->createWebUrl('userSet'); goto eh1jI; lhcG4: $wallpaper = $this->createWebUrl('wallpaper'); goto pYnNA; v3APX: $withdrawal_apply = $this->createWebUrl('withdrawalApply'); goto YUO8t; z4qh8: $referermenu = array(); goto okZlq; p37ts: $item = $this->createWebUrl('item'); goto t1anL; tGXG2: $art_setting = $this->createWebUrl('artSetting'); goto Yw3j_; wd2lN: $withdrawal_statistics = $this->createWebUrl('withdrawalStatistics'); goto r_gDk; Srw86: $url = $_W['siteroot'] . 'web/index.php?c=miniapp&a=version&do=home' . '&version_id=' . $_GPC['version_id']; goto XiLyH; M8voj: $square_type = $this->createWebUrl('squareType'); goto vpgrw; Fw5zU: $examine_square = $this->createWebUrl('examineSquare'); goto M8voj; O9CVQ: $group_message = $this->createWebUrl('groupMessage'); goto WpP3A; XiLyH: $img = '../../attachment/headimg_' . $_W['uniacid'] . '.jpg'; goto O6n2l; MASnh: include $this->template('manage/home'); goto oB8ef; YYwDd: $app_jump_set = $this->createWebUrl('appJumpSet'); goto wLCKu; z07iA: $card_bg = $this->createWebUrl('cardBg'); goto lhcG4; ca5Kx: $item_set = $this->createWebUrl('ItemSet'); goto Z9O_Q; rYX7v: $show_service_set = isset($helper_plugin['id']) ? true : false; goto CmbUI; V_fFF: $order = $this->createWebUrl('order'); goto L793D; JaF49: $dynamic = $this->createWebUrl('dynamic'); goto p37ts; lrsia: $app_use_help = $this->createWebUrl('appUseHelp'); goto RRXsZ; gW1bc: $red_packets_item = $this->createWebUrl('redPacketsItem'); goto qQtkM; Z9O_Q: $art_list = $this->createWebUrl('artList'); goto un5Rx; pYnNA: $mail_log = $this->createWebUrl('mailLog'); goto SEgeK; Z2hgF: $agent_set = $this->createWebUrl('agentSet'); goto v3APX; vpgrw: $square_banner = $this->createWebUrl('squareBanner'); goto GZGVn; IKwx7: $member_cdkey = $this->createWebUrl('MemberCdkey'); goto YtJbC; kD4b4: $system_config = $this->createWebUrl('systemConfig'); goto L9RLr; qb2X8: $app_nav_set = $this->createWebUrl('appNavSet'); goto YYwDd; g2Na_: $red_packets_refund = $this->createWebUrl('redPacketsRefund'); goto CDjCn; L9RLr: $config_back = $this->createWebUrl('configBack'); goto RyVVj; JCgGv: $user = $this->createWebUrl('user'); goto fYqUJ; O5NAd: $handled_certify = $this->createWebUrl('handledCertify'); goto JCgGv; fshz5: $group_type = $this->createWebUrl('groupType'); goto V_fFF; t1anL: $examine_item = $this->createWebUrl('examineItem'); goto z07iA; O6n2l: $fixedmenu = array("id" => 1, "type" => "file", "pid" => 0, "name" => "dashboard", "title" => "", "icon" => "fa fa-dashboard fa-fw", "condition" => "", "remark" => "Dashboard tips", "ismenu" => 1, "createtime" => 1497429920, "updatetime" => 1497429920, "weigh" => 143, "status" => "normal", "url" => $this->createWebUrl('dashboard'), "badge" => "hot", "py" => "kzt", "pinyin" => "kongzhitai"); goto z4qh8; L793D: $square = $this->createWebUrl('square'); goto Fw5zU; r_gDk: $red_packets_statistics = $this->createWebUrl('redPacketsStatistics'); goto ZFnQk; ZFnQk: $wait_refund = $this->createWebUrl('waitRefund'); goto MASnh; wLCKu: $app_api_set = $this->createWebUrl('appApiSet'); goto lrsia; c6yAv: $agent_statistics = $this->createWebUrl('agentStatistics'); goto g2Na_; eh1jI: $group = $this->createWebUrl('group'); goto fshz5; k9UEP: $member_rule = $this->createWebUrl('MemberRule'); goto IKwx7; YtJbC: $card_template = $this->createWebUrl('cardTemplate'); goto PULjF; qQtkM: $withdrawal_set = $this->createWebUrl('withdrawalSet'); goto wd2lN; k73L6: $item_design = $this->createWebUrl('itemDesign'); goto cElNb; Zwyog: $company_certify = $this->createWebUrl('companyCertify'); goto O5NAd; RRXsZ: $helper_plugin = pdo_fetch('SELECT `id` FROM ' . tablename('modules_plugin') . ' WHERE `name`=\'super_card_plugin_helper\''); goto rYX7v; VqUWo: $enterprise_apply = $this->createWebUrl('enterpriseApply'); goto O9CVQ; vdZhN: $agent_center = $this->createWebUrl('agentCenter'); goto Y3AZB; RyVVj: $order_statistics = $this->createWebUrl('orderStatistics'); goto vdZhN; oB8ef: } public function doWebDashboard() { goto Fm9DZ; Fm9DZ: global $_GPC, $_W; goto IH2Tp; GCCt_: $count['successData'][] = $successData['count']; goto L6ASI; IZ0Nl: $server['php_version'] = PHP_VERSION; goto V8Q3m; JgiL0: $count['successData'] = array(); goto PbJ6X; xbK9S: $sevendnu = '80%'; goto UeZAH; oQ1wU: $count['time'] = array(); goto qEql2; Ppo3C: goto fvY04; goto Mwm2F; yEpGy: if (!($i < 30)) { goto Z2HoQ; } goto BqCjf; uNptq: $identify_total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'identify') . ' WHERE `uniacid` = ' . $_W['uniacid']); goto lSuYq; iXaLW: $today_user_total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'user') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` > ' . $start_time); goto P82Fc; WHGMq: $personal_certify = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'certify') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type`= 2 and `status` = 0'); goto Gn_Z4; mhwbX: $today_red_packets_num = pdo_fetch('SELECT COUNT(*) as `count`  FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . 'WHERE `status` > 0 and `create_time` > ' . $start_time); goto ywZav; Gn_Z4: $company_certify = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'certify') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type`= 1 and `status` = 0'); goto ZYJ3Q; ULhq7: $count['successData'] = array_reverse($count['successData']); goto DgJGM; eQGDp: $todayorder = 132; goto xbK9S; ywZav: $today_square = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'square') . ' WHERE uniacid = ' . $_W['uniacid'] . ' and status = 1 and `create_time` > ' . $start_time); goto yKeWJ; A8FXi: $count['time'] = array_reverse($count['time']); goto qvED1; etfqj: V5dyD: goto T783E; HlaUE: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto GCCt_; BqCjf: $prevday1 = date('Y-m-d 00:00:00', strtotime("-{$i} days")); goto lTmvt; FpJNO: include $this->template('manage/dashboard'); goto d40RS; EWYXt: $totaluser = 35200; goto paQdU; Kh2qv: $totalorder = 32143; goto f_Fbq; V8Q3m: $server['mysql_version'] = pdo_fetch('select version() as version'); goto V89YW; K_aw_: $vip_total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'user') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `vip` > 0'); goto feygC; YWACC: $todayuserlogin = 430; goto eGoGJ; ZYJ3Q: $ex_square_total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'square') . 'WHERE uniacid = ' . $_W['uniacid'] . ' and status=3'); goto JZqfP; F3DRe: $nextday = strtotime(date('Y-m-d 23:59:59', strtotime("-{$i} days"))); goto SjCeR; SjCeR: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto HlaUE; yKeWJ: $today_identify = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'identify') . ' WHERE uniacid = ' . $_W['uniacid'] . ' and `create_time` > ' . $start_time); goto t8O2f; JuIYD: fvY04: goto yEpGy; xU5nN: $today_success_order = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` > ' . $start_time); goto vYD_J; P82Fc: $today_item_total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and  `no_perfect` = 0 and `create_time` > ' . $start_time); goto xU5nN; L6ASI: $count['totalData'][] = $totalData['count']; goto iCBFu; T783E: $i++; goto Ppo3C; b4cmU: $start_time = strtotime(date('Y-m-d 00:00:00')); goto iXaLW; N9r3V: $entcon_total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'enterpriseapply') . ' WHERE `uniacid`=' . $_W['uniacid'] . ' and `status`= 0'); goto pXUT9; f_Fbq: $totalorderamount = 321; goto YWACC; V89YW: $server['server_version'] = php_uname('s') . php_uname('r'); goto nDubV; NzMnS: $server['timezone_get'] = date_default_timezone_get(); goto FpJNO; YjNRX: $user_total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'user') . ' WHERE `uniacid` = ' . $_W['uniacid']); goto K_aw_; lTmvt: $nextday1 = date('Y-m-d 23:59:59', strtotime("-{$i} days")); goto C93YP; DgJGM: $count['totalData'] = array_reverse($count['totalData']); goto A8FXi; KltNe: $server = array(); goto IZ0Nl; t8O2f: $withdrawal_apply = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 0'); goto KltNe; UeZAH: $uploadmode = 'local'; goto i3Kjd; lSuYq: $group_total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'group') . ' WHERE `uniacid` = ' . $_W['uniacid']); goto pq0dI; PbJ6X: $count['totalData'] = array(); goto oQ1wU; N7Auk: $addonVersion = '1.0.0.20180911_beta'; goto EWYXt; feygC: $order_total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid']); goto O5tHV; iCBFu: $count['time'][] = date('Y-m-d', strtotime("-{$i} days")); goto etfqj; i3Kjd: $dash = 1; goto YjNRX; JZqfP: $ex_item_total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `uniacid`=' . $_W['uniacid'] . ' and `status`=3'); goto N9r3V; paQdU: $totalviews = 219390; goto Kh2qv; eGoGJ: $todayusersignup = 2324; goto eQGDp; qEql2: $i = 0; goto JuIYD; O5tHV: $fee_total = pdo_getall($this->tablePrefix . 'orders', array("uniacid" => $_W['uniacid']), array("SUM(fee) as totalFee")); goto WHGMq; pq0dI: $square_total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'square') . ' WHERE uniacid = ' . $_W['uniacid'] . ' and status < 3'); goto b4cmU; vYD_J: $today_total_order = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` > ' . $start_time); goto mhwbX; Mwm2F: Z2HoQ: goto ULhq7; pXUT9: $item_total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `no_perfect` = 0'); goto uNptq; qvED1: $count = json_encode($count); goto N7Auk; C93YP: $prevday = strtotime(date('Y-m-d 00:00:00', strtotime("-{$i} days"))); goto F3DRe; IH2Tp: $count = array(); goto JgiL0; nDubV: $server['server_software'] = $_SERVER['SERVER_SOFTWARE']; goto NzMnS; d40RS: } public function doWebDynamic() { goto wVnej; S9WFA: $pagesize = $this->pageCount; goto NBlLN; TXBBq: ZZcZ2: goto uB1EY; l4765: goto B30hg; goto TXBBq; WYzXU: xqgtG: goto u5Hfb; jxyOz: B30hg: goto S9WFA; u5Hfb: $edit = $this->createWebUrl('dynamicEdit') . '&type=1'; goto BFqYK; uB1EY: $pageindex = 0; goto jxyOz; wAQzL: $list = pdo_getall($this->tablePrefix . 'dynamic', $where, array(), '', array("id DESC"), array($pageindex, $pagesize)); goto hSIhO; Nr2hm: $pager = pagination($total, $pageindex, $pagesize); goto wAQzL; NBlLN: $totalList = pdo_getall($this->tablePrefix . 'dynamic', $where, array("id"), '', array("id desc"), array()); goto Ob168; JiJ0N: $pageindex = $_GPC['page']; goto l4765; fHFRP: if (!isset($_GPC['page'])) { goto ZZcZ2; } goto JiJ0N; hSIhO: foreach ($list as $k => $v) { goto VioxF; HLfhZ: $list[$k]['pic'] = $v['pics'][0]; goto eT12k; VioxF: $v['pics'] = json_decode($v['pics'], true); goto HLfhZ; eT12k: TnmUz: goto mkwFC; mkwFC: } goto WYzXU; BFqYK: include $this->template('dynamic/list'); goto jf2q0; wVnej: global $_GPC, $_W; goto XZGbr; Ob168: $total = count($totalList); goto Nr2hm; XZGbr: $where['uniacid'] = $_W['uniacid']; goto fHFRP; jf2q0: } public function doWebDynamicEdit() { goto dfvvX; dfvvX: global $_GPC, $_W; goto l_ykM; ND_bf: $dynamic = $this->createWebUrl('dynamic'); goto BxRES; Cb8mZ: $type = intval($_GPC['type']); goto zwK9m; mvJVE: $type = $id > 0 ? intval($data['type']) : intval($_GPC['type']); goto ND_bf; zwK9m: if (!($id > 0)) { goto vxGH2; } goto X5tby; BxRES: include $this->template('dynamic/info2'); goto axiiz; S1bI7: vxGH2: goto mvJVE; dHvUC: $data['pics'] = json_decode($data['pics'], true); goto S1bI7; X5tby: $data = pdo_fetch('SELECT  `id`,`title`,`pics`,`content`,`order_sort`,`type`,`status`, `release_time` FROM ' . tablename($this->tablePrefix . 'dynamic') . ' WHERE `id`=:id', array(":id" => $id)); goto dHvUC; l_ykM: $id = intval($_GPC['id']); goto Cb8mZ; axiiz: } public function doWebDynamicSave() { goto WZaCG; LBkM7: MJL0z: goto l3iIj; ZU7h0: QjBIo: goto MTzFD; aQArP: $condition['update_time'] = time(); goto Rdj62; uQyfI: if (!(trim($_GPC['content']) == '')) { goto seUmm; } goto LTSFx; wWPkz: E4X0g: goto abhCg; V3QQJ: $this->json_return('', 0); goto LBkM7; Se84X: if ($id > 0) { goto htKBM; } goto K4_85; nWpLy: $result = pdo_insert($this->tablePrefix . 'dynamic', $condition); goto NLoh1; NLoh1: goto E4X0g; goto pUzkc; G9QMx: if (!(count($_GPC['pics']) < 1)) { goto vJ1vY; } goto SYi_O; abhCg: if ($result != false) { goto L6bfX; } goto Z42Q8; Z42Q8: $this->json_return('', 0); goto w67Ot; WZaCG: global $_GPC, $_W; goto aV1sA; SYi_O: $this->json_return('', 0); goto L1SVM; QJSRp: $condition['order_sort'] = intval($_GPC['order_sort']); goto xJj3s; VlV7C: $this->json_return('', 1); goto ZU7h0; FkhCL: $condition['release_time'] = strtotime($_GPC['release_time']); goto QJSRp; Rdj62: $result = pdo_update($this->tablePrefix . 'dynamic', $condition, array("id" => $id)); goto wWPkz; w67Ot: goto QjBIo; goto Q60f0; K4_85: $condition['uniacid'] = $_W['uniacid']; goto Q3hKh; Q60f0: L6bfX: goto VlV7C; Q3hKh: $condition['create_time'] = time(); goto noVyf; LSWUx: $condition['pics'] = json_encode($_GPC['pics']); goto uQyfI; xJj3s: $condition['status'] = intval($_GPC['status']); goto Se84X; LTSFx: $this->json_return('', 0); goto jQ9JJ; L1SVM: vJ1vY: goto LSWUx; noVyf: $condition['type'] = intval($_GPC['type']); goto nWpLy; pUzkc: htKBM: goto aQArP; slt4P: if (!(trim($_GPC['title']) == '')) { goto MJL0z; } goto V3QQJ; jQ9JJ: seUmm: goto vCz62; l3iIj: $condition['title'] = trim($_GPC['title']); goto G9QMx; aV1sA: $id = intval($_GPC['id']); goto slt4P; vCz62: $condition['content'] = trim($_GPC['content']); goto FkhCL; MTzFD: } public function doWebItem() { goto utTjO; HNLc0: $pager = pagination($total, $pageindex, $pagesize); goto ZB599; ObBZd: $order = '`i`.`collected`'; goto Q0z0g; Obagq: Nniag: goto XB_b4; kAfj2: $u_type = trim($_GPC['u_type']); goto LVOUy; tmQ_z: $where .= ' and `i`.`uid` = ' . $uid; goto lDRZQ; lDRZQ: ZPJXg: goto nZfMp; m2FGj: if (!($datemax && $datemin == false)) { goto HVni4; } goto KO4ZA; qIMPs: $where .= ' and `i`.`uid` > 0'; goto zoglx; RWiJw: $where .= ' and `i`.`name` LIKE \'%' . $name . '%\''; goto LyfcO; VoFFj: if (!($sort_type == 1)) { goto Nniag; } goto rY1sE; xL02L: if (!isset($_GPC['page'])) { goto XUL9o; } goto mMr4w; d1_Or: $where .= ' and `i`.`create_time` > ' . $datemin; goto UUtXN; WBo1B: $pageindex2 = 0; goto CinVY; e9SOE: XUL9o: goto fciiV; rNs61: if (!($datemin && $datemax)) { goto fipnu; } goto P4gHn; nZfMp: $nickname = trim($_GPC['nickname']); goto cpt19; KO4ZA: $where .= ' and `i`.`create_time` < ' . $datemax; goto eQ175; C4HKK: include $this->template('item/item_list'); goto wlZz3; WlX65: $datemax = strtotime($_GPC['datemax']); goto rNs61; SFDvM: if (!($sort_type == 3)) { goto THul4; } goto D7BcY; r_aMi: $total = count($allList); goto rW28C; CFADq: goto gArBN; goto e9SOE; wFeN2: if (!($datemin && $datemax == false)) { goto xJDzX; } goto d1_Or; JmvtN: B9qcS: goto K3gfT; Rru3i: $where .= ' and `i`.`uid` = 0'; goto JmvtN; phQRR: $where = ' Where `i`.`uniacid` = ' . $_W['uniacid'] . ' and `i`.`status` < 3 and `i`.`no_perfect` = 0'; goto UErdu; K3gfT: $sort_type = trim($_GPC['sort_type']); goto VoFFj; D7BcY: $order = '`i`.`views`'; goto ttfCv; hDJLE: if (!$nickname) { goto AwpVF; } goto uyvNE; AvX_H: if (!$name) { goto P8bsW; } goto RWiJw; JZdQB: if (!($u_type == 2)) { goto B9qcS; } goto Rru3i; dc3eA: $mobile = trim($_GPC['mobile']); goto hDJLE; UErdu: $order = '`i`.`create_time`'; goto DfvnV; P4gHn: $where .= ' and `i`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto j7bKt; mMr4w: $pageindex = intval($_GPC['page']); goto ibTXV; aTepM: $datemin = strtotime($_GPC['datemin']); goto WlX65; j7bKt: fipnu: goto wFeN2; UUtXN: xJDzX: goto m2FGj; eQ175: HVni4: goto xVIaS; P1Q8q: AwpVF: goto AvX_H; LVOUy: if (!($u_type == 1)) { goto EhPYS; } goto qIMPs; vpk4w: qMiZS: goto kAfj2; XB_b4: if (!($sort_type == 2)) { goto VcWvv; } goto ObBZd; IkGV4: $where .= ' and `i`.`mobile` = \'' . $mobile . '\''; goto vpk4w; DfvnV: $uid = intval($_GPC['uid']); goto xF08v; CinVY: gArBN: goto HNLc0; rY1sE: $order = '`i`.`recommend`'; goto Obagq; xVIaS: $allList = pdo_fetchall('SELECT `i`.`id` FROM ' . tablename($this->tablePrefix . 'item') . ' `i`' . ' LEFT JOIN ' . tablename('mc_members') . ' `m` ON `i`.`uid`=`m`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'user') . ' `u` ON `i`.`uid`=`u`.`id` ' . $where . ' ORDER BY ' . $order . ' DESC'); goto r_aMi; fciiV: $pageindex = 0; goto WBo1B; ttfCv: THul4: goto aTepM; ibTXV: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto CFADq; utTjO: global $_GPC, $_W; goto n6DBm; xF08v: if (!$uid) { goto ZPJXg; } goto tmQ_z; rW28C: $pagesize = 5; goto xL02L; uyvNE: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto P1Q8q; Q0z0g: VcWvv: goto SFDvM; ZB599: $list = pdo_fetchall('SELECT `i`.`id`,`i`.`name`,`i`.`uid`,`i`.`picture`,`i`.`mobile`,`i`.`company`,`i`.`title`,`i`.`industry`,`i`.`save_paper`,`i`.`views`,`i`.`collected`,`i`.`recommend`, `i`.`serv`, `i`.`status`,`i`.`create_time`,`m`.`nickname`,`m`.`avatar`,`u`.`vip` FROM ' . tablename($this->tablePrefix . 'item') . ' `i`' . ' LEFT JOIN ' . tablename('mc_members') . ' `m` ON `i`.`uid`=`m`.`uid`  LEFT JOIN ' . tablename($this->tablePrefix . 'user') . ' `u` ON `i`.`uid`=`u`.`id` ' . $where . ' ORDER BY ' . $order . ' DESC limit ' . $pageindex2 . ',' . $pagesize); goto C4HKK; cpt19: $name = trim($_GPC['name']); goto dc3eA; zoglx: EhPYS: goto JZdQB; vkZlv: if (!$mobile) { goto qMiZS; } goto IkGV4; n6DBm: $url = $this->createWebUrl('item'); goto phQRR; LyfcO: P8bsW: goto vkZlv; wlZz3: } public function doWebItemEdit() { goto SQorS; lONQC: foreach ($industry as $k => $v) { goto m8NIa; SBq8S: i4vLj: goto hZwUn; kE90k: YlkT8: goto SBq8S; m8NIa: foreach ($industrys as $k2 => $v2) { goto mYMF9; mYMF9: if (!($v2 == $v['name'])) { goto r41tR; } goto g9wMR; TIiwd: Gk1tG: goto dcJnw; rTtab: r41tR: goto TIiwd; pQ79N: $industryArr[$v['id']] = $v['name']; goto rTtab; g9wMR: $industry[$k]['is_true'] = 1; goto pQ79N; dcJnw: } goto kE90k; hZwUn: } goto y58dC; v2Fyt: include $this->template('item/info'); goto L_8YD; SVVPp: $data['style'] = 1; goto NAbTx; y58dC: eUKPo: goto TwBDx; M8KNp: foreach ($cardTem as $k => $v) { goto WO0z0; HBImu: fHs8f: goto J8e1R; WO0z0: $tempArr[$k]['id'] = $v['id']; goto fhywe; fhywe: $tempArr[$k]['name'] = $v['name']; goto HBImu; J8e1R: } goto XDs2S; D8tEt: $cardbg = pdo_getall($this->tablePrefix . 'cardbg', array("uniacid" => $_W['uniacid'], "status" => 1, "type" => 0), array("id", "name")); goto PEL09; PEL09: $cardTem = unserialize(getAppConfSd('card_style')); goto jIxhi; ls3TO: $data = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE id = :id LIMIT 1', array(":id" => $id)); goto xEKl4; slLeS: $id = intval($_GPC['id']); goto AUDQt; AUDQt: $industry = pdo_getall($this->tablePrefix . 'industry', array("uniacid" => $_W['uniacid'], "status" => 1), array("id", "name")); goto SVVPp; SQorS: global $_GPC, $_W; goto slLeS; jIxhi: if (!(is_array($cardTem) && count($cardTem) > 0)) { goto ouh7w; } goto BiKs3; XdqNB: ouh7w: goto v2Fyt; XDs2S: Od3L7: goto XdqNB; uXBuC: $industryArr = array(); goto lONQC; TwBDx: $industrysStr = json_encode($industryArr); goto fnRK6; BiKs3: $tempArr = array(); goto M8KNp; fnRK6: IYFk6: goto D8tEt; xEKl4: $industrys = explode(',', $data['industry']); goto uXBuC; NAbTx: if (!($id > 0)) { goto IYFk6; } goto ls3TO; L_8YD: } public function json_return($msg = "", $code = 1, $data = array()) { goto K8PMw; qIPln: echo json_encode($arr); goto wCDZy; B5yxf: $arr['data'] = $data; goto KRf2P; HANSo: if (!(is_array($data) && count($data) > 0)) { goto IvdRm; } goto B5yxf; K8PMw: $arr = array("code" => $code, "msg" => $msg); goto HANSo; KRf2P: IvdRm: goto qIPln; wCDZy: exit; goto VhtGO; VhtGO: } public function doWebItemSave() { goto gav04; dYK1R: $condition['email'] = $_GPC['email']; goto O6zJC; cjBip: goto zNzN3; goto IHaa3; ls2oF: if (!($tencent_map_key != '')) { goto t4Zn_; } goto GxWhV; yg4dn: $condition['create_time'] = time(); goto oZWLj; Fk7yJ: $condition['intro_title'] = $_GPC['intro_title']; goto EU9XL; qu0aa: CJK38: goto NwUDa; CxoWi: wu0T5: goto CNNg5; qdaAe: xCpof: goto iW62s; oiUe4: $condition['latitude'] = $re['lat']; goto pVyz6; YnqOH: $condition['bg_img'] = $cardbg['bg_url']; goto wdVCw; wdVCw: $condition['bg_color'] = $cardbg['text_color']; goto vnaeG; ylUSN: $condition['qq'] = $_GPC['qq']; goto doHfW; BetvQ: lJPiw: goto VN19T; U_Ilg: if ($result != false) { goto WWmE5; } goto LkB6R; BNc2X: nsWnU: goto vHjR6; p6PvM: $this->json_return('', 0); goto jptmK; bzXls: if (!($re != false)) { goto nsWnU; } goto oiUe4; UL8iV: if (preg_match('/^([0-9A-Za-z\-_\.]+)@([0-9a-z]+\.[a-z]{2,3}(\.[a-z]{2})?)$/i', $_GPC['email'])) { goto IijqI; } goto aJ51J; NwUDa: zNzN3: goto U_Ilg; C60x_: $this->json_return(''); goto IFAHJ; G13Oq: $this->collect($uid, $id, 1, 1); goto tDAlR; EZrXa: $condition['weibo'] = $_GPC['weibo']; goto BA2qM; e7HhH: $condition['status'] = intval($_GPC['status']); goto Fk7yJ; FaQlQ: $condition = array(); goto v8ZrF; SaTiU: $id = intval($_GPC['id']); goto C1DUu; CNNg5: if (empty($_GPC['mobile'])) { goto EWOzy; } goto mSXMA; BA2qM: $condition['job_no'] = $_GPC['job_no']; goto GQFCn; ckrDF: goto ehWyD; goto C4Eun; b5xk2: if (!($_GPC['intro_content'] != '')) { goto wsD9_; } goto lwK5w; vnaeG: Fpqce: goto SXwof; oZWLj: $result = pdo_insert($this->tablePrefix . 'item', $condition); goto cjBip; IzvP1: $this->json_return('', 0); goto CxoWi; ChFVp: if ($id > 0) { goto h5Nie; } goto xtm2H; BtOJb: $condition['intro_content'] = urlencode($_GPC['intro_content']); goto X1acw; BDP5w: $condition['name'] = $_GPC['name']; goto IhD2A; xCiuL: TdSqw: goto VDTCg; GxWhV: $re = getLatLng($addr, $tencent_map_key); goto bzXls; MBnNd: Fnk22: goto L9KGA; lvVLx: if (!($bg_id != 0)) { goto kYjQ_; } goto pzrvc; Zw9B9: z6AV3: goto FaQlQ; O6zJC: $condition['latitude'] = $_GPC['latitude']; goto sxALk; jYq1K: $this->json_return('', 0); goto mGKEC; tDAlR: $this->views($uid, $id, 1, 1); goto qu0aa; iW62s: $condition['forward'] = $_GPC['forward']; goto b5xk2; C1DUu: $uid = intval($_GPC['uid']); goto hotER; k6rSE: $condition['clone'] = intval($_GPC['clone']); goto e7HhH; O6Ymq: $condition['province'] = $_GPC['province']; goto nR48g; gav04: global $_GPC, $_W; goto SaTiU; fLcSC: $this->json_return('500', 0); goto xjs_4; hotER: if (!empty($_GPC['name'])) { goto wu0T5; } goto IzvP1; pVyz6: $condition['longitude'] = $re['lng']; goto BNc2X; L9KGA: EWOzy: goto w91Bq; PR5AZ: if (!empty($_GPC['tem_id'])) { goto HUzC4; } goto jYq1K; SXwof: kYjQ_: goto xiNrs; V01NZ: $this->json_return('', 0); goto QGWed; sxALk: $condition['longitude'] = $_GPC['longitude']; goto ylUSN; xjs_4: mZHWJ: goto BtOJb; a8Vdm: $condition['dict'] = $_GPC['dict']; goto n3iXJ; aJ51J: $this->json_return('', 0); goto le025; axALZ: $addr = trim($condition['province'] . $condition['city'] . $condition['dict'] . $condition['address']); goto a30GV; VN19T: $condition['style'] = intval($_GPC['tem_id']); goto CjFO_; X1acw: wsD9_: goto iPTt2; IFAHJ: ehWyD: goto QpQQ9; WGdUq: $condition['update_time'] = time(); goto y4DrL; IHaa3: h5Nie: goto WGdUq; w91Bq: if (!empty($_GPC['title'])) { goto F6Iww; } goto p6PvM; g384e: if (!empty($_GPC['company'])) { goto zlWuB; } goto ha7oD; nObGM: $condition['fax'] = $_GPC['fax']; goto T51P_; iPTt2: if (!($condition['latitude'] == '' || $condition['longitude'] == '')) { goto JCPE1; } goto cwrtt; cqfQp: $condition['picture'] = $_GPC['picture']; goto BDP5w; doHfW: $condition['tel'] = $_GPC['tel']; goto nObGM; cwrtt: if (!($condition['province'] != '' && $condition['city'] != '' && $condition['dict'] != '' && $condition['address'] != '')) { goto TdSqw; } goto axALZ; lwK5w: if (!(mb_strlen($_GPC['intro_content'], 'utf-8') > 500)) { goto mZHWJ; } goto fLcSC; PH2dV: $condition['industry'] = $_GPC['industry']; goto dYK1R; ha7oD: $this->json_return('', 0); goto f9P68; kw_es: $condition['bg_id'] = $bg_id; goto YnqOH; YeixT: if (!($result != false)) { goto CJK38; } goto G13Oq; VDTCg: JCPE1: goto ChFVp; v8ZrF: $bg_id = intval($_GPC['bg_id']); goto lvVLx; IhD2A: $condition['mobile'] = $_GPC['mobile']; goto AUeWw; bHZLP: $this->json_return('', 0); goto MBnNd; f9P68: zlWuB: goto yZ9ye; mSXMA: if (preg_match('/^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89]|09)\d{8}$/', $_GPC['mobile'])) { goto Fnk22; } goto bHZLP; mGKEC: HUzC4: goto Epv8q; le025: IijqI: goto Zw9B9; LkB6R: $this->json_return('', 0); goto ckrDF; a30GV: $tencent_map_key = getAppConfSd('tencent_map_key'); goto ls2oF; IJ6O1: $condition['wx'] = $_GPC['wx']; goto EZrXa; wxJoK: $condition['collected'] = 2; goto yg4dn; IbxCN: $condition['forwarding'] = 1; goto wxJoK; xtm2H: $condition['uniacid'] = $_W['uniacid']; goto IbxCN; EU9XL: if (!(mb_strlen($_GPC['forward'], 'utf-8') > 30)) { goto xCpof; } goto PljCb; nR48g: $condition['city'] = $_GPC['city']; goto a8Vdm; y4DrL: $result = pdo_update($this->tablePrefix . 'item', $condition, array("id" => $id)); goto YeixT; UXb2V: $this->json_return('', 0); goto BetvQ; C4Eun: WWmE5: goto C60x_; xiNrs: if (!empty($_GPC['picture'])) { goto lJPiw; } goto UXb2V; jptmK: F6Iww: goto g384e; Epv8q: if (empty($_GPC['email'])) { goto z6AV3; } goto UL8iV; AUeWw: $condition['company'] = $_GPC['company']; goto O6Ymq; CjFO_: $condition['name'] = $_GPC['name']; goto cqfQp; GQFCn: $condition['public'] = intval($_GPC['public']); goto k6rSE; PljCb: $this->json_return('30', 0); goto qdaAe; yZ9ye: if (!empty($_GPC['industry'])) { goto WzyEa; } goto V01NZ; T51P_: $condition['www'] = $_GPC['www']; goto IJ6O1; bpTT0: $condition['title'] = $_GPC['title']; goto PH2dV; n3iXJ: $condition['address'] = $_GPC['address']; goto bpTT0; QGWed: WzyEa: goto PR5AZ; vHjR6: t4Zn_: goto xCiuL; pzrvc: $cardbg = pdo_fetch('SELECT `id`, `bg_url`,`text_color` FROM ' . tablename($this->tablePrefix . 'cardbg') . ' WHERE `id` = :id', array(":id" => $bg_id)); goto nDlVg; nDlVg: if (!($cardbg != false)) { goto Fpqce; } goto kw_es; QpQQ9: } public function doWebItemStatus() { goto MzRvv; nvdv8: goto kD306; goto BWsQ_; BWsQ_: h80tQ: goto PbyQV; fnOdA: $this->json_return(''); goto ZNRTR; KlPZE: $status = intval($_GPC['status']); goto JCUbY; qgMRc: goto bE_EV; goto OghYY; UiSA2: if (!($type == 2)) { goto h9PXp; } goto d4YRw; MTw0m: jEAOc: goto LvTAy; XKKwS: $this->json_return('', 0); goto qgMRc; LvTAy: if ($type == 1) { goto h80tQ; } goto UiSA2; OTK3W: if ($result) { goto LvDYl; } goto XKKwS; bfxBa: if (!($id < 1 || $type < 1)) { goto jEAOc; } goto U8u_Y; wczvx: $id = intval($_GPC['id']); goto KlPZE; Q4edN: kD306: goto OTK3W; OghYY: LvDYl: goto fnOdA; d4YRw: $result = pdo_update($this->tablePrefix . 'item', array("recommend" => $status), array("id" => $id)); goto vZc65; PbyQV: $result = pdo_update($this->tablePrefix . 'item', array("status" => $status), array("id" => $id)); goto Q4edN; JCUbY: $type = intval($_GPC['type']); goto bfxBa; U8u_Y: $this->json_return('', 0); goto MTw0m; vZc65: h9PXp: goto nvdv8; ZNRTR: bE_EV: goto Gz0fY; MzRvv: global $_GPC, $_W; goto wczvx; Gz0fY: } public function doWebItemDel() { goto KPxvR; xtIne: rI2T0: goto Ags4u; kUtG8: KpoL2: goto cmSGj; T3REs: $id = intval($_GPC['id']); goto mIMtD; Md46R: goto WBBIi; goto kUtG8; mIMtD: $uid = intval($_GPC['uid']); goto qlzp1; Ags4u: if ($result) { goto KpoL2; } goto tgsVu; KoGbv: $this->json_return(''); goto hDLzY; tgsVu: $this->json_return('', 0); goto Md46R; pLHNY: if (!($id > 0)) { goto rI2T0; } goto becoJ; becoJ: $result = pdo_delete($this->tablePrefix . 'item', array("id" => $id)); goto xtIne; KPxvR: global $_GPC, $_W; goto T3REs; fAWpM: $this->views($uid, $id, 1, 2); goto pLHNY; hDLzY: WBBIi: goto fq2CV; qlzp1: $this->collect($uid, $id, 1, 2); goto fAWpM; cmSGj: $this->DelItemAll($id); goto KoGbv; fq2CV: } public function doWebItemDelDou() { goto q_JOc; mt3pg: pdo_delete($this->tablePrefix . 'squarecomments', array("sid in" => $square['ids'])); goto f00fW; Duy8j: pdo_delete($this->tablePrefix . 'client', array("card_id" => $card_id, "uid" => $uid)); goto bHZ79; DcRHj: pdo_delete($this->tablePrefix . 'album', array("card_id" => $card_id)); goto kVfSy; VJawA: pdo_delete($this->tablePrefix . 'chatmsg', array("card_id" => $card_id, "uid" => $uid)); goto ztAlp; kCxKh: pdo_delete($this->tablePrefix . 'store', array("card_id" => $card_id, "uid" => $uid)); goto R0YxV; UFaUI: pdo_delete($this->tablePrefix . 'groups', array("card_id" => $card_id)); goto kJhnp; SwlTY: $rp = pdo_fetch('SELECT GROUP_CONCAT(`id`) as ids FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE uid = :uid AND card_id = :card_id', array(":card_id" => $card_id, ":uid" => $uid)); goto j0cRg; drue_: pdo_delete($this->tablePrefix . 'cardbg', array("card_id" => $card_id, "uid" => $uid)); goto DcRHj; UX3Jw: pdo_delete($this->tablePrefix . 'dynamic', array("card_id" => $card_id, "uid" => $uid)); goto wS9gg; vFZf0: pdo_delete($this->tablePrefix . 'clientfollow', array("client_id in" => $client1['ids'] . ',' . $client2['ids'])); goto iTWWf; aoQBJ: BXpFs: goto drue_; FwTwG: goto naTqx; goto aoQBJ; Vk1Wq: $this->json_return(''); goto dFHWc; nZ2dU: $client2 = pdo_fetch('SELECT GROUP_CONCAT(`id`) as ids FROM ' . tablename($this->tablePrefix . 'client') . ' WHERE c_uid = :c_uid AND c_card_id = :c_card_id', array(":c_card_id" => $card_id, ":c_uid" => $uid)); goto Duy8j; UUT67: pdo_delete($this->tablePrefix . 'chat', array("card_id" => $card_id, "uid" => $uid)); goto POlwm; j0cRg: pdo_delete($this->tablePrefix . 'redpacketsitem', array("card_id" => $card_id, "uid" => $uid)); goto AdUAK; wDbeV: $client1 = pdo_fetch('SELECT GROUP_CONCAT(`id`) as ids FROM ' . tablename($this->tablePrefix . 'client') . ' WHERE uid = :uid AND card_id = :card_id', array(":card_id" => $card_id, ":uid" => $uid)); goto nZ2dU; RveVw: pdo_delete($this->tablePrefix . 'comeback', array("t_card_id" => $card_id, "t_uid" => $uid)); goto SU9Fq; f00fW: $arts = pdo_fetch('SELECT GROUP_CONCAT(`id`) as ids FROM ' . tablename($this->tablePrefix . 'art') . ' WHERE uid = :uid AND card_id = :card_id', array(":card_id" => $card_id, ":uid" => $uid)); goto HY5wg; lce1o: $result = pdo_delete($this->tablePrefix . 'item', array("id" => $card_id, "uid" => $uid)); goto nv1_0; G27PD: $square = pdo_fetch('SELECT GROUP_CONCAT(`id`) as ids FROM ' . tablename($this->tablePrefix . 'square') . ' WHERE uid = :uid AND card_id = :card_id', array(":card_id" => $card_id, ":uid" => $uid)); goto Gua6S; HY5wg: pdo_delete($this->tablePrefix . 'art', array("card_id" => $card_id, "uid" => $uid)); goto ETfmY; wS9gg: pdo_delete($this->tablePrefix . 'website', array("card_id" => $card_id, "uid" => $uid)); goto kCxKh; FTUIe: pdo_delete($this->tablePrefix . 'audio', array("card_id" => $card_id)); goto SrRFm; ztAlp: pdo_delete($this->tablePrefix . 'chatmsg', array("t_card_id" => $card_id, "t_uid" => $uid)); goto yhVcX; dFHWc: naTqx: goto ZUEkb; WdQcg: $uid = intval($_GPC['uid']); goto h2VQp; Gua6S: pdo_delete($this->tablePrefix . 'square', array("card_id" => $card_id, "uid" => $uid)); goto kcDEq; CFoub: pdo_delete($this->tablePrefix . 'track', array("to_card_id" => $card_id, "to_uid" => $uid)); goto wDbeV; kcDEq: pdo_delete($this->tablePrefix . 'squarelikes', array("sid in" => $square['ids'])); goto mt3pg; kVfSy: pdo_delete($this->tablePrefix . 'pic', array("card_id" => $card_id)); goto wI53_; tD10y: $this->json_return('', 0); goto FwTwG; qfOKa: $this->json_return('', 0); goto rgP8R; bHZ79: pdo_delete($this->tablePrefix . 'client', array("c_card_id" => $card_id, "c_uid" => $uid)); goto vFZf0; AdUAK: pdo_delete($this->tablePrefix . 'redpacketslog', array("rp_id in" => $rp['ids'])); goto Y9YKM; GooQh: pdo_delete($this->tablePrefix . 'userwp', array("card_id" => $card_id, "uid" => $uid)); goto UX3Jw; POlwm: pdo_delete($this->tablePrefix . 'chat', array("t_card_id" => $card_id, "t_uid" => $uid)); goto VJawA; R0YxV: pdo_delete($this->tablePrefix . 'goods', array("card_id" => $card_id, "uid" => $uid)); goto G27PD; FSc9J: $group = pdo_fetch('SELECT GROUP_CONCAT(`id`) as ids FROM ' . tablename($this->tablePrefix . 'group') . ' WHERE uid = :uid AND card_id = :card_id', array(":card_id" => $card_id, ":uid" => $uid)); goto wqw4q; kJhnp: pdo_delete($this->tablePrefix . 'track', array("card_id" => $card_id, "uid" => $uid)); goto CFoub; HViSI: pdo_delete($this->tablePrefix . 'collect', array("card_id" => $card_id, "card_uid" => $uid)); goto GooQh; ETfmY: pdo_delete($this->tablePrefix . 'artrecord', array("art_id in" => $arts['ids'])); goto UUT67; wI53_: pdo_delete($this->tablePrefix . 'video', array("card_id" => $card_id)); goto FTUIe; SU9Fq: pdo_delete($this->tablePrefix . 'maillog', array("card_id" => $card_id, "uid" => $uid)); goto ANz0e; SrRFm: pdo_delete($this->tablePrefix . 'views', array("card_id" => $card_id, "card_uid" => $uid)); goto HViSI; u9_Y_: if (!($card_id > 0 & $uid > 0)) { goto pgnNs; } goto lce1o; ZUEkb: pgnNs: goto qfOKa; h2VQp: $card_id = intval($_GPC['id']); goto u9_Y_; Y9YKM: pdo_delete($this->tablePrefix . 'redpacketsrefund', array("rp_id in" => $rp['ids'])); goto Vk1Wq; yhVcX: pdo_delete($this->tablePrefix . 'adalert', array("card_id" => $card_id, "uid" => $uid)); goto FSc9J; q_JOc: global $_GPC, $_W; goto WdQcg; ANz0e: pdo_delete($this->tablePrefix . 'quickreply', array("card_id" => $card_id)); goto SwlTY; wqw4q: pdo_delete($this->tablePrefix . 'group', array("group_id in" => $group['ids'])); goto UFaUI; iTWWf: pdo_delete($this->tablePrefix . 'comeback', array("card_id" => $card_id, "uid" => $uid)); goto RveVw; nv1_0: if ($result) { goto BXpFs; } goto tD10y; rgP8R: } public function collect($uid, $card_id, $type, $ud) { goto PYNM3; U_bM1: if ($ud == 1) { goto alcBX; } goto KpCss; TkcK_: return $this->getItem($card_id, $coll['id'], 1); goto ZpMjk; D9GRi: return $coll; goto Gx70N; MheCe: Qa0OW: goto RMJi4; KpCss: if (!($ud == 2)) { goto YvRB4; } goto lAAXI; W7Opr: if (!($type == 2)) { goto rBhZD; } goto ReZLi; aX2zq: return $coll; goto dOFR0; yiaYJ: if (!($ud == 2)) { goto Qa0OW; } goto KP_xx; mZM76: pDk_9: goto nchG1; Gx70N: goto DP9_x; goto g3fyX; yFN3o: YvRB4: goto pBYFp; TkNBU: OWUF8: goto TkcK_; lAAXI: return pdo_delete($this->tablePrefix . 'collect', array("id" => $coll['id'])); goto yFN3o; pBYFp: goto aBTCL; goto G2WDC; PYNM3: if ($type == 1) { goto bmz20; } goto W7Opr; Kdhz7: if ($coll != false) { goto X8brl; } goto aX2zq; Zmg2W: DP9_x: goto mQHHb; BDSnD: if ($ud == 1) { goto OWUF8; } goto yiaYJ; czu6P: $coll = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'collect') . ' WHERE card_id = :card_id', array(":card_id" => $card_id)); goto Kdhz7; ReZLi: $coll = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'collect') . ' WHERE identify_id = :identify_id', array(":identify_id" => $card_id)); goto b3O04; p1x02: return $this->getItem($card_id, $coll['id'], 2); goto inkQv; g3fyX: KdxIi: goto U_bM1; RMJi4: goto j3GC4; goto TkNBU; xdg9U: goto pDk_9; goto npUuq; b3O04: if ($coll != false) { goto KdxIi; } goto D9GRi; mQHHb: rBhZD: goto xdg9U; ZpMjk: j3GC4: goto s0Yk8; G2WDC: alcBX: goto p1x02; inkQv: aBTCL: goto Zmg2W; s0Yk8: ASHJG: goto mZM76; npUuq: bmz20: goto czu6P; KP_xx: return pdo_delete($this->tablePrefix . 'collect', array("id" => $coll['id'])); goto MheCe; iGKho: X8brl: goto BDSnD; dOFR0: goto ASHJG; goto iGKho; nchG1: } public function getItem($card_id, $coll_id, $type) { goto dR_Ff; qPp51: $condition['avatar'] = $item['picture']; goto JqIkk; Ex2qR: return pdo_update($this->tablePrefix . 'collect', $condition, array("id" => $coll_id)); goto dHFVW; PddFv: GEIXN: goto lSukR; gUDci: if (!($type == 2)) { goto sSfcx; } goto KZdXF; JqIkk: SUP6R: goto YwW0t; kB6d8: sSfcx: goto MM5sv; emCg1: EAZ9p: goto gyvPg; lSukR: $item = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'item') . ' Where id = :id LIMIT 1', array(":id" => $card_id)); goto emCg1; KZdXF: $item = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'identify') . ' Where id = :id LIMIT 1', array(":id" => $card_id)); goto kB6d8; CK_ML: if ($type == 1) { goto GEIXN; } goto gUDci; RNlBY: $condition['title'] = $item['title']; goto PMlEF; YwW0t: $condition['name'] = $item['name']; goto RNlBY; MM5sv: goto EAZ9p; goto PddFv; PMlEF: $condition['company'] = $item['company']; goto Ex2qR; gyvPg: if (!isset($item['picture'])) { goto SUP6R; } goto qPp51; dR_Ff: $condition = array(); goto CK_ML; dHFVW: } public function views($uid, $card_id, $type, $ud) { goto xfDBG; gHIdf: goto X0_e1; goto fVHvk; Z1Yuy: XdOxR: goto Z8OZg; QP0Yq: if (!($type == 2)) { goto wrETy; } goto tnBhO; ESQL0: if ($coll != false) { goto EnYBP; } goto jOcPM; Lp1kJ: df7Jz: goto gHIdf; nXN90: ILoBg: goto mIZQs; fVHvk: KYePH: goto iAzy4; mIZQs: if ($ud == 1) { goto KYePH; } goto gNh9X; uCtrX: goto oBp7w; goto Hlf1I; q5s89: return $this->editViews($card_id, $coll['id'], 2); goto DlzI8; TRUwH: $coll = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'views') . ' WHERE card_id = :card_id', array(":card_id" => $card_id)); goto QBnNm; Ka9Ia: goto Abo0z; goto nXN90; qGhWQ: wrETy: goto kL6b3; iAzy4: return $this->editViews($card_id, $coll['id'], 1); goto t6MRh; jrb0H: return $coll; goto Ka9Ia; t6MRh: X0_e1: goto TcU2K; kL6b3: goto XdOxR; goto GJrxR; TIlcP: goto lLvS1; goto a2Zn7; tnBhO: $coll = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'views') . ' WHERE identify_id = :identify_id', array(":identify_id" => $card_id)); goto ESQL0; TcU2K: Abo0z: goto Z1Yuy; hlStw: return pdo_delete($this->tablePrefix . 'views', array("id" => $coll['id'])); goto Lp1kJ; Hlf1I: EnYBP: goto fpuX1; GJrxR: BQ_pU: goto TRUwH; DlzI8: lLvS1: goto vF8s6; vF8s6: oBp7w: goto qGhWQ; gNh9X: if (!($ud == 2)) { goto df7Jz; } goto hlStw; jOcPM: return $coll; goto uCtrX; fpuX1: if ($ud == 1) { goto t_mdU; } goto EPLmP; QBnNm: if ($coll != false) { goto ILoBg; } goto jrb0H; xJnPW: q7mQg: goto TIlcP; Qe2x0: return pdo_delete($this->tablePrefix . 'views', array("id" => $coll['id'])); goto xJnPW; a2Zn7: t_mdU: goto q5s89; xfDBG: if ($type == 1) { goto BQ_pU; } goto QP0Yq; EPLmP: if (!($ud == 2)) { goto q7mQg; } goto Qe2x0; Z8OZg: } public function editViews($card_id, $coll_id, $type) { goto IK5Qc; K5Ze5: $condition['title'] = $item['title']; goto jbYfg; jbYfg: $condition['company'] = $item['company']; goto n0wVu; HDDpj: $condition['name'] = $item['name']; goto K5Ze5; jhDK0: BaYpr: goto oUpJ_; IK5Qc: $condition = array(); goto v60jc; n0wVu: return pdo_update($this->tablePrefix . 'views', $condition, array("id" => $coll_id)); goto Y1HXR; v60jc: if ($type == 1) { goto c5VRk; } goto TuTVW; K7kJG: c5VRk: goto ehjG2; q2yZb: $item = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'identify') . ' Where id = :id LIMIT 1', array(":id" => $card_id)); goto jhDK0; JZb1L: $condition['avatar'] = $item['picture']; goto KpIps; oUpJ_: goto L9xUh; goto K7kJG; HUjQL: if (!isset($item['picture'])) { goto hSYr1; } goto JZb1L; IrXf6: L9xUh: goto HUjQL; ehjG2: $item = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'item') . ' Where id = :id LIMIT 1', array(":id" => $card_id)); goto IrXf6; KpIps: hSYr1: goto HDDpj; TuTVW: if (!($type == 2)) { goto BaYpr; } goto q2yZb; Y1HXR: } public function DelItemAll($card_id) { goto a5AFa; Rf6x4: pdo_delete($this->tablePrefix . 'website', array("card_id" => $card_id)); goto JpQMv; xXI6u: JWOVq: goto opMlO; a5AFa: if (!($card_id == false)) { goto Ko070; } goto B0MhC; JpQMv: $squareList = pdo_getall($this->tablePrefix . 'square', array("card_id" => $card_id), array("id"), ''); goto d379r; TSfh5: pdo_delete($this->tablePrefix . 'album', array("card_id" => $card_id)); goto UCFiw; QvNdK: pdo_delete($this->tablePrefix . 'comeback', array("card_id" => $card_id)); goto h9eMe; bwtLE: pdo_delete($this->tablePrefix . 'store', array("card_id" => $card_id)); goto ifsgG; he1R8: foreach ($albumIds as $v) { $albumArr[] = $v['id']; p_8qV: } goto Q_Y5a; Rz7w2: Ko070: goto ldgjP; Mmqi7: $albumArr = array(); goto he1R8; Q_Y5a: gpQ8K: goto zLfgE; U1ENj: pdo_delete($this->tablePrefix . 'dynamic', array("card_id" => $card_id)); goto bwtLE; h9eMe: pdo_delete($this->tablePrefix . 'cardbg', array("card_id" => $card_id)); goto TSfh5; mV4TL: foreach ($squareList as $v) { $idArr[] = $v['id']; eNM0d: } goto xXI6u; ldgjP: $albumIds = pdo_getall($this->tablePrefix . 'album', array("card_id" => $card_id), array("id"), ''); goto AFY9p; AFY9p: if (!(count($albumIds) > 0)) { goto oHkTT; } goto Mmqi7; mOD3t: oHkTT: goto QvNdK; UCFiw: pdo_delete($this->tablePrefix . 'video', array("card_id" => $card_id)); goto U1ENj; zLfgE: pdo_delete($this->tablePrefix . 'pic', array("album_id in" => $albumArr)); goto mOD3t; d379r: if (!(count($squareList) > 0)) { goto bvfhS; } goto XwpAM; opMlO: $this->doWebDemandDels($idArr); goto XffZ1; ifsgG: pdo_delete($this->tablePrefix . 'goods', array("card_id" => $card_id)); goto Rf6x4; B0MhC: return false; goto Rz7w2; XffZ1: bvfhS: goto lj95R; XwpAM: $idArr = array(); goto mV4TL; lj95R: } public function doWebDemandDels($idArr = array()) { goto XWYEl; ttAow: $ids = $idArr; goto fr8Nm; fr8Nm: vXalZ: goto BLW42; BLW42: pdo_delete($this->tablePrefix . 'squarelikes', array("sid in" => $ids)); goto iLPhB; DABQ7: bpvw4: goto Y3hNA; KnDoG: if ($result != false) { goto XFhoj; } goto DqQG3; OIUPg: goto bpvw4; goto G4QIJ; SQTKP: $result = pdo_delete($this->tablePrefix . 'square', array("id in" => $ids)); goto KnDoG; DqQG3: $this->json_return('', 0); goto OIUPg; w10F6: $this->json_return(''); goto DABQ7; XWYEl: global $_GPC, $_W; goto qeEGX; G4QIJ: XFhoj: goto w10F6; iLPhB: pdo_delete($this->tablePrefix . 'squarecomments', array("sid in" => $ids)); goto avI_6; avI_6: pdo_delete($this->tablePrefix . 'squareviews', array("sid in" => $ids)); goto SQTKP; qeEGX: $ids = $_GPC['ids']; goto Gn0vi; Gn0vi: if (!(is_array($idArr) && count($idArr) > 0)) { goto vXalZ; } goto ttAow; Y3hNA: } public function doWebItemAlbum() { goto XDZf5; XDZf5: global $_GPC, $_W; goto chwxs; AmFON: $total = count($totalList); goto Ckv_u; SBXyp: $pager = pagination($total, $pageindex, $pagesize); goto ywrtD; chwxs: $card_id = intval($_GPC['card_id']); goto N_URA; DaIVh: $pagesize = $this->pageCount; goto SBXyp; tfxRh: jNTsb: goto O8q1a; GW_vo: goto Arttf; goto tfxRh; NmOG5: $pageindex = $_GPC['page']; goto GW_vo; N_URA: $totalList = pdo_getall($this->tablePrefix . 'album', array("card_id" => $card_id, "uniacid" => $_W['uniacid']), array("id"), ''); goto AmFON; gMXS8: include $this->template('album/album_list'); goto R8aOE; ANlp_: Arttf: goto DaIVh; ywrtD: $list = pdo_getall($this->tablePrefix . 'album', array("card_id" => $card_id, "uniacid" => $_W['uniacid']), array("id", "card_id", "name", "path", "pic_num", "status"), '', array("id desc"), array($pageindex, $pagesize)); goto gMXS8; O8q1a: $pageindex = 1; goto ANlp_; Ckv_u: if (!isset($_GPC['page'])) { goto jNTsb; } goto NmOG5; R8aOE: } public function doWebAlbumEdit() { goto hJbhD; BAG0V: $card_id = intval($_GPC['card_id']); goto hJFDr; hJbhD: global $_GPC, $_W; goto BAG0V; hJFDr: include $this->template('album/album_info'); goto oyAIu; oyAIu: } public function doWebAlbumSave() { goto eDk3x; FPZMf: if (!(trim($_GPC['name']) == '')) { goto zgEUA; } goto g8RO3; CfKge: $card_id = intval($_GPC['card_id']); goto Abr5n; YngE0: if (!(trim($_GPC['path']) == '')) { goto BuprN; } goto HzsRI; x60d_: zgEUA: goto YngE0; EPLAB: $this->json_return(''); goto Hthp5; g8RO3: $this->json_return('', 0); goto x60d_; Abr5n: if (!($card_id < 1)) { goto njRco; } goto MgBsY; Hthp5: uUA5h: goto GUJBb; of3LW: $this->json_return('', 0); goto wRt9S; cESg6: if ($result != false) { goto lj3So; } goto of3LW; eDk3x: global $_GPC, $_W; goto CfKge; HzsRI: $this->json_return('', 0); goto Yix5s; EP4pe: $condition['card_id'] = $card_id; goto H2PwQ; ldYPT: $condition['status'] = intval($_GPC['status']); goto EP4pe; k0m3c: $condition['create_time'] = time(); goto N5NLw; wRt9S: goto uUA5h; goto pJt7F; N5NLw: $result = pdo_insert($this->tablePrefix . 'album', $condition); goto cESg6; RY2gV: njRco: goto FPZMf; pJt7F: lj3So: goto EPLAB; H2PwQ: $condition['uniacid'] = $_W['uniacid']; goto k0m3c; gUQEU: $condition['path'] = $_GPC['path']; goto ldYPT; Yix5s: BuprN: goto IFtX5; IFtX5: $condition['name'] = trim($_GPC['name']); goto gUQEU; MgBsY: $this->json_return('', 0); goto RY2gV; GUJBb: } public function doWebAlbumDel() { goto JZ7Bu; If7b4: if ($result != false) { goto J2XCs; } goto lpO7_; JZ7Bu: global $_GPC, $_W; goto w89ao; JtKFL: goto EsPOl; goto UZyNI; DAcMd: if ($count > 0) { goto xqxx1; } goto OlDp1; UZyNI: xqxx1: goto ow8Nh; mKz0r: J2XCs: goto FVhyz; RKqcf: $result = pdo_delete($this->tablePrefix . 'album', array("id" => $id)); goto If7b4; uYG4E: goto AvocC; goto mKz0r; lpO7_: $this->json_return(''); goto uYG4E; rcyCH: EsPOl: goto R0xHJ; ow8Nh: $this->json_return('' . $count . ', !', 0); goto rcyCH; WtJUE: $count = count($picList); goto DAcMd; FVhyz: file_delete($pic['path']); goto N300E; wSdmr: AvocC: goto JtKFL; w89ao: $id = intval($_GPC['id']); goto X1buY; OlDp1: $pic = pdo_fetch('SELECT `path` FROM ' . tablename($this->tablePrefix . 'album') . ' WHERE `id` = :id LIMIT 1', array(":id" => $id)); goto RKqcf; N300E: $this->json_return(''); goto wSdmr; X1buY: $picList = pdo_getall($this->tablePrefix . 'pic', array("album_id" => $id), array("id"), ''); goto WtJUE; R0xHJ: } public function doWebItemPic() { goto LzKG0; NMvV0: goto cj23N; goto Ljrwt; LzKG0: global $_GPC, $_W; goto yVcGc; o2DPW: $pagesize = $this->pageCount; goto Qron3; Qron3: $pager = pagination($total, $pageindex, $pagesize); goto Y8B_H; Ljrwt: xNNZt: goto LpRQ6; Y8B_H: $list = pdo_getall($this->tablePrefix . 'pic', array("album_id" => $album_id, "card_id" => $card_id, "uniacid" => $_W['uniacid']), array("id", "name", "path", "views"), '', array("id desc"), array($pageindex, $pagesize)); goto GMC9f; KX7UI: $pageindex = $_GPC['page']; goto NMvV0; LpRQ6: $pageindex = 1; goto cqteu; iSnqU: include $this->template('album/pic_list'); goto yG3rs; GMC9f: $card = pdo_fetch('SELECT `uid` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `id` = ' . $card_id); goto iSnqU; cqteu: cj23N: goto o2DPW; AwIkO: $album_id = intval($_GPC['album_id']); goto b5bIn; b5bIn: $totalList = pdo_getall($this->tablePrefix . 'pic', array("album_id" => $album_id, "card_id" => $card_id, "uniacid" => $_W['uniacid']), array("id"), ''); goto kbuuE; yVcGc: $card_id = intval($_GPC['card_id']); goto AwIkO; kbuuE: $total = count($totalList); goto CyDcH; CyDcH: if (!isset($_GPC['page'])) { goto xNNZt; } goto KX7UI; yG3rs: } public function doWebPicEdit() { goto djgA0; ojk2v: include $this->template('album/pic_info'); goto e97Hg; djgA0: global $_GPC, $_W; goto l2mGO; F76Vp: $album_id = intval($_GPC['album_id']); goto ojk2v; l2mGO: $card_id = intval($_GPC['card_id']); goto F76Vp; e97Hg: } public function doWebPicSave() { goto lXhzw; q0xdY: $condition['uniacid'] = $_W['uniacid']; goto beCyF; lXhzw: global $_GPC, $_W; goto bkEsP; YfsdV: $this->json_return('', 0); goto C8rI6; IsdM7: if ($re != false) { goto fe1fB; } goto iyWOX; ry1gq: $this->json_return(''); goto Ab2at; C8rI6: s79r2: goto cMb9W; cMb9W: $condition['name'] = trim($_GPC['name']); goto AHUmR; soKhn: $condition['album_id'] = $album_id; goto q0xdY; xwacN: $this->json_return('', 0); goto CZy5B; Ab2at: QLHDH: goto TV7en; TV7en: yora5: goto PyMSU; iyWOX: $this->json_return('', 0); goto Bh51E; vbAiH: $album_id = intval($_GPC['album_id']); goto r9NMr; Fj8sG: fe1fB: goto ry1gq; teg2C: kU22L: goto LaxFg; Bh51E: goto QLHDH; goto Fj8sG; AHUmR: $condition['card_id'] = $card_id; goto soKhn; WkJ2L: inFDx: goto IsdM7; r9NMr: if (!($card_id < 1 || $album_id < 1)) { goto s79r2; } goto YfsdV; bkEsP: $card_id = intval($_GPC['card_id']); goto vbAiH; LaxFg: foreach ($_GPC['path'] as $v) { goto mx62H; p8GMs: $re = pdo_insert($this->tablePrefix . 'pic', $condition); goto mI9oO; mx62H: $condition['create_time'] = time(); goto qh0wB; mI9oO: I_uix: goto hYjrC; qh0wB: $condition['path'] = $v; goto p8GMs; hYjrC: } goto WkJ2L; beCyF: if (count($_GPC['path']) > 0) { goto kU22L; } goto xwacN; CZy5B: goto yora5; goto teg2C; PyMSU: } public function doWebPicDel() { goto Kvh7U; PsbX0: goto Q6ZwM; goto A5XrA; Vtzhr: uNeNr: goto kHmVF; cSJcu: $id = intval($_GPC['id']); goto nIJBS; veSrX: if ($result != false) { goto TdcWp; } goto yN0iq; ugiz3: $this->json_return('', 0); goto Vtzhr; XLGPq: Q6ZwM: goto bzpA2; KPm38: $this->json_return(''); goto XLGPq; yN0iq: $this->json_return('', 0); goto PsbX0; A5XrA: TdcWp: goto J2Ueo; kHmVF: $result = pdo_delete($this->tablePrefix . 'pic', array("id" => $id)); goto veSrX; Kvh7U: global $_GPC, $_W; goto cSJcu; nIJBS: $path = $_GPC['path']; goto Z9zi2; J2Ueo: file_delete($path); goto KPm38; Z9zi2: if (!($id < 1)) { goto uNeNr; } goto ugiz3; bzpA2: } public function doWebItemVideo() { goto cM1Xd; aA3wK: include $this->template('video/video_list'); goto aSnE0; Qv_bw: vLZy6: goto evY_Q; Ba5uL: $pagesize = $this->pageCount; goto PfSXm; VCOFn: goto QdPwX; goto Qv_bw; JJJC6: $totalList = pdo_getall($this->tablePrefix . 'video', array("card_id" => $card_id), array("id"), ''); goto CpThM; K3RZH: QdPwX: goto Ba5uL; PfSXm: $pager = pagination($total, $pageindex, $pagesize); goto pUKUg; RC00f: if (!isset($_GPC['page'])) { goto vLZy6; } goto PlIam; evY_Q: $pageindex = 1; goto K3RZH; yLqfL: $num = count($list) >= 1 ? 1 : 0; goto aA3wK; cM1Xd: global $_GPC, $_W; goto fVZng; fVZng: $card_id = intval($_GPC['card_id']); goto JJJC6; CpThM: $total = count($totalList); goto RC00f; PlIam: $pageindex = $_GPC['page']; goto VCOFn; pUKUg: $list = pdo_getall($this->tablePrefix . 'video', array("card_id" => $card_id, "uniacid" => $_W['uniacid']), array("id", "name", "path", "thumb", "duration", "size", "views", "status", "create_time"), '', array("id desc"), array($pageindex, $pagesize)); goto yLqfL; aSnE0: } public function doWebVideoDel() { goto ZBCWs; yjsGJ: goto AE1Cr; goto Ui7py; mN9Li: $path = pdo_fetch('SELECT `path` FROM ' . tablename($this->tablePrefix . 'video') . ' WHERE `id`= ' . $id); goto GCys1; dVaSC: AE1Cr: goto AWOhL; Ui7py: zDLDp: goto nQX7S; WFX88: if ($result != false) { goto zDLDp; } goto R03_p; R03_p: $this->json_return('', 0); goto yjsGJ; pTWrj: $this->json_return(''); goto dVaSC; nQX7S: file_delete($path['path']); goto pTWrj; q41_y: $id = intval($_GPC['id']); goto mN9Li; GCys1: $result = pdo_delete($this->tablePrefix . 'video', array("id" => $id)); goto WFX88; ZBCWs: global $_GPC, $_W; goto q41_y; AWOhL: } public function doWebItemAudio() { goto zlOKV; TYcNY: $pagesize = $this->pageCount; goto OsDWk; IY3JM: include $this->template('audio/audio_list'); goto HJFpn; D7PiW: $num = count($list) >= 1 ? 1 : 0; goto IY3JM; hYZjZ: goto lJUOg; goto e2mxT; q3JCT: if (!isset($_GPC['page'])) { goto gGzSt; } goto DDpjM; e2mxT: gGzSt: goto EHbmc; ftSOU: $list = pdo_getall($this->tablePrefix . 'audio', array("card_id" => $card_id, "uniacid" => $_W['uniacid']), array("id", "name", "path", "duration", "size", "views", "status", "create_time"), '', array("id desc"), array($pageindex, $pagesize)); goto D7PiW; EHbmc: $pageindex = 1; goto peoBy; Y2cfz: $totalList = pdo_getall($this->tablePrefix . 'audio', array("card_id" => $card_id), array("id"), ''); goto jkP5w; OsDWk: $pager = pagination($total, $pageindex, $pagesize); goto ftSOU; zlOKV: global $_GPC, $_W; goto hgsME; hgsME: $card_id = intval($_GPC['card_id']); goto Y2cfz; peoBy: lJUOg: goto TYcNY; jkP5w: $total = count($totalList); goto q3JCT; DDpjM: $pageindex = $_GPC['page']; goto hYZjZ; HJFpn: } public function doWebAudioDel() { goto eRnfq; oMkDV: $path = pdo_fetch('SELECT `path` FROM ' . tablename($this->tablePrefix . 'audio') . ' WHERE `id`=' . $id); goto Ny4GM; YWbBE: GTcn2: goto Li8bq; ykggu: if ($result != false) { goto GTcn2; } goto jc12Q; eRnfq: global $_GPC, $_W; goto BuBgj; cLguG: hWTiB: goto jhtQG; FVR_f: $this->json_return(''); goto cLguG; Ny4GM: $result = pdo_delete($this->tablePrefix . 'audio', array("id" => $id)); goto ykggu; hyzrC: goto hWTiB; goto YWbBE; Li8bq: file_delete($path['path']); goto FVR_f; jc12Q: $this->json_return('', 0); goto hyzrC; BuBgj: $id = intval($_GPC['id']); goto oMkDV; jhtQG: } public function doWebExamineItem() { goto Q8xn3; vFPDQ: if (!($name != '')) { goto C2_22; } goto DD1Km; JAwmR: oOJdK: goto AlQ6v; AlQ6v: $pagesize = 5; goto PrNR9; HKGgm: ouXZa: goto VVrtj; lYD10: $count = count($allList); goto o9A8T; H1c0C: if (!(trim($_GPC['mobile']) != '')) { goto IQP65; } goto eoUie; gxP55: goto oOJdK; goto HKGgm; PrNR9: $pager = pagination($count, $pageindex, $pagesize); goto jSBtQ; xG0aT: include $this->template('examine_item/examine_item_list'); goto qtkpe; o0P_p: IQP65: goto TDFM9; v2Omn: $pageindex2 = 0; goto JAwmR; bhZfS: $pageindex2 = (intval($_GPC['page']) - 1) * 5; goto gxP55; eoUie: $where .= ' and `i`.`mobile`=' . trim($_GPC['mobile']); goto o0P_p; o9A8T: if (!isset($_GPC['page'])) { goto ouXZa; } goto y9jGT; Wf8wC: $url = $this->createWebUrl('examineItem'); goto JYF04; vDjMw: $name = trim($_GPC['name']); goto vFPDQ; jSBtQ: $list = pdo_fetchall('SELECT `i`.`id`,`i`.`uid`,`i`.`name`,`i`.`picture`,`i`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'item') . ' `i` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `i`.`uid`=`m`.`uid`' . $where . ' ORDER BY `i`.`create_time` LIMIT ' . $pageindex2 . ',' . $pagesize); goto xG0aT; VVrtj: $pageindex = 0; goto v2Omn; lxytd: if (!($nickname != '')) { goto FhVw2; } goto uApqL; y9jGT: $pageindex = intval($_GPC['page']); goto bhZfS; JYF04: $where = ' WHERE `i`.`uniacid`=' . $_W['uniacid'] . ' and `i`.`status`=3'; goto FlJf6; DD1Km: $where .= ' and `i`.`name` LIKE \'%' . $name . '%\''; goto Exo8T; hmMG5: FhVw2: goto vDjMw; Q8xn3: global $_GPC, $_W; goto Wf8wC; Exo8T: C2_22: goto H1c0C; FlJf6: $nickname = trim($_GPC['nickname']); goto lxytd; uApqL: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto hmMG5; TDFM9: $allList = pdo_fetchall('SELECT `i`.`id`,`i`.`name`,`m`.`nickname` FROM ' . tablename($this->tablePrefix . 'item') . ' `i` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `i`.`uid`=`m`.`uid` ' . $where); goto lYD10; qtkpe: } public function doWebExamineItemInfo() { goto ebIJ2; ebIJ2: global $_GPC, $_W; goto wvXk5; jcdWH: include $this->template('examine_item/examine_item_info'); goto WzUeo; wvXk5: $id = intval($_GPC['id']); goto wXKe3; wXKe3: $data = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'item') . ' where `id`=:id', array(":id" => $id)); goto jcdWH; WzUeo: } public function doWebExamineItemStatus() { goto COIDP; gDbHD: rvhwK: goto mtq26; JNgNZ: $sub_count = $temp['audit_msg_sub']; goto L1vM2; Wuwuw: $data = array("thing5" => array("value" => '[' . $item['name'] . ']'), "phrase1" => array("value" => ""), "date4" => array("value" => date('Y/m/d H:i'))); goto PnHdu; oybeb: rKXuZ: goto WpHma; HeIwm: Ga7IM: goto wipR3; WpHma: ML_pf: goto Klt2E; tvWZQ: if (!($result != false)) { goto hka8z; } goto QrWM6; Qyo3o: $temp = pdo_fetch('SELECT `audit_msg_sub` FROM ' . tablename($this->tablePrefix . 'usersub') . ' WHERE uid = :uid LIMIT 1', array(":uid" => $item['uid'])); goto N4u0w; m2orM: $touser = $this->getFansInfoByUid($item['uid'], 'openid'); goto Iz8Hw; c1cNu: ZnVBd: goto y5gTI; VUUi8: E1h0d: goto xkcg8; CDMI6: $data = array("first" => array("value" => ""), "keyword1" => array("value" => getAppConfSd('app_name')), "keyword2" => array("value" => '[' . $item['name'] . ']-[]'), "remark" => array("value" => date('Y-m-d H:i'))); goto tg9z3; q_845: rrILf: goto m2orM; tg9z3: $re_account_msg = $this->sendAccountMsg($touser, $page, $data, '', $item['uid']); goto s95vx; QAiT1: pdo_update($this->tablePrefix . 'user', array("allow_create" => 1), array("id" => $id)); goto joZzk; lQ2C2: $data = array("first" => array("value" => ""), "keyword1" => array("value" => getAppConfSd('app_name')), "keyword2" => array("value" => '[' . $item['name'] . ']-[]'), "remark" => array("value" => date('Y-m-d H:i'))); goto lZvB1; Nnnpf: $data = array("thing5" => array("value" => '[' . $item['name'] . ']'), "phrase1" => array("value" => ""), "date4" => array("value" => date('Y/m/d H:i'))); goto RH8kY; Rd2hd: $page = 'super_card/pages/index/index'; goto LDm64; zAZ2I: if (!(!$re_account_msg && $temp_id)) { goto ML_pf; } goto Qyo3o; lZvB1: $re_account_msg = $this->sendAccountMsg($touser, $page, $data, '', $item['uid']); goto gDbHD; orMrU: goto E1h0d; goto HeIwm; RH8kY: $re = $this->sendSubMsg($touser, $temp_id, $page, $data); goto YFxTZ; dO9ei: goto QJ36S; goto c1cNu; rlgXZ: insertNotice($item['uid'], $id, ''); goto q_845; joZzk: if (!($result != false)) { goto LTHYu; } goto HI84X; z9yTg: $item = pdo_fetch('SELECT `uid`, `name` FROM ' . tablename($this->tablePrefix . 'item') . ' where `id`=:id', array(":id" => $id)); goto jnUtF; lpxGG: pdo_insert($this->tablePrefix . 'msglog', array("uniacid" => $_W['uniacid'], "uid" => $item['uid'], "msg" => "", "r_content" => $re['content'], "create_time" => time())); goto X3HPb; COIDP: global $_GPC, $_W; goto eW1aO; xkcg8: if ($result != false) { goto ZnVBd; } goto NJn0d; BYYqW: if (!($sub_count > 0)) { goto rKXuZ; } goto Nnnpf; nwAww: $temp_id = getAppConfSd('audit_results_tempid'); goto To2eE; VeZPo: $status = intval($_GPC['status']); goto z9yTg; s95vx: mzArC: goto nwAww; KyXmN: QJ36S: goto aeh5h; Jfeg0: ZjOsD: goto BT9zg; TeGJv: $temp = pdo_fetch('SELECT `audit_msg_sub` FROM ' . tablename($this->tablePrefix . 'usersub') . ' WHERE uid = :uid LIMIT 1', array(":uid" => $item['uid'])); goto JNgNZ; jnUtF: if ($status == 1) { goto Ga7IM; } goto HlEb_; Hlq3I: pdo_query('UPDATE ' . tablename($this->tablePrefix . 'usersub') . ' SET `audit_msg_sub` = `audit_msg_sub` - 1 WHERE uid = :uid', array(":uid" => $item['uid'])); goto lpxGG; LDm64: if (!(getAppConfSd('account_msg_switch') == 1)) { goto rvhwK; } goto lQ2C2; Iz8Hw: $page = 'super_card/pages/index/index'; goto s5sR0; X3HPb: fAWmX: goto Jfeg0; BgBvv: ioMqr: goto orMrU; Lxack: pdo_insert($this->tablePrefix . 'msglog', array("uniacid" => $_W['uniacid'], "uid" => $item['uid'], "msg" => "", "r_content" => $re['content'], "create_time" => time())); goto oybeb; wipR3: $result = pdo_update($this->tablePrefix . 'item', array("status" => 1), array("id" => $id, "uniacid" => $_W['uniacid'])); goto tvWZQ; BT9zg: hka8z: goto VUUi8; YFxTZ: pdo_query('UPDATE ' . tablename($this->tablePrefix . 'usersub') . ' SET `audit_msg_sub` = `audit_msg_sub` - 1 WHERE uid = :uid', array(":uid" => $item['uid'])); goto Lxack; PnHdu: $re = $this->sendSubMsg($touser, $temp_id, $page, $data); goto Hlq3I; HI84X: $touser = $this->getFansInfoByUid($item['uid'], 'openid'); goto Rd2hd; N4u0w: $sub_count = $temp['audit_msg_sub']; goto BYYqW; L1vM2: if (!($sub_count > 0)) { goto fAWmX; } goto Wuwuw; Klt2E: LTHYu: goto BgBvv; QrWM6: if (!($item['uid'] > 0)) { goto rrILf; } goto rlgXZ; To2eE: if (!(!$re_account_msg && $temp_id)) { goto ZjOsD; } goto TeGJv; NJn0d: echo json_encode(array("code" => 0, "msg" => "")); goto dO9ei; s5sR0: if (!(getAppConfSd('account_msg_switch') == 1)) { goto mzArC; } goto CDMI6; y5gTI: echo json_encode(array("code" => 1, "msg" => "")); goto KyXmN; mtq26: $temp_id = getAppConfSd('audit_results_tempid'); goto zAZ2I; eW1aO: $id = intval($_GPC['id']); goto VeZPo; Nq3mv: $result = pdo_delete($this->tablePrefix . 'item', array("id" => $id, "uniacid" => $_W['uniacid'])); goto QAiT1; HlEb_: if (!($status == 4)) { goto ioMqr; } goto Nq3mv; aeh5h: } public function doWebCardBg() { goto vrssq; E8Rom: include $this->template('card_bg/card_bg_list'); goto KOXWl; vrssq: global $_GPC, $_W; goto RS185; RS185: $list = pdo_getall($this->tablePrefix . 'cardbg', array("uniacid" => $_W['uniacid'], "type" => 0), array(), '', array("sort DESC"), array()); goto E8Rom; KOXWl: } public function doWebCardBgEdit() { goto KtcPk; QPfUL: $data = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'cardbg') . ' WHERE id = :id LIMIT 1', array(":id" => $id)); goto mPh8l; mPh8l: oAjLZ: goto APtj5; rtzRs: $id = intval($_GPC['id']); goto UAhEP; KtcPk: global $_GPC, $_W; goto rtzRs; UAhEP: if (!($id > 0)) { goto oAjLZ; } goto QPfUL; APtj5: include $this->template('card_bg/card_bg_info'); goto v0qm4; v0qm4: } public function doWebCardBgSave() { goto OOQX7; Ntb7Y: $condition = array(); goto ESICQ; wlIiw: $condition['bg_music'] = $_GPC['bg_music']; goto y63uV; Qk_of: $this->json_return('', 0); goto SZbGw; SZbGw: hS38m: goto DUZzM; rtVkX: $condition['name'] = $_GPC['name']; goto j3NzQ; y63uV: $condition['text_color'] = !empty($_GPC['text_color']) ? $_GPC['text_color'] : '#fff'; goto JuExZ; n4eBd: if ($result != false) { goto dFaf8; } goto V7Hy8; nXvpt: dFaf8: goto VxmHd; Pw6vk: pdo_update($this->tablePrefix . 'item', array("bg_color" => $condition['text_color'], "bg_music" => $condition['bg_music']), array("bg_id" => $id)); goto CcIJe; Jf_q1: $result = pdo_insert($this->tablePrefix . 'cardbg', $condition); goto Zf6NH; FROso: fzws_: goto Ntb7Y; j3NzQ: $condition['bg_url'] = $_GPC['bg_url']; goto wlIiw; Zf6NH: goto jkyLs; goto FGKcd; FGKcd: bAoe0: goto RKZFb; V7Hy8: $this->json_return('', 0); goto TQKkt; JuExZ: $condition['sort'] = intval($_GPC['sort']); goto t6DC9; RKZFb: $result = pdo_update($this->tablePrefix . 'cardbg', $condition, array("id" => $id, "uniacid" => $_W['uniacid'])); goto edW40; jv3ps: if (!empty($_GPC['name'])) { goto hS38m; } goto Qk_of; DUZzM: if (!empty($_GPC['bg_url'])) { goto fzws_; } goto Pe9QD; f_Mrz: if ($id > 0) { goto bAoe0; } goto Jf_q1; VxmHd: $this->json_return(''); goto FJhFq; t6DC9: $condition['status'] = intval($_GPC['status']); goto w5TKd; edW40: if (!($result != false)) { goto URb01; } goto Pw6vk; Pe9QD: $this->json_return('', 0); goto FROso; FJhFq: cDm2r: goto xZZ7b; w5TKd: $id = intval($_GPC['id']); goto f_Mrz; TQKkt: goto cDm2r; goto nXvpt; CcIJe: URb01: goto hJB9I; ESICQ: $condition['uniacid'] = $_W['uniacid']; goto rtVkX; OOQX7: global $_GPC, $_W; goto jv3ps; hJB9I: jkyLs: goto n4eBd; xZZ7b: } public function doWebcardBgDel() { goto q3Ba3; c_Pt7: if ($result != false) { goto SNr5g; } goto eP5AO; iFSXa: $this->json_return(',', 0); goto KSmzk; WGRRV: $result = pdo_delete($this->tablePrefix . 'cardbg', array("id" => $_GPC['id'], "uniacid" => $_W['uniacid'])); goto c_Pt7; MgzQh: goto eLKPp; goto hg7Ds; q3Ba3: global $_GPC, $_W; goto cv9mG; qhzQj: QrR8C: goto MgzQh; fol_S: SNr5g: goto JYB0S; hg7Ds: LIMCb: goto iFSXa; JYB0S: $this->json_return(''); goto qhzQj; YxpVn: if ($bgNum != false) { goto LIMCb; } goto WGRRV; cv9mG: $bgNum = pdo_fetch('SELECT `id`,`uid` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE bg_id = :id', array(":id" => $_GPC['id'])); goto YxpVn; T3ZVG: goto QrR8C; goto fol_S; eP5AO: $this->json_return('', 0); goto T3ZVG; KSmzk: eLKPp: goto Oj41O; Oj41O: } public function doWebArtList() { goto OJwlN; jz9yd: if (!$name) { goto YzONk; } goto U0V0R; m_lIP: lRw35: goto ndFas; OJwlN: global $_GPC, $_W; goto SOnO4; dwKP0: Bcb_r: goto GhtrN; us7iL: $title = trim($_GPC['title']); goto TiGjv; JO0W5: zNmP_: goto ahJEI; U0V0R: $where .= ' and `i`.`name` LIKE \'%' . $name . '%\''; goto mct6c; GhtrN: if (!($datemin && $datemax == false)) { goto jRJXJ; } goto iSyB7; CZzdA: if (!($status != '' && intval($status) !== false)) { goto yibbO; } goto AK8tC; krzy7: $where .= ' and `a`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto dwKP0; PUyW6: $datemax = strtotime($_GPC['datemax']); goto sNZTT; xVfmg: $pageindex = $_GPC['page']; goto ud1Q1; VC8yE: UFJHt: goto i_0VG; LaeBZ: jRJXJ: goto Uck7F; ahJEI: $pageindex = 0; goto mML49; ndFas: $pager = pagination($total, $pageindex, $pagesize); goto WNpEe; WNpEe: $list = pdo_fetchall('SELECT `a`.`id`, `a`.`card_id`, `a`.`title`,`a`.`pic`, `a`.`link`, `a`.`views`, `a`.`forwards`, `a`.`spread`, `a`.`reship`, `a`.`status`, `a`.`sort`, `a`.`create_time`, `i`.`name`, `c`.`name` as `cate` FROM ' . tablename($this->tablePrefix . 'art') . ' `a`' . ' LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `a`.`card_id`=`i`.`id` LEFT JOIN ' . tablename($this->tablePrefix . 'artcate') . ' `c` ON `a`.`cate_id`=`c`.`id`' . $where . ' ORDER BY a.`create_time` DESC limit ' . $pageindex2 . ',' . $pagesize); goto K8vl1; nxIJa: $res = pdo_fetch('SELECT count(`a`.`id`) as total From ' . tablename($this->tablePrefix . 'art') . ' AS `a` ' . $where); goto HZ_U5; rn6FN: if (!($cate != '' && intval($cate) !== false)) { goto UFJHt; } goto SNP8B; YTGZA: $where .= ' and `a`.`create_time` < ' . $datemax; goto uiIBV; ud1Q1: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto nkNei; sf8RH: yibbO: goto IJC6m; SNP8B: $where .= ' and `a`.`cate_id` = ' . intval($cate); goto VC8yE; byrl1: eyYQe: goto Hb9ek; mct6c: YzONk: goto us7iL; TiGjv: if (empty($title)) { goto eyYQe; } goto FfHHz; i_0VG: $status = $_GPC['status']; goto CZzdA; S8s3B: if (!$_GPC['page']) { goto zNmP_; } goto xVfmg; w4LjM: $where = ' WHERE `a`.`uniacid` = ' . $_W['uniacid']; goto kOgD1; AK8tC: $where .= ' and `a`.`status` = ' . intval($status); goto sf8RH; sNZTT: if (!($datemin && $datemax)) { goto Bcb_r; } goto krzy7; kOgD1: $name = trim($_GPC['name']); goto jz9yd; SOnO4: $url = $this->createWebUrl('artList'); goto w4LjM; K8vl1: $cate_list = pdo_fetchall('SELECT `id`,`name` FROM ' . tablename($this->tablePrefix . 'artcate') . " WHERE `uniacid` = {$_W['uniacid']} AND `status` = 1 ORDER BY `sort` DESC"); goto C1fwV; Uck7F: if (!($datemax && $datemin == false)) { goto ZeLDT; } goto YTGZA; HZ_U5: $total = $res['total']; goto B3T68; IJC6m: $datemin = strtotime($_GPC['datemin']); goto PUyW6; C1fwV: include $this->template('art/list'); goto minSc; uiIBV: ZeLDT: goto iwfZN; FfHHz: $where .= ' and `a`.`title` LIKE %' . $title . '%'; goto byrl1; Hb9ek: $cate = $_GPC['cate']; goto rn6FN; iSyB7: $where .= ' and `a`.`create_time` > ' . $datemin; goto LaeBZ; iwfZN: $where .= ' AND `a`.`is_make` = 0'; goto nxIJa; mML49: $pageindex2 = 0; goto m_lIP; nkNei: goto lRw35; goto JO0W5; B3T68: $pagesize = $this->pageCount; goto S8s3B; minSc: } public function doWebArtDel() { goto wdgO0; iVI8E: if ($result != false) { goto SP9l2; } goto ZitIP; ZitIP: $this->json_return('', 0); goto zhybu; PvfKD: $result = pdo_delete($this->tablePrefix . 'art', array("id" => $id)); goto iVI8E; wdgO0: global $_GPC, $_W; goto eJYPy; Ldw8i: pdo_delete($this->tablePrefix . 'artrecord', array("art_id" => $id)); goto S7Zvs; eJYPy: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto PvfKD; qogFP: SP9l2: goto Ldw8i; S7Zvs: $this->json_return(''); goto kRBkc; zhybu: goto Kfjpf; goto qogFP; kRBkc: Kfjpf: goto vr_gD; vr_gD: } public function doWebArtCate() { goto yYBbP; CeyiV: $pageindex = 1; goto wy8oE; vNjQt: $list = pdo_getall($this->tablePrefix . 'artcate', array("uniacid" => $_W['uniacid']), array("id", "name", "status", "sort"), '', array("sort DESC"), array($pageindex, $pagesize)); goto hCEv2; mE6DJ: $pagesize = $this->pageCount; goto hZWEg; zBqKL: $total = count($allList); goto mE6DJ; lrv_8: if (!isset($_GPC['page'])) { goto Tdulq; } goto VWBtE; VWBtE: $pageindex = $_GPC['page']; goto o3311; hZWEg: $pager = pagination($total, $pageindex, $pagesize); goto vNjQt; wy8oE: rFi54: goto LoBSv; LoBSv: $allList = pdo_getall($this->tablePrefix . 'artcate', array("uniacid" => $_W['uniacid']), array("id"), '', array(), array()); goto zBqKL; hCEv2: include $this->template('art/cate_list'); goto geAiQ; yYBbP: global $_GPC, $_W; goto lrv_8; o3311: goto rFi54; goto UE35g; UE35g: Tdulq: goto CeyiV; geAiQ: } public function doWebArtcateEdit() { goto Tc4F3; wZ30h: if (!($id > 0)) { goto JIcPJ; } goto UyHjA; Tc4F3: global $_GPC, $_W; goto Fizvw; Fizvw: $id = intval($_GPC['id']); goto wZ30h; UyHjA: $data = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'artcate') . ' WHERE `id` = :id LIMIT 1', array(":id" => $id)); goto Xr_Hg; Vy7Iy: include $this->template('art/cate_info'); goto iqons; Xr_Hg: JIcPJ: goto Vy7Iy; iqons: } public function doWebArtcateSave() { goto FHuFo; tej0L: $id = intval($_GPC['id']); goto LEIiP; h_cfz: goto rM7Oc; goto LoGiM; DVgxz: $result = pdo_update($this->tablePrefix . 'artcate', $condition, array("id" => $id)); goto OWyPP; xgM7e: $condition['uniacid'] = $_W['uniacid']; goto p3Ryd; CQzSp: $this->json_return('', 0); goto lG0cM; p3Ryd: $condition['name'] = $_GPC['name']; goto OHT9p; km7yh: $condition = array(); goto xgM7e; OHT9p: $condition['status'] = intval($_GPC['status']); goto elqOb; LoGiM: PdxeB: goto BmLK8; oZIMD: $result = pdo_insert($this->tablePrefix . 'artcate', $condition); goto Nxl33; se4q0: if ($result != false) { goto PdxeB; } goto IhSDB; XAGMu: $condition['create_time'] = time(); goto oZIMD; Nxl33: goto o07ua; goto pY6Rc; BmLK8: $this->json_return(''); goto JxD2e; lG0cM: R3hgl: goto km7yh; LikRg: $condition['update_time'] = time(); goto DVgxz; JxD2e: rM7Oc: goto ogOJY; pY6Rc: OKCDq: goto LikRg; s1lqw: if (!empty($_GPC['name'])) { goto R3hgl; } goto CQzSp; OWyPP: o07ua: goto se4q0; IhSDB: $this->json_return('', 0); goto h_cfz; FHuFo: global $_GPC, $_W; goto s1lqw; LEIiP: if ($id > 0) { goto OKCDq; } goto XAGMu; elqOb: $condition['sort'] = intval($_GPC['sort']); goto tej0L; ogOJY: } public function doWebArtcateDel() { goto sK6AC; ZTDOS: $this->json_return(''); goto t70yJ; p3ylV: $this->json_return('', 0); goto eGzjg; BAsoh: $query = load()->object('query'); goto VzCJa; d6rrt: obAZX: goto ZTDOS; cnk5q: $result = pdo_delete($this->tablePrefix . 'artcate', array("id" => $id)); goto Fby4U; VzCJa: $is_found = $query->from($this->tablePrefix . 'art', 'sci')->where(array("cate_id" => $id))->exists(); goto fBDkM; fBDkM: if (!$is_found) { goto OQig2; } goto xc_Ez; xdZp1: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto BAsoh; q9Xcc: OQig2: goto cnk5q; Fby4U: if ($result != false) { goto obAZX; } goto p3ylV; t70yJ: MGgfp: goto Jjze8; xc_Ez: $this->json_return('', 0); goto q9Xcc; eGzjg: goto MGgfp; goto d6rrt; sK6AC: global $_GPC, $_W; goto xdZp1; Jjze8: } public function doWebWpCate() { goto pR4te; Jl5bl: if (!isset($_GPC['page'])) { goto FPqTs; } goto DGPSu; DGPSu: $pageindex = $_GPC['page']; goto huj8p; fHiS4: $allList = pdo_getall($this->tablePrefix . 'wpcate', array("uniacid" => $_W['uniacid']), array("id"), '', array(), array()); goto xITqj; JI_g2: $list = pdo_getall($this->tablePrefix . 'wpcate', array("uniacid" => $_W['uniacid']), array("id", "name", "status", "sort"), '', array(), array($pageindex, $pagesize)); goto CnqI3; EauP1: FPqTs: goto ffQA1; vR6Hr: $pagesize = $this->pageCount; goto zoMxO; jXx6P: n_FY2: goto fHiS4; zoMxO: $pager = pagination($total, $pageindex, $pagesize); goto JI_g2; xITqj: $total = count($allList); goto vR6Hr; CnqI3: include $this->template('wallpaper/cate_list'); goto mh2R9; ffQA1: $pageindex = 1; goto jXx6P; pR4te: global $_GPC, $_W; goto Jl5bl; huj8p: goto n_FY2; goto EauP1; mh2R9: } public function doWebWpcateEdit() { goto fFq97; Arsf7: include $this->template('wallpaper/cate_info'); goto J33CM; b1_JB: $data = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'wpcate') . ' WHERE `id` = :id LIMIT 1', array(":id" => $id)); goto cbRyr; fFq97: global $_GPC, $_W; goto b6jsP; hYfrq: if (!($id > 0)) { goto aIBse; } goto b1_JB; cbRyr: aIBse: goto Arsf7; b6jsP: $id = intval($_GPC['id']); goto hYfrq; J33CM: } public function doWebWpcateSave() { goto Tafzh; jtre3: goto p8zms; goto l9IXM; PjQ1i: $id = intval($_GPC['id']); goto LiiYS; QwAah: p8zms: goto fdJAT; FMOFI: $condition = array(); goto VCD4Q; VCD4Q: $condition['uniacid'] = $_W['uniacid']; goto tU5k9; wkPY1: $this->json_return('', 0); goto jtre3; tU5k9: $condition['name'] = $_GPC['name']; goto awwhg; Gn7aV: LfUZZ: goto FMOFI; Tafzh: global $_GPC, $_W; goto JQ5Fh; JQ5Fh: if (!empty($_GPC['name'])) { goto LfUZZ; } goto LYniV; ypqd2: YNAkb: goto ZI7VB; LiiYS: if ($id > 0) { goto YNAkb; } goto rmvYL; P3qok: goto qMU0_; goto ypqd2; rmvYL: $condition['create_time'] = time(); goto O2x0l; l9IXM: dNeKH: goto CXEfI; ucs2q: qMU0_: goto tP9Ce; lIsGV: $result = pdo_update($this->tablePrefix . 'wpcate', $condition, array("id" => $id)); goto ucs2q; LYniV: $this->json_return('', 0); goto Gn7aV; awwhg: $condition['status'] = intval($_GPC['status']); goto z71Tl; z71Tl: $condition['sort'] = intval($_GPC['sort']); goto PjQ1i; O2x0l: $result = pdo_insert($this->tablePrefix . 'wpcate', $condition); goto P3qok; ZI7VB: $condition['update_time'] = time(); goto lIsGV; tP9Ce: if ($result != false) { goto dNeKH; } goto wkPY1; CXEfI: $this->json_return(''); goto QwAah; fdJAT: } public function doWebWpcateDel() { goto md1AM; jWrTy: if (!$is_found) { goto ecV1Q; } goto fz3Op; BAZah: qLuYk: goto XK2Pn; K19cI: $result = pdo_delete($this->tablePrefix . 'wpcate', array("id" => $id)); goto QtPqB; LluYa: ecV1Q: goto K19cI; nKi8_: $query = load()->object('query'); goto oGu_8; QtPqB: if ($result != false) { goto cpCfA; } goto OizT3; evlB4: $this->json_return(''); goto BAZah; OizT3: $this->json_return('', 0); goto sKKzf; md1AM: global $_GPC, $_W; goto kyh0D; sKKzf: goto qLuYk; goto JRw0h; kyh0D: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto nKi8_; oGu_8: $is_found = $query->from($this->tablePrefix . 'wallpaper', 'sci')->where(array("cate_id" => $id))->exists(); goto jWrTy; fz3Op: $this->json_return('', 0); goto LluYa; JRw0h: cpCfA: goto evlB4; XK2Pn: } public function doWebWallpaper() { goto jh3ua; lghEn: $where .= ' and `w`.`cate_id` = ' . intval($cate); goto Rfer4; Qd_Q4: $where .= ' and `w`.`status` = ' . intval($status); goto RRPke; RRPke: cCWqm: goto q1_2q; mYNI2: $cate = $_GPC['cate']; goto SlvFz; wICB_: $pageindex2 = 0; goto TXxXj; o80jW: $total = $res['total']; goto j0xYL; brKIJ: $pageindex = $_GPC['page']; goto RPaNZ; CIofB: $status = $_GPC['status']; goto gBhWW; v3rGM: include $this->template('wallpaper/wallpaper_list'); goto tuBkh; SlvFz: if (!($cate != '' && intval($cate) !== false)) { goto Mi86w; } goto lghEn; qyzT2: $where = ' WHERE `w`.`uniacid` = ' . $_W['uniacid']; goto mYNI2; t0iMQ: $pageindex = 0; goto wICB_; jh3ua: global $_GPC, $_W; goto qhYQ5; gBhWW: if (!($status != '' && intval($status) !== false)) { goto cCWqm; } goto Qd_Q4; iG8OX: XmKnN: goto t0iMQ; Rfer4: Mi86w: goto CIofB; j0xYL: $pagesize = $this->pageCount; goto SOzgI; TXxXj: iZ2NG: goto oqw7B; oqw7B: $pager = pagination($total, $pageindex, $pagesize); goto MrssC; MrssC: $list = pdo_fetchall('SELECT `w`.`id`, `w`.`title`, `w`.`re_title`, `w`.`path`,`w`.`status`,`w`.`sort`, `c`.`name` as `cate` FROM ' . tablename($this->tablePrefix . 'wallpaper') . ' `w`' . ' LEFT JOIN ' . tablename($this->tablePrefix . 'wpcate') . ' `c` ON `w`.`cate_id`=`c`.`id`' . $where . ' ORDER BY w.`sort` DESC, w.`create_time` DESC limit ' . $pageindex2 . ',' . $pagesize); goto P9K90; qhYQ5: $url = $this->createWebUrl('wallpaper'); goto qyzT2; SOzgI: if (!$_GPC['page']) { goto XmKnN; } goto brKIJ; q1_2q: $res = pdo_fetch('SELECT count(`w`.`id`) as total From ' . tablename($this->tablePrefix . 'wallpaper') . ' AS `w` ' . $where); goto o80jW; RPaNZ: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto NhV4p; NhV4p: goto iZ2NG; goto iG8OX; P9K90: $cate_list = pdo_fetchall('SELECT `id`,`name` FROM ' . tablename($this->tablePrefix . 'wpcate') . " WHERE `uniacid` = {$_W['uniacid']} AND `status` = 1 ORDER BY `sort` DESC"); goto v3rGM; tuBkh: } public function doWebWallpaperEdit() { goto FRoXY; S1f1g: goto sfYuG; goto yh9Ql; xC_Vi: $data = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'wallpaper') . ' WHERE `id` = :id LIMIT 1', array(":id" => $id)); goto TI1e3; yh9Ql: vhiy2: goto xC_Vi; SR50p: $data = array("status" => 1, "type" => 1); goto S1f1g; a7ZeD: if ($id > 0) { goto vhiy2; } goto SR50p; X2jmN: include $this->template('wallpaper/wallpaper_info'); goto t_UM9; US5Mj: $id = intval($_GPC['id']); goto a7ZeD; FRoXY: global $_GPC, $_W; goto US5Mj; TI1e3: sfYuG: goto X3qbE; X3qbE: $cate_list = pdo_fetchall('SELECT `id`,`name` FROM ' . tablename($this->tablePrefix . 'wpcate') . " WHERE `uniacid` = {$_W['uniacid']} AND `status` = 1 ORDER BY `sort` DESC"); goto X2jmN; t_UM9: } public function doWebWallpaperSave() { goto ZaggN; UqB9I: $result = pdo_insert($this->tablePrefix . 'wallpaper', $condition); goto lPczt; peI0V: pdo_delete($this->tablePrefix . 'userwp', array("wp_id" => $id)); goto rwem2; gCJ3O: $condition['update_time'] = time(); goto XxMfL; nVbi2: $condition['org_h'] = $image_size[1]; goto FTE57; rZxOG: goto eDatG; goto NlI0H; A4L3M: $this->json_return('', 0); goto rZxOG; XxMfL: $result = pdo_update($this->tablePrefix . 'wallpaper', $condition, array("id" => $id)); goto YQGqC; NlI0H: GBSbQ: goto njKl2; dWPhc: $condition['path'] = $_GPC['path']; goto yMxgE; ZaggN: global $_GPC, $_W; goto FEZCF; gJgeO: SgXgp: goto gCJ3O; YQGqC: if (empty($result)) { goto J9qdx; } goto peI0V; rwem2: J9qdx: goto u2Rxv; t8wko: $path = getFileUrlSd($condition['path']); goto bDLYz; Chgr1: $condition['uniacid'] = $_W['uniacid']; goto dWPhc; FTE57: $id = intval($_GPC['id']); goto kLDjH; chAWM: $condition['create_time'] = time(); goto UqB9I; dPhl0: $this->json_return('', 0); goto zHFnQ; Alq0o: $condition['status'] = intval($_GPC['status']); goto t8wko; Nn7L7: $condition['sort'] = intval($_GPC['sort']); goto Alq0o; fT1OM: $condition = array(); goto Chgr1; ezTHV: $condition['re_title'] = trim($_GPC['re_title']); goto J85vz; nPhHH: $condition['cate_id'] = intval($_GPC['cate']); goto Nn7L7; R4Lwt: if ($result != false) { goto GBSbQ; } goto A4L3M; yMxgE: $condition['title'] = trim($_GPC['title']); goto ezTHV; zHFnQ: rikiQ: goto fT1OM; J85vz: $condition['type'] = intval($_GPC['type']); goto nPhHH; lPczt: goto CUWdE; goto gJgeO; B5H5R: $condition['org_w'] = $image_size[0]; goto nVbi2; njKl2: $this->json_return(''); goto ocG5S; bDLYz: $image_size = getimagesize($path); goto B5H5R; u2Rxv: CUWdE: goto R4Lwt; ocG5S: eDatG: goto X4Vgi; FEZCF: if (!empty($_GPC['path'])) { goto rikiQ; } goto dPhl0; kLDjH: if ($id > 0) { goto SgXgp; } goto chAWM; X4Vgi: } public function doWebWallpaperDel() { goto mwTYa; Q4h7M: $result = pdo_delete($this->tablePrefix . 'wallpaper', array("id" => $id)); goto HF8bO; kMVon: pdo_delete($this->tablePrefix . 'userwp', array("wp_id" => $id)); goto IKTDI; IKTDI: $this->json_return(''); goto cNEtZ; cNEtZ: ZfkbV: goto QoSsE; mwTYa: global $_GPC, $_W; goto UTQLz; HF8bO: if ($result != false) { goto kdlUQ; } goto XxNSH; LziCL: kdlUQ: goto kMVon; cV2W0: goto ZfkbV; goto LziCL; UTQLz: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto Q4h7M; XxNSH: $this->json_return('', 0); goto cV2W0; QoSsE: } public function doWebIndustry() { goto e1iG1; CuMIQ: $tab_id = $_GPC['tab_id']; goto rsx3_; rsx3_: include $this->template('industry/industry_list'); goto pFXFZ; e1iG1: global $_GPC, $_W; goto ivWZy; ivWZy: $list = pdo_getall($this->tablePrefix . 'industry', array("uniacid" => $_W['uniacid']), array(), '', array("sort DESC"), array()); goto CuMIQ; pFXFZ: } public function doWebIndustryEdit() { goto vMPAi; RBDJM: $data = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'industry') . ' WHERE id = :id LIMIT 1', array(":id" => $id)); goto f0by3; XvoCd: if (!($id > 0)) { goto NtBA2; } goto RBDJM; MXx7I: $id = intval($_GPC['id']); goto XvoCd; vMPAi: global $_GPC, $_W; goto MXx7I; f0by3: NtBA2: goto CT9eV; CT9eV: include $this->template('industry/industry_info'); goto xejjN; xejjN: } public function doWebIndustrySave() { goto ml5EU; MDxK2: if ($result != false) { goto TRkHg; } goto pOfrm; i2OHB: $name = trim($_GPC['name']); goto Y5Dz6; yL8Uc: $condition['status'] = intval($_GPC['status']); goto ulk97; TwLia: if ($id > 0) { goto MivUz; } goto lD5jM; oaCpR: rtX9f: goto MDxK2; IAxwa: $condition['name'] = $name; goto oY74L; pOfrm: $this->json_return('', 0); goto ZCaZt; ml5EU: global $_GPC, $_W; goto i2OHB; qjrc0: $list = pdo_fetchall('SELECT `id`,`industry` FROM' . tablename($this->tablePrefix . 'item') . 'WHERE `industry` LIKE \'%' . $industry['name'] . '%\''); goto t64vr; ceBrf: ncdHC: goto vTJiZ; oqaNX: $id = intval($_GPC['id']); goto TwLia; pjlHR: TRkHg: goto qjrc0; vTJiZ: $this->json_return(''); goto AplxD; Fh5N_: k86w2: goto EoeYR; Y5Dz6: if (!empty($name)) { goto k86w2; } goto MdFGE; AplxD: cGpUi: goto erjtn; V_azK: $result = pdo_update($this->tablePrefix . 'industry', $condition, array("id" => $id)); goto oaCpR; MdFGE: $this->json_return('', 0); goto Fh5N_; ulk97: $industry = pdo_fetch('SELECT  `name` FROM' . tablename($this->tablePrefix . 'industry') . ' WHERE id = :id', array(":id" => $_GPC['id'])); goto oqaNX; CoszE: $condition['sort'] = intval($_GPC['sort']); goto yL8Uc; EoeYR: $condition = array(); goto m0wsi; gcs0F: MivUz: goto V_azK; B7YZE: goto rtX9f; goto gcs0F; ZCaZt: goto cGpUi; goto pjlHR; oY74L: $condition['icon'] = $_GPC['icon']; goto CoszE; lD5jM: $result = pdo_insert($this->tablePrefix . 'industry', $condition); goto B7YZE; m0wsi: $condition['uniacid'] = $_W['uniacid']; goto IAxwa; t64vr: foreach ($list as $v) { goto NNaEN; XhHbp: pdo_update($this->tablePrefix . 'item', $data, array("id" => $v['id'])); goto iPWoN; iPWoN: DJtJe: goto dR7E2; NNaEN: $data['industry'] = str_replace($industry['name'], $name, $v['industry']); goto XhHbp; dR7E2: } goto ceBrf; erjtn: } public function doWebIndustryDel() { goto ogfBe; XRO2J: rsZHo: goto ashiz; ZGeU2: $this->json_return('', 0); goto dS8N6; BoeP6: $id = intval($_GPC['id']); goto S3fze; ogfBe: global $_GPC, $_W; goto BoeP6; X8REn: $this->json_return(''); goto qp4Sa; rYfaa: $this->json_return(', !', 0); goto XRO2J; dS8N6: goto zzvA6; goto ah9Dj; fn4Fo: $result = pdo_delete($this->tablePrefix . 'industry', array("id" => $id)); goto wpvgf; ndXjG: goto rsZHo; goto OMLPj; GmuRG: $list = pdo_fetchall('SELECT `industry` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `industry` LIKE \'%' . $data['name'] . '%\''); goto sv8PT; qp4Sa: zzvA6: goto ndXjG; ah9Dj: cpLtp: goto X8REn; wpvgf: if ($result != false) { goto cpLtp; } goto ZGeU2; OMLPj: Zr3F9: goto rYfaa; S3fze: $data = pdo_fetch('SELECT `name` FROM ' . tablename($this->tablePrefix . 'industry') . ' WHERE `id` = :id', array("id" => $id)); goto GmuRG; sv8PT: if (count($list) > 0) { goto Zr3F9; } goto fn4Fo; ashiz: } public function doWebIdentify() { goto sITwL; KzZCL: $list = pdo_fetchall('SELECT `i`.`id`,`i`.`name`,`i`.`uid`,`i`.`path`,`i`.`mobile`,`i`.`company`,`i`.`title`,`i`.`address`,`i`.`status`,`i`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'identify') . ' `i`' . ' LEFT JOIN ' . tablename('mc_members') . ' `m` ON `m`.`uid`=`i`.`uid`' . $where . ' ORDER BY `i`.`id` DESC limit ' . $pageindex2 . ',' . $pagesize); goto lGVC9; Sd8rQ: $where .= ' and `i`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto HzIB1; HzIB1: yI4Ct: goto KG8Yo; wlFD2: $pageindex2 = 0; goto TDpsN; sITwL: global $_GPC, $_W; goto xG58a; y77xo: gNCjZ: goto unt4e; h_zGV: if (!($datemax && $datemin == false)) { goto ZRsug; } goto dmhps; hSvfs: $where .= ' and `i`.`create_time` > ' . $datemin; goto ryIhE; QeTMA: if (!$nickname) { goto gNCjZ; } goto VqXPb; lGVC9: include $this->template('identify/identify_list'); goto hk1Po; oEzgV: I7ras: goto S1XRK; pCQOO: xiNk1: goto Mpdh7; Mpdh7: $pageindex = 0; goto wlFD2; xG58a: $url = $this->createWebUrl('identify'); goto FTUJd; S1XRK: $mobile = trim($_GPC['mobile']); goto goJqk; dmhps: $where .= ' and  `i`.`create_time` < ' . $datemax; goto PFAkD; OKnZC: fbajl: goto HmOGi; FTUJd: $where = ' WHERE `i`.`uniacid` = ' . $_W['uniacid']; goto LDfW0; KG8Yo: if (!($datemin && $datemax == false)) { goto tqAmG; } goto hSvfs; ryIhE: tqAmG: goto h_zGV; hjrdk: $where .= ' and `i`.`name` LIKE \'%' . $name . '%\''; goto oEzgV; TDpsN: nRJ2h: goto efKGS; a2oDY: goto nRJ2h; goto pCQOO; ONseo: $total = count($totalList); goto oQ51e; rEDpT: $datemax = strtotime($_GPC['datemax']); goto e4vmF; LDfW0: $nickname = trim($_GPC['nickname']); goto QeTMA; EOkb5: $totalList = pdo_fetchall('SELECT `i`.`id` FROM ' . tablename($this->tablePrefix . 'identify') . ' `i` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `i`.`uid` = `m`.`uid`' . $where . ' ORDER BY `i`.`id` DESC'); goto ONseo; Ddi5n: $where .= ' and `i`.`mobile` = \'' . $mobile . '\''; goto OKnZC; yc9wN: if (!$name) { goto I7ras; } goto hjrdk; unt4e: $name = trim($_GPC['name']); goto yc9wN; mq13Q: $pageindex = $_GPC['page']; goto VRAY2; oQ51e: $pagesize = 6; goto BlJMb; e4vmF: if (!($datemin && $datemax)) { goto yI4Ct; } goto Sd8rQ; VqXPb: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto y77xo; HmOGi: $datemin = strtotime($_GPC['datemin']); goto rEDpT; VRAY2: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto a2oDY; efKGS: $pager = pagination($total, $pageindex, $pagesize); goto KzZCL; goJqk: if (!$mobile) { goto fbajl; } goto Ddi5n; PFAkD: ZRsug: goto EOkb5; BlJMb: if (!isset($_GPC['page'])) { goto xiNk1; } goto mq13Q; hk1Po: } public function doWebIdentifyEdit() { goto KfTWC; RUZkO: $data = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'identify') . ' WHERE id = :id LIMIT 1', array(":id" => $id)); goto B8wqm; Ddx6U: $id = intval($_GPC['id']); goto TLS7U; KfTWC: global $_GPC, $_W; goto Ddx6U; NyCqq: include $this->template('identify/identify_info'); goto JGr7W; B8wqm: pgzJB: goto NyCqq; TLS7U: if (!($id > 0)) { goto pgzJB; } goto RUZkO; JGr7W: } public function doWebIdentifySave() { goto Albom; skoEJ: $condition['tel'] = $_GPC['tel']; goto ftAJv; RcNK9: if (!empty($_GPC['title'])) { goto iGcI2; } goto yFXFQ; HkK03: F3856: goto TyWLJ; n48oA: $condition['mobile'] = $_GPC['mobile']; goto TRkJb; CuajT: t5cYJ: goto dpew3; ftAJv: $condition['fax'] = $_GPC['fax']; goto xo8vb; MhC3k: $this->collect($uid, $id, 2, 1); goto iYkM2; pOKYX: if (empty($_GPC['email'])) { goto GG7fF; } goto svvm6; ixkiL: $this->json_return('', 0); goto POcST; c3FBE: if (preg_match('/^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89]|09)\d{8}$/', $_GPC['mobile'])) { goto Nbh4d; } goto L2qb1; Albom: global $_GPC, $_W; goto TkJ1a; Sn4gH: if (!empty($_GPC['company'])) { goto ZBVm4; } goto ixkiL; L2qb1: $this->json_return('', 0); goto Qw_h9; TkJ1a: $id = intval($_GPC['id']); goto X4sXc; Qu64f: $condition['name'] = $_GPC['name']; goto n48oA; FEEMh: JJWu8: goto Sn4gH; uD06H: $condition['title'] = $_GPC['title']; goto DKwTd; xylsT: j4xcQ: goto dXzHR; FXKsj: $condition['www'] = $_GPC['www']; goto SywUb; Qw_h9: Nbh4d: goto FEEMh; FnJtY: $this->json_return('', 0); goto HkK03; gSqOD: if (!empty($_GPC['name'])) { goto t5cYJ; } goto um1q2; WfaGO: $result = pdo_update($this->tablePrefix . 'identify', $condition, array("id" => $id)); goto xylsT; OA7uc: $this->json_return('', 0); goto EPpi3; dpew3: if (empty($_GPC['mobile'])) { goto JJWu8; } goto c3FBE; a8Scb: MI4_m: goto MhC3k; DKwTd: $condition['email'] = $_GPC['email']; goto skoEJ; TyWLJ: GG7fF: goto qMGFG; um1q2: $this->json_return('', 0); goto CuajT; jy37Z: iGcI2: goto pOKYX; iYkM2: $this->views($uid, $id, 2, 1); goto VEOHa; qMGFG: $condition = array(); goto Qu64f; h0SLE: if (!($id > 0)) { goto j4xcQ; } goto WfaGO; POcST: ZBVm4: goto RcNK9; X4sXc: $uid = intval($_GPC['uid']); goto gSqOD; SywUb: $condition['status'] = $_GPC['status']; goto RCg5B; dXzHR: if ($result != false) { goto MI4_m; } goto OA7uc; xo8vb: $condition['sort'] = $_GPC['sort']; goto FXKsj; svvm6: if (preg_match('/^([0-9A-Za-z\-_\.]+)@([0-9a-z]+\.[a-z]{2,3}(\.[a-z]{2})?)$/i', $_GPC['email'])) { goto F3856; } goto FnJtY; yFXFQ: $this->json_return('', 0); goto jy37Z; VEOHa: $this->json_return(''); goto WVHwB; TRkJb: $condition['company'] = $_GPC['company']; goto uD06H; EPpi3: goto O35E5; goto a8Scb; RCg5B: $condition['update_time'] = time(); goto h0SLE; WVHwB: O35E5: goto YPM8X; YPM8X: } public function doWebIdentifyDel() { goto nDvbU; M7cbd: $id = intval($_GPC['id']); goto WZPl4; YSs5_: if ($result != false) { goto kNXGI; } goto kTIcr; oREEb: kNXGI: goto jyDM3; w4j3V: $result = pdo_delete($this->tablePrefix . 'identify', array("id" => $id)); goto YSs5_; jyDM3: $this->json_return(''); goto YJgGB; OSTt_: goto RUTKH; goto oREEb; nDvbU: global $_GPC, $_W; goto M7cbd; kTIcr: $this->json_return('', 0); goto OSTt_; cBJMw: $request = $this->collect($uid, $id, 2, 2); goto w4j3V; WZPl4: $uid = intval($_GPC['uid']); goto cBJMw; YJgGB: RUTKH: goto bmdZl; bmdZl: } public function doWebItemDesign() { goto FQBgY; cJOhD: $img_key = 0; goto gdQXj; gdQXj: if (!(count($poster_data) > 0)) { goto yPK9M; } goto exOvp; FQBgY: global $_GPC, $_W; goto WUznc; chz29: fRl6C: goto WrCXE; exOvp: foreach ($poster_data as $key => $value) { goto ndGpp; FKHG5: $img_key = $key; goto zn1VP; ndGpp: if (!($value['type'] == 'img')) { goto iYXZP; } goto FKHG5; suBKk: H2_eq: goto La_bF; zn1VP: iYXZP: goto suBKk; La_bF: } goto chz29; eo344: include $this->template('item/item_design'); goto dxvHD; WrCXE: yPK9M: goto eo344; WUznc: $design = unserialize(getAppConfSd('card_qrcode_design')); goto B5TsQ; B5TsQ: $poster_data = json_decode($design['data'], true); goto cJOhD; dxvHD: } public function doWebItemDesignSave() { goto sc6Hu; sc6Hu: global $_GPC, $_W; goto O2kKb; ivG45: $data = serialize($data); goto oRl0d; O2kKb: if (empty($_GPC['poster']['data'])) { goto JaUaV; } goto LHGci; vWtOD: vQ0u6: goto wpXMe; o7bPY: $this->json_return('', 0); goto lysvl; lysvl: goto AYhQY; goto ovbeN; LHGci: $data = str_replace('&quot;', '"', $_GPC['poster']); goto FxdCI; fTT4u: JaUaV: goto vfBf2; BHtwZ: $this->json_return(''); goto hignM; oRl0d: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("uniacid" => $_W['uniacid'], "code" => "card_qrcode_design")); goto HyXfk; wpXMe: $data['data'] = json_encode($data['data']); goto ivG45; etwU1: if ($result != false) { goto U42CD; } goto o7bPY; FxdCI: $data['data'] = json_decode($data['data'], true); goto b3ogy; HyXfk: pdo_update($this->tablePrefix . 'item', array("qrcode_pic" => "")); goto etwU1; b3ogy: foreach ($data['data'] as $key => $v) { goto qgfDK; hyKoZ: XXFXk: goto MJ08U; qgfDK: if (!($v['type'] == 'img' && $v['img'] == '')) { goto XXFXk; } goto bqKHC; bqKHC: unset($data['data'][$key]); goto hyKoZ; MJ08U: r5vRm: goto n1Z_B; n1Z_B: } goto vWtOD; hignM: AYhQY: goto fTT4u; ovbeN: U42CD: goto BHtwZ; vfBf2: } public function doWebItemBanner() { goto s3tcU; ajxG4: $list = pdo_getall($this->tablePrefix . 'cardbanner', array("uniacid" => $_W['uniacid']), array("id", "pic", "status", "sort"), ''); goto aCuaB; QzIb5: $tab_id = $_GPC['tab_id']; goto g48vE; s3tcU: global $_GPC, $_W; goto ajxG4; aCuaB: $count = count($list); goto QzIb5; g48vE: include $this->template('item_banner/item_banner_list'); goto AmTH_; AmTH_: } public function doWebItemBannerEdit() { goto lZf4u; aLcSw: if (!($id > 0)) { goto ytvjC; } goto b9pRG; TB9ET: $pageData = getOtherConf('can_nav_pages'); goto iAZ0a; lZf4u: global $_GPC, $_W; goto h5hPV; iAZ0a: include $this->template('item_banner/item_banner_info'); goto LKuri; h5hPV: $id = intval($_GPC['id']); goto aLcSw; v92yv: ytvjC: goto TB9ET; b9pRG: $data = pdo_fetch('SELECT `id`,`pic`,`type`,`value`,`appid`,`sort`,`status` FROM ' . tablename($this->tablePrefix . 'cardbanner') . ' WHERE `id` = :id', array(":id" => $id)); goto v92yv; LKuri: } public function doWebItemBannerSave() { goto kdM__; QTVLC: eZ9Z2: goto A7K0B; yV6ZH: TZF_l: goto jCAUN; F5YQc: YBtBJ: goto AI4de; z9hGU: $condition['value'] = trim($_GPC['path']); goto yV6ZH; LZpHo: $id = intval($_GPC['id']); goto uWDbl; ZY2Yv: $this->json_return('', 0); goto F5YQc; zN4lh: $condition['pic'] = trim($_GPC['pic']); goto ELxiE; TfMoi: NoUHX: goto PZI46; Ye5P3: gTKjR: goto IKRul; BikZw: $condition['status'] = intval($_GPC['status']); goto u4GAa; gUPJO: $this->json_return('appid', 0); goto Bp2hw; LxXi5: $this->json_return('', 0); goto Zcz1E; Bdsva: Qj_p_: goto zN4lh; aB5_u: $this->json_return('', 0); goto RUxjW; AOot7: xRxui: goto gm8H_; i9ygf: $condition['create_time'] = time(); goto O6k93; xvH22: PeSNA: goto x_ff5; UNKPl: oNDcJ: goto OKeoj; AI4de: if (!(intval($_GPC['type']) === false)) { goto RLlcv; } goto qKnv3; jN1Rd: Xi6i0: goto Oydt2; sd0GS: nLaaA: goto acQ_w; qFXYY: if (!(intval($_GPC['type']) == 7)) { goto Qj_p_; } goto VL1Sm; Ej_7z: if (intval($_GPC['type']) != 6) { goto NoUHX; } goto MiMon; s01tl: $this->json_return(' //!', 0); goto xvH22; ELxiE: $condition['sort'] = intval($_GPC['sort']); goto BikZw; PZI46: if (!(trim($_GPC['value']) == '')) { goto gTKjR; } goto FfRji; x_ff5: if (in_array(trim($_GPC['path']), getOtherConf('can_nav_pages'))) { goto C6h0e; } goto LxXi5; kdM__: global $_GPC, $_W; goto LZpHo; ae0L3: aTAqz: goto iXa1m; Ki6RA: $this->json_return('!', 0); goto PQ3UI; SbXCD: unset($condition['value']); goto uWUQo; SlMXO: $this->json_return(''); goto UNKPl; QvAWU: $condition['value'] = trim($_GPC['value']); goto MzTRV; VL1Sm: unset($condition['value']); goto y9gZH; MzTRV: if (!(intval($_GPC['type']) == 2)) { goto rgrCv; } goto xSMug; Oydt2: if (!(trim($_GPC['path']) == '')) { goto PeSNA; } goto s01tl; jCAUN: if (!(intval($_GPC['type']) == 5)) { goto eonmy; } goto SbXCD; ovsYv: rgrCv: goto P6WKV; u4GAa: if ($id > 0) { goto aTAqz; } goto A5W1X; qKnv3: $this->json_return('!', 0); goto dF0KZ; gm8H_: if (!(intval($_GPC['type']) == 2 && trim($_GPC['appid']) == '')) { goto bCTD_; } goto gUPJO; MiMon: if (intval($_GPC['type']) == 6) { goto Xi6i0; } goto xATOW; uWUQo: $condition['value'] = trim($_GPC['value2']); goto RlQ75; ihTd2: wyZ5P: goto RAwAs; LkI3Q: $condition['type'] = intval($_GPC['type']); goto QvAWU; A7K0B: if ($result != false) { goto iRhB8; } goto aB5_u; xATOW: if (!(intval($_GPC['type']) == 5)) { goto wyZ5P; } goto Roo5a; RlQ75: eonmy: goto qFXYY; iXa1m: $condition['update_time'] = time(); goto Tzjo9; Tzjo9: $result = pdo_update($this->tablePrefix . 'cardbanner', $condition, array("id" => $id, "uniacid" => $_W['uniacid'])); goto QTVLC; FfRji: $this->json_return('// !', 0); goto Ye5P3; IKRul: zlRrP: goto BYc3o; RUxjW: goto oNDcJ; goto IUXBO; PQ3UI: fwdQ7: goto AOot7; y9gZH: $condition['value'] = trim($_GPC['value3']); goto Bdsva; O6k93: $result = pdo_insert($this->tablePrefix . 'cardbanner', $condition); goto gBjlZ; gBjlZ: goto eZ9Z2; goto ae0L3; dF0KZ: RLlcv: goto Ej_7z; RAwAs: goto nLaaA; goto jN1Rd; p2whL: if (!(trim($_GPC['value3']) == '')) { goto fwdQ7; } goto Ki6RA; acQ_w: goto zlRrP; goto TfMoi; A5W1X: $condition['uniacid'] = $_W['uniacid']; goto i9ygf; Bp2hw: bCTD_: goto LkI3Q; Roo5a: if (!(trim($_GPC['value2']) == '')) { goto t0m7k; } goto p8lTq; lBhn6: unset($condition['value']); goto z9hGU; BYc3o: if (!(intval($_GPC['type']) == 7)) { goto xRxui; } goto p2whL; Zcz1E: C6h0e: goto sd0GS; IUXBO: iRhB8: goto SlMXO; p8lTq: $this->json_return('!', 0); goto YXPUi; YXPUi: t0m7k: goto ihTd2; xSMug: $condition['appid'] = trim($_GPC['appid']); goto ovsYv; P6WKV: if (!(intval($_GPC['type']) == 6)) { goto TZF_l; } goto lBhn6; uWDbl: if (!(trim($_GPC['pic']) == '')) { goto YBtBJ; } goto ZY2Yv; OKeoj: } public function doWebItemBannerDel() { goto B05yk; CPL8u: goto iwCyR; goto ZJuIO; cjo3n: $result = pdo_delete($this->tablePrefix . 'cardbanner', array("id" => $id, "uniacid" => $_W['uniacid'])); goto E7Xh0; MuHIJ: $id = intval($_GPC['id']); goto QuoiF; B05yk: global $_GPC, $_W; goto MuHIJ; QuoiF: if (!($id < 1)) { goto vB_PE; } goto zsnIP; xKLKc: $this->json_return(''); goto BZ3sG; BZ3sG: iwCyR: goto bvHbh; a9TvO: $this->json_return('', 0); goto CPL8u; HSBOR: vB_PE: goto cjo3n; zsnIP: $htis->json_return('', 0); goto HSBOR; E7Xh0: if ($result != false) { goto Qz5zq; } goto a9TvO; ZJuIO: Qz5zq: goto xKLKc; bvHbh: } public function doWebArtSetting() { goto jVdr1; eV9bD: $list = pdo_fetchall('SELECT `id`,`name`,`code`,`type`,`value`,`tip`,`store_range` FROM ' . tablename($this->tablePrefix . $this->configTable) . ' WHERE `code` in(\'open_art_balance\',\'art_record_fee\',\'art_switch\', \'art_nose_title\', \'art_nose_tips\', \'art_fodder_host\', \'account_uniacid\') and `uniacid` = :uniacid', array(":uniacid" => $_W['uniacid'])); goto WalKB; A0UBL: $art_bottom_nav = unserialize($art_bottom_nav); goto E70w2; qOabp: mbhXG: goto JUmGL; E70w2: if (!($art_bottom_nav != false)) { goto hIrMy; } goto Fy0Do; yvlkr: $art_bottom_nav = array_merge($art_bottom_nav); goto tqBUd; JUmGL: $art_bottom_nav = getAppConfSd('art_bottom_nav'); goto A0UBL; WalKB: foreach ($list as $k => $v) { goto eWXMK; eNEeT: Ot2du: goto cn6Jd; NkU8M: aoJ_a: goto H0zZX; Daprr: if (!($v['code'] == 'art_nose_title')) { goto bzdbo; } goto XbjQM; tJGcl: NS6qW: goto VWDrS; acsL1: $data['art_nose_tips'] = $v; goto VzzkS; H0zZX: if (!($v['code'] == 'account_uniacid')) { goto CcKHO; } goto gYEBQ; cn6Jd: if (!($v['code'] == 'art_record_fee')) { goto NS6qW; } goto pLTzz; VzzkS: z_2Rd: goto T5gaS; rx4NA: $data['art_fodder_host'] = $v; goto NkU8M; zbn4U: if (!($v['code'] == 'art_nose_tips')) { goto z_2Rd; } goto acsL1; upH99: CcKHO: goto ronBT; KoR3j: KIeb0: goto Daprr; e_1C6: $data['art_switch'] = $v; goto KoR3j; pLTzz: $data['art_record_fee'] = $v; goto tJGcl; VWDrS: if (!($v['code'] == 'art_switch')) { goto KIeb0; } goto e_1C6; gYEBQ: $data['account_uniacid'] = $v; goto upH99; Y_sCM: bzdbo: goto zbn4U; T5gaS: if (!($v['code'] == 'art_fodder_host')) { goto aoJ_a; } goto rx4NA; eWXMK: if (!($v['code'] == 'open_art_balance')) { goto Ot2du; } goto rzb3y; ronBT: APSlM: goto ncFEe; XbjQM: $data['art_nose_title'] = $v; goto Y_sCM; rzb3y: $data['open_art_balance'] = $v; goto eNEeT; ncFEe: } goto qOabp; Th45I: include $this->template('art/setting'); goto B_C2w; tqBUd: hIrMy: goto Hn7rN; Hn7rN: $art_bottom_color = getAppConfSd('art_bottom_color'); goto Th45I; jVdr1: global $_GPC, $_W; goto eV9bD; Fy0Do: $art_bottom_nav_count = count($art_bottom_nav); goto yvlkr; B_C2w: } public function doWebArtBottomNav() { goto hNprV; hnNGC: $id = intval($_GPC['id']); goto mWOWM; OliTl: xs_TK: goto P2HI2; P2HI2: include $this->template('art/art_bottom_nav'); goto xo9Ig; hNprV: global $_GPC, $_W; goto hnNGC; mWOWM: if (!($id > 0)) { goto xs_TK; } goto yYVLR; yYVLR: $data = $this->getArtBottomNavData($id); goto OliTl; xo9Ig: } public function getArtBottomNavData($id, $type = false) { goto v24Wf; Bk1oL: foreach ($data as $key => $v) { goto BoKp2; BoKp2: if (!($type == false && $id === $v['id'])) { goto rcsV6; } goto QVdmi; bfBZx: rcsV6: goto QhlGa; QVdmi: return $v; goto bfBZx; wIQBK: return $key; goto YHlip; YHlip: otq4d: goto M9j37; QhlGa: if (!($type != false && $id === $v['id'])) { goto otq4d; } goto wIQBK; M9j37: yMJCi: goto bbMvu; bbMvu: } goto oN3VI; v24Wf: if (!($id != false)) { goto N3yru; } goto BBKO5; BBKO5: $data = getAppConfSd('art_bottom_nav'); goto f2HIX; Z1hxi: N3yru: goto ZZIDj; f2HIX: $data = unserialize($data); goto Bk1oL; oN3VI: QmC6h: goto Z1hxi; ZZIDj: } public function doWebArtButtomNavSave() { goto ww5r3; SjWBq: $key = $this->getArtBottomNavData($id, true); goto NsUVd; reYps: w3nyi: goto Q5hLy; wmiOm: goto xfq7F; goto J8HvP; Dm_9T: $condition['id'] = 1; goto ZU0Vs; St7XI: $data[] = $condition; goto Lx1QW; WEJ5m: $data[$key] = $condition; goto LdYOA; dcId7: $id = intval($_GPC['id']); goto DLIxF; fj9GV: $data = unserialize(getAppConfSd('art_bottom_nav')); goto xY4es; ZU0Vs: $data[] = $condition; goto wmiOm; tt2EF: $condition['id'] = $lastId + 1; goto St7XI; Q5hLy: $this->json_return(''); goto Zz85w; ww5r3: global $_GPC, $_W; goto LtU2u; xY4es: if ($data != false) { goto akiCA; } goto Dm_9T; J8HvP: akiCA: goto r7P6a; hKm2z: goto R3JSi; goto reYps; NsUVd: $condition['id'] = $id; goto WEJ5m; LdYOA: goto nF2BH; goto yWH3p; SWYRB: foreach ($data as $v) { $lastId = $v['id']; yGHOG: } goto AqHAo; L_WNE: $condition['text'] = trim($_GPC['text']); goto fj9GV; Lx1QW: nF2BH: goto yfGKn; n7SLm: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("uniacid" => $_W['uniacid'], "code" => "art_bottom_nav")); goto TCUI0; Zz85w: R3JSi: goto dJGPv; r7P6a: if ($id < 1) { goto tm4Y3; } goto SjWBq; DLIxF: $condition['iconPath'] = trim($_GPC['iconPath']) != '' ? $_GPC['iconPath'] : $this->json_return('', 0); goto L9IaF; xNvId: $this->json_return('', 0); goto hKm2z; L9IaF: $condition['selectedIconPath'] = trim($_GPC['selectedIconPath']) != '' ? $_GPC['selectedIconPath'] : $this->json_return('', 0); goto L_WNE; yfGKn: xfq7F: goto zX6sM; AqHAo: v0L2y: goto tt2EF; LtU2u: $condition = array(); goto dcId7; zX6sM: $data = serialize($data); goto n7SLm; TCUI0: if ($result != false) { goto w3nyi; } goto xNvId; yWH3p: tm4Y3: goto SWYRB; dJGPv: } public function doWebArtSettingSave() { goto rUC3u; ykkmi: $art_nose_title = trim($_GPC['art_nose_title']); goto Eoazr; L3nzF: $open_art_balance = intval($_GPC['open_art_balance']); goto VpaZc; HUK7Z: pdo_update($this->tablePrefix . $this->configTable, array("value" => $open_art_balance), array("uniacid" => $_W['uniacid'], "code" => "open_art_balance")); goto skD2N; o7ZGR: $art_bottom_color = trim($_GPC['art_bottom_color']); goto ykkmi; VpaZc: $art_record_fee = floatval($_GPC['art_record_fee']); goto Py9Xy; rUC3u: global $_GPC, $_W; goto L3nzF; awh8z: $this->json_return(''); goto yEjWa; Eoazr: $art_nose_tips = trim($_GPC['art_nose_tips']); goto Rk7kg; skD2N: pdo_update($this->tablePrefix . $this->configTable, array("value" => $art_record_fee), array("uniacid" => $_W['uniacid'], "code" => "art_record_fee")); goto FFzDT; OQR8N: $account_uniacid = $_GPC['account_uniacid']; goto HUK7Z; FFzDT: pdo_update($this->tablePrefix . $this->configTable, array("value" => $art_switch), array("uniacid" => $_W['uniacid'], "code" => "art_switch")); goto sXjeG; Rk7kg: $art_fodder_host = $_GPC['art_fodder_host']; goto OQR8N; r6mB5: pdo_update($this->tablePrefix . $this->configTable, array("value" => $art_nose_tips), array("uniacid" => $_W['uniacid'], "code" => "art_nose_tips")); goto mWdSo; sXjeG: pdo_update($this->tablePrefix . $this->configTable, array("value" => $art_nose_title), array("uniacid" => $_W['uniacid'], "code" => "art_nose_title")); goto r6mB5; GlZaD: pdo_update($this->tablePrefix . $this->configTable, array("value" => $account_uniacid), array("uniacid" => $_W['uniacid'], "code" => "account_uniacid")); goto Bx2dD; Bx2dD: $rel = pdo_update($this->tablePrefix . $this->configTable, array("value" => $art_bottom_color), array("uniacid" => $_W['uniacid'], "code" => "art_bottom_color")); goto awh8z; mWdSo: pdo_update($this->tablePrefix . $this->configTable, array("value" => $art_fodder_host), array("uniacid" => $_W['uniacid'], "code" => "art_fodder_host")); goto GlZaD; Py9Xy: $art_switch = intval($_GPC['art_switch']); goto o7ZGR; yEjWa: } public function doWebItemSet() { goto z_4Bv; O6BIB: $data['daily_poster_style']['store_range'] = json_decode($data['daily_poster_style']['store_range'], true); goto BXIKM; BXIKM: include $this->template('item/item_set'); goto wxfIQ; bTf5Z: hwNBi: goto yHKvE; z_4Bv: global $_GPC, $_W; goto vHnuq; yHKvE: $data['library_screen_style']['store_range'] = json_decode($data['library_screen_style']['store_range'], true); goto O6BIB; KZAev: foreach ($list as $k => $v) { goto nGS05; c2k72: nKEHc: goto pgQp6; DrcWm: $data['show_library_notice'] = $v; goto p2og7; JcMLn: $data['item_forward_pic'] = $v; goto f7vUt; rc516: tVBjR: goto l93cs; p2og7: Vefsd: goto fGhRz; nRBxC: E1h5V: goto flBRf; um1GW: $data['card_examine_switch'] = $v; goto rc516; nGS05: if (!($v['code'] == 'card_examine_switch')) { goto tVBjR; } goto um1GW; HUbV8: $data['library_screen_style'] = $v; goto J3rg2; gBCE2: if (!($v['code'] == 'item_forward_title')) { goto XNALZ; } goto uTknr; TwaD1: EWdOM: goto JtmGG; kKhJs: XNALZ: goto wkTGN; fGhRz: if (!($v['code'] == 'daily_poster_style')) { goto N1v2q; } goto N1Pwb; l93cs: if (!($v['code'] == 'holiday_wishes_pic')) { goto EWdOM; } goto RGOS4; ay0Lj: if (!($v['code'] == 'show_library_notice')) { goto Vefsd; } goto DrcWm; JtmGG: if (!($v['code'] == 'library_screen_style')) { goto oYw5m; } goto HUbV8; N1Pwb: $data['daily_poster_style'] = $v; goto d8HX4; f7vUt: qEYeD: goto kjSfk; d8HX4: N1v2q: goto gBCE2; kjSfk: if (!($v['code'] == 'video_play_jumppage')) { goto E1h5V; } goto M32As; flBRf: if (!($v['code'] == 'enterprise_certify_switch')) { goto nKEHc; } goto Ls8dY; M32As: $data['video_play_jumppage'] = $v; goto nRBxC; uTknr: $data['item_forward_title'] = $v; goto kKhJs; RGOS4: $data['holiday_wishes_pic'] = $v; goto TwaD1; pgQp6: dcWvX: goto lx1Ai; Ls8dY: $data['enterprise_certify_switch'] = $v; goto c2k72; wkTGN: if (!($v['code'] == 'item_forward_pic')) { goto qEYeD; } goto JcMLn; J3rg2: oYw5m: goto ay0Lj; lx1Ai: } goto bTf5Z; vHnuq: $list = pdo_fetchall('SELECT `id`,`name`,`code`,`type`,`value`,`tip`,`store_range` FROM ' . tablename($this->tablePrefix . $this->configTable) . ' WHERE `code` in(\'card_examine_switch\',\'holiday_wishes_pic\',\'library_screen_style\',\'show_library_notice\',\'daily_poster_style\',\'item_forward_title\', \'item_forward_pic\',\'video_play_jumppage\', \'enterprise_certify_switch\') and `uniacid` = :uniacid', array(":uniacid" => $_W['uniacid'])); goto KZAev; wxfIQ: } public function doWebItemSetSave() { goto yc_sN; JdmD7: $card_examine_switch = intval($_GPC['card_examine_switch']); goto jbcxP; r1J2O: pdo_update($this->tablePrefix . $this->configTable, array("value" => $holiday_wishes_pic), array("uniacid" => $_W['uniacid'], "code" => "holiday_wishes_pic")); goto CJqfJ; RfNmp: pdo_update($this->tablePrefix . $this->configTable, array("value" => $item_forward_title), array("uniacid" => $_W['uniacid'], "code" => "item_forward_title")); goto BZ8Mv; dwNxo: $holiday_wishes_pic = $_GPC['holiday_wishes_pic']; goto A3wc0; yc_sN: global $_GPC, $_W; goto JdmD7; CJqfJ: pdo_update($this->tablePrefix . $this->configTable, array("value" => $library_screen_style), array("uniacid" => $_W['uniacid'], "code" => "library_screen_style")); goto Zazvm; A3wc0: $item_forward_title = $_GPC['item_forward_title']; goto dTnuu; o6tXv: pdo_update($this->tablePrefix . $this->configTable, array("value" => $enterprise_certify_switch), array("uniacid" => $_W['uniacid'], "code" => "enterprise_certify_switch")); goto ft6DG; BZ8Mv: pdo_update($this->tablePrefix . $this->configTable, array("value" => $item_forward_pic), array("uniacid" => $_W['uniacid'], "code" => "item_forward_pic")); goto BJACa; ft6DG: $this->json_return(''); goto EvMOl; b11XA: $show_library_notice = intval($_GPC['show_library_notice']); goto cuC0X; cuC0X: $daily_poster_style = intval($_GPC['daily_poster_style']); goto g880u; EVml0: pdo_update($this->tablePrefix . $this->configTable, array("value" => $daily_poster_style), array("uniacid" => $_W['uniacid'], "code" => "daily_poster_style")); goto RfNmp; jbcxP: $library_screen_style = intval($_GPC['library_screen_style']); goto b11XA; g880u: $video_play_jumppage = intval($_GPC['video_play_jumppage']); goto KMxl7; dTnuu: $item_forward_pic = $_GPC['item_forward_pic']; goto u499c; Zazvm: pdo_update($this->tablePrefix . $this->configTable, array("value" => $show_library_notice), array("code" => "show_library_notice", "uniacid" => $_W['uniacid'])); goto EVml0; u499c: pdo_update($this->tablePrefix . $this->configTable, array("value" => $card_examine_switch), array("uniacid" => $_W['uniacid'], "code" => "card_examine_switch")); goto r1J2O; KMxl7: $enterprise_certify_switch = intval($_GPC['enterprise_certify_switch']); goto dwNxo; BJACa: pdo_update($this->tablePrefix . $this->configTable, array("value" => $video_play_jumppage), array("uniacid" => $_W['uniacid'], "code" => "video_play_jumppage")); goto o6tXv; EvMOl: } public function doWebPersonalCertify() { $this->doWebcertifyList(2); } public function doWebCompanyCertify() { $this->doWebcertifyList(1); } public function doWebcertifyList($type = 2) { goto UH1JM; u2eSP: $pager = pagination($total, $pageindex, $pagesize); goto nf6MB; r7q0X: $where = ' WHERE `c`.`status` = 0  and `c`.`uniacid`= ' . $_W['uniacid'] . ' and `c`.`type`= ' . $type; goto PKzLa; u90R6: MPVcM: goto LIFCp; Wq9_9: $where .= ' and `c`.`create_time` > ' . $datemin; goto rDZ1_; M0F1J: $type = intval($_GPC['type']) > 0 ? intval($_GPC['type']) : $type; goto CtcbT; PKzLa: $nickname = trim($_GPC['nickname']); goto gfWiz; rpgdI: SO61Q: goto CvMA1; LIFCp: $pageindex = 0; goto d8n1t; UH1JM: global $_GPC, $_W; goto M0F1J; I4zc1: include $this->template('certify/certify_list'); goto aYBH9; d8n1t: $pageindex2 = 0; goto AhDzg; i27az: if (!($datemax && $datemin == false)) { goto YsKOc; } goto cUG42; CtcbT: $url = $this->createWebUrl('certifyList'); goto r7q0X; cUG42: $where .= ' and `c`.`create_time` < ' . $datemax; goto JJxfk; pLmNv: if (!isset($_GPC['page'])) { goto MPVcM; } goto XPTwP; rDZ1_: b8m0m: goto i27az; n8ZA8: if (!($datemin && $datemax)) { goto SO61Q; } goto Rhs_f; FbjQo: $pagesize = $this->pageCount; goto pxci1; Rhs_f: $where .= ' and `c`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto rpgdI; gfWiz: if (!$nickname) { goto VIs7I; } goto RBvz8; RBvz8: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto Mq70d; CvMA1: if (!($datemin && $datemax == false)) { goto b8m0m; } goto Wq9_9; NHXh3: $datemin = strtotime($_GPC['datemin']); goto nlyk2; uOVEb: $pagesize = 5; goto pLmNv; rS0MQ: $total = count($allList); goto uOVEb; Mq70d: VIs7I: goto NHXh3; nf6MB: $list = pdo_fetchall('SELECT `c`.`id`,`c`.`type`,`c`.`status`,`c`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'certify') . ' `c` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `c`.`uid` = `m`.`uid`' . $where . ' ORDER BY `id` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto I4zc1; AhDzg: XXCt5: goto u2eSP; nlyk2: $datemax = strtotime($_GPC['datemax']); goto n8ZA8; pxci1: $allList = pdo_fetchall('SELECT `c`.`id` FROM ' . tablename($this->tablePrefix . 'certify') . ' `c` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `c`.`uid` = `m`.`uid`' . $where . ' ORDER BY `id` DESC'); goto rS0MQ; XPTwP: $pageindex = intval($_GPC['page']); goto q8VXT; q8VXT: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto t90Kl; JJxfk: YsKOc: goto FbjQo; t90Kl: goto XXCt5; goto u90R6; aYBH9: } public function doWebCertifyEdit() { goto GHwdj; Td4V4: if (!($id < 1)) { goto geYTE; } goto G4fsP; Fm6z0: geYTE: goto h8mgP; h8mgP: $data = pdo_fetch('SELECT `c`.`id`,`c`.`type`,`c`.`uid`, `c`.`license_path`, `c`.`id_path`,`c`.`badge_path`,`c`.`status`,`c`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'certify') . ' `c` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `m`.`uid` = `c`.`uid` WHERE `c`.`id` = :id', array(":id" => $id)); goto dxjD8; GHwdj: global $_GPC, $_W; goto kkLB5; kkLB5: $id = intval($_GPC['id']); goto Td4V4; dxjD8: include $this->template('certify/certify_info'); goto a4tDj; G4fsP: $this->json_return('', 0); goto Fm6z0; a4tDj: } public function doWebCertifySave() { goto jgnfm; hnnyS: pdo_query('UPDATE ' . tablename($this->tablePrefix . 'usersub') . ' SET `cert_msg_sub` = `cert_msg_sub` - 1 WHERE uid = :uid', array(":uid" => $uid)); goto RDMDS; gjybP: $id = intval($_GPC['id']); goto MIFdO; MwJ05: if ($certify['type'] == 2) { goto dDHzL; } goto OMiyl; bSrr2: Xteo9: goto z5oVM; HMQu0: goto ORepo; goto nrFJG; kdZxo: A99WZ: goto rAKkw; aZKNh: WZrUx: goto TlPNm; mJcQN: $this->json_return('', 0); goto eAcMg; wuJyE: $this->json_return('', 0); goto HMQu0; eppkx: $sub_count = $temp['cert_msg_sub']; goto wDieu; ogB2v: if ($status == 1) { goto zAtNU; } goto jsTZa; iIvcR: goto Xteo9; goto XmX36; CsoWK: $this->json_return('', 0); goto VBJtA; eARH4: $re = $this->sendSubMsg($touser, $temp_id, $page, $data); goto VqDXi; QeYnS: $re_account_msg = $this->sendAccountMsg($touser, $page, $data, $msg[$certify['type']], $uid); goto kdZxo; hQfpl: $this->json_return($msg); goto dTUQU; OMiyl: if (!($certify['type'] == 1)) { goto Cb88v; } goto VWgPu; Psyjb: if (!(getAppConfSd('account_msg_switch') == 1)) { goto A99WZ; } goto UslvH; QASP8: if ($re) { goto ksgVj; } goto wuJyE; VBJtA: goto gbu0S; goto aZKNh; eAcMg: idZmJ: goto oHj2V; nGXBz: if (!($id < 1 || $status < 1 || $uid < 1)) { goto idZmJ; } goto mJcQN; O7TOz: $sub_count = $temp['cert_msg_sub']; goto T_hZ4; jsTZa: $cerInfo = pdo_fetch('SELECT `info` FROM ' . tablename($this->tablePrefix . 'certify') . ' WHERE id = :id ORDER BY create_time DESC LIMIT 1', array(":id" => $id)); goto nQFZ8; MIFdO: $uid = intval($_GPC['uid']); goto dOeoh; zcjg8: $touser = $this->getFansInfoByUid($uid, 'openid'); goto z1t6y; dTUQU: ORepo: goto gcTTo; VWgPu: $re2 = pdo_update($this->tablePrefix . 'user', array("is_company" => $status), array("id" => $uid)); goto JVE8G; vRPQk: $page = 'super_card/pages/index/index'; goto MB3_D; rAKkw: $temp_id = getAppConfSd('certify_result_tempid'); goto dSqaE; qRJ7E: $temp = pdo_fetch('SELECT `cert_msg_sub` FROM ' . tablename($this->tablePrefix . 'usersub') . ' WHERE uid = :uid LIMIT 1', array(":uid" => $uid)); goto eppkx; FfJiL: $msg[1] = ''; goto In7qL; MzBU4: $re2 = pdo_update($this->tablePrefix . 'user', array("is_v" => $status), array("id" => $uid)); goto bSrr2; ppsih: Ss0jI: goto m9GGD; dOeoh: $status = intval($_GPC['status']); goto sAdEA; SuQVK: $re_account_msg = $this->sendAccountMsg($touser, $page, $data, $msg[$certify['type']], $uid); goto ppsih; T_hZ4: if (!($sub_count > 0)) { goto eNDu6; } goto W88JE; YBI6t: $certify = pdo_fetch('SELECT `id`, `type` FROM ' . tablename($this->tablePrefix . 'certify') . ' WHERE id = :id LIMIT 1', array(":id" => $id)); goto W3F2x; z5oVM: if ($re2) { goto WZrUx; } goto CsoWK; dSqaE: if (!(!$re_account_msg && $temp_id)) { goto dAb47; } goto FjBul; TlPNm: $cerInfo = pdo_fetch('SELECT `info` FROM ' . tablename($this->tablePrefix . 'certify') . ' WHERE id = :id ORDER BY create_time DESC LIMIT 1', array(":id" => $id)); goto zcjg8; oHj2V: $re = pdo_update($this->tablePrefix . 'certify', array("status" => $status, "info" => $info), array("id" => $id)); goto QASP8; FjBul: $temp = pdo_fetch('SELECT `cert_msg_sub` FROM ' . tablename($this->tablePrefix . 'usersub') . ' WHERE uid = :uid LIMIT 1', array(":uid" => $uid)); goto O7TOz; XmX36: dDHzL: goto MzBU4; HC5yn: $re = $this->sendSubMsg($touser, $temp_id, $page, $data); goto hnnyS; z1t6y: $page = 'super_card/pages/index/index'; goto Psyjb; nQFZ8: $touser = $this->getFansInfoByUid($uid, 'openid'); goto vRPQk; JxhYo: kMWLU: goto GxdG6; VZEDM: $data = array("first" => array("value" => $msg[$certify['type']]), "keyword1" => array("value" => getAppConfSd('app_name')), "keyword2" => array("value" => '' . ($certify['type'] == 2 ? '' : '') . '-[' . ($status == 1 ? '' : '') . ']'), "remark" => array("value" => date('Y-m-d H:i'))); goto SuQVK; GxdG6: kfH3M: goto VcvYJ; JVE8G: Cb88v: goto iIvcR; cZ_H4: $msg = $status == 1 ? '' : ''; goto hQfpl; m9GGD: $temp_id = getAppConfSd('certify_result_tempid'); goto fKIoP; v8zhH: P9X8L: goto cZ_H4; nrFJG: ksgVj: goto YBI6t; Tu7IR: gbu0S: goto v8zhH; VcvYJ: goto P9X8L; goto NZAxD; fKIoP: if (!(!$re_account_msg && $temp_id)) { goto kfH3M; } goto qRJ7E; W3F2x: $msg = array(); goto FfJiL; AxFlo: $data = array("phrase4" => array("value" => $certify['type'] == 2 ? '' : ''), "phrase1" => array("value" => $status == 1 ? '' : ''), "thing5" => array("value" => $status == 1 ? '' : '')); goto HC5yn; jgnfm: global $_GPC, $_W; goto gjybP; VqDXi: pdo_query('UPDATE ' . tablename($this->tablePrefix . 'usersub') . ' SET `cert_msg_sub` = `cert_msg_sub` - 1 WHERE uid = :uid', array(":uid" => $uid)); goto OR7_r; RAlPK: eNDu6: goto OD9Wm; wDieu: if (!($sub_count > 0)) { goto kMWLU; } goto AxFlo; In7qL: $msg[2] = ''; goto ogB2v; RDMDS: pdo_insert($this->tablePrefix . 'msglog', array("uniacid" => $_W['uniacid'], "uid" => $uid, "msg" => $msg[$certify['type']], "r_content" => $re['content'], "create_time" => time())); goto JxhYo; OD9Wm: dAb47: goto Tu7IR; OR7_r: pdo_insert($this->tablePrefix . 'msglog', array("uniacid" => $_W['uniacid'], "uid" => $uid, "msg" => $msg[$certify['type']], "r_content" => $re['content'], "create_time" => time())); goto RAlPK; NZAxD: zAtNU: goto MwJ05; UslvH: $data = array("first" => array("value" => $msg[$certify['type']]), "keyword1" => array("value" => getAppConfSd('app_name')), "keyword2" => array("value" => '' . ($certify['type'] == 2 ? '' : '') . '-[' . ($status == 1 ? '' : '') . ']'), "remark" => array("value" => date('Y-m-d H:i'))); goto QeYnS; W88JE: $data = array("phrase4" => array("value" => $certify['type'] == 2 ? '' : ''), "phrase1" => array("value" => $status == 1 ? '' : ''), "thing5" => array("value" => $status == 1 ? '' : '')); goto eARH4; sAdEA: $info = trim($_GPC['info']); goto nGXBz; MB3_D: if (!(getAppConfSd('account_msg_switch') == 1)) { goto Ss0jI; } goto VZEDM; gcTTo: } public function doWebHandledCertify() { goto oW6Va; GzyTH: if (!($datemin && $datemax)) { goto l30uo; } goto GcOFJ; cdO9S: $nickname = trim($_GPC['nickname']); goto Y_603; EfPla: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto Ay7Bk; GcOFJ: $where .= ' and `c`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto mrNM3; edqQ5: $where = ' WHERE `c`.`status` <> 0  and `c`.`uniacid`=\'' . $_W['uniacid'] . '\' '; goto cdO9S; w0gbI: $pager = pagination($total, $pageindex, $pagesize); goto ofQe2; fXS4k: $pagesize = $this->pageCount; goto yLWc0; XP8qh: oYNoD: goto w0gbI; E5_iR: $where .= ' and `c`.`create_time` < ' . $datemax; goto t0TNK; twdlS: if (!($datemax && $datemin == false)) { goto IFBe3; } goto E5_iR; JuzVR: if (!($type > 0)) { goto Rv3T7; } goto EIodG; DXld0: $pageindex2 = 0; goto XP8qh; UgvuT: $url = $this->createWebUrl('handledCertify'); goto edqQ5; JyreT: z5fby: goto bqP00; EIodG: $where .= ' and `c`.`type`= ' . $type; goto eYMt2; Ay7Bk: goto oYNoD; goto JyreT; QzSLD: if (!isset($_GPC['page'])) { goto z5fby; } goto fbbh0; quVd1: $where .= ' and `c`.`create_time` > ' . $datemin; goto BpF4a; BZcNB: if (!($datemin && $datemax == false)) { goto woWXz; } goto quVd1; pjj9s: include $this->template('certify/handled_certify'); goto jPQbH; ofQe2: $list = pdo_fetchall('SELECT `c`.`id`,`c`.`uid`,`c`.`type`,`c`.`status`,`c`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'certify') . ' `c` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `c`.`uid` = `m`.`uid`' . $where . ' ORDER BY `id` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto pjj9s; mrNM3: l30uo: goto BZcNB; BpF4a: woWXz: goto twdlS; s5PWq: $pagesize = 5; goto QzSLD; JZrh9: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto RQyzH; fbbh0: $pageindex = intval($_GPC['page']); goto EfPla; oW6Va: global $_GPC, $_W; goto UgvuT; Y_603: if (!$nickname) { goto FH090; } goto JZrh9; L3dLY: $type = intval($_GPC['type']); goto JuzVR; bqP00: $pageindex = 0; goto DXld0; yLWc0: $allList = pdo_fetchall('SELECT `c`.`id` FROM ' . tablename($this->tablePrefix . 'certify') . ' `c` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `c`.`uid` = `m`.`uid`' . $where . ' ORDER BY `id` DESC'); goto svKXu; RQyzH: FH090: goto L3dLY; lsMta: $datemin = strtotime($_GPC['datemin']); goto vrwzd; t0TNK: IFBe3: goto fXS4k; svKXu: $total = count($allList); goto s5PWq; eYMt2: Rv3T7: goto lsMta; vrwzd: $datemax = strtotime($_GPC['datemax']); goto GzyTH; jPQbH: } public function doWebHandledEdit() { goto ntnLs; CSVMY: $this->json_return('', 0); goto B9eys; ntnLs: global $_GPC, $_W; goto d54f9; d54f9: $id = intval($_GPC['id']); goto GT2c5; B9eys: zTV3I: goto KsVAk; GT2c5: if (!($id < 1)) { goto zTV3I; } goto CSVMY; KsVAk: $data = pdo_fetch('SELECT `c`.`id`,`c`.`type`,`c`.`uid`, `c`.`license_path`, `c`.`id_path`,`c`.`badge_path`,`c`.`status`,`c`.`info`,`c`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'certify') . ' `c` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `m`.`uid` = `c`.`uid` WHERE `c`.`id` = :id', array(":id" => $id)); goto Kbw54; Kbw54: include $this->template('certify/handled_certify_info'); goto oLDOP; oLDOP: } public function doWebHandledDel() { goto KQKTI; b0vUL: $uid = intval($_GPC['uid']); goto C3Dys; u6gob: $this->json_return('', 0); goto VNbFg; KQKTI: global $_GPC, $_W; goto X8z1Y; P738H: if ($result != false) { goto MEw8_; } goto x85Yo; cD0os: $result = pdo_delete($this->tablePrefix . 'certify', array("id" => $id)); goto P738H; OXbLJ: if (!($type == 2)) { goto u2odV; } goto Kpkrf; Oj6iQ: MEw8_: goto ysd33; wJ6ZI: MFJ6B: goto OXbLJ; VNbFg: syM8N: goto UBV3_; Kpkrf: $re = pdo_update($this->tablePrefix . 'user', array("is_v" => 0), array("id" => $uid)); goto spP08; e_zDL: dzpAk: goto bDtuA; UBV3_: if (!($type == 1)) { goto MFJ6B; } goto pJP71; DdHrb: goto dzpAk; goto Oj6iQ; pJP71: $re = pdo_update($this->tablePrefix . 'user', array("is_company" => 0), array("id" => $uid)); goto wJ6ZI; spP08: u2odV: goto cD0os; oujyP: if (!($id < 1 || $uid < 1)) { goto syM8N; } goto u6gob; X8z1Y: $id = intval($_GPC['id']); goto b0vUL; x85Yo: $this->json_return('', 0); goto DdHrb; C3Dys: $type = intval($_GPC['type']); goto oujyP; ysd33: $this->json_return(''); goto e_zDL; bDtuA: } public function doWebUser() { goto tC_LJ; uIFM3: OUsfz: goto qQFg1; BnsTL: if (!($datemin && $datemax == false)) { goto C_tuT; } goto NBHFf; tLyju: $datemin = strtotime($_GPC['datemin']); goto AGvi4; mZoAF: foreach ($member_grade as $k => $v) { goto jue7s; jue7s: $grade_data[$k]['id'] = $v['id']; goto J8LZo; YE3nG: EpBJQ: goto y0OL6; drMYO: $user_grade[$v['id']] = $v['name']; goto YE3nG; J8LZo: $grade_data[$k]['name'] = $v['name']; goto drMYO; y0OL6: } goto yJa2j; GDlRh: if (!($is_agent != NULL || $is_agent != '')) { goto SJ18z; } goto OA6sd; Q0NQG: $totalList = pdo_fetchall('SELECT `u`.`id` FROM ' . tablename($this->tablePrefix . 'user') . ' `u` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `u`.`id` = `m`.`uid`' . $where . ' ORDER BY `u`.`id` DESC'); goto GoXMP; x9NhJ: $where .= ' and `u`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto Mt5Ii; Rh8eU: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto qXTqZ; qXTqZ: N1Odc: goto tLyju; YqkYB: if (!($datemin && $datemax)) { goto lK_rz; } goto x9NhJ; xglfm: $nickname = trim($_GPC['nickname']); goto T0Vbw; zndIg: foreach ($list as $k => $v) { $list[$k]['user_grade'] = $user_grade[$v['vip']] == false ? '' : $user_grade[$v['vip']]; QDyAx: } goto haiw8; tX2mq: W8LOO: goto tD06Q; Wy0BB: $where .= ' and `u`.`agent`=' . intval($is_agent); goto Y3bCu; mmjQf: C_tuT: goto F9WzB; gaBuW: $where .= ' and `u`.`create_time` < ' . $datemax; goto rOkbw; T0Vbw: if (!$nickname) { goto N1Odc; } goto Rh8eU; cFmc3: $where .= ' and `u`.`vip`=' . intval($vip_type); goto uIFM3; yyuqg: hTsxP: goto pf0tB; haiw8: xm2AD: goto SiiP_; cCXdK: if (!($vip_type != NULL || $vip_type != '')) { goto sQzxk; } goto NzFVU; Mt5Ii: lK_rz: goto BnsTL; NzFVU: if (!(intval($vip_type) !== false)) { goto OUsfz; } goto cFmc3; KQDOi: $grade_data = array(); goto uSNcz; yJa2j: W4Nz2: goto yyuqg; GoXMP: $total = count($totalList); goto Eu5jK; Y3bCu: YQCB4: goto dQtEJ; NBHFf: $where .= ' and `u`.`create_time` > ' . $datemin; goto mmjQf; ix7fC: $pageindex2 = 0; goto n8N39; tD06Q: $pageindex = 0; goto ix7fC; ums8m: $pageindex = $_GPC['page']; goto KkLmi; AGvi4: $datemax = strtotime($_GPC['datemax']); goto YqkYB; Nv_Nm: goto nEvoB; goto tX2mq; dQtEJ: SJ18z: goto Q0NQG; Eu5jK: $pagesize = 5; goto FyYUN; OA6sd: if (!(intval($is_agent) !== false)) { goto YQCB4; } goto Wy0BB; pf0tB: $plugin = pdo_fetch('SELECT `id` FROM ' . tablename('modules_plugin') . ' WHERE `name`=\'super_card_plugin_admin\''); goto pu8TY; qQFg1: sQzxk: goto s2428; F9WzB: if (!($datemax && $datemin == false)) { goto R1PyA; } goto gaBuW; KkLmi: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto Nv_Nm; uSNcz: $user_grade = array(); goto kt5c8; ScI6O: $list = pdo_fetchall('SELECT `u`.`id`,`u`.`card_num`,`u`.`money`,`u`.`is_v`,`u`.`is_company`,`u`.`vip`,`u`.`agent`,`u`.`agent_balance`,`u`.`admin`, `u`.`art_record`, `u`.`status`,`u`.`create_time`,`m`.`uid`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'user') . ' `u` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `u`.`id` = `m`.`uid`' . $where . ' ORDER BY `u`.`id` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto zndIg; GprqX: $member_grade = unserialize(getAppConfSd('member_grade')); goto QXqug; QXqug: if (!(count($member_grade) > 0 && is_array($member_grade))) { goto hTsxP; } goto mZoAF; tC_LJ: global $_GPC, $_W; goto GJPL0; s2428: $is_agent = $_GPC['is_agent']; goto GDlRh; FyYUN: if (!isset($_GPC['page'])) { goto W8LOO; } goto ums8m; pu8TY: $is_show = isset($plugin['id']) ? true : false; goto y_Jbh; XQCpn: $pager = pagination($total, $pageindex, $pagesize); goto ScI6O; rOkbw: R1PyA: goto y5tMK; n8N39: nEvoB: goto XQCpn; SiiP_: include $this->template('user/user_list'); goto rVN_B; y_Jbh: $where = ' WHERE `u`.`uniacid` = ' . $_W['uniacid']; goto xglfm; y5tMK: $vip_type = $_GPC['vip_type']; goto cCXdK; GJPL0: $url = $this->createWebUrl('user'); goto KQDOi; kt5c8: $user_grade[0] = ''; goto GprqX; rVN_B: } public function doWebUserBalance() { goto UYIH8; UYIH8: global $_GPC, $_W; goto g0NXo; gkge5: include $this->template('user/user_balance'); goto RN5TC; g0NXo: $id = intval($_GPC['id']); goto gkge5; RN5TC: } public function doWebUserBalanceSave() { goto jQYVw; Uunl8: pdo_insert($this->tablePrefix . 'accountlog', $arr); goto VZQj3; VZQj3: $this->json_return(''); goto CtyHf; cITnx: $arr['uid'] = $id; goto k0loD; m0wFt: $this->json_return(', ', 0); goto c9fOg; P1hLt: $arr['type'] = $type; goto Rtg64; k0loD: $arr['money'] = $_GPC['money']; goto P1hLt; Mz0w6: $condition['update_time'] = time(); goto CQ4It; MqH3e: $condition['money'] = $_GPC['money']; goto dCaH2; ewAtW: $condition['money'] += $data['money']; goto zKqmE; J52qZ: $condition['money'] = $data['money'] - $condition['money']; goto Qtx9n; v_CbJ: if ($result != false) { goto Lru6w; } goto jbAOm; Du0dx: Lru6w: goto Uue11; CQ4It: $result = pdo_update($this->tablePrefix . 'user', $condition, array("id" => $id)); goto v_CbJ; pWsh_: goto eZ8Fm; goto CR4Ep; WOGDA: $arr['uniacid'] = $_W['uniacid']; goto cITnx; HkB3w: U4M8W: goto W5JBf; UlWZV: if (!empty($_GPC['type'])) { goto ZF6sj; } goto DyG0F; CAy1Q: if (!($id < 1)) { goto U4M8W; } goto WxMxk; dCaH2: if ($type == 1) { goto NbtsX; } goto O30R4; lynXc: if (!($data['money'] - $condition['money'] < 0)) { goto BDQvA; } goto m0wFt; jQYVw: global $_GPC, $_W; goto km8bh; km8bh: $id = intval($_GPC['id']); goto CAy1Q; Uue11: $arr = array(); goto WOGDA; O30R4: if (!($type == 2)) { goto PeAo6; } goto lynXc; Qtx9n: PeAo6: goto pWsh_; s2aQZ: $arr['change_desc'] = $_GPC['change_desc']; goto Uunl8; iGS3y: $condition = array(); goto MqH3e; zKqmE: eZ8Fm: goto Mz0w6; d_6S2: $data = pdo_fetch('SELECT `id`, `money` FROM ' . tablename($this->tablePrefix . 'user') . ' WHERE `id` = :id', array(":id" => $id)); goto iGS3y; cJGHc: $type = intval($_GPC['type']); goto d_6S2; CtyHf: LWtp4: goto DG97g; jbAOm: $this->json_return(''); goto LQHc5; LQHc5: goto LWtp4; goto Du0dx; E4CPm: $this->json_return('', 0); goto mA7VN; CR4Ep: NbtsX: goto ewAtW; W5JBf: if (!empty($_GPC['money'])) { goto o2vjo; } goto E4CPm; mA7VN: o2vjo: goto UlWZV; w85xA: ZF6sj: goto cJGHc; c9fOg: BDQvA: goto J52qZ; DyG0F: $this->json_return('', 0); goto w85xA; WxMxk: $this->json_return('', 0); goto HkB3w; Rtg64: $arr['create_time'] = time(); goto s2aQZ; DG97g: } public function doWebUserLog() { goto Li2zQ; wfYEO: qhYzv: goto gvmf3; zR8wE: goto JZhpq; goto wfYEO; gvmf3: $pageindex = 1; goto cirR8; Li2zQ: global $_GPC, $_W; goto Fi3Hf; Z1Z55: $money = pdo_fetch('SELECT `money` FROM ' . tablename($this->tablePrefix . 'user') . ' WHERE `id` = :id LIMIT 1', array(":id" => $id)); goto VjmY3; HEyP8: include $this->template('user/user_accountlog'); goto mprNf; EDAPA: $totalList = pdo_getall($this->tablePrefix . 'accountlog', array("uid" => $id, "uniacid" => $_W['uniacid']), array("id"), ''); goto iU3Z9; Fi3Hf: $id = intval($_GPC['id']); goto rGL86; NVLQG: $member = pdo_fetch('SELECT `uid`,`nickname`,`avatar` FROM ' . tablename('mc_members') . ' WHERE `uid` = :uid LIMIT 1', array(":uid" => $id)); goto Z1Z55; rGL86: if (!isset($_GPC['page'])) { goto qhYzv; } goto MfAUn; MfAUn: $pageindex = $_GPC['page']; goto zR8wE; cirR8: JZhpq: goto EDAPA; onP01: $pager = pagination($total, $pageindex, $this->pageCount); goto NVLQG; iU3Z9: $total = count($totalList); goto onP01; VjmY3: $list = pdo_getall($this->tablePrefix . 'accountlog', array("uid" => $id, "uniacid" => $_W['uniacid']), array("id", "money", "type", "change_desc", "create_time"), '', array("create_time DESC"), array($pageindex, $this->pageCount)); goto HEyP8; mprNf: } public function doWebUserVip() { goto zZaIV; zZaIV: global $_GPC, $_W; goto LYBR5; vSoxg: include $this->template('user/user_vip'); goto vgC1a; k44lt: foreach ($member_grade as $k => $v) { goto dL_e5; NaW33: xtOGU: goto r86uw; dL_e5: $grade_data[$k]['id'] = $v['id']; goto jEXU4; jEXU4: $grade_data[$k]['name'] = $v['name']; goto NaW33; r86uw: } goto c7yH3; x80CI: $id = intval($_GPC['id']); goto wY9YS; BW1bN: S7S7r: goto vSoxg; HEcXj: jGwk7: goto x80CI; VtFaZ: $member_grade = unserialize(getAppConfSd('member_grade')); goto TmsgO; TmsgO: if (!(count($member_grade) > 0 && is_array($member_grade))) { goto jGwk7; } goto k44lt; c7yH3: pJKSJ: goto HEcXj; EvCxY: $data = pdo_fetch('SELECT `id`, `vip`,`vip_last_time` FROM ' . tablename($this->tablePrefix . 'user') . ' WHERE  `id` = :id LIMIT 1', array(":id" => $id)); goto BW1bN; wY9YS: if (!($id > 0)) { goto S7S7r; } goto EvCxY; LYBR5: $grade_data = array(); goto VtFaZ; vgC1a: } public function doWebUserVipSave() { goto hkhDA; atIER: goto HKHPj; goto Ckt_z; EIHdx: goto g2nyv; goto uvjPv; QxyxN: $this->json_return('', 0); goto EIHdx; HXt3U: WWWi2: goto YdqCs; alH8i: $this->json_return('', 0); goto HXt3U; hIl0G: $this->json_return(''); goto wMupn; Pr9cn: $condition['vip_last_time'] = strtotime($_GPC['vip_last_time']); goto Hdx0_; USaom: $result = pdo_update($this->tablePrefix . 'user', $condition, array("id" => $id)); goto elN2Y; YdqCs: $is_v = intval($_GPC['is_v']); goto Mgspv; GM_LO: $id = intval($_GPC['id']); goto Y5m8l; qbChV: $condition['update_time'] = time(); goto USaom; kHLpn: $this->json_return('', 0); goto DpO94; wMupn: g2nyv: goto PgVKX; Mgspv: if ($is_v > 0) { goto Fj1El; } goto CAbz0; ZmnsS: $condition['vip_last_time'] = 0; goto atIER; qxX0P: if (!($id < 1 || $vip < 1)) { goto WWWi2; } goto alH8i; Y5m8l: $vip = intval($_GPC['vip']); goto qxX0P; Hdx0_: if (!($condition['vip_last_time'] < 1)) { goto dhO7W; } goto kHLpn; P54S2: HKHPj: goto qbChV; elN2Y: if ($result != false) { goto R2vmy; } goto QxyxN; Ckt_z: Fj1El: goto RGC8X; DpO94: dhO7W: goto P54S2; uvjPv: R2vmy: goto hIl0G; RGC8X: $condition['vip'] = $vip; goto Pr9cn; CAbz0: $condition['vip'] = 0; goto ZmnsS; hkhDA: global $_GPC, $_W; goto GM_LO; PgVKX: } public function doWebUserBg() { goto G8j6Y; GMnqN: include $this->template('user/user_bg'); goto eefbi; YFCxc: $list = pdo_getall($this->tablePrefix . 'cardbg', array("uid" => $uid, "uniacid" => $_W['uniacid'], "type" => 1), array("id", "uid", "name", "bg_url", "text_color", "status"), '', array("id DESC")); goto GMnqN; TzMJ1: $uid = intval($_GPC['id']); goto YFCxc; G8j6Y: global $_GPC, $_W; goto TzMJ1; eefbi: } public function doWebUserBgStatus() { goto a7HoR; uP9sh: MVmRY: goto MmuV1; X2eD8: $id = intval($_GPC['id']); goto cQ2z6; pU_fV: $this->json_return(''); goto uP9sh; a7HoR: global $_GPC, $_W; goto X2eD8; cQ2z6: if (!($id < 1)) { goto tJMpS; } goto UI2HL; UI2HL: $this->json_return('', 0); goto nplk_; WYduO: $result = pdo_update($this->tablePrefix . 'cardbg', array("status" => $status), array("id" => $id)); goto RTvWP; zWlZE: $status = intval($_GPC['status']); goto WYduO; IKZAJ: goto MVmRY; goto wfG4d; RTvWP: if ($result != false) { goto Ok1eR; } goto LBhvS; LBhvS: $this->json_return('', 0); goto IKZAJ; wfG4d: Ok1eR: goto pU_fV; nplk_: tJMpS: goto zWlZE; MmuV1: } public function doWebCardTemplate() { goto biAFr; biAFr: global $_GPC, $_W; goto w7MP4; jfU6H: tuZZl: goto SHpnp; P3lfD: $card_tem = array(); goto EzTpj; EzTpj: foreach ($data as $k => $v) { goto nNM7r; UX_Wk: LUBH7: goto StLIf; K20OI: $card_tem['price' . $v['id']] = $v['price']; goto nFO_y; RfmRu: $card_tem['tip' . $v['id']] = $v['tip']; goto UX_Wk; nFO_y: $card_tem['free' . $v['id']] = $v['free']; goto GbF4T; GbF4T: $card_tem['pic' . $v['id']] = $v['pic']; goto RfmRu; nNM7r: $card_tem['name' . $v['id']] = $v['name']; goto K20OI; StLIf: } goto jfU6H; s21UV: if (!(is_array($data) && count($data) > 0)) { goto Lbp2P; } goto P3lfD; w7MP4: $data = unserialize(getAppConfSd('card_style')); goto s21UV; kKwkc: include $this->template('user/card_template'); goto pipre; SHpnp: Lbp2P: goto kKwkc; pipre: } public function doWebCardTemplateSave() { goto rrZGD; nLRfa: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("uniacid" => $_W['uniacid'], "code" => "card_style")); goto ml3QB; ml3QB: if ($result != false) { goto qT7R6; } goto WqW1t; WqW1t: $this->json_return('', 0); goto O0GSw; ktpnQ: $this->json_return(''); goto JXe8b; dN3K1: qT7R6: goto ktpnQ; zNEtm: FQknS: goto M28bx; Ut6QL: $this->json_return('', 0); goto zNEtm; cLbLZ: if (!(trim($_GPC['name1']) == '' || trim($_GPC['name2']) == '' || trim($_GPC['name3']) == '')) { goto It53c; } goto maiRg; WJpQp: if (!(trim($_GPC['pic1']) == '' || trim($_GPC['pic2']) == '' || trim($_GPC['pic3']) == '')) { goto FQknS; } goto Ut6QL; c6UdO: if (!(trim($_GPC['price2']) == '' || trim($_GPC['price3']) == '')) { goto sNEGB; } goto FM3hI; g2wKT: sNEGB: goto WJpQp; O0GSw: goto HX2aY; goto dN3K1; rrZGD: global $_GPC, $_W; goto cLbLZ; JXe8b: HX2aY: goto rSXBs; VgA0a: $data = serialize($card_tem); goto nLRfa; FM3hI: $this->json_return('', 0); goto g2wKT; M28bx: $card_tem = array(array("id" => 1, "name" => trim($_GPC['name1']), "pic" => $_GPC['pic1'], "tip" => trim($_GPC['tip1'])), array("id" => 2, "name" => trim($_GPC['name2']), "pic" => $_GPC['pic2'], "price" => trim($_GPC['price2']), "free" => intval($_GPC['free2']), "tip" => trim($_GPC['tip2'])), array("id" => 3, "name" => trim($_GPC['name3']), "pic" => $_GPC['pic3'], "price" => trim($_GPC['price3']), "free" => intval($_GPC['free3']), "tip" => trim($_GPC['tip3']))); goto VgA0a; maiRg: $this->json_return('', 0); goto bjtv3; bjtv3: It53c: goto c6UdO; rSXBs: } public function doWebComebackList() { goto JxBpI; fyVTs: $totalList = pdo_fetchall('SELECT `c`.`id` FROM ' . tablename($this->tablePrefix . 'comeback') . ' `c` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `c`.`uid`= `m`.`uid` LEFT JOIN ' . tablename('mc_members') . ' `m2`  ON `c`.`t_uid` = `m2`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `c`.`card_id` = `i`.`id` ' . $where . ' ORDER BY `c`.`id` DESC'); goto MitGe; E_khK: $name2 = trim($_GPC['name2']); goto zBMtA; ui2r7: $pagesize = 5; goto NJhpi; NJhpi: if (!isset($_GPC['page'])) { goto tYRXv; } goto p11C8; Ufiym: include $this->template('user/come_back_list'); goto YEK4d; yLrfD: sOJq5: goto E_khK; ZWpuD: $pageindex = 0; goto PkcwX; JxBpI: global $_GPC, $_W; goto hcvdJ; PkcwX: $pageindex2 = 0; goto wgdHz; wgdHz: Mxv2j: goto t1SEe; erwvs: tYRXv: goto ZWpuD; Hqhlk: $name1 = trim($_GPC['name1']); goto G2sIf; zBMtA: if (!$name2) { goto qPvnO; } goto teB4S; rPX7u: $where .= ' and `m`.`nickname` LIKE \'%' . $name1 . '%\''; goto yLrfD; O0RxP: qPvnO: goto fyVTs; upOYK: $where = ' WHERE `c`.`uniacid` = ' . $_W['uniacid']; goto Hqhlk; p11C8: $pageindex = $_GPC['page']; goto QoP6u; teB4S: $where .= ' and  `m2`.`nickname` LIKE \'%' . $name2 . '%\''; goto O0RxP; MitGe: $total = count($totalList); goto ui2r7; t1SEe: $pager = pagination($total, $pageindex, $pagesize); goto JBnNF; G2sIf: if (!$name1) { goto sOJq5; } goto rPX7u; JBnNF: $list = pdo_fetchall('SELECT `c`.`id`,`c`.`uid`, `c`.`card_id`, `c`.`msg`,`c`.`status`,`c`.`create_time`,`m`.`nickname`,`m`.`avatar`,`m2`.`nickname` `nickname2`,`m2`.`avatar` as `avatar2`,`i`.`name` FROM ' . tablename($this->tablePrefix . 'comeback') . ' `c` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `m`.`uid` = `c`.`uid` LEFT JOIN ' . tablename('mc_members') . ' `m2` ON `m2`.`uid` = `c`.`t_uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `i`.`id` = `c`.`card_id`' . $where . ' ORDER BY `c`.`id` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto Ufiym; QoP6u: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto ssHZd; ssHZd: goto Mxv2j; goto erwvs; hcvdJ: $url = $this->createWebUrl('comeBackList'); goto upOYK; YEK4d: } public function doWebComeBackShow() { goto dFYhG; idP0m: $id = intval($_GPC['id']); goto o9XIx; o9XIx: if (!($id > 0)) { goto Jcehc; } goto tOwoF; gq2Hq: $cardbg = pdo_getall($this->tablePrefix . 'cardbg', array("uniacid" => $_W['uniacid'], "status" => 1, "type" => 0), array("id", "name")); goto J6o_h; J6o_h: include $this->template('user/come_back_show'); goto hm1Fe; taZ6O: $industry = pdo_getall($this->tablePrefix . 'industry', array("uniacid" => $_W['uniacid'], "status" => 1), array("id", "name")); goto gq2Hq; tOwoF: $data = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE id = :id LIMIT 1', array(":id" => $id)); goto Wn18Q; Wn18Q: Jcehc: goto taZ6O; dFYhG: global $_GPC, $_W; goto idP0m; hm1Fe: } public function doWebFeedBackList() { goto b9tL6; QKvX9: $pageindex = 0; goto BomcX; MhNn_: foreach ($list as $key => $v) { $list[$key]['content'] = urldecode($v['content']); dVZtu: } goto OK76Q; B9KFf: T6qF3: goto DBAL4; OK76Q: hbVM8: goto vJUGz; J2HS5: Gv69P: goto QKvX9; mASVr: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto krHCP; vJUGz: include $this->template('user/freed_back_list'); goto uPNCE; M5Sin: $pagesize = 5; goto zil2h; yIgW6: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto B9KFf; ETzl4: $nickname = $_GPC['nickname']; goto naCv1; BomcX: $pageindex2 = 0; goto XE_Vu; krHCP: goto h5XHI; goto J2HS5; jsG15: $pageindex = $_GPC['page']; goto mASVr; XfmHM: $list = pdo_fetchall('SELECT `f`.`id`,`f`.`content`,`f`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'feedback') . ' `f` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `m`.`uid` = `f`.`uid`' . $where . ' ORDER BY `f`.`id`  DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto MhNn_; b9tL6: global $_GPC, $_W; goto Juz3a; XE_Vu: h5XHI: goto Pa1r6; Juz3a: $url = $this->createWebUrl('feedBackList'); goto QvQFn; Pa1r6: $pager = pagination($total, $pageindex, $pagesize); goto XfmHM; QvQFn: $where = '  WHERE `f`.`uniacid` = \'' . $_W['uniacid'] . '\''; goto ETzl4; zil2h: if (!isset($_GPC['page'])) { goto Gv69P; } goto jsG15; nRgM5: $total = count($totalList); goto M5Sin; DBAL4: $totalList = pdo_fetchall('SELECT `f`.`id`,`f`.`content`,`f`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'feedback') . ' `f` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `m`.`uid` = `f`.`uid`' . $where . ' ORDER BY `f`.`id` DESC'); goto nRgM5; naCv1: if (!$nickname) { goto T6qF3; } goto yIgW6; uPNCE: } public function doWebFeedBackDel() { goto Mhn06; jasiB: if ($result != false) { goto RFbh8; } goto OjT3d; UdB7S: $result = pdo_delete($this->tablePrefix . 'feedback', array("id" => $id)); goto jasiB; VQwZ7: RFbh8: goto c6Oj_; c6Oj_: $this->json_return(''); goto BotHS; ikTsi: $id = $_GPC['id']; goto UdB7S; b_6Jh: goto k8ZM2; goto VQwZ7; OjT3d: $this->json_return('', 0); goto b_6Jh; BotHS: k8ZM2: goto sfzpG; Mhn06: global $_GPC, $_W; goto ikTsi; sfzpG: } public function doWebEnterpriseApply() { goto Y1mc4; q3x3V: $pager = pagination($total, $pageindex, $pagesize); goto WzGCN; M58gO: if (!$enter_name) { goto VW1cY; } goto QxrbJ; h2UIa: $datemax = strtotime($_GPC['datemax']); goto uU3HT; TuQDJ: if (!isset($_GPC['page'])) { goto BZEUm; } goto DLa_r; RdMlP: $total = count($allList); goto TuQDJ; uj7jH: BZEUm: goto tC7HK; DLa_r: $pageindex = $_GPC['page']; goto XX9UC; CHF6T: $where['uniacid'] = $_W['uniacid']; goto kw8rF; QxrbJ: $where['enter_name LIKE'] = '%' . $enter_name . '%'; goto Qmnwb; K_zxU: $where['create_time >='] = $datemin; goto fut1u; GypPc: if (!($list != '')) { goto I7qD0; } goto cCOcl; cCOcl: foreach ($list as $k => $v) { $list[$k]['addr'] = $v['province'] . $v['city'] . $v['area']; RqOA8: } goto ZrcVm; ZrcVm: JL0sF: goto IZwOk; Ckrkv: B3cvn: goto htMVM; tC7HK: $pageindex = 0; goto XyEyQ; gnEKO: $allList = pdo_getall($this->tablePrefix . 'enterpriseapply', $where, array("id"), ''); goto RdMlP; mCohR: $where['create_time <'] = $datemax; goto NfajL; h61Mz: qZ39A: goto yWCVR; Qmnwb: VW1cY: goto UZN5W; klzKf: $pagesize = $this->pageCount; goto q3x3V; WzGCN: $list = pdo_getall($this->tablePrefix . 'enterpriseapply', $where, array("id", "enter_name", "name", "phone", "province", "city", "area", "address", "latitude", "longitude", "num", "status", "create_time"), '', array("id desc"), array($pageindex, $pagesize)); goto GypPc; yWCVR: if (!($datemin && $datemax == false)) { goto B3cvn; } goto VYTPg; VYTPg: $where['create_time >'] = $datemin; goto Ckrkv; UZN5W: $datemin = strtotime($_GPC['datemin']); goto h2UIa; IZwOk: I7qD0: goto VRPZF; Y1mc4: global $_GPC, $_W; goto SRmgB; fut1u: $where['create_time <='] = $datemax; goto h61Mz; XX9UC: goto RFAU4; goto uj7jH; kw8rF: $enter_name = trim($_GPC['enter_name']); goto M58gO; uU3HT: if (!($datemin && $datemax)) { goto qZ39A; } goto K_zxU; XyEyQ: RFAU4: goto klzKf; VRPZF: include $this->template('user/enterprise_apply_list'); goto uj2eq; NfajL: QtaIL: goto gnEKO; SRmgB: $url = $this->createWebUrl('enterpriseApply'); goto CHF6T; htMVM: if (!($datemax && $datemin == false)) { goto QtaIL; } goto mCohR; uj2eq: } public function doWebEnterpriseApplyStatus() { goto wl3Vg; dsloA: $this->json_return(''); goto XE3Dx; yZTXs: $result = pdo_update($this->tablePrefix . 'enterpriseapply', array("status" => 1), array("id" => $id)); goto NY2gs; s9qrp: goto cBVxT; goto QMZvq; wl3Vg: global $_GPC, $_W; goto m_SFs; XE3Dx: cBVxT: goto g1Qwx; NET0b: $this->json_return('', 0); goto s9qrp; NY2gs: if ($result != false) { goto B0swT; } goto NET0b; m_SFs: $id = intval($_GPC['id']); goto yZTXs; QMZvq: B0swT: goto dsloA; g1Qwx: } public function doWebEnterpriseApplyDel() { goto v5KgM; kDIhu: T2QXY: goto r1ce0; f1SWy: $this->json_return('', 0); goto RUrUV; JvDQx: s51fL: goto b8xCr; lieyr: if ($result != false) { goto WvoSm; } goto f1SWy; aLU4R: if (!is_array($_GPC['id'])) { goto s51fL; } goto Xhw5U; CR8ge: goto qLLIO; goto JvDQx; Xhw5U: $id = $_GPC['id']; goto CR8ge; zuXB7: $this->json_return(''); goto kDIhu; v5KgM: global $_GPC, $_W; goto aLU4R; b8xCr: $id = intval($_GPC['id']); goto N3EmW; mm8ZS: $result = pdo_delete($this->tablePrefix . 'enterpriseapply', array("id in" => $id)); goto lieyr; OaQmx: WvoSm: goto zuXB7; RUrUV: goto T2QXY; goto OaQmx; N3EmW: qLLIO: goto mm8ZS; r1ce0: } public function doWebGroupMessage() { goto HBW_w; s35Rr: $pageData = getOtherConf('tab_bar_pages'); goto PiQhP; PiQhP: include $this->template('user/group_message'); goto RiStl; HBW_w: global $_GPC, $_W; goto s35Rr; RiStl: } public function doWebGetGroupList() { goto BeikI; VoLmD: tZgcX: goto FpQOh; N9LFo: $pagePath = substr($pagePath, 1); goto tNFF5; BeikI: global $_GPC, $_W; goto xUxUO; aQsyM: $list = pdo_fetchall('SELECT `uid` FROM ' . tablename($this->tablePrefix . 'usersub') . ' WHERE `uniacid`= ' . $_W['uniacid'] . ' AND `sign_msg_sub` > 0 ORDER BY `create_time` ASC'); goto YISxB; xUxUO: $list = array(); goto wZMEc; AsPwY: Qxb6k: goto PYD70; Yc9d3: if (count($list) > 0) { goto QBMLz; } goto JFNsj; Zk125: RsFhM: goto OZQjZ; Ni5Yu: $this->json_return('', 0); goto O3zZX; eGRZg: $data['list'] = $list; goto kgHja; loEu1: if (!(trim($pagePath) == '')) { goto RsFhM; } goto mQ1P5; mQ1P5: $this->json_return('', 0); goto Zk125; kgHja: $data['pagePath'] = $pagePath; goto YTEB1; zdCYp: if (!($len > 100)) { goto Qxb6k; } goto j42e3; JFNsj: $this->json_return('', 0); goto SrjA_; YISxB: mPX96: goto Yc9d3; YTEB1: $this->json_return('', 1, $data); goto VoLmD; SrjA_: goto tZgcX; goto siZzJ; TCHyH: $len = mb_strlen($_GPC['message'], 'utf-8'); goto zdCYp; PYD70: if (!(intval($_GPC['getList']) == 1)) { goto mPX96; } goto aQsyM; tNFF5: siltJ: goto ZTzes; ZTzes: if (!(trim($_GPC['message']) == '')) { goto tjqH6; } goto Ni5Yu; j42e3: $this->json_return('100', 0); goto AsPwY; siZzJ: QBMLz: goto eGRZg; wZMEc: $pagePath = $_GPC['pagePath']; goto loEu1; OZQjZ: if (!(substr($pagePath, 0, strlen('/')) === '/')) { goto siltJ; } goto N9LFo; O3zZX: tjqH6: goto TCHyH; FpQOh: } public function doWebgroupMessageStart() { goto U1IFO; dwfSd: $this->json_return(''); goto KtyUw; YIDDJ: cOHPT: goto ZGsv0; D4kAc: if (!($len > 200)) { goto Q9Cah; } goto W3oH0; s9vz6: $this->json_return(''); goto yi4cw; b4xMM: rKuzU: goto j_eIs; uMjwi: $data = array("thing3" => array("value" => '' . $app_name . ''), "thing4" => array("value" => str_cut($message, 50))); goto KgToG; PAFVr: EBJWV: goto m_Fjm; m_Fjm: if (!(trim($_GPC['message']) == '')) { goto oE1w7; } goto tLZvM; noLqy: $page = $pagePath; goto n4SuQ; uJgNg: if (!(trim($pagePath) == '')) { goto EBJWV; } goto BUO5n; HIh6c: $condition = $_GPC['data']; goto gRsIz; bL7Tx: if (!$re_account_msg && $temp_id) { goto DPvt3; } goto E18HC; tLZvM: $this->json_return('', 0); goto UoRQy; jEWpM: goto rKuzU; goto YIDDJ; Ve4VZ: DPvt3: goto uMjwi; KgToG: $result = $this->sendSubMsg($touser, $temp_id, $page, $data); goto dl1ME; BUO5n: $this->json_return('', 0); goto PAFVr; j_eIs: mLWNk: goto jH3zC; n0uSY: $temp_id = getAppConfSd('sign_in_tempid'); goto bL7Tx; luMQV: Q9Cah: goto HIh6c; Q3JZP: $app_name = getAppConfSd('app_name'); goto sGH40; yi4cw: goto Ug6AW; goto tmCu3; E18HC: $this->json_return('ID'); goto x2wrY; jH3zC: Ug6AW: goto MEju0; GfWz0: pdo_insert($this->tablePrefix . 'msglog', array("uniacid" => $_W['uniacid'], "uid" => $condition['uid'], "msg" => "", "r_content" => $result['content'], "create_time" => time())); goto ImWYe; qQqZZ: $pagePath = $_GPC['pagePath']; goto uJgNg; x2wrY: goto mLWNk; goto Ve4VZ; ImWYe: $result = json_decode($result['content'], true); goto HjBC5; Jp7CL: $message = $_GPC['message']; goto Y83S2; FP3Yv: $data = array("first" => array("value" => ""), "keyword1" => array("value" => $app_name), "keyword2" => array("value" => $message), "remark" => array("value" => date('Y-m-d H:i'))); goto rSVXT; Y83S2: $len = mb_strlen($message, 'utf-8'); goto D4kAc; ZGsv0: $this->json_return(''); goto b4xMM; dl1ME: pdo_query('UPDATE ' . tablename($this->tablePrefix . 'usersub') . ' SET `sign_msg_sub` = `sign_msg_sub` - 1 WHERE uid = :uid', array(":uid" => $condition['uid'])); goto GfWz0; KtyUw: Epd9N: goto JemUI; rSVXT: $re_account_msg = $this->sendAccountMsg($touser, $page, $data, '', $condition['uid']); goto lYdqM; U1IFO: global $_GPC, $_W; goto qQqZZ; tmCu3: wi2Ng: goto Q3JZP; S531E: $this->json_return(''); goto jEWpM; JemUI: NC6fi: goto n0uSY; gRsIz: if ($condition['uid'] > 0) { goto wi2Ng; } goto s9vz6; n4SuQ: if (!(getAppConfSd('account_msg_switch') == 1)) { goto NC6fi; } goto FP3Yv; sGH40: $touser = $this->getFansInfoByUid($condition['uid'], 'openid'); goto noLqy; lYdqM: if (!($re_account_msg === true)) { goto Epd9N; } goto dwfSd; W3oH0: $this->json_return('100', 0); goto luMQV; UoRQy: oE1w7: goto Jp7CL; HjBC5: if ($result['errcode'] == 0 && $result['errmsg'] == 'ok') { goto cOHPT; } goto S531E; MEju0: } public function doWebUserSet() { goto MWFN1; nFRbl: k8opE: goto kNPHE; Nc4pR: include $this->template('user/user_set'); goto pMcif; KiBzX: foreach ($list as $v) { goto IgwBa; SgBHY: $data['radar_trial'] = $v; goto Fgw1s; I8Nrh: J0Gn1: goto UknRS; v2JOh: if (!($v['code'] == 'radar_trial')) { goto qPiOZ; } goto SgBHY; oTCtj: if (!($v['code'] == 'radar_trial_time')) { goto S_w3_; } goto Djpxa; n1d0J: if (!($v['code'] == 'member_open_balance')) { goto J0Gn1; } goto S6S46; EoF6F: S_w3_: goto slp71; ipi5p: $data['legal_declaration'] = $v; goto bx7gq; bx7gq: QMXgy: goto v2JOh; PRUII: $data['member_entry_pic'] = $v; goto di0ST; S6S46: $data['member_open_balance'] = $v; goto I8Nrh; MCZyN: a8oHd: goto NQSFh; Djpxa: $data['radar_trial_time'] = $v; goto EoF6F; di0ST: nxx_0: goto n1d0J; NQSFh: if (!($v['code'] == 'legal_declaration')) { goto QMXgy; } goto ipi5p; e9RDv: $data['service_agreement'] = $v; goto MCZyN; KzNey: SWEgV: goto XRO3p; IgwBa: if (!($v['code'] == 'service_agreement')) { goto a8oHd; } goto e9RDv; UknRS: if (!($v['code'] == 'style_open_balance')) { goto mtV9u; } goto aOBEC; slp71: if (!($v['code'] == 'member_entry_pic')) { goto nxx_0; } goto PRUII; Fgw1s: qPiOZ: goto oTCtj; GYmJY: mtV9u: goto KzNey; aOBEC: $data['style_open_balance'] = $v; goto GYmJY; XRO3p: } goto nFRbl; MWFN1: global $_GPC, $_W; goto ZDQYn; kNPHE: $data['radar_trial_time']['store_range'] = json_decode($data['radar_trial_time']['store_range'], true); goto Nc4pR; ZDQYn: $list = pdo_fetchall('SELECT  `name`,`code`,`type`,`store_range`,`value`,`tip` FROM ' . tablename($this->tablePrefix . $this->configTable) . ' WHERE `code` in (\'service_agreement\',\'legal_declaration\', \'radar_trial\',\'radar_trial_time\', \'member_entry_pic\',\'member_open_balance\',\'style_open_balance\') and `uniacid`=:uniacid', array(":uniacid" => $_W['uniacid'])); goto KiBzX; pMcif: } public function doWebUserSetSave() { goto vph8X; Aj5Ft: $radar_trial = intval($_GPC['radar_trial']); goto uWmGq; RyJ4N: pdo_update($this->tablePrefix . $this->configTable, array("value" => $style_open_balance), array("code" => "style_open_balance", "uniacid" => $_W['uniacid'])); goto UvWaR; vNOXI: $style_open_balance = intval($_GPC['style_open_balance']); goto Ipylv; xUd7N: pdo_update($this->tablePrefix . $this->configTable, array("value" => $radar_trial_time), array("code" => "radar_trial_time", "uniacid" => $_W['uniacid'])); goto NrGb5; QfO8A: $this->json_return(''); goto XWDq2; Ipylv: pdo_update($this->tablePrefix . $this->configTable, array("value" => $radar_trial), array("code" => "radar_trial", "uniacid" => $_W['uniacid'])); goto N8kWe; UvWaR: pdo_update($this->tablePrefix . $this->configTable, array("value" => $member_entry_pic), array("code" => "member_entry_pic", "uniacid" => $_W['uniacid'])); goto QfO8A; uQpcV: $member_entry_pic = trim($_GPC['member_entry_pic']); goto kxsGu; riKgb: pdo_update($this->tablePrefix . $this->configTable, array("value" => $legal_declaration), array("code" => "legal_declaration", "uniacid" => $_W['uniacid'])); goto xUd7N; l1iQa: $legal_declaration = $_GPC['legal_declaration']; goto Aj5Ft; kxsGu: $member_open_balance = intval($_GPC['member_open_balance']); goto vNOXI; NrGb5: pdo_update($this->tablePrefix . $this->configTable, array("value" => $member_open_balance), array("code" => "member_open_balance", "uniacid" => $_W['uniacid'])); goto RyJ4N; N8kWe: pdo_update($this->tablePrefix . $this->configTable, array("value" => $service_agreement), array("code" => "service_agreement", "uniacid" => $_W['uniacid'])); goto riKgb; vph8X: global $_GPC, $_W; goto pokZm; pokZm: $service_agreement = $_GPC['service_agreement']; goto l1iQa; uWmGq: $radar_trial_time = intval($_GPC['radar_trial_time']); goto uQpcV; XWDq2: } public function doWebGroup() { goto k7D4m; TS_R2: $nickname = trim($_GPC['nickname']); goto t7csN; OIQn3: $tname = trim($_GPC['tname']); goto atFm7; lajZV: $url = $this->createWebUrl('group'); goto YoIAc; ojjLl: njq3M: goto Yjtvo; i34n3: $pager = pagination($total, $pageindex, $pagesize); goto Xxh1r; cVC6U: $where .= ' and `g`.`name` LIKE \'%' . $name . '%\''; goto dFdxu; WuJId: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto KRe9v; MbTsV: $total = count($totalList); goto sreAv; dFdxu: Occpx: goto OIQn3; sreAv: if (!isset($_GPC['page'])) { goto njq3M; } goto p2284; E93PB: $pageindex2 = 0; goto D0_yw; YoIAc: $where = ' WHERE `g`.`uniacid` = ' . $_W['uniacid']; goto TS_R2; Xxh1r: $list = pdo_fetchall('SELECT `g`.`id`,`g`.`uid`,`g`.`card_id`,`g`.`name`,`g`.`type_id`,`g`.`anyone_request`,`g`.`allow_collect`,`g`.`status`,`g`.`create_time`,`t`.`name` AS `tname`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'group') . ' `g` LEFT JOIN ' . tablename($this->tablePrefix . 'grouptype') . ' `t` ON `t`.`id` = `g`.`type_id` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `m`.`uid` = `g`.`uid`' . $where . ' ORDER BY `g`.`id` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto cUGzK; iTOSJ: $totalList = pdo_fetchall('SELECT `g`.`id` FROM ' . tablename($this->tablePrefix . 'group') . ' `g` LEFT JOIN ' . tablename($this->tablePrefix . 'grouptype') . ' `t` ON `t`.`id` = `g`.`type_id` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `m`.`uid` = `g`.`uid` ' . $where . ' ORDER BY `g`.`id` DESC'); goto MbTsV; NS1dl: $pageindex2 = (intval($_GPC['page']) - 1) * 5; goto QkYHa; KRe9v: fkhQH: goto MWoYH; Ug9fL: PSNPa: goto iTOSJ; MWoYH: $name = trim($_GPC['name']); goto S3EbA; QkYHa: goto kYPfy; goto ojjLl; atFm7: if (!$tname) { goto PSNPa; } goto rUHu4; Yjtvo: $pageindex = 0; goto E93PB; D0_yw: kYPfy: goto iwafQ; iwafQ: $pagesize = 5; goto i34n3; S3EbA: if (!$name) { goto Occpx; } goto cVC6U; k7D4m: global $_GPC, $_W; goto lajZV; rUHu4: $where .= ' and `t`.`name` LIKE \'%' . $tname . '%\''; goto Ug9fL; cUGzK: include $this->template('group/group_list'); goto tuaNU; p2284: $pageindex = $_GPC['page']; goto NS1dl; t7csN: if (!$nickname) { goto fkhQH; } goto WuJId; tuaNU: } public function doWebGroupEdit() { goto U2HXH; MhgpF: $data = pdo_fetch('SELECT `g`.`id`,`g`.`uid`,`g`.`name`,`g`.`type_id`, `g`.`anyone_request`, `g`.`note`, `g`.`allow_collect`,`g`.`status`,`g`.`create_time`,`t`.`name` as `tname`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'group') . ' `g` LEFT JOIN ' . tablename($this->tablePrefix . 'grouptype') . ' `t` ON `g`.`type_id` = `t`.`id` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `g`.`uid` = `m`.`uid`  WHERE `g`.`id` = :id', array(":id" => $id)); goto vNWhK; vNWhK: RBjYo: goto KIXXD; TAv40: if (!($id > 0)) { goto RBjYo; } goto MhgpF; KIXXD: include $this->template('group/group_info'); goto wmZuN; U2HXH: global $_GPC, $_W; goto weIoJ; weIoJ: $id = intval($_GPC['id']); goto TAv40; wmZuN: } public function doWebGroupStatus() { goto S8OO8; oJKfp: goto SKA6N; goto YWq5F; hnlcB: $id = intval($_GPC['id']); goto ZAAoI; ZAAoI: $status = intval($_GPC['status']); goto Ayn89; PsQy6: fh4HY: goto FsMBW; Stctr: $this->json_return('', 0); goto PsQy6; S8OO8: global $_GPC, $_W; goto hnlcB; AS9hR: $this->json_return('', 0); goto oJKfp; UjxIK: $this->json_return(''); goto Ml0mg; uYSta: if ($result != false) { goto K8bev; } goto AS9hR; YWq5F: K8bev: goto UjxIK; FsMBW: $result = pdo_update($this->tablePrefix . 'group', array("status" => $status), array("id" => $id)); goto uYSta; Ayn89: if (!($id < 1)) { goto fh4HY; } goto Stctr; Ml0mg: SKA6N: goto CNRLH; CNRLH: } public function doWebGroupCard() { goto C5A6n; BLxzG: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto Z9s2G; aHvSc: $group_id = intval($_GPC['id']); goto CWBHc; ZFPK1: $pagesize = $this->pageCount; goto JNW3H; hDOto: $pageindex2 = 0; goto PZswX; ka75Q: array_unshift($list, $group); goto E7Sz3; YMCQh: $totalList = pdo_fetchall('SELECT `s`.`id` FROM ' . tablename($this->tablePrefix . 'groups') . ' `s` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `m`.`uid` = `s`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON  `s`.`card_id` = `i`.`id` WHERE `s`.`group_id` = ' . $group_id . ' and `s`.`uniacid` = ' . $_W['uniacid'] . ' ORDER BY `s`.`id` DESC'); goto ZgLAy; T5cuh: $pageindex = $_GPC['page']; goto BLxzG; PZswX: J5oca: goto Y3WoR; Y3WoR: $pager = pagination($total, $pageindex, $pagesize); goto MG1Ww; JNW3H: if (!isset($_GPC['page'])) { goto z3uxq; } goto T5cuh; Z9s2G: goto J5oca; goto n_xpZ; ZgLAy: $total = count($totalList); goto ZFPK1; C5A6n: global $_GPC, $_W; goto aHvSc; j1iIz: $pageindex = 0; goto hDOto; Rn6Jv: $group = pdo_fetch('SELECT `i`.`name`,`i`.`id` as `card_id`,`m`.`nickname`,`m`.`avatar`,`i`.`picture`,`i`.`mobile`,`i`.`company`,`i`.`title`,`i`.`industry`,`i`.`status`,`g`.`name` as `group_name` FROM ' . tablename($this->tablePrefix . 'group') . ' `g` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `g`.`card_id`=`i`.`id` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `i`.`uid`=`m`.`uid` WHERE `g`.`id` = :group_id and `g`.`uniacid` = :uniacid ORDER BY `g`.`id` DESC  LIMIT 1', array(":group_id" => $group_id, ":uniacid" => $_W['uniacid'])); goto ka75Q; E7Sz3: LVqH6: goto bfODK; MG1Ww: $list = pdo_fetchall('SELECT `m`.`nickname`,`m`.`avatar`,`i`.`name`,`i`.`picture`,`i`.`mobile`,`i`.`company`,`i`.`title`,`i`.`industry`,`i`.`status` FROM ' . tablename($this->tablePrefix . 'groups') . ' `s` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `s`.`uid` = `m`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `s`.`card_id` = `i`.`id` WHERE `s`.`group_id` = :group_id AND `s`.`uniacid` = :uniacid ORDER BY `s`.`id` DESC LIMIT ' . $pageindex2 . ',' . $pagesize, array(":group_id" => $group_id, ":uniacid" => $_W['uniacid'])); goto Rn6Jv; CWBHc: if (!($group_id > 0)) { goto LVqH6; } goto YMCQh; n_xpZ: z3uxq: goto j1iIz; bfODK: include $this->template('group/group_card_list'); goto UlvPa; UlvPa: } public function doWebGroupType() { goto uLEuI; pWnHi: $list = pdo_getall($this->tablePrefix . 'grouptype', array("uniacid" => $_W['uniacid']), array("id", "name", "sort", "status"), '', array("id DESC"), array()); goto oK0HH; uLEuI: global $_GPC, $_W; goto pWnHi; oK0HH: include $this->template('group/group_type_list'); goto yr0bZ; yr0bZ: } public function doWebGroupTypeEdit() { goto aYBf_; EE91v: $data = pdo_fetch('SELECT  `id`, `name`,`status` FROM ' . tablename($this->tablePrefix . 'grouptype') . ' WHERE `id` = :id LIMIT 1', array(":id" => $id)); goto Mhnat; LRJVk: $id = intval($_GPC['id']); goto q6sX0; APY9X: include $this->template('group/group_type_info'); goto RXUzI; Mhnat: F7b2D: goto APY9X; aYBf_: global $_GPC, $_W; goto LRJVk; q6sX0: if (!($id > 0)) { goto F7b2D; } goto EE91v; RXUzI: } public function doWebGroupTypeSave() { goto TMj22; LsDEf: $this->json_return('', 0); goto tX3b4; WY2OI: $this->json_return('', 0); goto f2YYx; PvnPq: if ($id > 0) { goto b7203; } goto mjZ1m; vwSIf: $id = intval($_GPC['id']); goto MQsdu; HaECE: $condition['status'] = intval($_GPC['status']); goto PvnPq; IbOel: $condition['update_time'] = time(); goto AfjPC; TMj22: global $_GPC, $_W; goto vwSIf; gv6i5: if ($result != false) { goto OOErd; } goto LsDEf; NnH4s: $condition['name'] = trim($_GPC['name']); goto HaECE; mjZ1m: $condition['uniacid'] = $_W['uniacid']; goto owGbP; da7x6: OOErd: goto tSQh_; owGbP: $condition['create_time'] = time(); goto keGwx; MQsdu: if (!(trim($_GPC['name']) == '')) { goto VJ1Nr; } goto WY2OI; SaB7p: Kv9e8: goto nDaJp; f2YYx: VJ1Nr: goto NnH4s; PKeeQ: n1dhL: goto gv6i5; tSQh_: $this->json_return(''); goto SaB7p; VO50I: b7203: goto IbOel; kilF6: goto n1dhL; goto VO50I; keGwx: $result = pdo_insert($this->tablePrefix . 'grouptype', $condition); goto kilF6; tX3b4: goto Kv9e8; goto da7x6; AfjPC: $result = pdo_update($this->tablePrefix . 'grouptype', $condition, array("id" => $id)); goto PKeeQ; nDaJp: } public function doWebGroupTypeDel() { goto zovve; Yeiw1: xj6p3: goto QnE7B; Y0jyD: MD6iR: goto SiTEg; zovve: global $_GPC, $_W; goto YvPkP; f0TZh: if ($result != false) { goto xj6p3; } goto XiYce; YvPkP: $id = intval($_GPC['id']); goto VxemD; SiTEg: $result = pdo_delete($this->tablePrefix . 'grouptype', array("id" => $id)); goto f0TZh; B_zWL: hU1EK: goto lau4H; QnE7B: $this->json_return(''); goto B_zWL; VxemD: $type = pdo_fetch('SELECT `type_id` FROM ' . tablename($this->tablePrefix . 'group') . ' WHERE `type_id` = :id LIMIT 1', array(":id" => $id)); goto Uf607; oM96t: goto hU1EK; goto Yeiw1; XiYce: $this->json_return('', 0); goto oM96t; Uf607: if (!($type != false)) { goto MD6iR; } goto zG_yU; zG_yU: $this->json_return(',', 0); goto Y0jyD; lau4H: } public function doWebOrder() { goto N9mhW; SiouP: if (!$order_no) { goto lN6bc; } goto foUR9; dARuw: $pagesize = 5; goto lJgkl; xlEoh: $pageindex = 0; goto sfMPA; VBsld: $pager = pagination($total, $pageindex, $pagesize); goto z4z5g; RW0Op: if (!($order_status == 2)) { goto S4G3z; } goto N_Wxm; QSmB0: tWwni: goto RPA1f; PDQMY: $pageindex = $_GPC['page']; goto RQ9c9; s2KXx: $todayTime = $_GPC['todayTime']; goto B_cgA; JWb_w: if (!$nickname) { goto tWwni; } goto ABZtO; HCg1Z: foreach ($list as $k => $v) { goto i0maf; PTcrZ: tSP0z: goto Jf10_; i0maf: $list[$k]['pay_total'] = $v['fee'] + $v['deduction']; goto ObnNZ; FxtAe: e6rFy: goto PTcrZ; ObnNZ: if (!(strpos($list[$k]['pay_total'], '.') === false)) { goto e6rFy; } goto I3fWa; I3fWa: $list[$k]['pay_total'] = $list[$k]['pay_total'] . '.00'; goto FxtAe; Jf10_: } goto kcXpU; y6Y1G: XCq3s: goto RW0Op; KCqY7: b31CC: goto M3Hzj; jreS6: $order_type = trim($_GPC['order_type']); goto Qz_dN; CDIzU: $where .= ' and `o`.`create_time` > ' . $todayTime; goto fTXfs; EVo1R: $where .= ' and `o`.`status` = 1'; goto y6Y1G; Do1EH: $datemax = strtotime($_GPC['datemax']); goto UvlQY; HhZj4: S4G3z: goto HAbvB; M3Hzj: $where .= ' and `o`.`pay_method` = 0'; goto dNC2B; WgGft: $where = ' WHERE `o`.`uniacid` = ' . $_W['uniacid']; goto h2ZyO; xqWTK: goto iXXum; goto KCqY7; ABZtO: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto QSmB0; DGMc9: RTNUq: goto s2KXx; gFJQ6: $where .= ' and `o`.`pay_method` = 1'; goto uskOX; RbYmJ: lN6bc: goto jreS6; z4z5g: $list = pdo_fetchall('SELECT `m`.`nickname`,`m`.`avatar`,`o`.`id`,`o`.`order_no`,`o`.`uid`,`o`.`order_desc`,`o`.`deduction`,`o`.`fee`,`o`.`status`,`o`.`pay_time`,`o`.`pay_method`,`o`.`order_type`,`o`.`create_time` FROM ' . tablename($this->tablePrefix . 'orders') . ' `o` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `o`.`uid` =  `m`.`uid` ' . $where . ' ORDER BY `o`.`create_time` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto HCg1Z; i0OE6: aLJhp: goto xqWTK; oYNDb: $url = $this->createWebUrl('order'); goto WgGft; B_cgA: if (!$todayTime) { goto V97l2; } goto CDIzU; u8yzi: if ($pay_method !== false && $pay_method == 0) { goto aLJhp; } goto e0Zgm; HAbvB: $totalList = pdo_fetchall('SELECT `o`.`id` FROM ' . tablename($this->tablePrefix . 'orders') . ' `o` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `o`.`uid` =  `m`.`uid` ' . $where . ' ORDER BY `o`.`create_time` DESC'); goto MRlgO; KVAQr: $pay_method = intval($_GPC['pay_method']); goto u8yzi; lJgkl: if (!isset($_GPC['page'])) { goto Cui9H; } goto PDQMY; N_Wxm: $where .= ' and `o`.`status` = 0'; goto HhZj4; IijtJ: $order_status = trim($_GPC['order_status']); goto JEuLy; kcXpU: I_CRN: goto Zckla; x3_93: $where .= ' and `o`.`create_time` < ' . $datemax; goto LBvH1; JEuLy: if (!($order_status == 1)) { goto XCq3s; } goto EVo1R; dNC2B: goto iXXum; goto x0LFH; e0Zgm: if ($pay_method !== false && $pay_method == 1) { goto b31CC; } goto N2_u2; foUR9: $where .= ' and `o`.`order_no` = \'' . $order_no . '\''; goto RbYmJ; h2ZyO: $nickname = trim($_GPC['nickname']); goto JWb_w; N9mhW: global $_GPC, $_W; goto oYNDb; GIyYt: $where .= ' and `o`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto qCiQb; LBvH1: GkQbV: goto IijtJ; Hdk19: Cui9H: goto xlEoh; oP_KJ: $where .= ' and `o`.`create_time` > ' . $datemin; goto boT56; N2_u2: if ($pay_method !== false && $pay_method == 2) { goto T7mF6; } goto ojsDW; gf4XC: if (!($datemin && $datemax == false)) { goto o3fti; } goto oP_KJ; B6Y70: F1j_U: goto VBsld; RPA1f: $order_no = trim($_GPC['order_no']); goto SiouP; Qz_dN: if (!$order_type) { goto RTNUq; } goto JJ0OP; L8CCf: if (!($datemax && $datemin == false)) { goto GkQbV; } goto x3_93; boT56: o3fti: goto L8CCf; Zckla: include $this->template('order/order_list'); goto k_Rpg; x0LFH: T7mF6: goto gFJQ6; ojsDW: goto iXXum; goto i0OE6; MRlgO: $total = count($totalList); goto dARuw; UvlQY: if (!($datemin && $datemax)) { goto dlUqN; } goto GIyYt; fTXfs: V97l2: goto KVAQr; qCiQb: dlUqN: goto gf4XC; uskOX: iXXum: goto JYi4a; QAjww: goto F1j_U; goto Hdk19; RQ9c9: $pageindex2 = (intval($_GPC['page']) - 1) * 5; goto QAjww; JYi4a: $datemin = strtotime($_GPC['datemin']); goto Do1EH; JJ0OP: $where .= ' and `o`.`order_type` = \'' . $order_type . '\''; goto DGMc9; sfMPA: $pageindex2 = 0; goto B6Y70; k_Rpg: } public function doWebOrderDetail() { goto yZA6_; Cd7Wc: LJmOO: goto RxXIy; ZU5Kr: $data['pay_total'] = $data['fee'] + $data['deduction']; goto sEtMp; E8AEq: $data = pdo_fetch('SELECT `m`.`nickname`,`m`.`avatar`,`o`.`id`,`o`.`order_no`,`o`.`uid`,`o`.`order_desc`,`o`.`deduction`,`o`.`fee`,`o`.`status`,`o`.`pay_time`,`o`.`create_time`,`o`.`pay_method` FROM ' . tablename($this->tablePrefix . 'orders') . ' `o` LEFT JOIN  ' . tablename('mc_members') . ' `m` ON `m`.`uid` = `o`.`uid` WHERE `o`.`id` = :id LIMIT 1', array(":id" => $id)); goto A3vnx; yZA6_: global $_GPC, $_W; goto ZOLYC; sEtMp: YwfGf: goto Cd7Wc; RxXIy: include $this->template('order/order_detail'); goto s2KTo; bmNdf: if (!($id > 0)) { goto LJmOO; } goto E8AEq; A3vnx: if (!($data['pay_method'] == '0')) { goto YwfGf; } goto ZU5Kr; ZOLYC: $id = intval($_GPC['id']); goto bmNdf; s2KTo: } public function doWebCdkeyDel() { goto TDPGI; xPupV: $this->json_return('', 0); goto aqbZf; XSmmd: goto AmKVg; goto m3MjV; ZIqIX: $result = pdo_delete($this->tablePrefix . 'cdkey', array("id" => $id)); goto QOo7R; k1FX9: $id = intval($_GPC['id']); goto nZabV; odbWn: $this->json_return('', 0); goto XSmmd; QOo7R: if ($result != false) { goto k9xtR; } goto odbWn; m3MjV: k9xtR: goto l87Ks; aqbZf: PBb7B: goto ZIqIX; ota2T: AmKVg: goto Xpg8Q; nZabV: if (!($id < 1)) { goto PBb7B; } goto xPupV; l87Ks: $this->json_return(''); goto ota2T; TDPGI: global $_GPC, $_W; goto k1FX9; Xpg8Q: } public function doWebOrderDel() { goto voyhY; a5524: j9CGN: goto UAtG5; ZaXXZ: $result = pdo_delete($this->tablePrefix . 'orders', array("id" => $id)); goto sSzdX; jXJAB: $id = intval($_GPC['id']); goto Ui2cx; sSzdX: if ($result != false) { goto j9CGN; } goto WrRxH; d5mw2: QcHag: goto mfeQm; WrRxH: $this->json_return('', 0); goto qFyJZ; Ui2cx: if (!($id < 1)) { goto gFdO9; } goto mJpF_; UAtG5: $this->json_return(''); goto d5mw2; qFyJZ: goto QcHag; goto a5524; EwLBa: gFdO9: goto ZaXXZ; mJpF_: $this->json_return('', 0); goto EwLBa; voyhY: global $_GPC, $_W; goto jXJAB; mfeQm: } public function doWebSquare() { goto l7QjD; XBV5H: grjV9: goto BI3WO; mcq3L: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto yK6gT; rAJop: $where .= ' and `s`.`create_time` > ' . $datemin; goto WdOcA; PafZA: if (!($datemax && $datemin == false)) { goto DeBWo; } goto cL9AC; l7QjD: global $_GPC, $_W; goto kvFJ9; gLa3t: if (!($datemin && $datemax)) { goto wSv2s; } goto Gg6vJ; zOeO1: if (!$nickname) { goto MoGVD; } goto mcq3L; RC74N: apWBy: goto foMFQ; TAlWM: $pageindex = intval($_GPC['page']); goto Gc0ke; VYkvQ: $top = intval($_GPC['top']); goto eY42j; DM92T: $where .= ' and `s`.`top`= 1'; goto UhFvC; kElBq: if (!($datemin && $datemax == false)) { goto mv1Jq; } goto rAJop; bEhYe: wSv2s: goto kElBq; RdoJS: $where .= ' and `s`.`top`= 0'; goto XBV5H; wqW5O: $where .= ' and `i`.`name` LIKE \'%' . $name . '%\''; goto RC74N; foMFQ: $type_id = intval($_GPC['type_id']); goto TrcSZ; SYme1: if (!isset($_GPC['page'])) { goto keS_j; } goto TAlWM; BI3WO: $datemin = strtotime($_GPC['datemin']); goto v4LLp; bsmE1: $typeList = pdo_getall($this->tablePrefix . 'squaretype', array("uniacid" => $_W['uniacid'], "status" => 1)); goto lYG86; rKuG0: if (!($top == 2)) { goto grjV9; } goto RdoJS; y0xcu: $pagesize = 5; goto SYme1; TrcSZ: if (!($type_id != false)) { goto s3Fr0; } goto H99lS; eY42j: if (!($top == 1)) { goto nhEWT; } goto DM92T; YJ_Ku: $list = pdo_fetchall('SELECT `s`.`id`,`s`.`uid`,`s`.`card_id`,`s`.`label`,`s`.`content`,`s`.`pics`,`s`.`top`,`s`.`views`,`s`.`likes`,`s`.`comments`,`s`.`status`,`s`.`create_time`,`s`.`recommend`,`m`.`nickname`,`m`.`avatar`,`i`.`name`, `t`.`type` FROM ' . tablename($this->tablePrefix . 'square') . ' `s` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `s`.`uid`=`m`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `s`.`card_id`=`i`.`id` LEFT JOIN ' . tablename($this->tablePrefix . 'squaretype') . ' `t` ON `s`.`type_id`=`t`.`id` ' . $where . ' ORDER BY `s`.`id` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto I2O_Q; I2O_Q: if (!(count($list) > 0)) { goto q4TCb; } goto Wb5Za; HpSmF: $totalList = pdo_fetchall('SELECT `s`.`id` FROM ' . tablename($this->tablePrefix . 'square') . ' `s` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `s`.`uid`=`m`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `s`.`card_id`=`i`.`id` LEFT JOIN ' . tablename($this->tablePrefix . 'squaretype') . ' `t` ON `s`.`type_id`=`t`.`id`' . $where . ' ORDER BY `s`.`id` DESC'); goto JgLgV; u0STt: if (!$name) { goto apWBy; } goto wqW5O; kvFJ9: $url = $this->createWebUrl('square'); goto DVFXo; lYG86: include $this->template('square/square_list'); goto YyM8b; P9P57: goto l7hQI; goto Ziuns; MxgAz: $pageindex2 = 0; goto IUcIh; KdBbo: dXVIt: goto LgSCW; Hrv35: $pager = pagination($total, $pageindex, $pagesize); goto YJ_Ku; H99lS: $where .= ' and `s`.`type_id`=' . $type_id; goto kppij; nzqIK: DeBWo: goto HpSmF; EQwcM: if (!($u_type == 2)) { goto OmGvB; } goto VjXky; xQ2fP: OmGvB: goto VYkvQ; i1_5X: $name = trim($_GPC['name']); goto u0STt; IUcIh: l7hQI: goto Hrv35; UhFvC: nhEWT: goto rKuG0; LgSCW: q4TCb: goto bsmE1; Gg6vJ: $where .= ' and `s`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto bEhYe; Wb5Za: foreach ($list as &$v) { goto B_sTx; PlYH3: $v['pics'] = json_decode($v['pics'], true); goto RGCpc; nPQhl: DNC_M: goto uQLW3; RGCpc: if (!($v['label'] != '')) { goto DNC_M; } goto sNo_C; B_sTx: $v['content1'] = mb_substr($v['content'], 0, 45, 'utf-8'); goto qnp6b; uQLW3: BajNi: goto EMI4N; sNo_C: $v['label'] = '#' . implode('#,#', explode(',', $v['label'])) . '#'; goto nPQhl; qnp6b: $v['content2'] = mb_substr($v['content'], 46, 500, 'utf-8'); goto PlYH3; EMI4N: } goto KdBbo; Gc0ke: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto P9P57; yK6gT: MoGVD: goto i1_5X; JgLgV: $total = count($totalList); goto y0xcu; kppij: s3Fr0: goto VnR5r; tb7tP: $where .= ' and `i`.`uid` <> 0'; goto oC8VS; oC8VS: EioMR: goto EQwcM; dNw9W: $nickname = trim($_GPC['nickname']); goto zOeO1; WdOcA: mv1Jq: goto PafZA; VnR5r: $u_type = trim($_GPC['u_type']); goto vqaQF; Ziuns: keS_j: goto EPvGF; cL9AC: $where .= ' and `s`.`create_time` < ' . $datemax; goto nzqIK; EPvGF: $pageindex = 0; goto MxgAz; VjXky: $where .= ' and `i`.`uid` = 0'; goto xQ2fP; vqaQF: if (!($u_type == 1)) { goto EioMR; } goto tb7tP; v4LLp: $datemax = strtotime($_GPC['datemax']); goto gLa3t; DVFXo: $where = ' WHERE `s`.`uniacid` = ' . $_W['uniacid'] . ' and `s`.`status` < 3'; goto dNw9W; YyM8b: } public function doWebSquareEdit() { goto QF77P; bzzbI: exit; goto uEnGz; C4eRg: if (!(isset($_GPC['type']) && intval($_GPC['type']) == 2)) { goto MCV20; } goto UDwqa; iR_6O: $id = intval($_GPC['id']); goto sYquN; rChX5: uIlse: goto auChu; uEnGz: MCV20: goto Mmvcy; mwkMZ: $typeList = pdo_getall($this->tablePrefix . 'squaretype', array("uniacid" => $_W['uniacid']), array("id", "type"), '', array("sort desc")); goto C4eRg; OAYoS: $data['pics'] = json_decode($data['pics'], true); goto QYhIg; QF77P: global $_GPC, $_W; goto iR_6O; QYhIg: if (!($data['label'] != '')) { goto uIlse; } goto Njg2i; Mmvcy: include $this->template('square/square_info'); goto U9iGx; sYquN: if (!($id > 0)) { goto MOn9k; } goto dm1jW; Njg2i: $data['label'] = '#' . implode('#,#', explode(',', $data['label'])) . '#'; goto rChX5; Gw2r0: $cardList = pdo_getAll($this->tablePrefix . 'item', array("uniacid" => $_W['uniacid'], "uid" => 0), array("id", "name"), '', array("create_time DESC")); goto mwkMZ; dm1jW: $data = pdo_fetch('SELECT `s`.`id`,`s`.`uid`,`s`.`card_id`,`s`.`type_id`,`s`.`label`,`s`.`content`,`s`.`pics`,`s`.`address`,`s`.`latitude`,`s`.`longitude`,`s`.`views`,`s`.`likes`,`s`.`comments`,`s`.`status`,`s`.`create_time`,`m`.`nickname`,`m`.`avatar`,`i`.`name`,`t`.`type` FROM ' . tablename($this->tablePrefix . 'square') . ' `s` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `s`.`uid`=`m`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `s`.`card_id`=`i`.`id` LEFT JOIN ' . tablename($this->tablePrefix . 'squaretype') . ' `t` ON `t`.`id`=`s`.`type_id` WHERE `s`.`id`=:id', array(":id" => $id)); goto OAYoS; UDwqa: include $this->template('examin_square/examine_square_info'); goto bzzbI; auChu: MOn9k: goto Gw2r0; U9iGx: } public function doWebSquareSave() { goto ks18r; B87t8: fkn0D: goto EN5_y; BPFIp: $condition['latitude'] = $_GPC['latitude']; goto klCdZ; ozlv9: $condition['latitude'] = $re['lat']; goto w7wRP; yQHiC: JFU5b: goto vFF4v; gDbnh: IpD0F: goto CfEqs; n3ed7: $condition['label'] = $_GPC['label']; goto fNCh7; j8edL: Lwh1G: goto hKCHO; Ele6Z: Yu7Rb: goto PrlFc; ZxcCF: ypNSt: goto PjMFc; GIQSJ: $result = pdo_insert($this->tablePrefix . 'square', $condition); goto ygQqF; EwC_r: if (!(intval($_GPC['card_id']) < 1)) { goto xvZiI; } goto nR6HU; sAqpX: $this->json_return('', 0); goto yQKrQ; mxkm9: goto Lwh1G; goto VCRZ8; LI6EH: $re = getLatLng($addr, $tencent_map_key); goto J4cMj; PrlFc: if (!($uid > 0)) { goto kwNRI; } goto k36PX; JC5NX: $this->json_return('9', 0); goto B87t8; NoOBg: if (!(count($_GPC['pics']) > 9)) { goto fkn0D; } goto JC5NX; BLESt: $condition['content'] = $_GPC['content']; goto IAGnN; c2bMr: $condition['type_id'] = intval($_GPC['type_id']); goto kGOBK; eiQVc: $condition['uniacid'] = $_W['uniacid']; goto m9IIr; ngdGF: goto G81za; goto zmBFY; s0Zlv: $result = pdo_update($this->tablePrefix . 'square', $condition, array("id" => $id)); goto gDbnh; vFF4v: wKE_8: goto n3ed7; yQKrQ: cFVYj: goto c2bMr; uAyet: if (!(intval($_GPC['type_id']) < 1)) { goto cFVYj; } goto sAqpX; AXToT: xvZiI: goto um8j6; zmBFY: ooy8u: goto LJws2; JtYPK: $tencent_map_key = getAppConfSd('tencent_map_key'); goto lJkr7; lJkr7: if (!($tencent_map_key != '')) { goto q0Qxp; } goto LI6EH; eIWiH: if (!($_GPC['latitude'] == '' || $_GPC['longitude'] == '')) { goto wKE_8; } goto UcsZ7; DOMWf: if (!($uid < 1)) { goto JZdpg; } goto EwC_r; EqWyB: $uid = intval($_GPC['uid']); goto NoOBg; k36PX: $condition['uid'] = $uid; goto S6Fcq; fNCh7: $condition['status'] = intval($_GPC['status']); goto DwuaT; UcsZ7: if (!($_GPC['address'] != '')) { goto JFU5b; } goto zICPq; klCdZ: $condition['longitude'] = $_GPC['longitude']; goto eIWiH; ks18r: global $_GPC, $_W; goto RTR8q; PjMFc: q0Qxp: goto yQHiC; kGOBK: if (!(mb_strlen($_GPC['content'], 'utf-8') > 500 || mb_strlen($_GPC['content'], 'utf-8') < 20)) { goto XLMT7; } goto JkvV3; Ia4Kz: $condition['update_time'] = time(); goto s0Zlv; nR6HU: $this->json_return('', 0); goto AXToT; m9IIr: $condition['create_time'] = time(); goto GIQSJ; CfEqs: if ($result != false) { goto AXiL6; } goto gF8UE; gF8UE: $this->json_return('', 0); goto mxkm9; JkvV3: $this->json_return('20-500', 0); goto e2uLL; S6Fcq: kwNRI: goto Ia4Kz; UqfPW: G81za: goto DOMWf; zICPq: $addr = trim($_GPC['address']); goto JtYPK; VCRZ8: AXiL6: goto KDgnj; qNiHs: $condition['pics'] = ''; goto ngdGF; QMZ2s: JZdpg: goto uAyet; EN5_y: if (count($_GPC['pics']) > 0) { goto ooy8u; } goto qNiHs; LJws2: $condition['pics'] = json_encode($_GPC['pics']); goto UqfPW; RTR8q: $id = intval($_GPC['id']); goto EqWyB; DwuaT: if ($id > 0) { goto Yu7Rb; } goto eiQVc; w7wRP: $condition['longitude'] = $re['lng']; goto ZxcCF; e2uLL: XLMT7: goto BLESt; IAGnN: $condition['address'] = $_GPC['address']; goto BPFIp; KDgnj: $this->json_return('', 1); goto j8edL; um8j6: $condition['card_id'] = intval($_GPC['card_id']); goto QMZ2s; J4cMj: if (!($re != false)) { goto ypNSt; } goto ozlv9; ygQqF: goto IpD0F; goto Ele6Z; hKCHO: } public function doWebSquareDel() { goto ujOqs; qa3IA: $this->json_return('', 0); goto OMN1C; WsAWa: if ($result != false) { goto TYvq3; } goto qa3IA; xcE9M: $result = pdo_delete($this->tablePrefix . 'square', array("id" => $id)); goto cnb0f; cnb0f: pdo_delete($this->tablePrefix . 'squarelikes', array("sid in" => $id)); goto C1EQm; NRcO2: pdo_delete($this->tablePrefix . 'squareviews', array("sid in" => $id)); goto WsAWa; ujOqs: global $_GPC, $_W; goto J_XWr; C1EQm: pdo_delete($this->tablePrefix . 'squarecomments', array("sid in" => $id)); goto NRcO2; BSpFO: AQrVp: goto W91nx; wGxbf: $this->json_return('', 1); goto BSpFO; OMN1C: goto AQrVp; goto Rs969; Rs969: TYvq3: goto wGxbf; J_XWr: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto xcE9M; W91nx: } public function doWebAjaxGetLabel() { goto QMLbm; QMLbm: global $_GPC, $_W; goto AaHz3; Up6hu: $this->json_return('', 1, $labelList); goto nSkJ7; z0Hv6: $labelList = pdo_getall($this->tablePrefix . 'squarelabel', array("uniacid" => $_W['uniacid'], "type_id" => $type_id), array("id", "label"), '', array("sort desc")); goto rLmxK; nSkJ7: IOQgc: goto cO3O5; AaHz3: $type_id = intval($_GPC['type_id']); goto z0Hv6; rLmxK: if (count($labelList) > 0) { goto Dxm3t; } goto r1CfZ; q9Rej: Dxm3t: goto Up6hu; r1CfZ: $this->json_return('', 0); goto nTaXK; nTaXK: goto IOQgc; goto q9Rej; cO3O5: } public function doWebSquareStatus() { goto kc7C_; L1FTM: $type = intval($_GPC['type']); goto xmzSS; r_IQY: $status = intval($_GPC['status']); goto L1FTM; xmzSS: if (!($id < 1 || $type < 1)) { goto JnWJe; } goto nBm27; ul8nH: P92E7: goto KlBL8; hsVlR: $result = pdo_update($this->tablePrefix . 'square', array("top" => $status), array("id" => $id)); goto xI40E; iDhX_: goto ylA19; goto K1qye; Ve2lH: ylA19: goto NxocD; W0Wqk: $this->json_return(''); goto Ve2lH; B4345: if ($type == 1) { goto P92E7; } goto qZL2X; TpPXa: GQMge: goto yMPHP; qZL2X: if ($type == 2) { goto i4WeX; } goto MAFs6; ouCk2: $id = intval($_GPC['id']); goto r_IQY; acZ1N: goto rjwnt; goto oI9V6; PH6e0: $this->json_return('', 0); goto iDhX_; xI40E: WhKRf: goto acZ1N; kc7C_: global $_GPC, $_W; goto ouCk2; IWvYi: $result = pdo_update($this->tablePrefix . 'square', array("recommend" => $status), array("id" => $id)); goto S5la1; S5la1: rjwnt: goto SGrOq; SGrOq: goto GQMge; goto ul8nH; oI9V6: i4WeX: goto IWvYi; KlBL8: $result = pdo_update($this->tablePrefix . 'square', array("status" => $status), array("id" => $id)); goto TpPXa; MAFs6: if (!($type == 3)) { goto WhKRf; } goto hsVlR; dM1oe: JnWJe: goto B4345; yMPHP: if ($result != false) { goto itHYi; } goto PH6e0; nBm27: $this->json_return('', 0); goto dM1oe; K1qye: itHYi: goto W0Wqk; NxocD: } public function doWebSquareType() { goto BEfk5; xiRVn: $list = pdo_getall($this->tablePrefix . 'squaretype', array("uniacid" => $_W['uniacid']), array(), '', array("sort desc")); goto m09zk; BEfk5: global $_GPC, $_W; goto xiRVn; m09zk: include $this->template('square_type/square_type_list'); goto ZTHPr; ZTHPr: } public function doWebSquareTypeEdit() { goto u1FIv; jgEMF: include $this->template('square_type/square_type_info'); goto uso3f; xIJx8: if (!($id > 0)) { goto QCHSu; } goto ch8gI; u1FIv: global $_GPC, $_W; goto lm2ur; lm2ur: $id = intval($_GPC['id']); goto xIJx8; jkDQW: QCHSu: goto jgEMF; ch8gI: $data = pdo_fetch('SELECT `id`,`type`,`icon`,`sort`,`status` FROM ' . tablename($this->tablePrefix . 'squaretype') . ' WHERE `id`=:id and `uniacid`=:uniacid LIMIT 1', array(":id" => $id, ":uniacid" => $_W['uniacid'])); goto jkDQW; uso3f: } public function doWebSquareTypeSave() { goto zRaNF; KQulD: $this->json_return('', 0); goto OKex4; sVkA5: $id = intval($_GPC['id']); goto g6ilK; Nt4Ba: $this->json_return(''); goto EPGx_; dEC5e: if ($id > 0) { goto k2e0V; } goto gEEx0; sVbix: $condition['create_time'] = time(); goto pP2wT; P7Gtx: k2e0V: goto bw1qz; g6ilK: if (!(trim($_GPC['type']) == '')) { goto QcZBJ; } goto ABBvz; fo7GF: $this->json_return('', 0); goto p808B; gEEx0: $condition['uniacid'] = $_W['uniacid']; goto sVbix; zRaNF: global $_GPC, $_W; goto sVkA5; OKex4: TbXz1: goto vI3jv; hdjSu: $result = pdo_update($this->tablePrefix . 'squaretype', $condition, array("id" => $id, "uniacid" => $_W['uniacid'])); goto blxYW; EPGx_: sdg2d: goto Inr8A; pP2wT: $result = pdo_insert($this->tablePrefix . 'squaretype', $condition); goto K3SHu; K3SHu: goto Ltufc; goto P7Gtx; jPE1F: $condition['status'] = intval($_GPC['status']); goto dEC5e; vI3jv: $condition['icon'] = trim($_GPC['icon']); goto AA92m; b9ieb: if (!(trim($_GPC['icon']) == '')) { goto TbXz1; } goto KQulD; rZpG9: $condition['type'] = trim($_GPC['type']); goto b9ieb; bw1qz: $condition['update_time'] = time(); goto hdjSu; VMek6: QmWZV: goto Nt4Ba; p808B: goto sdg2d; goto VMek6; rFUdN: if ($result != false) { goto QmWZV; } goto fo7GF; lkwwu: QcZBJ: goto rZpG9; blxYW: Ltufc: goto rFUdN; AA92m: $condition['sort'] = intval($_GPC['sort']); goto jPE1F; ABBvz: $this->json_return('', 0); goto lkwwu; Inr8A: } public function doWebSquareTypeDel() { goto vYMAS; xtQsi: TQoT5: goto gCl8z; sl_b_: $this->json_return(',', 0); goto gARLH; Wb5Ir: if ($result != false) { goto TQoT5; } goto DCgja; sPMmZ: $result = pdo_delete($this->tablePrefix . 'squaretype', array("id" => $id, "uniacid" => $_W['uniacid'])); goto Wb5Ir; gCl8z: $this->json_return(''); goto zJkIR; zJkIR: Z0h2T: goto EUwrW; gARLH: hnKgy: goto rmBn5; DCgja: $this->json_return('', 0); goto KJxtt; vYMAS: global $_GPC, $_W; goto Ijom3; Ijom3: $id = intval($_GPC['id']); goto IsI36; IsI36: $squareCount = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'square') . ' where `type_id`=:type_id and `uniacid`=:uniacid', array(":type_id" => $id, ":uniacid" => $_W['uniacid'])); goto wu14i; EUwrW: goto hnKgy; goto NWTmQ; NWTmQ: vXiGR: goto sl_b_; KJxtt: goto Z0h2T; goto xtQsi; wu14i: if ($squareCount != '0') { goto vXiGR; } goto sPMmZ; rmBn5: } public function doWebSquareLabel() { goto PuvFq; mvXGo: yj32C: goto bXLg9; PuvFq: global $_GPC, $_W; goto BIlMD; eeAx7: if (!($type_id > 0)) { goto yj32C; } goto cjLuT; cjLuT: $list = pdo_fetchall('SELECT `l`.`id`,`l`.`type_id`,`l`.`label`,`l`.`sort`,`l`.`status`,`l`.`create_time`,`t`.`type` FROM ' . tablename($this->tablePrefix . 'squarelabel') . ' `l` LEFT JOIN ' . tablename($this->tablePrefix . 'squaretype') . ' `t` ON `l`.`type_id`=`t`.`id` WHERE `l`.`uniacid`=' . $_W['uniacid'] . ' and `l`.`type_id`=:type_id ORDER BY `l`.`sort` DESC', array(":type_id" => $type_id)); goto mvXGo; bXLg9: include $this->template('square_label/label_list'); goto sQK9J; BIlMD: $type_id = intval($_GPC['type_id']); goto eeAx7; sQK9J: } public function doWebSquareLabelEdit() { goto l1FKw; rsH5G: $typeData = pdo_getall($this->tablePrefix . 'squaretype', array("uniacid" => $_W['uniacid']), array(), '', array("sort desc")); goto ZI6Q_; Vm7T1: KKEaZ: goto HPjoD; SpL40: $data = pdo_fetch('SELECT `id`,`type_id`,`label`,`sort`,`status` FROM ' . tablename($this->tablePrefix . 'squarelabel') . ' WHERE `id`=:id and `uniacid`=:uniacid', array(":id" => $id, ":uniacid" => $_W['uniacid'])); goto Vm7T1; v7YLa: $id = intval($_GPC['id']); goto rsH5G; ZI6Q_: if (!($id > 0)) { goto KKEaZ; } goto SpL40; HPjoD: include $this->template('square_label/label_info'); goto GIDHt; l1FKw: global $_GPC, $_W; goto v7YLa; GIDHt: } public function doWebSquareLabelSave() { goto g1gXC; lfVm7: if (!(intval($_GPC['type_id']) == false)) { goto xld0J; } goto E_YZs; Vl88Z: goto P8Rao; goto y6Ix2; v4DcR: if ($result != false) { goto Y6mSU; } goto lGc3s; dWTNs: $condition['type_id'] = intval($_GPC['type_id']); goto APZTs; nMU6r: if (!(trim($_GPC['label']) == '')) { goto Hwx3u; } goto O2YbW; ctK2S: $condition['uniacid'] = $_W['uniacid']; goto r5dTE; ZZ2eu: Y6mSU: goto cyiwf; lGc3s: $this->json_return('', 0); goto PyGHE; y6Ix2: ZWCYa: goto JNWUY; mHAx8: if ($id > 0) { goto ZWCYa; } goto ctK2S; JNWUY: $condition['update_time'] = time(); goto EwHsb; GuTbl: HvzeR: goto K69OO; r5dTE: $condition['create_time'] = time(); goto J2Vm7; uca3m: $condition['label'] = trim($_GPC['label']); goto lfVm7; bI43N: P8Rao: goto v4DcR; OCsPm: $id = intval($_GPC['id']); goto nMU6r; J2Vm7: $result = pdo_insert($this->tablePrefix . 'squarelabel', $condition); goto Vl88Z; cyiwf: $this->json_return(''); goto GuTbl; Rd5qj: Hwx3u: goto uca3m; EwHsb: $result = pdo_update($this->tablePrefix . 'squarelabel', $condition, array("id" => $id, "uniacid" => $_W['uniacid'])); goto bI43N; E_YZs: $this->json_return('', 0); goto CUlja; PyGHE: goto HvzeR; goto ZZ2eu; APZTs: $condition['sort'] = intval($_GPC['sort']); goto oV125; CUlja: xld0J: goto dWTNs; oV125: $condition['status'] = intval($_GPC['status']); goto mHAx8; g1gXC: global $_GPC, $_W; goto OCsPm; O2YbW: $this->json_return('', 0); goto Rd5qj; K69OO: } public function doWebSquareLabelDel() { goto DXbpw; DXbpw: global $_GPC, $_W; goto X387Z; cFGzc: $result = pdo_delete($this->tablePrefix . 'squarelabel', array("id" => $id, "uniacid" => $_W['uniacid'])); goto avxyE; RmYZX: kcttn: goto UzRA5; UzRA5: $this->json_return(''); goto jyrwd; avxyE: if ($result != false) { goto kcttn; } goto ZwODC; X387Z: $id = intval($_GPC['id']); goto cFGzc; ZwODC: $this->json_return('', 0); goto oSDa6; jyrwd: U7g8h: goto RhD7w; oSDa6: goto U7g8h; goto RmYZX; RhD7w: } public function doWebExamineSquare() { goto W9bio; i7jXR: $pageindex = 0; goto hRDSE; EY_0h: BbMyS: goto pehgz; kv2fd: $pagesize = 5; goto nSSoQ; JXgEB: $allList = pdo_fetchall('SELECT `s`.`id` FROM ' . tablename($this->tablePrefix . 'square') . ' `s` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `s`.`uid`=`m`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `s`.`card_id`=`i`.`id` LEFT JOIN ' . tablename($this->tablePrefix . 'squaretype') . ' `t` ON `s`.`type_id`=`t`.`id`' . $where . ' ORDER BY `s`.`id` DESC'); goto CkEd_; WcAgh: $pager = pagination($count, $pageindex, $pagesize); goto m0UP5; pehgz: N64SE: goto clsgS; V6nsp: RtbtD: goto WcAgh; kXM7P: if (!(count($list) > 0)) { goto N64SE; } goto fmsQ6; qwwDj: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto n_FK9; Echvm: zNogU: goto i7jXR; nSSoQ: if (!isset($_GPC['page'])) { goto zNogU; } goto GfWZD; TRtK1: include $this->template('examin_square/examine_square_list'); goto GJ9qH; hRDSE: $pageindex2 = 0; goto V6nsp; CkEd_: $count = count($allList); goto kv2fd; f8doY: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto FZymz; GfWZD: $pageindex = intval($_GPC['page']); goto qwwDj; zZQoV: $nickname = trim($_GPC['nickname']); goto X9ha1; FZymz: aHOYf: goto JXgEB; N7CYv: $where = ' WHERE `s`.`uniacid`=' . $_W['uniacid'] . '  and `s`.`status`=3'; goto zZQoV; m0UP5: $list = pdo_fetchall('SELECT `s`.`id`,`s`.`uid`,`s`.`card_id`,`s`.`label`,`s`.`content`,`s`.`pics`,`s`.`top`,`s`.`views`,`s`.`status`,`s`.`create_time`,`m`.`nickname`,`m`.`avatar`,`i`.`name`, `t`.`type` FROM ' . tablename($this->tablePrefix . 'square') . ' `s` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `s`.`uid`=`m`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `s`.`card_id`=`i`.`id` LEFT JOIN ' . tablename($this->tablePrefix . 'squaretype') . ' `t` ON `s`.`type_id`=`t`.`id` ' . $where . ' ORDER BY `s`.`id` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto kXM7P; n_FK9: goto RtbtD; goto Echvm; X9ha1: if (!$nickname) { goto aHOYf; } goto f8doY; ucLp2: $url = $this->createWebUrl('examineSquare'); goto N7CYv; fmsQ6: foreach ($list as &$v) { goto fuQc2; zx1E9: Ddrx2: goto Hw5YI; uzitJ: $v['pics'] = json_decode($v['pics'], true); goto VdVrV; GOUj2: Gd8n2: goto zx1E9; fuQc2: $v['content1'] = mb_substr($v['content'], 0, 45, 'utf-8'); goto DvuKp; DvuKp: $v['content2'] = mb_substr($v['content'], 46, 500, 'utf-8'); goto uzitJ; VdVrV: if (!($v['label'] != '')) { goto Gd8n2; } goto PLwMg; PLwMg: $v['label'] = '#' . implode('#,#', explode(',', $v['label'])) . '#'; goto GOUj2; Hw5YI: } goto EY_0h; clsgS: $typeList = pdo_getall($this->tablePrefix . 'squaretype', array("uniacid" => $_W['uniacid'], "status" => 1)); goto TRtK1; W9bio: global $_GPC, $_W; goto ucLp2; GJ9qH: } public function doWebExamineSquareStatus() { goto MXk43; wwvxy: $data = array("first" => array("value" => ""), "keyword1" => array("value" => getAppConfSd('app_name')), "keyword2" => array("value" => str_cut('' . $square['content'], 50) . '-[]'), "remark" => array("value" => date('Y-m-d H:i'))); goto zM7uG; stFRl: goto Yr3lS; goto g1y2i; rcWyT: fL7Cq: goto UOd4L; kmtg9: Heh9L: goto pQ0w7; LeQ0q: $page = 'super_card/pages/index/index'; goto iLCdj; KOfss: pdo_query('UPDATE ' . tablename($this->tablePrefix . 'usersub') . ' SET `audit_msg_sub` = `audit_msg_sub` - 1 WHERE uid = :uid', array(":uid" => $square['uid'])); goto PP222; mNAgD: $data = array("thing5" => array("value" => str_cut('' . $square['content'], 50)), "phrase1" => array("value" => ""), "date4" => array("value" => date('Y/m/d H:i'))); goto N0YLy; JLyXn: if (!($sub_count > 0)) { goto Cq5Hc; } goto oq56_; s0Y8N: goto oFCUz; goto rcWyT; GmVnT: if ($result != false) { goto Heh9L; } goto Y5pVP; l8xer: pdo_delete($this->tablePrefix . 'squarelikes', array("sid" => $id, "uniacid" => $_W['uniacid'])); goto ydsx8; ZItAn: $this->json_return(''); goto l6uEA; DjpVf: $square = pdo_fetch('SELECT `uid`,`card_id`,`content` FROM ' . tablename($this->tablePrefix . 'square') . ' WHERE `id`=:id', array(":id" => $id)); goto NW9Ii; N0YLy: $re = $this->sendSubMsg($touser, $temp_id, $page, $data); goto KOfss; ms9Gs: $re_account_msg = $this->sendAccountMsg($touser, $page, $data, '', $square['uid']); goto Nd5NQ; Ol6ct: if (!($square['uid'] > 0)) { goto oarih; } goto riOHM; SUXhT: goto rrMdY; goto kmtg9; NW9Ii: if ($status == 1) { goto fL7Cq; } goto hIWb3; OeX3C: $sub_count = $temp['audit_msg_sub']; goto JLyXn; MXk43: global $_GPC, $_W; goto bjm9u; MeGYb: KWWin: goto ZItAn; zxjyL: oFCUz: goto NM9Xr; DvCAU: pdo_delete($this->tablePrefix . 'squareviews', array("sid" => $id, "uniacid" => $_W['uniacid'])); goto GmVnT; g1y2i: vRGrR: goto Ol6ct; cJcQ0: $temp_id = getAppConfSd('audit_results_tempid'); goto saq30; e1a5m: Yr3lS: goto zxjyL; CWF9A: $touser = $this->getFansInfoByUid($square['uid'], 'openid'); goto FuFMH; IOsWi: if ($result != false) { goto vRGrR; } goto XE9l9; XIpba: oarih: goto CWF9A; hIWb3: $result = pdo_delete($this->tablePrefix . 'square', array("id" => $id, "uniacid" => $_W['uniacid'])); goto l8xer; tqWYo: if (!(!$re_account_msg && $temp_id)) { goto gGxC_; } goto WFJID; bjm9u: $id = intval($_GPC['id']); goto QJA3S; vvTBR: gGxC_: goto MeGYb; hy5uU: pdo_query('UPDATE ' . tablename($this->tablePrefix . 'usersub') . ' SET `audit_msg_sub` = `audit_msg_sub` - 1 WHERE uid = :uid', array(":uid" => $square['uid'])); goto QgTkJ; Nd5NQ: gEkU3: goto FePta; TDhiB: if (!(getAppConfSd('account_msg_switch') == 1)) { goto giXno; } goto wwvxy; UOd4L: $result = pdo_update($this->tablePrefix . 'square', array("status" => $status), array("id" => $id, "uniacid" => $_W['uniacid'])); goto IOsWi; iLCdj: if (!(getAppConfSd('account_msg_switch') == 1)) { goto gEkU3; } goto TKzGI; XE9l9: $this->json_return('', 0); goto stFRl; CtOKH: $touser = $this->getFansInfoByUid($square['uid'], 'openid'); goto LeQ0q; riOHM: insertNotice($square['uid'], $square['card_id'], '', 1); goto XIpba; dnlY7: $sub_count = $temp['audit_msg_sub']; goto C0YIb; nnqLD: $this->json_return('', 0); goto aIpjC; OLOCa: $this->json_return(''); goto e1a5m; zM7uG: $re_account_msg = $this->sendAccountMsg($touser, $page, $data, '', $square['uid']); goto GFh3T; WFJID: $temp = pdo_fetch('SELECT `audit_msg_sub` FROM ' . tablename($this->tablePrefix . 'usersub') . ' WHERE uid = :uid LIMIT 1', array(":uid" => $square['uid'])); goto OeX3C; BnwAH: $re = $this->sendSubMsg($touser, $temp_id, $page, $data); goto hy5uU; ydsx8: pdo_delete($this->tablePrefix . 'squarecomments', array("sid" => $id, "uniacid" => $_W['uniacid'])); goto DvCAU; GFh3T: giXno: goto cJcQ0; pQ0w7: if (!($square['uid'] > 0)) { goto KWWin; } goto CtOKH; l6uEA: rrMdY: goto s0Y8N; QJA3S: $status = intval($_GPC['status']); goto s22Cz; oq56_: $data = array("thing5" => array("value" => str_cut('' . $square['content'], 50)), "phrase1" => array("value" => ""), "date4" => array("value" => date('Y/m/d H:i'))); goto BnwAH; QgTkJ: pdo_insert($this->tablePrefix . 'msglog', array("uniacid" => $_W['uniacid'], "uid" => $square['uid'], "msg" => "", "r_content" => $re['content'], "create_time" => time())); goto zHcjb; PP222: pdo_insert($this->tablePrefix . 'msglog', array("uniacid" => $_W['uniacid'], "uid" => $square['uid'], "msg" => "", "r_content" => $re['content'], "create_time" => time())); goto CTex3; VSnd0: vf_vC: goto CTJdf; C0YIb: if (!($sub_count > 0)) { goto vf_vC; } goto mNAgD; zHcjb: Cq5Hc: goto vvTBR; EuiM9: $temp = pdo_fetch('SELECT `audit_msg_sub` FROM ' . tablename($this->tablePrefix . 'usersub') . ' WHERE uid = :uid LIMIT 1', array(":uid" => $square['uid'])); goto dnlY7; FePta: $temp_id = getAppConfSd('audit_results_tempid'); goto tqWYo; TKzGI: $data = array("first" => array("value" => ""), "keyword1" => array("value" => getAppConfSd('app_name')), "keyword2" => array("value" => str_cut('' . $square['content'], 50) . '-[]'), "remark" => array("value" => date('Y-m-d H:i'))); goto ms9Gs; CTJdf: AwPao: goto OLOCa; saq30: if (!(!$re_account_msg && $temp_id)) { goto AwPao; } goto EuiM9; s22Cz: if (!($id < 1)) { goto b8EAL; } goto nnqLD; FuFMH: $page = 'super_card/pages/index/index'; goto TDhiB; CTex3: $re = json_decode($re['content'], true); goto VSnd0; Y5pVP: $this->json_return('', 0); goto SUXhT; aIpjC: b8EAL: goto DjpVf; NM9Xr: } public function doWebSquareBanner() { goto idle3; d0KFY: $count = count($list); goto lZNXw; idle3: global $_GPC, $_W; goto Ajmbj; lZNXw: include $this->template('square_banner/square_banner_list'); goto xh1d9; Ajmbj: $list = pdo_getall($this->tablePrefix . 'squarebanner', array("uniacid" => $_W['uniacid']), array(), '', array("id DESC")); goto d0KFY; xh1d9: } public function doWebSquareBannerEdit() { goto xSkEh; NbBFM: $id = intval($_GPC['id']); goto GIxRk; YfExk: include $this->template('square_banner/square_banner_info'); goto gFGB8; xSkEh: global $_GPC, $_W; goto NbBFM; uAsAa: $data = pdo_fetch('SELECT `id`,`pic`,`type`,`value`,`appid`,`status`,`sort` FROM ' . tablename($this->tablePrefix . 'squarebanner') . ' WHERE `id`=:id and `uniacid`=:uniacid', array(":id" => $id, ":uniacid" => $_W['uniacid'])); goto LGIHr; EKQGT: $pageData = getOtherConf('can_nav_pages'); goto YfExk; LGIHr: jzBFR: goto EKQGT; GIxRk: if (!($id > 0)) { goto jzBFR; } goto uAsAa; gFGB8: } public function doWebSquareBannerSave() { goto Rl2x0; XVKJE: if ($result != false) { goto mYWEB; } goto WO_Sj; UGRaw: R4dlA: goto lfpRF; kIkk5: TKLy2: goto dh0ay; voEiX: kxl2S: goto a0afd; bwDbx: unset($condition['value']); goto KwIAH; GTVNr: unset($condition['value']); goto DfKYh; dfqdf: oK1uZ: goto clJO2; aiXDT: cynV7: goto kJH03; KN_yZ: $condition['status'] = intval($_GPC['status']); goto HQpX2; iCUEj: $this->json_return(''); goto Yi7xI; wqaSt: $result = pdo_insert($this->tablePrefix . 'squarebanner', $condition); goto s_nVC; lfpRF: if (in_array(trim($_GPC['path']), getOtherConf('can_nav_pages'))) { goto kxl2S; } goto s5xgY; zcJ_2: if (!(intval($_GPC['type']) == 5)) { goto oK1uZ; } goto bwDbx; i2Grp: $condition['value'] = trim($_GPC['value']); goto Kg82q; mkXfO: if (!(intval($_GPC['type']) == 5)) { goto cynV7; } goto mDlUR; s_nVC: goto WbT2i; goto GfSsc; PjnlC: $condition['appid'] = trim($_GPC['appid']); goto osrW2; pJQ0d: pj79H: goto Mon1H; mDlUR: if (!(trim($_GPC['value2']) == '')) { goto tQlS8; } goto fh5Vp; DM1EU: $this->json_return('', 0); goto kIkk5; drlx2: unset($condition['value']); goto xAMDz; BTJJK: gBiZg: goto h5dgl; bVKbt: $id = intval($_GPC['id']); goto FJQyi; isQzm: cJnDg: goto H9oUN; MgCrC: US_6x: goto wrodO; GfSsc: GniIf: goto HS950; Yi7xI: mKK33: goto rf68N; dihYe: q1GHE: goto UcaA3; wrodO: if (!(trim($_GPC['value']) == '')) { goto YoWNE; } goto RwU0j; oErEY: YoWNE: goto pJQ0d; yCEWA: $this->json_return('!', 0); goto nM49Q; HQpX2: if ($id > 0) { goto GniIf; } goto h4IWF; BOxzj: Lip0K: goto Uc7P9; zyzOx: if (!(intval($_GPC['type']) == 6)) { goto xs4tP; } goto drlx2; FJQyi: if (!(trim($_GPC['pic']) == '')) { goto TKLy2; } goto DM1EU; nM49Q: GdLxH: goto L5qce; jqOp6: $this->json_return('appid', 0); goto dihYe; WO_Sj: $this->json_return('', 0); goto STBim; osrW2: MSrrs: goto zyzOx; N7Bw1: xs4tP: goto zcJ_2; bh0P1: mYWEB: goto iCUEj; Kevas: $result = pdo_update($this->tablePrefix . 'squarebanner', $condition, array("id" => $id, "uniacid" => $_W['uniacid'])); goto bPN2_; Kg82q: if (!(intval($_GPC['type']) == 2)) { goto MSrrs; } goto PjnlC; Rl2x0: global $_GPC, $_W; goto bVKbt; s5xgY: $this->json_return('', 0); goto voEiX; nuCHg: $condition['create_time'] = time(); goto wqaSt; kJH03: goto RjkAP; goto BTJJK; xAMDz: $condition['value'] = trim($_GPC['path']); goto N7Bw1; Uc7P9: if (!(intval($_GPC['type']) == 2 && trim($_GPC['appid']) == '')) { goto q1GHE; } goto jqOp6; RwU0j: $this->json_return('// !', 0); goto oErEY; Eu4a3: tQlS8: goto aiXDT; iqx3W: $this->json_return(' //!', 0); goto UGRaw; Mon1H: if (!(intval($_GPC['type']) == 7)) { goto Lip0K; } goto m76KG; a0afd: RjkAP: goto daizo; clJO2: if (!(intval($_GPC['type']) == 7)) { goto cJnDg; } goto GTVNr; STBim: goto mKK33; goto bh0P1; h4IWF: $condition['uniacid'] = $_W['uniacid']; goto nuCHg; dh0ay: if (!(intval($_GPC['type']) === false)) { goto GdLxH; } goto yCEWA; m76KG: if (!(trim($_GPC['value3']) == '')) { goto nc5TY; } goto rMvft; L5qce: if (intval($_GPC['type']) != 6) { goto US_6x; } goto chry2; DfKYh: $condition['value'] = trim($_GPC['value3']); goto isQzm; f7HCY: $condition['sort'] = intval($_GPC['sort']); goto KN_yZ; h5dgl: if (!(trim($_GPC['path']) == '')) { goto R4dlA; } goto iqx3W; rMvft: $this->json_return('!', 0); goto dkhxd; chry2: if (intval($_GPC['type']) == 6) { goto gBiZg; } goto mkXfO; fh5Vp: $this->json_return('!', 0); goto Eu4a3; bPN2_: WbT2i: goto XVKJE; dkhxd: nc5TY: goto BOxzj; HS950: $condition['update_time'] = time(); goto Kevas; UcaA3: $condition['type'] = intval($_GPC['type']); goto i2Grp; KwIAH: $condition['value'] = trim($_GPC['value2']); goto dfqdf; daizo: goto pj79H; goto MgCrC; H9oUN: $condition['pic'] = trim($_GPC['pic']); goto f7HCY; rf68N: } public function doWebSquareBannerDel() { goto AwjuA; EZELW: $htis->json_return('', 0); goto ZwoTT; c3DJx: $result = pdo_delete($this->tablePrefix . 'squarebanner', array("id" => $id, "uniacid" => $_W['uniacid'])); goto m0tv6; J9BQG: goto bYiYy; goto L7CNv; dNtrY: $id = intval($_GPC['id']); goto jfs43; L7CNv: WeSm2: goto ktFjx; FTIf9: bYiYy: goto Xuck0; m0tv6: if ($result != false) { goto WeSm2; } goto mzDey; ZwoTT: z7UGz: goto c3DJx; AwjuA: global $_GPC, $_W; goto dNtrY; jfs43: if (!($id < 1)) { goto z7UGz; } goto EZELW; ktFjx: $this->json_return(''); goto FTIf9; mzDey: $this->json_return('', 0); goto J9BQG; Xuck0: } public function doWebSquareReport() { goto kdgWj; U1CK1: $pager = pagination($total, $pageindex, $pagesize); goto UNz71; Zlm6e: if (!isset($_GPC['page'])) { goto F8d2g; } goto ANJHR; MusoL: XY8Ei: goto i6u3s; kdgWj: global $_GPC, $_W; goto JWrz3; i6u3s: $pagesize = 7; goto U1CK1; JWrz3: $where = 'WHERE `r`.`uniacid`=' . $_W['uniacid']; goto CTG1h; E1unq: $total = count($allList); goto Zlm6e; CTG1h: $allList = pdo_fetchall('SELECT `r`.`id` FROM ' . tablename($this->tablePrefix . 'squarereport') . ' `r` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `r`.`uid`=`m`.`uid` ' . $where . ' ORDER By `r`.`create_time` DESC'); goto E1unq; ANJHR: $pageindex = intval($_GPC['page']); goto cthS2; vTH07: F8d2g: goto V1jhd; V1jhd: $pageindex = 0; goto nQ8mg; UNz71: $list = pdo_fetchall('SELECT `r`.`id`,`r`.`square_id`,`r`.`uid`,`r`.`content`,`r`.`status`,`r`.`create_time`,`m`.`avatar`,`m`.`nickname` FROM ' . tablename($this->tablePrefix . 'squarereport') . ' `r` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `r`.`uid`=`m`.`uid` ' . $where . ' ORDER By `r`.`create_time` DESC LIMIT  ' . $pageindex2 . ',' . $pagesize); goto DcFQ9; nQ8mg: $pageindex2 = 0; goto MusoL; cthS2: $pageindex2 = (intval($_GPC['page']) - 1) * 7; goto epT9H; epT9H: goto XY8Ei; goto vTH07; DcFQ9: include $this->template('square_report/square_report_list'); goto fk7o7; fk7o7: } public function doWebSquareReportDel() { goto stTis; fQ7XL: goto CWMOj; goto yauO5; yauO5: qHZS3: goto v_pqk; GETZd: $htis->json_return('', 0); goto eJfLL; v_pqk: $id = intval($_GPC['id']); goto U9wmj; LQBN9: CWMOj: goto z2ASX; stTis: global $_GPC, $_W; goto GdN9a; t4ECW: goto hKu2Y; goto Y65if; qkEl2: $this->json_return('', 0); goto t4ECW; eJfLL: KnDLp: goto LQBN9; Y65if: kg8JZ: goto KkbrG; z2ASX: $result = pdo_delete($this->tablePrefix . 'squarereport', array("id in" => $id)); goto hoalQ; hoalQ: if ($result != false) { goto kg8JZ; } goto qkEl2; KkbrG: $this->json_return(''); goto mxo2k; mxo2k: hKu2Y: goto OT_NA; U9wmj: if (!($id < 1)) { goto KnDLp; } goto GETZd; VZVeJ: $id = $_GPC['id']; goto fQ7XL; GdN9a: if (!is_array($_GPC['id'])) { goto qHZS3; } goto VZVeJ; OT_NA: } public function doWebSquareSet() { goto L1JFO; L1JFO: global $_GPC, $_W; goto bCMe5; ycAZG: Bduci: goto I2OyS; BUgOR: $data['square_top_dp']['value'] = unserialize($data['square_top_dp']['value']); goto IZ3OV; I2OyS: $data['app_demand_set']['store_range'] = json_decode($data['app_demand_set']['store_range'], true); goto BUgOR; zZMjZ: foreach ($list as $v) { goto SSuwE; ua2YK: if (!($v['code'] == 'square_user_protocol')) { goto hMalZ; } goto EDxTT; y4yPG: if (!($v['code'] == 'square_sensitive_words')) { goto uvwoh; } goto Yly8p; qPMOU: IpNKm: goto uBqac; FdJGX: NZnMp: goto G7rdZ; ijGX4: $data['pay_top_square'] = $v; goto qPMOU; Yly8p: $data['square_sensitive_words'] = $v; goto uuvTT; c4S7K: ClfYL: goto FdJGX; uuvTT: uvwoh: goto VD29U; NjnhC: fbfO0: goto nIEnX; hKOau: IMnYj: goto pwUsb; eE02B: if (!($v['code'] == 'show_square_notice')) { goto V1Bm6; } goto lagvp; BGJdF: WvdY7: goto lOgUW; VD29U: if (!($v['code'] == 'square_forward_title')) { goto WvdY7; } goto Q_siU; H4N8Z: $data['app_demand_set'] = $v; goto goiqT; hzzKx: hMalZ: goto eE02B; LYHKH: $data['app_demand_open'] = $v; goto NjnhC; uBqac: if (!($v['code'] == 'square_top_dp')) { goto ClfYL; } goto ZnH4P; lOgUW: if (!($v['code'] == 'square_forward_pic')) { goto IMnYj; } goto knXZM; goiqT: IQT4S: goto ua2YK; Q_siU: $data['square_forward_title'] = $v; goto BGJdF; pwUsb: if (!($v['code'] == 'pay_top_square')) { goto IpNKm; } goto ijGX4; ZnH4P: $data['square_top_dp'] = $v; goto c4S7K; gmtSd: V1Bm6: goto y4yPG; SSuwE: if (!($v['code'] == 'app_demand_open')) { goto fbfO0; } goto LYHKH; lagvp: $data['show_square_notice'] = $v; goto gmtSd; EDxTT: $data['square_user_protocol'] = $v; goto hzzKx; knXZM: $data['square_forward_pic'] = $v; goto hKOau; nIEnX: if (!($v['code'] == 'app_demand_set')) { goto IQT4S; } goto H4N8Z; G7rdZ: } goto ycAZG; IZ3OV: include $this->template('square/square_set'); goto p3CJQ; bCMe5: $list = pdo_fetchall('SELECT  `name`,`code`,`type`,`store_range`,`value`,`tip` FROM ' . tablename($this->tablePrefix . $this->configTable) . ' WHERE `code` in (\'app_demand_set\', \'app_demand_open\', \'square_user_protocol\', \'show_square_notice\',\'square_sensitive_words\', \'square_forward_title\',\'square_forward_pic\', \'pay_top_square\', \'square_top_dp\') and `uniacid`=:uniacid', array(":uniacid" => $_W['uniacid'])); goto zZMjZ; p3CJQ: } public function doWebSquareSetSave() { goto TG2PZ; y3EuW: pdo_update($this->tablePrefix . $this->configTable, array("value" => $app_demand_set), array("code" => "app_demand_set", "uniacid" => $_W['uniacid'])); goto VQNiI; ALkc7: $this->json_return(''); goto o3pf1; TG2PZ: global $_GPC, $_W; goto Iit_L; z8Q2X: $square_forward_pic = $_GPC['square_forward_pic']; goto cirOG; yjbhS: pdo_update($this->tablePrefix . $this->configTable, array("value" => $show_square_notice), array("code" => "show_square_notice", "uniacid" => $_W['uniacid'])); goto qOPoo; Iit_L: $app_demand_open = intval($_GPC['app_demand_open']); goto ukXGA; XlnON: $square_forward_title = $_GPC['square_forward_title']; goto z8Q2X; VQNiI: pdo_update($this->tablePrefix . $this->configTable, array("value" => $square_user_protocol), array("code" => "square_user_protocol", "uniacid" => $_W['uniacid'])); goto yjbhS; QIIrd: $square_top_dp[] = array("day" => intval($_GPC['one_day']), "price" => sprintf('%.2f', $_GPC['one_price'])); goto DgRd0; vYxBn: pdo_update($this->tablePrefix . $this->configTable, array("value" => $app_demand_open), array("code" => "app_demand_open", "uniacid" => $_W['uniacid'])); goto y3EuW; qOPoo: pdo_update($this->tablePrefix . $this->configTable, array("value" => $square_sensitive_words), array("code" => "square_sensitive_words", "uniacid" => $_W['uniacid'])); goto TAkfe; DgRd0: $square_top_dp[] = array("day" => intval($_GPC['two_day']), "price" => sprintf('%.2f', $_GPC['two_price'])); goto QadHF; ukXGA: $app_demand_set = $_GPC['app_demand_set']; goto DfNUP; QadHF: $square_top_dp[] = array("day" => intval($_GPC['three_day']), "price" => sprintf('%.2f', $_GPC['three_price'])); goto vYxBn; Q5bW1: pdo_update($this->tablePrefix . $this->configTable, array("value" => $square_forward_pic), array("code" => "square_forward_pic", "uniacid" => $_W['uniacid'])); goto xX4uq; sZxsz: $square_top_dp = array(); goto QIIrd; wHjKx: $square_user_protocol = trim($_GPC['square_user_protocol']); goto XVnTP; bzvT8: pdo_update($this->tablePrefix . $this->configTable, array("value" => serialize($square_top_dp)), array("code" => "square_top_dp", "uniacid" => $_W['uniacid'])); goto ALkc7; xX4uq: pdo_update($this->tablePrefix . $this->configTable, array("value" => $pay_top_square), array("code" => "pay_top_square", "uniacid" => $_W['uniacid'])); goto bzvT8; cirOG: $pay_top_square = intval($_GPC['pay_top_square']); goto sZxsz; TAkfe: pdo_update($this->tablePrefix . $this->configTable, array("value" => $square_forward_title), array("code" => "square_forward_title", "uniacid" => $_W['uniacid'])); goto Q5bW1; DfNUP: $show_square_notice = intval($_GPC['show_square_notice']); goto wHjKx; XVnTP: $square_sensitive_words = $_GPC['square_sensitive_words']; goto XlnON; o3pf1: } public function doWebAppNavSet() { goto vx2Rj; FR8Xj: if (!($custom_bottom_nav != false)) { goto Vp42T; } goto ytMvr; ie6A9: $home_func_pic = getAppConfSd('home_func_pic'); goto rKY84; vx2Rj: global $_GPC, $_W; goto cxfoL; MGm44: PPwzU: goto Al1sp; ilfsq: $custom_bottom_nav = array_merge($custom_bottom_nav); goto QxSnK; sWYJ2: $custom_bottom_nav = getAppConfSd('custom_bottom_nav'); goto vj4Uc; HCHOU: $custom_bottom_color = getAppConfSd('custom_bottom_color'); goto HOYQk; neJx_: $bottom_count = count($data['bottom']['list']); goto studK; trKIR: $home_func_pic_count = count($home_func_pic); goto Kdr4t; QxSnK: Vp42T: goto HCHOU; mpJpj: $custom_function_nav_count = count($custom_function_nav); goto MGm44; HLVuR: if (!($custom_function_nav != false)) { goto PPwzU; } goto mpJpj; Kdr4t: z8408: goto sWYJ2; W6fol: if (!($home_func_pic != false)) { goto z8408; } goto trKIR; Al1sp: include $this->template('app_set/app_nav_set'); goto uAgkp; OTfir: if (!($data['bottom']['list'] != false)) { goto KN3rJ; } goto neJx_; vj4Uc: $custom_bottom_nav = unserialize($custom_bottom_nav); goto FR8Xj; ytMvr: $custom_bottom_nav_count = count($custom_bottom_nav); goto ilfsq; TwMiE: $custom_function_nav = unserialize($custom_function_nav); goto HLVuR; hR4Mk: $data = unserialize($data); goto OTfir; HOYQk: $custom_function_nav = getAppConfSd('custom_function_nav'); goto TwMiE; cxfoL: $data = getAppConfSd('app_nav_set'); goto hR4Mk; studK: KN3rJ: goto ie6A9; rKY84: $home_func_pic = unserialize($home_func_pic); goto W6fol; uAgkp: } public function doWebAppNavSetSave() { goto IY5vU; Mggtg: N8cD2: goto yxJTM; fuaVX: ACfK3: goto xXcM1; v84d0: $app_set['bottom']['color'] = trim($_GPC['color']); goto QgE3J; FkuoF: $app_set['vice_theme_color'] = $_GPC['vice_theme_color']; goto Vq7ue; ox7b2: if (!($_GPC['top_bg_color'] == '')) { goto WHjxY; } goto Hqemi; hvflT: $app_set = array(); goto Il2Xh; QxV0Q: $re1 = pdo_update($this->tablePrefix . $this->configTable, array("value" => $custom_bottom_color), array("uniacid" => $_W['uniacid'], "code" => "custom_bottom_color")); goto FtKtR; QTwx_: if ($data == '') { goto ACfK3; } goto wm0h4; Crp2w: eXHkX: goto ofhCY; L6HZd: $app_set['top']['top_text_color'] = $_GPC['top_text_color']; goto ox7b2; IY5vU: global $_GPC, $_W; goto hvflT; XmUDu: $data['vice_theme_color'] = $_GPC['vice_theme_color']; goto NvYyN; Il2Xh: if (!($_GPC['top_text_color'] == NULL)) { goto pQ6Wq; } goto C4iZ7; yXm4d: pQ6Wq: goto L6HZd; TC2jb: $data = $app_set; goto g2mx0; yxJTM: if (!($_GPC['vice_theme_color'] != '')) { goto kQZgL; } goto XmUDu; NvYyN: kQZgL: goto LmOhd; DYoAb: $data['bottom']['selectedColor'] = $app_set['bottom']['selectedColor']; goto LVOZw; DGvb1: if (!($_GPC['app_theme_color'] != '')) { goto N8cD2; } goto hEkY8; g2mx0: oOt3I: goto QxV0Q; l2A7i: $this->json_return('', 0); goto AqiFj; xW5XW: if ($result != false || $re1 != false) { goto kToZH; } goto l2A7i; hEkY8: $data['app_theme_color'] = $_GPC['app_theme_color']; goto Mggtg; Obn13: $app_set['bottom']['backgroundColor'] = trim($_GPC['backgroundColor']); goto zOAV6; bo57h: $data['top'] = $app_set['top']; goto wDlMU; LmOhd: goto oOt3I; goto fuaVX; wm0h4: $data = unserialize($data); goto bo57h; C4iZ7: $this->json_return('', 0); goto yXm4d; xXcM1: if (!($_GPC['app_theme_color'] != '')) { goto eXHkX; } goto T9Z5L; sLrPQ: $this->json_return(''); goto MLSOy; MLSOy: BXMgg: goto M3FiJ; Edyi0: $data = getAppConfSd('app_nav_set'); goto QTwx_; zOAV6: $app_set['bottom']['boderStyle'] = trim($_GPC['boderStyle']); goto Edyi0; Hqemi: $this->json_return('', 0); goto IylgS; Vq7ue: fBKhU: goto UV9JD; YrmaM: $data['bottom']['boderStyle'] = $app_set['bottom']['boderStyle']; goto DGvb1; T9Z5L: $app_set['app_theme_color'] = $_GPC['app_theme_color']; goto Crp2w; irM7C: kToZH: goto sLrPQ; z0rlR: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("uniacid" => $_W['uniacid'], "code" => "app_nav_set")); goto xW5XW; FtKtR: $data = serialize($data); goto z0rlR; AqiFj: goto BXMgg; goto irM7C; JvdhL: $app_set['bottom']['selectedColor'] = trim($_GPC['selectedColor']); goto Obn13; IylgS: WHjxY: goto vNEEy; UV9JD: $app_set['bottom']['list'] = array(); goto TC2jb; QgE3J: $custom_bottom_color = trim($_GPC['custom_bottom_color']); goto JvdhL; ofhCY: if (!($_GPC['vice_theme_color'] != '')) { goto fBKhU; } goto FkuoF; vNEEy: $app_set['top']['top_bg_color'] = $_GPC['top_bg_color']; goto v84d0; wDlMU: $data['bottom']['color'] = $app_set['bottom']['color']; goto DYoAb; LVOZw: $data['bottom']['backgroundColor'] = $app_set['bottom']['backgroundColor']; goto YrmaM; M3FiJ: } public function doWebAppNavBottom() { goto xXLdu; O_iar: $data = $this->getAppNavBottomData($id); goto rz8B3; xXLdu: global $_GPC, $_W; goto l00U9; lmlXD: if (!($id > 0)) { goto aGFDk; } goto O_iar; l00U9: $id = intval($_GPC['id']); goto lmlXD; bE0DL: $pageData = getOtherConf('tab_bar_pages'); goto fvkXx; fvkXx: include $this->template('app_set/app_nav_bottom'); goto sD5j6; rz8B3: aGFDk: goto bE0DL; sD5j6: } public function doWebAppNavBottomSave() { goto iS_2t; Vg38E: $key = $this->getAppNavBottomData($id, true); goto FMFkY; KeSab: UzIyo: goto WIQGp; tAwDo: $data['bottom']['list'][] = $condition; goto fVvVX; AFjmV: $condition['iconPath'] = $_GPC['iconPath']; goto dsjAj; H5ZWB: Z8Xrf: goto DrO2W; xGW_D: goto UzIyo; goto D17hx; J4jLx: $this->json_return('', 0); goto H5ZWB; Bf0_W: $condition['pagePath2'] = trim($_GPC['pagePath2']); goto Wz2A2; fbLoE: Pzkzi: goto RKrsQ; iS_2t: global $_GPC, $_W; goto HJV88; EVLCx: $data['bottom']['list'][$key] = $condition; goto KeSab; sWVrw: $id = intval($_GPC['id']); goto quFOF; bqXnp: foreach ($data['bottom']['list'] as $v) { $lastId = $v['id']; JQqCU: } goto t1ALb; c9ikW: JITc3: goto YnzF3; QYAuf: $condition['id'] = 1; goto tfq1Q; frA2q: $this->json_return('', 0); goto NkVAB; PGuMK: zRNWf: goto ORIts; ZQ3ps: $condition['pagePath1'] = trim($_GPC['pagePath1']); goto ENNjL; DrO2W: $condition['selectedIconPath'] = $_GPC['selectedIconPath']; goto bOKY8; quFOF: if (!($_GPC['iconPath'] == '')) { goto PFQu_; } goto ohN0O; t1ALb: e3m4Q: goto mfwZ6; XJ3LB: if ($result != false) { goto JScYy; } goto ikdfx; K_IWc: if (!(trim($_GPC['pagePath1']) == '')) { goto v80y_; } goto frA2q; ohN0O: $this->json_return('', 0); goto wcVxM; tkAsC: if ($condition['type'] == 1) { goto p1JAi; } goto Oa38m; ikdfx: $this->json_return('', 0); goto BYr8c; llDN_: $data = array(); goto QYAuf; FMFkY: $condition['id'] = $id; goto EVLCx; ToCe_: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("uniacid" => $_W['uniacid'], "code" => "app_nav_set")); goto XJ3LB; ENNjL: $condition['pagePath'] = trim($_GPC['pagePath1']); goto Bf0_W; D17hx: ofZrg: goto Vg38E; BY9qx: $this->json_return('appId', 0); goto c9ikW; bOKY8: $condition['type'] = intval($_GPC['type']); goto kHdDt; kUj1N: if ($data != false) { goto Pzkzi; } goto llDN_; tfq1Q: $data['bottom']['list'][] = $condition; goto aTsq7; cWacj: t1XO2: goto LkK5T; wcVxM: PFQu_: goto AFjmV; RxJaT: ouJTB: goto jyTJT; RU90j: $this->json_return(''); goto RxJaT; YnzF3: $condition['appId'] = trim($_GPC['appId']); goto NMjW1; b7gm7: $data['bottom']['list'][] = $condition; goto xGW_D; ORIts: CqwGE: goto ZQ3ps; DRDip: HMM6D: goto fBd_e; kHdDt: if (in_array($condition['type'], array(1, 2))) { goto t1XO2; } goto NI2Eu; WIQGp: e1iCX: goto oRBWL; fVvVX: goto e1iCX; goto DRDip; CyIlL: $this->json_return('', 0); goto kTzkD; fxHwn: if (in_array(trim($_GPC['pagePath1']), getOtherConf('tab_bar_pages'))) { goto zRNWf; } goto tXMtj; hQULH: $data = serialize($data); goto ToCe_; aTsq7: goto SXojj; goto fbLoE; NkVAB: v80y_: goto fxHwn; wO_6g: JScYy: goto RU90j; kTzkD: hZzq5: goto ZzlEM; fBd_e: if ($id != false) { goto ofZrg; } goto bqXnp; NI2Eu: $this->json_return('', 0); goto cWacj; g0mXx: $condition['id'] = 1; goto tAwDo; ELXTV: p1JAi: goto K_IWc; BYr8c: goto ouJTB; goto wO_6g; LkK5T: if (!($condition['type'] == 2 && empty($_GPC['appId']))) { goto JITc3; } goto BY9qx; RKrsQ: if ($data['bottom']['list'] != false) { goto HMM6D; } goto g0mXx; Wz2A2: $data = unserialize(getAppConfSd('app_nav_set')); goto kUj1N; tXMtj: $this->json_return('', 0); goto PGuMK; mfwZ6: $condition['id'] = $lastId + 1; goto b7gm7; dsjAj: if (!($_GPC['selectedIconPath'] == '')) { goto Z8Xrf; } goto J4jLx; oRBWL: SXojj: goto hQULH; ZzlEM: goto CqwGE; goto ELXTV; HJV88: $condition = array(); goto sWVrw; NMjW1: $condition['text'] = trim($_GPC['text']); goto tkAsC; Oa38m: if (!(trim($_GPC['pagePath2']) == '')) { goto hZzq5; } goto CyIlL; jyTJT: } public function doWebAppNavSetDel() { goto rTEpv; T0fFt: goto N_aaI; goto SYjbn; trhIF: goto uaN3a; goto K3IFP; mj3dk: N_aaI: goto QNQAc; s9uPr: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("uniacid" => $_W['uniacid'], "code" => $type)); goto T0fFt; dgVH2: Vu9f2: goto nc5S5; HeNbg: $data = serialize($data); goto s9uPr; RFyUo: unset($data[$key]); goto HeNbg; nc5S5: XTusM: goto RFyUo; llzO2: unset($data['bottom']['list'][$key]); goto cWL1U; eMnuy: if ($type == 'app_nav_set') { goto txJJA; } goto y9AGU; SYjbn: txJJA: goto vYS_s; mkKrj: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("code" => "app_nav_set", "uniacid" => $_W['uniacid'])); goto mj3dk; y9AGU: $data = unserialize(getAppConfSd($type)); goto K10cx; K3IFP: aGAw9: goto crA4_; K10cx: switch ($type) { case 'home_func_pic': $key = $this->getHomeFuncPicData($id, true); goto XTusM; case 'custom_bottom_nav': $key = $this->getCustomBottomNavData($id, true); goto XTusM; case 'custom_function_nav': $key = $this->getCustomFunctionNavData($id, true); goto XTusM; case 'art_bottom_nav': $key = $this->getArtBottomNavData($id, true); goto XTusM; } goto dgVH2; Cx97D: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto orRKn; FDJ_Q: $key = $this->getAppNavBottomData($id, true); goto llzO2; crA4_: $this->json_return(''); goto Doh4C; uYy2X: $this->json_return('', 0); goto trhIF; orRKn: $type = trim($_GPC['type']) != '' ? trim($_GPC['type']) : $this->json_return('', 0); goto eMnuy; rTEpv: global $_GPC, $_W; goto Cx97D; vYS_s: $data = unserialize(getAppConfSd('app_nav_set')); goto FDJ_Q; QNQAc: if ($result != false) { goto aGAw9; } goto uYy2X; Doh4C: uaN3a: goto CDvcY; cWL1U: $data = serialize($data); goto mkKrj; CDvcY: } public function doWebHomeFuncPic() { goto lq5mX; LBUbS: ZDGm3: goto Dl52f; zan5p: if (!($id > 0)) { goto ZDGm3; } goto EJXtJ; EJXtJ: $data = $this->getHomeFuncPicData($id); goto LBUbS; cJeCZ: include $this->template('app_set/home_func_pic'); goto q1t2J; lq5mX: global $_GPC, $_W; goto JbV1O; JbV1O: $id = intval($_GPC['id']); goto zan5p; Dl52f: $pageData = getOtherConf('tab_bar_pages'); goto cJeCZ; q1t2J: } public function doWebHomeFuncPicSave() { goto pTlaU; QRc6b: $key = $this->getHomeFuncPicData($id, true); goto z1DCb; rgbLL: JTM28: goto FwiS0; YOlLz: Xb0ZF: goto UTJvp; FgrzP: goto OJYWI; goto wMSl2; TavfT: vC_Ny: goto Bwrzz; t6i3A: OJYWI: goto jNPpl; wMSl2: nagJs: goto QRc6b; goX6u: JaGPs: goto Gd5S3; pTlaU: global $_GPC, $_W; goto Y6Ou1; RwRFW: $data[] = $condition; goto y0Yzk; n3alf: if (!($_GPC['iconPath'] == '')) { goto YZ10f; } goto PC0J3; Tbsq5: $this->json_return('', 0); goto eTqvh; JyTuV: if ($data != false) { goto Xb0ZF; } goto lTpsu; DGPZn: $condition['text'] = trim($_GPC['text']); goto KMgzA; Y6Ou1: $condition = array(); goto O4qim; jNPpl: N5gOp: goto n5JkW; PC0J3: $this->json_return('', 0); goto sNE_C; NLyo6: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("uniacid" => $_W['uniacid'], "code" => "home_func_pic")); goto KoGQI; n5JkW: $data = serialize($data); goto NLyo6; Ui0IR: $data[] = $condition; goto FgrzP; xmo5h: $data[$key] = $condition; goto t6i3A; sNE_C: YZ10f: goto YR6As; Bwrzz: $this->json_return(''); goto rgbLL; lTpsu: $condition['id'] = 1; goto RwRFW; KMgzA: $data = unserialize(getAppConfSd('home_func_pic')); goto JyTuV; UTJvp: if ($id != false) { goto nagJs; } goto v3wxf; O4qim: $id = intval($_GPC['id']); goto n3alf; z1DCb: $condition['id'] = $id; goto xmo5h; eTqvh: goto JTM28; goto TavfT; Gd5S3: $condition['id'] = $lastId + 1; goto Ui0IR; v3wxf: foreach ($data as $v) { $lastId = $v['id']; omfLv: } goto goX6u; KoGQI: if ($result != false) { goto vC_Ny; } goto Tbsq5; y0Yzk: goto N5gOp; goto YOlLz; YR6As: $condition['iconPath'] = $_GPC['iconPath']; goto DGPZn; FwiS0: } public function doWebCustomBottomNav() { goto Pi_sa; CB36z: if (!($id > 0)) { goto HUagR; } goto fu7xj; fu7xj: $data = $this->getCustomBottomNavData($id); goto eAs89; GyRwK: $id = intval($_GPC['id']); goto CB36z; eAs89: HUagR: goto BHMM6; Pi_sa: global $_GPC, $_W; goto GyRwK; BHMM6: include $this->template('app_set/custom_bottom_nav'); goto rO1iN; rO1iN: } public function doWebCustomButtomNavSave() { goto w3emE; xSgeO: $condition = array(); goto LFGtf; CHhpB: $data[] = $condition; goto mDjwL; Xmpww: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("uniacid" => $_W['uniacid'], "code" => "custom_bottom_nav")); goto asRzw; asRzw: if ($result != false) { goto sqz7u; } goto jwZqW; EQo55: s431s: goto ih4KP; UZQe9: sqz7u: goto BNJnr; w3emE: global $_GPC, $_W; goto xSgeO; LFGtf: $id = intval($_GPC['id']); goto Tdc6g; jwZqW: $this->json_return('', 0); goto qHHqC; AKKVr: $condition['selectedIconPath'] = trim($_GPC['selectedIconPath']) != '' ? $_GPC['selectedIconPath'] : $this->json_return('', 0); goto AZbEb; irqod: goto siRl4; goto G3DSY; htIXe: if ($data != false) { goto ECKJx; } goto bX31t; kzVLG: $data[$key] = $condition; goto irqod; Fjq90: MKGPe: goto Zg64b; AZbEb: $condition['text'] = trim($_GPC['text']); goto TwDW3; qHHqC: goto H5peK; goto UZQe9; ih4KP: $condition['id'] = $lastId + 1; goto CHhpB; lsidz: $data[] = $condition; goto kd12t; Tdc6g: $condition['iconPath'] = trim($_GPC['iconPath']) != '' ? $_GPC['iconPath'] : $this->json_return('', 0); goto AKKVr; Jz6jy: $condition['id'] = $id; goto kzVLG; G3DSY: tpSQd: goto jqUnT; BNJnr: $this->json_return(''); goto cJdCd; bX31t: $condition['id'] = 1; goto lsidz; cJdCd: H5peK: goto BtaxR; kd12t: goto MKGPe; goto Ig_Zr; TwDW3: $data = unserialize(getAppConfSd('custom_bottom_nav')); goto htIXe; jqUnT: foreach ($data as $v) { $lastId = $v['id']; cG4PS: } goto EQo55; USFfh: $key = $this->getCustomBottomNavData($id, true); goto Jz6jy; mDjwL: siRl4: goto Fjq90; Zg64b: $data = serialize($data); goto Xmpww; XL1Ux: if ($id < 1) { goto tpSQd; } goto USFfh; Ig_Zr: ECKJx: goto XL1Ux; BtaxR: } public function doWebCustomFunctionNav() { goto JpMRm; Uyj9R: if (!($id > 0)) { goto IwcKp; } goto Zwi5q; g4bg7: include $this->template('app_set/custom_function_nav'); goto lL1q8; kWBOa: IwcKp: goto g4bg7; JpMRm: global $_GPC, $_W; goto FHVdZ; Zwi5q: $data = $this->getCustomFunctionNavData($id); goto kWBOa; FHVdZ: $id = intval($_GPC['id']); goto Uyj9R; lL1q8: } public function doWebCustomFunctionNavSave() { goto qUpvX; H74zz: $id = intval($_GPC['id']); goto ZgvI6; J1txr: vRRHW: goto dFi89; CwWJS: $data[] = $condition; goto pIqFb; Vp6FO: $data = serialize($data); goto iILa7; OGGFO: $this->json_return('', 0); goto ZGRoi; Yw1V0: $key = $this->getCustomFunctionNavData($id, true); goto lqMSH; hLwp5: $condition['id'] = $lastId + 1; goto mWxgo; q8rQf: JQ81C: goto tdpfd; pIqFb: goto PoHp7; goto q8rQf; ZgvI6: $condition['iconPath'] = trim($_GPC['iconPath']) != '' ? trim($_GPC['iconPath']) : $this->json_return('', 0); goto CfjTd; tdpfd: if ($id < 1) { goto Dn78F; } goto Yw1V0; OYfGn: if ($result != false) { goto n5sd2; } goto OGGFO; ZGRoi: goto wmHYd; goto IlhUM; IlhUM: n5sd2: goto TFyRz; TFyRz: $this->json_return(''); goto mcbbL; FskeN: if ($data != false) { goto JQ81C; } goto dMGXa; CfjTd: $condition['text'] = trim($_GPC['text']); goto OQABP; jBQlR: Dn78F: goto r4E6G; dGGpM: $condition = array(); goto H74zz; r4E6G: foreach ($data as $v) { $lastId = $v['id']; Vi3jC: } goto WJ4kg; OQABP: $data = unserialize(getAppConfSd('custom_function_nav')); goto FskeN; dFi89: PoHp7: goto Vp6FO; dMGXa: $condition['id'] = 1; goto CwWJS; mcbbL: wmHYd: goto mKhkm; WJ4kg: TxYMt: goto hLwp5; Oht4x: $data[$key] = $condition; goto ofhlw; qUpvX: global $_GPC, $_W; goto dGGpM; mWxgo: $data[] = $condition; goto J1txr; iILa7: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("uniacid" => $_W['uniacid'], "code" => "custom_function_nav")); goto OYfGn; ofhlw: goto vRRHW; goto jBQlR; lqMSH: $condition['id'] = $id; goto Oht4x; mKhkm: } public function getAppNavBottomData($id, $type = false) { goto TUr0x; TUr0x: if (!($id != false)) { goto Cc7KI; } goto ZiQwZ; DMHQz: Cc7KI: goto zyDQz; ZiQwZ: $data = getAppConfSd('app_nav_set'); goto exxhu; PaZjU: foreach ($data['bottom']['list'] as $key => $v) { goto VkPKp; CxfkF: return $key; goto zEyKy; X7c6T: if (!($type != false && $id === $v['id'])) { goto ewYIV; } goto CxfkF; VkPKp: if (!($type == false && $id === $v['id'])) { goto gLzsp; } goto LKIS_; LKIS_: return $v; goto HlmLr; WUAbP: W3DKf: goto LwRyM; zEyKy: ewYIV: goto WUAbP; HlmLr: gLzsp: goto X7c6T; LwRyM: } goto GUaM2; exxhu: $data = unserialize($data); goto PaZjU; GUaM2: RMsm_: goto DMHQz; zyDQz: } public function getHomeFuncPicData($id, $type = false) { goto ybLpw; UN3Xt: $data = getAppConfSd('home_func_pic'); goto KHv26; ybLpw: if (!($id != false)) { goto JnQfe; } goto UN3Xt; KHv26: $data = unserialize($data); goto dE9lD; GVWCs: rDFZO: goto y8VwV; y8VwV: JnQfe: goto cw3lt; dE9lD: foreach ($data as $key => $v) { goto s_GPa; r3xH3: YXHkd: goto oF6IQ; oF6IQ: if (!($type != false && $id === $v['id'])) { goto CZAV5; } goto as9V_; kTgbF: return $v; goto r3xH3; OhQB8: CZAV5: goto Xq8Bp; as9V_: return $key; goto OhQB8; s_GPa: if (!($type == false && $id === $v['id'])) { goto YXHkd; } goto kTgbF; Xq8Bp: BjxJS: goto VhJwZ; VhJwZ: } goto GVWCs; cw3lt: } public function getCustomBottomNavData($id, $type = false) { goto nfByy; nfByy: if (!($id != false)) { goto PW3W7; } goto fAPdC; GpMLb: $data = unserialize($data); goto blN7l; blN7l: foreach ($data as $key => $v) { goto dHvqH; GA12v: NGT4e: goto WqGDM; Z7pkH: aUHkX: goto JQOTP; WqGDM: SlpO9: goto PTO76; JX3KK: return $key; goto GA12v; dHvqH: if (!($type == false && $id === $v['id'])) { goto aUHkX; } goto WAoFB; JQOTP: if (!($type != false && $id === $v['id'])) { goto NGT4e; } goto JX3KK; WAoFB: return $v; goto Z7pkH; PTO76: } goto ph6yG; xdnSs: PW3W7: goto I6WHW; ph6yG: RULGV: goto xdnSs; fAPdC: $data = getAppConfSd('custom_bottom_nav'); goto GpMLb; I6WHW: } public function getCustomFunctionNavData($id, $type = false) { goto BDzeR; BDzeR: if (!($id != false)) { goto ysGZn; } goto B6S0P; W5v1D: $data = unserialize($data); goto U0rWk; xnCrl: ysGZn: goto ZYXfK; sisUr: xtUtF: goto xnCrl; B6S0P: $data = getAppConfSd('custom_function_nav'); goto W5v1D; U0rWk: foreach ($data as $key => $v) { goto XZjnm; awq1W: return $v; goto vDeUb; pA0fn: return $key; goto xeSPB; tMcno: if (!($type != false && $id === $v['id'])) { goto Oub0C; } goto pA0fn; vDeUb: i5it_: goto tMcno; XZjnm: if (!($type == false && $id === $v['id'])) { goto i5it_; } goto awq1W; Cwb9g: z3VnL: goto JnKtZ; xeSPB: Oub0C: goto Cwb9g; JnKtZ: } goto sisUr; ZYXfK: } public function getJumpSetData($id, $type = false) { goto VJopU; VJopU: if (!($id != false)) { goto mE5g0; } goto XqaOl; es6Jg: foreach ($data as $key => $v) { goto l786S; GKqld: LyTDr: goto vtZDj; NuCNG: return $v; goto GKqld; YIWIL: E1Btw: goto VKbkk; u3GYM: return $key; goto YIWIL; VKbkk: gxz99: goto NHXxR; vtZDj: if (!($type != false && $id === $v['id'])) { goto E1Btw; } goto u3GYM; l786S: if (!($type == false && $id === $v['id'])) { goto LyTDr; } goto NuCNG; NHXxR: } goto ZJ6mp; XqaOl: $data = getAppConfSd('app_link_list'); goto QY3Gj; QY3Gj: $data = unserialize($data); goto es6Jg; ZJ6mp: V41qm: goto uxFMq; uxFMq: mE5g0: goto rRXLA; rRXLA: } public function doWebAppJumpSet() { goto Pe04t; tQhxO: foreach ($list as &$v) { goto IUGCN; OV60d: f8RZH: goto tgMB7; L6L2o: s120S: goto OV60d; IUGCN: switch ($v['type']) { case 6: $v['type'] = ''; goto f8RZH; case 1: $v['type'] = ''; goto f8RZH; case 2: $v['type'] = ''; goto f8RZH; case 3: $v['type'] = ''; goto f8RZH; case 5: $v['type'] = ''; goto f8RZH; case 7: $v['type'] = ''; goto f8RZH; default: } goto L6L2o; tgMB7: Juy9p: goto pT1Gj; pT1Gj: } goto TGoP_; aVWEd: $data['uniacid'] = $_W['uniacid']; goto r3DqQ; iPgJ5: $list = $data; goto tQhxO; QuN9V: $data = unserialize($data); goto Zw0tx; YQP1S: $count = count($list); goto NYdy8; dvnlv: $data = array(); goto aVWEd; NYdy8: include $this->template('app_set/app_jump_set'); goto hb7KV; Pe04t: global $_GPC, $_W; goto dvnlv; r3DqQ: $data = getAppConfSd('app_link_list'); goto QuN9V; TGoP_: hvAhz: goto UBaeG; Zw0tx: if (!($data != false)) { goto vQahy; } goto iPgJ5; UBaeG: vQahy: goto YQP1S; hb7KV: } public function doWebAppJumpSetEdit() { goto qRKOJ; yGwPM: $id = intval($_GPC['id']); goto y8d6J; SlO2x: $pageData = getOtherConf('can_nav_pages'); goto jhbpj; y8d6J: if (!($id > 0)) { goto LjU02; } goto UCErW; hnjCZ: LjU02: goto SlO2x; UCErW: $data = $this->getJumpSetData($id); goto hnjCZ; qRKOJ: global $_GPC, $_W; goto yGwPM; jhbpj: include $this->template('app_set/app_jump_set_info'); goto S3IZ_; S3IZ_: } public function doWebAppJumpSetSave() { goto JsQ92; KI1Ea: $condition['appid'] = trim($_GPC['appid']); goto O8Pes; uQjAD: $this->json_return('', 0); goto LpcS6; ENGfW: $key = $this->getJumpSetData($id, true); goto uwIwE; Q0Xy5: $this->json_return('!', 0); goto ILVjH; TxKG3: J9P29: goto MMW7T; HL4bE: $app_link_list = serialize($app_link_list); goto LR1sX; Q5S2j: unset($condition['value']); goto KsE10; KsE10: $condition['value'] = trim($_GPC['value3']); goto TxKG3; xtEEf: FhEB0: goto N6TfJ; pviY6: if (!(trim($_GPC['value2']) == '')) { goto FhEB0; } goto MUn0u; aweD0: $app_link_list[$key]['id'] = $id; goto Mr7bP; R4jMQ: if (!(intval($_GPC['type']) == 2 && trim($_GPC['appid']) == '')) { goto IMcSe; } goto xxubO; BUVq2: $app_link_list[] = $condition; goto hpLwh; pD3V3: $this->json_return('!', 0); goto P6cbL; n1fQM: if (!(intval($_GPC['type']) == 7)) { goto Ooqzz; } goto BiJOm; xtkRH: $condition['pic'] = $_GPC['pic']; goto ODswY; LR1sX: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $app_link_list), array("code" => "app_link_list", "uniacid" => $_W['uniacid'])); goto g3ejO; QFzSO: $condition['id'] = $lastId + 1; goto BUVq2; p1AW5: XG9RE: goto FtsN4; ZTq7a: GbbJG: goto o2blU; ZJmps: $num = count($app_link_list); goto E8ZCr; dE0TI: $this->json_return('!', 0); goto p1AW5; ODswY: if (!(intval($_GPC['type']) === false)) { goto P_R5n; } goto Q0Xy5; MQcGc: XyXPD: goto QFzSO; U1izq: if (!(trim($_GPC['value']) == '')) { goto YjXUH; } goto fR_2h; rrwJt: $condition['id'] = 1; goto NOjrs; JsQ92: global $_GPC, $_W; goto AaDQa; o2rKv: if (!(intval($_GPC['type']) == 6)) { goto GbbJG; } goto EDr5r; jPGYf: YjXUH: goto mlWyf; xx3qH: Ooqzz: goto R4jMQ; AaDQa: $condition = array(); goto DQeLs; g3ejO: if ($result != false) { goto Kk545; } goto uQjAD; wwbGF: $this->json_return('!', 0); goto OunJT; oK1HS: goto cfOiR; goto XtB3q; hggFB: goto d6egP; goto RGuVH; s7z33: if (!(intval($_GPC['type']) == 7)) { goto J9P29; } goto Q5S2j; fR_2h: $this->json_return('// !', 0); goto jPGYf; Mr7bP: sZDbG: goto HL4bE; OfVIA: if (intval($_GPC['type']) != 6 && intval($_GPC['type']) != 5) { goto GgUEA; } goto PL57H; FXIXB: if (!(intval($_GPC['type']) == 2)) { goto oNFP7; } goto KI1Ea; DQeLs: $id = intval($_GPC['id']); goto we5of; eARMY: $this->json_return('200!', 0); goto cU9Ty; xxPs6: b_3PL: goto JexHg; P6cbL: YXTVs: goto QgUjv; oXTwL: if (!(mb_strlen(trim($_GPC['introduce']), 'utf-8') >= 200)) { goto aA0uN; } goto eARMY; FtsN4: aMZ2Z: goto oK1HS; eUpwY: lw9Kv: goto s7z33; JexHg: if (in_array(trim($_GPC['path']), getOtherConf('can_nav_pages'))) { goto XG9RE; } goto dE0TI; XtB3q: GgUEA: goto U1izq; Ej6ON: $condition['introduce'] = trim($_GPC['introduce']); goto EPN5N; YO202: goto sZDbG; goto SC0OG; mlWyf: cfOiR: goto VTWin; N6TfJ: Xr86K: goto n1fQM; ILVjH: P_R5n: goto OfVIA; cU9Ty: aA0uN: goto Ej6ON; G32PU: $this->json_return(''); goto PWpAU; E2Lph: $app_link_list = unserialize($data); goto QIgEn; dSD8H: IMcSe: goto DUaa8; DUaa8: $condition['type'] = intval($_GPC['type']); goto v2typ; BiJOm: if (!(trim($_GPC['value3']) == '')) { goto fPTSM; } goto wwbGF; L8Vyg: Kk545: goto G32PU; uwIwE: $app_link_list[$key] = $condition; goto aweD0; EPN5N: $condition['order'] = intval($_GPC['order']); goto xtkRH; VTWin: if (!(intval($_GPC['type']) == 5)) { goto Xr86K; } goto pviY6; PL57H: if (!(intval($_GPC['type']) == 6)) { goto aMZ2Z; } goto I1Jua; lzV1H: $condition['value'] = trim($_GPC['path']); goto ZTq7a; k7ABt: $condition['status'] = intval($_GPC['status']) == 1 ? intval($_GPC['status']) : 0; goto FXIXB; OunJT: fPTSM: goto xx3qH; xxubO: $this->json_return('appid!', 0); goto dSD8H; QIgEn: if ($id != false) { goto aN74V; } goto QsScD; YxQXI: $condition['value'] = trim($_GPC['value2']); goto eUpwY; hpLwh: d6egP: goto YO202; NS2Ir: unset($condition['value']); goto YxQXI; LpcS6: goto cr4EH; goto L8Vyg; PWpAU: cr4EH: goto qtSNQ; NOjrs: $app_link_list[] = $condition; goto hggFB; MUn0u: $this->json_return('!', 0); goto xtEEf; we5of: if (!(trim($_GPC['title']) == '')) { goto YXTVs; } goto pD3V3; QsScD: if (!empty($app_link_list)) { goto JNJvE; } goto rrwJt; QgUjv: $condition['title'] = trim($_GPC['title']); goto oXTwL; MMW7T: $data = getAppConfSd('app_link_list'); goto E2Lph; RGuVH: JNJvE: goto ZJmps; o2blU: if (!(intval($_GPC['type']) == 5)) { goto lw9Kv; } goto NS2Ir; O8Pes: oNFP7: goto o2rKv; E8ZCr: foreach ($app_link_list as $v) { $lastId = $v['id']; HC2pO: } goto MQcGc; SC0OG: aN74V: goto ENGfW; uZbzJ: $this->json_return(' //!', 0); goto xxPs6; I1Jua: if (!(trim($_GPC['path']) == '')) { goto b_3PL; } goto uZbzJ; v2typ: $condition['value'] = trim($_GPC['value']); goto k7ABt; EDr5r: unset($condition['value']); goto lzV1H; qtSNQ: } public function doWebAppJumpSetDel() { goto p0zBO; s9Rz3: unset($app_link_list[$key]); goto i8jtr; X0rAr: o0TtM: goto PJLBB; jeyBT: if ($result != false) { goto igFof; } goto QQJNq; EaU8P: $this->json_return(''); goto Vqxf7; p0zBO: global $_GPC, $_W; goto mxkbY; N_VcA: $key = $this->getJumpSetData($id, true); goto s9Rz3; e6_oT: goto QjKfd; goto TfDaL; QQJNq: $this->json_return('', 0); goto e6_oT; i8jtr: $data = serialize($app_link_list); goto qFDDf; TfDaL: igFof: goto EaU8P; qFDDf: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("uniacid" => $_W['uniacid'], "code" => "app_link_list")); goto jeyBT; jfuw4: if (!($id < 1)) { goto o0TtM; } goto Q68qU; PJLBB: $data = getAppConfSd('app_link_list'); goto Zhvtx; Q68qU: $this->json_return('', 0); goto X0rAr; mxkbY: $id = intval($_GPC['id']); goto jfuw4; Vqxf7: QjKfd: goto csSlH; Zhvtx: $app_link_list = unserialize($data); goto N_VcA; csSlH: } public function doWebAppApiSet() { goto yomPe; x2rSh: $data = unserialize($AppApi); goto It321; KEUKO: include $this->template('app_set/app_api_set'); goto PPRf0; NUXuE: if (!($AppApi != '')) { goto UarIR; } goto x2rSh; yomPe: global $_GPC, $_W; goto rIZSD; It321: UarIR: goto KEUKO; rIZSD: $AppApi = getAppConfSd('app_api_set'); goto NUXuE; PPRf0: } public function doWebAppApiSetSave() { goto D9KIv; VXGzb: if (!($condition['item_api']['item_type'] === 2)) { goto a01kP; } goto AtKtb; BKDPU: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("uniacid" => $_W['uniacid'], "code" => "app_api_set")); goto QeaPn; GAdcz: xJKVi: goto xDONs; hlo2v: $condition['item_api']['item_txs_api']['BUCKET'] = trim($_GPC['BUCKET']); goto um4hQ; WHn6d: $condition['email_api']['smtpServer'] = trim($_GPC['smtpServer']); goto pWe8Q; um4hQ: a01kP: goto UhxBd; J28Vo: $condition['sms_api']['sms_txs_api']['sdkAppId'] = trim($_GPC['sdkAppId']); goto t3NDu; deAQT: $condition['sms_api']['sms_txs_api']['smsSign'] = trim($_GPC['smsSign']); goto ALd6J; kJFho: $condition['email_api']['smtpPass'] = trim($_GPC['smtpPass']); goto WHn6d; xtSj7: if (!(intval($_GPC['sms_type']) == 1)) { goto ql__O; } goto rX2ph; KMqI2: if (!(intval($_GPC['sms_type']) !== false)) { goto ejPXz; } goto ymdDH; porhr: $condition['sms_api']['sms_alis_api']['SignName'] = trim($_GPC['SignName']); goto x8jWb; xbUfp: $condition['item_api']['item_alis_api']['apiUrl'] = trim($_GPC['apiUrl']); goto a5lS6; xXjUE: $data = getAppConfSd('app_api_set'); goto wSkyP; Fk6Qn: $condition['item_api']['item_txs_api']['secretKey'] = trim($_GPC['secretKey']); goto hlo2v; wSkyP: if ($data == '') { goto hVpAD; } goto Yms13; GQS09: Vi872: goto KMqI2; VRAIC: goto Vi872; goto G0Hd1; G0Hd1: hVpAD: goto Hvo1L; Yms13: $condition = unserialize($data); goto VRAIC; ALd6J: LSJxR: goto xqyWr; Hvo1L: $condition = array(); goto GQS09; TRzzR: $condition['item_api']['item_txs_api']['secretID'] = trim($_GPC['secretID']); goto Fk6Qn; AtKtb: $condition['item_api']['item_txs_api']['appID'] = trim($_GPC['appID']); goto TRzzR; t3NDu: $condition['sms_api']['sms_txs_api']['appKey'] = trim($_GPC['appKey']); goto hJf0K; Rnvjq: ql__O: goto QimOV; y56mH: $condition['email_api']['smtpUser'] = trim($_GPC['smtpUser']); goto kJFho; UhxBd: qvfza: goto WxQZC; xqyWr: ejPXz: goto AjpE1; aDofB: global $_GPC, $_W; goto xXjUE; rX2ph: $condition['sms_api']['sms_alis_api']['accessKeyId'] = trim($_GPC['accessKeyId']); goto RkzB8; RkzB8: $condition['sms_api']['sms_alis_api']['accessKeySecret'] = trim($_GPC['accessKeySecret']); goto porhr; hJf0K: $condition['sms_api']['sms_txs_api']['templateId'] = trim($_GPC['templateId']); goto deAQT; a5lS6: $condition['item_api']['item_alis_api']['appCode'] = trim($_GPC['appCode']); goto CWwL0; uoDDm: $condition['item_api']['item_type'] = intval($_GPC['item_type']); goto nE5ap; WxQZC: $condition['email_api']['smtpAddr'] = trim($_GPC['smtpAddr']); goto y56mH; x8jWb: $condition['sms_api']['sms_alis_api']['TemplateCode'] = trim($_GPC['TemplateCode']); goto Rnvjq; PwlUo: $this->json_return(''); goto GAdcz; CWwL0: xUqKp: goto VXGzb; ZMZC0: $condition['email_api']['smtpNickname'] = trim($_GPC['smtpNickname']); goto kyOUL; QimOV: if (!(intval($_GPC['sms_type']) == 2)) { goto LSJxR; } goto J28Vo; mQvEy: goto xJKVi; goto w9cyh; HOdR5: $this->json_return('', 0); goto mQvEy; kyOUL: $data = serialize($condition); goto BKDPU; w9cyh: ZUvrf: goto PwlUo; nE5ap: if (!($condition['item_api']['item_type'] === 1)) { goto xUqKp; } goto xbUfp; ymdDH: $condition['sms_api']['sms_type'] = intval($_GPC['sms_type']); goto xtSj7; AjpE1: if (!(intval($_GPC['item_type']) !== false)) { goto qvfza; } goto uoDDm; QeaPn: if ($result != false) { goto ZUvrf; } goto HOdR5; D9KIv: global $_GPC, $_W; goto aDofB; pWe8Q: $condition['email_api']['smtpPort'] = trim($_GPC['smtpPort']); goto ZMZC0; xDONs: } public function doWebSmtpTest() { goto Fs8dS; UfX0N: return $result; goto L1o3k; Fs8dS: global $_GPC, $_W; goto VgLVa; VgLVa: $smtpTest = trim($_GPC['smtpTest']); goto LiNKH; LiNKH: $result = sendMail($smtpTest, '', ''); goto UfX0N; L1o3k: } public function doWebAppUseHelp() { goto oFcyA; oFcyA: global $_GPC, $_W; goto zYLVi; RQoTh: if (empty($data)) { goto jBj3g; } goto gQhXX; FGZs1: include $this->template('app_set/app_use_help'); goto a2_ex; VHH7V: $help_list = array(); goto RQoTh; bmbuL: jBj3g: goto FGZs1; gQhXX: $help_list = json_decode($data, true); goto bmbuL; zYLVi: $data = getAppConfSd('app_use_help'); goto VHH7V; a2_ex: } public function doWebAppUseHelpEdit() { goto N7yE8; iQL7u: include $this->template('app_set/app_use_help_info'); goto QsCSZ; XXJm3: $help_list = json_decode(getAppConfSd('app_use_help'), true); goto GB_zH; lBJiB: klAEX: goto iQL7u; z2LTg: $id = intval($_GPC['id']); goto iC0tm; N7yE8: global $_GPC, $_W; goto z2LTg; FNogF: TL9_C: goto lBJiB; GB_zH: foreach ($help_list as $v) { goto z5HT9; IDeQk: goto TL9_C; goto H116T; qWdbL: vEcJC: goto hDlC7; J53xt: $data = $v; goto IDeQk; z5HT9: if (!($v['id'] == $id)) { goto NIYtI; } goto J53xt; H116T: NIYtI: goto qWdbL; hDlC7: } goto FNogF; iC0tm: if (!($id > 0)) { goto klAEX; } goto XXJm3; QsCSZ: } public function doWebAppUseHelpSave() { goto USV4m; rDhMH: $condition['title'] = trim($_GPC['title']); goto mecJO; MHb5H: $this->json_return('!', 0); goto QaHv0; YIVyi: $help_list[] = $condition; goto KQt3y; rF6hE: ib52p: goto z8kUw; ACh38: if (!(intval($_GPC['id']) > 0)) { goto ffx5P; } goto kCSha; oU2n6: foreach ($help_list as $k => $v) { $lastId = $v['id']; cI5u0: } goto rJ2fW; USV4m: global $_GPC, $_W; goto ACh38; s3zos: frnA4: goto VgCTt; ZjSGo: $help_list = json_decode(getAppConfSd('app_use_help'), true); goto j3IMg; X73s2: $condition['id'] = $lastId + 1; goto vAmBa; KEyXD: if (!($help_list == NULL)) { goto q0TaJ; } goto u8HGe; VgCTt: foreach ($help_list as $k => $v) { goto C7kuF; C7kuF: if (!($v['id'] === $condition['id'])) { goto D2aB1; } goto NHs6c; oWCbL: D2aB1: goto FsxwQ; FsxwQ: S4nb7: goto KSyyn; NHs6c: $help_list[$k] = $condition; goto DKL50; DKL50: goto ib52p; goto oWCbL; KSyyn: } goto rF6hE; c_K88: $condition['introduce'] = trim($_GPC['introduce']); goto srwkj; z8kUw: X2RXs: goto Z5Ddv; z6Ji2: $condition['pics'] = $_GPC['pics']; goto ZjSGo; srwkj: $condition['order'] = intval($_GPC['order']) > 0 ? intval($_GPC['order']) : 0; goto UWJTM; TYgwl: if (!(trim($_GPC['title']) == '')) { goto CdBoX; } goto MHb5H; vAmBa: $help_list[] = $condition; goto HAgGh; Vaxea: if ($result != false) { goto NWC8Z; } goto RQPXR; Z5Ddv: afWe_: goto L5j7Z; x1LaU: WNlp9: goto aQU2f; QaHv0: CdBoX: goto rDhMH; xYqqd: if (!($introduce == '')) { goto NLtCz; } goto rv9Pa; RQPXR: $this->json_return('', 0); goto aObZF; Ah3dl: goto afWe_; goto x1LaU; JQ5UD: $this->json_return('500!', 0); goto knpq5; KQt3y: q0TaJ: goto Ah3dl; Tymuv: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $help_list), array("uniacid" => $_W['uniacid'], "code" => "app_use_help")); goto Vaxea; uaPrz: ffx5P: goto TYgwl; L5j7Z: $help_list = json_encode($help_list); goto Tymuv; aTDV2: d1CWm: goto z6Ji2; FWzHI: $this->json_return(''); goto jJinr; knpq5: U132n: goto c_K88; P8gGU: if (!(mb_strlen($introduce, 'utf-8') > 500)) { goto U132n; } goto JQ5UD; DUlqC: $condition['id'] = 1; goto YIVyi; pivBw: NWC8Z: goto FWzHI; HAgGh: goto X2RXs; goto s3zos; u8HGe: $help_list = array(); goto DUlqC; UWJTM: if (!(count($_GPC['pics']) < 1)) { goto d1CWm; } goto kP_3U; j3IMg: if ($help_list != NULL) { goto WNlp9; } goto KEyXD; rv9Pa: $this->json_return('!', 0); goto Z1uZi; mecJO: $introduce = trim($_GPC['introduce']); goto xYqqd; aObZF: goto TGmIx; goto pivBw; aQU2f: if ($condition['id'] > 0) { goto frnA4; } goto oU2n6; rJ2fW: tbqRJ: goto X73s2; Z1uZi: NLtCz: goto P8gGU; kP_3U: $this->json_return('!', 0); goto aTDV2; kCSha: $condition['id'] = intval($_GPC['id']); goto uaPrz; jJinr: TGmIx: goto IppT2; IppT2: } public function doWebAppUseHelpDel() { goto bPmNr; oz7X2: m6uZx: goto nghi0; VfT6z: $this->json_return('', 0); goto MS0bF; y9y4p: $id = intval($_GPC['id']); goto w4lXI; sxArM: gSKjN: goto uBoFU; OOg_Z: if ($result != false) { goto I1fwN; } goto VfT6z; PzwPk: gCrCG: goto Y1yT0; w4lXI: if (!($id < 1)) { goto gSKjN; } goto tiZ3v; Y1yT0: $list = json_encode($help_list); goto lvCZ9; tCHlK: I1fwN: goto ExbzW; MS0bF: goto m6uZx; goto tCHlK; bPmNr: global $_GPC, $_W; goto y9y4p; uBoFU: $help_list = json_decode(getAppConfSd('app_use_help'), true); goto C_1oO; ExbzW: $this->json_return(''); goto oz7X2; tiZ3v: $this->json_return('', 0); goto sxArM; lvCZ9: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $list), array("uniacid" => $_W['uniacid'], "code" => "app_use_help")); goto OOg_Z; C_1oO: foreach ($help_list as $k => $v) { goto Ntyga; nCpsR: unset($help_list[$k]); goto Az3cU; Ntyga: if (!($v['id'] === $id)) { goto xjJER; } goto nCpsR; Rom2K: xjJER: goto YNZWq; YNZWq: T1SQ1: goto BvPoU; Az3cU: goto gCrCG; goto Rom2K; BvPoU: } goto PzwPk; nghi0: } public function doWebItemDynamic() { goto rFTXE; pM19z: $pageindex = $_GPC['page']; goto zvy6f; zvy6f: goto HpuOs; goto KF8zz; Pme0B: HpuOs: goto kwULL; o9iuH: $pager = pagination($total, $pageindex, $pagesize); goto Ugmmk; sKxOS: $card_id = intval($_GPC['card_id']); goto KCnQC; KF8zz: bDFHQ: goto Zd7P4; ppWA6: include $this->template('item_dynamic/item_dynamic_list'); goto h2JPp; Zd7P4: $pageindex = 1; goto Pme0B; Jow1D: $allList = pdo_getall($this->tablePrefix . 'dynamic', array("uniacid" => $_W['uniacid'], "card_id" => $card_id), array("id"), ''); goto XNaiV; Ugmmk: $list = pdo_getall($this->tablePrefix . 'dynamic', array("uniacid" => $_W['uniacid'], "card_id" => $card_id), array("id", "content", "pics", "likes", "comments", "create_time"), '', array(), array($pageindex, $pagesize)); goto frOUo; KCnQC: $member = pdo_fetch('SELECT `id`,`uid`,`name`,`picture`,`dynamic` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `id`=:id LIMIT 1', array(":id" => $card_id)); goto TJj3l; kwULL: $pagesize = $this->pageCount; goto Jow1D; XNaiV: $total = count($allList); goto o9iuH; TJj3l: if (!isset($_GPC['page'])) { goto bDFHQ; } goto pM19z; PBtGb: S0Oov: goto ppWA6; rFTXE: global $_GPC, $_W; goto sKxOS; frOUo: foreach ($list as $k => $v) { $list[$k]['pics'] = unserialize($v['pics']); Wsxlf: } goto PBtGb; h2JPp: } public function doWebItemDynamicEdit() { goto dzZYA; a0y1_: $data['pics'] = unserialize($data['pics']); goto aqy5u; kqruJ: $id = intval($_GPC['id']); goto cgIUz; uyBiu: if (!($id > 0)) { goto nr_Ws; } goto o_5pK; WyX1r: nr_Ws: goto Lkzjk; o_5pK: $data = pdo_fetch('SELECT `id`,`content`,`pics`,`address`,`longitude`,`latitude` FROM ' . tablename($this->tablePrefix . 'dynamic') . ' WHERE `id`=:id and `card_id`=:card_id', array(":id" => $id, ":card_id" => $card_id)); goto pAv0G; qUNwg: $member = pdo_fetch('SELECT `uid`,`name`,`picture` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `id`=:id', array(":id" => $card_id)); goto uyBiu; pAv0G: if (!$data) { goto zLVVA; } goto a0y1_; Lkzjk: include $this->template('item_dynamic/item_dynamic_info'); goto FVEqG; cgIUz: $card_id = intval($_GPC['card_id']); goto qUNwg; aqy5u: zLVVA: goto WyX1r; dzZYA: global $_GPC, $_W; goto kqruJ; FVEqG: } public function doWebItemDynamicSave() { goto agWhJ; SfWSz: $member = pdo_fetch('SELECT `uid` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `id`=:id', array(":id" => $card_id)); goto iSWTA; emzlC: $condition['pics'] = serialize($_GPC['pics']); goto TiPFT; yfAW1: if (!($card_id < 1)) { goto JmObP; } goto Z7umZ; GsSRW: $this->json_return('', 0); goto bJQhS; XFEio: dWq_Y: goto GGBCv; zKz6v: $addr = trim($condition['address']); goto MXOAN; TiPFT: if (!(trim($_GPC['content']) == '')) { goto p1cIQ; } goto uhgwW; GrejG: CmRP6: goto emzlC; Rm13_: if (!($re != false)) { goto rVmpS; } goto hIo8i; h3Qhn: $condition['uid'] = $member['uid']; goto kEBe4; JvKXt: zMpaH: goto osCJg; GGBCv: if ($id > 0) { goto fn0Ow; } goto h3Qhn; osCJg: pdo_update($this->tablePrefix . 'item', array("dynamic" => 1), array("id" => $card_id)); goto uKFJb; Ye7IZ: goto x3wuJ; goto ifbem; peGWk: if (!($tencent_map_key != '')) { goto HOfL3; } goto q7HgF; iSWTA: if (!(count($_GPC['pics']) < 1)) { goto ek7lF; } goto ZwwkV; agWhJ: global $_GPC, $_W; goto RC_Cf; ZwwkV: $this->json_return('', 0); goto yl7Wo; MXOAN: $tencent_map_key = getAppConfSd('tencent_map_key'); goto peGWk; eeyYm: $this->json_return('', 0); goto GrejG; uhgwW: $this->json_return('', 0); goto bb3B6; kEBe4: $condition['card_id'] = $card_id; goto sc5uF; hIo8i: $condition['latitude'] = $re['lat']; goto ZpVBs; sc5uF: $condition['uniacid'] = $_W['uniacid']; goto eiYf1; l15Uv: x3wuJ: goto P6XAc; P6XAc: if ($result != false) { goto zMpaH; } goto GsSRW; q7HgF: $re = getLatLng($addr, $tencent_map_key); goto Rm13_; JdjwA: $condition['address'] = trim($_GPC['address']); goto p04Ny; KjWVs: $condition['update_time'] = time(); goto Hv3k0; bJQhS: goto PqRb2; goto JvKXt; ktkgs: $condition['longitude'] = trim($_GPC['longitude']); goto sQO38; iLY5_: JmObP: goto SfWSz; p04Ny: $condition['latitude'] = trim($_GPC['latitude']); goto ktkgs; opNX6: HOfL3: goto XFEio; b2skj: rVmpS: goto opNX6; RC_Cf: $id = intval($_GPC['id']); goto C13V5; Hv3k0: $result = pdo_update($this->tablePrefix . 'dynamic', $condition, array("id" => $id, "card_id" => $card_id)); goto l15Uv; C13V5: $card_id = intval($_GPC['card_id']); goto yfAW1; wP8g5: $result = pdo_insert($this->tablePrefix . 'dynamic', $condition); goto Ye7IZ; bb3B6: p1cIQ: goto vfOqk; ifbem: fn0Ow: goto KjWVs; ZpVBs: $condition['longitude'] = $re['lng']; goto b2skj; dqI7u: PqRb2: goto sATk5; yl7Wo: ek7lF: goto w980C; vfOqk: $condition['content'] = $_GPC['content']; goto JdjwA; uKFJb: $this->json_return(''); goto dqI7u; Z7umZ: $this->json_return('', 0); goto iLY5_; w980C: if (!(count($_GPC['pics']) > 9)) { goto CmRP6; } goto eeyYm; sQO38: if (!($condition['latitude'] == '' && $condition['longitude'] == '')) { goto dWq_Y; } goto zKz6v; eiYf1: $condition['create_time'] = time(); goto wP8g5; sATk5: } public function doWebItemDynamicDel() { goto jeyfM; kz4bD: FoCl6: goto DtiyX; nF6YZ: $this->json_return('', 0); goto hBzQE; jDTKG: $this->json_return('', 0); goto y9fwm; DtiyX: $this->json_return(''); goto o2lpD; o2lpD: tAwAM: goto GAZbB; y9fwm: BHo92: goto bxs8C; hBzQE: goto tAwAM; goto kz4bD; XbG3S: if (!($id < 1)) { goto BHo92; } goto jDTKG; WTC7E: if ($result != false) { goto FoCl6; } goto nF6YZ; bxs8C: $result = pdo_delete($this->tablePrefix . 'dynamic', array("id" => $id)); goto WTC7E; FW4Zs: $id = intval($_GPC['id']); goto XbG3S; jeyfM: global $_GPC, $_W; goto FW4Zs; GAZbB: } public function doWebItemDynamicStatus() { goto a1IyR; QsICu: $result = pdo_update($this->tablePrefix . 'item', array("dynamic" => $val), array("id" => $id)); goto UaF52; aQlAq: $this->json_return('', 1, array("val" => $val)); goto NXR1m; NXR1m: MgGn4: goto lCcOB; CWeDA: $data = pdo_fetch('SELECT `id`,`dynamic` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `id`=:id', array(":id" => $id)); goto aiiAW; TW5Zy: $this->json_return('', 0); goto EZPI5; aiiAW: $val = $data['dynamic'] == 1 ? 0 : 1; goto QsICu; UaF52: if ($result != false) { goto OU8ad; } goto TW5Zy; a1IyR: global $_GPC, $_W; goto oZqQl; oZqQl: $id = intval($_GPC['id']); goto CWeDA; EZPI5: goto MgGn4; goto NVjD9; NVjD9: OU8ad: goto aQlAq; lCcOB: } public function doWebItemWebsite() { goto DXBzm; Wq8MA: $this->doWebItemWebsiteEdit($card_id, $member); goto JwgAC; TN_Yp: bGDbq: goto XMpiY; jeHME: $member = pdo_fetch('SELECT `id`,`name`,`picture`,`website` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `id`=:id LIMIT 1', array(":id" => $card_id)); goto IJgma; kL4Fc: $card_id = intval($_GPC['card_id']); goto jeHME; XMpiY: $this->doWebItemWebsiteContent($card_id, $member); goto WuzHs; IJgma: if (!($card_id > 0)) { goto NXp5G; } goto puZ8c; puZ8c: $data = pdo_fetch('SELECT `id`, `website_name` FROM ' . tablename($this->tablePrefix . 'website') . ' WHERE `card_id`=:card_id LIMIT 1', array(":card_id" => $card_id)); goto QDYgK; qo8jz: if ($data != false) { goto bGDbq; } goto Wq8MA; JwgAC: goto RRfuD; goto TN_Yp; QDYgK: NXp5G: goto qo8jz; DXBzm: global $_GPC, $_W; goto kL4Fc; WuzHs: RRfuD: goto Ck3de; Ck3de: } public function doWebItemWebsiteContent($card_id = 0, $member = array()) { goto rXGOF; Y135v: if (!is_array($data['data'])) { goto Ji80e; } goto TQgEG; rXGOF: global $_GPC, $_W; goto k10fH; pBp4P: WmNXm: goto Qs0mg; KL9wh: Ji80e: goto mxEfe; ISm2N: $data['data'] = json_decode($data['data'], true); goto Y135v; Mbuiw: if (!($data['data'] != '')) { goto FyqVF; } goto ISm2N; k10fH: if (!($card_id > 0)) { goto WmNXm; } goto tc5Au; Qs0mg: include $this->template('item_website/item_website_content'); goto ZstlA; TQgEG: foreach ($data['data'] as $k => $v) { goto eb7o3; ivqjt: NYZQa: goto waqKc; cf2Xa: if (!($v['type'] == 'pic')) { goto AUTYi; } goto a0bd2; YgS7p: Hcx4G: goto pV5tf; V7T2Z: ZYybW: goto pS6Cv; GbJuv: $data['data'][$k]['val'] = $v['val'][0]; goto ivqjt; a0bd2: if (!is_array($v['val'])) { goto NYZQa; } goto GbJuv; S0V9v: Yoa8T: goto YgS7p; pS6Cv: $data['data'][$k]['picture'] = $member['picture']; goto V4BMy; waqKc: AUTYi: goto NOW4S; NOW4S: goto Yoa8T; goto V7T2Z; eb7o3: if ($v['type'] == 'card') { goto ZYybW; } goto cf2Xa; V4BMy: $data['data'][$k]['name'] = $member['name']; goto S0V9v; pV5tf: } goto KJyfE; mxEfe: FyqVF: goto pBp4P; KJyfE: erWaA: goto KL9wh; tc5Au: $data = pdo_fetch('SELECT `id`, `website_name`, `website_logo`, `company_name`, `banner`, `contact`, `owner`, `banner`, `data` FROM ' . tablename($this->tablePrefix . 'website') . ' WHERE `card_id`=:card_id LIMIT 1', array(":card_id" => $card_id)); goto Mbuiw; ZstlA: } public function doWebItemWebsiteEdit($card_id = 0, $member = array()) { goto IybuR; GRh3R: $card_id = intval($_GPC['card_id']) > 0 ? intval($_GPC['card_id']) : $card_id; goto m6jHT; IybuR: global $_GPC, $_W; goto GRh3R; s3DKL: oY0fo: goto zK5uD; zK5uD: include $this->template('item_website/item_website_info'); goto O0pTF; m6jHT: if (!($card_id > 0)) { goto oY0fo; } goto FCF_5; FCF_5: $data = pdo_fetch('SELECT `id`, `website_name`, `website_logo`, `company_name`, `banner`, `contact`, `owner`, `banner`, `data` FROM ' . tablename($this->tablePrefix . 'website') . ' WHERE `card_id`=:card_id LIMIT 1', array(":card_id" => $card_id)); goto s3DKL; O0pTF: } public function doWebItemWebsiteSave() { goto cSuJF; KLzg1: $condition['uniacid'] = $_W['uniacid']; goto hlner; FV2Hf: if (!(trim($_GPC['owner']) == '')) { goto Q4f5p; } goto PWlW8; zd8aG: $url = $this->createWebUrl('itemWebsite') . '&card_id=' . $card_id; goto aeHqr; cSuJF: global $_GPC, $_W; goto izxSA; EKuM4: $condition['banner'] = $_GPC['banner']; goto ns0Pr; Z0qy7: if (!($card_id < 1)) { goto iSrud; } goto FnS3b; Hdsed: $this->json_return('logo!', 0); goto XnwXE; izxSA: $id = intval($_GPC['id']); goto KF3gH; O0bhK: $condition['company_name'] = trim($_GPC['company_name']); goto RwSx2; N726y: Cw1PX: goto O0bhK; hDYti: goto vwgQg; goto BRLdH; XnwXE: hIYKW: goto Tj0QQ; FnS3b: $this->json_return('', 0); goto xkaBQ; HE4iz: lSKv5: goto lVmLX; mW03H: HgJD2: goto oBW1G; JcW8L: goto lSKv5; goto ldAyG; BRLdH: cG4wP: goto zwRbQ; rcVw1: Pb0EY: goto bqPLW; C93zh: if (!(trim($_GPC['website_name']) == '')) { goto Pb0EY; } goto Evybn; Q8eI9: $condition['add_time'] = time(); goto KLzg1; oBW1G: $condition['contact'] = trim($_GPC['contact']); goto FV2Hf; JoW3v: vwgQg: goto pETFk; FH10U: hNPZY: goto EKuM4; JbRgu: $this->json_return('', 0); goto JcW8L; hlner: $condition['uid'] = $card['uid']; goto gQhyb; pR1rR: if (!(trim($_GPC['company_name']) == '')) { goto Cw1PX; } goto ilLId; pETFk: if ($result > 0) { goto HRJ41; } goto JbRgu; Tj0QQ: $condition['website_logo'] = trim($_GPC['website_logo']); goto pR1rR; Evybn: $this->json_return('!', 0); goto rcVw1; bcAoQ: if (!(trim($_GPC['website_logo']) == '')) { goto hIYKW; } goto Hdsed; pOw4_: $card = pdo_fetch('SELECT `id`,`uid` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `id`=:card_id', array(":card_id" => $card_id)); goto C93zh; xkaBQ: iSrud: goto pOw4_; aeHqr: $this->json_return('', 1, array("url" => $url)); goto HE4iz; RwSx2: if (!(trim($_GPC['banner']) == '')) { goto hNPZY; } goto iKthv; JDkrV: $condition['owner'] = trim($_GPC['owner']); goto Pxgbq; gQhyb: $condition['card_id'] = $card['id']; goto mB1zw; bqPLW: $condition['website_name'] = trim($_GPC['website_name']); goto bcAoQ; PWlW8: $this->json_return('!', 0); goto lC0uG; mB1zw: $result = pdo_insert($this->tablePrefix . 'website', $condition); goto hDYti; Pxgbq: if ($id > 0) { goto cG4wP; } goto Q8eI9; IJere: pdo_update($this->tablePrefix . 'item', array("website" => 1), array("id" => $card_id)); goto zd8aG; zwRbQ: $condition['update_time'] = time(); goto bmcFK; KF3gH: $card_id = intval($_GPC['card_id']); goto Z0qy7; iKthv: $this->json_return('banner!', 0); goto FH10U; ns0Pr: if (!(trim($_GPC['contact']) == '')) { goto HgJD2; } goto J4zq2; ilLId: $this->json_return('!', 0); goto N726y; J4zq2: $this->json_return('!', 0); goto mW03H; lC0uG: Q4f5p: goto JDkrV; bmcFK: $result = pdo_update($this->tablePrefix . 'website', $condition, array("id" => $id)); goto JoW3v; ldAyG: HRJ41: goto IJere; lVmLX: } public function doWebItemWebsiteStatus() { goto JGo2A; e616n: $result = pdo_update($this->tablePrefix . 'item', array("website" => $val), array("id" => $id)); goto iTeKE; B1GT_: $id = intval($_GPC['id']); goto WIR3e; xTyPX: $this->json_return('', 0); goto fXtk6; RNbwz: xTSUB: goto VySXa; SiMBS: $this->json_return('', 1, array("val" => $val)); goto RNbwz; JGo2A: global $_GPC, $_W; goto B1GT_; fXtk6: goto xTSUB; goto lTBKT; qTvtX: $val = $data['website'] == 1 ? 0 : 1; goto e616n; iTeKE: if ($result != false) { goto fg5Kq; } goto xTyPX; lTBKT: fg5Kq: goto SiMBS; WIR3e: $data = pdo_fetch('SELECT `id`,`website` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `id`=:id', array(":id" => $id)); goto qTvtX; VySXa: } public function doWebItemWebsiteContentSave() { goto OG07G; B7LGR: $card_id = intval($_GPC['card_id']); goto MKo9Z; pZ_vO: if ($result != false) { goto N0Cao; } goto h0y9r; OSOiq: foreach ($content as $k => $v) { goto D6DVN; eUq2p: if (!($v['val']['latitude'] == '' || $v['val']['longitude'] == '' && $v['val']['title'] != '')) { goto NzgBj; } goto a8i10; bX1zp: Iz_H_: goto YFA5L; ygTW_: VrCgR: goto I10Op; q2k7u: goto lDz_D; goto udDT9; udDT9: Od39x: goto eUq2p; D6DVN: if ($v['type'] == 'map') { goto Od39x; } goto sS7hl; uzM7O: $content[$k]['val']['latitude'] = $re['lat']; goto IO08P; W1992: aWG34: goto sh7F4; a8i10: $tencent_map_key = getAppConfSd('tencent_map_key'); goto E9roT; NVvKG: $content[$k]['val'][] = $v['val']; goto W1992; BRfAY: lDz_D: goto Gx42z; OnY89: iwkUV: goto jmUMq; npqrD: WPtL0: goto bX1zp; pY121: PbhNL: goto Am8S1; sh7F4: goto z3iGX; goto OnY89; xAQbz: $content[$k]['val'] = array(); goto NVvKG; GII1u: $this->json_return('9', 0); goto pY121; tD7lA: goto KlQUL; goto s8ua7; fhpmo: if (!($re != false)) { goto WPtL0; } goto uzM7O; jmUMq: if (!(count($v['val']) > 8)) { goto VrCgR; } goto NVyS2; Gx42z: Bd6j5: goto NSkYJ; QyaUq: if (!($v['type'] == 'pic')) { goto aWG34; } goto xAQbz; ME_pj: $re = getLatLng($v['val']['title'], $tencent_map_key); goto fhpmo; IO08P: $content[$k]['val']['longitude'] = $re['lng']; goto npqrD; sS7hl: if ($v['type'] == 'more_pic') { goto VwQVb; } goto HZeS3; HZeS3: if ($v['type'] == 'grid_pic') { goto iwkUV; } goto QyaUq; YFA5L: NzgBj: goto BRfAY; IbjfG: if (!(count($v['val']) > 9)) { goto PbhNL; } goto GII1u; E9roT: if (!($tencent_map_key != '')) { goto Iz_H_; } goto ME_pj; s8ua7: VwQVb: goto IbjfG; Am8S1: KlQUL: goto q2k7u; NVyS2: $this->json_return('8', 0); goto ygTW_; I10Op: z3iGX: goto tD7lA; NSkYJ: } goto ojWW8; WWkoh: $this->json_return(''); goto if54i; EmMI1: goto IJ5wn; goto JuSnK; h0y9r: $this->json_return('', 0); goto EmMI1; A2Yli: goto TSqsf; goto BGXbT; JSof0: vVkX2: goto oyTwu; JuSnK: N0Cao: goto WWkoh; bfR_S: if ($content != NULL && is_array($content)) { goto CkISu; } goto AMv5p; ojWW8: Yq8QR: goto nuMZf; WVGd_: $id = intval($_GPC['id']); goto B7LGR; oyTwu: $content = $_GPC['content']; goto bfR_S; MKo9Z: if (!($id < 1 || $card_id < 1)) { goto vVkX2; } goto ikuxn; OG07G: global $_GPC, $_W; goto WVGd_; BGXbT: CkISu: goto OSOiq; m_x8h: $result = pdo_update($this->tablePrefix . 'website', array("data" => $content, "update_time" => time()), array("id" => $id)); goto pZ_vO; RgQyD: $content = json_encode($content); goto m_x8h; AMv5p: $content = array(); goto A2Yli; nuMZf: TSqsf: goto RgQyD; ikuxn: $this->json_return('', 0); goto JSof0; if54i: IJ5wn: goto zv2gd; zv2gd: } public function doWebItemStore() { goto d1wRu; zjz2r: $member = pdo_fetch('SELECT `id`, `uid`,`name`,`picture`,`store` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `id`=:id LIMIT 1', array(":id" => $card_id)); goto aPWJq; cMd3O: $this->doWebItemStoreContent($card_id, $member); goto X2zb3; drPQQ: $this->doWebItemStoreEdit($card_id, $member); goto QsS92; X2zb3: js122: goto vAIJK; d1wRu: global $_GPC, $_W; goto kut6X; aPWJq: $store = pdo_fetch('SELECT `id`,`uid`,`card_id`,`store_name` FROM ' . tablename($this->tablePrefix . 'store') . ' WHERE `card_id`=:card_id', array(":card_id" => $card_id)); goto ZcC8K; kut6X: $card_id = intval($_GPC['card_id']); goto zjz2r; ZcC8K: if ($store != false) { goto E9SUD; } goto drPQQ; QsS92: goto js122; goto Zc3qn; Zc3qn: E9SUD: goto cMd3O; vAIJK: } public function doWebItemStoreContent($card_id = 0, $member = array()) { goto XSl3H; zi9_4: zfwFv: goto qOtXR; eryLR: $total = count($allList); goto oq0Cl; DiJ8u: $pagesize = $this->pageCount; goto W_xvq; W_xvq: $pager = pagination($total, $pageindex, $pagesize); goto jC52_; jC52_: $list = pdo_getall($this->tablePrefix . 'goods', $where, array("id", "goods_name", "goods_pics", "goods_introduce", "goods_price", "views", "order_sort", "status", "add_time"), '', array("add_time DESC"), array($pageindex, $pagesize)); goto xwFNn; dQ4Sg: $data['store_introduce'] = mb_substr($data['store_introduce'], 0, 30, 'utf-8') . '...'; goto HSMT2; BgH00: goto t8JEs; goto xWpHr; QV57U: H3oG7: goto zi9_4; V6v3N: $where['card_id'] = $card_id; goto dqT2u; sYaWF: $pageindex = $_GPC['page']; goto BgH00; XSl3H: global $_GPC, $_W; goto DFepD; elU3u: $data = pdo_fetch('SELECT `id`,`uid`,`card_id`,`store_name`,`store_logo`,`store_introduce`,`store_business`,`store_contact`,`store_owner`,`status` FROM ' . tablename($this->tablePrefix . 'store') . ' WHERE `card_id`=:card_id LIMIT 1', array(":card_id" => $card_id)); goto ou9RU; xYo4Q: t8JEs: goto DiJ8u; ou9RU: $data['store_business'] = mb_substr($data['store_business'], 0, 30, 'utf-8') . '...'; goto dQ4Sg; qOtXR: include $this->template('item_store/item_store_content'); goto Vl4RZ; DFepD: if (!($card_id > 0)) { goto zfwFv; } goto elU3u; oq0Cl: if (!isset($_GPC['page'])) { goto yg4Bx; } goto sYaWF; mA51H: $pageindex = 1; goto xYo4Q; dqT2u: $allList = pdo_getall($this->tablePrefix . 'goods', $where, array("id"), ''); goto eryLR; xwFNn: foreach ($list as $k => $v) { goto Btfpf; swccU: $list[$k]['goods_introduce'] = mb_substr($v['goods_introduce'], 0, 15, 'utf-8') . '...'; goto iY4id; Btfpf: $list[$k]['goods_pics'] = unserialize($v['goods_pics']); goto swccU; iY4id: NkND9: goto fk5CL; fk5CL: } goto QV57U; xWpHr: yg4Bx: goto mA51H; HSMT2: $where['uniacid'] = $_W['uniacid']; goto V6v3N; Vl4RZ: } public function doWebItemStoreEdit($card_id = 0, $member = array()) { goto aRXiz; E0hDb: $card_id = intval($_GPC['card_id']) > 0 ? intval($_GPC['card_id']) : $card_id; goto WweMJ; aRXiz: global $_GPC, $_W; goto E0hDb; Z3qz_: $data = pdo_fetch('SELECT `id`,`uid`,`card_id`,`store_name`,`store_logo`,`store_introduce`,`store_business`,`address`,`latitude`,`longitude`,`store_contact`,`store_banner`,`store_owner`,`add_time`,`status` FROM ' . tablename($this->tablePrefix . 'store') . ' WHERE `card_id`=:card_id LIMIT 1', array(":card_id" => $card_id)); goto rbcu4; WweMJ: if (!($card_id > 0)) { goto yRp4o; } goto Z3qz_; zo1jV: include $this->template('item_store/item_store_info'); goto lftC5; rbcu4: $data['banner'] = unserialize($data['banner']); goto iwxg8; iwxg8: yRp4o: goto zo1jV; lftC5: } public function doWebItemStoreSave() { goto pWtjJ; orduw: if (!(trim($_GPC['store_business']) == '')) { goto vJeCM; } goto y28eO; xC5oe: if (!($re != false)) { goto stySh; } goto y2y63; xPEZh: $condition['add_time'] = intval($add_time); goto YTd_E; v_mo5: $result = pdo_insert($this->tablePrefix . 'store', $condition); goto l1GhL; id0Ck: $this->json_return('', 1, array("url" => $url)); goto bsXDu; noRkL: $condition['longitude'] = $re['lng']; goto gzViO; A35lz: goto vNgSI; goto MKoY5; wgufI: $condition['store_business'] = trim($_GPC['store_business']); goto Ev8XK; o2A6U: $condition['store_banner'] = ''; goto A35lz; Ev8XK: if (!(trim($_GPC['store_owner']) == '')) { goto ZEE1O; } goto sQsZF; On4Jl: $condition['store_banner'] = serialize($_GPC['store_banner']); goto b4a3g; Z9gYS: YalqD: goto bcswe; WfR_S: if (!(trim($_GPC['store_introduce']) == '')) { goto JjeDg; } goto gBcj_; WMCBC: MeL0g: goto E6aNg; bcswe: if (count($_GPC['store_banner']) > 0) { goto x2PYq; } goto o2A6U; cAFTZ: $this->json_return('', 0); goto WMCBC; MLNc7: $addr = trim($condition['address']); goto S_s8y; Kdkyw: $this->json_return('', 0); goto UKCYU; NB1j1: eMLe_: goto PoMUI; l1GhL: goto AG2Gi; goto m0Ee0; BWylK: $this->json_return('', 0); goto KjMxC; uyTEu: $re = getLatLng($addr, $tencent_map_key); goto xC5oe; y2y63: $condition['latitude'] = $re['lat']; goto noRkL; gCXTQ: $id = intval($_GPC['id']); goto EsQSn; hvECr: if (!($condition['latitude'] == '' && $condition['longitude'] == '')) { goto Th6p1; } goto MLNc7; pWtjJ: global $_GPC, $_W; goto gCXTQ; ADIk3: if (!($card_id < 1)) { goto MeL0g; } goto cAFTZ; Wtmn9: if (!(intval($add_time) < 1)) { goto ye36W; } goto BWylK; QF522: $condition['card_id'] = $card_id; goto Gk8Sn; Ndqy7: $this->json_return('', 0); goto hXUtA; O6EO3: $this->json_return('logo', 0); goto DRPhw; IZDj5: $result = pdo_update($this->tablePrefix . 'store', $condition, array("id" => $id)); goto U1crS; bsXDu: eQsJp: goto zEkrv; gQTRb: if (!(trim($_GPC['store_owner']) == '')) { goto HUc7T; } goto Kdkyw; HnPJ0: $this->json_return('banner', 0); goto Z9gYS; YTd_E: $condition['address'] = trim($_GPC['address']); goto O5vfe; C6WQQ: if (!(trim($_GPC['store_logo']) == '')) { goto zQxdw; } goto O6EO3; UKCYU: HUc7T: goto GeN7C; VfrvB: $condition['store_owner'] = trim($_GPC['store_owner']); goto gQTRb; GMZLh: Th6p1: goto tQXMx; U1crS: AG2Gi: goto WZIAE; sQsZF: $this->json_return('', 0); goto wpPCX; GeN7C: $condition['store_contact'] = trim($_GPC['store_contact']); goto wbMBv; wbMBv: $add_time = strtotime($_GPC['add_time']); goto Wtmn9; JOCmx: $condition['longitude'] = trim($_GPC['longitude']); goto KIgc6; NTnVC: $condition['update_time'] = time(); goto IZDj5; y28eO: $this->json_return('', 0); goto QD5qL; FCsvt: $condition['create_time'] = time(); goto QF522; h28H0: if (!($tencent_map_key != '')) { goto nLViT; } goto uyTEu; Ta7u2: $url = $this->createWebUrl('itemStore') . '&card_id=' . $card_id; goto id0Ck; hXUtA: goto eQsJp; goto b2m45; QD5qL: vJeCM: goto wgufI; O5vfe: $condition['latitude'] = trim($_GPC['latitude']); goto JOCmx; S_s8y: $tencent_map_key = getAppConfSd('tencent_map_key'); goto h28H0; E6aNg: if (!(trim($_GPC['store_name']) == '')) { goto eMLe_; } goto wpTHJ; c5h_W: $card = pdo_fetch('SELECT `id`,`uid` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `id`=:card_id LIMIT 1', array(":card_id" => $card_id)); goto I095x; wQvNU: if (!(count($_GPC['store_banner']) > 9)) { goto YalqD; } goto HnPJ0; wpPCX: ZEE1O: goto VfrvB; M70Vo: pdo_update($this->tablePrefix . 'item', array("store" => 1), array("id" => $card_id)); goto Ta7u2; I095x: $condition['uid'] = $card['uid']; goto FCsvt; b2m45: S0OFF: goto M70Vo; Gk8Sn: $condition['uniacid'] = $_W['uniacid']; goto v_mo5; m0Ee0: NrlSR: goto NTnVC; gBcj_: $this->json_return('', 0); goto gAOMh; wpTHJ: $this->json_return('', 0); goto NB1j1; b4a3g: vNgSI: goto WfR_S; KIgc6: $condition['status'] = intval($_GPC['status']); goto hvECr; l83ls: $condition['store_introduce'] = trim($_GPC['store_introduce']); goto orduw; gAOMh: JjeDg: goto l83ls; WZIAE: if ($result > 0) { goto S0OFF; } goto Ndqy7; EsQSn: $card_id = intval($_GPC['card_id']); goto ADIk3; sZo_1: $condition['store_logo'] = trim($_GPC['store_logo']); goto wQvNU; gzViO: stySh: goto YPmMV; tQXMx: if ($id > 0) { goto NrlSR; } goto c5h_W; PoMUI: $condition['store_name'] = trim($_GPC['store_name']); goto C6WQQ; YPmMV: nLViT: goto GMZLh; KjMxC: ye36W: goto xPEZh; DRPhw: zQxdw: goto sZo_1; MKoY5: x2PYq: goto On4Jl; zEkrv: } public function doWebItemStoreStatus() { goto xJOcR; CgoGx: $id = intval($_GPC['id']); goto liRxZ; liRxZ: $data = pdo_fetch('SELECT `id`,`store` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `id`=:id', array(":id" => $id)); goto Rjisq; Juy2k: $this->json_return('', 1, array("val" => $val)); goto h0z1q; vFwwt: $result = pdo_update($this->tablePrefix . 'item', array("store" => $val), array("id" => $id)); goto kdVsj; sqlg_: D0y01: goto Juy2k; lHbPX: $this->json_return('', 0); goto Or0qI; Rjisq: $val = $data['store'] == 1 ? 0 : 1; goto vFwwt; h0z1q: gpmNE: goto XfE_M; kdVsj: if ($result != false) { goto D0y01; } goto lHbPX; xJOcR: global $_GPC, $_W; goto CgoGx; Or0qI: goto gpmNE; goto sqlg_; XfE_M: } public function doWebItemStoreContentEdit() { goto vcXgy; roWRW: $member = pdo_fetch('SELECT `i`.`id`,`i`.`name`, `i`.`picture` FROM ' . tablename($this->tablePrefix . 'item') . ' `i` LEFT JOIN ' . tablename($this->tablePrefix . 'store') . ' `s` ON `i`.`id`=`s`.`card_id` WHERE `s`.`id`=:store_id', array(":store_id" => $store_id)); goto dKori; rj4Q9: if (!($data['goods_content'] != '')) { goto P1nJy; } goto C8kai; k9QJB: $data['goods_pics'] = unserialize($data['goods_pics']); goto JfTLs; JZf_P: yFTcH: goto zqiiH; JfTLs: $data['goods_content'] = json_decode($data['goods_content'], true); goto rj4Q9; iEYuL: PsmtQ: goto A1H5l; vcXgy: global $_GPC, $_W; goto umNbD; C8kai: foreach ($data['goods_content'] as $k => $v) { goto Siypk; GdXH1: if (!is_array($v['val'])) { goto fhEqT; } goto gRqll; Ycr1F: FL03W: goto Mf3MZ; Siypk: if ($v['type'] == 'card') { goto wb1UT; } goto yWcWM; Mlmpz: $data['goods_content'][$k]['name'] = $member['name']; goto kBPF2; kBPF2: rwSkX: goto Ycr1F; yWcWM: if (!($v['type'] == 'pic')) { goto Wjiep; } goto GdXH1; uK4GN: wb1UT: goto p1zPZ; syAwr: Wjiep: goto W4sL0; p1zPZ: $data['goods_content'][$k]['picture'] = $member['picture']; goto Mlmpz; PtGMz: fhEqT: goto syAwr; gRqll: $data['goods_content'][$k]['val'] = $v['val'][0]; goto PtGMz; W4sL0: goto rwSkX; goto uK4GN; Mf3MZ: } goto iEYuL; dKori: aDgsP: goto Erp11; DXdOj: $data = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'goods') . ' WHERE `id`=:id and `uniacid`=:uniacid', array(":id" => $id, ":uniacid" => $_W['uniacid'])); goto k9QJB; zqiiH: include $this->template('item_store/item_store_content_info'); goto Zk_15; Erp11: if (!($id > 0)) { goto yFTcH; } goto DXdOj; OVaPN: if (!($store_id > 0)) { goto aDgsP; } goto roWRW; A1H5l: P1nJy: goto JZf_P; D_Uen: $store_id = intval($_GPC['store_id']); goto OVaPN; umNbD: $id = intval($_GPC['id']); goto D_Uen; Zk_15: } public function doWebItemStoreContentSave() { goto HtBdj; aYjcN: $condition['status'] = 1; goto sn9yq; C1LKN: if ($result != false) { goto vaWHz; } goto cLlsh; jzLGW: mr4YS: goto y5IAl; Je135: if (!(count($data['goods_pics']) < 1)) { goto QRVEv; } goto f4nKn; GjTdW: $condition['uniacid'] = $_W['uniacid']; goto aYjcN; OtOp7: $result = pdo_insert($this->tablePrefix . 'goods', $condition); goto qHJ8_; wD7eS: $condition['goods_price'] = trim($data['goods_price']) != '' ? trim($data['goods_price']) : $this->json_return('', 0); goto T_fQy; pxMo6: $id = intval($_GPC['data']['id']); goto ktE7e; aihEq: $condition['goods_introduce'] = trim($data['goods_introduce']) != '' ? trim($data['goods_introduce']) : $this->json_return('', 0); goto wD7eS; mdY6K: erJrq: goto ddJd2; f4nKn: $this->json_return('', 0); goto WjXky; y5IAl: $condition['goods_pics'] = serialize($data['goods_pics']); goto aihEq; cLlsh: $this->json_return('', 0); goto tZiX1; JEFBH: $condition['add_time'] = time(); goto GjTdW; XqYWx: $this->json_return('', 0); goto jzLGW; WjXky: QRVEv: goto k4KGc; PDf7Q: NGmRz: goto feHoE; Clzu7: $this->json_return('', 1, array("url" => $url)); goto PDf7Q; tZiX1: goto NGmRz; goto WuPTM; nk9gY: $store = pdo_fetch('SELECT  `id`,`uid`,`card_id` FROM ' . tablename($this->tablePrefix . 'store') . ' WHERE `id`=:store_id', array(":store_id" => $store_id)); goto FY1o1; gbWAw: $condition['store_id'] = $store_id; goto OtOp7; ZA7Oc: $condition['goods_name'] = trim($data['goods_name']) != '' ? trim($data['goods_name']) : $this->json_return('', 0); goto Je135; Qen3C: foreach ($data['detail'] as $k => $v) { goto ImpQS; mj2rL: s2P5X: goto KDMc6; Z05zn: wUNRX: goto bWZ63; cHQQb: UYvTP: goto FZhkH; muRO5: goto RIKH5; goto ItIbY; drcVP: if ($v['type'] == 'grid_pic') { goto s2P5X; } goto itVtc; ttSh2: goto MzMpL; goto P5KZC; ywQ0r: MPUS2: goto jZSix; D1LRs: $data['detail'][$k]['val'] = array(); goto LqJOn; j1YFv: if ($v['type'] == 'more_pic') { goto VmwcA; } goto drcVP; yYeBr: $tencent_map_key = getAppConfSd('tencent_map_key'); goto t3u6U; XoMON: if (!($re != false)) { goto S39yf; } goto ga2gu; ImpQS: if ($v['type'] == 'map') { goto BCZn4; } goto j1YFv; CeEGa: $this->json_return('8', 0); goto Z05zn; itVtc: if (!($v['type'] == 'pic')) { goto dLMz2; } goto D1LRs; ga2gu: $data['detail'][$k]['val']['latitude'] = $re['lat']; goto Ef294; KDMc6: if (!(count($v['val']) > 8)) { goto wUNRX; } goto CeEGa; U0wrO: S39yf: goto ESa4U; LqJOn: $data['detail'][$k]['val'][] = $v['val']; goto ysY04; ItIbY: VmwcA: goto s6FDl; ysY04: dLMz2: goto rnVDa; Ef294: $data['detail'][$k]['val']['longitude'] = $re['lng']; goto U0wrO; FZhkH: MzMpL: goto ywQ0r; BlaUv: $this->json_return('9', 0); goto kONby; t3u6U: if (!($tencent_map_key != '')) { goto UmmU1; } goto nOd26; P5KZC: BCZn4: goto dnK2H; ESa4U: UmmU1: goto cHQQb; s6FDl: if (!(count($v['val']) > 9)) { goto fa0f3; } goto BlaUv; nOd26: $re = getLatLng($v['val']['title'], $tencent_map_key); goto XoMON; cHgI0: RIKH5: goto ttSh2; bWZ63: wH8wb: goto muRO5; kONby: fa0f3: goto cHgI0; rnVDa: goto wH8wb; goto mj2rL; dnK2H: if (!($v['val']['latitude'] == '' || $v['val']['longitude'] == '' && $v['val']['title'] != '')) { goto UYvTP; } goto yYeBr; jZSix: } goto iJTic; nqYUr: $result = pdo_update($this->tablePrefix . 'goods', $condition, array("id" => $id)); goto zVWes; CQY3v: wCiLv: goto wnm0U; iJTic: XjRwX: goto CQY3v; T_fQy: $condition['goods_stock'] = trim($data['goods_stock']) != '' ? trim($data['goods_stock']) : $this->json_return('', 0); goto jRrhP; ddJd2: $condition['update_time'] = time(); goto nqYUr; DOq3E: if (!(count($data['detail']) > 0)) { goto wCiLv; } goto Qen3C; wnm0U: $condition['goods_content'] = json_encode($data['detail']); goto nk9gY; TNKSh: $data = $_GPC['data']; goto pxMo6; qHJ8_: goto B97wE; goto mdY6K; b3VAW: $condition['uid'] = $store['uid']; goto gbWAw; LIGgy: $url = $this->createWebUrl('itemStore') . '&card_id=' . $store['card_id']; goto Clzu7; HtBdj: global $_GPC, $_W; goto TNKSh; k4KGc: if (!(count($data['goods_pics']) > 9)) { goto mr4YS; } goto XqYWx; jRrhP: $condition['order_sort'] = intval($data['order_sort']); goto DOq3E; WuPTM: vaWHz: goto LIGgy; sn9yq: $condition['card_id'] = $store['card_id']; goto b3VAW; zVWes: B97wE: goto C1LKN; FY1o1: if ($id > 0) { goto erJrq; } goto JEFBH; ktE7e: $store_id = intval($data['store_id']) > 0 ? intval($data['store_id']) : $this->json_return('', 0); goto ZA7Oc; feHoE: } public function doWebItemStoreDel() { goto MKXM5; r36F2: $this->json_return('', 0); goto RMB4M; QAQpJ: xWWMu: goto l0L8I; vOGZw: nu4qe: goto WdRRN; RMB4M: goto xWWMu; goto vOGZw; y2Kcq: if ($result != false) { goto nu4qe; } goto r36F2; WdRRN: $this->json_return(''); goto QAQpJ; USAiG: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto Ev0Wx; MKXM5: global $_GPC, $_W; goto USAiG; Ev0Wx: $result = pdo_delete($this->tablePrefix . 'goods', array("id" => $id)); goto y2Kcq; l0L8I: } public function doWebItemGoodsStatus() { goto RgyH2; zGeQ7: grdjr: goto UYedr; igzMX: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto y6Lw4; y6Lw4: $status = intval($_GPC['status']); goto UNS_0; RgyH2: global $_GPC, $_W; goto igzMX; z0340: if ($result != false) { goto zsRgv; } goto STq9k; UNS_0: $result = pdo_update($this->tablePrefix . 'goods', array("status" => $status), array("id" => $id)); goto z0340; Mk8Fp: zsRgv: goto rs3O7; ZI53a: goto grdjr; goto Mk8Fp; STq9k: $this->json_return('', 0); goto ZI53a; rs3O7: $this->json_return(''); goto zGeQ7; UYedr: } public function doWebSystemConfig() { goto zWxWP; CRygT: $list = pdo_getall($this->tablePrefix . $this->configTable, array("uniacid" => $_W['uniacid'], "parent_id" => 0, "status" => 1), array("id", "code", "name"), '', array("sort_order DESC")); goto RyIwV; xZqPC: $configList = array(); goto tnQYo; oBqOi: Z310J: goto MrPKA; RyIwV: if (!(count($list) > 0)) { goto Z310J; } goto xZqPC; xjhuM: VGGaC: goto oBqOi; tnQYo: foreach ($list as $k => $v) { goto OSyV5; Oz91T: YPpIu: goto LvSAE; fFL6r: PDjUA: goto Oz91T; OSyV5: $child = pdo_getall($this->tablePrefix . $this->configTable, array("uniacid" => $_W['uniacid'], "parent_id" => $v['id'], "status" => 1), array("id", "parent_id", "name", "code", "type", "store_range", "value", "tip"), '', array("sort_order DESC")); goto mbWls; mbWls: foreach ($child as $k2 => $v2) { goto ZbAxt; ZbAxt: if (!($v2['store_range'] != '')) { goto V00EU; } goto zOVGH; h_R7k: dRbXY: goto rtuqS; Ej8fz: $configList[$k][$k2] = $v2; goto h_R7k; zOVGH: $v2['store_range'] = json_decode($v2['store_range'], true); goto UYtKp; UYtKp: V00EU: goto Ej8fz; rtuqS: } goto fFL6r; LvSAE: } goto xjhuM; MrPKA: include $this->template('system_config/system_config'); goto CHAaN; zWxWP: global $_GPC, $_W; goto CRygT; CHAaN: } public function doWebSystemConfigSave() { goto hZsJo; UUGWs: kpZ4R: goto aevOB; Yg5hA: n6G_3: goto PK79W; IPV0o: $list = pdo_getall($this->tablePrefix . $this->configTable, array("uniacid" => $_W['uniacid'], "status" => 1), array("code", "type", "value")); goto QgosQ; PK79W: foreach ($list as $key => $v) { goto z5RsY; W0nR4: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $condition[$v['code']]), array("uniacid" => $_W['uniacid'], "code" => $v['code'])); goto S6vM7; Q8tmw: goto PFjLh; goto eKONb; oD6nT: $this->json_return('', 0); goto upLnn; eKONb: VkCbh: goto W0nR4; z5RsY: if (!array_key_exists($v['code'], $condition)) { goto ISZ5r; } goto S7apc; DnZwQ: PFjLh: goto q_zFL; VGd3U: ISZ5r: goto DnZwQ; S7apc: if (!($v['value'] === $condition[$v['code']])) { goto VkCbh; } goto Q8tmw; upLnn: Bg6Fv: goto VGd3U; S6vM7: if (!($result != true)) { goto Bg6Fv; } goto oD6nT; q_zFL: } goto UUGWs; QgosQ: foreach ($list as $v) { goto ABaac; J9bxQ: AN048: goto BBpqA; ABaac: if (!array_key_exists($v['code'], $_GPC)) { goto U6hCp; } goto zEP99; jXAJN: if (!($v['type'] == 'switch')) { goto h_qc5; } goto GXyHz; kIZHj: $condition[$v['code']] = $_GPC[$v['code']]; goto WTQKa; ZATq3: goto AN048; goto sAhtb; zEP99: if (is_array($_GPC[$v['code']])) { goto thG01; } goto kIZHj; Xluto: cKrU5: goto X1pnF; sAhtb: thG01: goto a0OaM; pkYyM: h_qc5: goto Xluto; BBpqA: U6hCp: goto jXAJN; R7pYu: unset($condition[$v['code']]); goto LyZgP; GXyHz: $condition[$v['code']] = $_GPC[$v['code']] != NULL ? $_GPC[$v['code']] : '0'; goto pkYyM; LyZgP: Bc9on: goto ZATq3; WTQKa: if (!($condition[$v['code']] === '')) { goto Bc9on; } goto Q28x1; a0OaM: $condition[$v['code']] = implode(',', $_GPC[$v['code']]); goto J9bxQ; Q28x1: pdo_update($this->tablePrefix . $this->configTable, array("value" => ""), array("code" => $v['code'], "uniacid" => $_W['uniacid'])); goto R7pYu; X1pnF: } goto Yg5hA; aevOB: $this->json_return(''); goto PjS1L; hZsJo: global $_GPC, $_W; goto IPV0o; PjS1L: } public function doWebConfigBack() { goto V4YCr; V4YCr: global $_GPC, $_W; goto e4bd0; AnmoU: include $this->template('system_config/config_back_list'); goto jsqm3; e4bd0: $list = pdo_getall($this->tablePrefix . 'configbak', array("uniacid" => $_W['uniacid']), array("id", "back_name", "create_time"), '', array("create_time desc"), array()); goto AnmoU; jsqm3: } public function doWebConfigBackEdit() { global $_GPC, $_W; include $this->template('system_config/config_back_info'); } public function doWebConfigBackSave() { goto wg2sa; cTMnE: $condition['create_time'] = time(); goto Vik9M; yH9GQ: $this->json_return('', 1); goto deVRX; lKrAq: $condition['back_up'] = serialize($list); goto Akjkl; Vik9M: $result = pdo_insert($this->tablePrefix . 'configbak', $condition); goto MgPh0; wg2sa: global $_GPC, $_W; goto FuGGf; GjJqZ: if (count($list) > 0) { goto qhw_0; } goto gKmgE; deVRX: goto KZcja; goto duS7v; dZzLN: goto AmaVo; goto ESy1l; duS7v: Z51OC: goto ny_5_; MgPh0: if ($result != false) { goto Z51OC; } goto yH9GQ; bwr_M: $list = pdo_getall($this->tablePrefix . $this->configTable, array("uniacid" => $_W['uniacid']), array(), '', array()); goto GjJqZ; hhDLw: AmaVo: goto XIx1B; Akjkl: $condition['uniacid'] = $_W['uniacid']; goto cTMnE; ny_5_: $this->json_return(''); goto XPvlB; gKmgE: $this->json_return('', 1); goto dZzLN; XPvlB: KZcja: goto hhDLw; ESy1l: qhw_0: goto lKrAq; FuGGf: $condition['back_name'] = trim($_GPC['back_name'] != '') ? trim($_GPC['back_name']) : $this->json_return('', 0); goto bwr_M; XIx1B: } public function doWebConfigBackReduction() { goto R15BU; LlTL1: sb6kX: goto la65o; xuQRq: u0YTl: goto B_o6Z; PcRtR: $info = pdo_fetch('SELECT `back_up` FROM ' . tablename($this->tablePrefix . 'configbak') . ' WHERE `id`=:id and `uniacid` =:uniacid', array("id" => $id, ":uniacid" => $_W['uniacid'])); goto NDbGC; TkTIK: $codes = array(); goto JMptv; la65o: $list = pdo_getall($this->tablePrefix . $this->configTable, array("uniacid" => $_W['uniacid']), array("id", "code", "value")); goto EiJp3; VpPDr: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto PcRtR; NDbGC: $info = unserialize($info['back_up']); goto TkTIK; EiJp3: foreach ($list as $v) { goto SSxLZ; vBfM3: AN31Q: goto k3d35; vduDt: goto l2BC3; goto bBeOC; u94xj: BlRqa: goto J6qEv; gQgbe: if ($v['code'] != '') { goto h_C8L; } goto YRJ4D; zZnZY: goto SwXQz; goto R_m3P; bgpbA: F5i7b: goto u94xj; f3BMx: $re1 = 1; goto zZnZY; FLRGF: $data['value'] = ''; goto xWulZ; LGUvI: $re2 = pdo_update($this->tablePrefix . $this->configTable, array("value" => $codes[$v['code']]), array("code" => $v['code'], "uniacid" => $_W['uniacid'])); goto mo6A0; iSqEQ: Cj04F: goto RqSkI; mo6A0: goto gaB4m; goto vBfM3; RqSkI: if ($codes[$v['code']] == '') { goto AN31Q; } goto LGUvI; PLygj: Mq1GQ: goto yyCWp; bBeOC: h_C8L: goto uc99R; wiebC: SwXQz: goto u3WVW; YRJ4D: goto BlRqa; goto vduDt; vZKuh: goto Mq1GQ; goto iSqEQ; SSxLZ: if (!array_key_exists($v['code'], $codes)) { goto F5i7b; } goto gQgbe; xWulZ: $re1 = pdo_update($this->tablePrefix . $this->configTable, $data, array("code" => $v['code'], "uniacid" => $_W['uniacid'])); goto wiebC; yyCWp: l2BC3: goto bgpbA; uc99R: if ($v['value'] != '') { goto IL5Bd; } goto f3BMx; gXBrS: $data = array(); goto FLRGF; GEel4: gaB4m: goto PLygj; yP2H7: $this->json_return('' . $v['code'] . '', 0); goto vZKuh; R_m3P: IL5Bd: goto gXBrS; u3WVW: if ($re1 != false) { goto Cj04F; } goto yP2H7; k3d35: goto BlRqa; goto GEel4; J6qEv: } goto xuQRq; JMptv: foreach ($info as $v) { $codes[$v['code']] = $v['value']; fmJ7K: } goto LlTL1; B_o6Z: $this->json_return(''); goto GaS3w; R15BU: global $_GPC, $_W; goto VpPDr; GaS3w: } public function doWebConfigBackDel() { goto T3eet; SFZuc: if ($result != false) { goto BHe3Q; } goto G07W9; dZm4s: $result = pdo_delete($this->tablePrefix . 'configbak', array("id" => $id, "uniacid" => $_W['uniacid'])); goto SFZuc; KbMd9: goto hAU_6; goto rKijc; yTNi6: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto dZm4s; rKijc: BHe3Q: goto aD03v; aD03v: $this->json_return(''); goto F107A; T3eet: global $_GPC, $_W; goto yTNi6; F107A: hAU_6: goto PKcI5; G07W9: $this->json_return('', 0); goto KbMd9; PKcI5: } public function doWebOrderStatistics() { goto IjQb5; Pow_O: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto iZHnB; NkPLr: $nextday1 = date('Y-m-d 23:59:59', strtotime("-{$i} days")); goto Re1PJ; MbfXw: mxu9a: goto Gni_1; z9VKn: $start_time = strtotime(date('Y-m-d 00:00:00')); goto gLPQV; mQf9h: $total_order_no = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 0'); goto iITSJ; cHve_: if (!($i < 30)) { goto k4k4x; } goto cR83o; IjQb5: global $_GPC, $_W; goto z9VKn; sOfZe: $count['totalData'] = array_reverse($count['totalData']); goto BzRuL; Gni_1: $i++; goto DGV3t; CxUZz: DDHTp: goto cHve_; ooAIv: $count['time'] = array(); goto ry8HC; ry8HC: $i = 0; goto CxUZz; Yz7LN: $today_order_no = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 0 and `create_time` > ' . $start_time); goto mQf9h; n6hjD: include $this->template('order/order_statistics'); goto CceTo; WnTup: $count['successData'] = array(); goto rsdb8; foFMH: $count = json_encode($count); goto n6hjD; cR83o: $prevday1 = date('Y-m-d 00:00:00', strtotime("-{$i} days")); goto NkPLr; wznLO: $total_order_yes = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1'); goto Yz7LN; iZYzP: $today_order_yes = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` > ' . $start_time); goto wznLO; Bh31Q: $today_total_fee = pdo_fetchall('SELECT SUM(`fee`) as `fee` From ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `pay_time` > ' . $start_time); goto Er7lG; Er7lG: $total_fee = pdo_getall($this->tablePrefix . 'orders', array("uniacid" => $_W['uniacid'], "status" => 1), array("SUM(fee) as totalFee")); goto y1HIl; rsdb8: $count['totalData'] = array(); goto ooAIv; DGV3t: goto DDHTp; goto tj6vG; iITSJ: $count = array(); goto WnTup; y1HIl: $total_order = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid']); goto iZYzP; tj6vG: k4k4x: goto L5T64; Re1PJ: $prevday = strtotime(date('Y-m-d 00:00:00', strtotime("-{$i} days"))); goto U6Y5m; L5T64: $count['successData'] = array_reverse($count['successData']); goto sOfZe; gLPQV: $today_total_order = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` > ' . $start_time); goto Bh31Q; TXbLl: $count['time'][] = date('Y-m-d', strtotime("-{$i} days")); goto MbfXw; qR3lq: $count['totalData'][] = $totalData['count']; goto TXbLl; GD3dn: $count['successData'][] = $successData['count']; goto qR3lq; BzRuL: $count['time'] = array_reverse($count['time']); goto foFMH; U6Y5m: $nextday = strtotime(date('Y-m-d 23:59:59', strtotime("-{$i} days"))); goto Pow_O; iZHnB: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto GD3dn; CceTo: } public function doWebGetOrder() { goto Sjyvs; JSwJn: eERi2: goto UZ3or; c3qoe: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto QPhTy; Mbv3V: if ($data['dateType'] == 0) { goto izD0e; } goto Evuv5; i0_Py: KY4jY: goto XwIwD; f3qaS: $i = 0; goto do3uW; S8kFR: $nextTime = strtotime(date('Y-m-d 23:59:59', strtotime($date[0] . '+' . $j . ' day'))); goto Vw1bL; ct_fg: XSebh: goto IGay7; Qyf9Z: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto NtUMg; G4BRT: $i = $start; goto t9qFj; jAUdJ: $nextTime = strtotime(date('Y-m-' . $i . ' 23:59:59', strtotime('-1 month'))); goto csRSe; UX36K: $count['time'][] = date('Y-m-d', $prevTime); goto Uguli; g5PXh: $i++; goto aV5Bm; xqYys: $prevTime = strtotime(date('Y-m-' . $i . ' 00:00:00', strtotime('-1 month'))); goto jAUdJ; mkibw: $nextday = strtotime(date('Y-m-d 23:59:59', strtotime("-{$i} days"))); goto Cdp1F; kChVA: $count['time'][] = date('H', $prevTime); goto wQef3; BlAJf: goto A6C7R; goto JSwJn; RcU5C: $count['time'][] = date('Y-m-d', $prevTime); goto jUpLG; FBdxM: $data = $_GPC['data']; goto mjSYD; s8MRI: lKZPu: goto BlAJf; QPhTy: $count['successData'][] = $successData['count']; goto bsHdi; iA3ZB: $count['time'] = array(); goto FBdxM; yil4y: if (!($i <= $time)) { goto KY4jY; } goto L1n8p; pT2Ni: goto aRafz; goto k97Zr; agP6J: $count['time'] = array_reverse($count['time']); goto GzWy5; p5SgJ: goto lKZPu; goto ESum1; firvR: goto UHzWf; goto yRhr7; tvzFN: $count['time'][] = date('H', $prevTime); goto Zq71l; FHnFP: $count['successData'] = array_reverse($count['successData']); goto X2sqH; MP8jd: goto upJiJ; goto ItP0w; Cg2kR: $count['successData'][] = $successData['count']; goto fdy9L; bm8Du: $i++; goto pT2Ni; I1u9d: $count = array(); goto vSKtB; f2ZLe: $days = date('t', strtotime('-1 month')); goto uZ11o; T9P3Q: goto zIbrU; goto ct_fg; dJSJu: UHzWf: goto T9P3Q; bsDZG: $prevTime = strtotime(date('Y-m-' . $i . ' 00:00:00')); goto KQuxm; NZYyg: $nextTime = strtotime(date('Y-m-' . $day . ' ' . $i . ':59:59')); goto OD4j1; LAilo: $count['totalData'] = array(); goto iA3ZB; ikFhs: $count['totalData'][] = $totalData['count']; goto qd2Dn; ItP0w: kgdsv: goto f2ZLe; orPVd: $prevTime = strtotime(date('Y-m-d 00:00:00', strtotime($date[0] . '+' . $j . ' day'))); goto S8kFR; SN23H: IXbn6: goto VP_eM; PMxLq: $count['totalData'][] = $totalData['count']; goto RcU5C; fdy9L: $count['totalData'][] = $totalData['count']; goto UqaK5; gYYXI: $prevday = strtotime(date('Y-m-d 00:00:00', strtotime("-{$i} days"))); goto mkibw; NBxM0: $totalData = pdo_fetch('SELECT  COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto n_s8Y; Evuv5: if ($data['dateType'] == 1) { goto eERi2; } goto LBbs6; mKyT8: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto F9cfU; SPLEd: return $count; goto pbSdi; XiajR: yAy6q: goto ZwDLi; wckTp: $count = json_encode($count); goto SPLEd; Ao1NB: $i++; goto WAGZu; X2sqH: $count['totalData'] = array_reverse($count['totalData']); goto agP6J; SUY3U: $count['time'][] = '   ' . date('H', $prevTime); goto Wlnm3; rsyrH: GSlhP: goto VAd5E; NYyxc: m5zoH: goto reDfL; qSwI_: if (strpos($data['time'], '-')) { goto IXbn6; } goto n7niJ; U8Ish: vkCOl: goto FHnFP; NtUMg: $count['successData'][] = $successData['count']; goto mE1sE; Aq5OS: neBG6: goto egMG2; UZ3or: $time = date('H'); goto f3qaS; KQuxm: $nextTime = strtotime(date('Y-m-' . $i . ' 23:59:59')); goto jsyXT; IGay7: $i = 0; goto rsyrH; t9qFj: MGQEF: goto BmNox; RI6Ob: goto GSlhP; goto U8Ish; uaUsR: yz_L6: goto MP8jd; UqaK5: if ($i == 0) { goto r8dYL; } goto tvzFN; OD4j1: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto mKyT8; do3uW: jNsF3: goto yil4y; Uguli: oB89o: goto Ao1NB; irCsS: $count['totalData'][] = $totalData['count']; goto EVtfE; F9cfU: $count['successData'][] = $successData['count']; goto ikFhs; mjSYD: if ($data['dateType'] == 7 || $data['dateType'] == 30) { goto XSebh; } goto Mbv3V; JIOmJ: nXaxs: goto NYyxc; aV5Bm: goto yAy6q; goto zmZDf; Sjyvs: global $_GPC, $_W; goto I1u9d; csRSe: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto LtC4k; ESum1: cDcGn: goto O7sNO; L1n8p: $prevTime = strtotime(date('Y-m-d ' . $i . ':00:00')); goto u126Z; eGGHS: IkH2Y: goto g5PXh; tMKth: U5UgI: goto bm8Du; b1i6R: $days = date('d'); goto BfEAK; GzWy5: zIbrU: goto Pj5rx; yRhr7: izD0e: goto qSwI_; Pj5rx: $this->json_return('', 1, $count); goto wckTp; LHg6J: $count['successData'][] = $successData['count']; goto PMxLq; bsHdi: $count['totalData'][] = $totalData['count']; goto XcYHf; k97Zr: VB7RM: goto s8MRI; Zq71l: goto nXaxs; goto adg4u; vK9nJ: $j = 0; goto G4BRT; uoTED: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto Qyf9Z; jsyXT: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto NBxM0; eLEQK: goto neBG6; goto O1BcD; adg4u: r8dYL: goto GHs1g; XGhxT: $prevTime = strtotime(date('Y-m-' . $day . ' ' . $i . ':00:00')); goto NZYyg; VAd5E: if (!($i < $data['dateType'])) { goto vkCOl; } goto gYYXI; GHs1g: $count['time'][] = '   ' . date('H', $prevTime); goto JIOmJ; LtC4k: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto LHg6J; n7niJ: $this->json_return('', 0); goto Ig0Qp; qd2Dn: if ($i == 0) { goto vM4fe; } goto kChVA; Rvgi7: aRafz: goto vxORw; xaM04: $day -= 1; goto ofMyR; RUM8u: if (!($data['dateType'] == 4)) { goto yz_L6; } goto b1i6R; vxORw: if (!($i < 24)) { goto VB7RM; } goto XGhxT; BfEAK: $i = 1; goto XiajR; Vz1un: $i++; goto eLEQK; VP_eM: $date = explode('-', $data['time']); goto HvgEI; O7sNO: $day = date('d'); goto xaM04; Ko0fD: $start = date('d', strtotime($date[0])); goto vK9nJ; HvgEI: $days = getDays(strtotime($date[0]), strtotime($date[1])); goto Efd2I; uZ11o: $i = 1; goto Aq5OS; EVtfE: $count['time'][] = date('Y-m-' . $i, $prevTime); goto eGGHS; Cdp1F: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto c3qoe; Vw1bL: $j += 1; goto uoTED; mnpog: goto jNsF3; goto i0_Py; LBbs6: if ($data['dateType'] == 2) { goto cDcGn; } goto IY9Ik; reDfL: $i++; goto mnpog; n_s8Y: $count['successData'][] = $successData['count']; goto irCsS; OapCG: vM4fe: goto SUY3U; mE1sE: $count['totalData'][] = $totalData['count']; goto UX36K; zmZDf: zUoae: goto uaUsR; BmNox: if (!($i <= $days + $start)) { goto rlrGH; } goto orPVd; egMG2: if (!($i <= $days)) { goto b3RAx; } goto xqYys; jUpLG: MYPRa: goto Vz1un; Efd2I: oF3Jp: goto Ko0fD; pRCia: $i++; goto RI6Ob; IY9Ik: if ($data['dateType'] == 3) { goto kgdsv; } goto RUM8u; XwIwD: A6C7R: goto firvR; WAGZu: goto MGQEF; goto cpAUf; WSzuL: upJiJ: goto p5SgJ; O1BcD: b3RAx: goto WSzuL; CIQAY: XhqeC: goto pRCia; Wlnm3: rqDBl: goto tMKth; zqeub: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto nmm3c; cpAUf: rlrGH: goto dJSJu; XcYHf: $count['time'][] = date('Y-m-d', strtotime("-{$i} days")); goto CIQAY; nmm3c: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto Cg2kR; Ig0Qp: goto oF3Jp; goto SN23H; vSKtB: $count['successData'] = array(); goto LAilo; ofMyR: $i = 0; goto Rvgi7; u126Z: $nextTime = strtotime(date('Y-m-d ' . $i . ':59:59')); goto zqeub; ZwDLi: if (!($i <= $days)) { goto zUoae; } goto bsDZG; wQef3: goto rqDBl; goto OapCG; pbSdi: } public function doWebSquareComments() { goto uv9Sx; uv9Sx: global $_GPC, $_W; goto r8kC8; XUqj3: $pager = pagination($count, $pageindex, $pagesize); goto kkCdj; A1onz: include $this->template('square/square_comments'); goto f1fnx; id7W3: $allList = pdo_fetchall('SELECT `c`.`id`,`c`.`uniacid`,`c`.`sid`,`c`.`uid`,`c`.`comment`,`c`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'squarecomments') . ' `c` LEFT JOIN ' . tablename('mc_members') . ' `m` on `c`.`uid`=`m`.`uid` ' . $where . ' ORDER BY id DESC'); goto Uh3hn; EzemI: if (!isset($_GPC['page'])) { goto eSqPY; } goto yWlvM; yWlvM: $pageindex = intval($_GPC['page']); goto abB1Y; M1sv3: rZYwB: goto A1onz; dnUlC: $pagesize = 7; goto EzemI; SEH3_: $where = 'WHERE `c`.`sid`=' . $sid; goto OPMp8; zFWiq: foreach ($list as &$v) { $v['comment'] = urldecode($v['comment']); u4ar2: } goto M1sv3; Bc4cL: if (!($sid > 0)) { goto KJ4nc; } goto SEH3_; XBnNP: $pageindex2 = 0; goto Xn57I; zvhDH: goto opro9; goto fa176; abB1Y: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto zvhDH; kkCdj: $list = pdo_fetchall('SELECT `c`.`id`,`c`.`uniacid`,`c`.`sid`,`c`.`uid`,`c`.`comment`,`c`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'squarecomments') . ' `c` LEFT JOIN ' . tablename('mc_members') . ' `m` on `c`.`uid`=`m`.`uid` ' . $where . ' ORDER BY id DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto zFWiq; r8kC8: $sid = intval($_GPC['sid']); goto Bc4cL; OPMp8: KJ4nc: goto id7W3; Xn57I: opro9: goto XUqj3; nRyxu: $pageindex = 0; goto XBnNP; Uh3hn: $count = count($allList); goto dnUlC; fa176: eSqPY: goto nRyxu; f1fnx: } public function doWebSquareCommentsDel() { goto sTvLI; KpTZu: $data = pdo_fetch('SELECT `s`.`id`,`s`.`comments` FROM ' . tablename($this->tablePrefix . 'squarecomments') . ' `c` LEFT JOIN ' . tablename($this->tablePrefix . 'square') . ' `s` ON `c`.`sid`=`s`.`id` WHERE `c`.`id`=:id', array(":id" => $id)); goto Oo_jD; kfz3x: pdo_update($this->tablePrefix . 'square', array("comments" => $data['comments'] - 1), array("id" => $data['id'])); goto uEwUP; k53fm: QLHBA: goto kfz3x; P581A: goto xsCfs; goto k53fm; sTvLI: global $_GPC, $_W; goto ruIZQ; uEwUP: $this->json_return(''); goto jUhri; ruIZQ: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto KpTZu; KyFaY: if ($result != false) { goto QLHBA; } goto NJ8O5; jUhri: xsCfs: goto FZstG; Oo_jD: $result = pdo_delete($this->tablePrefix . 'squarecomments', array("id" => $id, "uniacid" => $_W['uniacid'])); goto KyFaY; NJ8O5: $this->json_return('', 0); goto P581A; FZstG: } public function doWebAgentCenter() { goto GGRZl; bQfBg: Q0pig: goto WI_Fv; SI14R: if (!$nickname) { goto t9BOo; } goto OcGkn; Whnk1: $total = count($totalList); goto a1rRX; PHcV7: irlbz: goto CgXiM; BtC7N: $pager = pagination($total, $pageindex, $pagesize); goto JOeJZ; JOeJZ: $list = pdo_fetchall('SELECT `u`.`id`, `u`.`agent_open_time`,`u`.`agent`,`u`.`agent_profit`,`u`.`agent_balance`,`u`.`agent_status`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'user') . ' `u` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `u`.`id`= `m`.`uid`' . $where . ' ORDER BY `u`.`id` DESC LIMIT ' . $pageindex1 . ' , ' . $pagesize); goto HGhpG; pm92c: $pageindex = $_GPC['page']; goto sNn06; sYnrN: $where = ' WHERE `u`.`uniacid` = ' . $_W['uniacid'] . ' and `u`.`agent` > 0'; goto kiSJF; lr7O3: R4ygw: goto BtC7N; BncXr: $agent = ''; goto iLctC; CgXiM: $pageindex = 0; goto M5Q0V; qkZ6Y: beYAb: goto vtwDE; vtwDE: if (!($datemax && $datemin == false)) { goto IqYOL; } goto AEP8x; MwCHm: if (!($datemin && $datemax == false)) { goto beYAb; } goto BmW0_; n09zL: $where .= ' and `u`.`agent` = ' . $_GPC['agent']; goto bQfBg; zt2Ql: if (!isset($_GPC['page'])) { goto irlbz; } goto pm92c; iLctC: $agent = $_GPC['agent']; goto lbsnJ; txMDq: include $this->template('agent_center/agent_center'); goto qTYKi; re9A2: sjKRU: goto MwCHm; sNn06: $pageindex1 = (intval($_GPC['page']) - 1) * 6; goto kEr7K; ltsXt: VqA9p: goto MxaDq; CTPmu: foreach ($gradeData as $v) { $agent_grade[$v['id']] = $v['name']; TnN5X: } goto hViUh; M5Q0V: $pageindex1 = 0; goto lr7O3; WI_Fv: $datemin = strtotime($_GPC['datemin']); goto FALiB; MxaDq: foreach ($list as $k => $v) { $list[$k]['agent'] = $agent_grade[$v['agent']]; Nokq2: } goto zkpQn; eDpBa: if (!($datemin && $datemax)) { goto sjKRU; } goto GygBw; GGRZl: global $_GPC, $_W; goto E_pHS; kiSJF: $nickname = trim($_GPC['nickname']); goto SI14R; lbsnJ: if (!($agent != '')) { goto Q0pig; } goto n09zL; OcGkn: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto R0iTp; R0iTp: t9BOo: goto BncXr; kEr7K: goto R4ygw; goto PHcV7; a1rRX: $pagesize = 6; goto zt2Ql; BmW0_: $where .= ' and `u`.`agent_open_time` > ' . $datemin; goto qkZ6Y; HGVvW: $agent_grade = array(); goto blEKg; zkpQn: PoWu2: goto txMDq; HWXzj: $totalList = pdo_fetchall('SELECT `u`.`id` FROM ' . tablename($this->tablePrefix . 'user') . ' `u` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `u`.`id` = `m`.`uid`' . $where . ' ORDER BY `u`.`id` DESC'); goto Whnk1; E_pHS: $url = $this->createWebUrl('agentCenter'); goto sYnrN; AEP8x: $where .= ' and `u`.`agent_open_time` < ' . $datemax; goto riWn0; blEKg: if (!(count($gradeData) > 0)) { goto VqA9p; } goto CTPmu; FALiB: $datemax = strtotime($_GPC['datemax']); goto eDpBa; hViUh: hlQG1: goto ltsXt; riWn0: IqYOL: goto HWXzj; HGhpG: $gradeData = unserialize(getAppConfSd('agent_grade')); goto HGVvW; GygBw: $where .= ' and `u`.`agent_open_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto re9A2; qTYKi: } public function doWebAgentGrade() { goto OjxWY; OjxWY: global $_GPC, $_W; goto utEZ6; IIqcJ: include $this->template('agent_center/agent_grade'); goto gYHkm; Y98wA: if (!(count($gradeData) > 0)) { goto ZcfpY; } goto p749l; DRQ1_: I9w3c: goto sZAPb; p749l: foreach ($gradeData as $v) { goto gQ9Pu; iPeY4: $agent_grade['original_price' . $v['id']] = $v['original_price']; goto WCY0z; V0X5d: $agent_grade['price' . $v['id']] = $v['price']; goto H6Isq; wt12F: MHYfo: goto PqpJo; gQ9Pu: $agent_grade['name' . $v['id']] = $v['name']; goto V0X5d; WUyu5: $agent_grade['pic' . $v['id']] = $v['pic']; goto iPeY4; WCY0z: $agent_grade['agent_explain' . $v['id']] = $v['agent_explain']; goto rqson; rqson: $agent_grade['status' . $v['id']] = $v['status']; goto wt12F; jDVna: $agent_grade['two_profit' . $v['id']] = $v['two_profit']; goto PfGB5; PfGB5: $agent_grade['three_profit' . $v['id']] = $v['three_profit']; goto WUyu5; H6Isq: $agent_grade['one_profit' . $v['id']] = $v['one_profit']; goto jDVna; PqpJo: } goto DRQ1_; utEZ6: $gradeData = unserialize(getAppConfSd('agent_grade')); goto cSB3S; sZAPb: ZcfpY: goto IIqcJ; cSB3S: $agent_grade = array(); goto Y98wA; gYHkm: } public function doWebAgentGradeSave() { goto Eewls; SqN_c: LZpwD: goto ZW6zQ; pTj7E: GmqQb: goto VA6Nr; zjO7G: if (!(trim($_GPC['price1']) == '' || trim($_GPC['price2']) == '' || trim($_GPC['price3']) == '')) { goto a2StX; } goto MPqQY; BjY7n: goto LZpwD; goto pTj7E; g0x0e: $arr = serialize($arr); goto p_1WE; I50o6: $this->json_return('', 0); goto oVHVT; MPqQY: $this->json_return('', 0); goto RlDtM; kEjYC: $this->json_return('', 0); goto WG7nc; rmy81: $this->json_return('', 0); goto IiCr2; OYUln: $this->json_return('', 0); goto BjY7n; WG7nc: PGRuV: goto eLlDx; VA6Nr: $this->json_return(''); goto SqN_c; IiCr2: az3VS: goto zjO7G; RVtwb: $arr = array(array("id" => 1, "name" => trim($_GPC['name1']), "price" => trim($_GPC['price1']), "one_profit" => trim($_GPC['one_profit1']), "two_profit" => $_GPC['two_profit1'], "three_profit" => $_GPC['three_profit1'], "pic" => $_GPC['pic1'], "original_price" => $_GPC['original_price1'], "agent_explain" => $_GPC['agent_explain1']), array("id" => 2, "name" => trim($_GPC['name2']), "price" => trim($_GPC['price2']), "one_profit" => trim($_GPC['one_profit2']), "two_profit" => $_GPC['two_profit2'], "three_profit" => $_GPC['three_profit2'], "pic" => $_GPC['pic2'], "original_price" => $_GPC['original_price2'], "agent_explain" => $_GPC['agent_explain2'], "status" => $_GPC['status2'] ? 1 : 0), array("id" => 3, "name" => trim($_GPC['name3']), "price" => trim($_GPC['price3']), "one_profit" => trim($_GPC['one_profit3']), "two_profit" => $_GPC['two_profit3'], "three_profit" => $_GPC['three_profit3'], "pic" => $_GPC['pic3'], "original_price" => $_GPC['original_price3'], "agent_explain" => $_GPC['agent_explain3'], "status" => $_GPC['status3'] ? 1 : 0)); goto g0x0e; KmlXu: if (!(trim($_GPC['one_profit1']) == '' || trim($_GPC['one_profit2']) == '' || trim($_GPC['one_profit3']) == '')) { goto l5IDt; } goto F5POv; bN1eu: if ($result != false) { goto GmqQb; } goto OYUln; MUurV: if (!(trim($_GPC['name1']) == '' || trim($_GPC['name2']) == '' || trim($_GPC['name3']) == '')) { goto az3VS; } goto rmy81; oVHVT: shoAD: goto RVtwb; F5POv: $this->json_return('', 0); goto zEEXC; Eewls: global $_GPC, $_W; goto MUurV; RlDtM: a2StX: goto KmlXu; tSxDu: if (!(trim($_GPC['two_profit1']) == '' || trim($_GPC['two_profit2']) == '' || trim($_GPC['two_profit3']) == '')) { goto PGRuV; } goto kEjYC; p_1WE: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $arr), array("uniacid" => $_W['uniacid'], "code" => "agent_grade")); goto bN1eu; eLlDx: if (!(trim($_GPC['three_profit1']) == '' || trim($_GPC['three_profit2']) == '' || trim($_GPC['three_profit3']) == '')) { goto shoAD; } goto I50o6; zEEXC: l5IDt: goto tSxDu; ZW6zQ: } public function doWebAgentDesign() { goto JGv8Y; lcMXo: $poster_data = json_decode($design['data'], true); goto kq_Jp; kq_Jp: include $this->template('agent_center/agent_design'); goto mCSv1; JGv8Y: global $_GPC, $_W; goto d9aF4; d9aF4: $design = unserialize(getAppConfSd('agent_design')); goto lcMXo; mCSv1: } public function doWebAgentDesignSave() { goto aaUxy; rBVaf: if (empty($_GPC['poster']['data'])) { goto JqOjt; } goto yIztQ; lu0nx: JqOjt: goto QCQU1; aaUxy: global $_GPC, $_W; goto rBVaf; ZgXM3: IWlR5: goto lu0nx; r19MN: $this->json_return(''); goto ZgXM3; pTTaN: $this->json_return('', 0); goto n1oEP; Djb9Z: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("uniacid" => $_W['uniacid'], "code" => "agent_design")); goto jIxYm; feZIf: pdo_update($this->tablePrefix . 'user', array("agent_qrpic" => ""), array("uniacid" => $_W['uniacid'])); goto r19MN; n1oEP: goto IWlR5; goto mpEgq; yIztQ: $data = serialize(str_replace('&quot;', '"', $_GPC['poster'])); goto Djb9Z; mpEgq: DzTkE: goto feZIf; jIxYm: if ($result != false) { goto DzTkE; } goto pTTaN; QCQU1: } public function doWebServiceGroupSet() { goto F5oBe; F5oBe: global $_GPC, $_W; goto lt2bl; lt2bl: $list = pdo_fetchall('SELECT  `name`,`code`,`type`,`store_range`,`value`,`tip` FROM ' . tablename($this->tablePrefix . $this->configTable) . ' WHERE `code` in (\'income_words\', \'account_qrcode\') and `uniacid`=:uniacid', array(":uniacid" => $_W['uniacid'])); goto n4cEK; n4cEK: foreach ($list as $v) { goto hJ7HG; oEG43: $data['income_words'] = $v; goto iZAiu; LP_LI: if (!($v['code'] == 'account_qrcode')) { goto fLgmX; } goto fd4f6; hJ7HG: if (!($v['code'] == 'income_words')) { goto pyxgH; } goto oEG43; iZAiu: pyxgH: goto LP_LI; KYS2F: dFhVx: goto z1vPn; fd4f6: $data['account_qrcode'] = $v; goto Gccu1; Gccu1: fLgmX: goto KYS2F; z1vPn: } goto kja7S; kja7S: M6lx_: goto SwX5D; SwX5D: include $this->template('app_set/service_group_set'); goto trer0; trer0: } public function doWebServiceSetSave() { goto b1Hw5; U3c5j: $income_words = $_GPC['income_words']; goto OEx0Q; XOaVb: $account_qr_file = file_remote_attach_fetch(getFileUrlSd($account_qrcode)); goto WR3E8; lBh6b: @chmod($save_path, 0777); goto PzBJR; WAAb9: @copy(ATTACHMENT_ROOT . '/' . $account_qr_file, $save_path); goto lBh6b; IlxzF: if (empty($account_qrcode)) { goto zm51X; } goto XOaVb; PzBJR: file_delete($account_qr_file); goto a_GCL; a_GCL: zm51X: goto eCGc0; dC_QO: pdo_update($this->tablePrefix . $this->configTable, array("value" => $income_words), array("uniacid" => $_W['uniacid'], "code" => "income_words")); goto nPnuc; OEx0Q: $account_qrcode = $_GPC['account_qrcode']; goto dC_QO; eCGc0: $this->json_return(''); goto sRB9l; WR3E8: $save_path = MODULE_ROOT . '/resource/images/account_qrcode.jpg'; goto WAAb9; b1Hw5: global $_GPC, $_W; goto U3c5j; nPnuc: pdo_update($this->tablePrefix . $this->configTable, array("value" => $account_qrcode), array("uniacid" => $_W['uniacid'], "code" => "account_qrcode")); goto IlxzF; sRB9l: } public function doWebAgentSet() { goto U2nk2; YI_mA: id5hX: goto NGrF3; ufdk6: foreach ($list as $v) { goto V9AfV; GmDpk: if (!($v['code'] == 'agent_open_explain')) { goto y3Gu9; } goto fXkWG; sX80M: $data['agent_center_pic'] = $v; goto GN6ze; RMLCC: y3Gu9: goto HnqxZ; Tj6tn: if (!($v['code'] == 'agent_introduct_pic')) { goto KZv9a; } goto md0FX; hMlIO: $data['agent_open_balance'] = $v; goto kE4Q_; kbQrJ: KZv9a: goto fduDF; GN6ze: vBqU2: goto Tj6tn; PVaZ6: $data['agent_switch'] = $v; goto PiKCU; nu6DR: eXeSZ: goto WTd1G; HnqxZ: if (!($v['code'] == 'devied_show_switch')) { goto hlcgB; } goto ETG0_; bhyHx: rDZNK: goto W81YY; W81YY: if (!($v['code'] == 'agent_center_pic')) { goto vBqU2; } goto sX80M; Rd2SB: hlcgB: goto nu6DR; ETG0_: $data['devied_show_switch'] = $v; goto Rd2SB; kE4Q_: OaV6R: goto GmDpk; PiKCU: JcAI6: goto YseIw; V9AfV: if (!($v['code'] == 'agent_switch')) { goto JcAI6; } goto PVaZ6; md0FX: $data['agent_introduct_pic'] = $v; goto kbQrJ; a4_bE: $data['agent_open_pic'] = $v; goto bhyHx; YseIw: if (!($v['code'] == 'agent_open_pic')) { goto rDZNK; } goto a4_bE; fXkWG: $data['agent_open_explain'] = $v; goto RMLCC; fduDF: if (!($v['code'] == 'agent_open_balance')) { goto OaV6R; } goto hMlIO; WTd1G: } goto YI_mA; hgsoa: $list = pdo_fetchall('SELECT  `name`,`code`,`type`,`store_range`,`value`,`tip` FROM ' . tablename($this->tablePrefix . $this->configTable) . ' WHERE `code` in (\'agent_switch\', \'agent_open_pic\', \'agent_center_pic\', \'agent_introduct_pic\', \'agent_open_balance\', \'agent_open_explain\', \'devied_show_switch\') and `uniacid`=:uniacid', array(":uniacid" => $_W['uniacid'])); goto ufdk6; jK8D2: include $this->template('agent_center/agent_set'); goto tMB3T; U2nk2: global $_GPC, $_W; goto hgsoa; NGrF3: $data['withdrawal_method']['store_range'] = json_decode($data['withdrawal_method']['store_range'], true); goto jK8D2; tMB3T: } public function doWebAgentSetSave() { goto NoLjW; BPc1t: $agent_open_pic = $_GPC['agent_open_pic']; goto nK_3O; yyv6q: $agent_open_explain = $_GPC['agent_open_explain']; goto xr79j; r9sXF: $this->json_return(''); goto Ld0H3; cs5IM: $agent_introduct_pic = $_GPC['agent_introduct_pic']; goto yyv6q; JhCnn: pdo_update($this->tablePrefix . $this->configTable, array("value" => $agent_open_explain), array("uniacid" => $_W['uniacid'], "code" => "agent_open_explain")); goto fUhxW; bsY2W: pdo_update($this->tablePrefix . $this->configTable, array("value" => $agent_open_pic), array("uniacid" => $_W['uniacid'], "code" => "agent_open_pic")); goto sr7cM; NoLjW: global $_GPC, $_W; goto MBqkI; TSfF1: $devied_show_switch = intval($_GPC['devied_show_switch']); goto TNQrY; sr7cM: pdo_update($this->tablePrefix . $this->configTable, array("value" => $agent_center_pic), array("uniacid" => $_W['uniacid'], "code" => "agent_center_pic")); goto cQ3zY; cQ3zY: pdo_update($this->tablePrefix . $this->configTable, array("value" => $agent_introduct_pic), array("uniacid" => $_W['uniacid'], "code" => "agent_introduct_pic")); goto mXkS8; fUhxW: pdo_update($this->tablePrefix . $this->configTable, array("value" => $devied_show_switch), array("uniacid" => $_W['uniacid'], "code" => "devied_show_switch")); goto r9sXF; TNQrY: pdo_update($this->tablePrefix . $this->configTable, array("value" => $agent_switch), array("uniacid" => $_W['uniacid'], "code" => "agent_switch")); goto bsY2W; xr79j: $agent_open_balance = intval($_GPC['agent_open_balance']); goto TSfF1; mXkS8: pdo_update($this->tablePrefix . $this->configTable, array("value" => $agent_open_balance), array("uniacid" => $_W['uniacid'], "code" => "agent_open_balance")); goto JhCnn; MBqkI: $agent_switch = intval($_GPC['agent_switch']); goto BPc1t; nK_3O: $agent_center_pic = $_GPC['agent_center_pic']; goto cs5IM; Ld0H3: } public function doWebUserAgent() { goto bxz1E; Fgzns: if (!($id > 0)) { goto DU3Vs; } goto TvqtZ; mfomd: $gradeData = unserialize(getAppConfSd('agent_grade')); goto Pzwip; Pzwip: include $this->template('user/user_agent'); goto wvOcm; cbcZL: $id = intval($_GPC['id']); goto Fgzns; EHOHI: $status = $user['agent'] > 0 ? 1 : 0; goto SVBwN; bxz1E: global $_GPC, $_W; goto cbcZL; SVBwN: DU3Vs: goto mfomd; TvqtZ: $user = pdo_fetch('SELECT `id`,`agent` From ' . tablename($this->tablePrefix . 'user') . ' WHERE `id` = :id', array(":id" => $id)); goto EHOHI; wvOcm: } public function doWebuserAgentSave() { goto Mtry5; F2YYt: Ev_aF: goto BxEtV; pbWGs: $this->json_return('', 0); goto Owqdv; dVW1K: $data['agent_status'] = 0; goto UgcYK; i2N2L: if (!($data['agent'] < 1)) { goto o8Og2; } goto qtM5v; qtM5v: $data['agent_open_time'] = 0; goto dVW1K; SR8mo: $user_id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto FeijB; Da0Sa: $data['agent'] = intval($_GPC['agent']) > 0 ? intval($_GPC['agent']) : $this->json_return('', 0); goto c2KVg; jXbyE: $this->json_return(''); goto F2YYt; WPMxw: URu7H: goto jXbyE; FeijB: $data = array(); goto Da0Sa; Owqdv: goto Ev_aF; goto WPMxw; c2KVg: $user = pdo_fetch('SELECT `agent` FROM ' . tablename($this->tablePrefix . 'user') . ' WHERE `id` = :id', array(":id" => $user_id)); goto n0GuO; QFhmH: $data['agent_status'] = 1; goto m9Yhj; Mtry5: global $_GPC, $_W; goto SR8mo; dV_lp: $result = pdo_update($this->tablePrefix . 'user', $data, array("uniacid" => $_W['uniacid'], "id" => $user_id)); goto IsbmQ; m9Yhj: yPoBu: goto i2N2L; pbXEE: $data['agent_open_time'] = time(); goto QFhmH; UgcYK: o8Og2: goto dV_lp; IsbmQ: if ($result != false) { goto URu7H; } goto pbWGs; n0GuO: if (!($user['agent'] < 1 && $data['agent'] > 0)) { goto yPoBu; } goto pbXEE; BxEtV: } public function doWebWithdrawalApply() { goto Go47w; ggwRF: az9JV: goto dFGbJ; i7QXb: Ix1tQ: goto NWvQN; xhUOU: $pageindex = 0; goto VE31_; BHisO: if (!($datemax && $datemin == false)) { goto rukgU; } goto BUB_Q; Mz4ol: $pageindex = $_GPC['page']; goto PI0js; aijQC: $where .= ' and `w`.`create_time` > ' . $datemin; goto LioV0; Kxy7z: if (!$nickname) { goto q5Gd4; } goto G5Q1d; UmgMc: rukgU: goto ILJhJ; GSMId: $list = pdo_fetchall('SELECT `w`.`id`,`w`.`profit`,`w`.`status`,`w`.`out_trade_no`,`w`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' `w` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `w`.`uid`=`m`.`uid`' . $where . ' ORDER BY `w`.`create_time` DESC LIMIT ' . $pageindex2 . ' , ' . $pagesize); goto TviSV; xyr8e: if (!isset($_GPC['page'])) { goto pmog3; } goto Mz4ol; LioV0: ekL7n: goto BHisO; R3Yz5: goto Ix1tQ; goto lA46n; Xghft: $pagesize = 6; goto xyr8e; BUB_Q: $where .= ' and `w`.`create_time` < ' . $datemax; goto UmgMc; PI0js: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto R3Yz5; bcjUg: $total = count($totalList); goto Xghft; Ul7kn: if (!($datemin && $datemax)) { goto az9JV; } goto lBUFL; ILJhJ: $totalList = pdo_fetchall('SELECT `w`.`id` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' `w` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `w`.`uid`=`m`.`uid`' . $where . ' ORDER BY `w`.`create_time` DESC'); goto bcjUg; NWvQN: $pager = pagination($total, $pageindex, $pagesize); goto GSMId; G5Q1d: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto B1wFP; lA46n: pmog3: goto xhUOU; dFGbJ: if (!($datemin && $datemax == false)) { goto ekL7n; } goto aijQC; PPRuk: $datemax = strtotime($_GPC['datemax']); goto Ul7kn; VE31_: $pageindex2 = 0; goto i7QXb; TviSV: include $this->template('agent_center/withdrawal_apply'); goto sEtzL; ka7ah: $datemin = strtotime($_GPC['datemin']); goto PPRuk; JNGhN: $url = $this->createWebUrl('withdrawalApply'); goto BpbU4; lBUFL: $where .= ' and `w`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto ggwRF; B1wFP: q5Gd4: goto ka7ah; Go47w: global $_GPC, $_W; goto JNGhN; BpbU4: $where = ' WHERE `w`.`uniacid` = ' . $_W['uniacid'] . ' and `w`.`status`= 0'; goto wlEDr; wlEDr: $nickname = trim($_GPC['nickname']); goto Kxy7z; sEtzL: } public function doWebWithdrawalApplyStatus() { goto HrXd0; rXXPd: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto sQhnX; HrXd0: global $_GPC, $_W; goto rXXPd; UhyvK: goto mHdxg; goto zDoi7; sQhnX: $status = intval($_GPC['status']) > 0 ? intval($_GPC['status']) : $this->json_return('', 0); goto CWKne; CWKne: $result = pdo_update($this->tablePrefix . 'withdrawalapply', array("status" => $status), array("id" => $id)); goto w3Z0q; w3Z0q: if ($result != false) { goto bUfnJ; } goto V6Y9P; XHDjx: $this->WithdrawalApplyMsg($id, $status); goto yOG3D; dAl8n: mHdxg: goto qEE_C; V6Y9P: $this->json_return('', 0); goto UhyvK; yOG3D: $this->json_return(''); goto dAl8n; zDoi7: bUfnJ: goto XHDjx; qEE_C: } public function doWebWithdrawalApplysStatus() { goto X1cu7; eCzLX: PFIe4: goto eSlCg; BB0Md: Jipm6: goto Heqma; fvqUe: goto Jipm6; goto eCzLX; CWZ4W: if ($profit['uid'] > 0) { goto Kes5L; } goto AWj_P; Xgvsk: $withdrawal_method = getAppConfSd('withdrawal_method'); goto ICGx8; ICGx8: $condition = array(); goto g666H; Heqma: $result = pdo_update($this->tablePrefix . 'withdrawalapply', $condition, array("id" => $id)); goto fGZTG; X1cu7: global $_GPC, $_W; goto R7dVM; EakJo: $user = pdo_fetch('SELECT `id`,`agent_balance` FROM ' . tablename($this->tablePrefix . 'user') . ' WHERE `id` = :id', array(":id" => $profit['uid'])); goto GJ1pk; uSBR4: Gncb1: goto kOaTd; WWBzC: $this->json_return('', 0); goto uSBR4; PCyHK: goto co1tR; goto UPUe6; rTfGo: if (!($withdrawal_method == 1)) { goto DkzBu; } goto fHKwN; AWj_P: $this->json_return('', 0); goto Mk_g5; UPm53: $profit = pdo_fetch('SELECT `id`,`uid`,`profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `id` = :id', array(":id" => $id)); goto CWZ4W; fHKwN: $condition['status'] = $status; goto fd_2z; K4P32: ofEUo: goto PCyHK; iWuZh: bKdtQ: goto mDDjb; E_0WR: Kes5L: goto EakJo; fd_2z: DkzBu: goto fvqUe; OxDtd: $this->json_return(''); goto iWuZh; aUA4I: $this->json_return('', 0); goto scvRl; KInzk: $result = pdo_update($this->tablePrefix . 'withdrawalapply', array("status" => 3), array("id" => $id)); goto K4P32; fGZTG: if ($result != false) { goto Yc49q; } goto aUA4I; s3WQd: if ($pay_result['result_code'] == 'SUCCESS') { goto sU0HM; } goto deJT2; PCu3_: pdo_update($this->tablePrefix . 'user', array("agent_balance" => $profit['profit'] + $user['agent_balance']), array("id" => $profit['uid'])); goto KInzk; kOaTd: $pay_result = pay_wx_pocket($user['openid'], $user['out_trade_no']); goto R8Dkq; q8d6n: co1tR: goto BB0Md; G2Jhh: if (!($user['openid'] == '' || $user['out_trade_no'] == '')) { goto Gncb1; } goto WWBzC; Mk_g5: goto ofEUo; goto E_0WR; L5jP3: $condition['status'] = 2; goto q8d6n; scvRl: goto bKdtQ; goto HeyOi; GJ1pk: $agent_balance = $profit['profit'] + $user['agent_balance']; goto PCu3_; HeyOi: Yc49q: goto OxDtd; R8Dkq: $condition['info'] = json_encode($pay_result); goto s3WQd; deJT2: $condition['status'] = 3; goto UPm53; eSlCg: $user = pdo_fetch('SELECT `w`.`id`,`w`.`out_trade_no`,`m`.`uid`,`m`.`openid`,`m`.`nickname` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' `w` LEFT JOIN ' . tablename('mc_mapping_fans') . ' `m` ON `w`.`uid` = `m`.`uid` WHERE `w`.`id`=:id LIMIT 1', array(":id" => $id)); goto G2Jhh; UPUe6: sU0HM: goto L5jP3; sug50: $status = intval($_GPC['status']) > 0 ? intval($_GPC['status']) : $this->json_return('', 0); goto Xgvsk; R7dVM: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto sug50; g666H: if ($withdrawal_method == 2) { goto PFIe4; } goto rTfGo; mDDjb: } public function doWebWithdrawalApplys() { goto hFxX9; AmeA2: $totalList = pdo_fetchall('SELECT `w`.`id` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' `w` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `w`.`uid`=`m`.`uid`' . $where . ' ORDER BY `w`.`create_time` DESC'); goto UYD5I; T_FxA: goto oj7Qc; goto HcWtp; IIJQD: $where .= ' and `w`.`status` = ' . $withdrawal_status; goto d5J_y; epfRI: $withdrawal_status = ''; goto ibl50; sp73_: b4TIc: goto S4G2F; t4Hhm: oj7Qc: goto WgRtM; RcRjd: if (!($datemax && $datemin == false)) { goto O9m7j; } goto JRyUV; Naufx: if (!$nickname) { goto DHbQA; } goto O0E3t; HcWtp: LfiI9: goto vCrZv; O0E3t: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto wywxi; s5msD: include $this->template('agent_center/withdrawal_applys'); goto PZ38d; Apvoc: $list = pdo_fetchall('SELECT `w`.`id`,`w`.`profit`,`w`.`status`,`w`.`reason`,`w`.`withdrawal_qrcode`,`w`.`out_trade_no`,`w`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' `w` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `w`.`uid`=`m`.`uid`' . $where . ' ORDER BY `w`.`create_time` DESC LIMIT ' . $pageindex2 . ' , ' . $pagesize); goto R5spQ; P3dA6: if (!($withdrawal_status != '')) { goto gmDkl; } goto IIJQD; hFxX9: global $_GPC, $_W; goto Pg0Wl; Pg0Wl: $url = $this->createWebUrl('withdrawalApplys'); goto SjBYp; WgRtM: $pager = pagination($total, $pageindex, $pagesize); goto Apvoc; mHkYO: $datemax = strtotime($_GPC['datemax']); goto zDUPJ; CQ2je: $nickname = trim($_GPC['nickname']); goto Naufx; SjBYp: $where = ' WHERE `w`.`uniacid` = ' . $_W['uniacid'] . ' and `w`.`status` > 0'; goto CQ2je; fBlAt: O9m7j: goto AmeA2; Xs8HN: ewUvZ: goto RcRjd; DaajR: $where .= ' and `w`.`create_time` > ' . $datemin; goto Xs8HN; yDGgS: $where .= ' and `w`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto sp73_; UPQne: if (!isset($_GPC['page'])) { goto LfiI9; } goto GD1zw; SZnMT: $pageindex2 = 0; goto t4Hhm; Jfy3g: $pagesize = 6; goto UPQne; S4G2F: if (!($datemin && $datemax == false)) { goto ewUvZ; } goto DaajR; GD1zw: $pageindex = $_GPC['page']; goto tX1DF; d5J_y: gmDkl: goto f_Wqy; R5spQ: $withdrawal_method = getAppConfSd('withdrawal_method'); goto s5msD; JRyUV: $where .= ' and `w`.`create_time` < ' . $datemax; goto fBlAt; UYD5I: $total = count($totalList); goto Jfy3g; f_Wqy: $datemin = strtotime($_GPC['datemin']); goto mHkYO; wywxi: DHbQA: goto epfRI; zDUPJ: if (!($datemin && $datemax)) { goto b4TIc; } goto yDGgS; vCrZv: $pageindex = 0; goto SZnMT; tX1DF: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto T_FxA; ibl50: $withdrawal_status = $_GPC['withdrawal_status']; goto P3dA6; PZ38d: } public function doWebUserAgentCancel() { goto s8t8k; ZNeT3: r3zk7: goto p_H_4; GD6Re: if ($result != false) { goto D3Ost; } goto W0FIh; DsgXP: $result = pdo_update($this->tablePrefix . 'user', array("agent" => 0, "agent_status" => 0, "agent_open_time" => 0), array("id" => $id)); goto GD6Re; W0FIh: $this->json_return('', 0); goto S9lRd; fpvzP: $this->json_return(''); goto ZNeT3; S9lRd: goto r3zk7; goto wp4oB; wp4oB: D3Ost: goto fpvzP; Hb6XB: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto DsgXP; s8t8k: global $_GPC, $_W; goto Hb6XB; p_H_4: } public function doWebUserAgentStatus() { goto deyTO; g4FIQ: MnlCF: goto F952s; S0KIl: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto K0cfx; deyTO: global $_GPC, $_W; goto S0KIl; K0cfx: $status = intval($_GPC['status']); goto F9ty3; z18Tc: $this->json_return('', 0); goto UkQc3; qdWCV: pD6bt: goto s5CWI; s5CWI: $this->json_return(''); goto g4FIQ; F9ty3: $result = pdo_update($this->tablePrefix . 'user', array("agent_status" => $status), array("id" => $id)); goto fykUC; UkQc3: goto MnlCF; goto qdWCV; fykUC: if ($result != false) { goto pD6bt; } goto z18Tc; F952s: } public function WithdrawalApplyMsg($id, $status, $reason = "") { goto lw63a; LY1nU: $msg[1] = ''; goto K1LwK; lw63a: global $_GPC, $_W; goto WhTQR; MIXML: $withdrawal = pdo_fetch('SELECT `id`,`uid`,`profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `id` = :id', array(":id" => $id)); goto Bywry; Bywry: if (!($withdrawal['uid'] > 0)) { goto Cpb94; } goto j4WAX; j4WAX: $touser = $this->getFansInfoByUid($withdrawal['uid'], 'openid'); goto dUERW; SaP8m: if (!(getAppConfSd('account_msg_switch') == 1)) { goto ub8oi; } goto zZipQ; nz5V9: if (!($sub_count > 0)) { goto msWzo; } goto Rjg4C; pBZ2G: pdo_query('UPDATE ' . tablename($this->tablePrefix . 'usersub') . ' SET `audit_msg_sub` = `audit_msg_sub` - 1 WHERE uid = :uid', array(":uid" => $withdrawal['uid'])); goto s1Q1g; dUERW: $page = 'super_card/pages/index/index'; goto SaP8m; WNVqW: ub8oi: goto M2UwS; MSfsL: $sub_count = $temp['audit_msg_sub']; goto nz5V9; XKq0E: Cpb94: goto uh2Pi; zZipQ: $data = array("first" => array("value" => ""), "keyword1" => array("value" => getAppConfSd('app_name')), "keyword2" => array("value" => '' . $withdrawal['profit'] . '' . $msg[$status]), "remark" => array("value" => date('Y-m-d H:i'))); goto Q_3Dg; QtOpg: DLMiB: goto WNVqW; M2UwS: $temp_id = getAppConfSd('audit_results_tempid'); goto I0Tc9; LP6rf: msWzo: goto bgsyw; s1Q1g: pdo_insert($this->tablePrefix . 'msglog', array("uniacid" => $_W['uniacid'], "uid" => $withdrawal['uid'], "msg" => "", "r_content" => $re['content'], "create_time" => time())); goto LP6rf; Rjg4C: $data = array("thing5" => array("value" => str_cut('' . $withdrawal['profit'] . '' . $msg[$status], 50)), "phrase1" => array("value" => $status == 1 ? '' : ''), "date4" => array("value" => date('Y/m/d H:i'))); goto A8gXN; bgsyw: B0rH2: goto XKq0E; WhTQR: $msg = array(); goto LY1nU; UhA3h: if (!($result === true)) { goto DLMiB; } goto vgp29; A8gXN: $re = $this->sendSubMsg($touser, $temp_id, $page, $data); goto pBZ2G; j_5ye: $temp = pdo_fetch('SELECT `audit_msg_sub` FROM ' . tablename($this->tablePrefix . 'usersub') . ' WHERE uid = :uid LIMIT 1', array(":uid" => $withdrawal['uid'])); goto MSfsL; K1LwK: $msg[3] = trim($reason) != '' ? ', ' . trim($reason) . '' : ''; goto MIXML; Q_3Dg: $result = $this->sendAccountMsg($touser, $page, $data, '', $withdrawal['uid']); goto UhA3h; I0Tc9: if (!$temp_id) { goto B0rH2; } goto j_5ye; vgp29: return true; goto QtOpg; uh2Pi: } public function doWebWithdrawalApplyRefuse() { goto k37qn; k37qn: global $_GPC, $_W; goto dpOE3; DHD4I: include $this->template('agent_center/withdrawal_apply_Refuse'); goto Ehp8g; dpOE3: $id = intval($_GPC['id']); goto DHD4I; Ehp8g: } public function doWebWithdrawalApplyRefuseSave() { goto BuHg9; BuHg9: global $_GPC, $_W; goto GNPHK; ofNMK: $this->WithdrawalApplyMsg($id, 3, $reason); goto lTy_T; jcK8Z: ujIdV: goto zWcqw; EY7fe: $reason = trim($_GPC['reason']); goto aTIip; zWcqw: $user = pdo_fetch('SELECT `id`,`agent_balance` FROM ' . tablename($this->tablePrefix . 'user') . ' WHERE `id` = :id', array(":id" => $profit['uid'])); goto gYBlJ; a5Amv: seTqE: goto ofNMK; hYEk4: pdo_update($this->tablePrefix . 'user', array("agent_balance" => $profit['profit'] + $user['agent_balance']), array("id" => $profit['uid'])); goto pikA4; TvNv0: goto y3vpz; goto jcK8Z; DNdVH: y3vpz: goto Ysh3n; pikA4: $result = pdo_update($this->tablePrefix . 'withdrawalapply', array("reason" => $reason, "status" => 3), array("id" => $id)); goto DNdVH; lI97W: goto b_lob; goto a5Amv; aTIip: $profit = pdo_fetch('SELECT `id`,`uid`,`profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `id` = :id', array(":id" => $id)); goto iDJVs; iDJVs: if ($profit['uid'] > 0) { goto ujIdV; } goto B3TX5; lTy_T: $this->json_return(''); goto vteHp; vteHp: b_lob: goto PdiP7; GNPHK: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto EY7fe; CWkcp: $this->json_return('', 0); goto lI97W; gYBlJ: $agent_balance = $profit['profit'] + $user['agent_balance']; goto hYEk4; B3TX5: $this->json_return('', 0); goto TvNv0; Ysh3n: if ($result != false) { goto seTqE; } goto CWkcp; PdiP7: } public function doWebAgentProfitEdit() { goto SIY3g; CXYCk: $id = intval($_GPC['id']); goto AQb8b; AQb8b: include $this->template('agent_center/agent_profit'); goto bP2OS; SIY3g: global $_GPC, $_W; goto CXYCk; bP2OS: } public function doWebAgentProfitSave() { goto Q5dNA; r22XZ: goto ZRSJs; goto Co5Nr; NW6eY: SbABl: goto iGrEN; fXzZN: pdo_insert($this->tablePrefix . 'profitlog', $data); goto MiaI9; WrMOV: $data['create_time'] = time(); goto fXzZN; KrNfC: if (!($data['type'] == 2)) { goto DXOJh; } goto E83hv; H1E_u: $result = pdo_update($this->tablePrefix . 'user', array("agent_profit" => $agent_profit, "agent_balance" => $agent_balance), array("id" => $data['uid'])); goto NW6eY; E83hv: $agent_profit = $user['agent_profit'] - $data['agent_profit'] > 0 ? $user['agent_profit'] - $data['agent_profit'] : $this->json_return(', ', 0); goto Ttwzp; vTm48: goto SbABl; goto arm5A; iGrEN: if ($result != false) { goto Vt9QC; } goto RibNn; kvz_O: ZRSJs: goto GUkhU; LjRIR: $data['uid'] = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto zOave; Ttwzp: $agent_balance = $user['agent_balance'] - $data['agent_profit'] > 0 ? $user['agent_balance'] - $data['agent_profit'] : $this->json_return(', ', 0); goto f9lB9; jChcB: $user = pdo_fetch('SELECT `id`, `agent_profit`,`agent_balance` FROM ' . tablename($this->tablePrefix . 'user') . ' WHERE `id` = :id', array(":id" => $data['uid'])); goto Ye9Gy; RibNn: $this->json_return('', 0); goto r22XZ; MiaI9: $this->json_return(''); goto kvz_O; bP0qn: $agent_balance = $data['agent_profit'] + $user['agent_balance']; goto H1E_u; Y6v7p: DXOJh: goto vTm48; Co5Nr: Vt9QC: goto K_u83; Q5dNA: global $_GPC, $_W; goto LjRIR; arm5A: sQBtp: goto fAr4m; K_u83: $data['change_desc'] = $_GPC['change_desc']; goto uXbQa; uXbQa: $data['uniacid'] = $_W['uniacid']; goto WrMOV; Ye9Gy: if ($data['type'] == 1) { goto sQBtp; } goto KrNfC; zOave: $data['type'] = intval($_GPC['type']) > 0 ? intval($_GPC['type']) : $this->json_return('', 0); goto f7AkD; f9lB9: $result = pdo_update($this->tablePrefix . 'user', array("agent_profit" => $agent_profit, "agent_balance" => $agent_balance), array("id" => $data['uid'])); goto Y6v7p; fAr4m: $agent_profit = $data['agent_profit'] + $user['agent_profit']; goto bP0qn; f7AkD: $data['agent_profit'] = trim($_GPC['agent_profit']) != '' ? trim($_GPC['agent_profit']) : $this->json_return('', 0); goto jChcB; GUkhU: } public function doWebProfitLog() { goto bj2IA; uFxM7: iTzeP: goto BK9kk; grSGH: $pager = pagination($total, $pageindex, $pagesize); goto PnOmv; qtKjR: $pagesize = 10; goto grSGH; PnOmv: $member = pdo_fetch('SELECT `u`.`agent_profit`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'user') . ' `u` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `u`.`id`=`m`.`uid` WHERE `u`.`id` = :uid LIMIT 1', array(":uid" => $uid)); goto BfZxP; HP2q_: $pageindex = $_GPC['page']; goto JwEFV; BfZxP: $list = pdo_getall($this->tablePrefix . 'profitlog', array("uid" => $uid, "uniacid" => $_W['uniacid']), array("id", "agent_profit", "type", "change_desc", "create_time"), '', array("create_time DESC"), array($pageindex, $pagesize)); goto aTE1L; bj2IA: global $_GPC, $_W; goto oH2DD; jSJTT: IDyvU: goto Dzie0; JwEFV: goto iTzeP; goto jSJTT; BK9kk: $totalList = pdo_getall($this->tablePrefix . 'profitlog', array("uid" => $uid, "uniacid" => $_W['uniacid']), array("id"), ''); goto VIiJJ; VIiJJ: $total = count($totalList); goto qtKjR; aTE1L: include $this->template('agent_center/profit_log'); goto O2uIp; Dzie0: $pageindex = 1; goto uFxM7; azcDF: if (!isset($_GPC['page'])) { goto IDyvU; } goto HP2q_; oH2DD: $uid = intval($_GPC['uid']); goto azcDF; O2uIp: } public function doWebSetAgentParent() { goto cgpLF; y2tyq: $total = count($totalList); goto krid4; v_FB9: if (!isset($_GPC['page'])) { goto mBFsi; } goto r1xJD; krid4: $pagesize = 5; goto v_FB9; Nbvar: $nickname = trim($_GPC['nickname']); goto xCdU4; jtiRK: $pageindex1 = 0; goto uDfHR; SPToP: include $this->template('user/set_agent_parent'); goto dUXmB; mv1E1: $url = $this->createWebUrl('setAgentParent'); goto E_Sv4; lfl0u: $pager = pagination($total, $pageindex, $pagesize); goto ykkkN; iijej: $pageindex1 = (intval($_GPC['page']) - 1) * $pagesize; goto PzUTe; dLZ0y: $where = ' WHERE `u`.`uniacid` = ' . $_W['uniacid'] . ' and `u`.`id` <> ' . $id; goto Nbvar; cgpLF: global $_GPC, $_W; goto mv1E1; ykkkN: $list = pdo_fetchall('SELECT `u`.`id`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'user') . ' `u` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `u`.`id`=`m`.`uid` ' . $where . ' LIMIT ' . $pageindex1 . ' , ' . $pagesize); goto SPToP; NKUX6: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto uYAGZ; uYAGZ: lGH3z: goto Hxkuk; PzUTe: goto wyQIy; goto oJ0OI; uDfHR: wyQIy: goto lfl0u; oJ0OI: mBFsi: goto vx2Ei; vx2Ei: $pageindex = 0; goto jtiRK; Hxkuk: $totalList = pdo_fetchall('SELECT `u`.`id` FROM ' . tablename($this->tablePrefix . 'user') . ' `u` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `u`.`id`=`m`.`uid` ' . $where); goto y2tyq; xCdU4: if (!$nickname) { goto lGH3z; } goto NKUX6; E_Sv4: $id = intval($_GPC['id']); goto dLZ0y; r1xJD: $pageindex = $_GPC['page']; goto iijej; dUXmB: } public function doWebSetAgentParentSave() { goto DeSAL; zKdzj: $condition = array(); goto M4hSL; ZzS_S: $this->json_return(''); goto mGA5q; iP1QD: $result = pdo_update($this->tablePrefix . 'user', $condition, array("id" => $id)); goto jKB2N; hAl3Y: $pidArr = explode(',', $pidStr); goto NtCN1; M4hSL: foreach ($pidArr as $v) { goto j3pJW; fX8Ce: $condition['pid' . $i] = $v; goto lTVKi; j3pJW: if ($i == 1) { goto orGxU; } goto fX8Ce; sLSZ2: UCAwS: goto e3zy8; e3zy8: $i++; goto cIfk1; cIfk1: DL6Md: goto MZr2t; lTVKi: goto UCAwS; goto RtwG6; X4wM1: $condition['pid'] = $v; goto sLSZ2; RtwG6: orGxU: goto X4wM1; MZr2t: } goto psofQ; IGUVh: goto m9GqP; goto LTyRV; kktT8: $this->json_return('', 0); goto qAyCR; mGA5q: m9GqP: goto mIb_6; psofQ: Tr0PM: goto iP1QD; DeSAL: global $_GPC, $_W; goto zwLzD; xjMky: if (!($pidStr == false)) { goto J8Fc8; } goto kktT8; NtCN1: $i = 1; goto zKdzj; zwLzD: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto hfdXH; srQmN: $pidStr = $this->getPid($pid); goto xjMky; qAyCR: J8Fc8: goto hAl3Y; Jwaez: $this->json_return('', 0); goto IGUVh; LTyRV: Q3W6L: goto ZzS_S; jKB2N: if ($result != false) { goto Q3W6L; } goto Jwaez; hfdXH: $pid = intval($_GPC['pid']) > 0 ? intval($_GPC['pid']) : $this->json_return('', 0); goto srQmN; mIb_6: } public function getPid($pid) { goto lW7MX; dkljL: return false; goto N3Qpe; N3Qpe: nGDLm: goto qbWb3; qbWb3: if ($parent2['pid'] < 1) { goto LTXst; } goto DfMfp; SR3zf: goto OLUlI; goto gCeXL; nuN1h: return false; goto LnuCd; c3_De: if ($parent['pid'] < 1) { goto jSGw5; } goto Pxg2a; mFoIJ: OLUlI: goto rQu32; KDTen: return $parent['id'] . ',' . $parent['pid'] . ',' . $parent2['pid']; goto fsNfq; T9Cwc: if (!empty($parent2)) { goto nGDLm; } goto dkljL; gCeXL: LTXst: goto RpkT4; ORaDJ: if (!empty($parent)) { goto kjqj8; } goto rAe4a; rAe4a: return false; goto dztrn; c1QiR: return $parent['id']; goto MZhsP; rQu32: xqK3r: goto wDtL0; wDtL0: goto n7igG; goto JnJU2; MZhsP: n7igG: goto ARba6; WvZh1: $parent = pdo_fetch('SELECT `id`,`pid` FROM ' . tablename($this->tablePrefix . 'user') . ' WHERE `id`=:id', array(":id" => $pid)); goto ORaDJ; gWmln: $parent2 = pdo_fetch('SELECT `id`,`pid` FROM ' . tablename($this->tablePrefix . 'user') . ' WHERE `id`=:id', array(":id" => $parent['pid'])); goto T9Cwc; JnJU2: jSGw5: goto c1QiR; DfMfp: if (!($parent2['pid'] > 1)) { goto Ek17P; } goto KDTen; Pxg2a: if (!($parent['pid'] > 1)) { goto xqK3r; } goto gWmln; RpkT4: return $parent['id'] . ',' . $parent['pid']; goto mFoIJ; fsNfq: Ek17P: goto SR3zf; lW7MX: if (!($pid < 1)) { goto hSlOW; } goto nuN1h; dztrn: kjqj8: goto c3_De; LnuCd: hSlOW: goto WvZh1; ARba6: } public function doWebGetAgentLower() { goto HUvSg; U9i9u: nudXu: goto hIeCs; XBYES: $pager = pagination($total, $pageindex, $pagesize); goto yGbuv; dW3S8: $url = $this->createWebUrl('getAgentLower'); goto IEnL9; D8Vv4: if (!($id > 0)) { goto rNnqH; } goto mmtsV; G5jSi: $is_agent = intval($_GPC['is_agent']) > 0 ? intval($_GPC['is_agent']) : 0; goto uzw_A; QO0Nv: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto REdkY; ASnZy: HvWVH: goto z5LOS; vHbMZ: $nickname = trim($_GPC['nickname']); goto GOOjc; REdkY: goto tXF2U; goto tM33L; IVMer: rNnqH: goto DZ3Hn; hIeCs: $allList = pdo_fetchall('SELECT `u`.`id` FROM ' . tablename($this->tablePrefix . 'user') . ' `u` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `u`.`id`=`m`.`uid` ' . $where . '  ORDER BY `u`.`create_time` DESC'); goto BXpAN; D9rVB: HGE6o: goto dc2my; KukCp: zE9_G: goto NOCGu; hG4Rz: if (empty($list)) { goto xAG0v; } goto NmGNf; J_vk6: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto Ni8pB; tM33L: HlZ5Z: goto nMvkf; nMvkf: $pageindex = 0; goto sibps; WmFhE: $pageindex = $_GPC['page']; goto QO0Nv; NDQGw: tXF2U: goto XBYES; dc2my: if (!($datemin && $datemax == false)) { goto HpQyJ; } goto EOXk7; HUvSg: global $_GPC, $_W; goto dW3S8; mmtsV: $where = ' WHERE `u`.`uniacid`= ' . $_W['uniacid'] . ' and ( `u`.`pid` = ' . $id . ' or `u`.`pid2` = ' . $id . ' or `u`.`pid3` = ' . $id . ')'; goto vHbMZ; NmGNf: foreach ($list as $k => $v) { goto raOiM; pOYaE: $list[$k]['total_fee'] = $this->getOrderFee($v['id']); goto CtlZ1; u3nEn: DKBzO: goto ee91A; x0mlp: H7nY2: goto pOYaE; Zb6ea: $list[$k]['relation'] = ''; goto mWZl2; s4YrQ: gbtjK: goto PxQ1e; raOiM: if ($v['pid'] == $id) { goto gbtjK; } goto Zb6ea; PxQ1e: $list[$k]['relation'] = ''; goto x0mlp; uGJ3B: $list[$k]['direct_relation'] = $this->getDirectRelation($v['id']); goto u3nEn; mWZl2: goto H7nY2; goto s4YrQ; CtlZ1: $list[$k]['total_order'] = $this->getOrderTotal($v['id']); goto uGJ3B; ee91A: } goto ZNNAn; JDEoC: HpQyJ: goto v_F2V; NOCGu: $datemin = strtotime($_GPC['datemin']); goto lrDHQ; sibps: $pageindex2 = 0; goto NDQGw; s6bK3: $where .= ' and `u`.`create_time` < ' . $datemax; goto U9i9u; vMONb: if (!($datemin && $datemax)) { goto HGE6o; } goto yBW6J; lrDHQ: $datemax = strtotime($_GPC['datemax']); goto vMONb; J1F65: xAG0v: goto IVMer; uzw_A: if (!($is_agent == 1)) { goto HvWVH; } goto AQNIw; jQ9R8: if (!isset($_GPC['page'])) { goto HlZ5Z; } goto WmFhE; XOHf7: $where .= ' and `u`.`agent` < 1'; goto KukCp; GOOjc: if (!$nickname) { goto YoBit; } goto J_vk6; DZ3Hn: include $this->template('agent_center/get_agent_lower'); goto GyAmt; v_F2V: if (!($datemax && $datemin == false)) { goto nudXu; } goto s6bK3; ZNNAn: GnngU: goto J1F65; z5LOS: if (!($is_agent == 2)) { goto zE9_G; } goto XOHf7; EOXk7: $where .= ' and `u`.`create_time` > ' . $datemin; goto JDEoC; vWI84: $pagesize = 6; goto jQ9R8; BXpAN: $total = count($allList); goto vWI84; Ni8pB: YoBit: goto G5jSi; IEnL9: $id = intval($_GPC['id']); goto D8Vv4; AQNIw: $where .= ' and `u`.`agent` > 0'; goto ASnZy; yBW6J: $where .= ' and `u`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto D9rVB; yGbuv: $list = pdo_fetchall('SELECT `u`.`id`,`u`.`agent`,`u`.`pid`,`u`.`pid2`,`u`.`pid3`,`u`.`create_time`,`m`.`avatar`,`m`.`nickname` FROM ' . tablename($this->tablePrefix . 'user') . ' `u` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `u`.`id`=`m`.`uid` ' . $where . ' ORDER BY `u`.`create_time` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto hG4Rz; GyAmt: } public function getOrderFee($uid) { goto zrPqi; zrPqi: global $_GPC, $_W; goto nTVCU; Yvu91: return $totalFee[0]['totalFee']; goto UOh5U; UOh5U: F4U0X: goto h2fMw; h2fMw: return 0.0; goto CI751; ZNz78: $totalFee = pdo_getall($this->tablePrefix . 'orders', array("uniacid" => $_W['uniacid'], "uid" => $uid, "status" => 1), array("SUM(fee) as totalFee")); goto uL0_M; IdL1u: return 0.0; goto Q6fs4; Q6fs4: eABDB: goto ZNz78; uL0_M: if (!($totalFee[0]['totalFee'] != NULL)) { goto F4U0X; } goto Yvu91; nTVCU: if (!($uid < 1)) { goto eABDB; } goto IdL1u; CI751: } public function getOrderTotal($uid) { goto EkI5X; Y8pPv: if (!($uid < 1)) { goto y4zok; } goto NqGOA; EkI5X: global $_GPC, $_W; goto Y8pPv; Ij99Q: WWNH2: goto H6zRc; qCXWr: $totalOrder = pdo_getall($this->tablePrefix . 'orders', array("uniacid" => $_W['uniacid'], "uid" => $uid, "status" => 1), array("COUNT(*) as total")); goto r59Vv; nPYoT: return $totalOrder[0]['total']; goto Ij99Q; H6zRc: return 0; goto bujik; NqGOA: return 0; goto RRuFo; RRuFo: y4zok: goto qCXWr; r59Vv: if (!($totalOrder[0]['total'] > 0)) { goto WWNH2; } goto nPYoT; bujik: } public function getDirectRelation($uid) { goto CaPDV; zZry8: yJg2x: goto rPGNs; Cr5HB: gQwmv: goto co9so; co9so: $totalNum = pdo_getall($this->tablePrefix . 'user', array("uniacid" => $_W['uniacid'], "pid" => $uid), array("COUNT(*) as total")); goto kcygC; lGpNz: return 0; goto Cr5HB; L6Id2: return $totalNum[0]['total']; goto zZry8; CaPDV: global $_GPC, $_W; goto zu8me; zu8me: if (!($uid < 1)) { goto gQwmv; } goto lGpNz; kcygC: if (!($totalNum[0]['total'] > 0)) { goto yJg2x; } goto L6Id2; rPGNs: return 0; goto N2lmN; N2lmN: } public function doWebAgentStatistics() { goto cfPpc; XgU2I: bdDNc: goto h7M3w; EC1KV: $withdrawal_count['time'] = array_reverse($withdrawal_count['time']); goto o1jXH; nIVcX: $profit_count['totalData'] = array(); goto ntr8I; YCtik: $profitTotalData = pdo_fetch('SELECT SUM(`agent_profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'profitlog') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type` = 1 and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto oEajv; Do714: $start_time = strtotime(date('Y-m-d 00:00:00')); goto DqdVy; FuE3u: yvAHW: goto rEX6_; QN3F9: $month_time = strtotime(date('Y-m-d 00:00:00', strtotime("-{$day} days"))); goto l5gdZ; l1FBe: $month_total_profit = pdo_fetch('SELECT SUM(`agent_profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'profitlog') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type` = 1 and `create_time` BETWEEN ' . $month_time . ' and ' . $start_time); goto JD10b; ntr8I: $profit_count['time'] = array(); goto QtQ4B; XPzKa: $profit_count = array(); goto nIVcX; lzNmg: $withdrawal_count['totalData'][] = $withdrawalData['profit'] > 0 ? $withdrawalData['profit'] : 0; goto YqSZy; W5Lc5: Jxrt1: goto psKly; Mmxlf: $withdrawalData = pdo_fetch('SELECT SUM(`profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 2 and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto lzNmg; oEajv: $profit_count['totalData'][] = $profitTotalData['profit'] > 0 ? $profitTotalData['profit'] : 0; goto xJSGN; l5gdZ: $today_total_profit = pdo_fetch('SELECT SUM(`agent_profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'profitlog') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type` = 1 and `create_time` > ' . $start_time); goto I54b3; OEgJ9: $withdrawal_count['time'] = array(); goto HFQs3; xJSGN: $profit_count['time'][] = date('Y-m-d', strtotime("-{$i} days")); goto Mmxlf; YqSZy: $withdrawal_count['time'][] = date('Y-m-d', strtotime("-{$i} days")); goto W5Lc5; VyfeK: $withdrawal_count = json_encode($withdrawal_count); goto h2b0c; QtQ4B: $withdrawal_count = array(); goto D4Vu1; JD10b: $total_profit = pdo_fetch('SELECT SUM(`agent_profit`) as `profit` FROM  ' . tablename($this->tablePrefix . 'profitlog') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type` = 1'); goto XPzKa; rEX6_: $profit_count['totalData'] = array_reverse($profit_count['totalData']); goto z6DLM; z6DLM: $profit_count['time'] = array_reverse($profit_count['time']); goto a20jI; I54b3: $seven_total_profit = pdo_fetch('SELECT SUM(`agent_profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'profitlog') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type` = 1 and `create_time` BETWEEN ' . $seven_time . ' and ' . $start_time); goto l1FBe; a20jI: $withdrawal_count['totalData'] = array_reverse($withdrawal_count['totalData']); goto EC1KV; lRkZe: goto bdDNc; goto FuE3u; o1jXH: $profit_count = json_encode($profit_count); goto VyfeK; D4Vu1: $withdrawal_count['totalData'] = array(); goto OEgJ9; h2b0c: include $this->template('agent_center/agent_statistics'); goto Kh01E; Knh8H: $day = date('d'); goto QN3F9; KXD6D: $nextday = strtotime(date('Y-m-d 23:59:59', strtotime("-{$i} days"))); goto YCtik; DqdVy: $seven_time = strtotime(date('Y-m-d 00:00:00'), strtotime('-7 days')); goto Knh8H; gMBKV: $prevday = strtotime(date('Y-m-d 00:00:00', strtotime("-{$i} days"))); goto KXD6D; h7M3w: if (!($i < 30)) { goto yvAHW; } goto gMBKV; HFQs3: $i = 0; goto XgU2I; cfPpc: global $_GPC, $_W; goto Do714; psKly: $i++; goto lRkZe; Kh01E: } public function doWebGetAgentStatistics() { goto b4b8A; egI_a: $count = array(); goto CLLkX; JIsvz: $totalData = pdo_fetch('SELECT SUM(`profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 2 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto g5ddD; RSqfT: v3Z4o: goto VEKbj; g5ddD: goto cFnuj; goto li3jg; RHI8K: tLdKC: goto z2XzY; LZxBJ: if ($data['dateType'] == 3) { goto hQC5p; } goto NuROU; zjGek: if ($i == 0) { goto WjMIy; } goto I1I_Z; ls4Jq: REeWR: goto lV8Qp; oiWtz: apdbl: goto x0txm; ZZRbS: DCdbi: goto KSF1l; FNP3d: TOW3c: goto MIzk1; b4b8A: global $_GPC, $_W; goto TbGAx; a7fUg: $date = explode('-', $data['time']); goto SUdGk; X9y90: qIRW8: goto uEAxD; I1I_Z: $count['time'][] = date('H', $prevTime); goto CratD; YZkW_: goto cLt_R; goto tCCTu; XwO61: if (!($i <= $time)) { goto Wk_ka; } goto Uzhty; iJnjx: $i = 0; goto Nqq3B; S98Bg: Em5zt: goto ryNaj; bdMA1: pKus3: goto fYhw4; o4dR_: $totalData = pdo_fetch('SELECT SUM(`agent_profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'profitlog') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto hN1BL; VEKbj: $count['totalData'][] = $totalData['profit'] > 0 ? $totalData['profit'] : 0; goto zjGek; K5m0z: $count['time'][] = date('Y-m-d', $prevTime); goto S98Bg; UB4AP: $i++; goto g2HSL; o8SYZ: hQC5p: goto eVZEN; QvKQt: goto tLdKC; goto JOCW3; GYRfX: LUBnG: goto XwO61; CJxJ3: $prevTime = strtotime(date('Y-m-' . $day . ' ' . $i . ':00:00')); goto zoE_1; gDikZ: if ($data['dateType'] == 0) { goto amZDF; } goto qsQa7; CmeWY: $count['totalData'][] = $totalData['profit'] > 0 ? $totalData['profit'] : 0; goto qbAFy; jM0Py: $i = 0; goto WezCL; Nqq3B: moNCZ: goto Md7Mc; xme8n: mxHmb: goto Bja48; eJ443: if ($i == 0) { goto DMmXc; } goto P22zG; g2HSL: goto LUBnG; goto RSMuP; u9Fd5: $totalData = pdo_fetch('SELECT SUM(`profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 2 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto UtUdE; Md7Mc: if (!($i < 24)) { goto kBByl; } goto CJxJ3; WezCL: cLt_R: goto xQg8d; NuROU: if (!($data['dateType'] == 4)) { goto rugv3; } goto kO0fz; exbes: if ($data['type'] == 1) { goto mxHmb; } goto P4jz6; yS_Xy: $start = date('d', strtotime($date[0])); goto dcXCI; q55ar: if ($data['type'] == 1) { goto qIRW8; } goto ZKc5U; aoNNo: hafJy: goto te3CP; IVvvf: HuH81: goto QvKQt; fYhw4: if (!($i <= $days)) { goto n2nAP; } goto gVKfT; vg_ao: $i = 0; goto GYRfX; XjGOR: goto Sb_xj; goto xme8n; SUdGk: $days = getDays(strtotime($date[0]), strtotime($date[1])); goto jRAIb; eT49C: arlnL: goto EaXxJ; tDVMP: $totalData = pdo_fetch('SELECT SUM(`profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 2 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto CkTgM; fFnw3: $data = $_GPC['data']; goto g8jXm; xgPA3: $nextTime = strtotime(date('Y-m-' . $i . ' 23:59:59')); goto exbes; RZLWj: goto HuH81; goto eT49C; Pavnx: if (strpos($data['time'], '-')) { goto k33gi; } goto lhieh; MIzk1: $totalData = pdo_fetch('SELECT SUM(`agent_profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'profitlog') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto RSqfT; dcXCI: $j = 0; goto yCJM9; lV8Qp: $i++; goto g804f; tZzkI: if ($data['type'] == 1) { goto CZDRX; } goto u9Fd5; DSqpY: goto bK5r8; goto sU72Q; AWqnn: Sb_xj: goto FWm32; qbAFy: $count['time'][] = date('Y-m-d', strtotime("-{$i} days")); goto ZOaP0; lhieh: $this->json_return('', 0); goto DSqpY; CratD: goto Y04Jh; goto yvOnR; CLLkX: $count['totalData'] = array(); goto aJEUJ; zoE_1: $nextTime = strtotime(date('Y-m-' . $day . ' ' . $i . ':59:59')); goto MF3SQ; D09iW: $time = date('H'); goto vg_ao; yvOnR: WjMIy: goto DYIwZ; yalqc: Y04Jh: goto CXoET; Te2xn: $nextday = strtotime(date('Y-m-d 23:59:59', strtotime("-{$i} days"))); goto q55ar; nQNJk: kBByl: goto IVvvf; AaZyR: CZDRX: goto xMO39; g804f: goto vbKOV; goto aoNNo; b3qw4: vbKOV: goto zeq5A; xQg8d: if (!($i < $data['dateType'])) { goto Ih9hJ; } goto Ko352; qwERi: $count['time'] = array_reverse($count['time']); goto T2208; ZOaP0: kFbAz: goto cL4Js; eVZEN: $days = date('t', strtotime('-1 month')); goto f8ICd; t570B: DifYS: goto Lkxch; DQ3aF: goto pKus3; goto dJav4; te3CP: R1CUt: goto jX55I; tCCTu: Ih9hJ: goto mwKll; uEAxD: $totalData = pdo_fetch('SELECT SUM(`agent_profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'profitlog') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type` = 1 and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto LQls9; KSF1l: $count['totalData'][] = $totalData['profit'] > 0 ? $totalData['profit'] : 0; goto K5m0z; x0txm: $i++; goto F345W; g8jXm: if ($data['dateType'] == 7 || $data['dateType'] == 30) { goto rma5a; } goto gDikZ; MF3SQ: if ($data['type'] == 1) { goto rIzdO; } goto JIsvz; jX55I: goto Fg8zR; goto pOXzv; CkTgM: goto DCdbi; goto A1Hnx; Bja48: $totalData = pdo_fetch('SELECT SUM(`agent_profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'profitlog') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto AWqnn; USp8X: $count['time'][] = date('Y-m-d', $prevTime); goto ls4Jq; EaXxJ: $day = date('d'); goto Drbax; lLsD9: goto i72t8; goto tFIjX; n4m9E: $i++; goto v0Fx9; yCJM9: $i = $start; goto b3qw4; HPZd6: $totalData = pdo_fetch('SELECT SUM(`profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 2 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto Be7Rz; P22zG: $count['time'][] = date('H', $prevTime); goto lLsD9; cL4Js: $i++; goto YZkW_; FWm32: $count['totalData'][] = $totalData['profit'] > 0 ? $totalData['profit'] : 0; goto Q1AMX; Uzhty: $prevTime = strtotime(date('Y-m-d ' . $i . ':00:00')); goto obNGX; z2XzY: goto R1CUt; goto IqIfw; Ko352: $prevday = strtotime(date('Y-m-d 00:00:00', strtotime("-{$i} days"))); goto Te2xn; CTugu: $count['time'][] = '   ' . date('H', $prevTime); goto juJnc; li3jg: rIzdO: goto o4dR_; zeq5A: if (!($i <= $days + $start)) { goto hafJy; } goto APWSV; ivLu2: $totalData = pdo_fetch('SELECT SUM(`agent_profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'profitlog') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto ZZRbS; juJnc: i72t8: goto TAJMR; F345W: goto OO2z_; goto t570B; hLKco: goto GjKBp; goto X9y90; gVKfT: $prevTime = strtotime(date('Y-m-' . $i . ' 00:00:00', strtotime('-1 month'))); goto oW3Se; PV2se: $this->json_return('', 1, $count); goto i73qT; P4jz6: $totalData = pdo_fetch('SELECT SUM(`profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 2 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto XjGOR; pOXzv: rma5a: goto jM0Py; v0Fx9: goto moNCZ; goto nQNJk; w8jm4: $prevTime = strtotime(date('Y-m-' . $i . ' 00:00:00')); goto xgPA3; JVRzX: qKxfz: goto xuC11; RSMuP: Wk_ka: goto RHI8K; mwKll: $count['totalData'] = array_reverse($count['totalData']); goto qwERi; bTUWO: if ($data['dateType'] == 2) { goto arlnL; } goto LZxBJ; obNGX: $nextTime = strtotime(date('Y-m-d ' . $i . ':59:59')); goto VbFqT; ryNaj: $i++; goto DQ3aF; F8_SH: $count['type'] = $data['type']; goto PV2se; XBdyN: $i = 1; goto O2o2O; CXoET: pExI1: goto UB4AP; T2208: Fg8zR: goto F8_SH; RWKj5: if ($data['type'] == 1) { goto a1VFz; } goto tDVMP; A1Hnx: a1VFz: goto ivLu2; doALo: if (!($i <= $days)) { goto DifYS; } goto w8jm4; DYIwZ: $count['time'][] = '   ' . date('H', $prevTime); goto yalqc; rUHMN: goto avqfZ; goto o8SYZ; aJEUJ: $count['time'] = array(); goto fFnw3; Y4fFI: $j += 1; goto tZzkI; nh89D: $count['totalData'][] = $totalData['profit'] > 0 ? $totalData['profit'] : 0; goto eJ443; O2o2O: OO2z_: goto doALo; xuC11: $count['totalData'][] = $totalData['profit'] > 0 ? $totalData['profit'] : 0; goto USp8X; oW3Se: $nextTime = strtotime(date('Y-m-' . $i . ' 23:59:59', strtotime('-1 month'))); goto RWKj5; TbGAx: $data = $_GPC['data']; goto egI_a; gEjqu: avqfZ: goto RZLWj; IqIfw: amZDF: goto Pavnx; jRAIb: bK5r8: goto yS_Xy; ZKc5U: $totalData = pdo_fetch('SELECT SUM(`profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 2 and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto hLKco; LQls9: GjKBp: goto CmeWY; hN1BL: cFnuj: goto nh89D; sU72Q: k33gi: goto a7fUg; kyZcZ: $nextTime = strtotime(date('Y-m-d 23:59:59', strtotime($date[0] . '+' . $j . ' day'))); goto Y4fFI; f8ICd: $i = 1; goto bdMA1; Be7Rz: goto v3Z4o; goto FNP3d; dJav4: n2nAP: goto gEjqu; qsQa7: if ($data['dateType'] == 1) { goto xTz6g; } goto bTUWO; xMO39: $totalData = pdo_fetch('SELECT SUM(`agent_profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'profitlog') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto JVRzX; VbFqT: if ($data['type'] == 1) { goto TOW3c; } goto HPZd6; JOCW3: xTz6g: goto D09iW; Drbax: $day -= 1; goto iJnjx; Q1AMX: $count['time'][] = date('Y-m-' . $i, $prevTime); goto oiWtz; kO0fz: $days = date('d'); goto XBdyN; UtUdE: goto qKxfz; goto AaZyR; tFIjX: DMmXc: goto CTugu; Lkxch: rugv3: goto rUHMN; TAJMR: S6lJo: goto n4m9E; APWSV: $prevTime = strtotime(date('Y-m-d 00:00:00', strtotime($date[0] . '+' . $j . ' day'))); goto kyZcZ; i73qT: } public function doWebMemberGrade() { goto A2E0s; qF4Kf: include $this->template('user/member_grade'); goto LvmbW; A2E0s: global $_GPC, $_W; goto Oi9U9; iE1ty: if (!(count($member_grade) > 0 && is_array($member_grade))) { goto ZR3St; } goto i93mF; XeNn0: $list = array(); goto iE1ty; Quxt6: XiFI7: goto aUfJj; i93mF: foreach ($member_grade as $k => $v) { goto SbE5p; vzKwa: $list[$k]['price'] = $v['price']; goto o1kpW; LQ0u6: $list[$k]['name'] = $v['name']; goto vzKwa; o1kpW: d3KP6: goto OeBWr; SbE5p: $list[$k]['id'] = $v['id']; goto LQ0u6; OeBWr: } goto Quxt6; Oi9U9: $member_grade = unserialize(getAppConfSd('member_grade')); goto XeNn0; aUfJj: ZR3St: goto qF4Kf; LvmbW: } public function doWebMemberGradeEdit() { goto fljTK; Q_CcI: $id = intval($_GPC['id']); goto rBNyv; fljTK: global $_GPC, $_W; goto Q_CcI; BCW83: $data = $this->getMemberGrade($id); goto nzmCN; SFR4w: include $this->template('user/member_grade_info'); goto nxtvw; nzmCN: Sx3aI: goto SFR4w; rBNyv: if (!($id > 0)) { goto Sx3aI; } goto BCW83; nxtvw: } public function doWebMemberGradeSave() { goto BWt3L; zQD81: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto qNv6S; mBH3F: $result = pdo_update($this->tablePrefix . $this->configTable, array("uniacid" => $_W['uniacid'], "value" => serialize($list)), array("uniacid" => $_W['uniacid'], "code" => "member_grade")); goto Yc4n9; Yc4n9: if ($result != false) { goto zHv1r; } goto scpO7; g889o: $data['price'] = trim($_GPC['price']) != '' ? trim($_GPC['price']) : $this->json_return('', 0); goto kFLzx; znYTB: $data['status'] = trim($_GPC['status'] ? 1 : 0); goto UetZ0; BWt3L: global $_GPC, $_W; goto zQD81; DUTLE: $data['name'] = trim($_GPC['name']) != '' ? trim($_GPC['name']) : $this->json_return('', 0); goto g889o; Q8B6r: $key = $this->getMemberGrade($id, 1); goto yaJKN; JimfE: $this->json_return(''); goto TNoE4; TNoE4: S4s40: goto s7Mjx; UetZ0: dwfJ8: goto u1e7D; WrTAX: zHv1r: goto JimfE; u1e7D: $list = unserialize(getAppConfSd('member_grade')); goto Q8B6r; qNv6S: $data = $this->getMemberGrade($id); goto Rc1gg; kFLzx: if (!($data['id'] != 1)) { goto dwfJ8; } goto znYTB; GG34R: goto S4s40; goto WrTAX; scpO7: $this->json_return('', 0); goto GG34R; yaJKN: $list[$key] = $data; goto mBH3F; Rc1gg: $data['id'] = intval($data['id']); goto DUTLE; s7Mjx: } public function doWebMemberGradeAuth() { goto COS5V; qXLgZ: $grade_rule = array(); goto z5t7f; mDY0e: fz_tK: goto CQG16; CQG16: $rule_list = json_decode(getAppConfSd('member_rule'), true); goto P_bgk; COS5V: global $_GPC, $_W; goto TH6M9; wywvO: $data = $this->getMemberGrade($id); goto qXLgZ; z5t7f: if (!(strlen($data['grade_rule']) > 0)) { goto fz_tK; } goto WbD28; WbD28: $grade_rule = explode(',', $data['grade_rule']); goto mDY0e; P_bgk: include $this->template('user/member_grade_auth'); goto KLoFU; TH6M9: $id = intval($_GPC['id']); goto wywvO; KLoFU: } public function doWebMemberGradeAuthSave() { goto oZtFn; TUedb: if ($result != false) { goto wzWO1; } goto FIKDp; fbQ43: $list[$key]['grade_rule'] = implode(',', $rule); goto xERax; oZtFn: global $_GPC, $_W; goto Y__t0; kzbo_: $key = $this->getMemberGrade($id, 1); goto fbQ43; vp__9: $rule = is_array($_GPC['rule']) && count($_GPC['rule']) > 0 ? $_GPC['rule'] : $this->json_return('', 0); goto x5Sza; x5Sza: $list = unserialize(getAppConfSd('member_grade')); goto kzbo_; FIKDp: $this->json_return('', 0); goto jkvCs; UMqkU: $this->json_return(''); goto dUpZO; xERax: $result = pdo_update($this->tablePrefix . $this->configTable, array("uniacid" => $_W['uniacid'], "value" => serialize($list)), array("uniacid" => $_W['uniacid'], "code" => "member_grade")); goto TUedb; jkvCs: goto Q8c1w; goto MCKsG; MCKsG: wzWO1: goto UMqkU; dUpZO: Q8c1w: goto zC4r2; Y__t0: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto vp__9; zC4r2: } public function getMemberGrade($id, $type = false) { goto zGXkK; LeuH1: BrK9K: goto HE0xZ; zGXkK: if (!($id != false)) { goto BrK9K; } goto l9HeG; wfUzI: m7xJR: goto LeuH1; l9HeG: $data = getAppConfSd('member_grade'); goto VmNOa; VmNOa: $data = unserialize($data); goto cLwug; cLwug: foreach ($data as $key => $v) { goto MCiK9; MCiK9: if (!($type == false && $id == $v['id'])) { goto CtmwE; } goto I3EIa; oNoU5: RdVOJ: goto hP09a; KzE4b: return $key; goto oNoU5; hP09a: rD3Fb: goto RCm6j; VmKz0: CtmwE: goto HW1BC; I3EIa: return $v; goto VmKz0; HW1BC: if (!($type != false && $id == $v['id'])) { goto RdVOJ; } goto KzE4b; RCm6j: } goto wfUzI; HE0xZ: } public function doWebMemberRule() { goto GvwWO; ZEjkW: include $this->template('user/member_rule'); goto yxrNa; SAj8D: $list = json_decode(getAppConfSd('member_rule'), true); goto ZEjkW; GvwWO: global $_GPC, $_W; goto SAj8D; yxrNa: } public function doWebMemberRuleEdit() { goto qL5lL; XiwAa: $data = $this->getMemberRule($id); goto nqtwQ; Ztrzm: foreach ($list as $key => $v) { $last = $v['id']; N38Do: } goto LYspF; LYspF: Bro59: goto wxL2A; R9yDc: $list = json_decode(getAppConfSd('member_rule'), true); goto qH79H; wxL2A: CtOsn: goto VGbnJ; VGbnJ: $id = $last + 1; goto rLwZC; rTW79: if ($id > 0) { goto jDBED; } goto R9yDc; c2iHz: include $this->template('user/member_rule_info'); goto f6KEm; qL5lL: global $_GPC, $_W; goto oXWiC; rLwZC: goto aZ2fj; goto asXHX; oXWiC: $id = intval($_GPC['id']); goto rTW79; qH79H: $last = 0; goto q3FMn; nqtwQ: aZ2fj: goto c2iHz; asXHX: jDBED: goto XiwAa; q3FMn: if (!(count($list) >= 1)) { goto CtOsn; } goto Ztrzm; f6KEm: } public function doWebMemberRuleSave() { goto ArEaH; qeiRI: KwE55: goto bsiKN; O6Kay: $condition['privilege_introduce'] = trim($_GPC['privilege_introduce']); goto EAmXQ; rgVgf: $list = json_decode(getAppConfSd('member_rule'), true); goto Jj9wF; HlxVB: goto KwE55; goto pIM20; EAmXQ: $key = $this->getMemberRule($id, 1); goto rgVgf; IHjmH: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto J9Nnu; uYwhP: $this->json_return(''); goto qeiRI; m7z8n: $condition['rule_name'] = trim($_GPC['rule_name']) != '' ? trim($_GPC['rule_name']) : $this->json_return('', 0); goto p0Tb_; TPYQi: $this->json_return('', 0); goto HlxVB; p0Tb_: $condition['privilege_name'] = trim($_GPC['privilege_name']); goto O6Kay; ArEaH: global $_GPC, $_W; goto IHjmH; Jj9wF: $list[$key] = $condition; goto xXerv; J9Nnu: $condition['id'] = $id; goto m7z8n; xXerv: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => json_encode($list)), array("uniacid" => $_W['uniacid'], "code" => "member_rule")); goto pi_3J; pIM20: len0c: goto uYwhP; pi_3J: if ($result != false) { goto len0c; } goto TPYQi; bsiKN: } public function getMemberRule($id, $type = false) { goto K9aZU; K2pIe: $data = getAppConfSd('member_rule'); goto B7crz; WCtTo: I7vhd: goto u9lAt; MjMsS: foreach ($data as $key => $v) { goto lwpmo; XECIe: XjhJn: goto zVw2s; DoOJH: C9xfC: goto XECIe; lwpmo: if (!($type == false && $id == $v['id'])) { goto RjMst; } goto PpK6s; PpK6s: return $v; goto hcuUV; hcuUV: RjMst: goto yqOSZ; sm4vT: return $key; goto DoOJH; yqOSZ: if (!($type != false && $id == $v['id'])) { goto C9xfC; } goto sm4vT; zVw2s: } goto WCtTo; B7crz: $data = json_decode($data, true); goto MjMsS; u9lAt: ojrls: goto d_fog; K9aZU: if (!($id != false)) { goto ojrls; } goto K2pIe; d_fog: } public function doWebCardServ() { goto NETY2; IL_vJ: pB7WR: goto IYtG_; eie7Y: $this->json_return(''); goto IL_vJ; khf8n: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto rNkgz; NETY2: global $_GPC, $_W; goto khf8n; rNkgz: $serv = intval($_GPC['serv']); goto cApyu; nMGtP: if ($result != false) { goto DeQSX; } goto Wqhig; Wqhig: $this->json_return('', 0); goto egSwp; cApyu: $result = pdo_update($this->tablePrefix . 'item', array("serv" => $serv), array("id" => $id)); goto nMGtP; egSwp: goto pB7WR; goto hOvBT; hOvBT: DeQSX: goto eie7Y; IYtG_: } public function doWebTurncateQrcode() { goto ag6eC; Wg4V8: $this->json_return(''); goto HNNXM; FG3kV: pdo_update($this->tablePrefix . 'user', array("agent_qrcode" => "", "agent_qrpic" => "")); goto D1bIE; LGYKr: if ($type == 1) { goto DoLt8; } goto TzqoM; HIbS6: ZZQ1J: goto Wg4V8; trrX0: if (!($type < 1)) { goto eXnSP; } goto PuCu9; pj5W3: $type = intval($_GPC['type']); goto trrX0; TzqoM: if (!($type == 2)) { goto W6ePq; } goto FG3kV; Ti0GD: pdo_update($this->tablePrefix . 'item', array("qrcode" => "", "qrcode_diff" => "", "qrcode_pic" => "")); goto HIbS6; ag6eC: global $_GPC, $_W; goto pj5W3; PuCu9: $this->json_return(''); goto D2LNf; D2LNf: eXnSP: goto LGYKr; Tc8qi: DoLt8: goto Ti0GD; D1bIE: W6ePq: goto H8leD; H8leD: goto ZZQ1J; goto Tc8qi; HNNXM: } public function doWebUserAdmin() { goto djcr1; meujU: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto eln3I; lPQgo: uaCND: goto QuuzM; F1OGD: goto uaCND; goto KZHMO; eln3I: $status = intval($_GPC['type']); goto hIvQb; KZHMO: vc25P: goto RXakj; hIvQb: $result = pdo_update($this->tablePrefix . 'user', array("admin" => $status), array("id" => $id)); goto OwCuy; E_1Qv: $this->json_return('', 0); goto F1OGD; OwCuy: if ($result != false) { goto vc25P; } goto E_1Qv; djcr1: global $_GPC, $_W; goto meujU; RXakj: $this->json_return(''); goto lPQgo; QuuzM: } public function doWebUserArtRecord() { goto Tdt4v; EmXVj: $this->json_return(''); goto ttU6y; gkPox: goto AP7en; goto KJ71x; ttU6y: AP7en: goto fiP9R; SR9Im: $status = intval($_GPC['type']); goto CXI8G; CXI8G: $result = pdo_update($this->tablePrefix . 'user', array("art_record" => $status), array("id" => $id)); goto L4VHk; KJ71x: cbpDR: goto EmXVj; L4VHk: if ($result != false) { goto cbpDR; } goto PZ3sG; M56nI: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto SR9Im; PZ3sG: $this->json_return('', 0); goto gkPox; Tdt4v: global $_GPC, $_W; goto M56nI; fiP9R: } public function doWebmailLog() { goto EjlrX; Tk4gV: $url = $this->createWebUrl('mailLog'); goto ZMibf; Ybmy0: xX8mt: goto YIYT4; jGk0X: EQAnA: goto LKPXx; tOSBR: if (!isset($_GPC['page'])) { goto xX8mt; } goto RZA8H; lVjzQ: $pagesize = 8; goto tOSBR; R3ItA: include $this->template('mail_log/mail_log_list'); goto tX1Ru; EEekU: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto ia328; UIIsg: $pageindex2 = 0; goto jGk0X; YIYT4: $pageindex = 0; goto UIIsg; ia328: goto EQAnA; goto Ybmy0; f6sv6: $list = pdo_fetchall('select `m`.`id`,`m`.`receive_name`,`m`.`receive_mail`,`m`.`uid`,`m`.`card_id`,`m`.`status`,`m`.`create_time`,`mc`.`nickname`,`mc`.`avatar`,`i`.`name` FROM ' . tablename($this->tablePrefix . 'maillog') . ' `m` LEFT JOIN  ' . tablename('mc_members') . ' `mc` ON `m`.`uid`=`mc`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `m`.`card_id`=`i`.`id` WHERE `m`.`uniacid` = ' . $_W['uniacid'] . ' order by `m`.`id` DESC  LIMIT ' . $pageindex2 . ',' . $pagesize); goto R3ItA; RZA8H: $pageindex = $_GPC['page']; goto EEekU; ZMibf: $totalList = pdo_fetchall('select `id` FROM ' . tablename($this->tablePrefix . 'maillog') . ' WHERE `uniacid` = ' . $_W['uniacid']); goto MPEp3; EjlrX: global $_GPC, $_W; goto Tk4gV; LKPXx: $pager = pagination($total, $pageindex2, $pagesize); goto f6sv6; MPEp3: $total = count($totalList); goto lVjzQ; tX1Ru: } public function doWebRedPackersRefund() { global $_GPC, $_W; include $this->template('red_packets/red_packets_refund'); } public function doWebRedPackersSave() { global $_GPC, $_W; } public function doWebRedPackersSet() { goto rF7fE; QR8ay: include $this->template('red_packets/red_packets_set'); goto PlRjL; sDRus: F8N8C: goto QR8ay; vA1sO: foreach ($list as $k => $v) { goto DLPnn; DLPnn: if (!($v['code'] == 'red_packets_switch')) { goto LGu0X; } goto OUBE6; WzcH9: TEjXD: goto XBaQo; hIG63: XjSS_: goto W9TiA; NrVHM: $data['red_packets_money'] = $v; goto h6mi3; ZVwBP: $data['red_packets_receivetip'] = $v; goto c2rW_; TKZw_: LGu0X: goto SoRfE; XBaQo: if (!($v['code'] == 'red_packets_overtime')) { goto XjSS_; } goto wpTcW; y4svs: bM_5t: goto IAUZC; iCkym: $data['red_packets_rate'] = $v; goto Jsrf3; rK1DW: ic8Fq: goto IeTI5; bOQsc: qZPIQ: goto CNZ4g; H0dtd: ayRAE: goto ii8NY; SoRfE: if (!($v['code'] == 'red_packets_rate')) { goto Toy5m; } goto iCkym; c2rW_: Vc8Gj: goto ImWSo; pD7Wk: $data['red_packets_autorefund'] = $v; goto y4svs; ImWSo: if (!($v['code'] == 'red_packets_advertising')) { goto ayRAE; } goto bv0vg; UJnds: if (!($v['code'] == 'red_packets_num')) { goto TEjXD; } goto h5zJH; ii8NY: if (!($v['code'] == 'red_packets_autorefund')) { goto bM_5t; } goto pD7Wk; SiB3L: if (!($v['code'] == 'red_packets_money')) { goto AaCRF; } goto NrVHM; QBZ1W: $data['red_packets_sharetext'] = $v; goto bOQsc; IAUZC: xZUEb: goto kGQSM; h5zJH: $data['red_packets_num'] = $v; goto WzcH9; Jsrf3: Toy5m: goto SiB3L; CNZ4g: if (!($v['code'] == 'red_packets_receivetip')) { goto Vc8Gj; } goto ZVwBP; h6mi3: AaCRF: goto UJnds; IeTI5: if (!($v['code'] == 'red_packets_sharetext')) { goto qZPIQ; } goto QBZ1W; jyOU6: $data['red_packets_sharepic'] = $v; goto rK1DW; OUBE6: $data['red_packets_switch'] = $v; goto TKZw_; bv0vg: $data['red_packets_advertising'] = $v; goto H0dtd; W9TiA: if (!($v['code'] == 'red_packets_sharepic')) { goto ic8Fq; } goto jyOU6; wpTcW: $data['red_packets_overtime'] = $v; goto hIG63; kGQSM: } goto sDRus; yAtXx: $list = pdo_fetchall('SELECT `id`,`name`,`code`,`type`,`value`,`tip`,`store_range` FROM ' . tablename($this->tablePrefix . $this->configTable) . ' WHERE `code` in(\'red_packets_rate\',\'red_packets_money\',\'red_packets_num\',\'red_packets_overtime\',\'red_packets_sharepic\', \'red_packets_sharetext\',\'red_packets_receivetip\',\'red_packets_switch\',\'red_packets_advertising\',\'red_packets_autorefund\') and `uniacid` = :uniacid', array(":uniacid" => $_W['uniacid'])); goto vA1sO; rF7fE: global $_GPC, $_W; goto yAtXx; PlRjL: } public function doWebRedPacketsSetSave() { goto MgNUK; pWbGp: pdo_update($this->tablePrefix . $this->configTable, array("value" => $red_packets_rate), array("uniacid" => $_W['uniacid'], "code" => "red_packets_rate")); goto YTZyI; MgNUK: global $_GPC, $_W; goto AK375; mOZfE: $red_packets_sharetext = trim($_GPC['red_packets_sharetext']); goto b_CBY; aYf_X: pdo_update($this->tablePrefix . $this->configTable, array("value" => $red_packets_advertising), array("uniacid" => $_W['uniacid'], "code" => "red_packets_advertising")); goto s3hU7; VFG6X: pdo_update($this->tablePrefix . $this->configTable, array("value" => $red_packets_num), array("uniacid" => $_W['uniacid'], "code" => "red_packets_num")); goto lKX_Y; lKX_Y: pdo_update($this->tablePrefix . $this->configTable, array("value" => $red_packets_overtime), array("uniacid" => $_W['uniacid'], "code" => "red_packets_overtime")); goto Ef297; xQM_q: pdo_update($this->tablePrefix . $this->configTable, array("value" => $red_packets_sharepic), array("uniacid" => $_W['uniacid'], "code" => "red_packets_sharepic")); goto ddyba; Ef297: pdo_update($this->tablePrefix . $this->configTable, array("value" => $red_packets_sharetext), array("uniacid" => $_W['uniacid'], "code" => "red_packets_sharetext")); goto xQM_q; YTZyI: pdo_update($this->tablePrefix . $this->configTable, array("value" => $red_packets_money), array("uniacid" => $_W['uniacid'], "code" => "red_packets_money")); goto VFG6X; i5Wvg: pdo_update($this->tablePrefix . $this->configTable, array("value" => $red_packets_switch), array("uniacid" => $_W['uniacid'], "code" => "red_packets_switch")); goto pWbGp; ddyba: pdo_update($this->tablePrefix . $this->configTable, array("value" => $red_packets_receivetip), array("uniacid" => $_W['uniacid'], "code" => "red_packets_receivetip")); goto aYf_X; POXeH: $this->json_return(''); goto Ziusk; b_CBY: $red_packets_sharepic = trim($_GPC['red_packets_sharepic']); goto KVWc0; s6Zx8: $red_packets_switch = intval($_GPC['red_packets_switch']); goto mfyUK; mfyUK: $red_packets_autorefund = intval($_GPC['red_packets_autorefund']); goto i5Wvg; T_TRO: $red_packets_advertising = trim($_GPC['red_packets_advertising']); goto s6Zx8; KVWc0: $red_packets_receivetip = trim($_GPC['red_packets_receivetip']); goto T_TRO; Qixpe: $red_packets_num = trim($_GPC['red_packets_num']); goto ryuC3; n2F0c: $red_packets_money = trim($_GPC['red_packets_money']); goto Qixpe; s3hU7: pdo_update($this->tablePrefix . $this->configTable, array("value" => $red_packets_autorefund), array("uniacid" => $_W['uniacid'], "code" => "red_packets_autorefund")); goto POXeH; AK375: $red_packets_rate = trim($_GPC['red_packets_rate']); goto n2F0c; ryuC3: $red_packets_overtime = trim($_GPC['red_packets_overtime']); goto mOZfE; Ziusk: } public function doWebRedPacketsItem() { goto ofXbH; QoO52: VppIt: goto fVWni; GRfYv: $where .= ' and `r`.`create_time` < ' . $datemax; goto dz4xN; YJkDP: $list = pdo_fetchall('SELECT `r`.`id`,`r`.`uid`,`r`.`card_id`,`r`.`money`,`r`.`surplus_money`,`r`.`order_no`,`r`.`service_charge`,`r`.`total_num`,`r`.`receive_num`,`r`.`status`,`r`.`create_time`,`r`.`pay_time`,`r`.`expire_time`,`r`.`refund_time`,`m`.`nickname`,`m`.`avatar`,`i`.`name` From ' . tablename($this->tablePrefix . 'redpacketsitem') . ' `r` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `r`.`uid`=`m`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `r`.`card_id`=`i`.`id` ' . $where . ' ORDER BY `r`.`id` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto zyly2; RfNW8: zB5qR: goto fUPyn; DNzOQ: qx3Gu: goto YLEXh; TcoAb: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto iWhRX; hGvSV: GZHRu: goto APlNC; YLEXh: if (!($datemin && $datemax == false)) { goto Wd8Yy; } goto deRwZ; SfJfB: $datemin = strtotime($_GPC['datemin']); goto BG0lr; zl0Oj: if (!$nickname) { goto gmqqO; } goto TcoAb; MA_4l: if (!($statusList != false)) { goto pORYs; } goto DjDkj; ofXbH: global $_GPC, $_W; goto sSy3j; zo9RR: $nickname = trim($_GPC['nickname']); goto zl0Oj; rDoto: foreach ($statusList as $v) { goto G1DII; G1DII: if (!($v['expire_time'] < $time)) { goto ihz0g; } goto NuFul; kPAep: ihz0g: goto qQ0xf; NuFul: pdo_update($this->tablePrefix . 'redpacketsitem', array("status" => 3), array("id" => $v['id'])); goto kPAep; qQ0xf: nXMRa: goto tEjHe; tEjHe: } goto RfNW8; fUPyn: pORYs: goto YJkDP; gF7A8: $pagesize = 6; goto ZLIrG; lxylq: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto uTQhG; VgPNu: if (!($datemin && $datemax)) { goto qx3Gu; } goto NRLpB; AAIb4: u0g2O: goto SfJfB; dz4xN: sgO3y: goto DQaT8; DQaT8: $statusList = pdo_fetchall('SELECT `id`,`status`,`order_no`,`expire_time` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid`=:uniacid and `status` = 1 ORDER BY id DESC LIMIT  ' . $pageindex2 . ',' . $pagesize, array(":uniacid" => $_W['uniacid'])); goto MA_4l; APlNC: $pageindex = 0; goto xdYhm; Xx5PY: if (!($datemax && $datemin == false)) { goto sgO3y; } goto GRfYv; An8Kg: if (!($status != '' && intval($status) !== false)) { goto u0g2O; } goto jPwNo; t87AU: $where = ' WHERE `r`.`uniacid` = ' . $_W['uniacid']; goto zo9RR; BG0lr: $datemax = strtotime($_GPC['datemax']); goto VgPNu; DjDkj: $time = time(); goto rDoto; xdYhm: $pageindex2 = 0; goto QoO52; GwcgD: $totalList = pdo_getall($this->tablePrefix . 'redpacketsitem', array("uniacid" => $_W['uniacid']), array("id"), ''); goto AN67x; Nn3M2: Wd8Yy: goto Xx5PY; deRwZ: $where .= ' and `r`.`create_time` > ' . $datemin; goto Nn3M2; a53xP: $status = $_GPC['status']; goto An8Kg; sSy3j: $url = $this->createWebUrl('redPacketsItem'); goto GwcgD; R3O1J: $pageindex = $_GPC['page']; goto lxylq; uTQhG: goto VppIt; goto hGvSV; jPwNo: $where .= ' and `r`.`status` = ' . intval($status); goto AAIb4; ZLIrG: if (!$_GPC['page']) { goto GZHRu; } goto R3O1J; iWhRX: gmqqO: goto a53xP; fVWni: $pager = pagination($total, $pageindex, $pagesize); goto t87AU; AN67x: $total = count($totalList); goto gF7A8; NRLpB: $where .= ' and `r`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto DNzOQ; zyly2: include $this->template('red_packets/red_packets_item'); goto gY_cW; gY_cW: } public function doWebredPacketsItemInfo() { goto ICz07; XpbH6: $id = intval($_GPC['id']); goto Tgkcx; ICz07: global $_GPC, $_W; goto XpbH6; pEa0M: include $this->template('red_packets/red_packets_item_info'); goto LIc3O; Tgkcx: $data = pdo_fetch('SELECT `rp`.`id`,`rp`.`money`,`rp`.`surplus_money`,`rp`.`service_charge`,`rp`.`total_num`,`rp`.`receive_num`,`rp`.`order_no`,`rp`.`refund_order_no`,`rp`.`share_words`,`rp`.`rp_data`,`rp`.`status`,`rp`.`create_time`,`rp`.`pay_time`,`rp`.`expire_time`,`rp`.`refund_time`,`m`.`nickname`,`m`.`avatar`,`i`.`name` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' `rp` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `rp`.`uid`=`m`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `rp`.`card_id`=`i`.`id` WHERE `rp`.`uniacid`=:uniacid and `rp`.`id`=:id LIMIT 1', array(":uniacid" => $_W['uniacid'], ":id" => $id)); goto pEa0M; LIc3O: } public function doWebRedPacketsLog() { goto s00AK; JUeCO: $total = count($totalList); goto XJMn4; XJMn4: $pager = pagination($total, $pageindex, 12); goto SIHg1; GivLq: $pageindex2 = 0; goto weOXt; rgrS1: $totalList = pdo_getall($this->tablePrefix . 'redpacketslog', array("uid" => $uid, "rp_id" => $rp_id, "uniacid" => $_W['uniacid']), array("id"), ''); goto JUeCO; xqkEP: qjHv3: goto KWult; s00AK: global $_GPC, $_W; goto j8CZa; Y1o67: $pageindex2 = (intval($_GPC['page']) - 1) * 12; goto HatZf; D3w8K: $rp_id = intval($_GPC['rp_id']); goto ZwwAB; j8CZa: $uid = intval($_GPC['uid']); goto D3w8K; d8VR6: $pageindex = $_GPC['page']; goto Y1o67; XuMJY: include $this->template('red_packets/red_packets_log'); goto YpUqu; HatZf: goto D0SHr; goto xqkEP; SIHg1: $data = pdo_fetch('SELECT `share_words` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `id`=:rp_id', array(":rp_id" => $rp_id)); goto WfYA3; weOXt: D0SHr: goto rgrS1; KWult: $pageindex = 0; goto GivLq; WfYA3: $list = pdo_fetchall('SELECT `l`.`id`,`l`.`money`,`l`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'redpacketslog') . ' `l` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `l`.`receive_uid`=`m`.`uid` WHERE `l`.`uniacid` = :uniacid and `l`.`uid`=:uid and `l`.`rp_id`=:rp_id ORDER BY `l`.`create_time` DESC LIMIT ' . $pageindex2 . ',' . 12, array(":uniacid" => $_W['uniacid'], ":uid" => $uid, ":rp_id" => $rp_id)); goto XuMJY; ZwwAB: if (!isset($_GPC['page'])) { goto qjHv3; } goto d8VR6; YpUqu: } public function doWebWithdrawalSet() { goto M5Ldy; sDWPV: $list = pdo_fetchall('SELECT  `name`,`code`,`type`,`store_range`,`value`,`tip` FROM ' . tablename($this->tablePrefix . $this->configTable) . ' WHERE `code` in (\'withdrawal_apply_open\',\'withdrawal_method\',\'min_withdrawal_money\',\'withdrawal_apply_rate\',\'withdrawal_rule_explain\') and `uniacid`=:uniacid', array(":uniacid" => $_W['uniacid'])); goto nnVCh; D8l7J: $data['withdrawal_method']['store_range'] = json_decode($data['withdrawal_method']['store_range'], true); goto Oqg01; nnVCh: foreach ($list as $v) { goto f4GDF; moWg0: $data['withdrawal_apply_open'] = $v; goto EJqv5; s6Ev6: if (!($v['code'] == 'withdrawal_apply_rate')) { goto xg3bY; } goto c2cjA; f4GDF: if (!($v['code'] == 'min_withdrawal_money')) { goto Q4Se3; } goto iW_yB; PkCPo: xg3bY: goto JOfoA; VF2me: $data['withdrawal_rule_explain'] = $v; goto eo2HW; JOfoA: SUpqM: goto WtYwp; tkonR: if (!($v['code'] == 'withdrawal_apply_open')) { goto i0HgI; } goto moWg0; YSd9F: if (!($v['code'] == 'withdrawal_method')) { goto cCv_V; } goto KLVU3; iW_yB: $data['min_withdrawal_money'] = $v; goto cKC3Q; cKC3Q: Q4Se3: goto YSd9F; KLVU3: $data['withdrawal_method'] = $v; goto WIOFs; c2cjA: $data['withdrawal_apply_rate'] = $v; goto PkCPo; EJqv5: i0HgI: goto s6Ev6; im5UC: if (!($v['code'] == 'withdrawal_rule_explain')) { goto jjhGV; } goto VF2me; eo2HW: jjhGV: goto tkonR; WIOFs: cCv_V: goto im5UC; WtYwp: } goto hrlkV; M5Ldy: global $_GPC, $_W; goto sDWPV; hrlkV: vshgj: goto D8l7J; Oqg01: include $this->template('agent_center/withdrawal_set'); goto TfKtp; TfKtp: } public function doWebWithdrawalSetSave() { goto rzoYi; luU8q: $withdrawal_apply_rate = trim($_GPC['withdrawal_apply_rate']); goto xhQK3; gaHBK: pdo_update($this->tablePrefix . $this->configTable, array("value" => $withdrawal_apply_rate), array("uniacid" => $_W['uniacid'], "code" => "withdrawal_apply_rate")); goto TRLRA; WagJi: $withdrawal_rule_explain = trim($_GPC['withdrawal_rule_explain']); goto luU8q; iNjfS: pdo_update($this->tablePrefix . $this->configTable, array("value" => $min_withdrawal_money), array("uniacid" => $_W['uniacid'], "code" => "min_withdrawal_money")); goto fzRo5; xhQK3: pdo_update($this->tablePrefix . $this->configTable, array("value" => $withdrawal_apply_open), array("uniacid" => $_W['uniacid'], "code" => "withdrawal_apply_open")); goto czgE_; siUil: $min_withdrawal_money = trim($_GPC['min_withdrawal_money']); goto WagJi; xRAX2: if (!($min_withdrawal_money > 0)) { goto wd23X; } goto iNjfS; OYrE9: $withdrawal_method = trim($_GPC['withdrawal_method']); goto siUil; czgE_: pdo_update($this->tablePrefix . $this->configTable, array("value" => $withdrawal_method), array("uniacid" => $_W['uniacid'], "code" => "withdrawal_method")); goto xRAX2; mcGh_: $withdrawal_apply_open = intval($_GPC['withdrawal_apply_open']); goto OYrE9; TRLRA: $this->json_return(''); goto QUMKN; OJMqh: pdo_update($this->tablePrefix . $this->configTable, array("value" => $withdrawal_rule_explain), array("uniacid" => $_W['uniacid'], "code" => "withdrawal_rule_explain")); goto gaHBK; rzoYi: global $_GPC, $_W; goto mcGh_; fzRo5: wd23X: goto OJMqh; QUMKN: } public function doWebWithdrawalStatistics() { goto cCl0m; b9MCY: $withdrawal_count = array(); goto hRXYX; VSwio: $i = 0; goto HZzf_; DT32m: $day = date('d'); goto jzSrE; I2CnN: $nextday = strtotime(date('Y-m-d 23:59:59', strtotime("-{$i} days"))); goto KYP3F; d3vbf: $profit_count['time'] = array(); goto b9MCY; vNzoO: $seven_total_withdrawal = pdo_fetch('SELECT SUM(`profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 2 and `create_time` BETWEEN ' . $seven_time . ' and ' . $start_time); goto XUz1x; HZzf_: AN80z: goto UEsl8; LHJ83: $withdrawal_count['totalData'][] = $withdrawalData['profit'] > 0 ? $withdrawalData['profit'] : 0; goto Gtsb7; ku6Xr: $profit_count = array(); goto SgMuC; R28Ec: $total_withdrawal = pdo_fetch('SELECT SUM(`profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 2'); goto ku6Xr; P3xCo: include $this->template('agent_center/withdrawal_statistics'); goto zNekM; WZ6g3: $start_time = strtotime(date('Y-m-d 00:00:00')); goto HaXXl; mINEX: XH93M: goto n9K5V; HI6SE: $withdrawal_count['totalData'] = array_reverse($withdrawal_count['totalData']); goto LgJt9; SgMuC: $profit_count['totalData'] = array(); goto d3vbf; jzSrE: $month_time = strtotime(date('Y-m-d 00:00:00', strtotime("-{$day} days"))); goto Aj7cu; hRXYX: $withdrawal_count['totalData'] = array(); goto qtfXQ; qtfXQ: $withdrawal_count['time'] = array(); goto VSwio; LgJt9: $withdrawal_count['time'] = array_reverse($withdrawal_count['time']); goto GPwIC; cCl0m: global $_GPC, $_W; goto WZ6g3; em2FZ: goto AN80z; goto CN8Iu; HaXXl: $seven_time = strtotime(date('Y-m-d 00:00:00'), strtotime('-7 days')); goto DT32m; Gtsb7: $withdrawal_count['time'][] = date('Y-m-d', strtotime("-{$i} days")); goto mINEX; CFuUO: $profit_count['time'] = array_reverse($profit_count['time']); goto HI6SE; NfDKG: $prevday = strtotime(date('Y-m-d 00:00:00', strtotime("-{$i} days"))); goto I2CnN; Aj7cu: $today_total_withdrawal = pdo_fetch('SELECT SUM(`profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 2 and `create_time` >' . $start_time); goto vNzoO; UEsl8: if (!($i < 30)) { goto PaphG; } goto NfDKG; h7VrG: $profit_count['totalData'] = array_reverse($profit_count['totalData']); goto CFuUO; GPwIC: $profit_count = json_encode($profit_count); goto Q9Msa; n9K5V: $i++; goto em2FZ; XUz1x: $month_total_withdrawal = pdo_fetch('SELECT SUM(`profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 2 and `create_time` BETWEEN ' . $month_time . ' and ' . $start_time); goto R28Ec; Q9Msa: $withdrawal_count = json_encode($withdrawal_count); goto P3xCo; KYP3F: $withdrawalData = pdo_fetch('SELECT SUM(`profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 2 and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto LHJ83; CN8Iu: PaphG: goto h7VrG; zNekM: } public function doWebRedPacketsRefund() { goto QM0et; ZfCXz: $url = $this->createWebUrl('redPacketsRefund'); goto T8fNk; tPsgc: $pageindex = $_GPC['page']; goto WwtTW; NghXj: $where .= ' and `r`.`status` = ' . intval($status); goto IoLFR; IoZVU: $pagesize = 6; goto w9T9n; IoLFR: CC87U: goto bA0EF; ERkr3: $nickname = trim($_GPC['nickname']); goto hVKnW; fbUE5: if (!($status != '' && intval($status) !== false)) { goto CC87U; } goto NghXj; cM4xp: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto i1XT6; mvV1f: CndLC: goto Ifw1V; SvOGL: include $this->template('red_packets/red_packets_refund'); goto hxpDC; DH63r: $where .= ' and `r`.`refund_time` < ' . $datemax; goto l7gKA; HBJME: AeLs8: goto MUQnC; Hp4qt: goto AeLs8; goto R1tmg; WwtTW: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto Hp4qt; l7gKA: UBlKf: goto Jdt0e; mBHex: $status = $_GPC['status']; goto fbUE5; MUQnC: $pager = pagination($total, $pageindex, $pagesize); goto HJIiK; PpukZ: $datemax = strtotime($_GPC['datemax']); goto JjQZk; bWttk: $total = count($totalList); goto IoZVU; LxQRv: nqkpT: goto m3l9s; m3l9s: if (!($datemin && $datemax == false)) { goto CndLC; } goto KOagv; HJIiK: $where = ' WHERE `r`.`uniacid` = ' . $_W['uniacid']; goto ERkr3; bA0EF: $datemin = strtotime($_GPC['datemin']); goto PpukZ; T8fNk: $totalList = pdo_getall($this->tablePrefix . 'redpacketsrefund', array("uniacid" => $_W['uniacid']), array("id"), ''); goto bWttk; Ifw1V: if (!($datemax && $datemin == false)) { goto UBlKf; } goto DH63r; JjQZk: if (!($datemin && $datemax)) { goto nqkpT; } goto yJI9K; i1XT6: ID9Rg: goto mBHex; R1tmg: h4ptC: goto RKEaP; RKEaP: $pageindex = 0; goto JNkuK; w9T9n: if (!$_GPC['page']) { goto h4ptC; } goto tPsgc; Jdt0e: $list = pdo_fetchall('SELECT `r`.`id`,`r`.`reason`,`r`.`result`,`r`.`status`,`r`.`refund_order_no`,`r`.`refund_time`,`i`.`name`,`ri`.`card_id`,`ri`.`order_no`,`i`.`name`,`m`.`nickname`,`m`.`avatar` From ' . tablename($this->tablePrefix . 'redpacketsrefund') . ' `r` LEFT JOIN ' . tablename($this->tablePrefix . 'redpacketsitem') . ' `ri` ON `r`.`rp_id`=`ri`.`id` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `ri`.`card_id`=`i`.`id`  LEFT JOIN ' . tablename('mc_members') . ' `m` ON `i`.`uid`=`m`.`uid`' . $where . ' ORDER BY `r`.`id` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto SvOGL; QM0et: global $_GPC, $_W; goto ZfCXz; KOagv: $where .= ' and `r`.`refund_time` > ' . $datemin; goto mvV1f; yJI9K: $where .= ' and `r`.`refund_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto LxQRv; JNkuK: $pageindex2 = 0; goto HBJME; hVKnW: if (!$nickname) { goto ID9Rg; } goto cM4xp; hxpDC: } public function doWebRedPacketsStatistics() { goto KSKnC; eu0K0: $count = json_encode($count); goto nTl5i; jipKE: $total_payment = pdo_fetch('SELECT SUM(`money`) as `money` From ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` > 0'); goto iOvS9; RPDEP: $prevday = strtotime(date('Y-m-d 00:00:00', strtotime("-{$i} days"))); goto hug4Z; Z0bzT: $count['successData'][] = $successData['count']; goto Urxuo; KSKnC: global $_GPC, $_W; goto uaY2h; hug4Z: $nextday = strtotime(date('Y-m-d 23:59:59', strtotime("-{$i} days"))); goto zrd6T; iOvS9: $total_server_charge = pdo_fetch('SELECT SUM(`service_charge`) as `service_charge` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` > 0'); goto Sb179; Sb179: $total_refund_money = pdo_fetch('SELECT SUM(`money`) as `money` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 4'); goto aiW0Q; TL3fk: $count['time'] = array(); goto xQ18j; kYude: ESEZ4: goto ZuNHh; zCDhc: $count['successData'] = array(); goto jNWLX; KrLpx: $count['successData'] = array_reverse($count['successData']); goto DV8PE; VXSMB: $count['time'][] = date('Y-m-d', strtotime("-{$i} days")); goto khhRV; aiW0Q: $count = array(); goto zCDhc; khhRV: QUQ32: goto saPeO; UCgRP: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto Z0bzT; wC3LV: $count['time'] = array_reverse($count['time']); goto eu0K0; FHwNL: $day = date('d'); goto npWoL; jNWLX: $count['totalData'] = array(); goto TL3fk; kodjw: goto ESEZ4; goto lh_Nq; NFiCO: $nextday1 = date('Y-m-d 23:59:59', strtotime("-{$i} days")); goto RPDEP; uaY2h: $start_time = strtotime(date('Y-m-d 00:00:00')); goto FHwNL; zrd6T: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto UCgRP; npWoL: $month_time = strtotime(date('Y-m-d 00:00:00', strtotime("-{$day} days"))); goto m6DnR; vkUTM: $total_num = pdo_fetch('SELECT COUNT(*) as `count` From ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` > 0'); goto jipKE; m6DnR: $today_total_num = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` > 0 and `create_time` > ' . $start_time); goto c3G2G; ZuNHh: if (!($i < 30)) { goto LFyZ0; } goto R0qK_; R0qK_: $prevday1 = date('Y-m-d 00:00:00', strtotime("-{$i} days")); goto NFiCO; xQ18j: $i = 0; goto kYude; DV8PE: $count['totalData'] = array_reverse($count['totalData']); goto wC3LV; UVPCt: $today_server_charge = pdo_fetch('SELECT SUM(`service_charge`) as `service_charge` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` > 0 and `create_time` > ' . $start_time); goto XIQ7c; Urxuo: $count['totalData'][] = $totalData['count']; goto VXSMB; nTl5i: include $this->template('red_packets/red_packets_statistics'); goto frb6W; saPeO: $i++; goto kodjw; c3G2G: $today_total_money = pdo_fetch('SELECT SUM(`money`) as `money` From ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` > 0  and `create_time` > ' . $start_time); goto UVPCt; XIQ7c: $today_refuld_money = pdo_fetch('SELECT SUM(`money`) as `money` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 4 and `create_time` > ' . $start_time); goto vkUTM; lh_Nq: LFyZ0: goto KrLpx; frb6W: } public function doWebGetRedPacketstStatistics() { goto XyS3x; PxkAG: $count['time'][] = '   ' . date('H', $prevTime); goto BZ9Ha; prNqz: $nextTime = strtotime(date('Y-m-' . $day . ' ' . $i . ':59:59')); goto e1et7; yNVvi: $count = array(); goto UsPMM; c759M: $count['successData'][] = $successData['count']; goto jWXM9; EMWdw: J2pYB: goto kOuuv; b7CPc: LnKe4: goto WpKM0; kjmnC: r2_Se: goto bSeHT; Ob10b: JVar6: goto itilm; itilm: $day = date('d'); goto oK00g; PhI3h: $days = date('d'); goto hNmLh; krHBy: $nextday = strtotime(date('Y-m-d 23:59:59', strtotime("-{$i} days"))); goto oiM6c; UsaJL: $count['totalData'][] = $totalData['count']; goto YmXkB; shMl6: if (strpos($data['time'], '-')) { goto bwFfj; } goto Zxa4k; VvvQu: $nextTime = strtotime(date('Y-m-d 23:59:59', strtotime($date[0] . '+' . $j . ' day'))); goto DJx1B; gAATw: gvy2X: goto f3Hyr; ey3_8: if ($data['dateType'] == 0) { goto gzUMS; } goto KEt9Q; ychW5: $nextTime = strtotime(date('Y-m-' . $i . ' 23:59:59')); goto gVCOl; tOyiR: $count['time'][] = date('Y-m-d', $prevTime); goto gjUBs; oiM6c: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto du1Uk; f5FqH: bwFfj: goto BTgmk; vA7jM: $prevTime = strtotime(date('Y-m-' . $i . ' 00:00:00')); goto ychW5; N_i9q: v2RZv: goto lHEua; i_Q6S: $count['totalData'][] = $totalData['count']; goto PbHNp; VvP7t: $days = getDays(strtotime($date[0]), strtotime($date[1])); goto NKbGe; ywYhI: if (!($data['dateType'] == 4)) { goto v2RZv; } goto PhI3h; hXJjD: if ($data['dateType'] == 3) { goto xEKkc; } goto ywYhI; sx9j7: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto T0LeI; RuRug: s3ARD: goto GPNnT; YmXkB: $count['time'][] = date('Y-m-d', $prevTime); goto bfkvB; KAMHy: $j = 0; goto KswTm; dwWQq: $count['totalData'] = array(); goto P3soM; TOpjG: eDnHG: goto lMh8C; icDUo: goto aWsR2; goto f5FqH; UsPMM: $count['successData'] = array(); goto dwWQq; N3pkC: Ud_At: goto WmfjO; KEt9Q: if ($data['dateType'] == 1) { goto TxoDz; } goto iIL2g; Pok3J: $count['successData'][] = $successData['count']; goto UsaJL; hvcbE: $count['successData'][] = $successData['count']; goto bhWS8; oK00g: $day -= 1; goto c8Z0c; bSeHT: $count['successData'] = array_reverse($count['successData']); goto DDC8I; k1gcc: goto LnKe4; goto AMiHz; e1et7: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto Mwsw_; HUy0c: if ($i == 0) { goto Qcz3C; } goto zQF2w; Bg5Mc: if ($data['dateType'] == 7 || $data['dateType'] == 30) { goto D2zyL; } goto ey3_8; Sujsq: xevV8: goto xh4Vh; NKbGe: aWsR2: goto gVcTF; HGHkJ: $i++; goto F6lvm; ttKHN: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto sx9j7; k_YXT: $count['totalData'][] = $totalData['count']; goto tOyiR; VyK6Q: $days = date('t', strtotime('-1 month')); goto Donj9; b2WHn: $nextTime = strtotime(date('Y-m-' . $i . ' 23:59:59', strtotime('-1 month'))); goto XoWpk; P3soM: $count['time'] = array(); goto pQJ0C; SWOSB: xEKkc: goto VyK6Q; Zxa4k: $this->json_return('', 0); goto icDUo; lHEua: goto OSpyW; goto SWOSB; bfkvB: mnjx1: goto zPgBy; XnQdN: Srklp: goto N_i9q; Mwsw_: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto fkcHU; kmt_3: if (!($i <= $days)) { goto Srklp; } goto vA7jM; jWXM9: $count['totalData'][] = $totalData['count']; goto WwKd4; AzyYX: T4frS: goto Sujsq; GPNnT: $this->json_return('', 1, $count); goto c7nbZ; zHcwU: $count['time'][] = date('Y-m-d', strtotime("-{$i} days")); goto TOpjG; du1Uk: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto hvcbE; MNc5b: vZtNB: goto qLR2N; Zpgnf: Kgc0A: goto EMWdw; aOyuE: $totalData = pdo_fetch('SELECT  COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto an1pP; Jnb3S: Qcz3C: goto RGB3M; qw6p4: j9s8o: goto HGHkJ; ep8Xy: gr5Cn: goto kmt_3; DJx1B: $j += 1; goto ttKHN; iIL2g: if ($data['dateType'] == 2) { goto JVar6; } goto hXJjD; hJQ4n: goto SYSfx; goto mXs_m; HLTGa: goto N3fwQ; goto m7zP9; DDC8I: $count['totalData'] = array_reverse($count['totalData']); goto uLe1Z; XoWpk: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto nkAQ4; xh4Vh: goto s3ARD; goto QTMk3; mijRW: gzUMS: goto shMl6; fKRsK: $prevday = strtotime(date('Y-m-d 00:00:00', strtotime("-{$i} days"))); goto krHBy; hmv9Q: $i++; goto HLTGa; vfn0o: goto Oxols; goto Ob10b; Uh9i6: $prevTime = strtotime(date('Y-m-d ' . $i . ':00:00')); goto tktTW; WwKd4: if ($i == 0) { goto yb4Np; } goto bzbRV; c8Z0c: $i = 0; goto Trq4f; gjUBs: KNoPi: goto RBUvk; uLe1Z: $count['time'] = array_reverse($count['time']); goto RuRug; SeLzp: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto c759M; gVcTF: $start = date('d', strtotime($date[0])); goto KAMHy; mXs_m: FS0dB: goto AVRC3; ehjDP: if (!($i < 24)) { goto FS0dB; } goto IUWln; rsSQL: goto I9h5q; goto V6MqK; f3Hyr: if (!($i <= $days + $start)) { goto T4frS; } goto bBAnM; KswTm: $i = $start; goto gAATw; QTMk3: D2zyL: goto VwgAS; cX_fS: if (!($i < $data['dateType'])) { goto r2_Se; } goto fKRsK; VwgAS: $i = 0; goto fKuLo; bhWS8: $count['totalData'][] = $totalData['count']; goto zHcwU; HJGhH: goto gvy2X; goto AzyYX; WpKM0: goto xevV8; goto mijRW; wGQ6g: goto Kgc0A; goto Jnb3S; V6rlk: if (!($i <= $time)) { goto mvrp8; } goto Uh9i6; F6lvm: goto gr5Cn; goto XnQdN; hNmLh: $i = 1; goto ep8Xy; RGB3M: $count['time'][] = '   ' . date('H', $prevTime); goto Zpgnf; AVRC3: Oxols: goto k1gcc; RBUvk: $i++; goto HJGhH; Trq4f: SYSfx: goto ehjDP; peHq9: $prevTime = strtotime(date('Y-m-' . $i . ' 00:00:00', strtotime('-1 month'))); goto b2WHn; PqkyV: $i = 0; goto B71oB; vn9kD: $time = date('H'); goto PqkyV; f6PbO: goto vZtNB; goto N3pkC; V6MqK: yb4Np: goto PxkAG; an1pP: $count['successData'][] = $successData['count']; goto i_Q6S; gVCOl: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto aOyuE; bBAnM: $prevTime = strtotime(date('Y-m-d 00:00:00', strtotime($date[0] . '+' . $j . ' day'))); goto VvvQu; TJLhW: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto SeLzp; fKuLo: sm34o: goto cX_fS; qLR2N: if (!($i <= $days)) { goto Ud_At; } goto peHq9; Donj9: $i = 1; goto MNc5b; kOuuv: $i++; goto hJQ4n; PbHNp: $count['time'][] = date('Y-m-' . $i, $prevTime); goto qw6p4; XyS3x: global $_GPC, $_W; goto yNVvi; BZ9Ha: I9h5q: goto bpVpE; T0LeI: $count['successData'][] = $successData['count']; goto k_YXT; AMiHz: TxoDz: goto vn9kD; BTgmk: $date = explode('-', $data['time']); goto VvP7t; tktTW: $nextTime = strtotime(date('Y-m-d ' . $i . ':59:59')); goto TJLhW; nkAQ4: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto Pok3J; zPgBy: $i++; goto f6PbO; B71oB: N3fwQ: goto V6rlk; bpVpE: qpU1x: goto hmv9Q; WmfjO: OSpyW: goto vfn0o; lMh8C: $i++; goto mRcp8; mRcp8: goto sm34o; goto kjmnC; IUWln: $prevTime = strtotime(date('Y-m-' . $day . ' ' . $i . ':00:00')); goto prNqz; VJlwJ: $count['totalData'][] = $totalData['count']; goto HUy0c; fkcHU: $count['successData'][] = $successData['count']; goto VJlwJ; pQJ0C: $data = $_GPC['data']; goto Bg5Mc; bzbRV: $count['time'][] = date('H', $prevTime); goto rsSQL; zQF2w: $count['time'][] = date('H', $prevTime); goto wGQ6g; m7zP9: mvrp8: goto b7CPc; c7nbZ: } public function doWebWaitRefund() { goto mlSWJ; BQ6af: $datemax = strtotime($_GPC['datemax']); goto F_p5b; yWEif: $pager = pagination($total, $pageindex, $pagesize); goto xh06i; KjKEc: if (!$_GPC['page']) { goto gOcNZ; } goto w60m0; WQxEV: $totalList = pdo_fetchall('SELECT `r`.`id` From ' . tablename($this->tablePrefix . 'redpacketsitem') . ' `r` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `r`.`uid`=`m`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `r`.`card_id`=`i`.`id` ' . $where . ' ORDER BY `r`.`id` DESC'); goto cyO7S; fB49E: $where = ' WHERE `r`.`uniacid` = ' . $_W['uniacid'] . ' and `r`.`status` = 3'; goto UAtyY; DdYmW: $url = $this->createWebUrl('waitRefund'); goto fB49E; RXv_2: newRi: goto WQxEV; Lb8lo: $where .= ' and `r`.`create_time` > ' . $datemin; goto VjXQl; TvoRq: if (!$nickname) { goto t_Bx7; } goto hD1hj; mlSWJ: global $_GPC, $_W; goto DdYmW; xh06i: $list = pdo_fetchall('SELECT `r`.`id`,`r`.`uid`,`r`.`card_id`,`r`.`money`,`r`.`surplus_money`,`r`.`order_no`,`r`.`service_charge`,`r`.`total_num`,`r`.`receive_num`,`r`.`status`,`r`.`create_time`,`r`.`expire_time`,`m`.`nickname`,`m`.`avatar`,`i`.`name` From ' . tablename($this->tablePrefix . 'redpacketsitem') . ' `r` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `r`.`uid`=`m`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `r`.`card_id`=`i`.`id` ' . $where . ' ORDER BY `r`.`id` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto SGLo1; SGLo1: include $this->template('red_packets/wait_refund'); goto tldZ2; lqgGs: $where .= ' and `r`.`status` = ' . intval($status); goto Wt0Bn; nfAo6: t_Bx7: goto gTh2e; gTh2e: $status = $_GPC['status']; goto yWocY; yoQ6q: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto y0LAg; yWocY: if (!($status != '' && intval($status) !== false)) { goto iLMMQ; } goto lqgGs; uRRG8: if (!($datemax && $datemin == false)) { goto newRi; } goto A27oQ; VjXQl: IQk9b: goto uRRG8; epyF9: OTqoe: goto fIqOC; fIqOC: if (!($datemin && $datemax == false)) { goto IQk9b; } goto Lb8lo; hD1hj: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto nfAo6; hyThO: gOcNZ: goto xObvO; w60m0: $pageindex = $_GPC['page']; goto yoQ6q; cyO7S: $total = count($totalList); goto yF6Xt; Wt0Bn: iLMMQ: goto eiD4E; y0LAg: goto YvJT1; goto hyThO; UAtyY: $nickname = trim($_GPC['nickname']); goto TvoRq; A27oQ: $where .= ' and `r`.`create_time` < ' . $datemax; goto RXv_2; xObvO: $pageindex = 0; goto eRX0s; Tza2J: $where .= ' and `r`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto epyF9; F_p5b: if (!($datemin && $datemax)) { goto OTqoe; } goto Tza2J; YpGIL: YvJT1: goto yWEif; eiD4E: $datemin = strtotime($_GPC['datemin']); goto BQ6af; yF6Xt: $pagesize = 6; goto KjKEc; eRX0s: $pageindex2 = 0; goto YpGIL; tldZ2: } public function doWebShowCreateCdkey() { goto LRp8L; LRp8L: global $_GPC, $_W; goto JUmkP; JUmkP: $member_grade = unserialize(getAppConfSd('member_grade')); goto t3Vjf; t3Vjf: include $this->template('user/create_cdkey'); goto bJsfm; bJsfm: } public function doWebCreateCdkey() { goto F3W0M; AqqKD: $i++; goto M0x9N; MOdYC: Pg_mY: goto oIl33; oIl33: $j++; goto YItTd; gK4Rz: pzPA8: goto AqqKD; md24U: if (in_array($type, array(1, 2, 3))) { goto Z62Kf; } goto pLulb; MPNpg: hPR2_: goto md24U; A3wGv: $data = array("uniacid" => $_W['uniacid'], "code" => $pcode, "type" => $type, "create_time" => time()); goto QYQhZ; YItTd: goto AtMAK; goto cOE5o; kyojm: $num = intval($_GPC['num']); goto lAsyE; Ooudf: $pcode .= $pcodex; goto MOdYC; SHtjm: if (!($num > 1000)) { goto OB3wk; } goto WL6D1; sfplR: Ylsgx: goto gK4Rz; M0x9N: goto olK68; goto hlbPM; FPw0a: $type = intval($_GPC['type']); goto hU1Iu; cOE5o: o0kve: goto A3wGv; izaqE: OB3wk: goto skSeH; F3W0M: global $_GPC, $_W; goto FPw0a; ClCor: Z62Kf: goto kyojm; qy5yJ: exit; goto sfplR; YnH6v: $offset = rand(0, 28); goto v1cUi; ZWJsK: if (!($j < 4)) { goto o0kve; } goto YnH6v; DLxwo: $code = md5(date('Y-m-d H:i:s') + strval($i) + strval($microtime_float)); goto sba8b; oUZv_: $i = 0; goto U9u30; h3GkT: $this->json_return('', 0); goto TuRWh; pLulb: $this->json_return('', 0); goto ClCor; COTUs: list($usec, $sec) = explode(' ', microtime()); goto uwZx_; sba8b: $pcode = ''; goto KlNjp; hU1Iu: if ($type) { goto hPR2_; } goto PYM1s; uwZx_: $microtime_float = (double) $usec + (double) $sec; goto DLxwo; LVOh7: if ($result) { goto Ylsgx; } goto KCwG6; przod: if (!($i < $num)) { goto XGDRS; } goto AOMD8; y2x0x: AtMAK: goto ZWJsK; hlbPM: XGDRS: goto s_xAg; v1cUi: $pcodex = strtoupper(substr($code, $offset, 3)); goto Ooudf; TuRWh: Z_85Z: goto SHtjm; PYM1s: $this->json_return('', 0); goto MPNpg; WL6D1: $this->json_return('1000', 0); goto izaqE; AOMD8: usleep(100); goto COTUs; KCwG6: $this->json_return('', 0); goto qy5yJ; QYQhZ: $result = pdo_insert($this->tablePrefix . 'cdkey', $data); goto LVOh7; s_xAg: $this->json_return('', 1); goto ySDqc; skSeH: $data = array(); goto oUZv_; KlNjp: $j = 0; goto y2x0x; lAsyE: if ($num) { goto Z_85Z; } goto h3GkT; U9u30: olK68: goto przod; ySDqc: } public function doWebExchangeVipLog() { goto dOkQV; aVlA_: if (!$code) { goto GI6sD; } goto Mdt1f; w2fRd: $where .= ' and `e`.`create_time` < ' . $datemax; goto No_oC; JfeVL: goto np22P; goto KTijK; VyrXe: $total = $res['total']; goto HRzqg; bhr0z: $pageindex2 = 0; goto qaKe1; eh6ID: $datemin = strtotime($_GPC['datemin']); goto uqd5Q; Mdt1f: $where .= ' and `e`.`code` =\'' . $code . '\''; goto YUsHH; dOkQV: global $_GPC, $_W; goto yx9MC; HRzqg: $pagesize = 6; goto Y7wJs; Q1UMA: ln9Km: goto eh6ID; PWL9n: if (!$nickname) { goto ln9Km; } goto P6plJ; zXm7y: $pageindex = 0; goto bhr0z; YUsHH: GI6sD: goto O8cB1; UTE_A: $code = trim($_GPC['code']); goto aVlA_; Kpro1: $pager = pagination($total, $pageindex, $pagesize); goto Fv2A9; P6plJ: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto Q1UMA; Fv2A9: $list = pdo_fetchall('SELECT e.*,m.`nickname`,m.`avatar` From ' . tablename($this->tablePrefix . 'exchangeviplog') . ' AS `e` LEFT JOIN ' . tablename('mc_members') . ' AS `m` ON `e`.`uid`=`m`.`uid`' . $where . ' ORDER BY `e`.`create_time` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto jIjaT; wLNXP: if (!($datemin && $datemax)) { goto C44i0; } goto NjX5m; Y7wJs: if (!$_GPC['page']) { goto CHsLx; } goto kioEV; kioEV: $pageindex = $_GPC['page']; goto JKtLN; NjX5m: $where .= ' and `e`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto TwQd_; RfeR8: $where .= ' and `e`.`create_time` > ' . $datemin; goto Dl766; jIjaT: include $this->template('user/exchange_vip_log'); goto aOFP3; YRGnO: if (!($datemin && $datemax == false)) { goto nWbkX; } goto RfeR8; No_oC: cq2jW: goto j6LPC; KTijK: CHsLx: goto zXm7y; qaKe1: np22P: goto Kpro1; j6LPC: $res = pdo_fetch('SELECT count(`e`.`id`) as total From ' . tablename($this->tablePrefix . 'exchangeviplog') . ' AS `e` LEFT JOIN ' . tablename('mc_members') . ' AS `m` ON `e`.`uid`=`m`.`uid`' . $where); goto VyrXe; Dl766: nWbkX: goto JJ3kD; yx9MC: $url = $this->createWebUrl('exchangeVipLog'); goto jlgvD; JKtLN: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto JfeVL; uqd5Q: $datemax = strtotime($_GPC['datemax']); goto wLNXP; jlgvD: $where = ' WHERE `e`.`uniacid` = ' . $_W['uniacid']; goto UTE_A; O8cB1: $nickname = trim($_GPC['nickname']); goto PWL9n; TwQd_: C44i0: goto YRGnO; JJ3kD: if (!($datemax && $datemin == false)) { goto cq2jW; } goto w2fRd; aOFP3: } public function doWebMemberCdkey() { goto vGJUZ; bYV2n: $pager = pagination($total, $pageindex, $pagesize); goto QSgqv; gzEGN: $total = $res['total']; goto VvuK_; DyykH: header('Content-Disposition:attachment; filename=.csv'); goto jnJbc; QSgqv: $member_grade = unserialize(getAppConfSd('member_grade')); goto nNXxa; GV4MV: $pageindex = 0; goto BCML6; FTsz_: header('Content-Type: application/vnd.ms-excel'); goto DyykH; XxGta: $html = cdkey_export_parse($list, $available_fields); goto FTsz_; XDXLJ: echo $html; goto cCeTW; SO7d0: S2MMG: goto H2NT3; E4JKB: xDYOV: goto mWtWo; TWVIe: if (!($datemin && $datemax)) { goto xDYOV; } goto FIfGA; nNXxa: $list = pdo_fetchall('SELECT c.* From ' . tablename($this->tablePrefix . 'cdkey') . ' AS `c` ' . $where . ' ORDER BY `c`.`id` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto IXXFi; kBPya: $available_fields = array("code" => "", "type" => "", "status" => "", "create_time" => ""); goto en421; RAqv4: if (!isset($_GPC['export'])) { goto KU71n; } goto kBPya; IXXFi: include $this->template('user/member_cdkey'); goto xWTER; AtlM8: FRNTP: goto GV4MV; Q6sMC: $status = $_GPC['status']; goto GAzj5; C3708: if (!($datemax && $datemin == false)) { goto Y3rfI; } goto JYom2; onJxD: $res = pdo_fetch('SELECT count(`c`.`id`) as total From ' . tablename($this->tablePrefix . 'cdkey') . ' AS `c` ' . $where); goto gzEGN; criOL: $where = ' WHERE `c`.`uniacid` = ' . $_W['uniacid']; goto xsTsi; Jy8XW: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto ZJfuM; AUiOC: $url = $this->createWebUrl('memberCdkey'); goto criOL; liOPp: if (!$_GPC['page']) { goto FRNTP; } goto ZHnNp; NjRhH: $type = $_GPC['type']; goto iDSbA; nZ1s5: if (!$code) { goto smoRp; } goto H_3i_; q2Y2h: smoRp: goto Q6sMC; cCeTW: exit; goto hc2yp; wNVSQ: s3059: goto C3708; H2NT3: $datemin = strtotime($_GPC['datemin']); goto qv1r4; H_3i_: $where .= ' and `c`.`code` = \'' . $code . '\''; goto q2Y2h; aGqrd: wHdKp: goto NjRhH; VvuK_: $pagesize = 13; goto liOPp; en421: $keys = implode(',', array_keys($available_fields)); goto xleYj; vGJUZ: global $_GPC, $_W; goto AUiOC; xleYj: $list = pdo_fetchall("SELECT {$keys} From " . tablename($this->tablePrefix . 'cdkey') . ' AS `c` ' . $where . ' ORDER BY `c`.`id` DESC'); goto XxGta; mWtWo: if (!($datemin && $datemax == false)) { goto s3059; } goto k4ebJ; ZHnNp: $pageindex = $_GPC['page']; goto Jy8XW; q3qxq: $where .= ' and `c`.`type` = ' . intval($type); goto SO7d0; iDSbA: if (!($type != '' && intval($type) !== false)) { goto S2MMG; } goto q3qxq; jnJbc: header('Cache-Control: max-age=0'); goto XDXLJ; Qc2FP: $where .= ' and `c`.`status` = ' . intval($status); goto aGqrd; ZJfuM: goto J5r3E; goto AtlM8; wuvpF: Y3rfI: goto RAqv4; xsTsi: $code = trim($_GPC['code']); goto nZ1s5; JYom2: $where .= ' and `c`.`create_time` < ' . $datemax; goto wuvpF; k4ebJ: $where .= ' and `c`.`create_time` > ' . $datemin; goto wNVSQ; qv1r4: $datemax = strtotime($_GPC['datemax']); goto TWVIe; FIfGA: $where .= ' and `c`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto E4JKB; hc2yp: KU71n: goto onJxD; BCML6: $pageindex2 = 0; goto eKJPr; GAzj5: if (!($status != '' && intval($status) !== false)) { goto wHdKp; } goto Qc2FP; eKJPr: J5r3E: goto bYV2n; xWTER: } public function doWebredPacketsItemStatus() { goto Tu6e8; XVFK9: if (!($list != false)) { goto J17TI; } goto m8MIq; W_osf: J17TI: goto XpePn; H1sC7: bPSy5: goto W_osf; tcfLB: $list = pdo_fetchall('SELECT `id`,`status`,`expire_time` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid`=:uniacid and `status` = 1', array(":uniacid" => $_W['uniacid'])); goto XVFK9; m8MIq: $time = time(); goto hxgrb; Tu6e8: global $_GPC, $_W; goto tcfLB; hxgrb: foreach ($list as $v) { goto fLOnl; K1j_E: pdo_update($this->tablePrefix . 'redpacketsitem', array("status" => 3), array("id" => $v['id'])); goto Ccnfc; Ccnfc: yXPJL: goto MXG4I; fLOnl: if (!($v['expire_time'] < $time)) { goto yXPJL; } goto K1j_E; MXG4I: sk0s3: goto hV4jz; hV4jz: } goto H1sC7; XpePn: } public function doWebRedPacketsItemRefound() { goto JFVMF; TgZi6: if ($result != false) { goto AxTyB; } goto OpReM; CZxbE: $result = refund_wx_pocket($data['order_no']); goto TgZi6; eB6lW: goto q2Gsg; goto u64cf; JFVMF: global $_GPC, $_W; goto ekIsd; ekIsd: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto m7ubi; gzgwg: q2Gsg: goto bSso0; m7ubi: $data = pdo_fetch('SELECT `id`,`order_no` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `id`=:id LIMIT 1', array(":id" => $id)); goto CZxbE; u64cf: AxTyB: goto hdi1Z; hdi1Z: $this->json_return(''); goto gzgwg; OpReM: $this->json_return('', 0); goto eB6lW; bSso0: } public function doWebRedPacketsItemRefounds() { goto ddtcw; oRsir: $idArr = $_GPC['idArr']; goto yEi_W; wm3Z0: foreach ($list as $key => $v) { $result = refund_wx_pocket($v['order_no']); hktpJ: } goto V9som; UJJFX: X8EVH: goto qLWwZ; NlWu7: $this->json_return(''); goto GSYf0; jEaLd: JA2Dz: goto pNAPN; Rdg99: goto tE6dS; goto qxahm; R2EpA: $list = pdo_fetchall('SELECT `id`,`order_no` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE  `uniacid` = ' . $_W['uniacid'] . ' and `id` in (' . implode(',', $idArr) . ') and `status` = 3'); goto K1czt; xTA8N: Y2R6T: goto hC3VB; K1czt: rZ1x0: goto jEaLd; GtKTn: if (!($type == 2)) { goto JA2Dz; } goto oRsir; K1fvL: if ($type == 1) { goto Y2R6T; } goto GtKTn; pNAPN: goto X8EVH; goto xTA8N; GSYf0: tE6dS: goto CQbqA; hC3VB: $list = pdo_getAll($this->tablePrefix . 'redpacketsitem', array("uniacid" => $_W['uniacid'], "status" => 3), array("id", "order_no"), ''); goto UJJFX; ddtcw: global $_GPC, $_W; goto wxCrQ; wxCrQ: $type = intval($_GPC['type']); goto K1fvL; V9som: VKsYQ: goto NlWu7; mpthP: $this->json_return('', 0); goto Rdg99; yEi_W: if (!(is_array($idArr) && count($idArr) >= 1)) { goto rZ1x0; } goto R2EpA; qxahm: J8ISx: goto wm3Z0; qLWwZ: if (count($list) >= 1) { goto J8ISx; } goto mpthP; CQbqA: } public function doWebRedPacketsItemAjaxRefound() { goto N3EEw; MprOf: DEiwc: goto yMxuV; ZK6ic: if (!($switch != 1)) { goto Y_bvc; } goto jBqOL; NseSP: $list = pdo_fetchall('SELECT `id`,`order_no`,`status` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid`=:uniacid and `status` = 3', array(":uniacid" => $_W['uniacid'])); goto nuvR0; jBqOL: return false; goto s1SdM; HT1Mo: foreach ($list as $key => $v) { refund_wx_pocket($v['order_no']); mdq5I: } goto MprOf; s1SdM: Y_bvc: goto NseSP; nuvR0: if (!(count($list) >= 1)) { goto S0fRd; } goto HT1Mo; dJnep: $switch = getAppConfSd('red_packets_autorefund'); goto ZK6ic; N3EEw: global $_GPC, $_W; goto dJnep; yMxuV: S0fRd: goto xb7HT; xb7HT: } public function doWebVideoEdit() { goto ivp_m; WlFvo: include $this->template('video/video_info'); goto yl1eO; zJDYM: $id = intval($_GPC['id']); goto RV5Hc; RV5Hc: $card_id = intval($_GPC['card_id']); goto eCrCz; ivp_m: global $_GPC, $_W; goto zJDYM; wRA29: $data = pdo_fetch('SELECT `id`,`name`,`path`,`thumb`,`status`,`duration`,`size` FROM ' . tablename($this->tablePrefix . 'video') . ' WHERE `id`=:id and `uniacid`=:uniacid LIMIT 1', array(":id" => $id, ":uniacid" => $_W['uniacid'])); goto H18tW; eCrCz: if (!($id > 0)) { goto PDT3A; } goto wRA29; H18tW: PDT3A: goto WlFvo; yl1eO: } public function doWebItemVideoSave() { goto wMnEM; T28HP: if ($result != false) { goto L4hNH; } goto yVZhb; znBU_: $condition['status'] = intval($_GPC['status']); goto aQMn6; MNK0r: if (!(trim($_GPC['path']) == '')) { goto SqDh7; } goto UoTdE; NkWZ6: xjesD: goto Day6V; MWwMc: NVhKG: goto pyJQ1; gEH1H: $condition['path'] = $_GPC['path']; goto MCTgY; cD6Q9: $condition['create_time'] = time(); goto H8L4m; repam: $id = intval($_GPC['id']); goto E4Qoo; W8KTx: L4hNH: goto Y4vTZ; TUG1E: $this->json_return('', 0); goto OCPJq; OCPJq: GQnZx: goto MNK0r; Y4vTZ: $this->json_return(''); goto MWwMc; aQMn6: if ($id > 0) { goto xjesD; } goto YrDC7; E4Qoo: if (!($card_id < 1 && $id < 1)) { goto GQnZx; } goto TUG1E; H8L4m: $result = pdo_insert($this->tablePrefix . 'video', $condition); goto B6oY_; wMnEM: global $_GPC, $_W; goto frZuu; Ro7MR: SqDh7: goto FuIcp; oH1Xk: $result = pdo_update($this->tablePrefix . 'video', $condition, array("id" => $id)); goto O02sV; B6oY_: goto JudYQ; goto NkWZ6; MCTgY: $condition['thumb'] = $_GPC['thumb']; goto YPUwR; KWZfZ: $condition['uniacid'] = $_W['uniacid']; goto cD6Q9; O02sV: JudYQ: goto T28HP; UoTdE: $this->json_return('', 0); goto Ro7MR; yVZhb: $this->json_return('', 0); goto Sl2fm; Y9ipA: $condition['size'] = intval($_GPC['size']); goto znBU_; Sl2fm: goto NVhKG; goto W8KTx; frZuu: $card_id = intval($_GPC['card_id']); goto repam; YrDC7: $condition['card_id'] = $card_id; goto KWZfZ; FuIcp: $condition['name'] = trim($_GPC['name']); goto gEH1H; YPUwR: $condition['duration'] = intval($_GPC['duration']); goto Y9ipA; Day6V: $condition['update_time'] = time(); goto oH1Xk; pyJQ1: } public function doWebAudioEdit() { goto dzmRb; JyOKB: $card_id = intval($_GPC['card_id']); goto ma3_C; ma3_C: if (!($id > 0)) { goto i7327; } goto RKI18; cW5DJ: i7327: goto tcEAM; tcEAM: include $this->template('audio/audio_info'); goto L6EgD; dzmRb: global $_GPC, $_W; goto ixbkD; RKI18: $data = pdo_fetch('SELECT `id`,`name`,`path`,`duration`,`size`,`status` FROM ' . tablename($this->tablePrefix . 'audio') . ' WHERE `id`=:id and `uniacid`=:uniacid LIMIT 1', array(":id" => $id, ":uniacid" => $_W['uniacid'])); goto cW5DJ; ixbkD: $id = intval($_GPC['id']); goto JyOKB; L6EgD: } public function doWebItemAudioSave() { goto dRwn3; mcCdZ: $result = pdo_insert($this->tablePrefix . 'audio', $condition); goto n8JJl; CTLXj: TY9dF: goto prnaN; dRwn3: global $_GPC, $_W; goto QEOG0; w4E1m: UByMb: goto C3848; QEOG0: $card_id = intval($_GPC['card_id']); goto DSPb2; F2Prp: if ($id > 0) { goto UByMb; } goto c0sMr; C3848: $condition['update_time'] = time(); goto AiX05; WC4dT: $condition['duration'] = intval($_GPC['duration']); goto dbslt; WfRqy: if ($result != false) { goto YsNks; } goto lopvi; itUn3: YsNks: goto M6iJR; AiX05: $result = pdo_update($this->tablePrefix . 'audio', $condition, array("id" => $id)); goto xMgeF; SDFVg: if (!($card_id < 1 && $id < 1)) { goto PD5Y8; } goto rkCZz; n8JJl: goto TIiUg; goto w4E1m; prnaN: $condition['name'] = trim($_GPC['name']); goto cVmIe; lopvi: $this->json_return('', 0); goto Ga3Ru; Zvfg9: $condition['uniacid'] = $_W['uniacid']; goto Lg0B3; UCoPu: if (!(trim($_GPC['path']) == '')) { goto TY9dF; } goto UJtB7; jcpjD: FJQmv: goto pEtvB; DSPb2: $id = intval($_GPC['id']); goto SDFVg; M6iJR: $this->json_return(''); goto jcpjD; N6SYG: $condition['status'] = intval($_GPC['status']); goto F2Prp; xMgeF: TIiUg: goto WfRqy; UJtB7: $this->json_return('', 0); goto CTLXj; Lg0B3: $condition['create_time'] = time(); goto mcCdZ; c0sMr: $condition['card_id'] = $card_id; goto Zvfg9; cVmIe: $condition['path'] = $_GPC['path']; goto WC4dT; dbslt: $condition['size'] = intval($_GPC['size']); goto N6SYG; rkCZz: $this->json_return('', 0); goto f3hFi; Ga3Ru: goto FJQmv; goto itUn3; f3hFi: PD5Y8: goto UCoPu; pEtvB: } public function doWebArtPoster() { goto pbgu8; W81vg: $poster_data = json_decode($design['data'], true); goto KcAaD; M2XTU: Tt08H: goto g7dNU; w0Zvv: foreach ($poster_data as $key => $value) { goto yRunv; OjirL: v8PIe: goto nci4t; yRunv: if (!($value['type'] == 'img')) { goto v8PIe; } goto qV3nf; qV3nf: $img_key = $key; goto OjirL; nci4t: lRwrA: goto VYekw; VYekw: } goto M2XTU; lACjx: $design = unserialize(getAppConfSd('art_qrcode_design')); goto W81vg; g7dNU: gBRjA: goto H1fDL; pbgu8: global $_GPC, $_W; goto lACjx; H1fDL: include $this->template('art/poster'); goto Wj2eO; KcAaD: $img_key = 0; goto UgyXG; UgyXG: if (!(count($poster_data) > 0)) { goto gBRjA; } goto w0Zvv; Wj2eO: } public function doWebArtDesignSave() { goto kSe4J; C12St: if ($result != false) { goto pQhRo; } goto sN982; aq7dy: vbEkX: goto c_Tpx; sN982: $this->json_return('', 0); goto GynNc; Xnv8f: $this->json_return(''); goto HDDlY; NaegM: $data = str_replace('&quot;', '"', $_GPC['poster']); goto mNVwO; RD8Pj: $data = serialize($data); goto XV64Z; wYW3W: pdo_update($this->tablePrefix . 'art', array("poster" => "")); goto C12St; GynNc: goto nPu6u; goto hbyy_; kSe4J: global $_GPC, $_W; goto CyN_W; CyN_W: if (empty($_GPC['poster']['data'])) { goto vbEkX; } goto NaegM; XV64Z: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("uniacid" => $_W['uniacid'], "code" => "art_qrcode_design")); goto wYW3W; HDDlY: nPu6u: goto aq7dy; mNVwO: $data['data'] = json_decode($data['data'], true); goto ocTiT; XhONi: $data['data'] = json_encode($data['data']); goto RD8Pj; ocTiT: foreach ($data['data'] as $key => $v) { goto DePEX; XIl_H: KQrcY: goto IgOH_; YKOLt: s40br: goto XIl_H; DePEX: if (!($v['type'] == 'img' && $v['img'] == '')) { goto s40br; } goto q6b3T; q6b3T: unset($data['data'][$key]); goto YKOLt; IgOH_: } goto NM5m3; hbyy_: pQhRo: goto Xnv8f; NM5m3: NgeBM: goto XhONi; c_Tpx: } } goto Ob6NA; hFgoB: $_W['otherConfigs'] = (require_once 'common/config.php'); goto zHSqi; zHSqi: require 'common/func.php'; goto ItsmJ; Ob6NA: ?>

Did this file decode correctly?

Original Code

<?php
 goto zW8gV; zW8gV: defined('IN_IA') or exit('Access Denied'); goto hFgoB; ItsmJ: class Super_cardModuleSite extends WeModuleSite { private $pageCount = 10; private $tablePrefix = ""; private $configTable = ""; function __construct() { goto yCmkt; YDwYR: SXqwQ: goto SuCSX; viJko: SA7e8: goto Jf4B9; DnkFa: $this->tablePrefix = $_W['otherConfigs']['table_prefix']; goto QhAsF; D46TF: $count = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . $this->configTable) . ' WHERE `uniacid` = ' . $_W['uniacid']); goto oB20e; aUWWR: $feeData = array(); goto m4W_c; KQx1_: $ruleData = array(); goto aUWWR; QhAsF: $this->configTable = $_W['otherConfigs']['config_table']; goto D46TF; WvSUp: if ($count < 1) { goto cdGU3; } goto ussdv; kqczE: jqp2u: goto VaDvl; Jf4B9: foreach ($configParent as $k => $v) { goto kPXJl; hKI0x: WZjh4: goto WZjSJ; pwXMD: hiAru: goto TcOAX; kPXJl: if ($v['code'] === $basicData['code']) { goto fJMwU; } goto wjAYh; WZjSJ: $this->doWebUpdatecode($v['code'], $v, $feeData); goto B0g7M; MjcIe: UZ7de: goto Y3i12; InsSw: if ($v['code'] == $feeData['code']) { goto WZjh4; } goto IsBsl; zmMyH: $this->doWebUpdatecode($v['code'], $v, $otherData); goto pwXMD; Y3i12: goto J3fTZ; goto mHwoa; M2yt4: $this->doWebUpdatecode($v['code'], $v, $basicData); goto lbfrB; KBn0G: goto UZ7de; goto xW2Vw; YLjNS: $this->doWebUpdatecode($v['code'], $v, $msgTemData); goto MGmdD; xW2Vw: EPmf5: goto E1HBD; mHwoa: fJMwU: goto M2yt4; PUyQe: goto FimKd; goto hKI0x; wjAYh: if ($v['code'] == $ruleData['code']) { goto EPmf5; } goto InsSw; C5qgW: If2W4: goto YLjNS; E1HBD: $this->doWebUpdatecode($v['code'], $v, $ruleData); goto MjcIe; h3xST: Ky1HI: goto is5xU; lbfrB: J3fTZ: goto h3xST; IsBsl: if ($v['code'] == $msgTemData['code']) { goto If2W4; } goto IV3uB; B0g7M: FimKd: goto KBn0G; TcOAX: goto pVRCx; goto C5qgW; IV3uB: if (!($v['code'] == $otherData['code'])) { goto hiAru; } goto zmMyH; MGmdD: pVRCx: goto PUyQe; is5xU: } goto vth0T; nRXkP: IWWKH: goto YDwYR; l0pcy: $configParent = array(); goto YsfrJ; c_Xqv: cdGU3: goto j2lJa; VaDvl: goto SXqwQ; goto c_Xqv; oB20e: $arr = getOtherConf('config_item_list'); goto WvSUp; zBQ6I: $otherData = array(); goto VbYQe; rH8AB: $afterData = pdo_getall($this->tablePrefix . $this->configTable, array("parent_id >" => "0", "uniacid" => $_W['uniacid']), array("id", "parent_id", "code", "name", "value", "type", "store_range", "value", "tip", "status", "sort_order"), ''); goto lih5R; l_Z0g: $basicData = array(); goto KQx1_; IIaFr: foreach ($configParent as $v) { goto XzbPt; XzbPt: unset($v['children']); goto LDjPm; LDjPm: foreach ($oldParent as $v2) { goto n7bzr; BOpaE: $v['sort_order'] = intval($v['sort_order']); goto qGNr5; xF2dQ: O5Ogl: goto Bhzhp; qGNr5: pdo_update($this->tablePrefix . $this->configTable, $v, array("code" => $v['code'], "uniacid" => $_W['uniacid'])); goto xF2dQ; iUTMG: $v['status'] = intval($v['status']); goto BOpaE; MxGWu: $v['uniacid'] = intval($_W['uniacid']); goto iUTMG; Bhzhp: k1QaE: goto bXPRx; n7bzr: if (!($v2['code'] == $v['code'])) { goto O5Ogl; } goto MxGWu; bXPRx: } goto xy52i; xy52i: TOCoA: goto mAv1b; mAv1b: xgSXz: goto GReV6; GReV6: } goto e1GWK; j2lJa: foreach ($arr as $key => $v) { goto mH5sn; mH5sn: $v2 = $v; goto VMo0s; KV9ba: ANtcn: goto YyeJG; VMo0s: unset($v2['children']); goto PZEWO; aL6F8: if (empty($re)) { goto E6k5d; } goto q1Kjy; RZ4lS: $re = pdo_insert($this->tablePrefix . $this->configTable, $v2); goto aL6F8; PZEWO: $v2['uniacid'] = $_W['uniacid']; goto RZ4lS; JOrID: E6k5d: goto KV9ba; nwNmh: foreach ($v['children'] as $v3) { goto XZJmu; WeLRV: $v3['parent_id'] = $config_id; goto G28In; XZJmu: $v3['uniacid'] = $_W['uniacid']; goto WeLRV; Yqqq4: q8q_N: goto oRPQF; G28In: pdo_insert($this->tablePrefix . $this->configTable, $v3); goto Yqqq4; oRPQF: } goto BnXeC; q1Kjy: $config_id = pdo_insertid(); goto nwNmh; BnXeC: zFvVx: goto JOrID; YyeJG: } goto nRXkP; VSjIi: $oldParent = pdo_getall($this->tablePrefix . $this->configTable, array("parent_id" => "0", "uniacid" => $_W['uniacid']), array("id", "parent_id", "code", "name", "value", "type", "store_range", "value", "tip", "status", "sort_order"), ''); goto l0pcy; e1GWK: zyYy_: goto rH8AB; vth0T: m5QBP: goto kqczE; lih5R: foreach ($afterData as $k => $v) { goto y08IJ; M7FoG: hiIfj: goto eFzqJ; UyYLD: $basicData['codes'][$v['code']] = $v['code']; goto HQByX; slRsW: ydSCy: goto aksyr; RzQPa: t4lbu: goto tF2kX; aSdZx: $basicData['children'][] = $v; goto UyYLD; eFzqJ: if (!($v['parent_id'] === $msgTemData['id'])) { goto t4lbu; } goto U4yR8; HvRMP: $ruleData['children'][] = $v; goto tEE1t; StRVF: $otherData['children'][] = $v; goto Vsnps; Vsnps: ssRPV: goto slRsW; tF2kX: if (!($v['parent_id'] === $otherData['id'])) { goto ssRPV; } goto StRVF; fUF2c: if (!($v['parent_id'] === $ruleData['id'])) { goto OoA45; } goto HvRMP; U4yR8: $msgTemData['children'][] = $v; goto RzQPa; y08IJ: if (!($v['parent_id'] === $basicData['id'])) { goto A7UqU; } goto aSdZx; YhIve: $feeData['children'][] = $v; goto M7FoG; HQByX: A7UqU: goto fUF2c; tEE1t: OoA45: goto FwZnz; FwZnz: if (!($v['parent_id'] === $feeData['id'])) { goto hiIfj; } goto YhIve; aksyr: } goto viJko; yCmkt: global $_GPC, $_W; goto DnkFa; tD_aY: V2Gsg: goto kEgID; VbYQe: $oldData = pdo_getall($this->tablePrefix . $this->configTable, array("uniacid" => $_W['uniacid']), array("id", "parent_id", "code"), ''); goto VSjIi; kEgID: foreach ($oldData as $key => $v) { goto gDhsI; D3aVR: EBW3p: goto MPYE3; k6CmA: SCRJX: goto Tbjv1; njpBQ: goto syOgg; goto QIs_k; ueO5C: if (!($v['code'] == 'other_group_set')) { goto ILzak; } goto vsBBX; i6Nwg: goto EBW3p; goto kU00l; TJsLC: $msgTemData = $v; goto wzRiX; jH_rL: $testArr[] = $v['code']; goto k47Eo; fIZ2u: y7VV7: goto dXmL2; Oo713: if ($v['code'] == 'fee_set') { goto y7VV7; } goto AvoyA; RQ8au: yzToO: goto AR74X; k47Eo: pdo_delete($this->tablePrefix . $this->configTable, array("code" => $v['code'], "uniacid" => $_W['uniacid'])); goto Hwj32; AR74X: goto cdBPz; goto IOjwb; yhWlq: cdBPz: goto i6Nwg; IOjwb: OMzOu: goto cHkhX; cHkhX: $ruleData = $v; goto yhWlq; dXmL2: $feeData = $v; goto RQ8au; AvoyA: if ($v['code'] == 'message_template_set') { goto gt3Np; } goto ueO5C; GsLms: ILzak: goto njpBQ; Tbjv1: s4W9v: goto XjbTx; kU00l: tYXT8: goto cJMi2; bwZR8: if ($v['code'] == 'rule_set') { goto OMzOu; } goto Oo713; N0Phs: if (in_array($v['code'], $codes)) { goto KS05_; } goto jH_rL; gDhsI: if ($v['code'] == 'basic_set') { goto tYXT8; } goto bwZR8; vsBBX: $otherData = $v; goto GsLms; Hwj32: KS05_: goto k6CmA; ZyCez: goto yzToO; goto fIZ2u; QIs_k: gt3Np: goto TJsLC; wzRiX: syOgg: goto ZyCez; cJMi2: $basicData = $v; goto D3aVR; MPYE3: if (!($v['type'] != 'group')) { goto SCRJX; } goto N0Phs; XjbTx: } goto ZXgbU; ZXgbU: dnhLD: goto IIaFr; m4W_c: $msgTemData = array(); goto zBQ6I; YsfrJ: foreach ($arr as $k => $v) { goto aftVl; dLIYw: Ygpyy: goto WdmVo; wmVbm: q4Fh1: goto LxQ3U; aftVl: $codes[] = $v['code']; goto YUzBk; rc4rA: foreach ($v['children'] as $k2 => $v3) { goto pbmbA; pbmbA: $codes[] = $v3['code']; goto iUfUF; WEWwk: rtZHi: goto cJx7a; iUfUF: $configParent[$k]['children'][] = $v3; goto WEWwk; cJx7a: } goto dLIYw; WdmVo: arvDM: goto wmVbm; InF7m: unset($v2['children']); goto Lloj4; YUzBk: if (!($v['parent_id'] == '0' && $v['type'] == 'group')) { goto q4Fh1; } goto RiiuU; LxQ3U: iyY7_: goto PwhjZ; RiiuU: $v2 = $v; goto InF7m; Lloj4: $configParent[] = $v2; goto c5QF2; c5QF2: if (!isset($v['children'])) { goto arvDM; } goto rc4rA; PwhjZ: } goto tD_aY; ussdv: $status = $this->doWebSystemUpdateStatus($arr); goto RPmla; RPmla: if (!($status !== true)) { goto jqp2u; } goto l_Z0g; SuCSX: } public function doMobileEditSave() { goto XXtS1; XXtS1: global $_GPC, $_W; goto SK4rk; aqi5H: $content = str_replace('http://img01.store.sogou.com/net/a/04/link?appid=100520029&url=', '', html_entity_decode(trim($_GPC['art_content']))); goto X_234; F8KPb: $result = pdo_update($this->tablePrefix . 'art', array("content" => $content), array("id" => $art_id)); goto sKUYs; hFx2d: wJsPX: goto aqi5H; YXu6l: message(''); goto hFx2d; f3SQD: $art_id = intval($_GPC['art_id']); goto sOFbw; sOFbw: if (!($art_id < 1)) { goto wJsPX; } goto YXu6l; X_234: $content = str_replace('data-href', 'href', $content); goto F8KPb; SK4rk: load()->func('tpl'); goto f3SQD; sKUYs: $this->json_return('', 0, $result); goto EAW6W; EAW6W: } public function doMobileArt() { goto Z6PXk; EHfPV: $rs[1] = array_unique($rs[1]); goto InAjj; DVZws: $art['content'] = str_replace('onclick="afterSelected(this);"', '', $art['content']); goto Sf4Ei; iJpfO: $view_list = pdo_fetchall('select t.`create_time`, i.`name`, i.`picture`, i.`qrcode`, count(*) AS counts FROM ' . tablename($this->tablePrefix . 'artrecord') . ' as t LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' as i ON i.`id` = t.`card_id` WHERE t.`art_id`=' . $art_id . " AND t.`uid` <> {$art['uid']} GROUP BY t.`card_id` ORDER BY t.`create_time` DESC LIMIT 10"); goto VzrYb; Z4fUe: $art['content'] = str_replace('display:none;', '', $art['content']); goto GYiM7; GYiM7: $art['content'] = str_replace('width: 0px;', '', $art['content']); goto DVZws; a3o6U: $view_list_length = sizeof($view_list); goto GHwrh; zBYVA: if (!($art_id < 1)) { goto GDfPI; } goto u1Rz_; rWQJ4: AO3eH: goto w7sGD; wuu9a: message(''); goto rWQJ4; Kpvnt: $art_id = intval($_GPC['art_id']); goto zBYVA; uY9pj: GDfPI: goto lAviF; uHXNd: foreach ($imgs as $k => $img) { $imgs[$k] = 'http://img01.store.sogou.com/net/a/04/link?appid=100520029&url=' . $img; pTpj4: } goto dwY6J; xjdlo: load()->func('tpl'); goto Kpvnt; InAjj: $imgs = $rs[1]; goto uHXNd; w7sGD: $art['picture'] = getFileUrlSd($art['picture']); goto a2Lhl; No_6g: foreach ($rec_list as $k => $v) { $rec_list[$k]['pic'] = getFileUrlSd($v['pic']); RScLw: } goto C1vKs; Sf4Ei: $art['content'] = preg_replace('/<iframe.*?\\ssrc=".*?".*?>/is', '', $art['content']); goto jM91i; Z6PXk: global $_GPC, $_W; goto xjdlo; a2Lhl: $art['qrcode'] = getFileUrlSd($art['qrcode']); goto h1OvT; jM91i: $rec_list = pdo_fetchall('SELECT a.`id`, a.`card_id`, a.`title`, a.`pic`, a.`views`, a.`forwards`, c.`name` FROM ' . tablename($this->tablePrefix . 'art') . ' as a LEFT JOIN ' . tablename($this->tablePrefix . 'artcate') . " as c ON a.`cate_id` = c.`id` WHERE a.`card_id` = {$art['card_id']} AND a.`id` <> {$art_id} AND a.`status` = 1 ORDER BY a.`views` DESC LIMIT 5"); goto No_6g; lAviF: $art = pdo_fetch('SELECT a.`id`, a.`uid`, a.`card_id`, a.`title`, a.`content`, a.`share_words`, a.`pic`, a.`create_time`, i.`name`, i.`picture`, i.`company`, i.`mobile`, i.`title` as `card_title`, i.`qrcode` FROM ' . tablename($this->tablePrefix . 'art') . ' as a LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' as i ON i.`id` = a.`card_id` WHERE a.`id`=:art_id', array(":art_id" => $art_id)); goto qzp0V; GHwrh: include $this->template('article_content'); goto yzB1k; VzrYb: foreach ($view_list as $k => $v) { goto D2QVi; D8907: $view_list[$k]['qrcode'] = getFileUrlSd($v['qrcode']); goto HLxfW; D2QVi: $view_list[$k]['picture'] = getFileUrlSd($v['picture']); goto D8907; HLxfW: kllhD: goto ZuKOZ; ZuKOZ: } goto OMfG5; MZT2U: $art['content'] = str_replace($rs[1], $imgs, $art['content']); goto Z4fUe; h1OvT: preg_match_all('/<img.*?\\ssrc="(.*?)".*?>/is', $art['content'], $rs); goto EHfPV; C1vKs: iAiun: goto iJpfO; dwY6J: Vc1Jv: goto MZT2U; u1Rz_: message(''); goto uY9pj; OMfG5: jW_AA: goto a3o6U; qzp0V: if ($art) { goto AO3eH; } goto wuu9a; yzB1k: } public function doMobileArtEdit() { goto DM6HA; DM6HA: global $_GPC, $_W; goto dzSHh; c0a_1: foreach ($imgs as $k => $img) { $imgs[$k] = 'http://img01.store.sogou.com/net/a/04/link?appid=100520029&url=' . $img; BL7uE: } goto C6Azf; q67g6: $imgs = $rs[1]; goto c0a_1; JkNcn: $art['content'] = str_replace('width: 0px;', '', $art['content']); goto QY6z8; iMqm6: $rs[1] = array_unique($rs[1]); goto q67g6; r8xY2: if (!($art_id < 1)) { goto WoQe0; } goto gahfy; UkHMQ: $art['content'] = str_replace($rs[1], $imgs, $art['content']); goto h6LEq; cJVvM: preg_match_all('/<img.*?\\ssrc="(.*?)".*?>/is', $art['content'], $rs); goto iMqm6; dzSHh: load()->func('tpl'); goto l74ji; C6Azf: Yd4wN: goto UkHMQ; KXOKB: if ($art) { goto xlfwG; } goto i711B; A_g1w: $art = pdo_fetch('SELECT a.`content`, i.`name`, i.`picture`, i.`company`, i.`mobile`, i.`title` as `card_title`, i.`qrcode` FROM ' . tablename($this->tablePrefix . 'art') . ' as a LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' as i ON i.`id` = a.`card_id` WHERE a.`id`=:art_id', array(":art_id" => $art_id)); goto KXOKB; FOq_j: $art['qrcode'] = getFileUrlSd($art['qrcode']); goto cJVvM; h6LEq: $art['content'] = str_replace('display:none;', '', $art['content']); goto JkNcn; g33N2: xlfwG: goto KYuPl; ZZccW: WoQe0: goto A_g1w; i711B: message(''); goto g33N2; KYuPl: $art['picture'] = getFileUrlSd($art['picture']); goto FOq_j; l74ji: $art_id = intval($_GPC['art_id']); goto r8xY2; Yq_kP: $art['content'] = preg_replace('/<iframe.*?\\ssrc=".*?".*?>/is', '', $art['content']); goto L4MEU; gahfy: message(''); goto ZZccW; QY6z8: $art['content'] = str_replace('href', 'data-href', $art['content']); goto Yq_kP; L4MEU: include $this->template('article_edit'); goto NSuLj; NSuLj: } public function doMobileUploadTempPic() { goto EWaEE; s06sC: if ($_GPC['noUrl']) { goto dqq5_; } goto CMMwc; ORiHC: $this->json_return('' . $result['message'], 1); goto WWRaT; Si1tF: return $this->json_return('ok', 0, $result); goto fnJmz; EWaEE: global $_GPC, $_W; goto oG0rx; WWRaT: FnAkb: goto s06sC; A0ia7: if (!($result['success'] !== true)) { goto FnAkb; } goto ORiHC; CMMwc: $result['path'] = getFileUrlSd($result['path']); goto V4cRY; V4cRY: dqq5_: goto Si1tF; oG0rx: $result = $this->uploadFile($_FILES['pic']); goto A0ia7; fnJmz: } private function uploadFile($file, $type = "image") { goto JIauX; O4CO7: load()->func('file'); goto St1Oq; hqyLe: $res = file_remote_upload($result['path'], true); goto Wo2FM; YCy1i: if (!(intval($_W['setting']['remote']['type']) > 0)) { goto Nt9Vf; } goto hqyLe; CIPo2: rho0T: goto AD7y5; St1Oq: $result = file_upload($file, $type); goto YCy1i; Wo2FM: if (!isset($res['errno'])) { goto rho0T; } goto LfSC_; LfSC_: return $this->json_return($res['message'], 1); goto CIPo2; AD7y5: Nt9Vf: goto KmqYu; JIauX: global $_GPC, $_W; goto O4CO7; KmqYu: return $result; goto QgydU; QgydU: } private function doWebUpdatecode($code, $configParentData, $tableParent) { goto C_cjq; C_cjq: global $_GPC, $_W; goto G9loi; oiJ_5: Wrtic: goto RqDwk; nMK7i: g6mbS: goto yNF9o; vbETv: foreach ($configParentData['children'] as $v) { goto gksED; bQbGT: hs3Hj: goto AGqJW; M_OWJ: $v['sort_order'] = intval($v['sort_order']); goto RKupa; o6FG4: $v['parent_id'] = $tableParent['id']; goto eF06v; gksED: $v['uniacid'] = $_W['uniacid']; goto o6FG4; RKupa: pdo_insert($this->tablePrefix . $this->configTable, $v); goto bQbGT; eF06v: $v['status'] = intval($v['status']); goto M_OWJ; AGqJW: } goto nMK7i; yNF9o: LX2na: goto ThlNe; G9loi: foreach ($configParentData['children'] as $k2 => $v2) { goto KJo2W; Ooieu: clO7Y: goto BrxLU; KJo2W: foreach ($tableParent['children'] as $j => $item) { goto bdgjp; pgouB: unset($configParentData['children'][$k2]); goto wVNYo; lA0gU: if (!($item['value'] === '' || $item['code'] == 'system_update_status')) { goto UB2mh; } goto kzuGl; wVNYo: unset($tableParent['children'][$j]); goto JkOTR; bdgjp: if (!($item['code'] === $v2['code'])) { goto Fsidv; } goto lA0gU; xSckx: pdo_update($this->tablePrefix . $this->configTable, $v2, array("code" => $v2['code'], "uniacid" => $_W['uniacid'])); goto YHdQK; kzuGl: $v2['status'] = intval($v2['status']); goto R_kh2; wQZwn: WvOIL: goto cQVet; R_kh2: $v2['sort_order'] = intval($v2['sort_order']); goto xSckx; YHdQK: UB2mh: goto pgouB; JkOTR: Fsidv: goto wQZwn; cQVet: } goto Ooieu; BrxLU: z_ke7: goto Zqn1S; Zqn1S: } goto oiJ_5; RqDwk: if (!(count($configParentData['children']) > 0)) { goto LX2na; } goto vbETv; ThlNe: } private function doWebSystemUpdateStatus($arr) { goto TiadI; TiadI: global $_GPC, $_W; goto eLoUr; W9DIg: $temp = false; goto FEPEL; CWgJZ: return $temp; goto WkkUR; OlCKm: r_3lH: goto KkI4g; KkI4g: foreach ($arr as $k => $v) { goto XDend; XDend: if (!($v['code'] == 'basic_set')) { goto F_n6L; } goto GoGEn; fvy6i: F_n6L: goto LSVc9; GoGEn: foreach ($v['children'] as $k2 => $v2) { goto vp3NN; z1Aqx: $temp = false; goto YyyCZ; ab3kU: $temp = true; goto qq0Bc; TVDwv: if (intval($v2['value']) !== intval($status)) { goto b1cWF; } goto ab3kU; kwlUf: goto UL_ne; goto wFo3X; rxOtU: TYOjV: goto W4ltw; qq0Bc: goto VxvJy; goto OAGxK; OAGxK: b1cWF: goto z1Aqx; wFo3X: NrN5o: goto rxOtU; vp3NN: if (!($v2['code'] == 'system_update_status')) { goto NrN5o; } goto TVDwv; YyyCZ: VxvJy: goto kwlUf; W4ltw: } goto q1P44; Gitl_: goto sL8g5; goto fvy6i; q1P44: UL_ne: goto Gitl_; LSVc9: l8A3_: goto GOkYd; GOkYd: } goto P8ui1; P8ui1: sL8g5: goto CWgJZ; FEPEL: if (!empty($status)) { goto r_3lH; } goto DF8Hy; eLoUr: $status = getAppConfSd('system_update_status'); goto W9DIg; DF8Hy: return false; goto OlCKm; WkkUR: } private function sendTemplateMsg($touser, $temp_id, $page, $form_id, $data) { goto CF5U0; Tc7V1: $response = ihttp_post($url, json_encode($postdata)); goto yrsz0; ym2Wg: $token = $account_api->getAccessToken(); goto gN1wF; yrsz0: return $response; goto wu5SJ; gN1wF: $url = getOtherConf('send_tempMsg_url') . $token; goto Lg0ws; CF5U0: $account_api = WeAccount::create(); goto ym2Wg; Lg0ws: $postdata = array("touser" => $touser, "template_id" => $temp_id, "page" => $page, "form_id" => $form_id, "data" => $data); goto Tc7V1; wu5SJ: } private function sendAccountMsg($touser, $page, $data, $type, $t_uid) { goto VK5QT; yRIFF: $account_api = WeAccount::create(); goto AemrU; RDQIj: mINkT: goto hh6mQ; MuSLn: zkU5i: goto jcIv3; hh6mQ: $appid = $_W['oauth_account']['key']; goto gEyIL; Oghdm: jYXBb: goto Q2SMb; nyICM: $account_appid = getAppConfSd('account_appid'); goto Dh3Vy; l0il2: $response = ihttp_post($url, json_encode($postdata)); goto JIg58; AemrU: $token = $account_api->getAccessToken(); goto nyICM; IfwQ_: return false; goto qAqhO; ignFz: ZjMX3: goto fAjFv; jcIv3: $postdata = array("touser" => $touser, "mp_template_msg" => array("appid" => $account_appid, "template_id" => $temp_id, "url" => "http://weixin.qq.com/download", "miniprogram" => array("appid" => $appid, "pagepath" => $page), "data" => $data)); goto l0il2; Npxx_: return false; goto RDQIj; Gz6Bb: $url = 'https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send?access_token=' . $token; goto b_eZn; JIg58: pdo_insert($this->tablePrefix . 'msglog', array("uniacid" => $_W['uniacid'], "uid" => $t_uid, "msg" => 'accountMSG' . $type, "r_content" => $response['content'], "create_time" => time())); goto okhVE; ZuHyS: if ($temp_id) { goto wRVTM; } goto cDYGM; AirmK: wRVTM: goto Gz6Bb; Q2SMb: return true; goto ignFz; ytrBS: if ($re['errcode'] == 0 && $re['errmsg'] == 'ok') { goto jYXBb; } goto K_jaa; gEyIL: if ($appid) { goto GdvvJ; } goto IfwQ_; VK5QT: global $_GPC, $_W; goto yRIFF; b_eZn: foreach ($data as $k => $v) { goto miF1_; ahoY2: $data[$k]['color'] = '#173177'; goto A8WCy; N5cX2: if (!($k == 'remark' && !isset($v['color']))) { goto W2u2D; } goto zYFcq; miF1_: if (!($k == 'first' && !isset($v['color']))) { goto ouMKH; } goto W4e1E; W4e1E: $data[$k]['color'] = '#173177'; goto Zz51v; OEwW0: jRt56: goto N5cX2; EUuye: $data[$k]['color'] = '#173177'; goto OEwW0; Snvu_: if (!($k == 'keyword1' && !isset($v['color']))) { goto TXa5O; } goto ahoY2; Q_8Fs: if (!($k == 'keyword2' && !isset($v['color']))) { goto jRt56; } goto EUuye; A8WCy: TXa5O: goto Q_8Fs; q5iFk: W2u2D: goto NHYVU; Zz51v: ouMKH: goto Snvu_; zYFcq: $data[$k]['color'] = '#173177'; goto q5iFk; NHYVU: u3z80: goto GJT8v; GJT8v: } goto MuSLn; cDYGM: return false; goto AirmK; qAqhO: GdvvJ: goto sipyU; a8WDf: goto ZjMX3; goto Oghdm; sipyU: $temp_id = getAppConfSd('account_tempid'); goto ZuHyS; K_jaa: return false; goto a8WDf; okhVE: $re = json_decode($response['content'], true); goto ytrBS; Dh3Vy: if ($account_appid) { goto mINkT; } goto Npxx_; fAjFv: } private function sendSubMsg($touser, $temp_id, $page, $data) { goto WW4BK; d56hd: $postdata = array("touser" => $touser, "template_id" => $temp_id, "page" => $page, "data" => $data); goto BNNeK; meNgR: return $response; goto SDvzk; g9h49: $url = 'https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=' . $token; goto d56hd; BNNeK: $response = ihttp_post($url, json_encode($postdata)); goto meNgR; WW4BK: $account_api = WeAccount::create(); goto QtonF; QtonF: $token = $account_api->getAccessToken(); goto g9h49; SDvzk: } private function getFansInfoByUid($uid, $field) { goto XSolW; XSolW: if (in_array($field, array("openid", "nickname"))) { goto uN8NA; } goto vuLgR; vuLgR: return false; goto Mtufn; m8BsC: return $fans[$field]; goto XvsXt; Mtufn: uN8NA: goto cAdXo; cAdXo: $fans = pdo_fetch('SELECT `openid` FROM ' . tablename('mc_mapping_fans') . ' WHERE uid = :uid LIMIT 1', array(":uid" => $uid)); goto m8BsC; XvsXt: } public function doWebManage() { goto Muuts; q8UWc: $feed_back = $this->createWebUrl('feedBackList'); goto VqUWo; RteTB: $agent_design = $this->createWebUrl('agentDesign'); goto Z2hgF; SEgeK: $industry = $this->createWebUrl('industry'); goto SsccR; fYqUJ: $member_grade = $this->createWebUrl('MemberGrade'); goto k9UEP; cElNb: $item_banner = $this->createWebUrl('itemBanner'); goto ca5Kx; YUO8t: $withdrawal_applys = $this->createWebUrl('withdrawalApplys'); goto c6yAv; Y3AZB: $agent_grade = $this->createWebUrl('agentGrade'); goto RteTB; C0MKo: Mtw99: goto kD4b4; FWIBA: $service_group_set = $this->createWebUrl('serviceGroupSet'); goto C0MKo; cQbA3: $square_set = $this->createWebUrl('squareSet'); goto qb2X8; Muuts: global $_GPC, $_W; goto Srw86; okZlq: $dashboard = $this->createWebUrl('dashboard'); goto JaF49; Yw3j_: $personal_certify = $this->createWebUrl('personalCertify'); goto Zwyog; GZGVn: $square_report = $this->createWebUrl('squareReport'); goto cQbA3; PULjF: $come_back = $this->createWebUrl('comebackList'); goto q8UWc; SsccR: $identify = $this->createWebUrl('identify'); goto k73L6; CmbUI: if (!$show_service_set) { goto Mtw99; } goto FWIBA; CDjCn: $red_packets_set = $this->createWebUrl('redPackersSet'); goto gW1bc; un5Rx: $art_set = $this->createWebUrl('artPoster'); goto tGXG2; WpP3A: $user_set = $this->createWebUrl('userSet'); goto eh1jI; lhcG4: $wallpaper = $this->createWebUrl('wallpaper'); goto pYnNA; v3APX: $withdrawal_apply = $this->createWebUrl('withdrawalApply'); goto YUO8t; z4qh8: $referermenu = array(); goto okZlq; p37ts: $item = $this->createWebUrl('item'); goto t1anL; tGXG2: $art_setting = $this->createWebUrl('artSetting'); goto Yw3j_; wd2lN: $withdrawal_statistics = $this->createWebUrl('withdrawalStatistics'); goto r_gDk; Srw86: $url = $_W['siteroot'] . 'web/index.php?c=miniapp&a=version&do=home' . '&version_id=' . $_GPC['version_id']; goto XiLyH; M8voj: $square_type = $this->createWebUrl('squareType'); goto vpgrw; Fw5zU: $examine_square = $this->createWebUrl('examineSquare'); goto M8voj; O9CVQ: $group_message = $this->createWebUrl('groupMessage'); goto WpP3A; XiLyH: $img = '../../attachment/headimg_' . $_W['uniacid'] . '.jpg'; goto O6n2l; MASnh: include $this->template('manage/home'); goto oB8ef; YYwDd: $app_jump_set = $this->createWebUrl('appJumpSet'); goto wLCKu; z07iA: $card_bg = $this->createWebUrl('cardBg'); goto lhcG4; ca5Kx: $item_set = $this->createWebUrl('ItemSet'); goto Z9O_Q; rYX7v: $show_service_set = isset($helper_plugin['id']) ? true : false; goto CmbUI; V_fFF: $order = $this->createWebUrl('order'); goto L793D; JaF49: $dynamic = $this->createWebUrl('dynamic'); goto p37ts; lrsia: $app_use_help = $this->createWebUrl('appUseHelp'); goto RRXsZ; gW1bc: $red_packets_item = $this->createWebUrl('redPacketsItem'); goto qQtkM; Z9O_Q: $art_list = $this->createWebUrl('artList'); goto un5Rx; pYnNA: $mail_log = $this->createWebUrl('mailLog'); goto SEgeK; Z2hgF: $agent_set = $this->createWebUrl('agentSet'); goto v3APX; vpgrw: $square_banner = $this->createWebUrl('squareBanner'); goto GZGVn; IKwx7: $member_cdkey = $this->createWebUrl('MemberCdkey'); goto YtJbC; kD4b4: $system_config = $this->createWebUrl('systemConfig'); goto L9RLr; qb2X8: $app_nav_set = $this->createWebUrl('appNavSet'); goto YYwDd; g2Na_: $red_packets_refund = $this->createWebUrl('redPacketsRefund'); goto CDjCn; L9RLr: $config_back = $this->createWebUrl('configBack'); goto RyVVj; JCgGv: $user = $this->createWebUrl('user'); goto fYqUJ; O5NAd: $handled_certify = $this->createWebUrl('handledCertify'); goto JCgGv; fshz5: $group_type = $this->createWebUrl('groupType'); goto V_fFF; t1anL: $examine_item = $this->createWebUrl('examineItem'); goto z07iA; O6n2l: $fixedmenu = array("id" => 1, "type" => "file", "pid" => 0, "name" => "dashboard", "title" => "", "icon" => "fa fa-dashboard fa-fw", "condition" => "", "remark" => "Dashboard tips", "ismenu" => 1, "createtime" => 1497429920, "updatetime" => 1497429920, "weigh" => 143, "status" => "normal", "url" => $this->createWebUrl('dashboard'), "badge" => "hot", "py" => "kzt", "pinyin" => "kongzhitai"); goto z4qh8; L793D: $square = $this->createWebUrl('square'); goto Fw5zU; r_gDk: $red_packets_statistics = $this->createWebUrl('redPacketsStatistics'); goto ZFnQk; ZFnQk: $wait_refund = $this->createWebUrl('waitRefund'); goto MASnh; wLCKu: $app_api_set = $this->createWebUrl('appApiSet'); goto lrsia; c6yAv: $agent_statistics = $this->createWebUrl('agentStatistics'); goto g2Na_; eh1jI: $group = $this->createWebUrl('group'); goto fshz5; k9UEP: $member_rule = $this->createWebUrl('MemberRule'); goto IKwx7; YtJbC: $card_template = $this->createWebUrl('cardTemplate'); goto PULjF; qQtkM: $withdrawal_set = $this->createWebUrl('withdrawalSet'); goto wd2lN; k73L6: $item_design = $this->createWebUrl('itemDesign'); goto cElNb; Zwyog: $company_certify = $this->createWebUrl('companyCertify'); goto O5NAd; RRXsZ: $helper_plugin = pdo_fetch('SELECT `id` FROM ' . tablename('modules_plugin') . ' WHERE `name`=\'super_card_plugin_helper\''); goto rYX7v; VqUWo: $enterprise_apply = $this->createWebUrl('enterpriseApply'); goto O9CVQ; vdZhN: $agent_center = $this->createWebUrl('agentCenter'); goto Y3AZB; RyVVj: $order_statistics = $this->createWebUrl('orderStatistics'); goto vdZhN; oB8ef: } public function doWebDashboard() { goto Fm9DZ; Fm9DZ: global $_GPC, $_W; goto IH2Tp; GCCt_: $count['successData'][] = $successData['count']; goto L6ASI; IZ0Nl: $server['php_version'] = PHP_VERSION; goto V8Q3m; JgiL0: $count['successData'] = array(); goto PbJ6X; xbK9S: $sevendnu = '80%'; goto UeZAH; oQ1wU: $count['time'] = array(); goto qEql2; Ppo3C: goto fvY04; goto Mwm2F; yEpGy: if (!($i < 30)) { goto Z2HoQ; } goto BqCjf; uNptq: $identify_total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'identify') . ' WHERE `uniacid` = ' . $_W['uniacid']); goto lSuYq; iXaLW: $today_user_total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'user') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` > ' . $start_time); goto P82Fc; WHGMq: $personal_certify = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'certify') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type`= 2 and `status` = 0'); goto Gn_Z4; mhwbX: $today_red_packets_num = pdo_fetch('SELECT COUNT(*) as `count`  FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . 'WHERE `status` > 0 and `create_time` > ' . $start_time); goto ywZav; Gn_Z4: $company_certify = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'certify') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type`= 1 and `status` = 0'); goto ZYJ3Q; ULhq7: $count['successData'] = array_reverse($count['successData']); goto DgJGM; eQGDp: $todayorder = 132; goto xbK9S; ywZav: $today_square = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'square') . ' WHERE uniacid = ' . $_W['uniacid'] . ' and status = 1 and `create_time` > ' . $start_time); goto yKeWJ; A8FXi: $count['time'] = array_reverse($count['time']); goto qvED1; etfqj: V5dyD: goto T783E; HlaUE: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto GCCt_; BqCjf: $prevday1 = date('Y-m-d 00:00:00', strtotime("-{$i} days")); goto lTmvt; FpJNO: include $this->template('manage/dashboard'); goto d40RS; EWYXt: $totaluser = 35200; goto paQdU; Kh2qv: $totalorder = 32143; goto f_Fbq; V8Q3m: $server['mysql_version'] = pdo_fetch('select version() as version'); goto V89YW; K_aw_: $vip_total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'user') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `vip` > 0'); goto feygC; YWACC: $todayuserlogin = 430; goto eGoGJ; ZYJ3Q: $ex_square_total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'square') . 'WHERE uniacid = ' . $_W['uniacid'] . ' and status=3'); goto JZqfP; F3DRe: $nextday = strtotime(date('Y-m-d 23:59:59', strtotime("-{$i} days"))); goto SjCeR; SjCeR: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto HlaUE; yKeWJ: $today_identify = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'identify') . ' WHERE uniacid = ' . $_W['uniacid'] . ' and `create_time` > ' . $start_time); goto t8O2f; JuIYD: fvY04: goto yEpGy; xU5nN: $today_success_order = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` > ' . $start_time); goto vYD_J; P82Fc: $today_item_total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and  `no_perfect` = 0 and `create_time` > ' . $start_time); goto xU5nN; L6ASI: $count['totalData'][] = $totalData['count']; goto iCBFu; T783E: $i++; goto Ppo3C; b4cmU: $start_time = strtotime(date('Y-m-d 00:00:00')); goto iXaLW; N9r3V: $entcon_total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'enterpriseapply') . ' WHERE `uniacid`=' . $_W['uniacid'] . ' and `status`= 0'); goto pXUT9; f_Fbq: $totalorderamount = 321; goto YWACC; V89YW: $server['server_version'] = php_uname('s') . php_uname('r'); goto nDubV; NzMnS: $server['timezone_get'] = date_default_timezone_get(); goto FpJNO; YjNRX: $user_total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'user') . ' WHERE `uniacid` = ' . $_W['uniacid']); goto K_aw_; lTmvt: $nextday1 = date('Y-m-d 23:59:59', strtotime("-{$i} days")); goto C93YP; DgJGM: $count['totalData'] = array_reverse($count['totalData']); goto A8FXi; KltNe: $server = array(); goto IZ0Nl; t8O2f: $withdrawal_apply = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 0'); goto KltNe; UeZAH: $uploadmode = 'local'; goto i3Kjd; lSuYq: $group_total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'group') . ' WHERE `uniacid` = ' . $_W['uniacid']); goto pq0dI; PbJ6X: $count['totalData'] = array(); goto oQ1wU; N7Auk: $addonVersion = '1.0.0.20180911_beta'; goto EWYXt; feygC: $order_total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid']); goto O5tHV; iCBFu: $count['time'][] = date('Y-m-d', strtotime("-{$i} days")); goto etfqj; i3Kjd: $dash = 1; goto YjNRX; JZqfP: $ex_item_total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `uniacid`=' . $_W['uniacid'] . ' and `status`=3'); goto N9r3V; paQdU: $totalviews = 219390; goto Kh2qv; eGoGJ: $todayusersignup = 2324; goto eQGDp; qEql2: $i = 0; goto JuIYD; O5tHV: $fee_total = pdo_getall($this->tablePrefix . 'orders', array("uniacid" => $_W['uniacid']), array("SUM(fee) as totalFee")); goto WHGMq; pq0dI: $square_total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'square') . ' WHERE uniacid = ' . $_W['uniacid'] . ' and status < 3'); goto b4cmU; vYD_J: $today_total_order = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` > ' . $start_time); goto mhwbX; Mwm2F: Z2HoQ: goto ULhq7; pXUT9: $item_total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `no_perfect` = 0'); goto uNptq; qvED1: $count = json_encode($count); goto N7Auk; C93YP: $prevday = strtotime(date('Y-m-d 00:00:00', strtotime("-{$i} days"))); goto F3DRe; IH2Tp: $count = array(); goto JgiL0; nDubV: $server['server_software'] = $_SERVER['SERVER_SOFTWARE']; goto NzMnS; d40RS: } public function doWebDynamic() { goto wVnej; S9WFA: $pagesize = $this->pageCount; goto NBlLN; TXBBq: ZZcZ2: goto uB1EY; l4765: goto B30hg; goto TXBBq; WYzXU: xqgtG: goto u5Hfb; jxyOz: B30hg: goto S9WFA; u5Hfb: $edit = $this->createWebUrl('dynamicEdit') . '&type=1'; goto BFqYK; uB1EY: $pageindex = 0; goto jxyOz; wAQzL: $list = pdo_getall($this->tablePrefix . 'dynamic', $where, array(), '', array("id DESC"), array($pageindex, $pagesize)); goto hSIhO; Nr2hm: $pager = pagination($total, $pageindex, $pagesize); goto wAQzL; NBlLN: $totalList = pdo_getall($this->tablePrefix . 'dynamic', $where, array("id"), '', array("id desc"), array()); goto Ob168; JiJ0N: $pageindex = $_GPC['page']; goto l4765; fHFRP: if (!isset($_GPC['page'])) { goto ZZcZ2; } goto JiJ0N; hSIhO: foreach ($list as $k => $v) { goto VioxF; HLfhZ: $list[$k]['pic'] = $v['pics'][0]; goto eT12k; VioxF: $v['pics'] = json_decode($v['pics'], true); goto HLfhZ; eT12k: TnmUz: goto mkwFC; mkwFC: } goto WYzXU; BFqYK: include $this->template('dynamic/list'); goto jf2q0; wVnej: global $_GPC, $_W; goto XZGbr; Ob168: $total = count($totalList); goto Nr2hm; XZGbr: $where['uniacid'] = $_W['uniacid']; goto fHFRP; jf2q0: } public function doWebDynamicEdit() { goto dfvvX; dfvvX: global $_GPC, $_W; goto l_ykM; ND_bf: $dynamic = $this->createWebUrl('dynamic'); goto BxRES; Cb8mZ: $type = intval($_GPC['type']); goto zwK9m; mvJVE: $type = $id > 0 ? intval($data['type']) : intval($_GPC['type']); goto ND_bf; zwK9m: if (!($id > 0)) { goto vxGH2; } goto X5tby; BxRES: include $this->template('dynamic/info2'); goto axiiz; S1bI7: vxGH2: goto mvJVE; dHvUC: $data['pics'] = json_decode($data['pics'], true); goto S1bI7; X5tby: $data = pdo_fetch('SELECT  `id`,`title`,`pics`,`content`,`order_sort`,`type`,`status`, `release_time` FROM ' . tablename($this->tablePrefix . 'dynamic') . ' WHERE `id`=:id', array(":id" => $id)); goto dHvUC; l_ykM: $id = intval($_GPC['id']); goto Cb8mZ; axiiz: } public function doWebDynamicSave() { goto WZaCG; LBkM7: MJL0z: goto l3iIj; ZU7h0: QjBIo: goto MTzFD; aQArP: $condition['update_time'] = time(); goto Rdj62; uQyfI: if (!(trim($_GPC['content']) == '')) { goto seUmm; } goto LTSFx; wWPkz: E4X0g: goto abhCg; V3QQJ: $this->json_return('', 0); goto LBkM7; Se84X: if ($id > 0) { goto htKBM; } goto K4_85; nWpLy: $result = pdo_insert($this->tablePrefix . 'dynamic', $condition); goto NLoh1; NLoh1: goto E4X0g; goto pUzkc; G9QMx: if (!(count($_GPC['pics']) < 1)) { goto vJ1vY; } goto SYi_O; abhCg: if ($result != false) { goto L6bfX; } goto Z42Q8; Z42Q8: $this->json_return('', 0); goto w67Ot; WZaCG: global $_GPC, $_W; goto aV1sA; SYi_O: $this->json_return('', 0); goto L1SVM; QJSRp: $condition['order_sort'] = intval($_GPC['order_sort']); goto xJj3s; VlV7C: $this->json_return('', 1); goto ZU7h0; FkhCL: $condition['release_time'] = strtotime($_GPC['release_time']); goto QJSRp; Rdj62: $result = pdo_update($this->tablePrefix . 'dynamic', $condition, array("id" => $id)); goto wWPkz; w67Ot: goto QjBIo; goto Q60f0; K4_85: $condition['uniacid'] = $_W['uniacid']; goto Q3hKh; Q60f0: L6bfX: goto VlV7C; Q3hKh: $condition['create_time'] = time(); goto noVyf; LSWUx: $condition['pics'] = json_encode($_GPC['pics']); goto uQyfI; xJj3s: $condition['status'] = intval($_GPC['status']); goto Se84X; LTSFx: $this->json_return('', 0); goto jQ9JJ; L1SVM: vJ1vY: goto LSWUx; noVyf: $condition['type'] = intval($_GPC['type']); goto nWpLy; pUzkc: htKBM: goto aQArP; slt4P: if (!(trim($_GPC['title']) == '')) { goto MJL0z; } goto V3QQJ; jQ9JJ: seUmm: goto vCz62; l3iIj: $condition['title'] = trim($_GPC['title']); goto G9QMx; aV1sA: $id = intval($_GPC['id']); goto slt4P; vCz62: $condition['content'] = trim($_GPC['content']); goto FkhCL; MTzFD: } public function doWebItem() { goto utTjO; HNLc0: $pager = pagination($total, $pageindex, $pagesize); goto ZB599; ObBZd: $order = '`i`.`collected`'; goto Q0z0g; Obagq: Nniag: goto XB_b4; kAfj2: $u_type = trim($_GPC['u_type']); goto LVOUy; tmQ_z: $where .= ' and `i`.`uid` = ' . $uid; goto lDRZQ; lDRZQ: ZPJXg: goto nZfMp; m2FGj: if (!($datemax && $datemin == false)) { goto HVni4; } goto KO4ZA; qIMPs: $where .= ' and `i`.`uid` > 0'; goto zoglx; RWiJw: $where .= ' and `i`.`name` LIKE \'%' . $name . '%\''; goto LyfcO; VoFFj: if (!($sort_type == 1)) { goto Nniag; } goto rY1sE; xL02L: if (!isset($_GPC['page'])) { goto XUL9o; } goto mMr4w; d1_Or: $where .= ' and `i`.`create_time` > ' . $datemin; goto UUtXN; WBo1B: $pageindex2 = 0; goto CinVY; e9SOE: XUL9o: goto fciiV; rNs61: if (!($datemin && $datemax)) { goto fipnu; } goto P4gHn; nZfMp: $nickname = trim($_GPC['nickname']); goto cpt19; KO4ZA: $where .= ' and `i`.`create_time` < ' . $datemax; goto eQ175; C4HKK: include $this->template('item/item_list'); goto wlZz3; WlX65: $datemax = strtotime($_GPC['datemax']); goto rNs61; SFDvM: if (!($sort_type == 3)) { goto THul4; } goto D7BcY; r_aMi: $total = count($allList); goto rW28C; CFADq: goto gArBN; goto e9SOE; wFeN2: if (!($datemin && $datemax == false)) { goto xJDzX; } goto d1_Or; JmvtN: B9qcS: goto K3gfT; Rru3i: $where .= ' and `i`.`uid` = 0'; goto JmvtN; phQRR: $where = ' Where `i`.`uniacid` = ' . $_W['uniacid'] . ' and `i`.`status` < 3 and `i`.`no_perfect` = 0'; goto UErdu; K3gfT: $sort_type = trim($_GPC['sort_type']); goto VoFFj; D7BcY: $order = '`i`.`views`'; goto ttfCv; hDJLE: if (!$nickname) { goto AwpVF; } goto uyvNE; AvX_H: if (!$name) { goto P8bsW; } goto RWiJw; JZdQB: if (!($u_type == 2)) { goto B9qcS; } goto Rru3i; dc3eA: $mobile = trim($_GPC['mobile']); goto hDJLE; UErdu: $order = '`i`.`create_time`'; goto DfvnV; P4gHn: $where .= ' and `i`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto j7bKt; mMr4w: $pageindex = intval($_GPC['page']); goto ibTXV; aTepM: $datemin = strtotime($_GPC['datemin']); goto WlX65; j7bKt: fipnu: goto wFeN2; UUtXN: xJDzX: goto m2FGj; eQ175: HVni4: goto xVIaS; P1Q8q: AwpVF: goto AvX_H; LVOUy: if (!($u_type == 1)) { goto EhPYS; } goto qIMPs; vpk4w: qMiZS: goto kAfj2; XB_b4: if (!($sort_type == 2)) { goto VcWvv; } goto ObBZd; IkGV4: $where .= ' and `i`.`mobile` = \'' . $mobile . '\''; goto vpk4w; DfvnV: $uid = intval($_GPC['uid']); goto xF08v; CinVY: gArBN: goto HNLc0; rY1sE: $order = '`i`.`recommend`'; goto Obagq; xVIaS: $allList = pdo_fetchall('SELECT `i`.`id` FROM ' . tablename($this->tablePrefix . 'item') . ' `i`' . ' LEFT JOIN ' . tablename('mc_members') . ' `m` ON `i`.`uid`=`m`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'user') . ' `u` ON `i`.`uid`=`u`.`id` ' . $where . ' ORDER BY ' . $order . ' DESC'); goto r_aMi; fciiV: $pageindex = 0; goto WBo1B; ttfCv: THul4: goto aTepM; ibTXV: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto CFADq; utTjO: global $_GPC, $_W; goto n6DBm; xF08v: if (!$uid) { goto ZPJXg; } goto tmQ_z; rW28C: $pagesize = 5; goto xL02L; uyvNE: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto P1Q8q; Q0z0g: VcWvv: goto SFDvM; ZB599: $list = pdo_fetchall('SELECT `i`.`id`,`i`.`name`,`i`.`uid`,`i`.`picture`,`i`.`mobile`,`i`.`company`,`i`.`title`,`i`.`industry`,`i`.`save_paper`,`i`.`views`,`i`.`collected`,`i`.`recommend`, `i`.`serv`, `i`.`status`,`i`.`create_time`,`m`.`nickname`,`m`.`avatar`,`u`.`vip` FROM ' . tablename($this->tablePrefix . 'item') . ' `i`' . ' LEFT JOIN ' . tablename('mc_members') . ' `m` ON `i`.`uid`=`m`.`uid`  LEFT JOIN ' . tablename($this->tablePrefix . 'user') . ' `u` ON `i`.`uid`=`u`.`id` ' . $where . ' ORDER BY ' . $order . ' DESC limit ' . $pageindex2 . ',' . $pagesize); goto C4HKK; cpt19: $name = trim($_GPC['name']); goto dc3eA; zoglx: EhPYS: goto JZdQB; vkZlv: if (!$mobile) { goto qMiZS; } goto IkGV4; n6DBm: $url = $this->createWebUrl('item'); goto phQRR; LyfcO: P8bsW: goto vkZlv; wlZz3: } public function doWebItemEdit() { goto SQorS; lONQC: foreach ($industry as $k => $v) { goto m8NIa; SBq8S: i4vLj: goto hZwUn; kE90k: YlkT8: goto SBq8S; m8NIa: foreach ($industrys as $k2 => $v2) { goto mYMF9; mYMF9: if (!($v2 == $v['name'])) { goto r41tR; } goto g9wMR; TIiwd: Gk1tG: goto dcJnw; rTtab: r41tR: goto TIiwd; pQ79N: $industryArr[$v['id']] = $v['name']; goto rTtab; g9wMR: $industry[$k]['is_true'] = 1; goto pQ79N; dcJnw: } goto kE90k; hZwUn: } goto y58dC; v2Fyt: include $this->template('item/info'); goto L_8YD; SVVPp: $data['style'] = 1; goto NAbTx; y58dC: eUKPo: goto TwBDx; M8KNp: foreach ($cardTem as $k => $v) { goto WO0z0; HBImu: fHs8f: goto J8e1R; WO0z0: $tempArr[$k]['id'] = $v['id']; goto fhywe; fhywe: $tempArr[$k]['name'] = $v['name']; goto HBImu; J8e1R: } goto XDs2S; D8tEt: $cardbg = pdo_getall($this->tablePrefix . 'cardbg', array("uniacid" => $_W['uniacid'], "status" => 1, "type" => 0), array("id", "name")); goto PEL09; PEL09: $cardTem = unserialize(getAppConfSd('card_style')); goto jIxhi; ls3TO: $data = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE id = :id LIMIT 1', array(":id" => $id)); goto xEKl4; slLeS: $id = intval($_GPC['id']); goto AUDQt; AUDQt: $industry = pdo_getall($this->tablePrefix . 'industry', array("uniacid" => $_W['uniacid'], "status" => 1), array("id", "name")); goto SVVPp; SQorS: global $_GPC, $_W; goto slLeS; jIxhi: if (!(is_array($cardTem) && count($cardTem) > 0)) { goto ouh7w; } goto BiKs3; XdqNB: ouh7w: goto v2Fyt; XDs2S: Od3L7: goto XdqNB; uXBuC: $industryArr = array(); goto lONQC; TwBDx: $industrysStr = json_encode($industryArr); goto fnRK6; BiKs3: $tempArr = array(); goto M8KNp; fnRK6: IYFk6: goto D8tEt; xEKl4: $industrys = explode(',', $data['industry']); goto uXBuC; NAbTx: if (!($id > 0)) { goto IYFk6; } goto ls3TO; L_8YD: } public function json_return($msg = "", $code = 1, $data = array()) { goto K8PMw; qIPln: echo json_encode($arr); goto wCDZy; B5yxf: $arr['data'] = $data; goto KRf2P; HANSo: if (!(is_array($data) && count($data) > 0)) { goto IvdRm; } goto B5yxf; K8PMw: $arr = array("code" => $code, "msg" => $msg); goto HANSo; KRf2P: IvdRm: goto qIPln; wCDZy: exit; goto VhtGO; VhtGO: } public function doWebItemSave() { goto gav04; dYK1R: $condition['email'] = $_GPC['email']; goto O6zJC; cjBip: goto zNzN3; goto IHaa3; ls2oF: if (!($tencent_map_key != '')) { goto t4Zn_; } goto GxWhV; yg4dn: $condition['create_time'] = time(); goto oZWLj; Fk7yJ: $condition['intro_title'] = $_GPC['intro_title']; goto EU9XL; qu0aa: CJK38: goto NwUDa; CxoWi: wu0T5: goto CNNg5; qdaAe: xCpof: goto iW62s; oiUe4: $condition['latitude'] = $re['lat']; goto pVyz6; YnqOH: $condition['bg_img'] = $cardbg['bg_url']; goto wdVCw; wdVCw: $condition['bg_color'] = $cardbg['text_color']; goto vnaeG; ylUSN: $condition['qq'] = $_GPC['qq']; goto doHfW; BetvQ: lJPiw: goto VN19T; U_Ilg: if ($result != false) { goto WWmE5; } goto LkB6R; BNc2X: nsWnU: goto vHjR6; p6PvM: $this->json_return('', 0); goto jptmK; bzXls: if (!($re != false)) { goto nsWnU; } goto oiUe4; UL8iV: if (preg_match('/^([0-9A-Za-z\\-_\\.]+)@([0-9a-z]+\\.[a-z]{2,3}(\\.[a-z]{2})?)$/i', $_GPC['email'])) { goto IijqI; } goto aJ51J; NwUDa: zNzN3: goto U_Ilg; C60x_: $this->json_return(''); goto IFAHJ; G13Oq: $this->collect($uid, $id, 1, 1); goto tDAlR; EZrXa: $condition['weibo'] = $_GPC['weibo']; goto BA2qM; e7HhH: $condition['status'] = intval($_GPC['status']); goto Fk7yJ; FaQlQ: $condition = array(); goto v8ZrF; SaTiU: $id = intval($_GPC['id']); goto C1DUu; CNNg5: if (empty($_GPC['mobile'])) { goto EWOzy; } goto mSXMA; BA2qM: $condition['job_no'] = $_GPC['job_no']; goto GQFCn; ckrDF: goto ehWyD; goto C4Eun; b5xk2: if (!($_GPC['intro_content'] != '')) { goto wsD9_; } goto lwK5w; vnaeG: Fpqce: goto SXwof; oZWLj: $result = pdo_insert($this->tablePrefix . 'item', $condition); goto cjBip; IzvP1: $this->json_return('', 0); goto CxoWi; ChFVp: if ($id > 0) { goto h5Nie; } goto xtm2H; BtOJb: $condition['intro_content'] = urlencode($_GPC['intro_content']); goto X1acw; BDP5w: $condition['name'] = $_GPC['name']; goto IhD2A; xCiuL: TdSqw: goto VDTCg; GxWhV: $re = getLatLng($addr, $tencent_map_key); goto bzXls; MBnNd: Fnk22: goto L9KGA; lvVLx: if (!($bg_id != 0)) { goto kYjQ_; } goto pzrvc; Zw9B9: z6AV3: goto FaQlQ; O6zJC: $condition['latitude'] = $_GPC['latitude']; goto sxALk; jYq1K: $this->json_return('', 0); goto mGKEC; tDAlR: $this->views($uid, $id, 1, 1); goto qu0aa; iW62s: $condition['forward'] = $_GPC['forward']; goto b5xk2; C1DUu: $uid = intval($_GPC['uid']); goto hotER; k6rSE: $condition['clone'] = intval($_GPC['clone']); goto e7HhH; O6Ymq: $condition['province'] = $_GPC['province']; goto nR48g; gav04: global $_GPC, $_W; goto SaTiU; fLcSC: $this->json_return('500', 0); goto xjs_4; hotER: if (!empty($_GPC['name'])) { goto wu0T5; } goto IzvP1; pVyz6: $condition['longitude'] = $re['lng']; goto BNc2X; L9KGA: EWOzy: goto w91Bq; PR5AZ: if (!empty($_GPC['tem_id'])) { goto HUzC4; } goto jYq1K; SXwof: kYjQ_: goto xiNrs; V01NZ: $this->json_return('', 0); goto QGWed; sxALk: $condition['longitude'] = $_GPC['longitude']; goto ylUSN; xjs_4: mZHWJ: goto BtOJb; a8Vdm: $condition['dict'] = $_GPC['dict']; goto n3iXJ; aJ51J: $this->json_return('', 0); goto le025; axALZ: $addr = trim($condition['province'] . $condition['city'] . $condition['dict'] . $condition['address']); goto a30GV; VN19T: $condition['style'] = intval($_GPC['tem_id']); goto CjFO_; X1acw: wsD9_: goto iPTt2; IFAHJ: ehWyD: goto QpQQ9; WGdUq: $condition['update_time'] = time(); goto y4DrL; IHaa3: h5Nie: goto WGdUq; w91Bq: if (!empty($_GPC['title'])) { goto F6Iww; } goto p6PvM; g384e: if (!empty($_GPC['company'])) { goto zlWuB; } goto ha7oD; nObGM: $condition['fax'] = $_GPC['fax']; goto T51P_; iPTt2: if (!($condition['latitude'] == '' || $condition['longitude'] == '')) { goto JCPE1; } goto cwrtt; cqfQp: $condition['picture'] = $_GPC['picture']; goto BDP5w; doHfW: $condition['tel'] = $_GPC['tel']; goto nObGM; cwrtt: if (!($condition['province'] != '' && $condition['city'] != '' && $condition['dict'] != '' && $condition['address'] != '')) { goto TdSqw; } goto axALZ; lwK5w: if (!(mb_strlen($_GPC['intro_content'], 'utf-8') > 500)) { goto mZHWJ; } goto fLcSC; PH2dV: $condition['industry'] = $_GPC['industry']; goto dYK1R; ha7oD: $this->json_return('', 0); goto f9P68; kw_es: $condition['bg_id'] = $bg_id; goto YnqOH; YeixT: if (!($result != false)) { goto CJK38; } goto G13Oq; VDTCg: JCPE1: goto ChFVp; v8ZrF: $bg_id = intval($_GPC['bg_id']); goto lvVLx; IhD2A: $condition['mobile'] = $_GPC['mobile']; goto AUeWw; bHZLP: $this->json_return('', 0); goto MBnNd; f9P68: zlWuB: goto yZ9ye; mSXMA: if (preg_match('/^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89]|09)\\d{8}$/', $_GPC['mobile'])) { goto Fnk22; } goto bHZLP; mGKEC: HUzC4: goto Epv8q; le025: IijqI: goto Zw9B9; LkB6R: $this->json_return('', 0); goto ckrDF; a30GV: $tencent_map_key = getAppConfSd('tencent_map_key'); goto ls2oF; IJ6O1: $condition['wx'] = $_GPC['wx']; goto EZrXa; wxJoK: $condition['collected'] = 2; goto yg4dn; IbxCN: $condition['forwarding'] = 1; goto wxJoK; xtm2H: $condition['uniacid'] = $_W['uniacid']; goto IbxCN; EU9XL: if (!(mb_strlen($_GPC['forward'], 'utf-8') > 30)) { goto xCpof; } goto PljCb; nR48g: $condition['city'] = $_GPC['city']; goto a8Vdm; y4DrL: $result = pdo_update($this->tablePrefix . 'item', $condition, array("id" => $id)); goto YeixT; UXb2V: $this->json_return('', 0); goto BetvQ; C4Eun: WWmE5: goto C60x_; xiNrs: if (!empty($_GPC['picture'])) { goto lJPiw; } goto UXb2V; jptmK: F6Iww: goto g384e; Epv8q: if (empty($_GPC['email'])) { goto z6AV3; } goto UL8iV; AUeWw: $condition['company'] = $_GPC['company']; goto O6Ymq; CjFO_: $condition['name'] = $_GPC['name']; goto cqfQp; GQFCn: $condition['public'] = intval($_GPC['public']); goto k6rSE; PljCb: $this->json_return('30', 0); goto qdaAe; yZ9ye: if (!empty($_GPC['industry'])) { goto WzyEa; } goto V01NZ; T51P_: $condition['www'] = $_GPC['www']; goto IJ6O1; bpTT0: $condition['title'] = $_GPC['title']; goto PH2dV; n3iXJ: $condition['address'] = $_GPC['address']; goto bpTT0; QGWed: WzyEa: goto PR5AZ; vHjR6: t4Zn_: goto xCiuL; pzrvc: $cardbg = pdo_fetch('SELECT `id`, `bg_url`,`text_color` FROM ' . tablename($this->tablePrefix . 'cardbg') . ' WHERE `id` = :id', array(":id" => $bg_id)); goto nDlVg; nDlVg: if (!($cardbg != false)) { goto Fpqce; } goto kw_es; QpQQ9: } public function doWebItemStatus() { goto MzRvv; nvdv8: goto kD306; goto BWsQ_; BWsQ_: h80tQ: goto PbyQV; fnOdA: $this->json_return(''); goto ZNRTR; KlPZE: $status = intval($_GPC['status']); goto JCUbY; qgMRc: goto bE_EV; goto OghYY; UiSA2: if (!($type == 2)) { goto h9PXp; } goto d4YRw; MTw0m: jEAOc: goto LvTAy; XKKwS: $this->json_return('', 0); goto qgMRc; LvTAy: if ($type == 1) { goto h80tQ; } goto UiSA2; OTK3W: if ($result) { goto LvDYl; } goto XKKwS; bfxBa: if (!($id < 1 || $type < 1)) { goto jEAOc; } goto U8u_Y; wczvx: $id = intval($_GPC['id']); goto KlPZE; Q4edN: kD306: goto OTK3W; OghYY: LvDYl: goto fnOdA; d4YRw: $result = pdo_update($this->tablePrefix . 'item', array("recommend" => $status), array("id" => $id)); goto vZc65; PbyQV: $result = pdo_update($this->tablePrefix . 'item', array("status" => $status), array("id" => $id)); goto Q4edN; JCUbY: $type = intval($_GPC['type']); goto bfxBa; U8u_Y: $this->json_return('', 0); goto MTw0m; vZc65: h9PXp: goto nvdv8; ZNRTR: bE_EV: goto Gz0fY; MzRvv: global $_GPC, $_W; goto wczvx; Gz0fY: } public function doWebItemDel() { goto KPxvR; xtIne: rI2T0: goto Ags4u; kUtG8: KpoL2: goto cmSGj; T3REs: $id = intval($_GPC['id']); goto mIMtD; Md46R: goto WBBIi; goto kUtG8; mIMtD: $uid = intval($_GPC['uid']); goto qlzp1; Ags4u: if ($result) { goto KpoL2; } goto tgsVu; KoGbv: $this->json_return(''); goto hDLzY; tgsVu: $this->json_return('', 0); goto Md46R; pLHNY: if (!($id > 0)) { goto rI2T0; } goto becoJ; becoJ: $result = pdo_delete($this->tablePrefix . 'item', array("id" => $id)); goto xtIne; KPxvR: global $_GPC, $_W; goto T3REs; fAWpM: $this->views($uid, $id, 1, 2); goto pLHNY; hDLzY: WBBIi: goto fq2CV; qlzp1: $this->collect($uid, $id, 1, 2); goto fAWpM; cmSGj: $this->DelItemAll($id); goto KoGbv; fq2CV: } public function doWebItemDelDou() { goto q_JOc; mt3pg: pdo_delete($this->tablePrefix . 'squarecomments', array("sid in" => $square['ids'])); goto f00fW; Duy8j: pdo_delete($this->tablePrefix . 'client', array("card_id" => $card_id, "uid" => $uid)); goto bHZ79; DcRHj: pdo_delete($this->tablePrefix . 'album', array("card_id" => $card_id)); goto kVfSy; VJawA: pdo_delete($this->tablePrefix . 'chatmsg', array("card_id" => $card_id, "uid" => $uid)); goto ztAlp; kCxKh: pdo_delete($this->tablePrefix . 'store', array("card_id" => $card_id, "uid" => $uid)); goto R0YxV; UFaUI: pdo_delete($this->tablePrefix . 'groups', array("card_id" => $card_id)); goto kJhnp; SwlTY: $rp = pdo_fetch('SELECT GROUP_CONCAT(`id`) as ids FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE uid = :uid AND card_id = :card_id', array(":card_id" => $card_id, ":uid" => $uid)); goto j0cRg; drue_: pdo_delete($this->tablePrefix . 'cardbg', array("card_id" => $card_id, "uid" => $uid)); goto DcRHj; UX3Jw: pdo_delete($this->tablePrefix . 'dynamic', array("card_id" => $card_id, "uid" => $uid)); goto wS9gg; vFZf0: pdo_delete($this->tablePrefix . 'clientfollow', array("client_id in" => $client1['ids'] . ',' . $client2['ids'])); goto iTWWf; aoQBJ: BXpFs: goto drue_; FwTwG: goto naTqx; goto aoQBJ; Vk1Wq: $this->json_return(''); goto dFHWc; nZ2dU: $client2 = pdo_fetch('SELECT GROUP_CONCAT(`id`) as ids FROM ' . tablename($this->tablePrefix . 'client') . ' WHERE c_uid = :c_uid AND c_card_id = :c_card_id', array(":c_card_id" => $card_id, ":c_uid" => $uid)); goto Duy8j; UUT67: pdo_delete($this->tablePrefix . 'chat', array("card_id" => $card_id, "uid" => $uid)); goto POlwm; j0cRg: pdo_delete($this->tablePrefix . 'redpacketsitem', array("card_id" => $card_id, "uid" => $uid)); goto AdUAK; wDbeV: $client1 = pdo_fetch('SELECT GROUP_CONCAT(`id`) as ids FROM ' . tablename($this->tablePrefix . 'client') . ' WHERE uid = :uid AND card_id = :card_id', array(":card_id" => $card_id, ":uid" => $uid)); goto nZ2dU; RveVw: pdo_delete($this->tablePrefix . 'comeback', array("t_card_id" => $card_id, "t_uid" => $uid)); goto SU9Fq; f00fW: $arts = pdo_fetch('SELECT GROUP_CONCAT(`id`) as ids FROM ' . tablename($this->tablePrefix . 'art') . ' WHERE uid = :uid AND card_id = :card_id', array(":card_id" => $card_id, ":uid" => $uid)); goto HY5wg; lce1o: $result = pdo_delete($this->tablePrefix . 'item', array("id" => $card_id, "uid" => $uid)); goto nv1_0; G27PD: $square = pdo_fetch('SELECT GROUP_CONCAT(`id`) as ids FROM ' . tablename($this->tablePrefix . 'square') . ' WHERE uid = :uid AND card_id = :card_id', array(":card_id" => $card_id, ":uid" => $uid)); goto Gua6S; HY5wg: pdo_delete($this->tablePrefix . 'art', array("card_id" => $card_id, "uid" => $uid)); goto ETfmY; wS9gg: pdo_delete($this->tablePrefix . 'website', array("card_id" => $card_id, "uid" => $uid)); goto kCxKh; FTUIe: pdo_delete($this->tablePrefix . 'audio', array("card_id" => $card_id)); goto SrRFm; ztAlp: pdo_delete($this->tablePrefix . 'chatmsg', array("t_card_id" => $card_id, "t_uid" => $uid)); goto yhVcX; dFHWc: naTqx: goto ZUEkb; WdQcg: $uid = intval($_GPC['uid']); goto h2VQp; Gua6S: pdo_delete($this->tablePrefix . 'square', array("card_id" => $card_id, "uid" => $uid)); goto kcDEq; CFoub: pdo_delete($this->tablePrefix . 'track', array("to_card_id" => $card_id, "to_uid" => $uid)); goto wDbeV; kcDEq: pdo_delete($this->tablePrefix . 'squarelikes', array("sid in" => $square['ids'])); goto mt3pg; kVfSy: pdo_delete($this->tablePrefix . 'pic', array("card_id" => $card_id)); goto wI53_; tD10y: $this->json_return('', 0); goto FwTwG; qfOKa: $this->json_return('', 0); goto rgP8R; bHZ79: pdo_delete($this->tablePrefix . 'client', array("c_card_id" => $card_id, "c_uid" => $uid)); goto vFZf0; AdUAK: pdo_delete($this->tablePrefix . 'redpacketslog', array("rp_id in" => $rp['ids'])); goto Y9YKM; GooQh: pdo_delete($this->tablePrefix . 'userwp', array("card_id" => $card_id, "uid" => $uid)); goto UX3Jw; POlwm: pdo_delete($this->tablePrefix . 'chat', array("t_card_id" => $card_id, "t_uid" => $uid)); goto VJawA; R0YxV: pdo_delete($this->tablePrefix . 'goods', array("card_id" => $card_id, "uid" => $uid)); goto G27PD; FSc9J: $group = pdo_fetch('SELECT GROUP_CONCAT(`id`) as ids FROM ' . tablename($this->tablePrefix . 'group') . ' WHERE uid = :uid AND card_id = :card_id', array(":card_id" => $card_id, ":uid" => $uid)); goto wqw4q; kJhnp: pdo_delete($this->tablePrefix . 'track', array("card_id" => $card_id, "uid" => $uid)); goto CFoub; HViSI: pdo_delete($this->tablePrefix . 'collect', array("card_id" => $card_id, "card_uid" => $uid)); goto GooQh; ETfmY: pdo_delete($this->tablePrefix . 'artrecord', array("art_id in" => $arts['ids'])); goto UUT67; wI53_: pdo_delete($this->tablePrefix . 'video', array("card_id" => $card_id)); goto FTUIe; SU9Fq: pdo_delete($this->tablePrefix . 'maillog', array("card_id" => $card_id, "uid" => $uid)); goto ANz0e; SrRFm: pdo_delete($this->tablePrefix . 'views', array("card_id" => $card_id, "card_uid" => $uid)); goto HViSI; u9_Y_: if (!($card_id > 0 & $uid > 0)) { goto pgnNs; } goto lce1o; ZUEkb: pgnNs: goto qfOKa; h2VQp: $card_id = intval($_GPC['id']); goto u9_Y_; Y9YKM: pdo_delete($this->tablePrefix . 'redpacketsrefund', array("rp_id in" => $rp['ids'])); goto Vk1Wq; yhVcX: pdo_delete($this->tablePrefix . 'adalert', array("card_id" => $card_id, "uid" => $uid)); goto FSc9J; q_JOc: global $_GPC, $_W; goto WdQcg; ANz0e: pdo_delete($this->tablePrefix . 'quickreply', array("card_id" => $card_id)); goto SwlTY; wqw4q: pdo_delete($this->tablePrefix . 'group', array("group_id in" => $group['ids'])); goto UFaUI; iTWWf: pdo_delete($this->tablePrefix . 'comeback', array("card_id" => $card_id, "uid" => $uid)); goto RveVw; nv1_0: if ($result) { goto BXpFs; } goto tD10y; rgP8R: } public function collect($uid, $card_id, $type, $ud) { goto PYNM3; U_bM1: if ($ud == 1) { goto alcBX; } goto KpCss; TkcK_: return $this->getItem($card_id, $coll['id'], 1); goto ZpMjk; D9GRi: return $coll; goto Gx70N; MheCe: Qa0OW: goto RMJi4; KpCss: if (!($ud == 2)) { goto YvRB4; } goto lAAXI; W7Opr: if (!($type == 2)) { goto rBhZD; } goto ReZLi; aX2zq: return $coll; goto dOFR0; yiaYJ: if (!($ud == 2)) { goto Qa0OW; } goto KP_xx; mZM76: pDk_9: goto nchG1; Gx70N: goto DP9_x; goto g3fyX; yFN3o: YvRB4: goto pBYFp; TkNBU: OWUF8: goto TkcK_; lAAXI: return pdo_delete($this->tablePrefix . 'collect', array("id" => $coll['id'])); goto yFN3o; pBYFp: goto aBTCL; goto G2WDC; PYNM3: if ($type == 1) { goto bmz20; } goto W7Opr; Kdhz7: if ($coll != false) { goto X8brl; } goto aX2zq; Zmg2W: DP9_x: goto mQHHb; BDSnD: if ($ud == 1) { goto OWUF8; } goto yiaYJ; czu6P: $coll = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'collect') . ' WHERE card_id = :card_id', array(":card_id" => $card_id)); goto Kdhz7; ReZLi: $coll = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'collect') . ' WHERE identify_id = :identify_id', array(":identify_id" => $card_id)); goto b3O04; p1x02: return $this->getItem($card_id, $coll['id'], 2); goto inkQv; g3fyX: KdxIi: goto U_bM1; RMJi4: goto j3GC4; goto TkNBU; xdg9U: goto pDk_9; goto npUuq; b3O04: if ($coll != false) { goto KdxIi; } goto D9GRi; mQHHb: rBhZD: goto xdg9U; ZpMjk: j3GC4: goto s0Yk8; G2WDC: alcBX: goto p1x02; inkQv: aBTCL: goto Zmg2W; s0Yk8: ASHJG: goto mZM76; npUuq: bmz20: goto czu6P; KP_xx: return pdo_delete($this->tablePrefix . 'collect', array("id" => $coll['id'])); goto MheCe; iGKho: X8brl: goto BDSnD; dOFR0: goto ASHJG; goto iGKho; nchG1: } public function getItem($card_id, $coll_id, $type) { goto dR_Ff; qPp51: $condition['avatar'] = $item['picture']; goto JqIkk; Ex2qR: return pdo_update($this->tablePrefix . 'collect', $condition, array("id" => $coll_id)); goto dHFVW; PddFv: GEIXN: goto lSukR; gUDci: if (!($type == 2)) { goto sSfcx; } goto KZdXF; JqIkk: SUP6R: goto YwW0t; kB6d8: sSfcx: goto MM5sv; emCg1: EAZ9p: goto gyvPg; lSukR: $item = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'item') . ' Where id = :id LIMIT 1', array(":id" => $card_id)); goto emCg1; KZdXF: $item = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'identify') . ' Where id = :id LIMIT 1', array(":id" => $card_id)); goto kB6d8; CK_ML: if ($type == 1) { goto GEIXN; } goto gUDci; RNlBY: $condition['title'] = $item['title']; goto PMlEF; YwW0t: $condition['name'] = $item['name']; goto RNlBY; MM5sv: goto EAZ9p; goto PddFv; PMlEF: $condition['company'] = $item['company']; goto Ex2qR; gyvPg: if (!isset($item['picture'])) { goto SUP6R; } goto qPp51; dR_Ff: $condition = array(); goto CK_ML; dHFVW: } public function views($uid, $card_id, $type, $ud) { goto xfDBG; gHIdf: goto X0_e1; goto fVHvk; Z1Yuy: XdOxR: goto Z8OZg; QP0Yq: if (!($type == 2)) { goto wrETy; } goto tnBhO; ESQL0: if ($coll != false) { goto EnYBP; } goto jOcPM; Lp1kJ: df7Jz: goto gHIdf; nXN90: ILoBg: goto mIZQs; fVHvk: KYePH: goto iAzy4; mIZQs: if ($ud == 1) { goto KYePH; } goto gNh9X; uCtrX: goto oBp7w; goto Hlf1I; q5s89: return $this->editViews($card_id, $coll['id'], 2); goto DlzI8; TRUwH: $coll = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'views') . ' WHERE card_id = :card_id', array(":card_id" => $card_id)); goto QBnNm; Ka9Ia: goto Abo0z; goto nXN90; qGhWQ: wrETy: goto kL6b3; iAzy4: return $this->editViews($card_id, $coll['id'], 1); goto t6MRh; jrb0H: return $coll; goto Ka9Ia; t6MRh: X0_e1: goto TcU2K; kL6b3: goto XdOxR; goto GJrxR; TIlcP: goto lLvS1; goto a2Zn7; tnBhO: $coll = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'views') . ' WHERE identify_id = :identify_id', array(":identify_id" => $card_id)); goto ESQL0; TcU2K: Abo0z: goto Z1Yuy; hlStw: return pdo_delete($this->tablePrefix . 'views', array("id" => $coll['id'])); goto Lp1kJ; Hlf1I: EnYBP: goto fpuX1; GJrxR: BQ_pU: goto TRUwH; DlzI8: lLvS1: goto vF8s6; vF8s6: oBp7w: goto qGhWQ; gNh9X: if (!($ud == 2)) { goto df7Jz; } goto hlStw; jOcPM: return $coll; goto uCtrX; fpuX1: if ($ud == 1) { goto t_mdU; } goto EPLmP; QBnNm: if ($coll != false) { goto ILoBg; } goto jrb0H; xJnPW: q7mQg: goto TIlcP; Qe2x0: return pdo_delete($this->tablePrefix . 'views', array("id" => $coll['id'])); goto xJnPW; a2Zn7: t_mdU: goto q5s89; xfDBG: if ($type == 1) { goto BQ_pU; } goto QP0Yq; EPLmP: if (!($ud == 2)) { goto q7mQg; } goto Qe2x0; Z8OZg: } public function editViews($card_id, $coll_id, $type) { goto IK5Qc; K5Ze5: $condition['title'] = $item['title']; goto jbYfg; jbYfg: $condition['company'] = $item['company']; goto n0wVu; HDDpj: $condition['name'] = $item['name']; goto K5Ze5; jhDK0: BaYpr: goto oUpJ_; IK5Qc: $condition = array(); goto v60jc; n0wVu: return pdo_update($this->tablePrefix . 'views', $condition, array("id" => $coll_id)); goto Y1HXR; v60jc: if ($type == 1) { goto c5VRk; } goto TuTVW; K7kJG: c5VRk: goto ehjG2; q2yZb: $item = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'identify') . ' Where id = :id LIMIT 1', array(":id" => $card_id)); goto jhDK0; JZb1L: $condition['avatar'] = $item['picture']; goto KpIps; oUpJ_: goto L9xUh; goto K7kJG; HUjQL: if (!isset($item['picture'])) { goto hSYr1; } goto JZb1L; IrXf6: L9xUh: goto HUjQL; ehjG2: $item = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'item') . ' Where id = :id LIMIT 1', array(":id" => $card_id)); goto IrXf6; KpIps: hSYr1: goto HDDpj; TuTVW: if (!($type == 2)) { goto BaYpr; } goto q2yZb; Y1HXR: } public function DelItemAll($card_id) { goto a5AFa; Rf6x4: pdo_delete($this->tablePrefix . 'website', array("card_id" => $card_id)); goto JpQMv; xXI6u: JWOVq: goto opMlO; a5AFa: if (!($card_id == false)) { goto Ko070; } goto B0MhC; JpQMv: $squareList = pdo_getall($this->tablePrefix . 'square', array("card_id" => $card_id), array("id"), ''); goto d379r; TSfh5: pdo_delete($this->tablePrefix . 'album', array("card_id" => $card_id)); goto UCFiw; QvNdK: pdo_delete($this->tablePrefix . 'comeback', array("card_id" => $card_id)); goto h9eMe; bwtLE: pdo_delete($this->tablePrefix . 'store', array("card_id" => $card_id)); goto ifsgG; he1R8: foreach ($albumIds as $v) { $albumArr[] = $v['id']; p_8qV: } goto Q_Y5a; Rz7w2: Ko070: goto ldgjP; Mmqi7: $albumArr = array(); goto he1R8; Q_Y5a: gpQ8K: goto zLfgE; U1ENj: pdo_delete($this->tablePrefix . 'dynamic', array("card_id" => $card_id)); goto bwtLE; h9eMe: pdo_delete($this->tablePrefix . 'cardbg', array("card_id" => $card_id)); goto TSfh5; mV4TL: foreach ($squareList as $v) { $idArr[] = $v['id']; eNM0d: } goto xXI6u; ldgjP: $albumIds = pdo_getall($this->tablePrefix . 'album', array("card_id" => $card_id), array("id"), ''); goto AFY9p; AFY9p: if (!(count($albumIds) > 0)) { goto oHkTT; } goto Mmqi7; mOD3t: oHkTT: goto QvNdK; UCFiw: pdo_delete($this->tablePrefix . 'video', array("card_id" => $card_id)); goto U1ENj; zLfgE: pdo_delete($this->tablePrefix . 'pic', array("album_id in" => $albumArr)); goto mOD3t; d379r: if (!(count($squareList) > 0)) { goto bvfhS; } goto XwpAM; opMlO: $this->doWebDemandDels($idArr); goto XffZ1; ifsgG: pdo_delete($this->tablePrefix . 'goods', array("card_id" => $card_id)); goto Rf6x4; B0MhC: return false; goto Rz7w2; XffZ1: bvfhS: goto lj95R; XwpAM: $idArr = array(); goto mV4TL; lj95R: } public function doWebDemandDels($idArr = array()) { goto XWYEl; ttAow: $ids = $idArr; goto fr8Nm; fr8Nm: vXalZ: goto BLW42; BLW42: pdo_delete($this->tablePrefix . 'squarelikes', array("sid in" => $ids)); goto iLPhB; DABQ7: bpvw4: goto Y3hNA; KnDoG: if ($result != false) { goto XFhoj; } goto DqQG3; OIUPg: goto bpvw4; goto G4QIJ; SQTKP: $result = pdo_delete($this->tablePrefix . 'square', array("id in" => $ids)); goto KnDoG; DqQG3: $this->json_return('', 0); goto OIUPg; w10F6: $this->json_return(''); goto DABQ7; XWYEl: global $_GPC, $_W; goto qeEGX; G4QIJ: XFhoj: goto w10F6; iLPhB: pdo_delete($this->tablePrefix . 'squarecomments', array("sid in" => $ids)); goto avI_6; avI_6: pdo_delete($this->tablePrefix . 'squareviews', array("sid in" => $ids)); goto SQTKP; qeEGX: $ids = $_GPC['ids']; goto Gn0vi; Gn0vi: if (!(is_array($idArr) && count($idArr) > 0)) { goto vXalZ; } goto ttAow; Y3hNA: } public function doWebItemAlbum() { goto XDZf5; XDZf5: global $_GPC, $_W; goto chwxs; AmFON: $total = count($totalList); goto Ckv_u; SBXyp: $pager = pagination($total, $pageindex, $pagesize); goto ywrtD; chwxs: $card_id = intval($_GPC['card_id']); goto N_URA; DaIVh: $pagesize = $this->pageCount; goto SBXyp; tfxRh: jNTsb: goto O8q1a; GW_vo: goto Arttf; goto tfxRh; NmOG5: $pageindex = $_GPC['page']; goto GW_vo; N_URA: $totalList = pdo_getall($this->tablePrefix . 'album', array("card_id" => $card_id, "uniacid" => $_W['uniacid']), array("id"), ''); goto AmFON; gMXS8: include $this->template('album/album_list'); goto R8aOE; ANlp_: Arttf: goto DaIVh; ywrtD: $list = pdo_getall($this->tablePrefix . 'album', array("card_id" => $card_id, "uniacid" => $_W['uniacid']), array("id", "card_id", "name", "path", "pic_num", "status"), '', array("id desc"), array($pageindex, $pagesize)); goto gMXS8; O8q1a: $pageindex = 1; goto ANlp_; Ckv_u: if (!isset($_GPC['page'])) { goto jNTsb; } goto NmOG5; R8aOE: } public function doWebAlbumEdit() { goto hJbhD; BAG0V: $card_id = intval($_GPC['card_id']); goto hJFDr; hJbhD: global $_GPC, $_W; goto BAG0V; hJFDr: include $this->template('album/album_info'); goto oyAIu; oyAIu: } public function doWebAlbumSave() { goto eDk3x; FPZMf: if (!(trim($_GPC['name']) == '')) { goto zgEUA; } goto g8RO3; CfKge: $card_id = intval($_GPC['card_id']); goto Abr5n; YngE0: if (!(trim($_GPC['path']) == '')) { goto BuprN; } goto HzsRI; x60d_: zgEUA: goto YngE0; EPLAB: $this->json_return(''); goto Hthp5; g8RO3: $this->json_return('', 0); goto x60d_; Abr5n: if (!($card_id < 1)) { goto njRco; } goto MgBsY; Hthp5: uUA5h: goto GUJBb; of3LW: $this->json_return('', 0); goto wRt9S; cESg6: if ($result != false) { goto lj3So; } goto of3LW; eDk3x: global $_GPC, $_W; goto CfKge; HzsRI: $this->json_return('', 0); goto Yix5s; EP4pe: $condition['card_id'] = $card_id; goto H2PwQ; ldYPT: $condition['status'] = intval($_GPC['status']); goto EP4pe; k0m3c: $condition['create_time'] = time(); goto N5NLw; wRt9S: goto uUA5h; goto pJt7F; N5NLw: $result = pdo_insert($this->tablePrefix . 'album', $condition); goto cESg6; RY2gV: njRco: goto FPZMf; pJt7F: lj3So: goto EPLAB; H2PwQ: $condition['uniacid'] = $_W['uniacid']; goto k0m3c; gUQEU: $condition['path'] = $_GPC['path']; goto ldYPT; Yix5s: BuprN: goto IFtX5; IFtX5: $condition['name'] = trim($_GPC['name']); goto gUQEU; MgBsY: $this->json_return('', 0); goto RY2gV; GUJBb: } public function doWebAlbumDel() { goto JZ7Bu; If7b4: if ($result != false) { goto J2XCs; } goto lpO7_; JZ7Bu: global $_GPC, $_W; goto w89ao; JtKFL: goto EsPOl; goto UZyNI; DAcMd: if ($count > 0) { goto xqxx1; } goto OlDp1; UZyNI: xqxx1: goto ow8Nh; mKz0r: J2XCs: goto FVhyz; RKqcf: $result = pdo_delete($this->tablePrefix . 'album', array("id" => $id)); goto If7b4; uYG4E: goto AvocC; goto mKz0r; lpO7_: $this->json_return(''); goto uYG4E; rcyCH: EsPOl: goto R0xHJ; ow8Nh: $this->json_return('' . $count . ', !', 0); goto rcyCH; WtJUE: $count = count($picList); goto DAcMd; FVhyz: file_delete($pic['path']); goto N300E; wSdmr: AvocC: goto JtKFL; w89ao: $id = intval($_GPC['id']); goto X1buY; OlDp1: $pic = pdo_fetch('SELECT `path` FROM ' . tablename($this->tablePrefix . 'album') . ' WHERE `id` = :id LIMIT 1', array(":id" => $id)); goto RKqcf; N300E: $this->json_return(''); goto wSdmr; X1buY: $picList = pdo_getall($this->tablePrefix . 'pic', array("album_id" => $id), array("id"), ''); goto WtJUE; R0xHJ: } public function doWebItemPic() { goto LzKG0; NMvV0: goto cj23N; goto Ljrwt; LzKG0: global $_GPC, $_W; goto yVcGc; o2DPW: $pagesize = $this->pageCount; goto Qron3; Qron3: $pager = pagination($total, $pageindex, $pagesize); goto Y8B_H; Ljrwt: xNNZt: goto LpRQ6; Y8B_H: $list = pdo_getall($this->tablePrefix . 'pic', array("album_id" => $album_id, "card_id" => $card_id, "uniacid" => $_W['uniacid']), array("id", "name", "path", "views"), '', array("id desc"), array($pageindex, $pagesize)); goto GMC9f; KX7UI: $pageindex = $_GPC['page']; goto NMvV0; LpRQ6: $pageindex = 1; goto cqteu; iSnqU: include $this->template('album/pic_list'); goto yG3rs; GMC9f: $card = pdo_fetch('SELECT `uid` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `id` = ' . $card_id); goto iSnqU; cqteu: cj23N: goto o2DPW; AwIkO: $album_id = intval($_GPC['album_id']); goto b5bIn; b5bIn: $totalList = pdo_getall($this->tablePrefix . 'pic', array("album_id" => $album_id, "card_id" => $card_id, "uniacid" => $_W['uniacid']), array("id"), ''); goto kbuuE; yVcGc: $card_id = intval($_GPC['card_id']); goto AwIkO; kbuuE: $total = count($totalList); goto CyDcH; CyDcH: if (!isset($_GPC['page'])) { goto xNNZt; } goto KX7UI; yG3rs: } public function doWebPicEdit() { goto djgA0; ojk2v: include $this->template('album/pic_info'); goto e97Hg; djgA0: global $_GPC, $_W; goto l2mGO; F76Vp: $album_id = intval($_GPC['album_id']); goto ojk2v; l2mGO: $card_id = intval($_GPC['card_id']); goto F76Vp; e97Hg: } public function doWebPicSave() { goto lXhzw; q0xdY: $condition['uniacid'] = $_W['uniacid']; goto beCyF; lXhzw: global $_GPC, $_W; goto bkEsP; YfsdV: $this->json_return('', 0); goto C8rI6; IsdM7: if ($re != false) { goto fe1fB; } goto iyWOX; ry1gq: $this->json_return(''); goto Ab2at; C8rI6: s79r2: goto cMb9W; cMb9W: $condition['name'] = trim($_GPC['name']); goto AHUmR; soKhn: $condition['album_id'] = $album_id; goto q0xdY; xwacN: $this->json_return('', 0); goto CZy5B; Ab2at: QLHDH: goto TV7en; TV7en: yora5: goto PyMSU; iyWOX: $this->json_return('', 0); goto Bh51E; vbAiH: $album_id = intval($_GPC['album_id']); goto r9NMr; Fj8sG: fe1fB: goto ry1gq; teg2C: kU22L: goto LaxFg; Bh51E: goto QLHDH; goto Fj8sG; AHUmR: $condition['card_id'] = $card_id; goto soKhn; WkJ2L: inFDx: goto IsdM7; r9NMr: if (!($card_id < 1 || $album_id < 1)) { goto s79r2; } goto YfsdV; bkEsP: $card_id = intval($_GPC['card_id']); goto vbAiH; LaxFg: foreach ($_GPC['path'] as $v) { goto mx62H; p8GMs: $re = pdo_insert($this->tablePrefix . 'pic', $condition); goto mI9oO; mx62H: $condition['create_time'] = time(); goto qh0wB; mI9oO: I_uix: goto hYjrC; qh0wB: $condition['path'] = $v; goto p8GMs; hYjrC: } goto WkJ2L; beCyF: if (count($_GPC['path']) > 0) { goto kU22L; } goto xwacN; CZy5B: goto yora5; goto teg2C; PyMSU: } public function doWebPicDel() { goto Kvh7U; PsbX0: goto Q6ZwM; goto A5XrA; Vtzhr: uNeNr: goto kHmVF; cSJcu: $id = intval($_GPC['id']); goto nIJBS; veSrX: if ($result != false) { goto TdcWp; } goto yN0iq; ugiz3: $this->json_return('', 0); goto Vtzhr; XLGPq: Q6ZwM: goto bzpA2; KPm38: $this->json_return(''); goto XLGPq; yN0iq: $this->json_return('', 0); goto PsbX0; A5XrA: TdcWp: goto J2Ueo; kHmVF: $result = pdo_delete($this->tablePrefix . 'pic', array("id" => $id)); goto veSrX; Kvh7U: global $_GPC, $_W; goto cSJcu; nIJBS: $path = $_GPC['path']; goto Z9zi2; J2Ueo: file_delete($path); goto KPm38; Z9zi2: if (!($id < 1)) { goto uNeNr; } goto ugiz3; bzpA2: } public function doWebItemVideo() { goto cM1Xd; aA3wK: include $this->template('video/video_list'); goto aSnE0; Qv_bw: vLZy6: goto evY_Q; Ba5uL: $pagesize = $this->pageCount; goto PfSXm; VCOFn: goto QdPwX; goto Qv_bw; JJJC6: $totalList = pdo_getall($this->tablePrefix . 'video', array("card_id" => $card_id), array("id"), ''); goto CpThM; K3RZH: QdPwX: goto Ba5uL; PfSXm: $pager = pagination($total, $pageindex, $pagesize); goto pUKUg; RC00f: if (!isset($_GPC['page'])) { goto vLZy6; } goto PlIam; evY_Q: $pageindex = 1; goto K3RZH; yLqfL: $num = count($list) >= 1 ? 1 : 0; goto aA3wK; cM1Xd: global $_GPC, $_W; goto fVZng; fVZng: $card_id = intval($_GPC['card_id']); goto JJJC6; CpThM: $total = count($totalList); goto RC00f; PlIam: $pageindex = $_GPC['page']; goto VCOFn; pUKUg: $list = pdo_getall($this->tablePrefix . 'video', array("card_id" => $card_id, "uniacid" => $_W['uniacid']), array("id", "name", "path", "thumb", "duration", "size", "views", "status", "create_time"), '', array("id desc"), array($pageindex, $pagesize)); goto yLqfL; aSnE0: } public function doWebVideoDel() { goto ZBCWs; yjsGJ: goto AE1Cr; goto Ui7py; mN9Li: $path = pdo_fetch('SELECT `path` FROM ' . tablename($this->tablePrefix . 'video') . ' WHERE `id`= ' . $id); goto GCys1; dVaSC: AE1Cr: goto AWOhL; Ui7py: zDLDp: goto nQX7S; WFX88: if ($result != false) { goto zDLDp; } goto R03_p; R03_p: $this->json_return('', 0); goto yjsGJ; pTWrj: $this->json_return(''); goto dVaSC; nQX7S: file_delete($path['path']); goto pTWrj; q41_y: $id = intval($_GPC['id']); goto mN9Li; GCys1: $result = pdo_delete($this->tablePrefix . 'video', array("id" => $id)); goto WFX88; ZBCWs: global $_GPC, $_W; goto q41_y; AWOhL: } public function doWebItemAudio() { goto zlOKV; TYcNY: $pagesize = $this->pageCount; goto OsDWk; IY3JM: include $this->template('audio/audio_list'); goto HJFpn; D7PiW: $num = count($list) >= 1 ? 1 : 0; goto IY3JM; hYZjZ: goto lJUOg; goto e2mxT; q3JCT: if (!isset($_GPC['page'])) { goto gGzSt; } goto DDpjM; e2mxT: gGzSt: goto EHbmc; ftSOU: $list = pdo_getall($this->tablePrefix . 'audio', array("card_id" => $card_id, "uniacid" => $_W['uniacid']), array("id", "name", "path", "duration", "size", "views", "status", "create_time"), '', array("id desc"), array($pageindex, $pagesize)); goto D7PiW; EHbmc: $pageindex = 1; goto peoBy; Y2cfz: $totalList = pdo_getall($this->tablePrefix . 'audio', array("card_id" => $card_id), array("id"), ''); goto jkP5w; OsDWk: $pager = pagination($total, $pageindex, $pagesize); goto ftSOU; zlOKV: global $_GPC, $_W; goto hgsME; hgsME: $card_id = intval($_GPC['card_id']); goto Y2cfz; peoBy: lJUOg: goto TYcNY; jkP5w: $total = count($totalList); goto q3JCT; DDpjM: $pageindex = $_GPC['page']; goto hYZjZ; HJFpn: } public function doWebAudioDel() { goto eRnfq; oMkDV: $path = pdo_fetch('SELECT `path` FROM ' . tablename($this->tablePrefix . 'audio') . ' WHERE `id`=' . $id); goto Ny4GM; YWbBE: GTcn2: goto Li8bq; ykggu: if ($result != false) { goto GTcn2; } goto jc12Q; eRnfq: global $_GPC, $_W; goto BuBgj; cLguG: hWTiB: goto jhtQG; FVR_f: $this->json_return(''); goto cLguG; Ny4GM: $result = pdo_delete($this->tablePrefix . 'audio', array("id" => $id)); goto ykggu; hyzrC: goto hWTiB; goto YWbBE; Li8bq: file_delete($path['path']); goto FVR_f; jc12Q: $this->json_return('', 0); goto hyzrC; BuBgj: $id = intval($_GPC['id']); goto oMkDV; jhtQG: } public function doWebExamineItem() { goto Q8xn3; vFPDQ: if (!($name != '')) { goto C2_22; } goto DD1Km; JAwmR: oOJdK: goto AlQ6v; AlQ6v: $pagesize = 5; goto PrNR9; HKGgm: ouXZa: goto VVrtj; lYD10: $count = count($allList); goto o9A8T; H1c0C: if (!(trim($_GPC['mobile']) != '')) { goto IQP65; } goto eoUie; gxP55: goto oOJdK; goto HKGgm; PrNR9: $pager = pagination($count, $pageindex, $pagesize); goto jSBtQ; xG0aT: include $this->template('examine_item/examine_item_list'); goto qtkpe; o0P_p: IQP65: goto TDFM9; v2Omn: $pageindex2 = 0; goto JAwmR; bhZfS: $pageindex2 = (intval($_GPC['page']) - 1) * 5; goto gxP55; eoUie: $where .= ' and `i`.`mobile`=' . trim($_GPC['mobile']); goto o0P_p; o9A8T: if (!isset($_GPC['page'])) { goto ouXZa; } goto y9jGT; Wf8wC: $url = $this->createWebUrl('examineItem'); goto JYF04; vDjMw: $name = trim($_GPC['name']); goto vFPDQ; jSBtQ: $list = pdo_fetchall('SELECT `i`.`id`,`i`.`uid`,`i`.`name`,`i`.`picture`,`i`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'item') . ' `i` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `i`.`uid`=`m`.`uid`' . $where . ' ORDER BY `i`.`create_time` LIMIT ' . $pageindex2 . ',' . $pagesize); goto xG0aT; VVrtj: $pageindex = 0; goto v2Omn; lxytd: if (!($nickname != '')) { goto FhVw2; } goto uApqL; y9jGT: $pageindex = intval($_GPC['page']); goto bhZfS; JYF04: $where = ' WHERE `i`.`uniacid`=' . $_W['uniacid'] . ' and `i`.`status`=3'; goto FlJf6; DD1Km: $where .= ' and `i`.`name` LIKE \'%' . $name . '%\''; goto Exo8T; hmMG5: FhVw2: goto vDjMw; Q8xn3: global $_GPC, $_W; goto Wf8wC; Exo8T: C2_22: goto H1c0C; FlJf6: $nickname = trim($_GPC['nickname']); goto lxytd; uApqL: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto hmMG5; TDFM9: $allList = pdo_fetchall('SELECT `i`.`id`,`i`.`name`,`m`.`nickname` FROM ' . tablename($this->tablePrefix . 'item') . ' `i` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `i`.`uid`=`m`.`uid` ' . $where); goto lYD10; qtkpe: } public function doWebExamineItemInfo() { goto ebIJ2; ebIJ2: global $_GPC, $_W; goto wvXk5; jcdWH: include $this->template('examine_item/examine_item_info'); goto WzUeo; wvXk5: $id = intval($_GPC['id']); goto wXKe3; wXKe3: $data = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'item') . ' where `id`=:id', array(":id" => $id)); goto jcdWH; WzUeo: } public function doWebExamineItemStatus() { goto COIDP; gDbHD: rvhwK: goto mtq26; JNgNZ: $sub_count = $temp['audit_msg_sub']; goto L1vM2; Wuwuw: $data = array("thing5" => array("value" => '[' . $item['name'] . ']'), "phrase1" => array("value" => ""), "date4" => array("value" => date('Y/m/d H:i'))); goto PnHdu; oybeb: rKXuZ: goto WpHma; HeIwm: Ga7IM: goto wipR3; WpHma: ML_pf: goto Klt2E; tvWZQ: if (!($result != false)) { goto hka8z; } goto QrWM6; Qyo3o: $temp = pdo_fetch('SELECT `audit_msg_sub` FROM ' . tablename($this->tablePrefix . 'usersub') . ' WHERE uid = :uid LIMIT 1', array(":uid" => $item['uid'])); goto N4u0w; m2orM: $touser = $this->getFansInfoByUid($item['uid'], 'openid'); goto Iz8Hw; c1cNu: ZnVBd: goto y5gTI; VUUi8: E1h0d: goto xkcg8; CDMI6: $data = array("first" => array("value" => ""), "keyword1" => array("value" => getAppConfSd('app_name')), "keyword2" => array("value" => '[' . $item['name'] . ']-[]'), "remark" => array("value" => date('Y-m-d H:i'))); goto tg9z3; q_845: rrILf: goto m2orM; tg9z3: $re_account_msg = $this->sendAccountMsg($touser, $page, $data, '', $item['uid']); goto s95vx; QAiT1: pdo_update($this->tablePrefix . 'user', array("allow_create" => 1), array("id" => $id)); goto joZzk; lQ2C2: $data = array("first" => array("value" => ""), "keyword1" => array("value" => getAppConfSd('app_name')), "keyword2" => array("value" => '[' . $item['name'] . ']-[]'), "remark" => array("value" => date('Y-m-d H:i'))); goto lZvB1; Nnnpf: $data = array("thing5" => array("value" => '[' . $item['name'] . ']'), "phrase1" => array("value" => ""), "date4" => array("value" => date('Y/m/d H:i'))); goto RH8kY; Rd2hd: $page = 'super_card/pages/index/index'; goto LDm64; zAZ2I: if (!(!$re_account_msg && $temp_id)) { goto ML_pf; } goto Qyo3o; lZvB1: $re_account_msg = $this->sendAccountMsg($touser, $page, $data, '', $item['uid']); goto gDbHD; orMrU: goto E1h0d; goto HeIwm; RH8kY: $re = $this->sendSubMsg($touser, $temp_id, $page, $data); goto YFxTZ; dO9ei: goto QJ36S; goto c1cNu; rlgXZ: insertNotice($item['uid'], $id, ''); goto q_845; joZzk: if (!($result != false)) { goto LTHYu; } goto HI84X; z9yTg: $item = pdo_fetch('SELECT `uid`, `name` FROM ' . tablename($this->tablePrefix . 'item') . ' where `id`=:id', array(":id" => $id)); goto jnUtF; lpxGG: pdo_insert($this->tablePrefix . 'msglog', array("uniacid" => $_W['uniacid'], "uid" => $item['uid'], "msg" => "", "r_content" => $re['content'], "create_time" => time())); goto X3HPb; COIDP: global $_GPC, $_W; goto eW1aO; xkcg8: if ($result != false) { goto ZnVBd; } goto NJn0d; BYYqW: if (!($sub_count > 0)) { goto rKXuZ; } goto Nnnpf; nwAww: $temp_id = getAppConfSd('audit_results_tempid'); goto To2eE; VeZPo: $status = intval($_GPC['status']); goto z9yTg; s95vx: mzArC: goto nwAww; KyXmN: QJ36S: goto aeh5h; Jfeg0: ZjOsD: goto BT9zg; TeGJv: $temp = pdo_fetch('SELECT `audit_msg_sub` FROM ' . tablename($this->tablePrefix . 'usersub') . ' WHERE uid = :uid LIMIT 1', array(":uid" => $item['uid'])); goto JNgNZ; jnUtF: if ($status == 1) { goto Ga7IM; } goto HlEb_; Hlq3I: pdo_query('UPDATE ' . tablename($this->tablePrefix . 'usersub') . ' SET `audit_msg_sub` = `audit_msg_sub` - 1 WHERE uid = :uid', array(":uid" => $item['uid'])); goto lpxGG; LDm64: if (!(getAppConfSd('account_msg_switch') == 1)) { goto rvhwK; } goto lQ2C2; Iz8Hw: $page = 'super_card/pages/index/index'; goto s5sR0; X3HPb: fAWmX: goto Jfeg0; BgBvv: ioMqr: goto orMrU; Lxack: pdo_insert($this->tablePrefix . 'msglog', array("uniacid" => $_W['uniacid'], "uid" => $item['uid'], "msg" => "", "r_content" => $re['content'], "create_time" => time())); goto oybeb; wipR3: $result = pdo_update($this->tablePrefix . 'item', array("status" => 1), array("id" => $id, "uniacid" => $_W['uniacid'])); goto tvWZQ; BT9zg: hka8z: goto VUUi8; YFxTZ: pdo_query('UPDATE ' . tablename($this->tablePrefix . 'usersub') . ' SET `audit_msg_sub` = `audit_msg_sub` - 1 WHERE uid = :uid', array(":uid" => $item['uid'])); goto Lxack; PnHdu: $re = $this->sendSubMsg($touser, $temp_id, $page, $data); goto Hlq3I; HI84X: $touser = $this->getFansInfoByUid($item['uid'], 'openid'); goto Rd2hd; N4u0w: $sub_count = $temp['audit_msg_sub']; goto BYYqW; L1vM2: if (!($sub_count > 0)) { goto fAWmX; } goto Wuwuw; Klt2E: LTHYu: goto BgBvv; QrWM6: if (!($item['uid'] > 0)) { goto rrILf; } goto rlgXZ; To2eE: if (!(!$re_account_msg && $temp_id)) { goto ZjOsD; } goto TeGJv; NJn0d: echo json_encode(array("code" => 0, "msg" => "")); goto dO9ei; s5sR0: if (!(getAppConfSd('account_msg_switch') == 1)) { goto mzArC; } goto CDMI6; y5gTI: echo json_encode(array("code" => 1, "msg" => "")); goto KyXmN; mtq26: $temp_id = getAppConfSd('audit_results_tempid'); goto zAZ2I; eW1aO: $id = intval($_GPC['id']); goto VeZPo; Nq3mv: $result = pdo_delete($this->tablePrefix . 'item', array("id" => $id, "uniacid" => $_W['uniacid'])); goto QAiT1; HlEb_: if (!($status == 4)) { goto ioMqr; } goto Nq3mv; aeh5h: } public function doWebCardBg() { goto vrssq; E8Rom: include $this->template('card_bg/card_bg_list'); goto KOXWl; vrssq: global $_GPC, $_W; goto RS185; RS185: $list = pdo_getall($this->tablePrefix . 'cardbg', array("uniacid" => $_W['uniacid'], "type" => 0), array(), '', array("sort DESC"), array()); goto E8Rom; KOXWl: } public function doWebCardBgEdit() { goto KtcPk; QPfUL: $data = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'cardbg') . ' WHERE id = :id LIMIT 1', array(":id" => $id)); goto mPh8l; mPh8l: oAjLZ: goto APtj5; rtzRs: $id = intval($_GPC['id']); goto UAhEP; KtcPk: global $_GPC, $_W; goto rtzRs; UAhEP: if (!($id > 0)) { goto oAjLZ; } goto QPfUL; APtj5: include $this->template('card_bg/card_bg_info'); goto v0qm4; v0qm4: } public function doWebCardBgSave() { goto OOQX7; Ntb7Y: $condition = array(); goto ESICQ; wlIiw: $condition['bg_music'] = $_GPC['bg_music']; goto y63uV; Qk_of: $this->json_return('', 0); goto SZbGw; SZbGw: hS38m: goto DUZzM; rtVkX: $condition['name'] = $_GPC['name']; goto j3NzQ; y63uV: $condition['text_color'] = !empty($_GPC['text_color']) ? $_GPC['text_color'] : '#fff'; goto JuExZ; n4eBd: if ($result != false) { goto dFaf8; } goto V7Hy8; nXvpt: dFaf8: goto VxmHd; Pw6vk: pdo_update($this->tablePrefix . 'item', array("bg_color" => $condition['text_color'], "bg_music" => $condition['bg_music']), array("bg_id" => $id)); goto CcIJe; Jf_q1: $result = pdo_insert($this->tablePrefix . 'cardbg', $condition); goto Zf6NH; FROso: fzws_: goto Ntb7Y; j3NzQ: $condition['bg_url'] = $_GPC['bg_url']; goto wlIiw; Zf6NH: goto jkyLs; goto FGKcd; FGKcd: bAoe0: goto RKZFb; V7Hy8: $this->json_return('', 0); goto TQKkt; JuExZ: $condition['sort'] = intval($_GPC['sort']); goto t6DC9; RKZFb: $result = pdo_update($this->tablePrefix . 'cardbg', $condition, array("id" => $id, "uniacid" => $_W['uniacid'])); goto edW40; jv3ps: if (!empty($_GPC['name'])) { goto hS38m; } goto Qk_of; DUZzM: if (!empty($_GPC['bg_url'])) { goto fzws_; } goto Pe9QD; f_Mrz: if ($id > 0) { goto bAoe0; } goto Jf_q1; VxmHd: $this->json_return(''); goto FJhFq; t6DC9: $condition['status'] = intval($_GPC['status']); goto w5TKd; edW40: if (!($result != false)) { goto URb01; } goto Pw6vk; Pe9QD: $this->json_return('', 0); goto FROso; FJhFq: cDm2r: goto xZZ7b; w5TKd: $id = intval($_GPC['id']); goto f_Mrz; TQKkt: goto cDm2r; goto nXvpt; CcIJe: URb01: goto hJB9I; ESICQ: $condition['uniacid'] = $_W['uniacid']; goto rtVkX; OOQX7: global $_GPC, $_W; goto jv3ps; hJB9I: jkyLs: goto n4eBd; xZZ7b: } public function doWebcardBgDel() { goto q3Ba3; c_Pt7: if ($result != false) { goto SNr5g; } goto eP5AO; iFSXa: $this->json_return(',', 0); goto KSmzk; WGRRV: $result = pdo_delete($this->tablePrefix . 'cardbg', array("id" => $_GPC['id'], "uniacid" => $_W['uniacid'])); goto c_Pt7; MgzQh: goto eLKPp; goto hg7Ds; q3Ba3: global $_GPC, $_W; goto cv9mG; qhzQj: QrR8C: goto MgzQh; fol_S: SNr5g: goto JYB0S; hg7Ds: LIMCb: goto iFSXa; JYB0S: $this->json_return(''); goto qhzQj; YxpVn: if ($bgNum != false) { goto LIMCb; } goto WGRRV; cv9mG: $bgNum = pdo_fetch('SELECT `id`,`uid` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE bg_id = :id', array(":id" => $_GPC['id'])); goto YxpVn; T3ZVG: goto QrR8C; goto fol_S; eP5AO: $this->json_return('', 0); goto T3ZVG; KSmzk: eLKPp: goto Oj41O; Oj41O: } public function doWebArtList() { goto OJwlN; jz9yd: if (!$name) { goto YzONk; } goto U0V0R; m_lIP: lRw35: goto ndFas; OJwlN: global $_GPC, $_W; goto SOnO4; dwKP0: Bcb_r: goto GhtrN; us7iL: $title = trim($_GPC['title']); goto TiGjv; JO0W5: zNmP_: goto ahJEI; U0V0R: $where .= ' and `i`.`name` LIKE \'%' . $name . '%\''; goto mct6c; GhtrN: if (!($datemin && $datemax == false)) { goto jRJXJ; } goto iSyB7; CZzdA: if (!($status != '' && intval($status) !== false)) { goto yibbO; } goto AK8tC; krzy7: $where .= ' and `a`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto dwKP0; PUyW6: $datemax = strtotime($_GPC['datemax']); goto sNZTT; xVfmg: $pageindex = $_GPC['page']; goto ud1Q1; VC8yE: UFJHt: goto i_0VG; LaeBZ: jRJXJ: goto Uck7F; ahJEI: $pageindex = 0; goto mML49; ndFas: $pager = pagination($total, $pageindex, $pagesize); goto WNpEe; WNpEe: $list = pdo_fetchall('SELECT `a`.`id`, `a`.`card_id`, `a`.`title`,`a`.`pic`, `a`.`link`, `a`.`views`, `a`.`forwards`, `a`.`spread`, `a`.`reship`, `a`.`status`, `a`.`sort`, `a`.`create_time`, `i`.`name`, `c`.`name` as `cate` FROM ' . tablename($this->tablePrefix . 'art') . ' `a`' . ' LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `a`.`card_id`=`i`.`id` LEFT JOIN ' . tablename($this->tablePrefix . 'artcate') . ' `c` ON `a`.`cate_id`=`c`.`id`' . $where . ' ORDER BY a.`create_time` DESC limit ' . $pageindex2 . ',' . $pagesize); goto K8vl1; nxIJa: $res = pdo_fetch('SELECT count(`a`.`id`) as total From ' . tablename($this->tablePrefix . 'art') . ' AS `a` ' . $where); goto HZ_U5; rn6FN: if (!($cate != '' && intval($cate) !== false)) { goto UFJHt; } goto SNP8B; YTGZA: $where .= ' and `a`.`create_time` < ' . $datemax; goto uiIBV; ud1Q1: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto nkNei; sf8RH: yibbO: goto IJC6m; SNP8B: $where .= ' and `a`.`cate_id` = ' . intval($cate); goto VC8yE; byrl1: eyYQe: goto Hb9ek; mct6c: YzONk: goto us7iL; TiGjv: if (empty($title)) { goto eyYQe; } goto FfHHz; i_0VG: $status = $_GPC['status']; goto CZzdA; S8s3B: if (!$_GPC['page']) { goto zNmP_; } goto xVfmg; w4LjM: $where = ' WHERE `a`.`uniacid` = ' . $_W['uniacid']; goto kOgD1; AK8tC: $where .= ' and `a`.`status` = ' . intval($status); goto sf8RH; sNZTT: if (!($datemin && $datemax)) { goto Bcb_r; } goto krzy7; kOgD1: $name = trim($_GPC['name']); goto jz9yd; SOnO4: $url = $this->createWebUrl('artList'); goto w4LjM; K8vl1: $cate_list = pdo_fetchall('SELECT `id`,`name` FROM ' . tablename($this->tablePrefix . 'artcate') . " WHERE `uniacid` = {$_W['uniacid']} AND `status` = 1 ORDER BY `sort` DESC"); goto C1fwV; Uck7F: if (!($datemax && $datemin == false)) { goto ZeLDT; } goto YTGZA; HZ_U5: $total = $res['total']; goto B3T68; IJC6m: $datemin = strtotime($_GPC['datemin']); goto PUyW6; C1fwV: include $this->template('art/list'); goto minSc; uiIBV: ZeLDT: goto iwfZN; FfHHz: $where .= ' and `a`.`title` LIKE %' . $title . '%'; goto byrl1; Hb9ek: $cate = $_GPC['cate']; goto rn6FN; iSyB7: $where .= ' and `a`.`create_time` > ' . $datemin; goto LaeBZ; iwfZN: $where .= ' AND `a`.`is_make` = 0'; goto nxIJa; mML49: $pageindex2 = 0; goto m_lIP; nkNei: goto lRw35; goto JO0W5; B3T68: $pagesize = $this->pageCount; goto S8s3B; minSc: } public function doWebArtDel() { goto wdgO0; iVI8E: if ($result != false) { goto SP9l2; } goto ZitIP; ZitIP: $this->json_return('', 0); goto zhybu; PvfKD: $result = pdo_delete($this->tablePrefix . 'art', array("id" => $id)); goto iVI8E; wdgO0: global $_GPC, $_W; goto eJYPy; Ldw8i: pdo_delete($this->tablePrefix . 'artrecord', array("art_id" => $id)); goto S7Zvs; eJYPy: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto PvfKD; qogFP: SP9l2: goto Ldw8i; S7Zvs: $this->json_return(''); goto kRBkc; zhybu: goto Kfjpf; goto qogFP; kRBkc: Kfjpf: goto vr_gD; vr_gD: } public function doWebArtCate() { goto yYBbP; CeyiV: $pageindex = 1; goto wy8oE; vNjQt: $list = pdo_getall($this->tablePrefix . 'artcate', array("uniacid" => $_W['uniacid']), array("id", "name", "status", "sort"), '', array("sort DESC"), array($pageindex, $pagesize)); goto hCEv2; mE6DJ: $pagesize = $this->pageCount; goto hZWEg; zBqKL: $total = count($allList); goto mE6DJ; lrv_8: if (!isset($_GPC['page'])) { goto Tdulq; } goto VWBtE; VWBtE: $pageindex = $_GPC['page']; goto o3311; hZWEg: $pager = pagination($total, $pageindex, $pagesize); goto vNjQt; wy8oE: rFi54: goto LoBSv; LoBSv: $allList = pdo_getall($this->tablePrefix . 'artcate', array("uniacid" => $_W['uniacid']), array("id"), '', array(), array()); goto zBqKL; hCEv2: include $this->template('art/cate_list'); goto geAiQ; yYBbP: global $_GPC, $_W; goto lrv_8; o3311: goto rFi54; goto UE35g; UE35g: Tdulq: goto CeyiV; geAiQ: } public function doWebArtcateEdit() { goto Tc4F3; wZ30h: if (!($id > 0)) { goto JIcPJ; } goto UyHjA; Tc4F3: global $_GPC, $_W; goto Fizvw; Fizvw: $id = intval($_GPC['id']); goto wZ30h; UyHjA: $data = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'artcate') . ' WHERE `id` = :id LIMIT 1', array(":id" => $id)); goto Xr_Hg; Vy7Iy: include $this->template('art/cate_info'); goto iqons; Xr_Hg: JIcPJ: goto Vy7Iy; iqons: } public function doWebArtcateSave() { goto FHuFo; tej0L: $id = intval($_GPC['id']); goto LEIiP; h_cfz: goto rM7Oc; goto LoGiM; DVgxz: $result = pdo_update($this->tablePrefix . 'artcate', $condition, array("id" => $id)); goto OWyPP; xgM7e: $condition['uniacid'] = $_W['uniacid']; goto p3Ryd; CQzSp: $this->json_return('', 0); goto lG0cM; p3Ryd: $condition['name'] = $_GPC['name']; goto OHT9p; km7yh: $condition = array(); goto xgM7e; OHT9p: $condition['status'] = intval($_GPC['status']); goto elqOb; LoGiM: PdxeB: goto BmLK8; oZIMD: $result = pdo_insert($this->tablePrefix . 'artcate', $condition); goto Nxl33; se4q0: if ($result != false) { goto PdxeB; } goto IhSDB; XAGMu: $condition['create_time'] = time(); goto oZIMD; Nxl33: goto o07ua; goto pY6Rc; BmLK8: $this->json_return(''); goto JxD2e; lG0cM: R3hgl: goto km7yh; LikRg: $condition['update_time'] = time(); goto DVgxz; JxD2e: rM7Oc: goto ogOJY; pY6Rc: OKCDq: goto LikRg; s1lqw: if (!empty($_GPC['name'])) { goto R3hgl; } goto CQzSp; OWyPP: o07ua: goto se4q0; IhSDB: $this->json_return('', 0); goto h_cfz; FHuFo: global $_GPC, $_W; goto s1lqw; LEIiP: if ($id > 0) { goto OKCDq; } goto XAGMu; elqOb: $condition['sort'] = intval($_GPC['sort']); goto tej0L; ogOJY: } public function doWebArtcateDel() { goto sK6AC; ZTDOS: $this->json_return(''); goto t70yJ; p3ylV: $this->json_return('', 0); goto eGzjg; BAsoh: $query = load()->object('query'); goto VzCJa; d6rrt: obAZX: goto ZTDOS; cnk5q: $result = pdo_delete($this->tablePrefix . 'artcate', array("id" => $id)); goto Fby4U; VzCJa: $is_found = $query->from($this->tablePrefix . 'art', 'sci')->where(array("cate_id" => $id))->exists(); goto fBDkM; fBDkM: if (!$is_found) { goto OQig2; } goto xc_Ez; xdZp1: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto BAsoh; q9Xcc: OQig2: goto cnk5q; Fby4U: if ($result != false) { goto obAZX; } goto p3ylV; t70yJ: MGgfp: goto Jjze8; xc_Ez: $this->json_return('', 0); goto q9Xcc; eGzjg: goto MGgfp; goto d6rrt; sK6AC: global $_GPC, $_W; goto xdZp1; Jjze8: } public function doWebWpCate() { goto pR4te; Jl5bl: if (!isset($_GPC['page'])) { goto FPqTs; } goto DGPSu; DGPSu: $pageindex = $_GPC['page']; goto huj8p; fHiS4: $allList = pdo_getall($this->tablePrefix . 'wpcate', array("uniacid" => $_W['uniacid']), array("id"), '', array(), array()); goto xITqj; JI_g2: $list = pdo_getall($this->tablePrefix . 'wpcate', array("uniacid" => $_W['uniacid']), array("id", "name", "status", "sort"), '', array(), array($pageindex, $pagesize)); goto CnqI3; EauP1: FPqTs: goto ffQA1; vR6Hr: $pagesize = $this->pageCount; goto zoMxO; jXx6P: n_FY2: goto fHiS4; zoMxO: $pager = pagination($total, $pageindex, $pagesize); goto JI_g2; xITqj: $total = count($allList); goto vR6Hr; CnqI3: include $this->template('wallpaper/cate_list'); goto mh2R9; ffQA1: $pageindex = 1; goto jXx6P; pR4te: global $_GPC, $_W; goto Jl5bl; huj8p: goto n_FY2; goto EauP1; mh2R9: } public function doWebWpcateEdit() { goto fFq97; Arsf7: include $this->template('wallpaper/cate_info'); goto J33CM; b1_JB: $data = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'wpcate') . ' WHERE `id` = :id LIMIT 1', array(":id" => $id)); goto cbRyr; fFq97: global $_GPC, $_W; goto b6jsP; hYfrq: if (!($id > 0)) { goto aIBse; } goto b1_JB; cbRyr: aIBse: goto Arsf7; b6jsP: $id = intval($_GPC['id']); goto hYfrq; J33CM: } public function doWebWpcateSave() { goto Tafzh; jtre3: goto p8zms; goto l9IXM; PjQ1i: $id = intval($_GPC['id']); goto LiiYS; QwAah: p8zms: goto fdJAT; FMOFI: $condition = array(); goto VCD4Q; VCD4Q: $condition['uniacid'] = $_W['uniacid']; goto tU5k9; wkPY1: $this->json_return('', 0); goto jtre3; tU5k9: $condition['name'] = $_GPC['name']; goto awwhg; Gn7aV: LfUZZ: goto FMOFI; Tafzh: global $_GPC, $_W; goto JQ5Fh; JQ5Fh: if (!empty($_GPC['name'])) { goto LfUZZ; } goto LYniV; ypqd2: YNAkb: goto ZI7VB; LiiYS: if ($id > 0) { goto YNAkb; } goto rmvYL; P3qok: goto qMU0_; goto ypqd2; rmvYL: $condition['create_time'] = time(); goto O2x0l; l9IXM: dNeKH: goto CXEfI; ucs2q: qMU0_: goto tP9Ce; lIsGV: $result = pdo_update($this->tablePrefix . 'wpcate', $condition, array("id" => $id)); goto ucs2q; LYniV: $this->json_return('', 0); goto Gn7aV; awwhg: $condition['status'] = intval($_GPC['status']); goto z71Tl; z71Tl: $condition['sort'] = intval($_GPC['sort']); goto PjQ1i; O2x0l: $result = pdo_insert($this->tablePrefix . 'wpcate', $condition); goto P3qok; ZI7VB: $condition['update_time'] = time(); goto lIsGV; tP9Ce: if ($result != false) { goto dNeKH; } goto wkPY1; CXEfI: $this->json_return(''); goto QwAah; fdJAT: } public function doWebWpcateDel() { goto md1AM; jWrTy: if (!$is_found) { goto ecV1Q; } goto fz3Op; BAZah: qLuYk: goto XK2Pn; K19cI: $result = pdo_delete($this->tablePrefix . 'wpcate', array("id" => $id)); goto QtPqB; LluYa: ecV1Q: goto K19cI; nKi8_: $query = load()->object('query'); goto oGu_8; QtPqB: if ($result != false) { goto cpCfA; } goto OizT3; evlB4: $this->json_return(''); goto BAZah; OizT3: $this->json_return('', 0); goto sKKzf; md1AM: global $_GPC, $_W; goto kyh0D; sKKzf: goto qLuYk; goto JRw0h; kyh0D: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto nKi8_; oGu_8: $is_found = $query->from($this->tablePrefix . 'wallpaper', 'sci')->where(array("cate_id" => $id))->exists(); goto jWrTy; fz3Op: $this->json_return('', 0); goto LluYa; JRw0h: cpCfA: goto evlB4; XK2Pn: } public function doWebWallpaper() { goto jh3ua; lghEn: $where .= ' and `w`.`cate_id` = ' . intval($cate); goto Rfer4; Qd_Q4: $where .= ' and `w`.`status` = ' . intval($status); goto RRPke; RRPke: cCWqm: goto q1_2q; mYNI2: $cate = $_GPC['cate']; goto SlvFz; wICB_: $pageindex2 = 0; goto TXxXj; o80jW: $total = $res['total']; goto j0xYL; brKIJ: $pageindex = $_GPC['page']; goto RPaNZ; CIofB: $status = $_GPC['status']; goto gBhWW; v3rGM: include $this->template('wallpaper/wallpaper_list'); goto tuBkh; SlvFz: if (!($cate != '' && intval($cate) !== false)) { goto Mi86w; } goto lghEn; qyzT2: $where = ' WHERE `w`.`uniacid` = ' . $_W['uniacid']; goto mYNI2; t0iMQ: $pageindex = 0; goto wICB_; jh3ua: global $_GPC, $_W; goto qhYQ5; gBhWW: if (!($status != '' && intval($status) !== false)) { goto cCWqm; } goto Qd_Q4; iG8OX: XmKnN: goto t0iMQ; Rfer4: Mi86w: goto CIofB; j0xYL: $pagesize = $this->pageCount; goto SOzgI; TXxXj: iZ2NG: goto oqw7B; oqw7B: $pager = pagination($total, $pageindex, $pagesize); goto MrssC; MrssC: $list = pdo_fetchall('SELECT `w`.`id`, `w`.`title`, `w`.`re_title`, `w`.`path`,`w`.`status`,`w`.`sort`, `c`.`name` as `cate` FROM ' . tablename($this->tablePrefix . 'wallpaper') . ' `w`' . ' LEFT JOIN ' . tablename($this->tablePrefix . 'wpcate') . ' `c` ON `w`.`cate_id`=`c`.`id`' . $where . ' ORDER BY w.`sort` DESC, w.`create_time` DESC limit ' . $pageindex2 . ',' . $pagesize); goto P9K90; qhYQ5: $url = $this->createWebUrl('wallpaper'); goto qyzT2; SOzgI: if (!$_GPC['page']) { goto XmKnN; } goto brKIJ; q1_2q: $res = pdo_fetch('SELECT count(`w`.`id`) as total From ' . tablename($this->tablePrefix . 'wallpaper') . ' AS `w` ' . $where); goto o80jW; RPaNZ: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto NhV4p; NhV4p: goto iZ2NG; goto iG8OX; P9K90: $cate_list = pdo_fetchall('SELECT `id`,`name` FROM ' . tablename($this->tablePrefix . 'wpcate') . " WHERE `uniacid` = {$_W['uniacid']} AND `status` = 1 ORDER BY `sort` DESC"); goto v3rGM; tuBkh: } public function doWebWallpaperEdit() { goto FRoXY; S1f1g: goto sfYuG; goto yh9Ql; xC_Vi: $data = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'wallpaper') . ' WHERE `id` = :id LIMIT 1', array(":id" => $id)); goto TI1e3; yh9Ql: vhiy2: goto xC_Vi; SR50p: $data = array("status" => 1, "type" => 1); goto S1f1g; a7ZeD: if ($id > 0) { goto vhiy2; } goto SR50p; X2jmN: include $this->template('wallpaper/wallpaper_info'); goto t_UM9; US5Mj: $id = intval($_GPC['id']); goto a7ZeD; FRoXY: global $_GPC, $_W; goto US5Mj; TI1e3: sfYuG: goto X3qbE; X3qbE: $cate_list = pdo_fetchall('SELECT `id`,`name` FROM ' . tablename($this->tablePrefix . 'wpcate') . " WHERE `uniacid` = {$_W['uniacid']} AND `status` = 1 ORDER BY `sort` DESC"); goto X2jmN; t_UM9: } public function doWebWallpaperSave() { goto ZaggN; UqB9I: $result = pdo_insert($this->tablePrefix . 'wallpaper', $condition); goto lPczt; peI0V: pdo_delete($this->tablePrefix . 'userwp', array("wp_id" => $id)); goto rwem2; gCJ3O: $condition['update_time'] = time(); goto XxMfL; nVbi2: $condition['org_h'] = $image_size[1]; goto FTE57; rZxOG: goto eDatG; goto NlI0H; A4L3M: $this->json_return('', 0); goto rZxOG; XxMfL: $result = pdo_update($this->tablePrefix . 'wallpaper', $condition, array("id" => $id)); goto YQGqC; NlI0H: GBSbQ: goto njKl2; dWPhc: $condition['path'] = $_GPC['path']; goto yMxgE; ZaggN: global $_GPC, $_W; goto FEZCF; gJgeO: SgXgp: goto gCJ3O; YQGqC: if (empty($result)) { goto J9qdx; } goto peI0V; rwem2: J9qdx: goto u2Rxv; t8wko: $path = getFileUrlSd($condition['path']); goto bDLYz; Chgr1: $condition['uniacid'] = $_W['uniacid']; goto dWPhc; FTE57: $id = intval($_GPC['id']); goto kLDjH; chAWM: $condition['create_time'] = time(); goto UqB9I; dPhl0: $this->json_return('', 0); goto zHFnQ; Alq0o: $condition['status'] = intval($_GPC['status']); goto t8wko; Nn7L7: $condition['sort'] = intval($_GPC['sort']); goto Alq0o; fT1OM: $condition = array(); goto Chgr1; ezTHV: $condition['re_title'] = trim($_GPC['re_title']); goto J85vz; nPhHH: $condition['cate_id'] = intval($_GPC['cate']); goto Nn7L7; R4Lwt: if ($result != false) { goto GBSbQ; } goto A4L3M; yMxgE: $condition['title'] = trim($_GPC['title']); goto ezTHV; zHFnQ: rikiQ: goto fT1OM; J85vz: $condition['type'] = intval($_GPC['type']); goto nPhHH; lPczt: goto CUWdE; goto gJgeO; B5H5R: $condition['org_w'] = $image_size[0]; goto nVbi2; njKl2: $this->json_return(''); goto ocG5S; bDLYz: $image_size = getimagesize($path); goto B5H5R; u2Rxv: CUWdE: goto R4Lwt; ocG5S: eDatG: goto X4Vgi; FEZCF: if (!empty($_GPC['path'])) { goto rikiQ; } goto dPhl0; kLDjH: if ($id > 0) { goto SgXgp; } goto chAWM; X4Vgi: } public function doWebWallpaperDel() { goto mwTYa; Q4h7M: $result = pdo_delete($this->tablePrefix . 'wallpaper', array("id" => $id)); goto HF8bO; kMVon: pdo_delete($this->tablePrefix . 'userwp', array("wp_id" => $id)); goto IKTDI; IKTDI: $this->json_return(''); goto cNEtZ; cNEtZ: ZfkbV: goto QoSsE; mwTYa: global $_GPC, $_W; goto UTQLz; HF8bO: if ($result != false) { goto kdlUQ; } goto XxNSH; LziCL: kdlUQ: goto kMVon; cV2W0: goto ZfkbV; goto LziCL; UTQLz: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto Q4h7M; XxNSH: $this->json_return('', 0); goto cV2W0; QoSsE: } public function doWebIndustry() { goto e1iG1; CuMIQ: $tab_id = $_GPC['tab_id']; goto rsx3_; rsx3_: include $this->template('industry/industry_list'); goto pFXFZ; e1iG1: global $_GPC, $_W; goto ivWZy; ivWZy: $list = pdo_getall($this->tablePrefix . 'industry', array("uniacid" => $_W['uniacid']), array(), '', array("sort DESC"), array()); goto CuMIQ; pFXFZ: } public function doWebIndustryEdit() { goto vMPAi; RBDJM: $data = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'industry') . ' WHERE id = :id LIMIT 1', array(":id" => $id)); goto f0by3; XvoCd: if (!($id > 0)) { goto NtBA2; } goto RBDJM; MXx7I: $id = intval($_GPC['id']); goto XvoCd; vMPAi: global $_GPC, $_W; goto MXx7I; f0by3: NtBA2: goto CT9eV; CT9eV: include $this->template('industry/industry_info'); goto xejjN; xejjN: } public function doWebIndustrySave() { goto ml5EU; MDxK2: if ($result != false) { goto TRkHg; } goto pOfrm; i2OHB: $name = trim($_GPC['name']); goto Y5Dz6; yL8Uc: $condition['status'] = intval($_GPC['status']); goto ulk97; TwLia: if ($id > 0) { goto MivUz; } goto lD5jM; oaCpR: rtX9f: goto MDxK2; IAxwa: $condition['name'] = $name; goto oY74L; pOfrm: $this->json_return('', 0); goto ZCaZt; ml5EU: global $_GPC, $_W; goto i2OHB; qjrc0: $list = pdo_fetchall('SELECT `id`,`industry` FROM' . tablename($this->tablePrefix . 'item') . 'WHERE `industry` LIKE \'%' . $industry['name'] . '%\''); goto t64vr; ceBrf: ncdHC: goto vTJiZ; oqaNX: $id = intval($_GPC['id']); goto TwLia; pjlHR: TRkHg: goto qjrc0; vTJiZ: $this->json_return(''); goto AplxD; Fh5N_: k86w2: goto EoeYR; Y5Dz6: if (!empty($name)) { goto k86w2; } goto MdFGE; AplxD: cGpUi: goto erjtn; V_azK: $result = pdo_update($this->tablePrefix . 'industry', $condition, array("id" => $id)); goto oaCpR; MdFGE: $this->json_return('', 0); goto Fh5N_; ulk97: $industry = pdo_fetch('SELECT  `name` FROM' . tablename($this->tablePrefix . 'industry') . ' WHERE id = :id', array(":id" => $_GPC['id'])); goto oqaNX; CoszE: $condition['sort'] = intval($_GPC['sort']); goto yL8Uc; EoeYR: $condition = array(); goto m0wsi; gcs0F: MivUz: goto V_azK; B7YZE: goto rtX9f; goto gcs0F; ZCaZt: goto cGpUi; goto pjlHR; oY74L: $condition['icon'] = $_GPC['icon']; goto CoszE; lD5jM: $result = pdo_insert($this->tablePrefix . 'industry', $condition); goto B7YZE; m0wsi: $condition['uniacid'] = $_W['uniacid']; goto IAxwa; t64vr: foreach ($list as $v) { goto NNaEN; XhHbp: pdo_update($this->tablePrefix . 'item', $data, array("id" => $v['id'])); goto iPWoN; iPWoN: DJtJe: goto dR7E2; NNaEN: $data['industry'] = str_replace($industry['name'], $name, $v['industry']); goto XhHbp; dR7E2: } goto ceBrf; erjtn: } public function doWebIndustryDel() { goto ogfBe; XRO2J: rsZHo: goto ashiz; ZGeU2: $this->json_return('', 0); goto dS8N6; BoeP6: $id = intval($_GPC['id']); goto S3fze; ogfBe: global $_GPC, $_W; goto BoeP6; X8REn: $this->json_return(''); goto qp4Sa; rYfaa: $this->json_return(', !', 0); goto XRO2J; dS8N6: goto zzvA6; goto ah9Dj; fn4Fo: $result = pdo_delete($this->tablePrefix . 'industry', array("id" => $id)); goto wpvgf; ndXjG: goto rsZHo; goto OMLPj; GmuRG: $list = pdo_fetchall('SELECT `industry` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `industry` LIKE \'%' . $data['name'] . '%\''); goto sv8PT; qp4Sa: zzvA6: goto ndXjG; ah9Dj: cpLtp: goto X8REn; wpvgf: if ($result != false) { goto cpLtp; } goto ZGeU2; OMLPj: Zr3F9: goto rYfaa; S3fze: $data = pdo_fetch('SELECT `name` FROM ' . tablename($this->tablePrefix . 'industry') . ' WHERE `id` = :id', array("id" => $id)); goto GmuRG; sv8PT: if (count($list) > 0) { goto Zr3F9; } goto fn4Fo; ashiz: } public function doWebIdentify() { goto sITwL; KzZCL: $list = pdo_fetchall('SELECT `i`.`id`,`i`.`name`,`i`.`uid`,`i`.`path`,`i`.`mobile`,`i`.`company`,`i`.`title`,`i`.`address`,`i`.`status`,`i`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'identify') . ' `i`' . ' LEFT JOIN ' . tablename('mc_members') . ' `m` ON `m`.`uid`=`i`.`uid`' . $where . ' ORDER BY `i`.`id` DESC limit ' . $pageindex2 . ',' . $pagesize); goto lGVC9; Sd8rQ: $where .= ' and `i`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto HzIB1; HzIB1: yI4Ct: goto KG8Yo; wlFD2: $pageindex2 = 0; goto TDpsN; sITwL: global $_GPC, $_W; goto xG58a; y77xo: gNCjZ: goto unt4e; h_zGV: if (!($datemax && $datemin == false)) { goto ZRsug; } goto dmhps; hSvfs: $where .= ' and `i`.`create_time` > ' . $datemin; goto ryIhE; QeTMA: if (!$nickname) { goto gNCjZ; } goto VqXPb; lGVC9: include $this->template('identify/identify_list'); goto hk1Po; oEzgV: I7ras: goto S1XRK; pCQOO: xiNk1: goto Mpdh7; Mpdh7: $pageindex = 0; goto wlFD2; xG58a: $url = $this->createWebUrl('identify'); goto FTUJd; S1XRK: $mobile = trim($_GPC['mobile']); goto goJqk; dmhps: $where .= ' and  `i`.`create_time` < ' . $datemax; goto PFAkD; OKnZC: fbajl: goto HmOGi; FTUJd: $where = ' WHERE `i`.`uniacid` = ' . $_W['uniacid']; goto LDfW0; KG8Yo: if (!($datemin && $datemax == false)) { goto tqAmG; } goto hSvfs; ryIhE: tqAmG: goto h_zGV; hjrdk: $where .= ' and `i`.`name` LIKE \'%' . $name . '%\''; goto oEzgV; TDpsN: nRJ2h: goto efKGS; a2oDY: goto nRJ2h; goto pCQOO; ONseo: $total = count($totalList); goto oQ51e; rEDpT: $datemax = strtotime($_GPC['datemax']); goto e4vmF; LDfW0: $nickname = trim($_GPC['nickname']); goto QeTMA; EOkb5: $totalList = pdo_fetchall('SELECT `i`.`id` FROM ' . tablename($this->tablePrefix . 'identify') . ' `i` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `i`.`uid` = `m`.`uid`' . $where . ' ORDER BY `i`.`id` DESC'); goto ONseo; Ddi5n: $where .= ' and `i`.`mobile` = \'' . $mobile . '\''; goto OKnZC; yc9wN: if (!$name) { goto I7ras; } goto hjrdk; unt4e: $name = trim($_GPC['name']); goto yc9wN; mq13Q: $pageindex = $_GPC['page']; goto VRAY2; oQ51e: $pagesize = 6; goto BlJMb; e4vmF: if (!($datemin && $datemax)) { goto yI4Ct; } goto Sd8rQ; VqXPb: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto y77xo; HmOGi: $datemin = strtotime($_GPC['datemin']); goto rEDpT; VRAY2: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto a2oDY; efKGS: $pager = pagination($total, $pageindex, $pagesize); goto KzZCL; goJqk: if (!$mobile) { goto fbajl; } goto Ddi5n; PFAkD: ZRsug: goto EOkb5; BlJMb: if (!isset($_GPC['page'])) { goto xiNk1; } goto mq13Q; hk1Po: } public function doWebIdentifyEdit() { goto KfTWC; RUZkO: $data = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'identify') . ' WHERE id = :id LIMIT 1', array(":id" => $id)); goto B8wqm; Ddx6U: $id = intval($_GPC['id']); goto TLS7U; KfTWC: global $_GPC, $_W; goto Ddx6U; NyCqq: include $this->template('identify/identify_info'); goto JGr7W; B8wqm: pgzJB: goto NyCqq; TLS7U: if (!($id > 0)) { goto pgzJB; } goto RUZkO; JGr7W: } public function doWebIdentifySave() { goto Albom; skoEJ: $condition['tel'] = $_GPC['tel']; goto ftAJv; RcNK9: if (!empty($_GPC['title'])) { goto iGcI2; } goto yFXFQ; HkK03: F3856: goto TyWLJ; n48oA: $condition['mobile'] = $_GPC['mobile']; goto TRkJb; CuajT: t5cYJ: goto dpew3; ftAJv: $condition['fax'] = $_GPC['fax']; goto xo8vb; MhC3k: $this->collect($uid, $id, 2, 1); goto iYkM2; pOKYX: if (empty($_GPC['email'])) { goto GG7fF; } goto svvm6; ixkiL: $this->json_return('', 0); goto POcST; c3FBE: if (preg_match('/^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89]|09)\\d{8}$/', $_GPC['mobile'])) { goto Nbh4d; } goto L2qb1; Albom: global $_GPC, $_W; goto TkJ1a; Sn4gH: if (!empty($_GPC['company'])) { goto ZBVm4; } goto ixkiL; L2qb1: $this->json_return('', 0); goto Qw_h9; TkJ1a: $id = intval($_GPC['id']); goto X4sXc; Qu64f: $condition['name'] = $_GPC['name']; goto n48oA; FEEMh: JJWu8: goto Sn4gH; uD06H: $condition['title'] = $_GPC['title']; goto DKwTd; xylsT: j4xcQ: goto dXzHR; FXKsj: $condition['www'] = $_GPC['www']; goto SywUb; Qw_h9: Nbh4d: goto FEEMh; FnJtY: $this->json_return('', 0); goto HkK03; gSqOD: if (!empty($_GPC['name'])) { goto t5cYJ; } goto um1q2; WfaGO: $result = pdo_update($this->tablePrefix . 'identify', $condition, array("id" => $id)); goto xylsT; OA7uc: $this->json_return('', 0); goto EPpi3; dpew3: if (empty($_GPC['mobile'])) { goto JJWu8; } goto c3FBE; a8Scb: MI4_m: goto MhC3k; DKwTd: $condition['email'] = $_GPC['email']; goto skoEJ; TyWLJ: GG7fF: goto qMGFG; um1q2: $this->json_return('', 0); goto CuajT; jy37Z: iGcI2: goto pOKYX; iYkM2: $this->views($uid, $id, 2, 1); goto VEOHa; qMGFG: $condition = array(); goto Qu64f; h0SLE: if (!($id > 0)) { goto j4xcQ; } goto WfaGO; POcST: ZBVm4: goto RcNK9; X4sXc: $uid = intval($_GPC['uid']); goto gSqOD; SywUb: $condition['status'] = $_GPC['status']; goto RCg5B; dXzHR: if ($result != false) { goto MI4_m; } goto OA7uc; xo8vb: $condition['sort'] = $_GPC['sort']; goto FXKsj; svvm6: if (preg_match('/^([0-9A-Za-z\\-_\\.]+)@([0-9a-z]+\\.[a-z]{2,3}(\\.[a-z]{2})?)$/i', $_GPC['email'])) { goto F3856; } goto FnJtY; yFXFQ: $this->json_return('', 0); goto jy37Z; VEOHa: $this->json_return(''); goto WVHwB; TRkJb: $condition['company'] = $_GPC['company']; goto uD06H; EPpi3: goto O35E5; goto a8Scb; RCg5B: $condition['update_time'] = time(); goto h0SLE; WVHwB: O35E5: goto YPM8X; YPM8X: } public function doWebIdentifyDel() { goto nDvbU; M7cbd: $id = intval($_GPC['id']); goto WZPl4; YSs5_: if ($result != false) { goto kNXGI; } goto kTIcr; oREEb: kNXGI: goto jyDM3; w4j3V: $result = pdo_delete($this->tablePrefix . 'identify', array("id" => $id)); goto YSs5_; jyDM3: $this->json_return(''); goto YJgGB; OSTt_: goto RUTKH; goto oREEb; nDvbU: global $_GPC, $_W; goto M7cbd; kTIcr: $this->json_return('', 0); goto OSTt_; cBJMw: $request = $this->collect($uid, $id, 2, 2); goto w4j3V; WZPl4: $uid = intval($_GPC['uid']); goto cBJMw; YJgGB: RUTKH: goto bmdZl; bmdZl: } public function doWebItemDesign() { goto FQBgY; cJOhD: $img_key = 0; goto gdQXj; gdQXj: if (!(count($poster_data) > 0)) { goto yPK9M; } goto exOvp; FQBgY: global $_GPC, $_W; goto WUznc; chz29: fRl6C: goto WrCXE; exOvp: foreach ($poster_data as $key => $value) { goto ndGpp; FKHG5: $img_key = $key; goto zn1VP; ndGpp: if (!($value['type'] == 'img')) { goto iYXZP; } goto FKHG5; suBKk: H2_eq: goto La_bF; zn1VP: iYXZP: goto suBKk; La_bF: } goto chz29; eo344: include $this->template('item/item_design'); goto dxvHD; WrCXE: yPK9M: goto eo344; WUznc: $design = unserialize(getAppConfSd('card_qrcode_design')); goto B5TsQ; B5TsQ: $poster_data = json_decode($design['data'], true); goto cJOhD; dxvHD: } public function doWebItemDesignSave() { goto sc6Hu; sc6Hu: global $_GPC, $_W; goto O2kKb; ivG45: $data = serialize($data); goto oRl0d; O2kKb: if (empty($_GPC['poster']['data'])) { goto JaUaV; } goto LHGci; vWtOD: vQ0u6: goto wpXMe; o7bPY: $this->json_return('', 0); goto lysvl; lysvl: goto AYhQY; goto ovbeN; LHGci: $data = str_replace('&quot;', '"', $_GPC['poster']); goto FxdCI; fTT4u: JaUaV: goto vfBf2; BHtwZ: $this->json_return(''); goto hignM; oRl0d: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("uniacid" => $_W['uniacid'], "code" => "card_qrcode_design")); goto HyXfk; wpXMe: $data['data'] = json_encode($data['data']); goto ivG45; etwU1: if ($result != false) { goto U42CD; } goto o7bPY; FxdCI: $data['data'] = json_decode($data['data'], true); goto b3ogy; HyXfk: pdo_update($this->tablePrefix . 'item', array("qrcode_pic" => "")); goto etwU1; b3ogy: foreach ($data['data'] as $key => $v) { goto qgfDK; hyKoZ: XXFXk: goto MJ08U; qgfDK: if (!($v['type'] == 'img' && $v['img'] == '')) { goto XXFXk; } goto bqKHC; bqKHC: unset($data['data'][$key]); goto hyKoZ; MJ08U: r5vRm: goto n1Z_B; n1Z_B: } goto vWtOD; hignM: AYhQY: goto fTT4u; ovbeN: U42CD: goto BHtwZ; vfBf2: } public function doWebItemBanner() { goto s3tcU; ajxG4: $list = pdo_getall($this->tablePrefix . 'cardbanner', array("uniacid" => $_W['uniacid']), array("id", "pic", "status", "sort"), ''); goto aCuaB; QzIb5: $tab_id = $_GPC['tab_id']; goto g48vE; s3tcU: global $_GPC, $_W; goto ajxG4; aCuaB: $count = count($list); goto QzIb5; g48vE: include $this->template('item_banner/item_banner_list'); goto AmTH_; AmTH_: } public function doWebItemBannerEdit() { goto lZf4u; aLcSw: if (!($id > 0)) { goto ytvjC; } goto b9pRG; TB9ET: $pageData = getOtherConf('can_nav_pages'); goto iAZ0a; lZf4u: global $_GPC, $_W; goto h5hPV; iAZ0a: include $this->template('item_banner/item_banner_info'); goto LKuri; h5hPV: $id = intval($_GPC['id']); goto aLcSw; v92yv: ytvjC: goto TB9ET; b9pRG: $data = pdo_fetch('SELECT `id`,`pic`,`type`,`value`,`appid`,`sort`,`status` FROM ' . tablename($this->tablePrefix . 'cardbanner') . ' WHERE `id` = :id', array(":id" => $id)); goto v92yv; LKuri: } public function doWebItemBannerSave() { goto kdM__; QTVLC: eZ9Z2: goto A7K0B; yV6ZH: TZF_l: goto jCAUN; F5YQc: YBtBJ: goto AI4de; z9hGU: $condition['value'] = trim($_GPC['path']); goto yV6ZH; LZpHo: $id = intval($_GPC['id']); goto uWDbl; ZY2Yv: $this->json_return('', 0); goto F5YQc; zN4lh: $condition['pic'] = trim($_GPC['pic']); goto ELxiE; TfMoi: NoUHX: goto PZI46; Ye5P3: gTKjR: goto IKRul; BikZw: $condition['status'] = intval($_GPC['status']); goto u4GAa; gUPJO: $this->json_return('appid', 0); goto Bp2hw; LxXi5: $this->json_return('', 0); goto Zcz1E; Bdsva: Qj_p_: goto zN4lh; aB5_u: $this->json_return('', 0); goto RUxjW; AOot7: xRxui: goto gm8H_; i9ygf: $condition['create_time'] = time(); goto O6k93; xvH22: PeSNA: goto x_ff5; UNKPl: oNDcJ: goto OKeoj; AI4de: if (!(intval($_GPC['type']) === false)) { goto RLlcv; } goto qKnv3; jN1Rd: Xi6i0: goto Oydt2; sd0GS: nLaaA: goto acQ_w; qFXYY: if (!(intval($_GPC['type']) == 7)) { goto Qj_p_; } goto VL1Sm; Ej_7z: if (intval($_GPC['type']) != 6) { goto NoUHX; } goto MiMon; s01tl: $this->json_return(' //!', 0); goto xvH22; ELxiE: $condition['sort'] = intval($_GPC['sort']); goto BikZw; PZI46: if (!(trim($_GPC['value']) == '')) { goto gTKjR; } goto FfRji; x_ff5: if (in_array(trim($_GPC['path']), getOtherConf('can_nav_pages'))) { goto C6h0e; } goto LxXi5; kdM__: global $_GPC, $_W; goto LZpHo; ae0L3: aTAqz: goto iXa1m; Ki6RA: $this->json_return('!', 0); goto PQ3UI; SbXCD: unset($condition['value']); goto uWUQo; SlMXO: $this->json_return(''); goto UNKPl; QvAWU: $condition['value'] = trim($_GPC['value']); goto MzTRV; VL1Sm: unset($condition['value']); goto y9gZH; MzTRV: if (!(intval($_GPC['type']) == 2)) { goto rgrCv; } goto xSMug; Oydt2: if (!(trim($_GPC['path']) == '')) { goto PeSNA; } goto s01tl; jCAUN: if (!(intval($_GPC['type']) == 5)) { goto eonmy; } goto SbXCD; ovsYv: rgrCv: goto P6WKV; u4GAa: if ($id > 0) { goto aTAqz; } goto A5W1X; qKnv3: $this->json_return('!', 0); goto dF0KZ; gm8H_: if (!(intval($_GPC['type']) == 2 && trim($_GPC['appid']) == '')) { goto bCTD_; } goto gUPJO; MiMon: if (intval($_GPC['type']) == 6) { goto Xi6i0; } goto xATOW; uWUQo: $condition['value'] = trim($_GPC['value2']); goto RlQ75; ihTd2: wyZ5P: goto RAwAs; LkI3Q: $condition['type'] = intval($_GPC['type']); goto QvAWU; A7K0B: if ($result != false) { goto iRhB8; } goto aB5_u; xATOW: if (!(intval($_GPC['type']) == 5)) { goto wyZ5P; } goto Roo5a; RlQ75: eonmy: goto qFXYY; iXa1m: $condition['update_time'] = time(); goto Tzjo9; Tzjo9: $result = pdo_update($this->tablePrefix . 'cardbanner', $condition, array("id" => $id, "uniacid" => $_W['uniacid'])); goto QTVLC; FfRji: $this->json_return('// !', 0); goto Ye5P3; IKRul: zlRrP: goto BYc3o; RUxjW: goto oNDcJ; goto IUXBO; PQ3UI: fwdQ7: goto AOot7; y9gZH: $condition['value'] = trim($_GPC['value3']); goto Bdsva; O6k93: $result = pdo_insert($this->tablePrefix . 'cardbanner', $condition); goto gBjlZ; gBjlZ: goto eZ9Z2; goto ae0L3; dF0KZ: RLlcv: goto Ej_7z; RAwAs: goto nLaaA; goto jN1Rd; p2whL: if (!(trim($_GPC['value3']) == '')) { goto fwdQ7; } goto Ki6RA; acQ_w: goto zlRrP; goto TfMoi; A5W1X: $condition['uniacid'] = $_W['uniacid']; goto i9ygf; Bp2hw: bCTD_: goto LkI3Q; Roo5a: if (!(trim($_GPC['value2']) == '')) { goto t0m7k; } goto p8lTq; lBhn6: unset($condition['value']); goto z9hGU; BYc3o: if (!(intval($_GPC['type']) == 7)) { goto xRxui; } goto p2whL; Zcz1E: C6h0e: goto sd0GS; IUXBO: iRhB8: goto SlMXO; p8lTq: $this->json_return('!', 0); goto YXPUi; YXPUi: t0m7k: goto ihTd2; xSMug: $condition['appid'] = trim($_GPC['appid']); goto ovsYv; P6WKV: if (!(intval($_GPC['type']) == 6)) { goto TZF_l; } goto lBhn6; uWDbl: if (!(trim($_GPC['pic']) == '')) { goto YBtBJ; } goto ZY2Yv; OKeoj: } public function doWebItemBannerDel() { goto B05yk; CPL8u: goto iwCyR; goto ZJuIO; cjo3n: $result = pdo_delete($this->tablePrefix . 'cardbanner', array("id" => $id, "uniacid" => $_W['uniacid'])); goto E7Xh0; MuHIJ: $id = intval($_GPC['id']); goto QuoiF; B05yk: global $_GPC, $_W; goto MuHIJ; QuoiF: if (!($id < 1)) { goto vB_PE; } goto zsnIP; xKLKc: $this->json_return(''); goto BZ3sG; BZ3sG: iwCyR: goto bvHbh; a9TvO: $this->json_return('', 0); goto CPL8u; HSBOR: vB_PE: goto cjo3n; zsnIP: $htis->json_return('', 0); goto HSBOR; E7Xh0: if ($result != false) { goto Qz5zq; } goto a9TvO; ZJuIO: Qz5zq: goto xKLKc; bvHbh: } public function doWebArtSetting() { goto jVdr1; eV9bD: $list = pdo_fetchall('SELECT `id`,`name`,`code`,`type`,`value`,`tip`,`store_range` FROM ' . tablename($this->tablePrefix . $this->configTable) . ' WHERE `code` in(\'open_art_balance\',\'art_record_fee\',\'art_switch\', \'art_nose_title\', \'art_nose_tips\', \'art_fodder_host\', \'account_uniacid\') and `uniacid` = :uniacid', array(":uniacid" => $_W['uniacid'])); goto WalKB; A0UBL: $art_bottom_nav = unserialize($art_bottom_nav); goto E70w2; qOabp: mbhXG: goto JUmGL; E70w2: if (!($art_bottom_nav != false)) { goto hIrMy; } goto Fy0Do; yvlkr: $art_bottom_nav = array_merge($art_bottom_nav); goto tqBUd; JUmGL: $art_bottom_nav = getAppConfSd('art_bottom_nav'); goto A0UBL; WalKB: foreach ($list as $k => $v) { goto eWXMK; eNEeT: Ot2du: goto cn6Jd; NkU8M: aoJ_a: goto H0zZX; Daprr: if (!($v['code'] == 'art_nose_title')) { goto bzdbo; } goto XbjQM; tJGcl: NS6qW: goto VWDrS; acsL1: $data['art_nose_tips'] = $v; goto VzzkS; H0zZX: if (!($v['code'] == 'account_uniacid')) { goto CcKHO; } goto gYEBQ; cn6Jd: if (!($v['code'] == 'art_record_fee')) { goto NS6qW; } goto pLTzz; VzzkS: z_2Rd: goto T5gaS; rx4NA: $data['art_fodder_host'] = $v; goto NkU8M; zbn4U: if (!($v['code'] == 'art_nose_tips')) { goto z_2Rd; } goto acsL1; upH99: CcKHO: goto ronBT; KoR3j: KIeb0: goto Daprr; e_1C6: $data['art_switch'] = $v; goto KoR3j; pLTzz: $data['art_record_fee'] = $v; goto tJGcl; VWDrS: if (!($v['code'] == 'art_switch')) { goto KIeb0; } goto e_1C6; gYEBQ: $data['account_uniacid'] = $v; goto upH99; Y_sCM: bzdbo: goto zbn4U; T5gaS: if (!($v['code'] == 'art_fodder_host')) { goto aoJ_a; } goto rx4NA; eWXMK: if (!($v['code'] == 'open_art_balance')) { goto Ot2du; } goto rzb3y; ronBT: APSlM: goto ncFEe; XbjQM: $data['art_nose_title'] = $v; goto Y_sCM; rzb3y: $data['open_art_balance'] = $v; goto eNEeT; ncFEe: } goto qOabp; Th45I: include $this->template('art/setting'); goto B_C2w; tqBUd: hIrMy: goto Hn7rN; Hn7rN: $art_bottom_color = getAppConfSd('art_bottom_color'); goto Th45I; jVdr1: global $_GPC, $_W; goto eV9bD; Fy0Do: $art_bottom_nav_count = count($art_bottom_nav); goto yvlkr; B_C2w: } public function doWebArtBottomNav() { goto hNprV; hnNGC: $id = intval($_GPC['id']); goto mWOWM; OliTl: xs_TK: goto P2HI2; P2HI2: include $this->template('art/art_bottom_nav'); goto xo9Ig; hNprV: global $_GPC, $_W; goto hnNGC; mWOWM: if (!($id > 0)) { goto xs_TK; } goto yYVLR; yYVLR: $data = $this->getArtBottomNavData($id); goto OliTl; xo9Ig: } public function getArtBottomNavData($id, $type = false) { goto v24Wf; Bk1oL: foreach ($data as $key => $v) { goto BoKp2; BoKp2: if (!($type == false && $id === $v['id'])) { goto rcsV6; } goto QVdmi; bfBZx: rcsV6: goto QhlGa; QVdmi: return $v; goto bfBZx; wIQBK: return $key; goto YHlip; YHlip: otq4d: goto M9j37; QhlGa: if (!($type != false && $id === $v['id'])) { goto otq4d; } goto wIQBK; M9j37: yMJCi: goto bbMvu; bbMvu: } goto oN3VI; v24Wf: if (!($id != false)) { goto N3yru; } goto BBKO5; BBKO5: $data = getAppConfSd('art_bottom_nav'); goto f2HIX; Z1hxi: N3yru: goto ZZIDj; f2HIX: $data = unserialize($data); goto Bk1oL; oN3VI: QmC6h: goto Z1hxi; ZZIDj: } public function doWebArtButtomNavSave() { goto ww5r3; SjWBq: $key = $this->getArtBottomNavData($id, true); goto NsUVd; reYps: w3nyi: goto Q5hLy; wmiOm: goto xfq7F; goto J8HvP; Dm_9T: $condition['id'] = 1; goto ZU0Vs; St7XI: $data[] = $condition; goto Lx1QW; WEJ5m: $data[$key] = $condition; goto LdYOA; dcId7: $id = intval($_GPC['id']); goto DLIxF; fj9GV: $data = unserialize(getAppConfSd('art_bottom_nav')); goto xY4es; ZU0Vs: $data[] = $condition; goto wmiOm; tt2EF: $condition['id'] = $lastId + 1; goto St7XI; Q5hLy: $this->json_return(''); goto Zz85w; ww5r3: global $_GPC, $_W; goto LtU2u; xY4es: if ($data != false) { goto akiCA; } goto Dm_9T; J8HvP: akiCA: goto r7P6a; hKm2z: goto R3JSi; goto reYps; NsUVd: $condition['id'] = $id; goto WEJ5m; LdYOA: goto nF2BH; goto yWH3p; SWYRB: foreach ($data as $v) { $lastId = $v['id']; yGHOG: } goto AqHAo; L_WNE: $condition['text'] = trim($_GPC['text']); goto fj9GV; Lx1QW: nF2BH: goto yfGKn; n7SLm: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("uniacid" => $_W['uniacid'], "code" => "art_bottom_nav")); goto TCUI0; Zz85w: R3JSi: goto dJGPv; r7P6a: if ($id < 1) { goto tm4Y3; } goto SjWBq; DLIxF: $condition['iconPath'] = trim($_GPC['iconPath']) != '' ? $_GPC['iconPath'] : $this->json_return('', 0); goto L9IaF; xNvId: $this->json_return('', 0); goto hKm2z; L9IaF: $condition['selectedIconPath'] = trim($_GPC['selectedIconPath']) != '' ? $_GPC['selectedIconPath'] : $this->json_return('', 0); goto L_WNE; yfGKn: xfq7F: goto zX6sM; AqHAo: v0L2y: goto tt2EF; LtU2u: $condition = array(); goto dcId7; zX6sM: $data = serialize($data); goto n7SLm; TCUI0: if ($result != false) { goto w3nyi; } goto xNvId; yWH3p: tm4Y3: goto SWYRB; dJGPv: } public function doWebArtSettingSave() { goto rUC3u; ykkmi: $art_nose_title = trim($_GPC['art_nose_title']); goto Eoazr; L3nzF: $open_art_balance = intval($_GPC['open_art_balance']); goto VpaZc; HUK7Z: pdo_update($this->tablePrefix . $this->configTable, array("value" => $open_art_balance), array("uniacid" => $_W['uniacid'], "code" => "open_art_balance")); goto skD2N; o7ZGR: $art_bottom_color = trim($_GPC['art_bottom_color']); goto ykkmi; VpaZc: $art_record_fee = floatval($_GPC['art_record_fee']); goto Py9Xy; rUC3u: global $_GPC, $_W; goto L3nzF; awh8z: $this->json_return(''); goto yEjWa; Eoazr: $art_nose_tips = trim($_GPC['art_nose_tips']); goto Rk7kg; skD2N: pdo_update($this->tablePrefix . $this->configTable, array("value" => $art_record_fee), array("uniacid" => $_W['uniacid'], "code" => "art_record_fee")); goto FFzDT; OQR8N: $account_uniacid = $_GPC['account_uniacid']; goto HUK7Z; FFzDT: pdo_update($this->tablePrefix . $this->configTable, array("value" => $art_switch), array("uniacid" => $_W['uniacid'], "code" => "art_switch")); goto sXjeG; Rk7kg: $art_fodder_host = $_GPC['art_fodder_host']; goto OQR8N; r6mB5: pdo_update($this->tablePrefix . $this->configTable, array("value" => $art_nose_tips), array("uniacid" => $_W['uniacid'], "code" => "art_nose_tips")); goto mWdSo; sXjeG: pdo_update($this->tablePrefix . $this->configTable, array("value" => $art_nose_title), array("uniacid" => $_W['uniacid'], "code" => "art_nose_title")); goto r6mB5; GlZaD: pdo_update($this->tablePrefix . $this->configTable, array("value" => $account_uniacid), array("uniacid" => $_W['uniacid'], "code" => "account_uniacid")); goto Bx2dD; Bx2dD: $rel = pdo_update($this->tablePrefix . $this->configTable, array("value" => $art_bottom_color), array("uniacid" => $_W['uniacid'], "code" => "art_bottom_color")); goto awh8z; mWdSo: pdo_update($this->tablePrefix . $this->configTable, array("value" => $art_fodder_host), array("uniacid" => $_W['uniacid'], "code" => "art_fodder_host")); goto GlZaD; Py9Xy: $art_switch = intval($_GPC['art_switch']); goto o7ZGR; yEjWa: } public function doWebItemSet() { goto z_4Bv; O6BIB: $data['daily_poster_style']['store_range'] = json_decode($data['daily_poster_style']['store_range'], true); goto BXIKM; BXIKM: include $this->template('item/item_set'); goto wxfIQ; bTf5Z: hwNBi: goto yHKvE; z_4Bv: global $_GPC, $_W; goto vHnuq; yHKvE: $data['library_screen_style']['store_range'] = json_decode($data['library_screen_style']['store_range'], true); goto O6BIB; KZAev: foreach ($list as $k => $v) { goto nGS05; c2k72: nKEHc: goto pgQp6; DrcWm: $data['show_library_notice'] = $v; goto p2og7; JcMLn: $data['item_forward_pic'] = $v; goto f7vUt; rc516: tVBjR: goto l93cs; p2og7: Vefsd: goto fGhRz; nRBxC: E1h5V: goto flBRf; um1GW: $data['card_examine_switch'] = $v; goto rc516; nGS05: if (!($v['code'] == 'card_examine_switch')) { goto tVBjR; } goto um1GW; HUbV8: $data['library_screen_style'] = $v; goto J3rg2; gBCE2: if (!($v['code'] == 'item_forward_title')) { goto XNALZ; } goto uTknr; TwaD1: EWdOM: goto JtmGG; kKhJs: XNALZ: goto wkTGN; fGhRz: if (!($v['code'] == 'daily_poster_style')) { goto N1v2q; } goto N1Pwb; l93cs: if (!($v['code'] == 'holiday_wishes_pic')) { goto EWdOM; } goto RGOS4; ay0Lj: if (!($v['code'] == 'show_library_notice')) { goto Vefsd; } goto DrcWm; JtmGG: if (!($v['code'] == 'library_screen_style')) { goto oYw5m; } goto HUbV8; N1Pwb: $data['daily_poster_style'] = $v; goto d8HX4; f7vUt: qEYeD: goto kjSfk; d8HX4: N1v2q: goto gBCE2; kjSfk: if (!($v['code'] == 'video_play_jumppage')) { goto E1h5V; } goto M32As; flBRf: if (!($v['code'] == 'enterprise_certify_switch')) { goto nKEHc; } goto Ls8dY; M32As: $data['video_play_jumppage'] = $v; goto nRBxC; uTknr: $data['item_forward_title'] = $v; goto kKhJs; RGOS4: $data['holiday_wishes_pic'] = $v; goto TwaD1; pgQp6: dcWvX: goto lx1Ai; Ls8dY: $data['enterprise_certify_switch'] = $v; goto c2k72; wkTGN: if (!($v['code'] == 'item_forward_pic')) { goto qEYeD; } goto JcMLn; J3rg2: oYw5m: goto ay0Lj; lx1Ai: } goto bTf5Z; vHnuq: $list = pdo_fetchall('SELECT `id`,`name`,`code`,`type`,`value`,`tip`,`store_range` FROM ' . tablename($this->tablePrefix . $this->configTable) . ' WHERE `code` in(\'card_examine_switch\',\'holiday_wishes_pic\',\'library_screen_style\',\'show_library_notice\',\'daily_poster_style\',\'item_forward_title\', \'item_forward_pic\',\'video_play_jumppage\', \'enterprise_certify_switch\') and `uniacid` = :uniacid', array(":uniacid" => $_W['uniacid'])); goto KZAev; wxfIQ: } public function doWebItemSetSave() { goto yc_sN; JdmD7: $card_examine_switch = intval($_GPC['card_examine_switch']); goto jbcxP; r1J2O: pdo_update($this->tablePrefix . $this->configTable, array("value" => $holiday_wishes_pic), array("uniacid" => $_W['uniacid'], "code" => "holiday_wishes_pic")); goto CJqfJ; RfNmp: pdo_update($this->tablePrefix . $this->configTable, array("value" => $item_forward_title), array("uniacid" => $_W['uniacid'], "code" => "item_forward_title")); goto BZ8Mv; dwNxo: $holiday_wishes_pic = $_GPC['holiday_wishes_pic']; goto A3wc0; yc_sN: global $_GPC, $_W; goto JdmD7; CJqfJ: pdo_update($this->tablePrefix . $this->configTable, array("value" => $library_screen_style), array("uniacid" => $_W['uniacid'], "code" => "library_screen_style")); goto Zazvm; A3wc0: $item_forward_title = $_GPC['item_forward_title']; goto dTnuu; o6tXv: pdo_update($this->tablePrefix . $this->configTable, array("value" => $enterprise_certify_switch), array("uniacid" => $_W['uniacid'], "code" => "enterprise_certify_switch")); goto ft6DG; BZ8Mv: pdo_update($this->tablePrefix . $this->configTable, array("value" => $item_forward_pic), array("uniacid" => $_W['uniacid'], "code" => "item_forward_pic")); goto BJACa; ft6DG: $this->json_return(''); goto EvMOl; b11XA: $show_library_notice = intval($_GPC['show_library_notice']); goto cuC0X; cuC0X: $daily_poster_style = intval($_GPC['daily_poster_style']); goto g880u; EVml0: pdo_update($this->tablePrefix . $this->configTable, array("value" => $daily_poster_style), array("uniacid" => $_W['uniacid'], "code" => "daily_poster_style")); goto RfNmp; jbcxP: $library_screen_style = intval($_GPC['library_screen_style']); goto b11XA; g880u: $video_play_jumppage = intval($_GPC['video_play_jumppage']); goto KMxl7; dTnuu: $item_forward_pic = $_GPC['item_forward_pic']; goto u499c; Zazvm: pdo_update($this->tablePrefix . $this->configTable, array("value" => $show_library_notice), array("code" => "show_library_notice", "uniacid" => $_W['uniacid'])); goto EVml0; u499c: pdo_update($this->tablePrefix . $this->configTable, array("value" => $card_examine_switch), array("uniacid" => $_W['uniacid'], "code" => "card_examine_switch")); goto r1J2O; KMxl7: $enterprise_certify_switch = intval($_GPC['enterprise_certify_switch']); goto dwNxo; BJACa: pdo_update($this->tablePrefix . $this->configTable, array("value" => $video_play_jumppage), array("uniacid" => $_W['uniacid'], "code" => "video_play_jumppage")); goto o6tXv; EvMOl: } public function doWebPersonalCertify() { $this->doWebcertifyList(2); } public function doWebCompanyCertify() { $this->doWebcertifyList(1); } public function doWebcertifyList($type = 2) { goto UH1JM; u2eSP: $pager = pagination($total, $pageindex, $pagesize); goto nf6MB; r7q0X: $where = ' WHERE `c`.`status` = 0  and `c`.`uniacid`= ' . $_W['uniacid'] . ' and `c`.`type`= ' . $type; goto PKzLa; u90R6: MPVcM: goto LIFCp; Wq9_9: $where .= ' and `c`.`create_time` > ' . $datemin; goto rDZ1_; M0F1J: $type = intval($_GPC['type']) > 0 ? intval($_GPC['type']) : $type; goto CtcbT; PKzLa: $nickname = trim($_GPC['nickname']); goto gfWiz; rpgdI: SO61Q: goto CvMA1; LIFCp: $pageindex = 0; goto d8n1t; UH1JM: global $_GPC, $_W; goto M0F1J; I4zc1: include $this->template('certify/certify_list'); goto aYBH9; d8n1t: $pageindex2 = 0; goto AhDzg; i27az: if (!($datemax && $datemin == false)) { goto YsKOc; } goto cUG42; CtcbT: $url = $this->createWebUrl('certifyList'); goto r7q0X; cUG42: $where .= ' and `c`.`create_time` < ' . $datemax; goto JJxfk; pLmNv: if (!isset($_GPC['page'])) { goto MPVcM; } goto XPTwP; rDZ1_: b8m0m: goto i27az; n8ZA8: if (!($datemin && $datemax)) { goto SO61Q; } goto Rhs_f; FbjQo: $pagesize = $this->pageCount; goto pxci1; Rhs_f: $where .= ' and `c`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto rpgdI; gfWiz: if (!$nickname) { goto VIs7I; } goto RBvz8; RBvz8: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto Mq70d; CvMA1: if (!($datemin && $datemax == false)) { goto b8m0m; } goto Wq9_9; NHXh3: $datemin = strtotime($_GPC['datemin']); goto nlyk2; uOVEb: $pagesize = 5; goto pLmNv; rS0MQ: $total = count($allList); goto uOVEb; Mq70d: VIs7I: goto NHXh3; nf6MB: $list = pdo_fetchall('SELECT `c`.`id`,`c`.`type`,`c`.`status`,`c`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'certify') . ' `c` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `c`.`uid` = `m`.`uid`' . $where . ' ORDER BY `id` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto I4zc1; AhDzg: XXCt5: goto u2eSP; nlyk2: $datemax = strtotime($_GPC['datemax']); goto n8ZA8; pxci1: $allList = pdo_fetchall('SELECT `c`.`id` FROM ' . tablename($this->tablePrefix . 'certify') . ' `c` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `c`.`uid` = `m`.`uid`' . $where . ' ORDER BY `id` DESC'); goto rS0MQ; XPTwP: $pageindex = intval($_GPC['page']); goto q8VXT; q8VXT: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto t90Kl; JJxfk: YsKOc: goto FbjQo; t90Kl: goto XXCt5; goto u90R6; aYBH9: } public function doWebCertifyEdit() { goto GHwdj; Td4V4: if (!($id < 1)) { goto geYTE; } goto G4fsP; Fm6z0: geYTE: goto h8mgP; h8mgP: $data = pdo_fetch('SELECT `c`.`id`,`c`.`type`,`c`.`uid`, `c`.`license_path`, `c`.`id_path`,`c`.`badge_path`,`c`.`status`,`c`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'certify') . ' `c` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `m`.`uid` = `c`.`uid` WHERE `c`.`id` = :id', array(":id" => $id)); goto dxjD8; GHwdj: global $_GPC, $_W; goto kkLB5; kkLB5: $id = intval($_GPC['id']); goto Td4V4; dxjD8: include $this->template('certify/certify_info'); goto a4tDj; G4fsP: $this->json_return('', 0); goto Fm6z0; a4tDj: } public function doWebCertifySave() { goto jgnfm; hnnyS: pdo_query('UPDATE ' . tablename($this->tablePrefix . 'usersub') . ' SET `cert_msg_sub` = `cert_msg_sub` - 1 WHERE uid = :uid', array(":uid" => $uid)); goto RDMDS; gjybP: $id = intval($_GPC['id']); goto MIFdO; MwJ05: if ($certify['type'] == 2) { goto dDHzL; } goto OMiyl; bSrr2: Xteo9: goto z5oVM; HMQu0: goto ORepo; goto nrFJG; kdZxo: A99WZ: goto rAKkw; aZKNh: WZrUx: goto TlPNm; mJcQN: $this->json_return('', 0); goto eAcMg; wuJyE: $this->json_return('', 0); goto HMQu0; eppkx: $sub_count = $temp['cert_msg_sub']; goto wDieu; ogB2v: if ($status == 1) { goto zAtNU; } goto jsTZa; iIvcR: goto Xteo9; goto XmX36; CsoWK: $this->json_return('', 0); goto VBJtA; eARH4: $re = $this->sendSubMsg($touser, $temp_id, $page, $data); goto VqDXi; QeYnS: $re_account_msg = $this->sendAccountMsg($touser, $page, $data, $msg[$certify['type']], $uid); goto kdZxo; hQfpl: $this->json_return($msg); goto dTUQU; OMiyl: if (!($certify['type'] == 1)) { goto Cb88v; } goto VWgPu; Psyjb: if (!(getAppConfSd('account_msg_switch') == 1)) { goto A99WZ; } goto UslvH; QASP8: if ($re) { goto ksgVj; } goto wuJyE; VBJtA: goto gbu0S; goto aZKNh; eAcMg: idZmJ: goto oHj2V; nGXBz: if (!($id < 1 || $status < 1 || $uid < 1)) { goto idZmJ; } goto mJcQN; O7TOz: $sub_count = $temp['cert_msg_sub']; goto T_hZ4; jsTZa: $cerInfo = pdo_fetch('SELECT `info` FROM ' . tablename($this->tablePrefix . 'certify') . ' WHERE id = :id ORDER BY create_time DESC LIMIT 1', array(":id" => $id)); goto nQFZ8; MIFdO: $uid = intval($_GPC['uid']); goto dOeoh; zcjg8: $touser = $this->getFansInfoByUid($uid, 'openid'); goto z1t6y; dTUQU: ORepo: goto gcTTo; VWgPu: $re2 = pdo_update($this->tablePrefix . 'user', array("is_company" => $status), array("id" => $uid)); goto JVE8G; vRPQk: $page = 'super_card/pages/index/index'; goto MB3_D; rAKkw: $temp_id = getAppConfSd('certify_result_tempid'); goto dSqaE; qRJ7E: $temp = pdo_fetch('SELECT `cert_msg_sub` FROM ' . tablename($this->tablePrefix . 'usersub') . ' WHERE uid = :uid LIMIT 1', array(":uid" => $uid)); goto eppkx; FfJiL: $msg[1] = ''; goto In7qL; MzBU4: $re2 = pdo_update($this->tablePrefix . 'user', array("is_v" => $status), array("id" => $uid)); goto bSrr2; ppsih: Ss0jI: goto m9GGD; dOeoh: $status = intval($_GPC['status']); goto sAdEA; SuQVK: $re_account_msg = $this->sendAccountMsg($touser, $page, $data, $msg[$certify['type']], $uid); goto ppsih; T_hZ4: if (!($sub_count > 0)) { goto eNDu6; } goto W88JE; YBI6t: $certify = pdo_fetch('SELECT `id`, `type` FROM ' . tablename($this->tablePrefix . 'certify') . ' WHERE id = :id LIMIT 1', array(":id" => $id)); goto W3F2x; z5oVM: if ($re2) { goto WZrUx; } goto CsoWK; dSqaE: if (!(!$re_account_msg && $temp_id)) { goto dAb47; } goto FjBul; TlPNm: $cerInfo = pdo_fetch('SELECT `info` FROM ' . tablename($this->tablePrefix . 'certify') . ' WHERE id = :id ORDER BY create_time DESC LIMIT 1', array(":id" => $id)); goto zcjg8; oHj2V: $re = pdo_update($this->tablePrefix . 'certify', array("status" => $status, "info" => $info), array("id" => $id)); goto QASP8; FjBul: $temp = pdo_fetch('SELECT `cert_msg_sub` FROM ' . tablename($this->tablePrefix . 'usersub') . ' WHERE uid = :uid LIMIT 1', array(":uid" => $uid)); goto O7TOz; XmX36: dDHzL: goto MzBU4; HC5yn: $re = $this->sendSubMsg($touser, $temp_id, $page, $data); goto hnnyS; z1t6y: $page = 'super_card/pages/index/index'; goto Psyjb; nQFZ8: $touser = $this->getFansInfoByUid($uid, 'openid'); goto vRPQk; JxhYo: kMWLU: goto GxdG6; VZEDM: $data = array("first" => array("value" => $msg[$certify['type']]), "keyword1" => array("value" => getAppConfSd('app_name')), "keyword2" => array("value" => '' . ($certify['type'] == 2 ? '' : '') . '-[' . ($status == 1 ? '' : '') . ']'), "remark" => array("value" => date('Y-m-d H:i'))); goto SuQVK; GxdG6: kfH3M: goto VcvYJ; JVE8G: Cb88v: goto iIvcR; cZ_H4: $msg = $status == 1 ? '' : ''; goto hQfpl; m9GGD: $temp_id = getAppConfSd('certify_result_tempid'); goto fKIoP; v8zhH: P9X8L: goto cZ_H4; nrFJG: ksgVj: goto YBI6t; Tu7IR: gbu0S: goto v8zhH; VcvYJ: goto P9X8L; goto NZAxD; fKIoP: if (!(!$re_account_msg && $temp_id)) { goto kfH3M; } goto qRJ7E; W3F2x: $msg = array(); goto FfJiL; AxFlo: $data = array("phrase4" => array("value" => $certify['type'] == 2 ? '' : ''), "phrase1" => array("value" => $status == 1 ? '' : ''), "thing5" => array("value" => $status == 1 ? '' : '')); goto HC5yn; jgnfm: global $_GPC, $_W; goto gjybP; VqDXi: pdo_query('UPDATE ' . tablename($this->tablePrefix . 'usersub') . ' SET `cert_msg_sub` = `cert_msg_sub` - 1 WHERE uid = :uid', array(":uid" => $uid)); goto OR7_r; RAlPK: eNDu6: goto OD9Wm; wDieu: if (!($sub_count > 0)) { goto kMWLU; } goto AxFlo; In7qL: $msg[2] = ''; goto ogB2v; RDMDS: pdo_insert($this->tablePrefix . 'msglog', array("uniacid" => $_W['uniacid'], "uid" => $uid, "msg" => $msg[$certify['type']], "r_content" => $re['content'], "create_time" => time())); goto JxhYo; OD9Wm: dAb47: goto Tu7IR; OR7_r: pdo_insert($this->tablePrefix . 'msglog', array("uniacid" => $_W['uniacid'], "uid" => $uid, "msg" => $msg[$certify['type']], "r_content" => $re['content'], "create_time" => time())); goto RAlPK; NZAxD: zAtNU: goto MwJ05; UslvH: $data = array("first" => array("value" => $msg[$certify['type']]), "keyword1" => array("value" => getAppConfSd('app_name')), "keyword2" => array("value" => '' . ($certify['type'] == 2 ? '' : '') . '-[' . ($status == 1 ? '' : '') . ']'), "remark" => array("value" => date('Y-m-d H:i'))); goto QeYnS; W88JE: $data = array("phrase4" => array("value" => $certify['type'] == 2 ? '' : ''), "phrase1" => array("value" => $status == 1 ? '' : ''), "thing5" => array("value" => $status == 1 ? '' : '')); goto eARH4; sAdEA: $info = trim($_GPC['info']); goto nGXBz; MB3_D: if (!(getAppConfSd('account_msg_switch') == 1)) { goto Ss0jI; } goto VZEDM; gcTTo: } public function doWebHandledCertify() { goto oW6Va; GzyTH: if (!($datemin && $datemax)) { goto l30uo; } goto GcOFJ; cdO9S: $nickname = trim($_GPC['nickname']); goto Y_603; EfPla: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto Ay7Bk; GcOFJ: $where .= ' and `c`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto mrNM3; edqQ5: $where = ' WHERE `c`.`status` <> 0  and `c`.`uniacid`=\'' . $_W['uniacid'] . '\' '; goto cdO9S; w0gbI: $pager = pagination($total, $pageindex, $pagesize); goto ofQe2; fXS4k: $pagesize = $this->pageCount; goto yLWc0; XP8qh: oYNoD: goto w0gbI; E5_iR: $where .= ' and `c`.`create_time` < ' . $datemax; goto t0TNK; twdlS: if (!($datemax && $datemin == false)) { goto IFBe3; } goto E5_iR; JuzVR: if (!($type > 0)) { goto Rv3T7; } goto EIodG; DXld0: $pageindex2 = 0; goto XP8qh; UgvuT: $url = $this->createWebUrl('handledCertify'); goto edqQ5; JyreT: z5fby: goto bqP00; EIodG: $where .= ' and `c`.`type`= ' . $type; goto eYMt2; Ay7Bk: goto oYNoD; goto JyreT; QzSLD: if (!isset($_GPC['page'])) { goto z5fby; } goto fbbh0; quVd1: $where .= ' and `c`.`create_time` > ' . $datemin; goto BpF4a; BZcNB: if (!($datemin && $datemax == false)) { goto woWXz; } goto quVd1; pjj9s: include $this->template('certify/handled_certify'); goto jPQbH; ofQe2: $list = pdo_fetchall('SELECT `c`.`id`,`c`.`uid`,`c`.`type`,`c`.`status`,`c`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'certify') . ' `c` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `c`.`uid` = `m`.`uid`' . $where . ' ORDER BY `id` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto pjj9s; mrNM3: l30uo: goto BZcNB; BpF4a: woWXz: goto twdlS; s5PWq: $pagesize = 5; goto QzSLD; JZrh9: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto RQyzH; fbbh0: $pageindex = intval($_GPC['page']); goto EfPla; oW6Va: global $_GPC, $_W; goto UgvuT; Y_603: if (!$nickname) { goto FH090; } goto JZrh9; L3dLY: $type = intval($_GPC['type']); goto JuzVR; bqP00: $pageindex = 0; goto DXld0; yLWc0: $allList = pdo_fetchall('SELECT `c`.`id` FROM ' . tablename($this->tablePrefix . 'certify') . ' `c` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `c`.`uid` = `m`.`uid`' . $where . ' ORDER BY `id` DESC'); goto svKXu; RQyzH: FH090: goto L3dLY; lsMta: $datemin = strtotime($_GPC['datemin']); goto vrwzd; t0TNK: IFBe3: goto fXS4k; svKXu: $total = count($allList); goto s5PWq; eYMt2: Rv3T7: goto lsMta; vrwzd: $datemax = strtotime($_GPC['datemax']); goto GzyTH; jPQbH: } public function doWebHandledEdit() { goto ntnLs; CSVMY: $this->json_return('', 0); goto B9eys; ntnLs: global $_GPC, $_W; goto d54f9; d54f9: $id = intval($_GPC['id']); goto GT2c5; B9eys: zTV3I: goto KsVAk; GT2c5: if (!($id < 1)) { goto zTV3I; } goto CSVMY; KsVAk: $data = pdo_fetch('SELECT `c`.`id`,`c`.`type`,`c`.`uid`, `c`.`license_path`, `c`.`id_path`,`c`.`badge_path`,`c`.`status`,`c`.`info`,`c`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'certify') . ' `c` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `m`.`uid` = `c`.`uid` WHERE `c`.`id` = :id', array(":id" => $id)); goto Kbw54; Kbw54: include $this->template('certify/handled_certify_info'); goto oLDOP; oLDOP: } public function doWebHandledDel() { goto KQKTI; b0vUL: $uid = intval($_GPC['uid']); goto C3Dys; u6gob: $this->json_return('', 0); goto VNbFg; KQKTI: global $_GPC, $_W; goto X8z1Y; P738H: if ($result != false) { goto MEw8_; } goto x85Yo; cD0os: $result = pdo_delete($this->tablePrefix . 'certify', array("id" => $id)); goto P738H; OXbLJ: if (!($type == 2)) { goto u2odV; } goto Kpkrf; Oj6iQ: MEw8_: goto ysd33; wJ6ZI: MFJ6B: goto OXbLJ; VNbFg: syM8N: goto UBV3_; Kpkrf: $re = pdo_update($this->tablePrefix . 'user', array("is_v" => 0), array("id" => $uid)); goto spP08; e_zDL: dzpAk: goto bDtuA; UBV3_: if (!($type == 1)) { goto MFJ6B; } goto pJP71; DdHrb: goto dzpAk; goto Oj6iQ; pJP71: $re = pdo_update($this->tablePrefix . 'user', array("is_company" => 0), array("id" => $uid)); goto wJ6ZI; spP08: u2odV: goto cD0os; oujyP: if (!($id < 1 || $uid < 1)) { goto syM8N; } goto u6gob; X8z1Y: $id = intval($_GPC['id']); goto b0vUL; x85Yo: $this->json_return('', 0); goto DdHrb; C3Dys: $type = intval($_GPC['type']); goto oujyP; ysd33: $this->json_return(''); goto e_zDL; bDtuA: } public function doWebUser() { goto tC_LJ; uIFM3: OUsfz: goto qQFg1; BnsTL: if (!($datemin && $datemax == false)) { goto C_tuT; } goto NBHFf; tLyju: $datemin = strtotime($_GPC['datemin']); goto AGvi4; mZoAF: foreach ($member_grade as $k => $v) { goto jue7s; jue7s: $grade_data[$k]['id'] = $v['id']; goto J8LZo; YE3nG: EpBJQ: goto y0OL6; drMYO: $user_grade[$v['id']] = $v['name']; goto YE3nG; J8LZo: $grade_data[$k]['name'] = $v['name']; goto drMYO; y0OL6: } goto yJa2j; GDlRh: if (!($is_agent != NULL || $is_agent != '')) { goto SJ18z; } goto OA6sd; Q0NQG: $totalList = pdo_fetchall('SELECT `u`.`id` FROM ' . tablename($this->tablePrefix . 'user') . ' `u` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `u`.`id` = `m`.`uid`' . $where . ' ORDER BY `u`.`id` DESC'); goto GoXMP; x9NhJ: $where .= ' and `u`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto Mt5Ii; Rh8eU: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto qXTqZ; qXTqZ: N1Odc: goto tLyju; YqkYB: if (!($datemin && $datemax)) { goto lK_rz; } goto x9NhJ; xglfm: $nickname = trim($_GPC['nickname']); goto T0Vbw; zndIg: foreach ($list as $k => $v) { $list[$k]['user_grade'] = $user_grade[$v['vip']] == false ? '' : $user_grade[$v['vip']]; QDyAx: } goto haiw8; tX2mq: W8LOO: goto tD06Q; Wy0BB: $where .= ' and `u`.`agent`=' . intval($is_agent); goto Y3bCu; mmjQf: C_tuT: goto F9WzB; gaBuW: $where .= ' and `u`.`create_time` < ' . $datemax; goto rOkbw; T0Vbw: if (!$nickname) { goto N1Odc; } goto Rh8eU; cFmc3: $where .= ' and `u`.`vip`=' . intval($vip_type); goto uIFM3; yyuqg: hTsxP: goto pf0tB; haiw8: xm2AD: goto SiiP_; cCXdK: if (!($vip_type != NULL || $vip_type != '')) { goto sQzxk; } goto NzFVU; Mt5Ii: lK_rz: goto BnsTL; NzFVU: if (!(intval($vip_type) !== false)) { goto OUsfz; } goto cFmc3; KQDOi: $grade_data = array(); goto uSNcz; yJa2j: W4Nz2: goto yyuqg; GoXMP: $total = count($totalList); goto Eu5jK; Y3bCu: YQCB4: goto dQtEJ; NBHFf: $where .= ' and `u`.`create_time` > ' . $datemin; goto mmjQf; ix7fC: $pageindex2 = 0; goto n8N39; tD06Q: $pageindex = 0; goto ix7fC; ums8m: $pageindex = $_GPC['page']; goto KkLmi; AGvi4: $datemax = strtotime($_GPC['datemax']); goto YqkYB; Nv_Nm: goto nEvoB; goto tX2mq; dQtEJ: SJ18z: goto Q0NQG; Eu5jK: $pagesize = 5; goto FyYUN; OA6sd: if (!(intval($is_agent) !== false)) { goto YQCB4; } goto Wy0BB; pf0tB: $plugin = pdo_fetch('SELECT `id` FROM ' . tablename('modules_plugin') . ' WHERE `name`=\'super_card_plugin_admin\''); goto pu8TY; qQFg1: sQzxk: goto s2428; F9WzB: if (!($datemax && $datemin == false)) { goto R1PyA; } goto gaBuW; KkLmi: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto Nv_Nm; uSNcz: $user_grade = array(); goto kt5c8; ScI6O: $list = pdo_fetchall('SELECT `u`.`id`,`u`.`card_num`,`u`.`money`,`u`.`is_v`,`u`.`is_company`,`u`.`vip`,`u`.`agent`,`u`.`agent_balance`,`u`.`admin`, `u`.`art_record`, `u`.`status`,`u`.`create_time`,`m`.`uid`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'user') . ' `u` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `u`.`id` = `m`.`uid`' . $where . ' ORDER BY `u`.`id` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto zndIg; GprqX: $member_grade = unserialize(getAppConfSd('member_grade')); goto QXqug; QXqug: if (!(count($member_grade) > 0 && is_array($member_grade))) { goto hTsxP; } goto mZoAF; tC_LJ: global $_GPC, $_W; goto GJPL0; s2428: $is_agent = $_GPC['is_agent']; goto GDlRh; FyYUN: if (!isset($_GPC['page'])) { goto W8LOO; } goto ums8m; pu8TY: $is_show = isset($plugin['id']) ? true : false; goto y_Jbh; XQCpn: $pager = pagination($total, $pageindex, $pagesize); goto ScI6O; rOkbw: R1PyA: goto y5tMK; n8N39: nEvoB: goto XQCpn; SiiP_: include $this->template('user/user_list'); goto rVN_B; y_Jbh: $where = ' WHERE `u`.`uniacid` = ' . $_W['uniacid']; goto xglfm; y5tMK: $vip_type = $_GPC['vip_type']; goto cCXdK; GJPL0: $url = $this->createWebUrl('user'); goto KQDOi; kt5c8: $user_grade[0] = ''; goto GprqX; rVN_B: } public function doWebUserBalance() { goto UYIH8; UYIH8: global $_GPC, $_W; goto g0NXo; gkge5: include $this->template('user/user_balance'); goto RN5TC; g0NXo: $id = intval($_GPC['id']); goto gkge5; RN5TC: } public function doWebUserBalanceSave() { goto jQYVw; Uunl8: pdo_insert($this->tablePrefix . 'accountlog', $arr); goto VZQj3; VZQj3: $this->json_return(''); goto CtyHf; cITnx: $arr['uid'] = $id; goto k0loD; m0wFt: $this->json_return(', ', 0); goto c9fOg; P1hLt: $arr['type'] = $type; goto Rtg64; k0loD: $arr['money'] = $_GPC['money']; goto P1hLt; Mz0w6: $condition['update_time'] = time(); goto CQ4It; MqH3e: $condition['money'] = $_GPC['money']; goto dCaH2; ewAtW: $condition['money'] += $data['money']; goto zKqmE; J52qZ: $condition['money'] = $data['money'] - $condition['money']; goto Qtx9n; v_CbJ: if ($result != false) { goto Lru6w; } goto jbAOm; Du0dx: Lru6w: goto Uue11; CQ4It: $result = pdo_update($this->tablePrefix . 'user', $condition, array("id" => $id)); goto v_CbJ; pWsh_: goto eZ8Fm; goto CR4Ep; WOGDA: $arr['uniacid'] = $_W['uniacid']; goto cITnx; HkB3w: U4M8W: goto W5JBf; UlWZV: if (!empty($_GPC['type'])) { goto ZF6sj; } goto DyG0F; CAy1Q: if (!($id < 1)) { goto U4M8W; } goto WxMxk; dCaH2: if ($type == 1) { goto NbtsX; } goto O30R4; lynXc: if (!($data['money'] - $condition['money'] < 0)) { goto BDQvA; } goto m0wFt; jQYVw: global $_GPC, $_W; goto km8bh; km8bh: $id = intval($_GPC['id']); goto CAy1Q; Uue11: $arr = array(); goto WOGDA; O30R4: if (!($type == 2)) { goto PeAo6; } goto lynXc; Qtx9n: PeAo6: goto pWsh_; s2aQZ: $arr['change_desc'] = $_GPC['change_desc']; goto Uunl8; iGS3y: $condition = array(); goto MqH3e; zKqmE: eZ8Fm: goto Mz0w6; d_6S2: $data = pdo_fetch('SELECT `id`, `money` FROM ' . tablename($this->tablePrefix . 'user') . ' WHERE `id` = :id', array(":id" => $id)); goto iGS3y; cJGHc: $type = intval($_GPC['type']); goto d_6S2; CtyHf: LWtp4: goto DG97g; jbAOm: $this->json_return(''); goto LQHc5; LQHc5: goto LWtp4; goto Du0dx; E4CPm: $this->json_return('', 0); goto mA7VN; CR4Ep: NbtsX: goto ewAtW; W5JBf: if (!empty($_GPC['money'])) { goto o2vjo; } goto E4CPm; mA7VN: o2vjo: goto UlWZV; w85xA: ZF6sj: goto cJGHc; c9fOg: BDQvA: goto J52qZ; DyG0F: $this->json_return('', 0); goto w85xA; WxMxk: $this->json_return('', 0); goto HkB3w; Rtg64: $arr['create_time'] = time(); goto s2aQZ; DG97g: } public function doWebUserLog() { goto Li2zQ; wfYEO: qhYzv: goto gvmf3; zR8wE: goto JZhpq; goto wfYEO; gvmf3: $pageindex = 1; goto cirR8; Li2zQ: global $_GPC, $_W; goto Fi3Hf; Z1Z55: $money = pdo_fetch('SELECT `money` FROM ' . tablename($this->tablePrefix . 'user') . ' WHERE `id` = :id LIMIT 1', array(":id" => $id)); goto VjmY3; HEyP8: include $this->template('user/user_accountlog'); goto mprNf; EDAPA: $totalList = pdo_getall($this->tablePrefix . 'accountlog', array("uid" => $id, "uniacid" => $_W['uniacid']), array("id"), ''); goto iU3Z9; Fi3Hf: $id = intval($_GPC['id']); goto rGL86; NVLQG: $member = pdo_fetch('SELECT `uid`,`nickname`,`avatar` FROM ' . tablename('mc_members') . ' WHERE `uid` = :uid LIMIT 1', array(":uid" => $id)); goto Z1Z55; rGL86: if (!isset($_GPC['page'])) { goto qhYzv; } goto MfAUn; MfAUn: $pageindex = $_GPC['page']; goto zR8wE; cirR8: JZhpq: goto EDAPA; onP01: $pager = pagination($total, $pageindex, $this->pageCount); goto NVLQG; iU3Z9: $total = count($totalList); goto onP01; VjmY3: $list = pdo_getall($this->tablePrefix . 'accountlog', array("uid" => $id, "uniacid" => $_W['uniacid']), array("id", "money", "type", "change_desc", "create_time"), '', array("create_time DESC"), array($pageindex, $this->pageCount)); goto HEyP8; mprNf: } public function doWebUserVip() { goto zZaIV; zZaIV: global $_GPC, $_W; goto LYBR5; vSoxg: include $this->template('user/user_vip'); goto vgC1a; k44lt: foreach ($member_grade as $k => $v) { goto dL_e5; NaW33: xtOGU: goto r86uw; dL_e5: $grade_data[$k]['id'] = $v['id']; goto jEXU4; jEXU4: $grade_data[$k]['name'] = $v['name']; goto NaW33; r86uw: } goto c7yH3; x80CI: $id = intval($_GPC['id']); goto wY9YS; BW1bN: S7S7r: goto vSoxg; HEcXj: jGwk7: goto x80CI; VtFaZ: $member_grade = unserialize(getAppConfSd('member_grade')); goto TmsgO; TmsgO: if (!(count($member_grade) > 0 && is_array($member_grade))) { goto jGwk7; } goto k44lt; c7yH3: pJKSJ: goto HEcXj; EvCxY: $data = pdo_fetch('SELECT `id`, `vip`,`vip_last_time` FROM ' . tablename($this->tablePrefix . 'user') . ' WHERE  `id` = :id LIMIT 1', array(":id" => $id)); goto BW1bN; wY9YS: if (!($id > 0)) { goto S7S7r; } goto EvCxY; LYBR5: $grade_data = array(); goto VtFaZ; vgC1a: } public function doWebUserVipSave() { goto hkhDA; atIER: goto HKHPj; goto Ckt_z; EIHdx: goto g2nyv; goto uvjPv; QxyxN: $this->json_return('', 0); goto EIHdx; HXt3U: WWWi2: goto YdqCs; alH8i: $this->json_return('', 0); goto HXt3U; hIl0G: $this->json_return(''); goto wMupn; Pr9cn: $condition['vip_last_time'] = strtotime($_GPC['vip_last_time']); goto Hdx0_; USaom: $result = pdo_update($this->tablePrefix . 'user', $condition, array("id" => $id)); goto elN2Y; YdqCs: $is_v = intval($_GPC['is_v']); goto Mgspv; GM_LO: $id = intval($_GPC['id']); goto Y5m8l; qbChV: $condition['update_time'] = time(); goto USaom; kHLpn: $this->json_return('', 0); goto DpO94; wMupn: g2nyv: goto PgVKX; Mgspv: if ($is_v > 0) { goto Fj1El; } goto CAbz0; ZmnsS: $condition['vip_last_time'] = 0; goto atIER; qxX0P: if (!($id < 1 || $vip < 1)) { goto WWWi2; } goto alH8i; Y5m8l: $vip = intval($_GPC['vip']); goto qxX0P; Hdx0_: if (!($condition['vip_last_time'] < 1)) { goto dhO7W; } goto kHLpn; P54S2: HKHPj: goto qbChV; elN2Y: if ($result != false) { goto R2vmy; } goto QxyxN; Ckt_z: Fj1El: goto RGC8X; DpO94: dhO7W: goto P54S2; uvjPv: R2vmy: goto hIl0G; RGC8X: $condition['vip'] = $vip; goto Pr9cn; CAbz0: $condition['vip'] = 0; goto ZmnsS; hkhDA: global $_GPC, $_W; goto GM_LO; PgVKX: } public function doWebUserBg() { goto G8j6Y; GMnqN: include $this->template('user/user_bg'); goto eefbi; YFCxc: $list = pdo_getall($this->tablePrefix . 'cardbg', array("uid" => $uid, "uniacid" => $_W['uniacid'], "type" => 1), array("id", "uid", "name", "bg_url", "text_color", "status"), '', array("id DESC")); goto GMnqN; TzMJ1: $uid = intval($_GPC['id']); goto YFCxc; G8j6Y: global $_GPC, $_W; goto TzMJ1; eefbi: } public function doWebUserBgStatus() { goto a7HoR; uP9sh: MVmRY: goto MmuV1; X2eD8: $id = intval($_GPC['id']); goto cQ2z6; pU_fV: $this->json_return(''); goto uP9sh; a7HoR: global $_GPC, $_W; goto X2eD8; cQ2z6: if (!($id < 1)) { goto tJMpS; } goto UI2HL; UI2HL: $this->json_return('', 0); goto nplk_; WYduO: $result = pdo_update($this->tablePrefix . 'cardbg', array("status" => $status), array("id" => $id)); goto RTvWP; zWlZE: $status = intval($_GPC['status']); goto WYduO; IKZAJ: goto MVmRY; goto wfG4d; RTvWP: if ($result != false) { goto Ok1eR; } goto LBhvS; LBhvS: $this->json_return('', 0); goto IKZAJ; wfG4d: Ok1eR: goto pU_fV; nplk_: tJMpS: goto zWlZE; MmuV1: } public function doWebCardTemplate() { goto biAFr; biAFr: global $_GPC, $_W; goto w7MP4; jfU6H: tuZZl: goto SHpnp; P3lfD: $card_tem = array(); goto EzTpj; EzTpj: foreach ($data as $k => $v) { goto nNM7r; UX_Wk: LUBH7: goto StLIf; K20OI: $card_tem['price' . $v['id']] = $v['price']; goto nFO_y; RfmRu: $card_tem['tip' . $v['id']] = $v['tip']; goto UX_Wk; nFO_y: $card_tem['free' . $v['id']] = $v['free']; goto GbF4T; GbF4T: $card_tem['pic' . $v['id']] = $v['pic']; goto RfmRu; nNM7r: $card_tem['name' . $v['id']] = $v['name']; goto K20OI; StLIf: } goto jfU6H; s21UV: if (!(is_array($data) && count($data) > 0)) { goto Lbp2P; } goto P3lfD; w7MP4: $data = unserialize(getAppConfSd('card_style')); goto s21UV; kKwkc: include $this->template('user/card_template'); goto pipre; SHpnp: Lbp2P: goto kKwkc; pipre: } public function doWebCardTemplateSave() { goto rrZGD; nLRfa: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("uniacid" => $_W['uniacid'], "code" => "card_style")); goto ml3QB; ml3QB: if ($result != false) { goto qT7R6; } goto WqW1t; WqW1t: $this->json_return('', 0); goto O0GSw; ktpnQ: $this->json_return(''); goto JXe8b; dN3K1: qT7R6: goto ktpnQ; zNEtm: FQknS: goto M28bx; Ut6QL: $this->json_return('', 0); goto zNEtm; cLbLZ: if (!(trim($_GPC['name1']) == '' || trim($_GPC['name2']) == '' || trim($_GPC['name3']) == '')) { goto It53c; } goto maiRg; WJpQp: if (!(trim($_GPC['pic1']) == '' || trim($_GPC['pic2']) == '' || trim($_GPC['pic3']) == '')) { goto FQknS; } goto Ut6QL; c6UdO: if (!(trim($_GPC['price2']) == '' || trim($_GPC['price3']) == '')) { goto sNEGB; } goto FM3hI; g2wKT: sNEGB: goto WJpQp; O0GSw: goto HX2aY; goto dN3K1; rrZGD: global $_GPC, $_W; goto cLbLZ; JXe8b: HX2aY: goto rSXBs; VgA0a: $data = serialize($card_tem); goto nLRfa; FM3hI: $this->json_return('', 0); goto g2wKT; M28bx: $card_tem = array(array("id" => 1, "name" => trim($_GPC['name1']), "pic" => $_GPC['pic1'], "tip" => trim($_GPC['tip1'])), array("id" => 2, "name" => trim($_GPC['name2']), "pic" => $_GPC['pic2'], "price" => trim($_GPC['price2']), "free" => intval($_GPC['free2']), "tip" => trim($_GPC['tip2'])), array("id" => 3, "name" => trim($_GPC['name3']), "pic" => $_GPC['pic3'], "price" => trim($_GPC['price3']), "free" => intval($_GPC['free3']), "tip" => trim($_GPC['tip3']))); goto VgA0a; maiRg: $this->json_return('', 0); goto bjtv3; bjtv3: It53c: goto c6UdO; rSXBs: } public function doWebComebackList() { goto JxBpI; fyVTs: $totalList = pdo_fetchall('SELECT `c`.`id` FROM ' . tablename($this->tablePrefix . 'comeback') . ' `c` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `c`.`uid`= `m`.`uid` LEFT JOIN ' . tablename('mc_members') . ' `m2`  ON `c`.`t_uid` = `m2`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `c`.`card_id` = `i`.`id` ' . $where . ' ORDER BY `c`.`id` DESC'); goto MitGe; E_khK: $name2 = trim($_GPC['name2']); goto zBMtA; ui2r7: $pagesize = 5; goto NJhpi; NJhpi: if (!isset($_GPC['page'])) { goto tYRXv; } goto p11C8; Ufiym: include $this->template('user/come_back_list'); goto YEK4d; yLrfD: sOJq5: goto E_khK; ZWpuD: $pageindex = 0; goto PkcwX; JxBpI: global $_GPC, $_W; goto hcvdJ; PkcwX: $pageindex2 = 0; goto wgdHz; wgdHz: Mxv2j: goto t1SEe; erwvs: tYRXv: goto ZWpuD; Hqhlk: $name1 = trim($_GPC['name1']); goto G2sIf; zBMtA: if (!$name2) { goto qPvnO; } goto teB4S; rPX7u: $where .= ' and `m`.`nickname` LIKE \'%' . $name1 . '%\''; goto yLrfD; O0RxP: qPvnO: goto fyVTs; upOYK: $where = ' WHERE `c`.`uniacid` = ' . $_W['uniacid']; goto Hqhlk; p11C8: $pageindex = $_GPC['page']; goto QoP6u; teB4S: $where .= ' and  `m2`.`nickname` LIKE \'%' . $name2 . '%\''; goto O0RxP; MitGe: $total = count($totalList); goto ui2r7; t1SEe: $pager = pagination($total, $pageindex, $pagesize); goto JBnNF; G2sIf: if (!$name1) { goto sOJq5; } goto rPX7u; JBnNF: $list = pdo_fetchall('SELECT `c`.`id`,`c`.`uid`, `c`.`card_id`, `c`.`msg`,`c`.`status`,`c`.`create_time`,`m`.`nickname`,`m`.`avatar`,`m2`.`nickname` `nickname2`,`m2`.`avatar` as `avatar2`,`i`.`name` FROM ' . tablename($this->tablePrefix . 'comeback') . ' `c` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `m`.`uid` = `c`.`uid` LEFT JOIN ' . tablename('mc_members') . ' `m2` ON `m2`.`uid` = `c`.`t_uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `i`.`id` = `c`.`card_id`' . $where . ' ORDER BY `c`.`id` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto Ufiym; QoP6u: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto ssHZd; ssHZd: goto Mxv2j; goto erwvs; hcvdJ: $url = $this->createWebUrl('comeBackList'); goto upOYK; YEK4d: } public function doWebComeBackShow() { goto dFYhG; idP0m: $id = intval($_GPC['id']); goto o9XIx; o9XIx: if (!($id > 0)) { goto Jcehc; } goto tOwoF; gq2Hq: $cardbg = pdo_getall($this->tablePrefix . 'cardbg', array("uniacid" => $_W['uniacid'], "status" => 1, "type" => 0), array("id", "name")); goto J6o_h; J6o_h: include $this->template('user/come_back_show'); goto hm1Fe; taZ6O: $industry = pdo_getall($this->tablePrefix . 'industry', array("uniacid" => $_W['uniacid'], "status" => 1), array("id", "name")); goto gq2Hq; tOwoF: $data = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE id = :id LIMIT 1', array(":id" => $id)); goto Wn18Q; Wn18Q: Jcehc: goto taZ6O; dFYhG: global $_GPC, $_W; goto idP0m; hm1Fe: } public function doWebFeedBackList() { goto b9tL6; QKvX9: $pageindex = 0; goto BomcX; MhNn_: foreach ($list as $key => $v) { $list[$key]['content'] = urldecode($v['content']); dVZtu: } goto OK76Q; B9KFf: T6qF3: goto DBAL4; OK76Q: hbVM8: goto vJUGz; J2HS5: Gv69P: goto QKvX9; mASVr: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto krHCP; vJUGz: include $this->template('user/freed_back_list'); goto uPNCE; M5Sin: $pagesize = 5; goto zil2h; yIgW6: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto B9KFf; ETzl4: $nickname = $_GPC['nickname']; goto naCv1; BomcX: $pageindex2 = 0; goto XE_Vu; krHCP: goto h5XHI; goto J2HS5; jsG15: $pageindex = $_GPC['page']; goto mASVr; XfmHM: $list = pdo_fetchall('SELECT `f`.`id`,`f`.`content`,`f`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'feedback') . ' `f` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `m`.`uid` = `f`.`uid`' . $where . ' ORDER BY `f`.`id`  DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto MhNn_; b9tL6: global $_GPC, $_W; goto Juz3a; XE_Vu: h5XHI: goto Pa1r6; Juz3a: $url = $this->createWebUrl('feedBackList'); goto QvQFn; Pa1r6: $pager = pagination($total, $pageindex, $pagesize); goto XfmHM; QvQFn: $where = '  WHERE `f`.`uniacid` = \'' . $_W['uniacid'] . '\''; goto ETzl4; zil2h: if (!isset($_GPC['page'])) { goto Gv69P; } goto jsG15; nRgM5: $total = count($totalList); goto M5Sin; DBAL4: $totalList = pdo_fetchall('SELECT `f`.`id`,`f`.`content`,`f`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'feedback') . ' `f` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `m`.`uid` = `f`.`uid`' . $where . ' ORDER BY `f`.`id` DESC'); goto nRgM5; naCv1: if (!$nickname) { goto T6qF3; } goto yIgW6; uPNCE: } public function doWebFeedBackDel() { goto Mhn06; jasiB: if ($result != false) { goto RFbh8; } goto OjT3d; UdB7S: $result = pdo_delete($this->tablePrefix . 'feedback', array("id" => $id)); goto jasiB; VQwZ7: RFbh8: goto c6Oj_; c6Oj_: $this->json_return(''); goto BotHS; ikTsi: $id = $_GPC['id']; goto UdB7S; b_6Jh: goto k8ZM2; goto VQwZ7; OjT3d: $this->json_return('', 0); goto b_6Jh; BotHS: k8ZM2: goto sfzpG; Mhn06: global $_GPC, $_W; goto ikTsi; sfzpG: } public function doWebEnterpriseApply() { goto Y1mc4; q3x3V: $pager = pagination($total, $pageindex, $pagesize); goto WzGCN; M58gO: if (!$enter_name) { goto VW1cY; } goto QxrbJ; h2UIa: $datemax = strtotime($_GPC['datemax']); goto uU3HT; TuQDJ: if (!isset($_GPC['page'])) { goto BZEUm; } goto DLa_r; RdMlP: $total = count($allList); goto TuQDJ; uj7jH: BZEUm: goto tC7HK; DLa_r: $pageindex = $_GPC['page']; goto XX9UC; CHF6T: $where['uniacid'] = $_W['uniacid']; goto kw8rF; QxrbJ: $where['enter_name LIKE'] = '%' . $enter_name . '%'; goto Qmnwb; K_zxU: $where['create_time >='] = $datemin; goto fut1u; GypPc: if (!($list != '')) { goto I7qD0; } goto cCOcl; cCOcl: foreach ($list as $k => $v) { $list[$k]['addr'] = $v['province'] . $v['city'] . $v['area']; RqOA8: } goto ZrcVm; ZrcVm: JL0sF: goto IZwOk; Ckrkv: B3cvn: goto htMVM; tC7HK: $pageindex = 0; goto XyEyQ; gnEKO: $allList = pdo_getall($this->tablePrefix . 'enterpriseapply', $where, array("id"), ''); goto RdMlP; mCohR: $where['create_time <'] = $datemax; goto NfajL; h61Mz: qZ39A: goto yWCVR; Qmnwb: VW1cY: goto UZN5W; klzKf: $pagesize = $this->pageCount; goto q3x3V; WzGCN: $list = pdo_getall($this->tablePrefix . 'enterpriseapply', $where, array("id", "enter_name", "name", "phone", "province", "city", "area", "address", "latitude", "longitude", "num", "status", "create_time"), '', array("id desc"), array($pageindex, $pagesize)); goto GypPc; yWCVR: if (!($datemin && $datemax == false)) { goto B3cvn; } goto VYTPg; VYTPg: $where['create_time >'] = $datemin; goto Ckrkv; UZN5W: $datemin = strtotime($_GPC['datemin']); goto h2UIa; IZwOk: I7qD0: goto VRPZF; Y1mc4: global $_GPC, $_W; goto SRmgB; fut1u: $where['create_time <='] = $datemax; goto h61Mz; XX9UC: goto RFAU4; goto uj7jH; kw8rF: $enter_name = trim($_GPC['enter_name']); goto M58gO; uU3HT: if (!($datemin && $datemax)) { goto qZ39A; } goto K_zxU; XyEyQ: RFAU4: goto klzKf; VRPZF: include $this->template('user/enterprise_apply_list'); goto uj2eq; NfajL: QtaIL: goto gnEKO; SRmgB: $url = $this->createWebUrl('enterpriseApply'); goto CHF6T; htMVM: if (!($datemax && $datemin == false)) { goto QtaIL; } goto mCohR; uj2eq: } public function doWebEnterpriseApplyStatus() { goto wl3Vg; dsloA: $this->json_return(''); goto XE3Dx; yZTXs: $result = pdo_update($this->tablePrefix . 'enterpriseapply', array("status" => 1), array("id" => $id)); goto NY2gs; s9qrp: goto cBVxT; goto QMZvq; wl3Vg: global $_GPC, $_W; goto m_SFs; XE3Dx: cBVxT: goto g1Qwx; NET0b: $this->json_return('', 0); goto s9qrp; NY2gs: if ($result != false) { goto B0swT; } goto NET0b; m_SFs: $id = intval($_GPC['id']); goto yZTXs; QMZvq: B0swT: goto dsloA; g1Qwx: } public function doWebEnterpriseApplyDel() { goto v5KgM; kDIhu: T2QXY: goto r1ce0; f1SWy: $this->json_return('', 0); goto RUrUV; JvDQx: s51fL: goto b8xCr; lieyr: if ($result != false) { goto WvoSm; } goto f1SWy; aLU4R: if (!is_array($_GPC['id'])) { goto s51fL; } goto Xhw5U; CR8ge: goto qLLIO; goto JvDQx; Xhw5U: $id = $_GPC['id']; goto CR8ge; zuXB7: $this->json_return(''); goto kDIhu; v5KgM: global $_GPC, $_W; goto aLU4R; b8xCr: $id = intval($_GPC['id']); goto N3EmW; mm8ZS: $result = pdo_delete($this->tablePrefix . 'enterpriseapply', array("id in" => $id)); goto lieyr; OaQmx: WvoSm: goto zuXB7; RUrUV: goto T2QXY; goto OaQmx; N3EmW: qLLIO: goto mm8ZS; r1ce0: } public function doWebGroupMessage() { goto HBW_w; s35Rr: $pageData = getOtherConf('tab_bar_pages'); goto PiQhP; PiQhP: include $this->template('user/group_message'); goto RiStl; HBW_w: global $_GPC, $_W; goto s35Rr; RiStl: } public function doWebGetGroupList() { goto BeikI; VoLmD: tZgcX: goto FpQOh; N9LFo: $pagePath = substr($pagePath, 1); goto tNFF5; BeikI: global $_GPC, $_W; goto xUxUO; aQsyM: $list = pdo_fetchall('SELECT `uid` FROM ' . tablename($this->tablePrefix . 'usersub') . ' WHERE `uniacid`= ' . $_W['uniacid'] . ' AND `sign_msg_sub` > 0 ORDER BY `create_time` ASC'); goto YISxB; xUxUO: $list = array(); goto wZMEc; AsPwY: Qxb6k: goto PYD70; Yc9d3: if (count($list) > 0) { goto QBMLz; } goto JFNsj; Zk125: RsFhM: goto OZQjZ; Ni5Yu: $this->json_return('', 0); goto O3zZX; eGRZg: $data['list'] = $list; goto kgHja; loEu1: if (!(trim($pagePath) == '')) { goto RsFhM; } goto mQ1P5; mQ1P5: $this->json_return('', 0); goto Zk125; kgHja: $data['pagePath'] = $pagePath; goto YTEB1; zdCYp: if (!($len > 100)) { goto Qxb6k; } goto j42e3; JFNsj: $this->json_return('', 0); goto SrjA_; YISxB: mPX96: goto Yc9d3; YTEB1: $this->json_return('', 1, $data); goto VoLmD; SrjA_: goto tZgcX; goto siZzJ; TCHyH: $len = mb_strlen($_GPC['message'], 'utf-8'); goto zdCYp; PYD70: if (!(intval($_GPC['getList']) == 1)) { goto mPX96; } goto aQsyM; tNFF5: siltJ: goto ZTzes; ZTzes: if (!(trim($_GPC['message']) == '')) { goto tjqH6; } goto Ni5Yu; j42e3: $this->json_return('100', 0); goto AsPwY; siZzJ: QBMLz: goto eGRZg; wZMEc: $pagePath = $_GPC['pagePath']; goto loEu1; OZQjZ: if (!(substr($pagePath, 0, strlen('/')) === '/')) { goto siltJ; } goto N9LFo; O3zZX: tjqH6: goto TCHyH; FpQOh: } public function doWebgroupMessageStart() { goto U1IFO; dwfSd: $this->json_return(''); goto KtyUw; YIDDJ: cOHPT: goto ZGsv0; D4kAc: if (!($len > 200)) { goto Q9Cah; } goto W3oH0; s9vz6: $this->json_return(''); goto yi4cw; b4xMM: rKuzU: goto j_eIs; uMjwi: $data = array("thing3" => array("value" => '' . $app_name . ''), "thing4" => array("value" => str_cut($message, 50))); goto KgToG; PAFVr: EBJWV: goto m_Fjm; m_Fjm: if (!(trim($_GPC['message']) == '')) { goto oE1w7; } goto tLZvM; noLqy: $page = $pagePath; goto n4SuQ; uJgNg: if (!(trim($pagePath) == '')) { goto EBJWV; } goto BUO5n; HIh6c: $condition = $_GPC['data']; goto gRsIz; bL7Tx: if (!$re_account_msg && $temp_id) { goto DPvt3; } goto E18HC; tLZvM: $this->json_return('', 0); goto UoRQy; jEWpM: goto rKuzU; goto YIDDJ; Ve4VZ: DPvt3: goto uMjwi; KgToG: $result = $this->sendSubMsg($touser, $temp_id, $page, $data); goto dl1ME; BUO5n: $this->json_return('', 0); goto PAFVr; j_eIs: mLWNk: goto jH3zC; n0uSY: $temp_id = getAppConfSd('sign_in_tempid'); goto bL7Tx; luMQV: Q9Cah: goto HIh6c; Q3JZP: $app_name = getAppConfSd('app_name'); goto sGH40; yi4cw: goto Ug6AW; goto tmCu3; E18HC: $this->json_return('ID'); goto x2wrY; jH3zC: Ug6AW: goto MEju0; GfWz0: pdo_insert($this->tablePrefix . 'msglog', array("uniacid" => $_W['uniacid'], "uid" => $condition['uid'], "msg" => "", "r_content" => $result['content'], "create_time" => time())); goto ImWYe; qQqZZ: $pagePath = $_GPC['pagePath']; goto uJgNg; x2wrY: goto mLWNk; goto Ve4VZ; ImWYe: $result = json_decode($result['content'], true); goto HjBC5; Jp7CL: $message = $_GPC['message']; goto Y83S2; FP3Yv: $data = array("first" => array("value" => ""), "keyword1" => array("value" => $app_name), "keyword2" => array("value" => $message), "remark" => array("value" => date('Y-m-d H:i'))); goto rSVXT; Y83S2: $len = mb_strlen($message, 'utf-8'); goto D4kAc; ZGsv0: $this->json_return(''); goto b4xMM; dl1ME: pdo_query('UPDATE ' . tablename($this->tablePrefix . 'usersub') . ' SET `sign_msg_sub` = `sign_msg_sub` - 1 WHERE uid = :uid', array(":uid" => $condition['uid'])); goto GfWz0; KtyUw: Epd9N: goto JemUI; rSVXT: $re_account_msg = $this->sendAccountMsg($touser, $page, $data, '', $condition['uid']); goto lYdqM; U1IFO: global $_GPC, $_W; goto qQqZZ; tmCu3: wi2Ng: goto Q3JZP; S531E: $this->json_return(''); goto jEWpM; JemUI: NC6fi: goto n0uSY; gRsIz: if ($condition['uid'] > 0) { goto wi2Ng; } goto s9vz6; n4SuQ: if (!(getAppConfSd('account_msg_switch') == 1)) { goto NC6fi; } goto FP3Yv; sGH40: $touser = $this->getFansInfoByUid($condition['uid'], 'openid'); goto noLqy; lYdqM: if (!($re_account_msg === true)) { goto Epd9N; } goto dwfSd; W3oH0: $this->json_return('100', 0); goto luMQV; UoRQy: oE1w7: goto Jp7CL; HjBC5: if ($result['errcode'] == 0 && $result['errmsg'] == 'ok') { goto cOHPT; } goto S531E; MEju0: } public function doWebUserSet() { goto MWFN1; nFRbl: k8opE: goto kNPHE; Nc4pR: include $this->template('user/user_set'); goto pMcif; KiBzX: foreach ($list as $v) { goto IgwBa; SgBHY: $data['radar_trial'] = $v; goto Fgw1s; I8Nrh: J0Gn1: goto UknRS; v2JOh: if (!($v['code'] == 'radar_trial')) { goto qPiOZ; } goto SgBHY; oTCtj: if (!($v['code'] == 'radar_trial_time')) { goto S_w3_; } goto Djpxa; n1d0J: if (!($v['code'] == 'member_open_balance')) { goto J0Gn1; } goto S6S46; EoF6F: S_w3_: goto slp71; ipi5p: $data['legal_declaration'] = $v; goto bx7gq; bx7gq: QMXgy: goto v2JOh; PRUII: $data['member_entry_pic'] = $v; goto di0ST; S6S46: $data['member_open_balance'] = $v; goto I8Nrh; MCZyN: a8oHd: goto NQSFh; Djpxa: $data['radar_trial_time'] = $v; goto EoF6F; di0ST: nxx_0: goto n1d0J; NQSFh: if (!($v['code'] == 'legal_declaration')) { goto QMXgy; } goto ipi5p; e9RDv: $data['service_agreement'] = $v; goto MCZyN; KzNey: SWEgV: goto XRO3p; IgwBa: if (!($v['code'] == 'service_agreement')) { goto a8oHd; } goto e9RDv; UknRS: if (!($v['code'] == 'style_open_balance')) { goto mtV9u; } goto aOBEC; slp71: if (!($v['code'] == 'member_entry_pic')) { goto nxx_0; } goto PRUII; Fgw1s: qPiOZ: goto oTCtj; GYmJY: mtV9u: goto KzNey; aOBEC: $data['style_open_balance'] = $v; goto GYmJY; XRO3p: } goto nFRbl; MWFN1: global $_GPC, $_W; goto ZDQYn; kNPHE: $data['radar_trial_time']['store_range'] = json_decode($data['radar_trial_time']['store_range'], true); goto Nc4pR; ZDQYn: $list = pdo_fetchall('SELECT  `name`,`code`,`type`,`store_range`,`value`,`tip` FROM ' . tablename($this->tablePrefix . $this->configTable) . ' WHERE `code` in (\'service_agreement\',\'legal_declaration\', \'radar_trial\',\'radar_trial_time\', \'member_entry_pic\',\'member_open_balance\',\'style_open_balance\') and `uniacid`=:uniacid', array(":uniacid" => $_W['uniacid'])); goto KiBzX; pMcif: } public function doWebUserSetSave() { goto vph8X; Aj5Ft: $radar_trial = intval($_GPC['radar_trial']); goto uWmGq; RyJ4N: pdo_update($this->tablePrefix . $this->configTable, array("value" => $style_open_balance), array("code" => "style_open_balance", "uniacid" => $_W['uniacid'])); goto UvWaR; vNOXI: $style_open_balance = intval($_GPC['style_open_balance']); goto Ipylv; xUd7N: pdo_update($this->tablePrefix . $this->configTable, array("value" => $radar_trial_time), array("code" => "radar_trial_time", "uniacid" => $_W['uniacid'])); goto NrGb5; QfO8A: $this->json_return(''); goto XWDq2; Ipylv: pdo_update($this->tablePrefix . $this->configTable, array("value" => $radar_trial), array("code" => "radar_trial", "uniacid" => $_W['uniacid'])); goto N8kWe; UvWaR: pdo_update($this->tablePrefix . $this->configTable, array("value" => $member_entry_pic), array("code" => "member_entry_pic", "uniacid" => $_W['uniacid'])); goto QfO8A; uQpcV: $member_entry_pic = trim($_GPC['member_entry_pic']); goto kxsGu; riKgb: pdo_update($this->tablePrefix . $this->configTable, array("value" => $legal_declaration), array("code" => "legal_declaration", "uniacid" => $_W['uniacid'])); goto xUd7N; l1iQa: $legal_declaration = $_GPC['legal_declaration']; goto Aj5Ft; kxsGu: $member_open_balance = intval($_GPC['member_open_balance']); goto vNOXI; NrGb5: pdo_update($this->tablePrefix . $this->configTable, array("value" => $member_open_balance), array("code" => "member_open_balance", "uniacid" => $_W['uniacid'])); goto RyJ4N; N8kWe: pdo_update($this->tablePrefix . $this->configTable, array("value" => $service_agreement), array("code" => "service_agreement", "uniacid" => $_W['uniacid'])); goto riKgb; vph8X: global $_GPC, $_W; goto pokZm; pokZm: $service_agreement = $_GPC['service_agreement']; goto l1iQa; uWmGq: $radar_trial_time = intval($_GPC['radar_trial_time']); goto uQpcV; XWDq2: } public function doWebGroup() { goto k7D4m; TS_R2: $nickname = trim($_GPC['nickname']); goto t7csN; OIQn3: $tname = trim($_GPC['tname']); goto atFm7; lajZV: $url = $this->createWebUrl('group'); goto YoIAc; ojjLl: njq3M: goto Yjtvo; i34n3: $pager = pagination($total, $pageindex, $pagesize); goto Xxh1r; cVC6U: $where .= ' and `g`.`name` LIKE \'%' . $name . '%\''; goto dFdxu; WuJId: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto KRe9v; MbTsV: $total = count($totalList); goto sreAv; dFdxu: Occpx: goto OIQn3; sreAv: if (!isset($_GPC['page'])) { goto njq3M; } goto p2284; E93PB: $pageindex2 = 0; goto D0_yw; YoIAc: $where = ' WHERE `g`.`uniacid` = ' . $_W['uniacid']; goto TS_R2; Xxh1r: $list = pdo_fetchall('SELECT `g`.`id`,`g`.`uid`,`g`.`card_id`,`g`.`name`,`g`.`type_id`,`g`.`anyone_request`,`g`.`allow_collect`,`g`.`status`,`g`.`create_time`,`t`.`name` AS `tname`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'group') . ' `g` LEFT JOIN ' . tablename($this->tablePrefix . 'grouptype') . ' `t` ON `t`.`id` = `g`.`type_id` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `m`.`uid` = `g`.`uid`' . $where . ' ORDER BY `g`.`id` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto cUGzK; iTOSJ: $totalList = pdo_fetchall('SELECT `g`.`id` FROM ' . tablename($this->tablePrefix . 'group') . ' `g` LEFT JOIN ' . tablename($this->tablePrefix . 'grouptype') . ' `t` ON `t`.`id` = `g`.`type_id` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `m`.`uid` = `g`.`uid` ' . $where . ' ORDER BY `g`.`id` DESC'); goto MbTsV; NS1dl: $pageindex2 = (intval($_GPC['page']) - 1) * 5; goto QkYHa; KRe9v: fkhQH: goto MWoYH; Ug9fL: PSNPa: goto iTOSJ; MWoYH: $name = trim($_GPC['name']); goto S3EbA; QkYHa: goto kYPfy; goto ojjLl; atFm7: if (!$tname) { goto PSNPa; } goto rUHu4; Yjtvo: $pageindex = 0; goto E93PB; D0_yw: kYPfy: goto iwafQ; iwafQ: $pagesize = 5; goto i34n3; S3EbA: if (!$name) { goto Occpx; } goto cVC6U; k7D4m: global $_GPC, $_W; goto lajZV; rUHu4: $where .= ' and `t`.`name` LIKE \'%' . $tname . '%\''; goto Ug9fL; cUGzK: include $this->template('group/group_list'); goto tuaNU; p2284: $pageindex = $_GPC['page']; goto NS1dl; t7csN: if (!$nickname) { goto fkhQH; } goto WuJId; tuaNU: } public function doWebGroupEdit() { goto U2HXH; MhgpF: $data = pdo_fetch('SELECT `g`.`id`,`g`.`uid`,`g`.`name`,`g`.`type_id`, `g`.`anyone_request`, `g`.`note`, `g`.`allow_collect`,`g`.`status`,`g`.`create_time`,`t`.`name` as `tname`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'group') . ' `g` LEFT JOIN ' . tablename($this->tablePrefix . 'grouptype') . ' `t` ON `g`.`type_id` = `t`.`id` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `g`.`uid` = `m`.`uid`  WHERE `g`.`id` = :id', array(":id" => $id)); goto vNWhK; vNWhK: RBjYo: goto KIXXD; TAv40: if (!($id > 0)) { goto RBjYo; } goto MhgpF; KIXXD: include $this->template('group/group_info'); goto wmZuN; U2HXH: global $_GPC, $_W; goto weIoJ; weIoJ: $id = intval($_GPC['id']); goto TAv40; wmZuN: } public function doWebGroupStatus() { goto S8OO8; oJKfp: goto SKA6N; goto YWq5F; hnlcB: $id = intval($_GPC['id']); goto ZAAoI; ZAAoI: $status = intval($_GPC['status']); goto Ayn89; PsQy6: fh4HY: goto FsMBW; Stctr: $this->json_return('', 0); goto PsQy6; S8OO8: global $_GPC, $_W; goto hnlcB; AS9hR: $this->json_return('', 0); goto oJKfp; UjxIK: $this->json_return(''); goto Ml0mg; uYSta: if ($result != false) { goto K8bev; } goto AS9hR; YWq5F: K8bev: goto UjxIK; FsMBW: $result = pdo_update($this->tablePrefix . 'group', array("status" => $status), array("id" => $id)); goto uYSta; Ayn89: if (!($id < 1)) { goto fh4HY; } goto Stctr; Ml0mg: SKA6N: goto CNRLH; CNRLH: } public function doWebGroupCard() { goto C5A6n; BLxzG: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto Z9s2G; aHvSc: $group_id = intval($_GPC['id']); goto CWBHc; ZFPK1: $pagesize = $this->pageCount; goto JNW3H; hDOto: $pageindex2 = 0; goto PZswX; ka75Q: array_unshift($list, $group); goto E7Sz3; YMCQh: $totalList = pdo_fetchall('SELECT `s`.`id` FROM ' . tablename($this->tablePrefix . 'groups') . ' `s` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `m`.`uid` = `s`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON  `s`.`card_id` = `i`.`id` WHERE `s`.`group_id` = ' . $group_id . ' and `s`.`uniacid` = ' . $_W['uniacid'] . ' ORDER BY `s`.`id` DESC'); goto ZgLAy; T5cuh: $pageindex = $_GPC['page']; goto BLxzG; PZswX: J5oca: goto Y3WoR; Y3WoR: $pager = pagination($total, $pageindex, $pagesize); goto MG1Ww; JNW3H: if (!isset($_GPC['page'])) { goto z3uxq; } goto T5cuh; Z9s2G: goto J5oca; goto n_xpZ; ZgLAy: $total = count($totalList); goto ZFPK1; C5A6n: global $_GPC, $_W; goto aHvSc; j1iIz: $pageindex = 0; goto hDOto; Rn6Jv: $group = pdo_fetch('SELECT `i`.`name`,`i`.`id` as `card_id`,`m`.`nickname`,`m`.`avatar`,`i`.`picture`,`i`.`mobile`,`i`.`company`,`i`.`title`,`i`.`industry`,`i`.`status`,`g`.`name` as `group_name` FROM ' . tablename($this->tablePrefix . 'group') . ' `g` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `g`.`card_id`=`i`.`id` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `i`.`uid`=`m`.`uid` WHERE `g`.`id` = :group_id and `g`.`uniacid` = :uniacid ORDER BY `g`.`id` DESC  LIMIT 1', array(":group_id" => $group_id, ":uniacid" => $_W['uniacid'])); goto ka75Q; E7Sz3: LVqH6: goto bfODK; MG1Ww: $list = pdo_fetchall('SELECT `m`.`nickname`,`m`.`avatar`,`i`.`name`,`i`.`picture`,`i`.`mobile`,`i`.`company`,`i`.`title`,`i`.`industry`,`i`.`status` FROM ' . tablename($this->tablePrefix . 'groups') . ' `s` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `s`.`uid` = `m`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `s`.`card_id` = `i`.`id` WHERE `s`.`group_id` = :group_id AND `s`.`uniacid` = :uniacid ORDER BY `s`.`id` DESC LIMIT ' . $pageindex2 . ',' . $pagesize, array(":group_id" => $group_id, ":uniacid" => $_W['uniacid'])); goto Rn6Jv; CWBHc: if (!($group_id > 0)) { goto LVqH6; } goto YMCQh; n_xpZ: z3uxq: goto j1iIz; bfODK: include $this->template('group/group_card_list'); goto UlvPa; UlvPa: } public function doWebGroupType() { goto uLEuI; pWnHi: $list = pdo_getall($this->tablePrefix . 'grouptype', array("uniacid" => $_W['uniacid']), array("id", "name", "sort", "status"), '', array("id DESC"), array()); goto oK0HH; uLEuI: global $_GPC, $_W; goto pWnHi; oK0HH: include $this->template('group/group_type_list'); goto yr0bZ; yr0bZ: } public function doWebGroupTypeEdit() { goto aYBf_; EE91v: $data = pdo_fetch('SELECT  `id`, `name`,`status` FROM ' . tablename($this->tablePrefix . 'grouptype') . ' WHERE `id` = :id LIMIT 1', array(":id" => $id)); goto Mhnat; LRJVk: $id = intval($_GPC['id']); goto q6sX0; APY9X: include $this->template('group/group_type_info'); goto RXUzI; Mhnat: F7b2D: goto APY9X; aYBf_: global $_GPC, $_W; goto LRJVk; q6sX0: if (!($id > 0)) { goto F7b2D; } goto EE91v; RXUzI: } public function doWebGroupTypeSave() { goto TMj22; LsDEf: $this->json_return('', 0); goto tX3b4; WY2OI: $this->json_return('', 0); goto f2YYx; PvnPq: if ($id > 0) { goto b7203; } goto mjZ1m; vwSIf: $id = intval($_GPC['id']); goto MQsdu; HaECE: $condition['status'] = intval($_GPC['status']); goto PvnPq; IbOel: $condition['update_time'] = time(); goto AfjPC; TMj22: global $_GPC, $_W; goto vwSIf; gv6i5: if ($result != false) { goto OOErd; } goto LsDEf; NnH4s: $condition['name'] = trim($_GPC['name']); goto HaECE; mjZ1m: $condition['uniacid'] = $_W['uniacid']; goto owGbP; da7x6: OOErd: goto tSQh_; owGbP: $condition['create_time'] = time(); goto keGwx; MQsdu: if (!(trim($_GPC['name']) == '')) { goto VJ1Nr; } goto WY2OI; SaB7p: Kv9e8: goto nDaJp; f2YYx: VJ1Nr: goto NnH4s; PKeeQ: n1dhL: goto gv6i5; tSQh_: $this->json_return(''); goto SaB7p; VO50I: b7203: goto IbOel; kilF6: goto n1dhL; goto VO50I; keGwx: $result = pdo_insert($this->tablePrefix . 'grouptype', $condition); goto kilF6; tX3b4: goto Kv9e8; goto da7x6; AfjPC: $result = pdo_update($this->tablePrefix . 'grouptype', $condition, array("id" => $id)); goto PKeeQ; nDaJp: } public function doWebGroupTypeDel() { goto zovve; Yeiw1: xj6p3: goto QnE7B; Y0jyD: MD6iR: goto SiTEg; zovve: global $_GPC, $_W; goto YvPkP; f0TZh: if ($result != false) { goto xj6p3; } goto XiYce; YvPkP: $id = intval($_GPC['id']); goto VxemD; SiTEg: $result = pdo_delete($this->tablePrefix . 'grouptype', array("id" => $id)); goto f0TZh; B_zWL: hU1EK: goto lau4H; QnE7B: $this->json_return(''); goto B_zWL; VxemD: $type = pdo_fetch('SELECT `type_id` FROM ' . tablename($this->tablePrefix . 'group') . ' WHERE `type_id` = :id LIMIT 1', array(":id" => $id)); goto Uf607; oM96t: goto hU1EK; goto Yeiw1; XiYce: $this->json_return('', 0); goto oM96t; Uf607: if (!($type != false)) { goto MD6iR; } goto zG_yU; zG_yU: $this->json_return(',', 0); goto Y0jyD; lau4H: } public function doWebOrder() { goto N9mhW; SiouP: if (!$order_no) { goto lN6bc; } goto foUR9; dARuw: $pagesize = 5; goto lJgkl; xlEoh: $pageindex = 0; goto sfMPA; VBsld: $pager = pagination($total, $pageindex, $pagesize); goto z4z5g; RW0Op: if (!($order_status == 2)) { goto S4G3z; } goto N_Wxm; QSmB0: tWwni: goto RPA1f; PDQMY: $pageindex = $_GPC['page']; goto RQ9c9; s2KXx: $todayTime = $_GPC['todayTime']; goto B_cgA; JWb_w: if (!$nickname) { goto tWwni; } goto ABZtO; HCg1Z: foreach ($list as $k => $v) { goto i0maf; PTcrZ: tSP0z: goto Jf10_; i0maf: $list[$k]['pay_total'] = $v['fee'] + $v['deduction']; goto ObnNZ; FxtAe: e6rFy: goto PTcrZ; ObnNZ: if (!(strpos($list[$k]['pay_total'], '.') === false)) { goto e6rFy; } goto I3fWa; I3fWa: $list[$k]['pay_total'] = $list[$k]['pay_total'] . '.00'; goto FxtAe; Jf10_: } goto kcXpU; y6Y1G: XCq3s: goto RW0Op; KCqY7: b31CC: goto M3Hzj; jreS6: $order_type = trim($_GPC['order_type']); goto Qz_dN; CDIzU: $where .= ' and `o`.`create_time` > ' . $todayTime; goto fTXfs; EVo1R: $where .= ' and `o`.`status` = 1'; goto y6Y1G; Do1EH: $datemax = strtotime($_GPC['datemax']); goto UvlQY; HhZj4: S4G3z: goto HAbvB; M3Hzj: $where .= ' and `o`.`pay_method` = 0'; goto dNC2B; WgGft: $where = ' WHERE `o`.`uniacid` = ' . $_W['uniacid']; goto h2ZyO; xqWTK: goto iXXum; goto KCqY7; ABZtO: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto QSmB0; DGMc9: RTNUq: goto s2KXx; gFJQ6: $where .= ' and `o`.`pay_method` = 1'; goto uskOX; RbYmJ: lN6bc: goto jreS6; z4z5g: $list = pdo_fetchall('SELECT `m`.`nickname`,`m`.`avatar`,`o`.`id`,`o`.`order_no`,`o`.`uid`,`o`.`order_desc`,`o`.`deduction`,`o`.`fee`,`o`.`status`,`o`.`pay_time`,`o`.`pay_method`,`o`.`order_type`,`o`.`create_time` FROM ' . tablename($this->tablePrefix . 'orders') . ' `o` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `o`.`uid` =  `m`.`uid` ' . $where . ' ORDER BY `o`.`create_time` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto HCg1Z; i0OE6: aLJhp: goto xqWTK; oYNDb: $url = $this->createWebUrl('order'); goto WgGft; B_cgA: if (!$todayTime) { goto V97l2; } goto CDIzU; u8yzi: if ($pay_method !== false && $pay_method == 0) { goto aLJhp; } goto e0Zgm; HAbvB: $totalList = pdo_fetchall('SELECT `o`.`id` FROM ' . tablename($this->tablePrefix . 'orders') . ' `o` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `o`.`uid` =  `m`.`uid` ' . $where . ' ORDER BY `o`.`create_time` DESC'); goto MRlgO; KVAQr: $pay_method = intval($_GPC['pay_method']); goto u8yzi; lJgkl: if (!isset($_GPC['page'])) { goto Cui9H; } goto PDQMY; N_Wxm: $where .= ' and `o`.`status` = 0'; goto HhZj4; IijtJ: $order_status = trim($_GPC['order_status']); goto JEuLy; kcXpU: I_CRN: goto Zckla; x3_93: $where .= ' and `o`.`create_time` < ' . $datemax; goto LBvH1; JEuLy: if (!($order_status == 1)) { goto XCq3s; } goto EVo1R; dNC2B: goto iXXum; goto x0LFH; e0Zgm: if ($pay_method !== false && $pay_method == 1) { goto b31CC; } goto N2_u2; foUR9: $where .= ' and `o`.`order_no` = \'' . $order_no . '\''; goto RbYmJ; h2ZyO: $nickname = trim($_GPC['nickname']); goto JWb_w; N9mhW: global $_GPC, $_W; goto oYNDb; GIyYt: $where .= ' and `o`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto qCiQb; LBvH1: GkQbV: goto IijtJ; Hdk19: Cui9H: goto xlEoh; oP_KJ: $where .= ' and `o`.`create_time` > ' . $datemin; goto boT56; N2_u2: if ($pay_method !== false && $pay_method == 2) { goto T7mF6; } goto ojsDW; gf4XC: if (!($datemin && $datemax == false)) { goto o3fti; } goto oP_KJ; B6Y70: F1j_U: goto VBsld; RPA1f: $order_no = trim($_GPC['order_no']); goto SiouP; Qz_dN: if (!$order_type) { goto RTNUq; } goto JJ0OP; L8CCf: if (!($datemax && $datemin == false)) { goto GkQbV; } goto x3_93; boT56: o3fti: goto L8CCf; Zckla: include $this->template('order/order_list'); goto k_Rpg; x0LFH: T7mF6: goto gFJQ6; ojsDW: goto iXXum; goto i0OE6; MRlgO: $total = count($totalList); goto dARuw; UvlQY: if (!($datemin && $datemax)) { goto dlUqN; } goto GIyYt; fTXfs: V97l2: goto KVAQr; qCiQb: dlUqN: goto gf4XC; uskOX: iXXum: goto JYi4a; QAjww: goto F1j_U; goto Hdk19; RQ9c9: $pageindex2 = (intval($_GPC['page']) - 1) * 5; goto QAjww; JYi4a: $datemin = strtotime($_GPC['datemin']); goto Do1EH; JJ0OP: $where .= ' and `o`.`order_type` = \'' . $order_type . '\''; goto DGMc9; sfMPA: $pageindex2 = 0; goto B6Y70; k_Rpg: } public function doWebOrderDetail() { goto yZA6_; Cd7Wc: LJmOO: goto RxXIy; ZU5Kr: $data['pay_total'] = $data['fee'] + $data['deduction']; goto sEtMp; E8AEq: $data = pdo_fetch('SELECT `m`.`nickname`,`m`.`avatar`,`o`.`id`,`o`.`order_no`,`o`.`uid`,`o`.`order_desc`,`o`.`deduction`,`o`.`fee`,`o`.`status`,`o`.`pay_time`,`o`.`create_time`,`o`.`pay_method` FROM ' . tablename($this->tablePrefix . 'orders') . ' `o` LEFT JOIN  ' . tablename('mc_members') . ' `m` ON `m`.`uid` = `o`.`uid` WHERE `o`.`id` = :id LIMIT 1', array(":id" => $id)); goto A3vnx; yZA6_: global $_GPC, $_W; goto ZOLYC; sEtMp: YwfGf: goto Cd7Wc; RxXIy: include $this->template('order/order_detail'); goto s2KTo; bmNdf: if (!($id > 0)) { goto LJmOO; } goto E8AEq; A3vnx: if (!($data['pay_method'] == '0')) { goto YwfGf; } goto ZU5Kr; ZOLYC: $id = intval($_GPC['id']); goto bmNdf; s2KTo: } public function doWebCdkeyDel() { goto TDPGI; xPupV: $this->json_return('', 0); goto aqbZf; XSmmd: goto AmKVg; goto m3MjV; ZIqIX: $result = pdo_delete($this->tablePrefix . 'cdkey', array("id" => $id)); goto QOo7R; k1FX9: $id = intval($_GPC['id']); goto nZabV; odbWn: $this->json_return('', 0); goto XSmmd; QOo7R: if ($result != false) { goto k9xtR; } goto odbWn; m3MjV: k9xtR: goto l87Ks; aqbZf: PBb7B: goto ZIqIX; ota2T: AmKVg: goto Xpg8Q; nZabV: if (!($id < 1)) { goto PBb7B; } goto xPupV; l87Ks: $this->json_return(''); goto ota2T; TDPGI: global $_GPC, $_W; goto k1FX9; Xpg8Q: } public function doWebOrderDel() { goto voyhY; a5524: j9CGN: goto UAtG5; ZaXXZ: $result = pdo_delete($this->tablePrefix . 'orders', array("id" => $id)); goto sSzdX; jXJAB: $id = intval($_GPC['id']); goto Ui2cx; sSzdX: if ($result != false) { goto j9CGN; } goto WrRxH; d5mw2: QcHag: goto mfeQm; WrRxH: $this->json_return('', 0); goto qFyJZ; Ui2cx: if (!($id < 1)) { goto gFdO9; } goto mJpF_; UAtG5: $this->json_return(''); goto d5mw2; qFyJZ: goto QcHag; goto a5524; EwLBa: gFdO9: goto ZaXXZ; mJpF_: $this->json_return('', 0); goto EwLBa; voyhY: global $_GPC, $_W; goto jXJAB; mfeQm: } public function doWebSquare() { goto l7QjD; XBV5H: grjV9: goto BI3WO; mcq3L: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto yK6gT; rAJop: $where .= ' and `s`.`create_time` > ' . $datemin; goto WdOcA; PafZA: if (!($datemax && $datemin == false)) { goto DeBWo; } goto cL9AC; l7QjD: global $_GPC, $_W; goto kvFJ9; gLa3t: if (!($datemin && $datemax)) { goto wSv2s; } goto Gg6vJ; zOeO1: if (!$nickname) { goto MoGVD; } goto mcq3L; RC74N: apWBy: goto foMFQ; TAlWM: $pageindex = intval($_GPC['page']); goto Gc0ke; VYkvQ: $top = intval($_GPC['top']); goto eY42j; DM92T: $where .= ' and `s`.`top`= 1'; goto UhFvC; kElBq: if (!($datemin && $datemax == false)) { goto mv1Jq; } goto rAJop; bEhYe: wSv2s: goto kElBq; RdoJS: $where .= ' and `s`.`top`= 0'; goto XBV5H; wqW5O: $where .= ' and `i`.`name` LIKE \'%' . $name . '%\''; goto RC74N; foMFQ: $type_id = intval($_GPC['type_id']); goto TrcSZ; SYme1: if (!isset($_GPC['page'])) { goto keS_j; } goto TAlWM; BI3WO: $datemin = strtotime($_GPC['datemin']); goto v4LLp; bsmE1: $typeList = pdo_getall($this->tablePrefix . 'squaretype', array("uniacid" => $_W['uniacid'], "status" => 1)); goto lYG86; rKuG0: if (!($top == 2)) { goto grjV9; } goto RdoJS; y0xcu: $pagesize = 5; goto SYme1; TrcSZ: if (!($type_id != false)) { goto s3Fr0; } goto H99lS; eY42j: if (!($top == 1)) { goto nhEWT; } goto DM92T; YJ_Ku: $list = pdo_fetchall('SELECT `s`.`id`,`s`.`uid`,`s`.`card_id`,`s`.`label`,`s`.`content`,`s`.`pics`,`s`.`top`,`s`.`views`,`s`.`likes`,`s`.`comments`,`s`.`status`,`s`.`create_time`,`s`.`recommend`,`m`.`nickname`,`m`.`avatar`,`i`.`name`, `t`.`type` FROM ' . tablename($this->tablePrefix . 'square') . ' `s` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `s`.`uid`=`m`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `s`.`card_id`=`i`.`id` LEFT JOIN ' . tablename($this->tablePrefix . 'squaretype') . ' `t` ON `s`.`type_id`=`t`.`id` ' . $where . ' ORDER BY `s`.`id` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto I2O_Q; I2O_Q: if (!(count($list) > 0)) { goto q4TCb; } goto Wb5Za; HpSmF: $totalList = pdo_fetchall('SELECT `s`.`id` FROM ' . tablename($this->tablePrefix . 'square') . ' `s` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `s`.`uid`=`m`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `s`.`card_id`=`i`.`id` LEFT JOIN ' . tablename($this->tablePrefix . 'squaretype') . ' `t` ON `s`.`type_id`=`t`.`id`' . $where . ' ORDER BY `s`.`id` DESC'); goto JgLgV; u0STt: if (!$name) { goto apWBy; } goto wqW5O; kvFJ9: $url = $this->createWebUrl('square'); goto DVFXo; lYG86: include $this->template('square/square_list'); goto YyM8b; P9P57: goto l7hQI; goto Ziuns; MxgAz: $pageindex2 = 0; goto IUcIh; KdBbo: dXVIt: goto LgSCW; Hrv35: $pager = pagination($total, $pageindex, $pagesize); goto YJ_Ku; H99lS: $where .= ' and `s`.`type_id`=' . $type_id; goto kppij; nzqIK: DeBWo: goto HpSmF; EQwcM: if (!($u_type == 2)) { goto OmGvB; } goto VjXky; xQ2fP: OmGvB: goto VYkvQ; i1_5X: $name = trim($_GPC['name']); goto u0STt; IUcIh: l7hQI: goto Hrv35; UhFvC: nhEWT: goto rKuG0; LgSCW: q4TCb: goto bsmE1; Gg6vJ: $where .= ' and `s`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto bEhYe; Wb5Za: foreach ($list as &$v) { goto B_sTx; PlYH3: $v['pics'] = json_decode($v['pics'], true); goto RGCpc; nPQhl: DNC_M: goto uQLW3; RGCpc: if (!($v['label'] != '')) { goto DNC_M; } goto sNo_C; B_sTx: $v['content1'] = mb_substr($v['content'], 0, 45, 'utf-8'); goto qnp6b; uQLW3: BajNi: goto EMI4N; sNo_C: $v['label'] = '#' . implode('#,#', explode(',', $v['label'])) . '#'; goto nPQhl; qnp6b: $v['content2'] = mb_substr($v['content'], 46, 500, 'utf-8'); goto PlYH3; EMI4N: } goto KdBbo; Gc0ke: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto P9P57; yK6gT: MoGVD: goto i1_5X; JgLgV: $total = count($totalList); goto y0xcu; kppij: s3Fr0: goto VnR5r; tb7tP: $where .= ' and `i`.`uid` <> 0'; goto oC8VS; oC8VS: EioMR: goto EQwcM; dNw9W: $nickname = trim($_GPC['nickname']); goto zOeO1; WdOcA: mv1Jq: goto PafZA; VnR5r: $u_type = trim($_GPC['u_type']); goto vqaQF; Ziuns: keS_j: goto EPvGF; cL9AC: $where .= ' and `s`.`create_time` < ' . $datemax; goto nzqIK; EPvGF: $pageindex = 0; goto MxgAz; VjXky: $where .= ' and `i`.`uid` = 0'; goto xQ2fP; vqaQF: if (!($u_type == 1)) { goto EioMR; } goto tb7tP; v4LLp: $datemax = strtotime($_GPC['datemax']); goto gLa3t; DVFXo: $where = ' WHERE `s`.`uniacid` = ' . $_W['uniacid'] . ' and `s`.`status` < 3'; goto dNw9W; YyM8b: } public function doWebSquareEdit() { goto QF77P; bzzbI: exit; goto uEnGz; C4eRg: if (!(isset($_GPC['type']) && intval($_GPC['type']) == 2)) { goto MCV20; } goto UDwqa; iR_6O: $id = intval($_GPC['id']); goto sYquN; rChX5: uIlse: goto auChu; uEnGz: MCV20: goto Mmvcy; mwkMZ: $typeList = pdo_getall($this->tablePrefix . 'squaretype', array("uniacid" => $_W['uniacid']), array("id", "type"), '', array("sort desc")); goto C4eRg; OAYoS: $data['pics'] = json_decode($data['pics'], true); goto QYhIg; QF77P: global $_GPC, $_W; goto iR_6O; QYhIg: if (!($data['label'] != '')) { goto uIlse; } goto Njg2i; Mmvcy: include $this->template('square/square_info'); goto U9iGx; sYquN: if (!($id > 0)) { goto MOn9k; } goto dm1jW; Njg2i: $data['label'] = '#' . implode('#,#', explode(',', $data['label'])) . '#'; goto rChX5; Gw2r0: $cardList = pdo_getAll($this->tablePrefix . 'item', array("uniacid" => $_W['uniacid'], "uid" => 0), array("id", "name"), '', array("create_time DESC")); goto mwkMZ; dm1jW: $data = pdo_fetch('SELECT `s`.`id`,`s`.`uid`,`s`.`card_id`,`s`.`type_id`,`s`.`label`,`s`.`content`,`s`.`pics`,`s`.`address`,`s`.`latitude`,`s`.`longitude`,`s`.`views`,`s`.`likes`,`s`.`comments`,`s`.`status`,`s`.`create_time`,`m`.`nickname`,`m`.`avatar`,`i`.`name`,`t`.`type` FROM ' . tablename($this->tablePrefix . 'square') . ' `s` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `s`.`uid`=`m`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `s`.`card_id`=`i`.`id` LEFT JOIN ' . tablename($this->tablePrefix . 'squaretype') . ' `t` ON `t`.`id`=`s`.`type_id` WHERE `s`.`id`=:id', array(":id" => $id)); goto OAYoS; UDwqa: include $this->template('examin_square/examine_square_info'); goto bzzbI; auChu: MOn9k: goto Gw2r0; U9iGx: } public function doWebSquareSave() { goto ks18r; B87t8: fkn0D: goto EN5_y; BPFIp: $condition['latitude'] = $_GPC['latitude']; goto klCdZ; ozlv9: $condition['latitude'] = $re['lat']; goto w7wRP; yQHiC: JFU5b: goto vFF4v; gDbnh: IpD0F: goto CfEqs; n3ed7: $condition['label'] = $_GPC['label']; goto fNCh7; j8edL: Lwh1G: goto hKCHO; Ele6Z: Yu7Rb: goto PrlFc; ZxcCF: ypNSt: goto PjMFc; GIQSJ: $result = pdo_insert($this->tablePrefix . 'square', $condition); goto ygQqF; EwC_r: if (!(intval($_GPC['card_id']) < 1)) { goto xvZiI; } goto nR6HU; sAqpX: $this->json_return('', 0); goto yQKrQ; mxkm9: goto Lwh1G; goto VCRZ8; LI6EH: $re = getLatLng($addr, $tencent_map_key); goto J4cMj; PrlFc: if (!($uid > 0)) { goto kwNRI; } goto k36PX; JC5NX: $this->json_return('9', 0); goto B87t8; NoOBg: if (!(count($_GPC['pics']) > 9)) { goto fkn0D; } goto JC5NX; BLESt: $condition['content'] = $_GPC['content']; goto IAGnN; c2bMr: $condition['type_id'] = intval($_GPC['type_id']); goto kGOBK; eiQVc: $condition['uniacid'] = $_W['uniacid']; goto m9IIr; ngdGF: goto G81za; goto zmBFY; s0Zlv: $result = pdo_update($this->tablePrefix . 'square', $condition, array("id" => $id)); goto gDbnh; vFF4v: wKE_8: goto n3ed7; yQKrQ: cFVYj: goto c2bMr; uAyet: if (!(intval($_GPC['type_id']) < 1)) { goto cFVYj; } goto sAqpX; AXToT: xvZiI: goto um8j6; zmBFY: ooy8u: goto LJws2; JtYPK: $tencent_map_key = getAppConfSd('tencent_map_key'); goto lJkr7; lJkr7: if (!($tencent_map_key != '')) { goto q0Qxp; } goto LI6EH; eIWiH: if (!($_GPC['latitude'] == '' || $_GPC['longitude'] == '')) { goto wKE_8; } goto UcsZ7; DOMWf: if (!($uid < 1)) { goto JZdpg; } goto EwC_r; EqWyB: $uid = intval($_GPC['uid']); goto NoOBg; k36PX: $condition['uid'] = $uid; goto S6Fcq; fNCh7: $condition['status'] = intval($_GPC['status']); goto DwuaT; UcsZ7: if (!($_GPC['address'] != '')) { goto JFU5b; } goto zICPq; klCdZ: $condition['longitude'] = $_GPC['longitude']; goto eIWiH; ks18r: global $_GPC, $_W; goto RTR8q; PjMFc: q0Qxp: goto yQHiC; kGOBK: if (!(mb_strlen($_GPC['content'], 'utf-8') > 500 || mb_strlen($_GPC['content'], 'utf-8') < 20)) { goto XLMT7; } goto JkvV3; Ia4Kz: $condition['update_time'] = time(); goto s0Zlv; nR6HU: $this->json_return('', 0); goto AXToT; m9IIr: $condition['create_time'] = time(); goto GIQSJ; CfEqs: if ($result != false) { goto AXiL6; } goto gF8UE; gF8UE: $this->json_return('', 0); goto mxkm9; JkvV3: $this->json_return('20-500', 0); goto e2uLL; S6Fcq: kwNRI: goto Ia4Kz; UqfPW: G81za: goto DOMWf; zICPq: $addr = trim($_GPC['address']); goto JtYPK; VCRZ8: AXiL6: goto KDgnj; qNiHs: $condition['pics'] = ''; goto ngdGF; QMZ2s: JZdpg: goto uAyet; EN5_y: if (count($_GPC['pics']) > 0) { goto ooy8u; } goto qNiHs; LJws2: $condition['pics'] = json_encode($_GPC['pics']); goto UqfPW; RTR8q: $id = intval($_GPC['id']); goto EqWyB; DwuaT: if ($id > 0) { goto Yu7Rb; } goto eiQVc; w7wRP: $condition['longitude'] = $re['lng']; goto ZxcCF; e2uLL: XLMT7: goto BLESt; IAGnN: $condition['address'] = $_GPC['address']; goto BPFIp; KDgnj: $this->json_return('', 1); goto j8edL; um8j6: $condition['card_id'] = intval($_GPC['card_id']); goto QMZ2s; J4cMj: if (!($re != false)) { goto ypNSt; } goto ozlv9; ygQqF: goto IpD0F; goto Ele6Z; hKCHO: } public function doWebSquareDel() { goto ujOqs; qa3IA: $this->json_return('', 0); goto OMN1C; WsAWa: if ($result != false) { goto TYvq3; } goto qa3IA; xcE9M: $result = pdo_delete($this->tablePrefix . 'square', array("id" => $id)); goto cnb0f; cnb0f: pdo_delete($this->tablePrefix . 'squarelikes', array("sid in" => $id)); goto C1EQm; NRcO2: pdo_delete($this->tablePrefix . 'squareviews', array("sid in" => $id)); goto WsAWa; ujOqs: global $_GPC, $_W; goto J_XWr; C1EQm: pdo_delete($this->tablePrefix . 'squarecomments', array("sid in" => $id)); goto NRcO2; BSpFO: AQrVp: goto W91nx; wGxbf: $this->json_return('', 1); goto BSpFO; OMN1C: goto AQrVp; goto Rs969; Rs969: TYvq3: goto wGxbf; J_XWr: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto xcE9M; W91nx: } public function doWebAjaxGetLabel() { goto QMLbm; QMLbm: global $_GPC, $_W; goto AaHz3; Up6hu: $this->json_return('', 1, $labelList); goto nSkJ7; z0Hv6: $labelList = pdo_getall($this->tablePrefix . 'squarelabel', array("uniacid" => $_W['uniacid'], "type_id" => $type_id), array("id", "label"), '', array("sort desc")); goto rLmxK; nSkJ7: IOQgc: goto cO3O5; AaHz3: $type_id = intval($_GPC['type_id']); goto z0Hv6; rLmxK: if (count($labelList) > 0) { goto Dxm3t; } goto r1CfZ; q9Rej: Dxm3t: goto Up6hu; r1CfZ: $this->json_return('', 0); goto nTaXK; nTaXK: goto IOQgc; goto q9Rej; cO3O5: } public function doWebSquareStatus() { goto kc7C_; L1FTM: $type = intval($_GPC['type']); goto xmzSS; r_IQY: $status = intval($_GPC['status']); goto L1FTM; xmzSS: if (!($id < 1 || $type < 1)) { goto JnWJe; } goto nBm27; ul8nH: P92E7: goto KlBL8; hsVlR: $result = pdo_update($this->tablePrefix . 'square', array("top" => $status), array("id" => $id)); goto xI40E; iDhX_: goto ylA19; goto K1qye; Ve2lH: ylA19: goto NxocD; W0Wqk: $this->json_return(''); goto Ve2lH; B4345: if ($type == 1) { goto P92E7; } goto qZL2X; TpPXa: GQMge: goto yMPHP; qZL2X: if ($type == 2) { goto i4WeX; } goto MAFs6; ouCk2: $id = intval($_GPC['id']); goto r_IQY; acZ1N: goto rjwnt; goto oI9V6; PH6e0: $this->json_return('', 0); goto iDhX_; xI40E: WhKRf: goto acZ1N; kc7C_: global $_GPC, $_W; goto ouCk2; IWvYi: $result = pdo_update($this->tablePrefix . 'square', array("recommend" => $status), array("id" => $id)); goto S5la1; S5la1: rjwnt: goto SGrOq; SGrOq: goto GQMge; goto ul8nH; oI9V6: i4WeX: goto IWvYi; KlBL8: $result = pdo_update($this->tablePrefix . 'square', array("status" => $status), array("id" => $id)); goto TpPXa; MAFs6: if (!($type == 3)) { goto WhKRf; } goto hsVlR; dM1oe: JnWJe: goto B4345; yMPHP: if ($result != false) { goto itHYi; } goto PH6e0; nBm27: $this->json_return('', 0); goto dM1oe; K1qye: itHYi: goto W0Wqk; NxocD: } public function doWebSquareType() { goto BEfk5; xiRVn: $list = pdo_getall($this->tablePrefix . 'squaretype', array("uniacid" => $_W['uniacid']), array(), '', array("sort desc")); goto m09zk; BEfk5: global $_GPC, $_W; goto xiRVn; m09zk: include $this->template('square_type/square_type_list'); goto ZTHPr; ZTHPr: } public function doWebSquareTypeEdit() { goto u1FIv; jgEMF: include $this->template('square_type/square_type_info'); goto uso3f; xIJx8: if (!($id > 0)) { goto QCHSu; } goto ch8gI; u1FIv: global $_GPC, $_W; goto lm2ur; lm2ur: $id = intval($_GPC['id']); goto xIJx8; jkDQW: QCHSu: goto jgEMF; ch8gI: $data = pdo_fetch('SELECT `id`,`type`,`icon`,`sort`,`status` FROM ' . tablename($this->tablePrefix . 'squaretype') . ' WHERE `id`=:id and `uniacid`=:uniacid LIMIT 1', array(":id" => $id, ":uniacid" => $_W['uniacid'])); goto jkDQW; uso3f: } public function doWebSquareTypeSave() { goto zRaNF; KQulD: $this->json_return('', 0); goto OKex4; sVkA5: $id = intval($_GPC['id']); goto g6ilK; Nt4Ba: $this->json_return(''); goto EPGx_; dEC5e: if ($id > 0) { goto k2e0V; } goto gEEx0; sVbix: $condition['create_time'] = time(); goto pP2wT; P7Gtx: k2e0V: goto bw1qz; g6ilK: if (!(trim($_GPC['type']) == '')) { goto QcZBJ; } goto ABBvz; fo7GF: $this->json_return('', 0); goto p808B; gEEx0: $condition['uniacid'] = $_W['uniacid']; goto sVbix; zRaNF: global $_GPC, $_W; goto sVkA5; OKex4: TbXz1: goto vI3jv; hdjSu: $result = pdo_update($this->tablePrefix . 'squaretype', $condition, array("id" => $id, "uniacid" => $_W['uniacid'])); goto blxYW; EPGx_: sdg2d: goto Inr8A; pP2wT: $result = pdo_insert($this->tablePrefix . 'squaretype', $condition); goto K3SHu; K3SHu: goto Ltufc; goto P7Gtx; jPE1F: $condition['status'] = intval($_GPC['status']); goto dEC5e; vI3jv: $condition['icon'] = trim($_GPC['icon']); goto AA92m; b9ieb: if (!(trim($_GPC['icon']) == '')) { goto TbXz1; } goto KQulD; rZpG9: $condition['type'] = trim($_GPC['type']); goto b9ieb; bw1qz: $condition['update_time'] = time(); goto hdjSu; VMek6: QmWZV: goto Nt4Ba; p808B: goto sdg2d; goto VMek6; rFUdN: if ($result != false) { goto QmWZV; } goto fo7GF; lkwwu: QcZBJ: goto rZpG9; blxYW: Ltufc: goto rFUdN; AA92m: $condition['sort'] = intval($_GPC['sort']); goto jPE1F; ABBvz: $this->json_return('', 0); goto lkwwu; Inr8A: } public function doWebSquareTypeDel() { goto vYMAS; xtQsi: TQoT5: goto gCl8z; sl_b_: $this->json_return(',', 0); goto gARLH; Wb5Ir: if ($result != false) { goto TQoT5; } goto DCgja; sPMmZ: $result = pdo_delete($this->tablePrefix . 'squaretype', array("id" => $id, "uniacid" => $_W['uniacid'])); goto Wb5Ir; gCl8z: $this->json_return(''); goto zJkIR; zJkIR: Z0h2T: goto EUwrW; gARLH: hnKgy: goto rmBn5; DCgja: $this->json_return('', 0); goto KJxtt; vYMAS: global $_GPC, $_W; goto Ijom3; Ijom3: $id = intval($_GPC['id']); goto IsI36; IsI36: $squareCount = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename($this->tablePrefix . 'square') . ' where `type_id`=:type_id and `uniacid`=:uniacid', array(":type_id" => $id, ":uniacid" => $_W['uniacid'])); goto wu14i; EUwrW: goto hnKgy; goto NWTmQ; NWTmQ: vXiGR: goto sl_b_; KJxtt: goto Z0h2T; goto xtQsi; wu14i: if ($squareCount != '0') { goto vXiGR; } goto sPMmZ; rmBn5: } public function doWebSquareLabel() { goto PuvFq; mvXGo: yj32C: goto bXLg9; PuvFq: global $_GPC, $_W; goto BIlMD; eeAx7: if (!($type_id > 0)) { goto yj32C; } goto cjLuT; cjLuT: $list = pdo_fetchall('SELECT `l`.`id`,`l`.`type_id`,`l`.`label`,`l`.`sort`,`l`.`status`,`l`.`create_time`,`t`.`type` FROM ' . tablename($this->tablePrefix . 'squarelabel') . ' `l` LEFT JOIN ' . tablename($this->tablePrefix . 'squaretype') . ' `t` ON `l`.`type_id`=`t`.`id` WHERE `l`.`uniacid`=' . $_W['uniacid'] . ' and `l`.`type_id`=:type_id ORDER BY `l`.`sort` DESC', array(":type_id" => $type_id)); goto mvXGo; bXLg9: include $this->template('square_label/label_list'); goto sQK9J; BIlMD: $type_id = intval($_GPC['type_id']); goto eeAx7; sQK9J: } public function doWebSquareLabelEdit() { goto l1FKw; rsH5G: $typeData = pdo_getall($this->tablePrefix . 'squaretype', array("uniacid" => $_W['uniacid']), array(), '', array("sort desc")); goto ZI6Q_; Vm7T1: KKEaZ: goto HPjoD; SpL40: $data = pdo_fetch('SELECT `id`,`type_id`,`label`,`sort`,`status` FROM ' . tablename($this->tablePrefix . 'squarelabel') . ' WHERE `id`=:id and `uniacid`=:uniacid', array(":id" => $id, ":uniacid" => $_W['uniacid'])); goto Vm7T1; v7YLa: $id = intval($_GPC['id']); goto rsH5G; ZI6Q_: if (!($id > 0)) { goto KKEaZ; } goto SpL40; HPjoD: include $this->template('square_label/label_info'); goto GIDHt; l1FKw: global $_GPC, $_W; goto v7YLa; GIDHt: } public function doWebSquareLabelSave() { goto g1gXC; lfVm7: if (!(intval($_GPC['type_id']) == false)) { goto xld0J; } goto E_YZs; Vl88Z: goto P8Rao; goto y6Ix2; v4DcR: if ($result != false) { goto Y6mSU; } goto lGc3s; dWTNs: $condition['type_id'] = intval($_GPC['type_id']); goto APZTs; nMU6r: if (!(trim($_GPC['label']) == '')) { goto Hwx3u; } goto O2YbW; ctK2S: $condition['uniacid'] = $_W['uniacid']; goto r5dTE; ZZ2eu: Y6mSU: goto cyiwf; lGc3s: $this->json_return('', 0); goto PyGHE; y6Ix2: ZWCYa: goto JNWUY; mHAx8: if ($id > 0) { goto ZWCYa; } goto ctK2S; JNWUY: $condition['update_time'] = time(); goto EwHsb; GuTbl: HvzeR: goto K69OO; r5dTE: $condition['create_time'] = time(); goto J2Vm7; uca3m: $condition['label'] = trim($_GPC['label']); goto lfVm7; bI43N: P8Rao: goto v4DcR; OCsPm: $id = intval($_GPC['id']); goto nMU6r; J2Vm7: $result = pdo_insert($this->tablePrefix . 'squarelabel', $condition); goto Vl88Z; cyiwf: $this->json_return(''); goto GuTbl; Rd5qj: Hwx3u: goto uca3m; EwHsb: $result = pdo_update($this->tablePrefix . 'squarelabel', $condition, array("id" => $id, "uniacid" => $_W['uniacid'])); goto bI43N; E_YZs: $this->json_return('', 0); goto CUlja; PyGHE: goto HvzeR; goto ZZ2eu; APZTs: $condition['sort'] = intval($_GPC['sort']); goto oV125; CUlja: xld0J: goto dWTNs; oV125: $condition['status'] = intval($_GPC['status']); goto mHAx8; g1gXC: global $_GPC, $_W; goto OCsPm; O2YbW: $this->json_return('', 0); goto Rd5qj; K69OO: } public function doWebSquareLabelDel() { goto DXbpw; DXbpw: global $_GPC, $_W; goto X387Z; cFGzc: $result = pdo_delete($this->tablePrefix . 'squarelabel', array("id" => $id, "uniacid" => $_W['uniacid'])); goto avxyE; RmYZX: kcttn: goto UzRA5; UzRA5: $this->json_return(''); goto jyrwd; avxyE: if ($result != false) { goto kcttn; } goto ZwODC; X387Z: $id = intval($_GPC['id']); goto cFGzc; ZwODC: $this->json_return('', 0); goto oSDa6; jyrwd: U7g8h: goto RhD7w; oSDa6: goto U7g8h; goto RmYZX; RhD7w: } public function doWebExamineSquare() { goto W9bio; i7jXR: $pageindex = 0; goto hRDSE; EY_0h: BbMyS: goto pehgz; kv2fd: $pagesize = 5; goto nSSoQ; JXgEB: $allList = pdo_fetchall('SELECT `s`.`id` FROM ' . tablename($this->tablePrefix . 'square') . ' `s` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `s`.`uid`=`m`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `s`.`card_id`=`i`.`id` LEFT JOIN ' . tablename($this->tablePrefix . 'squaretype') . ' `t` ON `s`.`type_id`=`t`.`id`' . $where . ' ORDER BY `s`.`id` DESC'); goto CkEd_; WcAgh: $pager = pagination($count, $pageindex, $pagesize); goto m0UP5; pehgz: N64SE: goto clsgS; V6nsp: RtbtD: goto WcAgh; kXM7P: if (!(count($list) > 0)) { goto N64SE; } goto fmsQ6; qwwDj: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto n_FK9; Echvm: zNogU: goto i7jXR; nSSoQ: if (!isset($_GPC['page'])) { goto zNogU; } goto GfWZD; TRtK1: include $this->template('examin_square/examine_square_list'); goto GJ9qH; hRDSE: $pageindex2 = 0; goto V6nsp; CkEd_: $count = count($allList); goto kv2fd; f8doY: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto FZymz; GfWZD: $pageindex = intval($_GPC['page']); goto qwwDj; zZQoV: $nickname = trim($_GPC['nickname']); goto X9ha1; FZymz: aHOYf: goto JXgEB; N7CYv: $where = ' WHERE `s`.`uniacid`=' . $_W['uniacid'] . '  and `s`.`status`=3'; goto zZQoV; m0UP5: $list = pdo_fetchall('SELECT `s`.`id`,`s`.`uid`,`s`.`card_id`,`s`.`label`,`s`.`content`,`s`.`pics`,`s`.`top`,`s`.`views`,`s`.`status`,`s`.`create_time`,`m`.`nickname`,`m`.`avatar`,`i`.`name`, `t`.`type` FROM ' . tablename($this->tablePrefix . 'square') . ' `s` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `s`.`uid`=`m`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `s`.`card_id`=`i`.`id` LEFT JOIN ' . tablename($this->tablePrefix . 'squaretype') . ' `t` ON `s`.`type_id`=`t`.`id` ' . $where . ' ORDER BY `s`.`id` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto kXM7P; n_FK9: goto RtbtD; goto Echvm; X9ha1: if (!$nickname) { goto aHOYf; } goto f8doY; ucLp2: $url = $this->createWebUrl('examineSquare'); goto N7CYv; fmsQ6: foreach ($list as &$v) { goto fuQc2; zx1E9: Ddrx2: goto Hw5YI; uzitJ: $v['pics'] = json_decode($v['pics'], true); goto VdVrV; GOUj2: Gd8n2: goto zx1E9; fuQc2: $v['content1'] = mb_substr($v['content'], 0, 45, 'utf-8'); goto DvuKp; DvuKp: $v['content2'] = mb_substr($v['content'], 46, 500, 'utf-8'); goto uzitJ; VdVrV: if (!($v['label'] != '')) { goto Gd8n2; } goto PLwMg; PLwMg: $v['label'] = '#' . implode('#,#', explode(',', $v['label'])) . '#'; goto GOUj2; Hw5YI: } goto EY_0h; clsgS: $typeList = pdo_getall($this->tablePrefix . 'squaretype', array("uniacid" => $_W['uniacid'], "status" => 1)); goto TRtK1; W9bio: global $_GPC, $_W; goto ucLp2; GJ9qH: } public function doWebExamineSquareStatus() { goto MXk43; wwvxy: $data = array("first" => array("value" => ""), "keyword1" => array("value" => getAppConfSd('app_name')), "keyword2" => array("value" => str_cut('' . $square['content'], 50) . '-[]'), "remark" => array("value" => date('Y-m-d H:i'))); goto zM7uG; stFRl: goto Yr3lS; goto g1y2i; rcWyT: fL7Cq: goto UOd4L; kmtg9: Heh9L: goto pQ0w7; LeQ0q: $page = 'super_card/pages/index/index'; goto iLCdj; KOfss: pdo_query('UPDATE ' . tablename($this->tablePrefix . 'usersub') . ' SET `audit_msg_sub` = `audit_msg_sub` - 1 WHERE uid = :uid', array(":uid" => $square['uid'])); goto PP222; mNAgD: $data = array("thing5" => array("value" => str_cut('' . $square['content'], 50)), "phrase1" => array("value" => ""), "date4" => array("value" => date('Y/m/d H:i'))); goto N0YLy; JLyXn: if (!($sub_count > 0)) { goto Cq5Hc; } goto oq56_; s0Y8N: goto oFCUz; goto rcWyT; GmVnT: if ($result != false) { goto Heh9L; } goto Y5pVP; l8xer: pdo_delete($this->tablePrefix . 'squarelikes', array("sid" => $id, "uniacid" => $_W['uniacid'])); goto ydsx8; ZItAn: $this->json_return(''); goto l6uEA; DjpVf: $square = pdo_fetch('SELECT `uid`,`card_id`,`content` FROM ' . tablename($this->tablePrefix . 'square') . ' WHERE `id`=:id', array(":id" => $id)); goto NW9Ii; N0YLy: $re = $this->sendSubMsg($touser, $temp_id, $page, $data); goto KOfss; ms9Gs: $re_account_msg = $this->sendAccountMsg($touser, $page, $data, '', $square['uid']); goto Nd5NQ; Ol6ct: if (!($square['uid'] > 0)) { goto oarih; } goto riOHM; SUXhT: goto rrMdY; goto kmtg9; NW9Ii: if ($status == 1) { goto fL7Cq; } goto hIWb3; OeX3C: $sub_count = $temp['audit_msg_sub']; goto JLyXn; MXk43: global $_GPC, $_W; goto bjm9u; MeGYb: KWWin: goto ZItAn; zxjyL: oFCUz: goto NM9Xr; DvCAU: pdo_delete($this->tablePrefix . 'squareviews', array("sid" => $id, "uniacid" => $_W['uniacid'])); goto GmVnT; g1y2i: vRGrR: goto Ol6ct; cJcQ0: $temp_id = getAppConfSd('audit_results_tempid'); goto saq30; e1a5m: Yr3lS: goto zxjyL; CWF9A: $touser = $this->getFansInfoByUid($square['uid'], 'openid'); goto FuFMH; IOsWi: if ($result != false) { goto vRGrR; } goto XE9l9; XIpba: oarih: goto CWF9A; hIWb3: $result = pdo_delete($this->tablePrefix . 'square', array("id" => $id, "uniacid" => $_W['uniacid'])); goto l8xer; tqWYo: if (!(!$re_account_msg && $temp_id)) { goto gGxC_; } goto WFJID; bjm9u: $id = intval($_GPC['id']); goto QJA3S; vvTBR: gGxC_: goto MeGYb; hy5uU: pdo_query('UPDATE ' . tablename($this->tablePrefix . 'usersub') . ' SET `audit_msg_sub` = `audit_msg_sub` - 1 WHERE uid = :uid', array(":uid" => $square['uid'])); goto QgTkJ; Nd5NQ: gEkU3: goto FePta; TDhiB: if (!(getAppConfSd('account_msg_switch') == 1)) { goto giXno; } goto wwvxy; UOd4L: $result = pdo_update($this->tablePrefix . 'square', array("status" => $status), array("id" => $id, "uniacid" => $_W['uniacid'])); goto IOsWi; iLCdj: if (!(getAppConfSd('account_msg_switch') == 1)) { goto gEkU3; } goto TKzGI; XE9l9: $this->json_return('', 0); goto stFRl; CtOKH: $touser = $this->getFansInfoByUid($square['uid'], 'openid'); goto LeQ0q; riOHM: insertNotice($square['uid'], $square['card_id'], '', 1); goto XIpba; dnlY7: $sub_count = $temp['audit_msg_sub']; goto C0YIb; nnqLD: $this->json_return('', 0); goto aIpjC; OLOCa: $this->json_return(''); goto e1a5m; zM7uG: $re_account_msg = $this->sendAccountMsg($touser, $page, $data, '', $square['uid']); goto GFh3T; WFJID: $temp = pdo_fetch('SELECT `audit_msg_sub` FROM ' . tablename($this->tablePrefix . 'usersub') . ' WHERE uid = :uid LIMIT 1', array(":uid" => $square['uid'])); goto OeX3C; BnwAH: $re = $this->sendSubMsg($touser, $temp_id, $page, $data); goto hy5uU; ydsx8: pdo_delete($this->tablePrefix . 'squarecomments', array("sid" => $id, "uniacid" => $_W['uniacid'])); goto DvCAU; GFh3T: giXno: goto cJcQ0; pQ0w7: if (!($square['uid'] > 0)) { goto KWWin; } goto CtOKH; l6uEA: rrMdY: goto s0Y8N; QJA3S: $status = intval($_GPC['status']); goto s22Cz; oq56_: $data = array("thing5" => array("value" => str_cut('' . $square['content'], 50)), "phrase1" => array("value" => ""), "date4" => array("value" => date('Y/m/d H:i'))); goto BnwAH; QgTkJ: pdo_insert($this->tablePrefix . 'msglog', array("uniacid" => $_W['uniacid'], "uid" => $square['uid'], "msg" => "", "r_content" => $re['content'], "create_time" => time())); goto zHcjb; PP222: pdo_insert($this->tablePrefix . 'msglog', array("uniacid" => $_W['uniacid'], "uid" => $square['uid'], "msg" => "", "r_content" => $re['content'], "create_time" => time())); goto CTex3; VSnd0: vf_vC: goto CTJdf; C0YIb: if (!($sub_count > 0)) { goto vf_vC; } goto mNAgD; zHcjb: Cq5Hc: goto vvTBR; EuiM9: $temp = pdo_fetch('SELECT `audit_msg_sub` FROM ' . tablename($this->tablePrefix . 'usersub') . ' WHERE uid = :uid LIMIT 1', array(":uid" => $square['uid'])); goto dnlY7; FePta: $temp_id = getAppConfSd('audit_results_tempid'); goto tqWYo; TKzGI: $data = array("first" => array("value" => ""), "keyword1" => array("value" => getAppConfSd('app_name')), "keyword2" => array("value" => str_cut('' . $square['content'], 50) . '-[]'), "remark" => array("value" => date('Y-m-d H:i'))); goto ms9Gs; CTJdf: AwPao: goto OLOCa; saq30: if (!(!$re_account_msg && $temp_id)) { goto AwPao; } goto EuiM9; s22Cz: if (!($id < 1)) { goto b8EAL; } goto nnqLD; FuFMH: $page = 'super_card/pages/index/index'; goto TDhiB; CTex3: $re = json_decode($re['content'], true); goto VSnd0; Y5pVP: $this->json_return('', 0); goto SUXhT; aIpjC: b8EAL: goto DjpVf; NM9Xr: } public function doWebSquareBanner() { goto idle3; d0KFY: $count = count($list); goto lZNXw; idle3: global $_GPC, $_W; goto Ajmbj; lZNXw: include $this->template('square_banner/square_banner_list'); goto xh1d9; Ajmbj: $list = pdo_getall($this->tablePrefix . 'squarebanner', array("uniacid" => $_W['uniacid']), array(), '', array("id DESC")); goto d0KFY; xh1d9: } public function doWebSquareBannerEdit() { goto xSkEh; NbBFM: $id = intval($_GPC['id']); goto GIxRk; YfExk: include $this->template('square_banner/square_banner_info'); goto gFGB8; xSkEh: global $_GPC, $_W; goto NbBFM; uAsAa: $data = pdo_fetch('SELECT `id`,`pic`,`type`,`value`,`appid`,`status`,`sort` FROM ' . tablename($this->tablePrefix . 'squarebanner') . ' WHERE `id`=:id and `uniacid`=:uniacid', array(":id" => $id, ":uniacid" => $_W['uniacid'])); goto LGIHr; EKQGT: $pageData = getOtherConf('can_nav_pages'); goto YfExk; LGIHr: jzBFR: goto EKQGT; GIxRk: if (!($id > 0)) { goto jzBFR; } goto uAsAa; gFGB8: } public function doWebSquareBannerSave() { goto Rl2x0; XVKJE: if ($result != false) { goto mYWEB; } goto WO_Sj; UGRaw: R4dlA: goto lfpRF; kIkk5: TKLy2: goto dh0ay; voEiX: kxl2S: goto a0afd; bwDbx: unset($condition['value']); goto KwIAH; GTVNr: unset($condition['value']); goto DfKYh; dfqdf: oK1uZ: goto clJO2; aiXDT: cynV7: goto kJH03; KN_yZ: $condition['status'] = intval($_GPC['status']); goto HQpX2; iCUEj: $this->json_return(''); goto Yi7xI; wqaSt: $result = pdo_insert($this->tablePrefix . 'squarebanner', $condition); goto s_nVC; lfpRF: if (in_array(trim($_GPC['path']), getOtherConf('can_nav_pages'))) { goto kxl2S; } goto s5xgY; zcJ_2: if (!(intval($_GPC['type']) == 5)) { goto oK1uZ; } goto bwDbx; i2Grp: $condition['value'] = trim($_GPC['value']); goto Kg82q; mkXfO: if (!(intval($_GPC['type']) == 5)) { goto cynV7; } goto mDlUR; s_nVC: goto WbT2i; goto GfSsc; PjnlC: $condition['appid'] = trim($_GPC['appid']); goto osrW2; pJQ0d: pj79H: goto Mon1H; mDlUR: if (!(trim($_GPC['value2']) == '')) { goto tQlS8; } goto fh5Vp; DM1EU: $this->json_return('', 0); goto kIkk5; drlx2: unset($condition['value']); goto xAMDz; BTJJK: gBiZg: goto h5dgl; bVKbt: $id = intval($_GPC['id']); goto FJQyi; isQzm: cJnDg: goto H9oUN; MgCrC: US_6x: goto wrodO; GfSsc: GniIf: goto HS950; Yi7xI: mKK33: goto rf68N; dihYe: q1GHE: goto UcaA3; wrodO: if (!(trim($_GPC['value']) == '')) { goto YoWNE; } goto RwU0j; oErEY: YoWNE: goto pJQ0d; yCEWA: $this->json_return('!', 0); goto nM49Q; HQpX2: if ($id > 0) { goto GniIf; } goto h4IWF; BOxzj: Lip0K: goto Uc7P9; zyzOx: if (!(intval($_GPC['type']) == 6)) { goto xs4tP; } goto drlx2; FJQyi: if (!(trim($_GPC['pic']) == '')) { goto TKLy2; } goto DM1EU; nM49Q: GdLxH: goto L5qce; jqOp6: $this->json_return('appid', 0); goto dihYe; WO_Sj: $this->json_return('', 0); goto STBim; osrW2: MSrrs: goto zyzOx; N7Bw1: xs4tP: goto zcJ_2; bh0P1: mYWEB: goto iCUEj; Kevas: $result = pdo_update($this->tablePrefix . 'squarebanner', $condition, array("id" => $id, "uniacid" => $_W['uniacid'])); goto bPN2_; Kg82q: if (!(intval($_GPC['type']) == 2)) { goto MSrrs; } goto PjnlC; Rl2x0: global $_GPC, $_W; goto bVKbt; s5xgY: $this->json_return('', 0); goto voEiX; nuCHg: $condition['create_time'] = time(); goto wqaSt; kJH03: goto RjkAP; goto BTJJK; xAMDz: $condition['value'] = trim($_GPC['path']); goto N7Bw1; Uc7P9: if (!(intval($_GPC['type']) == 2 && trim($_GPC['appid']) == '')) { goto q1GHE; } goto jqOp6; RwU0j: $this->json_return('// !', 0); goto oErEY; Eu4a3: tQlS8: goto aiXDT; iqx3W: $this->json_return(' //!', 0); goto UGRaw; Mon1H: if (!(intval($_GPC['type']) == 7)) { goto Lip0K; } goto m76KG; a0afd: RjkAP: goto daizo; clJO2: if (!(intval($_GPC['type']) == 7)) { goto cJnDg; } goto GTVNr; STBim: goto mKK33; goto bh0P1; h4IWF: $condition['uniacid'] = $_W['uniacid']; goto nuCHg; dh0ay: if (!(intval($_GPC['type']) === false)) { goto GdLxH; } goto yCEWA; m76KG: if (!(trim($_GPC['value3']) == '')) { goto nc5TY; } goto rMvft; L5qce: if (intval($_GPC['type']) != 6) { goto US_6x; } goto chry2; DfKYh: $condition['value'] = trim($_GPC['value3']); goto isQzm; f7HCY: $condition['sort'] = intval($_GPC['sort']); goto KN_yZ; h5dgl: if (!(trim($_GPC['path']) == '')) { goto R4dlA; } goto iqx3W; rMvft: $this->json_return('!', 0); goto dkhxd; chry2: if (intval($_GPC['type']) == 6) { goto gBiZg; } goto mkXfO; fh5Vp: $this->json_return('!', 0); goto Eu4a3; bPN2_: WbT2i: goto XVKJE; dkhxd: nc5TY: goto BOxzj; HS950: $condition['update_time'] = time(); goto Kevas; UcaA3: $condition['type'] = intval($_GPC['type']); goto i2Grp; KwIAH: $condition['value'] = trim($_GPC['value2']); goto dfqdf; daizo: goto pj79H; goto MgCrC; H9oUN: $condition['pic'] = trim($_GPC['pic']); goto f7HCY; rf68N: } public function doWebSquareBannerDel() { goto AwjuA; EZELW: $htis->json_return('', 0); goto ZwoTT; c3DJx: $result = pdo_delete($this->tablePrefix . 'squarebanner', array("id" => $id, "uniacid" => $_W['uniacid'])); goto m0tv6; J9BQG: goto bYiYy; goto L7CNv; dNtrY: $id = intval($_GPC['id']); goto jfs43; L7CNv: WeSm2: goto ktFjx; FTIf9: bYiYy: goto Xuck0; m0tv6: if ($result != false) { goto WeSm2; } goto mzDey; ZwoTT: z7UGz: goto c3DJx; AwjuA: global $_GPC, $_W; goto dNtrY; jfs43: if (!($id < 1)) { goto z7UGz; } goto EZELW; ktFjx: $this->json_return(''); goto FTIf9; mzDey: $this->json_return('', 0); goto J9BQG; Xuck0: } public function doWebSquareReport() { goto kdgWj; U1CK1: $pager = pagination($total, $pageindex, $pagesize); goto UNz71; Zlm6e: if (!isset($_GPC['page'])) { goto F8d2g; } goto ANJHR; MusoL: XY8Ei: goto i6u3s; kdgWj: global $_GPC, $_W; goto JWrz3; i6u3s: $pagesize = 7; goto U1CK1; JWrz3: $where = 'WHERE `r`.`uniacid`=' . $_W['uniacid']; goto CTG1h; E1unq: $total = count($allList); goto Zlm6e; CTG1h: $allList = pdo_fetchall('SELECT `r`.`id` FROM ' . tablename($this->tablePrefix . 'squarereport') . ' `r` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `r`.`uid`=`m`.`uid` ' . $where . ' ORDER By `r`.`create_time` DESC'); goto E1unq; ANJHR: $pageindex = intval($_GPC['page']); goto cthS2; vTH07: F8d2g: goto V1jhd; V1jhd: $pageindex = 0; goto nQ8mg; UNz71: $list = pdo_fetchall('SELECT `r`.`id`,`r`.`square_id`,`r`.`uid`,`r`.`content`,`r`.`status`,`r`.`create_time`,`m`.`avatar`,`m`.`nickname` FROM ' . tablename($this->tablePrefix . 'squarereport') . ' `r` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `r`.`uid`=`m`.`uid` ' . $where . ' ORDER By `r`.`create_time` DESC LIMIT  ' . $pageindex2 . ',' . $pagesize); goto DcFQ9; nQ8mg: $pageindex2 = 0; goto MusoL; cthS2: $pageindex2 = (intval($_GPC['page']) - 1) * 7; goto epT9H; epT9H: goto XY8Ei; goto vTH07; DcFQ9: include $this->template('square_report/square_report_list'); goto fk7o7; fk7o7: } public function doWebSquareReportDel() { goto stTis; fQ7XL: goto CWMOj; goto yauO5; yauO5: qHZS3: goto v_pqk; GETZd: $htis->json_return('', 0); goto eJfLL; v_pqk: $id = intval($_GPC['id']); goto U9wmj; LQBN9: CWMOj: goto z2ASX; stTis: global $_GPC, $_W; goto GdN9a; t4ECW: goto hKu2Y; goto Y65if; qkEl2: $this->json_return('', 0); goto t4ECW; eJfLL: KnDLp: goto LQBN9; Y65if: kg8JZ: goto KkbrG; z2ASX: $result = pdo_delete($this->tablePrefix . 'squarereport', array("id in" => $id)); goto hoalQ; hoalQ: if ($result != false) { goto kg8JZ; } goto qkEl2; KkbrG: $this->json_return(''); goto mxo2k; mxo2k: hKu2Y: goto OT_NA; U9wmj: if (!($id < 1)) { goto KnDLp; } goto GETZd; VZVeJ: $id = $_GPC['id']; goto fQ7XL; GdN9a: if (!is_array($_GPC['id'])) { goto qHZS3; } goto VZVeJ; OT_NA: } public function doWebSquareSet() { goto L1JFO; L1JFO: global $_GPC, $_W; goto bCMe5; ycAZG: Bduci: goto I2OyS; BUgOR: $data['square_top_dp']['value'] = unserialize($data['square_top_dp']['value']); goto IZ3OV; I2OyS: $data['app_demand_set']['store_range'] = json_decode($data['app_demand_set']['store_range'], true); goto BUgOR; zZMjZ: foreach ($list as $v) { goto SSuwE; ua2YK: if (!($v['code'] == 'square_user_protocol')) { goto hMalZ; } goto EDxTT; y4yPG: if (!($v['code'] == 'square_sensitive_words')) { goto uvwoh; } goto Yly8p; qPMOU: IpNKm: goto uBqac; FdJGX: NZnMp: goto G7rdZ; ijGX4: $data['pay_top_square'] = $v; goto qPMOU; Yly8p: $data['square_sensitive_words'] = $v; goto uuvTT; c4S7K: ClfYL: goto FdJGX; uuvTT: uvwoh: goto VD29U; NjnhC: fbfO0: goto nIEnX; hKOau: IMnYj: goto pwUsb; eE02B: if (!($v['code'] == 'show_square_notice')) { goto V1Bm6; } goto lagvp; BGJdF: WvdY7: goto lOgUW; VD29U: if (!($v['code'] == 'square_forward_title')) { goto WvdY7; } goto Q_siU; H4N8Z: $data['app_demand_set'] = $v; goto goiqT; hzzKx: hMalZ: goto eE02B; LYHKH: $data['app_demand_open'] = $v; goto NjnhC; uBqac: if (!($v['code'] == 'square_top_dp')) { goto ClfYL; } goto ZnH4P; lOgUW: if (!($v['code'] == 'square_forward_pic')) { goto IMnYj; } goto knXZM; goiqT: IQT4S: goto ua2YK; Q_siU: $data['square_forward_title'] = $v; goto BGJdF; pwUsb: if (!($v['code'] == 'pay_top_square')) { goto IpNKm; } goto ijGX4; ZnH4P: $data['square_top_dp'] = $v; goto c4S7K; gmtSd: V1Bm6: goto y4yPG; SSuwE: if (!($v['code'] == 'app_demand_open')) { goto fbfO0; } goto LYHKH; lagvp: $data['show_square_notice'] = $v; goto gmtSd; EDxTT: $data['square_user_protocol'] = $v; goto hzzKx; knXZM: $data['square_forward_pic'] = $v; goto hKOau; nIEnX: if (!($v['code'] == 'app_demand_set')) { goto IQT4S; } goto H4N8Z; G7rdZ: } goto ycAZG; IZ3OV: include $this->template('square/square_set'); goto p3CJQ; bCMe5: $list = pdo_fetchall('SELECT  `name`,`code`,`type`,`store_range`,`value`,`tip` FROM ' . tablename($this->tablePrefix . $this->configTable) . ' WHERE `code` in (\'app_demand_set\', \'app_demand_open\', \'square_user_protocol\', \'show_square_notice\',\'square_sensitive_words\', \'square_forward_title\',\'square_forward_pic\', \'pay_top_square\', \'square_top_dp\') and `uniacid`=:uniacid', array(":uniacid" => $_W['uniacid'])); goto zZMjZ; p3CJQ: } public function doWebSquareSetSave() { goto TG2PZ; y3EuW: pdo_update($this->tablePrefix . $this->configTable, array("value" => $app_demand_set), array("code" => "app_demand_set", "uniacid" => $_W['uniacid'])); goto VQNiI; ALkc7: $this->json_return(''); goto o3pf1; TG2PZ: global $_GPC, $_W; goto Iit_L; z8Q2X: $square_forward_pic = $_GPC['square_forward_pic']; goto cirOG; yjbhS: pdo_update($this->tablePrefix . $this->configTable, array("value" => $show_square_notice), array("code" => "show_square_notice", "uniacid" => $_W['uniacid'])); goto qOPoo; Iit_L: $app_demand_open = intval($_GPC['app_demand_open']); goto ukXGA; XlnON: $square_forward_title = $_GPC['square_forward_title']; goto z8Q2X; VQNiI: pdo_update($this->tablePrefix . $this->configTable, array("value" => $square_user_protocol), array("code" => "square_user_protocol", "uniacid" => $_W['uniacid'])); goto yjbhS; QIIrd: $square_top_dp[] = array("day" => intval($_GPC['one_day']), "price" => sprintf('%.2f', $_GPC['one_price'])); goto DgRd0; vYxBn: pdo_update($this->tablePrefix . $this->configTable, array("value" => $app_demand_open), array("code" => "app_demand_open", "uniacid" => $_W['uniacid'])); goto y3EuW; qOPoo: pdo_update($this->tablePrefix . $this->configTable, array("value" => $square_sensitive_words), array("code" => "square_sensitive_words", "uniacid" => $_W['uniacid'])); goto TAkfe; DgRd0: $square_top_dp[] = array("day" => intval($_GPC['two_day']), "price" => sprintf('%.2f', $_GPC['two_price'])); goto QadHF; ukXGA: $app_demand_set = $_GPC['app_demand_set']; goto DfNUP; QadHF: $square_top_dp[] = array("day" => intval($_GPC['three_day']), "price" => sprintf('%.2f', $_GPC['three_price'])); goto vYxBn; Q5bW1: pdo_update($this->tablePrefix . $this->configTable, array("value" => $square_forward_pic), array("code" => "square_forward_pic", "uniacid" => $_W['uniacid'])); goto xX4uq; sZxsz: $square_top_dp = array(); goto QIIrd; wHjKx: $square_user_protocol = trim($_GPC['square_user_protocol']); goto XVnTP; bzvT8: pdo_update($this->tablePrefix . $this->configTable, array("value" => serialize($square_top_dp)), array("code" => "square_top_dp", "uniacid" => $_W['uniacid'])); goto ALkc7; xX4uq: pdo_update($this->tablePrefix . $this->configTable, array("value" => $pay_top_square), array("code" => "pay_top_square", "uniacid" => $_W['uniacid'])); goto bzvT8; cirOG: $pay_top_square = intval($_GPC['pay_top_square']); goto sZxsz; TAkfe: pdo_update($this->tablePrefix . $this->configTable, array("value" => $square_forward_title), array("code" => "square_forward_title", "uniacid" => $_W['uniacid'])); goto Q5bW1; DfNUP: $show_square_notice = intval($_GPC['show_square_notice']); goto wHjKx; XVnTP: $square_sensitive_words = $_GPC['square_sensitive_words']; goto XlnON; o3pf1: } public function doWebAppNavSet() { goto vx2Rj; FR8Xj: if (!($custom_bottom_nav != false)) { goto Vp42T; } goto ytMvr; ie6A9: $home_func_pic = getAppConfSd('home_func_pic'); goto rKY84; vx2Rj: global $_GPC, $_W; goto cxfoL; MGm44: PPwzU: goto Al1sp; ilfsq: $custom_bottom_nav = array_merge($custom_bottom_nav); goto QxSnK; sWYJ2: $custom_bottom_nav = getAppConfSd('custom_bottom_nav'); goto vj4Uc; HCHOU: $custom_bottom_color = getAppConfSd('custom_bottom_color'); goto HOYQk; neJx_: $bottom_count = count($data['bottom']['list']); goto studK; trKIR: $home_func_pic_count = count($home_func_pic); goto Kdr4t; QxSnK: Vp42T: goto HCHOU; mpJpj: $custom_function_nav_count = count($custom_function_nav); goto MGm44; HLVuR: if (!($custom_function_nav != false)) { goto PPwzU; } goto mpJpj; Kdr4t: z8408: goto sWYJ2; W6fol: if (!($home_func_pic != false)) { goto z8408; } goto trKIR; Al1sp: include $this->template('app_set/app_nav_set'); goto uAgkp; OTfir: if (!($data['bottom']['list'] != false)) { goto KN3rJ; } goto neJx_; vj4Uc: $custom_bottom_nav = unserialize($custom_bottom_nav); goto FR8Xj; ytMvr: $custom_bottom_nav_count = count($custom_bottom_nav); goto ilfsq; TwMiE: $custom_function_nav = unserialize($custom_function_nav); goto HLVuR; hR4Mk: $data = unserialize($data); goto OTfir; HOYQk: $custom_function_nav = getAppConfSd('custom_function_nav'); goto TwMiE; cxfoL: $data = getAppConfSd('app_nav_set'); goto hR4Mk; studK: KN3rJ: goto ie6A9; rKY84: $home_func_pic = unserialize($home_func_pic); goto W6fol; uAgkp: } public function doWebAppNavSetSave() { goto IY5vU; Mggtg: N8cD2: goto yxJTM; fuaVX: ACfK3: goto xXcM1; v84d0: $app_set['bottom']['color'] = trim($_GPC['color']); goto QgE3J; FkuoF: $app_set['vice_theme_color'] = $_GPC['vice_theme_color']; goto Vq7ue; ox7b2: if (!($_GPC['top_bg_color'] == '')) { goto WHjxY; } goto Hqemi; hvflT: $app_set = array(); goto Il2Xh; QxV0Q: $re1 = pdo_update($this->tablePrefix . $this->configTable, array("value" => $custom_bottom_color), array("uniacid" => $_W['uniacid'], "code" => "custom_bottom_color")); goto FtKtR; QTwx_: if ($data == '') { goto ACfK3; } goto wm0h4; Crp2w: eXHkX: goto ofhCY; L6HZd: $app_set['top']['top_text_color'] = $_GPC['top_text_color']; goto ox7b2; IY5vU: global $_GPC, $_W; goto hvflT; XmUDu: $data['vice_theme_color'] = $_GPC['vice_theme_color']; goto NvYyN; Il2Xh: if (!($_GPC['top_text_color'] == NULL)) { goto pQ6Wq; } goto C4iZ7; yXm4d: pQ6Wq: goto L6HZd; TC2jb: $data = $app_set; goto g2mx0; yxJTM: if (!($_GPC['vice_theme_color'] != '')) { goto kQZgL; } goto XmUDu; NvYyN: kQZgL: goto LmOhd; DYoAb: $data['bottom']['selectedColor'] = $app_set['bottom']['selectedColor']; goto LVOZw; DGvb1: if (!($_GPC['app_theme_color'] != '')) { goto N8cD2; } goto hEkY8; g2mx0: oOt3I: goto QxV0Q; l2A7i: $this->json_return('', 0); goto AqiFj; xW5XW: if ($result != false || $re1 != false) { goto kToZH; } goto l2A7i; hEkY8: $data['app_theme_color'] = $_GPC['app_theme_color']; goto Mggtg; Obn13: $app_set['bottom']['backgroundColor'] = trim($_GPC['backgroundColor']); goto zOAV6; bo57h: $data['top'] = $app_set['top']; goto wDlMU; LmOhd: goto oOt3I; goto fuaVX; wm0h4: $data = unserialize($data); goto bo57h; C4iZ7: $this->json_return('', 0); goto yXm4d; xXcM1: if (!($_GPC['app_theme_color'] != '')) { goto eXHkX; } goto T9Z5L; sLrPQ: $this->json_return(''); goto MLSOy; MLSOy: BXMgg: goto M3FiJ; Edyi0: $data = getAppConfSd('app_nav_set'); goto QTwx_; zOAV6: $app_set['bottom']['boderStyle'] = trim($_GPC['boderStyle']); goto Edyi0; Hqemi: $this->json_return('', 0); goto IylgS; Vq7ue: fBKhU: goto UV9JD; YrmaM: $data['bottom']['boderStyle'] = $app_set['bottom']['boderStyle']; goto DGvb1; T9Z5L: $app_set['app_theme_color'] = $_GPC['app_theme_color']; goto Crp2w; irM7C: kToZH: goto sLrPQ; z0rlR: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("uniacid" => $_W['uniacid'], "code" => "app_nav_set")); goto xW5XW; FtKtR: $data = serialize($data); goto z0rlR; AqiFj: goto BXMgg; goto irM7C; JvdhL: $app_set['bottom']['selectedColor'] = trim($_GPC['selectedColor']); goto Obn13; IylgS: WHjxY: goto vNEEy; UV9JD: $app_set['bottom']['list'] = array(); goto TC2jb; QgE3J: $custom_bottom_color = trim($_GPC['custom_bottom_color']); goto JvdhL; ofhCY: if (!($_GPC['vice_theme_color'] != '')) { goto fBKhU; } goto FkuoF; vNEEy: $app_set['top']['top_bg_color'] = $_GPC['top_bg_color']; goto v84d0; wDlMU: $data['bottom']['color'] = $app_set['bottom']['color']; goto DYoAb; LVOZw: $data['bottom']['backgroundColor'] = $app_set['bottom']['backgroundColor']; goto YrmaM; M3FiJ: } public function doWebAppNavBottom() { goto xXLdu; O_iar: $data = $this->getAppNavBottomData($id); goto rz8B3; xXLdu: global $_GPC, $_W; goto l00U9; lmlXD: if (!($id > 0)) { goto aGFDk; } goto O_iar; l00U9: $id = intval($_GPC['id']); goto lmlXD; bE0DL: $pageData = getOtherConf('tab_bar_pages'); goto fvkXx; fvkXx: include $this->template('app_set/app_nav_bottom'); goto sD5j6; rz8B3: aGFDk: goto bE0DL; sD5j6: } public function doWebAppNavBottomSave() { goto iS_2t; Vg38E: $key = $this->getAppNavBottomData($id, true); goto FMFkY; KeSab: UzIyo: goto WIQGp; tAwDo: $data['bottom']['list'][] = $condition; goto fVvVX; AFjmV: $condition['iconPath'] = $_GPC['iconPath']; goto dsjAj; H5ZWB: Z8Xrf: goto DrO2W; xGW_D: goto UzIyo; goto D17hx; J4jLx: $this->json_return('', 0); goto H5ZWB; Bf0_W: $condition['pagePath2'] = trim($_GPC['pagePath2']); goto Wz2A2; fbLoE: Pzkzi: goto RKrsQ; iS_2t: global $_GPC, $_W; goto HJV88; EVLCx: $data['bottom']['list'][$key] = $condition; goto KeSab; sWVrw: $id = intval($_GPC['id']); goto quFOF; bqXnp: foreach ($data['bottom']['list'] as $v) { $lastId = $v['id']; JQqCU: } goto t1ALb; c9ikW: JITc3: goto YnzF3; QYAuf: $condition['id'] = 1; goto tfq1Q; frA2q: $this->json_return('', 0); goto NkVAB; PGuMK: zRNWf: goto ORIts; ZQ3ps: $condition['pagePath1'] = trim($_GPC['pagePath1']); goto ENNjL; DrO2W: $condition['selectedIconPath'] = $_GPC['selectedIconPath']; goto bOKY8; quFOF: if (!($_GPC['iconPath'] == '')) { goto PFQu_; } goto ohN0O; t1ALb: e3m4Q: goto mfwZ6; XJ3LB: if ($result != false) { goto JScYy; } goto ikdfx; K_IWc: if (!(trim($_GPC['pagePath1']) == '')) { goto v80y_; } goto frA2q; ohN0O: $this->json_return('', 0); goto wcVxM; tkAsC: if ($condition['type'] == 1) { goto p1JAi; } goto Oa38m; ikdfx: $this->json_return('', 0); goto BYr8c; llDN_: $data = array(); goto QYAuf; FMFkY: $condition['id'] = $id; goto EVLCx; ToCe_: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("uniacid" => $_W['uniacid'], "code" => "app_nav_set")); goto XJ3LB; ENNjL: $condition['pagePath'] = trim($_GPC['pagePath1']); goto Bf0_W; D17hx: ofZrg: goto Vg38E; BY9qx: $this->json_return('appId', 0); goto c9ikW; bOKY8: $condition['type'] = intval($_GPC['type']); goto kHdDt; kUj1N: if ($data != false) { goto Pzkzi; } goto llDN_; tfq1Q: $data['bottom']['list'][] = $condition; goto aTsq7; cWacj: t1XO2: goto LkK5T; wcVxM: PFQu_: goto AFjmV; RxJaT: ouJTB: goto jyTJT; RU90j: $this->json_return(''); goto RxJaT; YnzF3: $condition['appId'] = trim($_GPC['appId']); goto NMjW1; b7gm7: $data['bottom']['list'][] = $condition; goto xGW_D; ORIts: CqwGE: goto ZQ3ps; DRDip: HMM6D: goto fBd_e; kHdDt: if (in_array($condition['type'], array(1, 2))) { goto t1XO2; } goto NI2Eu; WIQGp: e1iCX: goto oRBWL; fVvVX: goto e1iCX; goto DRDip; CyIlL: $this->json_return('', 0); goto kTzkD; fxHwn: if (in_array(trim($_GPC['pagePath1']), getOtherConf('tab_bar_pages'))) { goto zRNWf; } goto tXMtj; hQULH: $data = serialize($data); goto ToCe_; aTsq7: goto SXojj; goto fbLoE; NkVAB: v80y_: goto fxHwn; wO_6g: JScYy: goto RU90j; kTzkD: hZzq5: goto ZzlEM; fBd_e: if ($id != false) { goto ofZrg; } goto bqXnp; NI2Eu: $this->json_return('', 0); goto cWacj; g0mXx: $condition['id'] = 1; goto tAwDo; ELXTV: p1JAi: goto K_IWc; BYr8c: goto ouJTB; goto wO_6g; LkK5T: if (!($condition['type'] == 2 && empty($_GPC['appId']))) { goto JITc3; } goto BY9qx; RKrsQ: if ($data['bottom']['list'] != false) { goto HMM6D; } goto g0mXx; Wz2A2: $data = unserialize(getAppConfSd('app_nav_set')); goto kUj1N; tXMtj: $this->json_return('', 0); goto PGuMK; mfwZ6: $condition['id'] = $lastId + 1; goto b7gm7; dsjAj: if (!($_GPC['selectedIconPath'] == '')) { goto Z8Xrf; } goto J4jLx; oRBWL: SXojj: goto hQULH; ZzlEM: goto CqwGE; goto ELXTV; HJV88: $condition = array(); goto sWVrw; NMjW1: $condition['text'] = trim($_GPC['text']); goto tkAsC; Oa38m: if (!(trim($_GPC['pagePath2']) == '')) { goto hZzq5; } goto CyIlL; jyTJT: } public function doWebAppNavSetDel() { goto rTEpv; T0fFt: goto N_aaI; goto SYjbn; trhIF: goto uaN3a; goto K3IFP; mj3dk: N_aaI: goto QNQAc; s9uPr: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("uniacid" => $_W['uniacid'], "code" => $type)); goto T0fFt; dgVH2: Vu9f2: goto nc5S5; HeNbg: $data = serialize($data); goto s9uPr; RFyUo: unset($data[$key]); goto HeNbg; nc5S5: XTusM: goto RFyUo; llzO2: unset($data['bottom']['list'][$key]); goto cWL1U; eMnuy: if ($type == 'app_nav_set') { goto txJJA; } goto y9AGU; SYjbn: txJJA: goto vYS_s; mkKrj: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("code" => "app_nav_set", "uniacid" => $_W['uniacid'])); goto mj3dk; y9AGU: $data = unserialize(getAppConfSd($type)); goto K10cx; K3IFP: aGAw9: goto crA4_; K10cx: switch ($type) { case 'home_func_pic': $key = $this->getHomeFuncPicData($id, true); goto XTusM; case 'custom_bottom_nav': $key = $this->getCustomBottomNavData($id, true); goto XTusM; case 'custom_function_nav': $key = $this->getCustomFunctionNavData($id, true); goto XTusM; case 'art_bottom_nav': $key = $this->getArtBottomNavData($id, true); goto XTusM; } goto dgVH2; Cx97D: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto orRKn; FDJ_Q: $key = $this->getAppNavBottomData($id, true); goto llzO2; crA4_: $this->json_return(''); goto Doh4C; uYy2X: $this->json_return('', 0); goto trhIF; orRKn: $type = trim($_GPC['type']) != '' ? trim($_GPC['type']) : $this->json_return('', 0); goto eMnuy; rTEpv: global $_GPC, $_W; goto Cx97D; vYS_s: $data = unserialize(getAppConfSd('app_nav_set')); goto FDJ_Q; QNQAc: if ($result != false) { goto aGAw9; } goto uYy2X; Doh4C: uaN3a: goto CDvcY; cWL1U: $data = serialize($data); goto mkKrj; CDvcY: } public function doWebHomeFuncPic() { goto lq5mX; LBUbS: ZDGm3: goto Dl52f; zan5p: if (!($id > 0)) { goto ZDGm3; } goto EJXtJ; EJXtJ: $data = $this->getHomeFuncPicData($id); goto LBUbS; cJeCZ: include $this->template('app_set/home_func_pic'); goto q1t2J; lq5mX: global $_GPC, $_W; goto JbV1O; JbV1O: $id = intval($_GPC['id']); goto zan5p; Dl52f: $pageData = getOtherConf('tab_bar_pages'); goto cJeCZ; q1t2J: } public function doWebHomeFuncPicSave() { goto pTlaU; QRc6b: $key = $this->getHomeFuncPicData($id, true); goto z1DCb; rgbLL: JTM28: goto FwiS0; YOlLz: Xb0ZF: goto UTJvp; FgrzP: goto OJYWI; goto wMSl2; TavfT: vC_Ny: goto Bwrzz; t6i3A: OJYWI: goto jNPpl; wMSl2: nagJs: goto QRc6b; goX6u: JaGPs: goto Gd5S3; pTlaU: global $_GPC, $_W; goto Y6Ou1; RwRFW: $data[] = $condition; goto y0Yzk; n3alf: if (!($_GPC['iconPath'] == '')) { goto YZ10f; } goto PC0J3; Tbsq5: $this->json_return('', 0); goto eTqvh; JyTuV: if ($data != false) { goto Xb0ZF; } goto lTpsu; DGPZn: $condition['text'] = trim($_GPC['text']); goto KMgzA; Y6Ou1: $condition = array(); goto O4qim; jNPpl: N5gOp: goto n5JkW; PC0J3: $this->json_return('', 0); goto sNE_C; NLyo6: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("uniacid" => $_W['uniacid'], "code" => "home_func_pic")); goto KoGQI; n5JkW: $data = serialize($data); goto NLyo6; Ui0IR: $data[] = $condition; goto FgrzP; xmo5h: $data[$key] = $condition; goto t6i3A; sNE_C: YZ10f: goto YR6As; Bwrzz: $this->json_return(''); goto rgbLL; lTpsu: $condition['id'] = 1; goto RwRFW; KMgzA: $data = unserialize(getAppConfSd('home_func_pic')); goto JyTuV; UTJvp: if ($id != false) { goto nagJs; } goto v3wxf; O4qim: $id = intval($_GPC['id']); goto n3alf; z1DCb: $condition['id'] = $id; goto xmo5h; eTqvh: goto JTM28; goto TavfT; Gd5S3: $condition['id'] = $lastId + 1; goto Ui0IR; v3wxf: foreach ($data as $v) { $lastId = $v['id']; omfLv: } goto goX6u; KoGQI: if ($result != false) { goto vC_Ny; } goto Tbsq5; y0Yzk: goto N5gOp; goto YOlLz; YR6As: $condition['iconPath'] = $_GPC['iconPath']; goto DGPZn; FwiS0: } public function doWebCustomBottomNav() { goto Pi_sa; CB36z: if (!($id > 0)) { goto HUagR; } goto fu7xj; fu7xj: $data = $this->getCustomBottomNavData($id); goto eAs89; GyRwK: $id = intval($_GPC['id']); goto CB36z; eAs89: HUagR: goto BHMM6; Pi_sa: global $_GPC, $_W; goto GyRwK; BHMM6: include $this->template('app_set/custom_bottom_nav'); goto rO1iN; rO1iN: } public function doWebCustomButtomNavSave() { goto w3emE; xSgeO: $condition = array(); goto LFGtf; CHhpB: $data[] = $condition; goto mDjwL; Xmpww: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("uniacid" => $_W['uniacid'], "code" => "custom_bottom_nav")); goto asRzw; asRzw: if ($result != false) { goto sqz7u; } goto jwZqW; EQo55: s431s: goto ih4KP; UZQe9: sqz7u: goto BNJnr; w3emE: global $_GPC, $_W; goto xSgeO; LFGtf: $id = intval($_GPC['id']); goto Tdc6g; jwZqW: $this->json_return('', 0); goto qHHqC; AKKVr: $condition['selectedIconPath'] = trim($_GPC['selectedIconPath']) != '' ? $_GPC['selectedIconPath'] : $this->json_return('', 0); goto AZbEb; irqod: goto siRl4; goto G3DSY; htIXe: if ($data != false) { goto ECKJx; } goto bX31t; kzVLG: $data[$key] = $condition; goto irqod; Fjq90: MKGPe: goto Zg64b; AZbEb: $condition['text'] = trim($_GPC['text']); goto TwDW3; qHHqC: goto H5peK; goto UZQe9; ih4KP: $condition['id'] = $lastId + 1; goto CHhpB; lsidz: $data[] = $condition; goto kd12t; Tdc6g: $condition['iconPath'] = trim($_GPC['iconPath']) != '' ? $_GPC['iconPath'] : $this->json_return('', 0); goto AKKVr; Jz6jy: $condition['id'] = $id; goto kzVLG; G3DSY: tpSQd: goto jqUnT; BNJnr: $this->json_return(''); goto cJdCd; bX31t: $condition['id'] = 1; goto lsidz; cJdCd: H5peK: goto BtaxR; kd12t: goto MKGPe; goto Ig_Zr; TwDW3: $data = unserialize(getAppConfSd('custom_bottom_nav')); goto htIXe; jqUnT: foreach ($data as $v) { $lastId = $v['id']; cG4PS: } goto EQo55; USFfh: $key = $this->getCustomBottomNavData($id, true); goto Jz6jy; mDjwL: siRl4: goto Fjq90; Zg64b: $data = serialize($data); goto Xmpww; XL1Ux: if ($id < 1) { goto tpSQd; } goto USFfh; Ig_Zr: ECKJx: goto XL1Ux; BtaxR: } public function doWebCustomFunctionNav() { goto JpMRm; Uyj9R: if (!($id > 0)) { goto IwcKp; } goto Zwi5q; g4bg7: include $this->template('app_set/custom_function_nav'); goto lL1q8; kWBOa: IwcKp: goto g4bg7; JpMRm: global $_GPC, $_W; goto FHVdZ; Zwi5q: $data = $this->getCustomFunctionNavData($id); goto kWBOa; FHVdZ: $id = intval($_GPC['id']); goto Uyj9R; lL1q8: } public function doWebCustomFunctionNavSave() { goto qUpvX; H74zz: $id = intval($_GPC['id']); goto ZgvI6; J1txr: vRRHW: goto dFi89; CwWJS: $data[] = $condition; goto pIqFb; Vp6FO: $data = serialize($data); goto iILa7; OGGFO: $this->json_return('', 0); goto ZGRoi; Yw1V0: $key = $this->getCustomFunctionNavData($id, true); goto lqMSH; hLwp5: $condition['id'] = $lastId + 1; goto mWxgo; q8rQf: JQ81C: goto tdpfd; pIqFb: goto PoHp7; goto q8rQf; ZgvI6: $condition['iconPath'] = trim($_GPC['iconPath']) != '' ? trim($_GPC['iconPath']) : $this->json_return('', 0); goto CfjTd; tdpfd: if ($id < 1) { goto Dn78F; } goto Yw1V0; OYfGn: if ($result != false) { goto n5sd2; } goto OGGFO; ZGRoi: goto wmHYd; goto IlhUM; IlhUM: n5sd2: goto TFyRz; TFyRz: $this->json_return(''); goto mcbbL; FskeN: if ($data != false) { goto JQ81C; } goto dMGXa; CfjTd: $condition['text'] = trim($_GPC['text']); goto OQABP; jBQlR: Dn78F: goto r4E6G; dGGpM: $condition = array(); goto H74zz; r4E6G: foreach ($data as $v) { $lastId = $v['id']; Vi3jC: } goto WJ4kg; OQABP: $data = unserialize(getAppConfSd('custom_function_nav')); goto FskeN; dFi89: PoHp7: goto Vp6FO; dMGXa: $condition['id'] = 1; goto CwWJS; mcbbL: wmHYd: goto mKhkm; WJ4kg: TxYMt: goto hLwp5; Oht4x: $data[$key] = $condition; goto ofhlw; qUpvX: global $_GPC, $_W; goto dGGpM; mWxgo: $data[] = $condition; goto J1txr; iILa7: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("uniacid" => $_W['uniacid'], "code" => "custom_function_nav")); goto OYfGn; ofhlw: goto vRRHW; goto jBQlR; lqMSH: $condition['id'] = $id; goto Oht4x; mKhkm: } public function getAppNavBottomData($id, $type = false) { goto TUr0x; TUr0x: if (!($id != false)) { goto Cc7KI; } goto ZiQwZ; DMHQz: Cc7KI: goto zyDQz; ZiQwZ: $data = getAppConfSd('app_nav_set'); goto exxhu; PaZjU: foreach ($data['bottom']['list'] as $key => $v) { goto VkPKp; CxfkF: return $key; goto zEyKy; X7c6T: if (!($type != false && $id === $v['id'])) { goto ewYIV; } goto CxfkF; VkPKp: if (!($type == false && $id === $v['id'])) { goto gLzsp; } goto LKIS_; LKIS_: return $v; goto HlmLr; WUAbP: W3DKf: goto LwRyM; zEyKy: ewYIV: goto WUAbP; HlmLr: gLzsp: goto X7c6T; LwRyM: } goto GUaM2; exxhu: $data = unserialize($data); goto PaZjU; GUaM2: RMsm_: goto DMHQz; zyDQz: } public function getHomeFuncPicData($id, $type = false) { goto ybLpw; UN3Xt: $data = getAppConfSd('home_func_pic'); goto KHv26; ybLpw: if (!($id != false)) { goto JnQfe; } goto UN3Xt; KHv26: $data = unserialize($data); goto dE9lD; GVWCs: rDFZO: goto y8VwV; y8VwV: JnQfe: goto cw3lt; dE9lD: foreach ($data as $key => $v) { goto s_GPa; r3xH3: YXHkd: goto oF6IQ; oF6IQ: if (!($type != false && $id === $v['id'])) { goto CZAV5; } goto as9V_; kTgbF: return $v; goto r3xH3; OhQB8: CZAV5: goto Xq8Bp; as9V_: return $key; goto OhQB8; s_GPa: if (!($type == false && $id === $v['id'])) { goto YXHkd; } goto kTgbF; Xq8Bp: BjxJS: goto VhJwZ; VhJwZ: } goto GVWCs; cw3lt: } public function getCustomBottomNavData($id, $type = false) { goto nfByy; nfByy: if (!($id != false)) { goto PW3W7; } goto fAPdC; GpMLb: $data = unserialize($data); goto blN7l; blN7l: foreach ($data as $key => $v) { goto dHvqH; GA12v: NGT4e: goto WqGDM; Z7pkH: aUHkX: goto JQOTP; WqGDM: SlpO9: goto PTO76; JX3KK: return $key; goto GA12v; dHvqH: if (!($type == false && $id === $v['id'])) { goto aUHkX; } goto WAoFB; JQOTP: if (!($type != false && $id === $v['id'])) { goto NGT4e; } goto JX3KK; WAoFB: return $v; goto Z7pkH; PTO76: } goto ph6yG; xdnSs: PW3W7: goto I6WHW; ph6yG: RULGV: goto xdnSs; fAPdC: $data = getAppConfSd('custom_bottom_nav'); goto GpMLb; I6WHW: } public function getCustomFunctionNavData($id, $type = false) { goto BDzeR; BDzeR: if (!($id != false)) { goto ysGZn; } goto B6S0P; W5v1D: $data = unserialize($data); goto U0rWk; xnCrl: ysGZn: goto ZYXfK; sisUr: xtUtF: goto xnCrl; B6S0P: $data = getAppConfSd('custom_function_nav'); goto W5v1D; U0rWk: foreach ($data as $key => $v) { goto XZjnm; awq1W: return $v; goto vDeUb; pA0fn: return $key; goto xeSPB; tMcno: if (!($type != false && $id === $v['id'])) { goto Oub0C; } goto pA0fn; vDeUb: i5it_: goto tMcno; XZjnm: if (!($type == false && $id === $v['id'])) { goto i5it_; } goto awq1W; Cwb9g: z3VnL: goto JnKtZ; xeSPB: Oub0C: goto Cwb9g; JnKtZ: } goto sisUr; ZYXfK: } public function getJumpSetData($id, $type = false) { goto VJopU; VJopU: if (!($id != false)) { goto mE5g0; } goto XqaOl; es6Jg: foreach ($data as $key => $v) { goto l786S; GKqld: LyTDr: goto vtZDj; NuCNG: return $v; goto GKqld; YIWIL: E1Btw: goto VKbkk; u3GYM: return $key; goto YIWIL; VKbkk: gxz99: goto NHXxR; vtZDj: if (!($type != false && $id === $v['id'])) { goto E1Btw; } goto u3GYM; l786S: if (!($type == false && $id === $v['id'])) { goto LyTDr; } goto NuCNG; NHXxR: } goto ZJ6mp; XqaOl: $data = getAppConfSd('app_link_list'); goto QY3Gj; QY3Gj: $data = unserialize($data); goto es6Jg; ZJ6mp: V41qm: goto uxFMq; uxFMq: mE5g0: goto rRXLA; rRXLA: } public function doWebAppJumpSet() { goto Pe04t; tQhxO: foreach ($list as &$v) { goto IUGCN; OV60d: f8RZH: goto tgMB7; L6L2o: s120S: goto OV60d; IUGCN: switch ($v['type']) { case 6: $v['type'] = ''; goto f8RZH; case 1: $v['type'] = ''; goto f8RZH; case 2: $v['type'] = ''; goto f8RZH; case 3: $v['type'] = ''; goto f8RZH; case 5: $v['type'] = ''; goto f8RZH; case 7: $v['type'] = ''; goto f8RZH; default: } goto L6L2o; tgMB7: Juy9p: goto pT1Gj; pT1Gj: } goto TGoP_; aVWEd: $data['uniacid'] = $_W['uniacid']; goto r3DqQ; iPgJ5: $list = $data; goto tQhxO; QuN9V: $data = unserialize($data); goto Zw0tx; YQP1S: $count = count($list); goto NYdy8; dvnlv: $data = array(); goto aVWEd; NYdy8: include $this->template('app_set/app_jump_set'); goto hb7KV; Pe04t: global $_GPC, $_W; goto dvnlv; r3DqQ: $data = getAppConfSd('app_link_list'); goto QuN9V; TGoP_: hvAhz: goto UBaeG; Zw0tx: if (!($data != false)) { goto vQahy; } goto iPgJ5; UBaeG: vQahy: goto YQP1S; hb7KV: } public function doWebAppJumpSetEdit() { goto qRKOJ; yGwPM: $id = intval($_GPC['id']); goto y8d6J; SlO2x: $pageData = getOtherConf('can_nav_pages'); goto jhbpj; y8d6J: if (!($id > 0)) { goto LjU02; } goto UCErW; hnjCZ: LjU02: goto SlO2x; UCErW: $data = $this->getJumpSetData($id); goto hnjCZ; qRKOJ: global $_GPC, $_W; goto yGwPM; jhbpj: include $this->template('app_set/app_jump_set_info'); goto S3IZ_; S3IZ_: } public function doWebAppJumpSetSave() { goto JsQ92; KI1Ea: $condition['appid'] = trim($_GPC['appid']); goto O8Pes; uQjAD: $this->json_return('', 0); goto LpcS6; ENGfW: $key = $this->getJumpSetData($id, true); goto uwIwE; Q0Xy5: $this->json_return('!', 0); goto ILVjH; TxKG3: J9P29: goto MMW7T; HL4bE: $app_link_list = serialize($app_link_list); goto LR1sX; Q5S2j: unset($condition['value']); goto KsE10; KsE10: $condition['value'] = trim($_GPC['value3']); goto TxKG3; xtEEf: FhEB0: goto N6TfJ; pviY6: if (!(trim($_GPC['value2']) == '')) { goto FhEB0; } goto MUn0u; aweD0: $app_link_list[$key]['id'] = $id; goto Mr7bP; R4jMQ: if (!(intval($_GPC['type']) == 2 && trim($_GPC['appid']) == '')) { goto IMcSe; } goto xxubO; BUVq2: $app_link_list[] = $condition; goto hpLwh; pD3V3: $this->json_return('!', 0); goto P6cbL; n1fQM: if (!(intval($_GPC['type']) == 7)) { goto Ooqzz; } goto BiJOm; xtkRH: $condition['pic'] = $_GPC['pic']; goto ODswY; LR1sX: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $app_link_list), array("code" => "app_link_list", "uniacid" => $_W['uniacid'])); goto g3ejO; QFzSO: $condition['id'] = $lastId + 1; goto BUVq2; p1AW5: XG9RE: goto FtsN4; ZTq7a: GbbJG: goto o2blU; ZJmps: $num = count($app_link_list); goto E8ZCr; dE0TI: $this->json_return('!', 0); goto p1AW5; ODswY: if (!(intval($_GPC['type']) === false)) { goto P_R5n; } goto Q0Xy5; MQcGc: XyXPD: goto QFzSO; U1izq: if (!(trim($_GPC['value']) == '')) { goto YjXUH; } goto fR_2h; rrwJt: $condition['id'] = 1; goto NOjrs; JsQ92: global $_GPC, $_W; goto AaDQa; o2rKv: if (!(intval($_GPC['type']) == 6)) { goto GbbJG; } goto EDr5r; jPGYf: YjXUH: goto mlWyf; xx3qH: Ooqzz: goto R4jMQ; AaDQa: $condition = array(); goto DQeLs; g3ejO: if ($result != false) { goto Kk545; } goto uQjAD; wwbGF: $this->json_return('!', 0); goto OunJT; oK1HS: goto cfOiR; goto XtB3q; hggFB: goto d6egP; goto RGuVH; s7z33: if (!(intval($_GPC['type']) == 7)) { goto J9P29; } goto Q5S2j; fR_2h: $this->json_return('// !', 0); goto jPGYf; Mr7bP: sZDbG: goto HL4bE; OfVIA: if (intval($_GPC['type']) != 6 && intval($_GPC['type']) != 5) { goto GgUEA; } goto PL57H; FXIXB: if (!(intval($_GPC['type']) == 2)) { goto oNFP7; } goto KI1Ea; DQeLs: $id = intval($_GPC['id']); goto we5of; eARMY: $this->json_return('200!', 0); goto cU9Ty; xxPs6: b_3PL: goto JexHg; P6cbL: YXTVs: goto QgUjv; oXTwL: if (!(mb_strlen(trim($_GPC['introduce']), 'utf-8') >= 200)) { goto aA0uN; } goto eARMY; FtsN4: aMZ2Z: goto oK1HS; eUpwY: lw9Kv: goto s7z33; JexHg: if (in_array(trim($_GPC['path']), getOtherConf('can_nav_pages'))) { goto XG9RE; } goto dE0TI; XtB3q: GgUEA: goto U1izq; Ej6ON: $condition['introduce'] = trim($_GPC['introduce']); goto EPN5N; YO202: goto sZDbG; goto SC0OG; mlWyf: cfOiR: goto VTWin; N6TfJ: Xr86K: goto n1fQM; ILVjH: P_R5n: goto OfVIA; cU9Ty: aA0uN: goto Ej6ON; G32PU: $this->json_return(''); goto PWpAU; E2Lph: $app_link_list = unserialize($data); goto QIgEn; dSD8H: IMcSe: goto DUaa8; DUaa8: $condition['type'] = intval($_GPC['type']); goto v2typ; BiJOm: if (!(trim($_GPC['value3']) == '')) { goto fPTSM; } goto wwbGF; L8Vyg: Kk545: goto G32PU; uwIwE: $app_link_list[$key] = $condition; goto aweD0; EPN5N: $condition['order'] = intval($_GPC['order']); goto xtkRH; VTWin: if (!(intval($_GPC['type']) == 5)) { goto Xr86K; } goto pviY6; PL57H: if (!(intval($_GPC['type']) == 6)) { goto aMZ2Z; } goto I1Jua; lzV1H: $condition['value'] = trim($_GPC['path']); goto ZTq7a; k7ABt: $condition['status'] = intval($_GPC['status']) == 1 ? intval($_GPC['status']) : 0; goto FXIXB; OunJT: fPTSM: goto xx3qH; xxubO: $this->json_return('appid!', 0); goto dSD8H; QIgEn: if ($id != false) { goto aN74V; } goto QsScD; YxQXI: $condition['value'] = trim($_GPC['value2']); goto eUpwY; hpLwh: d6egP: goto YO202; NS2Ir: unset($condition['value']); goto YxQXI; LpcS6: goto cr4EH; goto L8Vyg; PWpAU: cr4EH: goto qtSNQ; NOjrs: $app_link_list[] = $condition; goto hggFB; MUn0u: $this->json_return('!', 0); goto xtEEf; we5of: if (!(trim($_GPC['title']) == '')) { goto YXTVs; } goto pD3V3; QsScD: if (!empty($app_link_list)) { goto JNJvE; } goto rrwJt; QgUjv: $condition['title'] = trim($_GPC['title']); goto oXTwL; MMW7T: $data = getAppConfSd('app_link_list'); goto E2Lph; RGuVH: JNJvE: goto ZJmps; o2blU: if (!(intval($_GPC['type']) == 5)) { goto lw9Kv; } goto NS2Ir; O8Pes: oNFP7: goto o2rKv; E8ZCr: foreach ($app_link_list as $v) { $lastId = $v['id']; HC2pO: } goto MQcGc; SC0OG: aN74V: goto ENGfW; uZbzJ: $this->json_return(' //!', 0); goto xxPs6; I1Jua: if (!(trim($_GPC['path']) == '')) { goto b_3PL; } goto uZbzJ; v2typ: $condition['value'] = trim($_GPC['value']); goto k7ABt; EDr5r: unset($condition['value']); goto lzV1H; qtSNQ: } public function doWebAppJumpSetDel() { goto p0zBO; s9Rz3: unset($app_link_list[$key]); goto i8jtr; X0rAr: o0TtM: goto PJLBB; jeyBT: if ($result != false) { goto igFof; } goto QQJNq; EaU8P: $this->json_return(''); goto Vqxf7; p0zBO: global $_GPC, $_W; goto mxkbY; N_VcA: $key = $this->getJumpSetData($id, true); goto s9Rz3; e6_oT: goto QjKfd; goto TfDaL; QQJNq: $this->json_return('', 0); goto e6_oT; i8jtr: $data = serialize($app_link_list); goto qFDDf; TfDaL: igFof: goto EaU8P; qFDDf: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("uniacid" => $_W['uniacid'], "code" => "app_link_list")); goto jeyBT; jfuw4: if (!($id < 1)) { goto o0TtM; } goto Q68qU; PJLBB: $data = getAppConfSd('app_link_list'); goto Zhvtx; Q68qU: $this->json_return('', 0); goto X0rAr; mxkbY: $id = intval($_GPC['id']); goto jfuw4; Vqxf7: QjKfd: goto csSlH; Zhvtx: $app_link_list = unserialize($data); goto N_VcA; csSlH: } public function doWebAppApiSet() { goto yomPe; x2rSh: $data = unserialize($AppApi); goto It321; KEUKO: include $this->template('app_set/app_api_set'); goto PPRf0; NUXuE: if (!($AppApi != '')) { goto UarIR; } goto x2rSh; yomPe: global $_GPC, $_W; goto rIZSD; It321: UarIR: goto KEUKO; rIZSD: $AppApi = getAppConfSd('app_api_set'); goto NUXuE; PPRf0: } public function doWebAppApiSetSave() { goto D9KIv; VXGzb: if (!($condition['item_api']['item_type'] === 2)) { goto a01kP; } goto AtKtb; BKDPU: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("uniacid" => $_W['uniacid'], "code" => "app_api_set")); goto QeaPn; GAdcz: xJKVi: goto xDONs; hlo2v: $condition['item_api']['item_txs_api']['BUCKET'] = trim($_GPC['BUCKET']); goto um4hQ; WHn6d: $condition['email_api']['smtpServer'] = trim($_GPC['smtpServer']); goto pWe8Q; um4hQ: a01kP: goto UhxBd; J28Vo: $condition['sms_api']['sms_txs_api']['sdkAppId'] = trim($_GPC['sdkAppId']); goto t3NDu; deAQT: $condition['sms_api']['sms_txs_api']['smsSign'] = trim($_GPC['smsSign']); goto ALd6J; kJFho: $condition['email_api']['smtpPass'] = trim($_GPC['smtpPass']); goto WHn6d; xtSj7: if (!(intval($_GPC['sms_type']) == 1)) { goto ql__O; } goto rX2ph; KMqI2: if (!(intval($_GPC['sms_type']) !== false)) { goto ejPXz; } goto ymdDH; porhr: $condition['sms_api']['sms_alis_api']['SignName'] = trim($_GPC['SignName']); goto x8jWb; xbUfp: $condition['item_api']['item_alis_api']['apiUrl'] = trim($_GPC['apiUrl']); goto a5lS6; xXjUE: $data = getAppConfSd('app_api_set'); goto wSkyP; Fk6Qn: $condition['item_api']['item_txs_api']['secretKey'] = trim($_GPC['secretKey']); goto hlo2v; wSkyP: if ($data == '') { goto hVpAD; } goto Yms13; GQS09: Vi872: goto KMqI2; VRAIC: goto Vi872; goto G0Hd1; G0Hd1: hVpAD: goto Hvo1L; Yms13: $condition = unserialize($data); goto VRAIC; ALd6J: LSJxR: goto xqyWr; Hvo1L: $condition = array(); goto GQS09; TRzzR: $condition['item_api']['item_txs_api']['secretID'] = trim($_GPC['secretID']); goto Fk6Qn; AtKtb: $condition['item_api']['item_txs_api']['appID'] = trim($_GPC['appID']); goto TRzzR; t3NDu: $condition['sms_api']['sms_txs_api']['appKey'] = trim($_GPC['appKey']); goto hJf0K; Rnvjq: ql__O: goto QimOV; y56mH: $condition['email_api']['smtpUser'] = trim($_GPC['smtpUser']); goto kJFho; UhxBd: qvfza: goto WxQZC; xqyWr: ejPXz: goto AjpE1; aDofB: global $_GPC, $_W; goto xXjUE; rX2ph: $condition['sms_api']['sms_alis_api']['accessKeyId'] = trim($_GPC['accessKeyId']); goto RkzB8; RkzB8: $condition['sms_api']['sms_alis_api']['accessKeySecret'] = trim($_GPC['accessKeySecret']); goto porhr; hJf0K: $condition['sms_api']['sms_txs_api']['templateId'] = trim($_GPC['templateId']); goto deAQT; a5lS6: $condition['item_api']['item_alis_api']['appCode'] = trim($_GPC['appCode']); goto CWwL0; uoDDm: $condition['item_api']['item_type'] = intval($_GPC['item_type']); goto nE5ap; WxQZC: $condition['email_api']['smtpAddr'] = trim($_GPC['smtpAddr']); goto y56mH; x8jWb: $condition['sms_api']['sms_alis_api']['TemplateCode'] = trim($_GPC['TemplateCode']); goto Rnvjq; PwlUo: $this->json_return(''); goto GAdcz; CWwL0: xUqKp: goto VXGzb; ZMZC0: $condition['email_api']['smtpNickname'] = trim($_GPC['smtpNickname']); goto kyOUL; QimOV: if (!(intval($_GPC['sms_type']) == 2)) { goto LSJxR; } goto J28Vo; mQvEy: goto xJKVi; goto w9cyh; HOdR5: $this->json_return('', 0); goto mQvEy; kyOUL: $data = serialize($condition); goto BKDPU; w9cyh: ZUvrf: goto PwlUo; nE5ap: if (!($condition['item_api']['item_type'] === 1)) { goto xUqKp; } goto xbUfp; ymdDH: $condition['sms_api']['sms_type'] = intval($_GPC['sms_type']); goto xtSj7; AjpE1: if (!(intval($_GPC['item_type']) !== false)) { goto qvfza; } goto uoDDm; QeaPn: if ($result != false) { goto ZUvrf; } goto HOdR5; D9KIv: global $_GPC, $_W; goto aDofB; pWe8Q: $condition['email_api']['smtpPort'] = trim($_GPC['smtpPort']); goto ZMZC0; xDONs: } public function doWebSmtpTest() { goto Fs8dS; UfX0N: return $result; goto L1o3k; Fs8dS: global $_GPC, $_W; goto VgLVa; VgLVa: $smtpTest = trim($_GPC['smtpTest']); goto LiNKH; LiNKH: $result = sendMail($smtpTest, '', ''); goto UfX0N; L1o3k: } public function doWebAppUseHelp() { goto oFcyA; oFcyA: global $_GPC, $_W; goto zYLVi; RQoTh: if (empty($data)) { goto jBj3g; } goto gQhXX; FGZs1: include $this->template('app_set/app_use_help'); goto a2_ex; VHH7V: $help_list = array(); goto RQoTh; bmbuL: jBj3g: goto FGZs1; gQhXX: $help_list = json_decode($data, true); goto bmbuL; zYLVi: $data = getAppConfSd('app_use_help'); goto VHH7V; a2_ex: } public function doWebAppUseHelpEdit() { goto N7yE8; iQL7u: include $this->template('app_set/app_use_help_info'); goto QsCSZ; XXJm3: $help_list = json_decode(getAppConfSd('app_use_help'), true); goto GB_zH; lBJiB: klAEX: goto iQL7u; z2LTg: $id = intval($_GPC['id']); goto iC0tm; N7yE8: global $_GPC, $_W; goto z2LTg; FNogF: TL9_C: goto lBJiB; GB_zH: foreach ($help_list as $v) { goto z5HT9; IDeQk: goto TL9_C; goto H116T; qWdbL: vEcJC: goto hDlC7; J53xt: $data = $v; goto IDeQk; z5HT9: if (!($v['id'] == $id)) { goto NIYtI; } goto J53xt; H116T: NIYtI: goto qWdbL; hDlC7: } goto FNogF; iC0tm: if (!($id > 0)) { goto klAEX; } goto XXJm3; QsCSZ: } public function doWebAppUseHelpSave() { goto USV4m; rDhMH: $condition['title'] = trim($_GPC['title']); goto mecJO; MHb5H: $this->json_return('!', 0); goto QaHv0; YIVyi: $help_list[] = $condition; goto KQt3y; rF6hE: ib52p: goto z8kUw; ACh38: if (!(intval($_GPC['id']) > 0)) { goto ffx5P; } goto kCSha; oU2n6: foreach ($help_list as $k => $v) { $lastId = $v['id']; cI5u0: } goto rJ2fW; USV4m: global $_GPC, $_W; goto ACh38; s3zos: frnA4: goto VgCTt; ZjSGo: $help_list = json_decode(getAppConfSd('app_use_help'), true); goto j3IMg; X73s2: $condition['id'] = $lastId + 1; goto vAmBa; KEyXD: if (!($help_list == NULL)) { goto q0TaJ; } goto u8HGe; VgCTt: foreach ($help_list as $k => $v) { goto C7kuF; C7kuF: if (!($v['id'] === $condition['id'])) { goto D2aB1; } goto NHs6c; oWCbL: D2aB1: goto FsxwQ; FsxwQ: S4nb7: goto KSyyn; NHs6c: $help_list[$k] = $condition; goto DKL50; DKL50: goto ib52p; goto oWCbL; KSyyn: } goto rF6hE; c_K88: $condition['introduce'] = trim($_GPC['introduce']); goto srwkj; z8kUw: X2RXs: goto Z5Ddv; z6Ji2: $condition['pics'] = $_GPC['pics']; goto ZjSGo; srwkj: $condition['order'] = intval($_GPC['order']) > 0 ? intval($_GPC['order']) : 0; goto UWJTM; TYgwl: if (!(trim($_GPC['title']) == '')) { goto CdBoX; } goto MHb5H; vAmBa: $help_list[] = $condition; goto HAgGh; Vaxea: if ($result != false) { goto NWC8Z; } goto RQPXR; Z5Ddv: afWe_: goto L5j7Z; x1LaU: WNlp9: goto aQU2f; QaHv0: CdBoX: goto rDhMH; xYqqd: if (!($introduce == '')) { goto NLtCz; } goto rv9Pa; RQPXR: $this->json_return('', 0); goto aObZF; Ah3dl: goto afWe_; goto x1LaU; JQ5UD: $this->json_return('500!', 0); goto knpq5; KQt3y: q0TaJ: goto Ah3dl; Tymuv: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $help_list), array("uniacid" => $_W['uniacid'], "code" => "app_use_help")); goto Vaxea; uaPrz: ffx5P: goto TYgwl; L5j7Z: $help_list = json_encode($help_list); goto Tymuv; aTDV2: d1CWm: goto z6Ji2; FWzHI: $this->json_return(''); goto jJinr; knpq5: U132n: goto c_K88; P8gGU: if (!(mb_strlen($introduce, 'utf-8') > 500)) { goto U132n; } goto JQ5UD; DUlqC: $condition['id'] = 1; goto YIVyi; pivBw: NWC8Z: goto FWzHI; HAgGh: goto X2RXs; goto s3zos; u8HGe: $help_list = array(); goto DUlqC; UWJTM: if (!(count($_GPC['pics']) < 1)) { goto d1CWm; } goto kP_3U; j3IMg: if ($help_list != NULL) { goto WNlp9; } goto KEyXD; rv9Pa: $this->json_return('!', 0); goto Z1uZi; mecJO: $introduce = trim($_GPC['introduce']); goto xYqqd; aObZF: goto TGmIx; goto pivBw; aQU2f: if ($condition['id'] > 0) { goto frnA4; } goto oU2n6; rJ2fW: tbqRJ: goto X73s2; Z1uZi: NLtCz: goto P8gGU; kP_3U: $this->json_return('!', 0); goto aTDV2; kCSha: $condition['id'] = intval($_GPC['id']); goto uaPrz; jJinr: TGmIx: goto IppT2; IppT2: } public function doWebAppUseHelpDel() { goto bPmNr; oz7X2: m6uZx: goto nghi0; VfT6z: $this->json_return('', 0); goto MS0bF; y9y4p: $id = intval($_GPC['id']); goto w4lXI; sxArM: gSKjN: goto uBoFU; OOg_Z: if ($result != false) { goto I1fwN; } goto VfT6z; PzwPk: gCrCG: goto Y1yT0; w4lXI: if (!($id < 1)) { goto gSKjN; } goto tiZ3v; Y1yT0: $list = json_encode($help_list); goto lvCZ9; tCHlK: I1fwN: goto ExbzW; MS0bF: goto m6uZx; goto tCHlK; bPmNr: global $_GPC, $_W; goto y9y4p; uBoFU: $help_list = json_decode(getAppConfSd('app_use_help'), true); goto C_1oO; ExbzW: $this->json_return(''); goto oz7X2; tiZ3v: $this->json_return('', 0); goto sxArM; lvCZ9: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $list), array("uniacid" => $_W['uniacid'], "code" => "app_use_help")); goto OOg_Z; C_1oO: foreach ($help_list as $k => $v) { goto Ntyga; nCpsR: unset($help_list[$k]); goto Az3cU; Ntyga: if (!($v['id'] === $id)) { goto xjJER; } goto nCpsR; Rom2K: xjJER: goto YNZWq; YNZWq: T1SQ1: goto BvPoU; Az3cU: goto gCrCG; goto Rom2K; BvPoU: } goto PzwPk; nghi0: } public function doWebItemDynamic() { goto rFTXE; pM19z: $pageindex = $_GPC['page']; goto zvy6f; zvy6f: goto HpuOs; goto KF8zz; Pme0B: HpuOs: goto kwULL; o9iuH: $pager = pagination($total, $pageindex, $pagesize); goto Ugmmk; sKxOS: $card_id = intval($_GPC['card_id']); goto KCnQC; KF8zz: bDFHQ: goto Zd7P4; ppWA6: include $this->template('item_dynamic/item_dynamic_list'); goto h2JPp; Zd7P4: $pageindex = 1; goto Pme0B; Jow1D: $allList = pdo_getall($this->tablePrefix . 'dynamic', array("uniacid" => $_W['uniacid'], "card_id" => $card_id), array("id"), ''); goto XNaiV; Ugmmk: $list = pdo_getall($this->tablePrefix . 'dynamic', array("uniacid" => $_W['uniacid'], "card_id" => $card_id), array("id", "content", "pics", "likes", "comments", "create_time"), '', array(), array($pageindex, $pagesize)); goto frOUo; KCnQC: $member = pdo_fetch('SELECT `id`,`uid`,`name`,`picture`,`dynamic` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `id`=:id LIMIT 1', array(":id" => $card_id)); goto TJj3l; kwULL: $pagesize = $this->pageCount; goto Jow1D; XNaiV: $total = count($allList); goto o9iuH; TJj3l: if (!isset($_GPC['page'])) { goto bDFHQ; } goto pM19z; PBtGb: S0Oov: goto ppWA6; rFTXE: global $_GPC, $_W; goto sKxOS; frOUo: foreach ($list as $k => $v) { $list[$k]['pics'] = unserialize($v['pics']); Wsxlf: } goto PBtGb; h2JPp: } public function doWebItemDynamicEdit() { goto dzZYA; a0y1_: $data['pics'] = unserialize($data['pics']); goto aqy5u; kqruJ: $id = intval($_GPC['id']); goto cgIUz; uyBiu: if (!($id > 0)) { goto nr_Ws; } goto o_5pK; WyX1r: nr_Ws: goto Lkzjk; o_5pK: $data = pdo_fetch('SELECT `id`,`content`,`pics`,`address`,`longitude`,`latitude` FROM ' . tablename($this->tablePrefix . 'dynamic') . ' WHERE `id`=:id and `card_id`=:card_id', array(":id" => $id, ":card_id" => $card_id)); goto pAv0G; qUNwg: $member = pdo_fetch('SELECT `uid`,`name`,`picture` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `id`=:id', array(":id" => $card_id)); goto uyBiu; pAv0G: if (!$data) { goto zLVVA; } goto a0y1_; Lkzjk: include $this->template('item_dynamic/item_dynamic_info'); goto FVEqG; cgIUz: $card_id = intval($_GPC['card_id']); goto qUNwg; aqy5u: zLVVA: goto WyX1r; dzZYA: global $_GPC, $_W; goto kqruJ; FVEqG: } public function doWebItemDynamicSave() { goto agWhJ; SfWSz: $member = pdo_fetch('SELECT `uid` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `id`=:id', array(":id" => $card_id)); goto iSWTA; emzlC: $condition['pics'] = serialize($_GPC['pics']); goto TiPFT; yfAW1: if (!($card_id < 1)) { goto JmObP; } goto Z7umZ; GsSRW: $this->json_return('', 0); goto bJQhS; XFEio: dWq_Y: goto GGBCv; zKz6v: $addr = trim($condition['address']); goto MXOAN; TiPFT: if (!(trim($_GPC['content']) == '')) { goto p1cIQ; } goto uhgwW; GrejG: CmRP6: goto emzlC; Rm13_: if (!($re != false)) { goto rVmpS; } goto hIo8i; h3Qhn: $condition['uid'] = $member['uid']; goto kEBe4; JvKXt: zMpaH: goto osCJg; GGBCv: if ($id > 0) { goto fn0Ow; } goto h3Qhn; osCJg: pdo_update($this->tablePrefix . 'item', array("dynamic" => 1), array("id" => $card_id)); goto uKFJb; Ye7IZ: goto x3wuJ; goto ifbem; peGWk: if (!($tencent_map_key != '')) { goto HOfL3; } goto q7HgF; iSWTA: if (!(count($_GPC['pics']) < 1)) { goto ek7lF; } goto ZwwkV; agWhJ: global $_GPC, $_W; goto RC_Cf; ZwwkV: $this->json_return('', 0); goto yl7Wo; MXOAN: $tencent_map_key = getAppConfSd('tencent_map_key'); goto peGWk; eeyYm: $this->json_return('', 0); goto GrejG; uhgwW: $this->json_return('', 0); goto bb3B6; kEBe4: $condition['card_id'] = $card_id; goto sc5uF; hIo8i: $condition['latitude'] = $re['lat']; goto ZpVBs; sc5uF: $condition['uniacid'] = $_W['uniacid']; goto eiYf1; l15Uv: x3wuJ: goto P6XAc; P6XAc: if ($result != false) { goto zMpaH; } goto GsSRW; q7HgF: $re = getLatLng($addr, $tencent_map_key); goto Rm13_; JdjwA: $condition['address'] = trim($_GPC['address']); goto p04Ny; KjWVs: $condition['update_time'] = time(); goto Hv3k0; bJQhS: goto PqRb2; goto JvKXt; ktkgs: $condition['longitude'] = trim($_GPC['longitude']); goto sQO38; iLY5_: JmObP: goto SfWSz; p04Ny: $condition['latitude'] = trim($_GPC['latitude']); goto ktkgs; opNX6: HOfL3: goto XFEio; b2skj: rVmpS: goto opNX6; RC_Cf: $id = intval($_GPC['id']); goto C13V5; Hv3k0: $result = pdo_update($this->tablePrefix . 'dynamic', $condition, array("id" => $id, "card_id" => $card_id)); goto l15Uv; C13V5: $card_id = intval($_GPC['card_id']); goto yfAW1; wP8g5: $result = pdo_insert($this->tablePrefix . 'dynamic', $condition); goto Ye7IZ; bb3B6: p1cIQ: goto vfOqk; ifbem: fn0Ow: goto KjWVs; ZpVBs: $condition['longitude'] = $re['lng']; goto b2skj; dqI7u: PqRb2: goto sATk5; yl7Wo: ek7lF: goto w980C; vfOqk: $condition['content'] = $_GPC['content']; goto JdjwA; uKFJb: $this->json_return(''); goto dqI7u; Z7umZ: $this->json_return('', 0); goto iLY5_; w980C: if (!(count($_GPC['pics']) > 9)) { goto CmRP6; } goto eeyYm; sQO38: if (!($condition['latitude'] == '' && $condition['longitude'] == '')) { goto dWq_Y; } goto zKz6v; eiYf1: $condition['create_time'] = time(); goto wP8g5; sATk5: } public function doWebItemDynamicDel() { goto jeyfM; kz4bD: FoCl6: goto DtiyX; nF6YZ: $this->json_return('', 0); goto hBzQE; jDTKG: $this->json_return('', 0); goto y9fwm; DtiyX: $this->json_return(''); goto o2lpD; o2lpD: tAwAM: goto GAZbB; y9fwm: BHo92: goto bxs8C; hBzQE: goto tAwAM; goto kz4bD; XbG3S: if (!($id < 1)) { goto BHo92; } goto jDTKG; WTC7E: if ($result != false) { goto FoCl6; } goto nF6YZ; bxs8C: $result = pdo_delete($this->tablePrefix . 'dynamic', array("id" => $id)); goto WTC7E; FW4Zs: $id = intval($_GPC['id']); goto XbG3S; jeyfM: global $_GPC, $_W; goto FW4Zs; GAZbB: } public function doWebItemDynamicStatus() { goto a1IyR; QsICu: $result = pdo_update($this->tablePrefix . 'item', array("dynamic" => $val), array("id" => $id)); goto UaF52; aQlAq: $this->json_return('', 1, array("val" => $val)); goto NXR1m; NXR1m: MgGn4: goto lCcOB; CWeDA: $data = pdo_fetch('SELECT `id`,`dynamic` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `id`=:id', array(":id" => $id)); goto aiiAW; TW5Zy: $this->json_return('', 0); goto EZPI5; aiiAW: $val = $data['dynamic'] == 1 ? 0 : 1; goto QsICu; UaF52: if ($result != false) { goto OU8ad; } goto TW5Zy; a1IyR: global $_GPC, $_W; goto oZqQl; oZqQl: $id = intval($_GPC['id']); goto CWeDA; EZPI5: goto MgGn4; goto NVjD9; NVjD9: OU8ad: goto aQlAq; lCcOB: } public function doWebItemWebsite() { goto DXBzm; Wq8MA: $this->doWebItemWebsiteEdit($card_id, $member); goto JwgAC; TN_Yp: bGDbq: goto XMpiY; jeHME: $member = pdo_fetch('SELECT `id`,`name`,`picture`,`website` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `id`=:id LIMIT 1', array(":id" => $card_id)); goto IJgma; kL4Fc: $card_id = intval($_GPC['card_id']); goto jeHME; XMpiY: $this->doWebItemWebsiteContent($card_id, $member); goto WuzHs; IJgma: if (!($card_id > 0)) { goto NXp5G; } goto puZ8c; puZ8c: $data = pdo_fetch('SELECT `id`, `website_name` FROM ' . tablename($this->tablePrefix . 'website') . ' WHERE `card_id`=:card_id LIMIT 1', array(":card_id" => $card_id)); goto QDYgK; qo8jz: if ($data != false) { goto bGDbq; } goto Wq8MA; JwgAC: goto RRfuD; goto TN_Yp; QDYgK: NXp5G: goto qo8jz; DXBzm: global $_GPC, $_W; goto kL4Fc; WuzHs: RRfuD: goto Ck3de; Ck3de: } public function doWebItemWebsiteContent($card_id = 0, $member = array()) { goto rXGOF; Y135v: if (!is_array($data['data'])) { goto Ji80e; } goto TQgEG; rXGOF: global $_GPC, $_W; goto k10fH; pBp4P: WmNXm: goto Qs0mg; KL9wh: Ji80e: goto mxEfe; ISm2N: $data['data'] = json_decode($data['data'], true); goto Y135v; Mbuiw: if (!($data['data'] != '')) { goto FyqVF; } goto ISm2N; k10fH: if (!($card_id > 0)) { goto WmNXm; } goto tc5Au; Qs0mg: include $this->template('item_website/item_website_content'); goto ZstlA; TQgEG: foreach ($data['data'] as $k => $v) { goto eb7o3; ivqjt: NYZQa: goto waqKc; cf2Xa: if (!($v['type'] == 'pic')) { goto AUTYi; } goto a0bd2; YgS7p: Hcx4G: goto pV5tf; V7T2Z: ZYybW: goto pS6Cv; GbJuv: $data['data'][$k]['val'] = $v['val'][0]; goto ivqjt; a0bd2: if (!is_array($v['val'])) { goto NYZQa; } goto GbJuv; S0V9v: Yoa8T: goto YgS7p; pS6Cv: $data['data'][$k]['picture'] = $member['picture']; goto V4BMy; waqKc: AUTYi: goto NOW4S; NOW4S: goto Yoa8T; goto V7T2Z; eb7o3: if ($v['type'] == 'card') { goto ZYybW; } goto cf2Xa; V4BMy: $data['data'][$k]['name'] = $member['name']; goto S0V9v; pV5tf: } goto KJyfE; mxEfe: FyqVF: goto pBp4P; KJyfE: erWaA: goto KL9wh; tc5Au: $data = pdo_fetch('SELECT `id`, `website_name`, `website_logo`, `company_name`, `banner`, `contact`, `owner`, `banner`, `data` FROM ' . tablename($this->tablePrefix . 'website') . ' WHERE `card_id`=:card_id LIMIT 1', array(":card_id" => $card_id)); goto Mbuiw; ZstlA: } public function doWebItemWebsiteEdit($card_id = 0, $member = array()) { goto IybuR; GRh3R: $card_id = intval($_GPC['card_id']) > 0 ? intval($_GPC['card_id']) : $card_id; goto m6jHT; IybuR: global $_GPC, $_W; goto GRh3R; s3DKL: oY0fo: goto zK5uD; zK5uD: include $this->template('item_website/item_website_info'); goto O0pTF; m6jHT: if (!($card_id > 0)) { goto oY0fo; } goto FCF_5; FCF_5: $data = pdo_fetch('SELECT `id`, `website_name`, `website_logo`, `company_name`, `banner`, `contact`, `owner`, `banner`, `data` FROM ' . tablename($this->tablePrefix . 'website') . ' WHERE `card_id`=:card_id LIMIT 1', array(":card_id" => $card_id)); goto s3DKL; O0pTF: } public function doWebItemWebsiteSave() { goto cSuJF; KLzg1: $condition['uniacid'] = $_W['uniacid']; goto hlner; FV2Hf: if (!(trim($_GPC['owner']) == '')) { goto Q4f5p; } goto PWlW8; zd8aG: $url = $this->createWebUrl('itemWebsite') . '&card_id=' . $card_id; goto aeHqr; cSuJF: global $_GPC, $_W; goto izxSA; EKuM4: $condition['banner'] = $_GPC['banner']; goto ns0Pr; Z0qy7: if (!($card_id < 1)) { goto iSrud; } goto FnS3b; Hdsed: $this->json_return('logo!', 0); goto XnwXE; izxSA: $id = intval($_GPC['id']); goto KF3gH; O0bhK: $condition['company_name'] = trim($_GPC['company_name']); goto RwSx2; N726y: Cw1PX: goto O0bhK; hDYti: goto vwgQg; goto BRLdH; XnwXE: hIYKW: goto Tj0QQ; FnS3b: $this->json_return('', 0); goto xkaBQ; HE4iz: lSKv5: goto lVmLX; mW03H: HgJD2: goto oBW1G; JcW8L: goto lSKv5; goto ldAyG; BRLdH: cG4wP: goto zwRbQ; rcVw1: Pb0EY: goto bqPLW; C93zh: if (!(trim($_GPC['website_name']) == '')) { goto Pb0EY; } goto Evybn; Q8eI9: $condition['add_time'] = time(); goto KLzg1; oBW1G: $condition['contact'] = trim($_GPC['contact']); goto FV2Hf; JoW3v: vwgQg: goto pETFk; FH10U: hNPZY: goto EKuM4; JbRgu: $this->json_return('', 0); goto JcW8L; hlner: $condition['uid'] = $card['uid']; goto gQhyb; pR1rR: if (!(trim($_GPC['company_name']) == '')) { goto Cw1PX; } goto ilLId; pETFk: if ($result > 0) { goto HRJ41; } goto JbRgu; Tj0QQ: $condition['website_logo'] = trim($_GPC['website_logo']); goto pR1rR; Evybn: $this->json_return('!', 0); goto rcVw1; bcAoQ: if (!(trim($_GPC['website_logo']) == '')) { goto hIYKW; } goto Hdsed; pOw4_: $card = pdo_fetch('SELECT `id`,`uid` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `id`=:card_id', array(":card_id" => $card_id)); goto C93zh; xkaBQ: iSrud: goto pOw4_; aeHqr: $this->json_return('', 1, array("url" => $url)); goto HE4iz; RwSx2: if (!(trim($_GPC['banner']) == '')) { goto hNPZY; } goto iKthv; JDkrV: $condition['owner'] = trim($_GPC['owner']); goto Pxgbq; gQhyb: $condition['card_id'] = $card['id']; goto mB1zw; bqPLW: $condition['website_name'] = trim($_GPC['website_name']); goto bcAoQ; PWlW8: $this->json_return('!', 0); goto lC0uG; mB1zw: $result = pdo_insert($this->tablePrefix . 'website', $condition); goto hDYti; Pxgbq: if ($id > 0) { goto cG4wP; } goto Q8eI9; IJere: pdo_update($this->tablePrefix . 'item', array("website" => 1), array("id" => $card_id)); goto zd8aG; zwRbQ: $condition['update_time'] = time(); goto bmcFK; KF3gH: $card_id = intval($_GPC['card_id']); goto Z0qy7; iKthv: $this->json_return('banner!', 0); goto FH10U; ns0Pr: if (!(trim($_GPC['contact']) == '')) { goto HgJD2; } goto J4zq2; ilLId: $this->json_return('!', 0); goto N726y; J4zq2: $this->json_return('!', 0); goto mW03H; lC0uG: Q4f5p: goto JDkrV; bmcFK: $result = pdo_update($this->tablePrefix . 'website', $condition, array("id" => $id)); goto JoW3v; ldAyG: HRJ41: goto IJere; lVmLX: } public function doWebItemWebsiteStatus() { goto JGo2A; e616n: $result = pdo_update($this->tablePrefix . 'item', array("website" => $val), array("id" => $id)); goto iTeKE; B1GT_: $id = intval($_GPC['id']); goto WIR3e; xTyPX: $this->json_return('', 0); goto fXtk6; RNbwz: xTSUB: goto VySXa; SiMBS: $this->json_return('', 1, array("val" => $val)); goto RNbwz; JGo2A: global $_GPC, $_W; goto B1GT_; fXtk6: goto xTSUB; goto lTBKT; qTvtX: $val = $data['website'] == 1 ? 0 : 1; goto e616n; iTeKE: if ($result != false) { goto fg5Kq; } goto xTyPX; lTBKT: fg5Kq: goto SiMBS; WIR3e: $data = pdo_fetch('SELECT `id`,`website` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `id`=:id', array(":id" => $id)); goto qTvtX; VySXa: } public function doWebItemWebsiteContentSave() { goto OG07G; B7LGR: $card_id = intval($_GPC['card_id']); goto MKo9Z; pZ_vO: if ($result != false) { goto N0Cao; } goto h0y9r; OSOiq: foreach ($content as $k => $v) { goto D6DVN; eUq2p: if (!($v['val']['latitude'] == '' || $v['val']['longitude'] == '' && $v['val']['title'] != '')) { goto NzgBj; } goto a8i10; bX1zp: Iz_H_: goto YFA5L; ygTW_: VrCgR: goto I10Op; q2k7u: goto lDz_D; goto udDT9; udDT9: Od39x: goto eUq2p; D6DVN: if ($v['type'] == 'map') { goto Od39x; } goto sS7hl; uzM7O: $content[$k]['val']['latitude'] = $re['lat']; goto IO08P; W1992: aWG34: goto sh7F4; a8i10: $tencent_map_key = getAppConfSd('tencent_map_key'); goto E9roT; NVvKG: $content[$k]['val'][] = $v['val']; goto W1992; BRfAY: lDz_D: goto Gx42z; OnY89: iwkUV: goto jmUMq; npqrD: WPtL0: goto bX1zp; pY121: PbhNL: goto Am8S1; sh7F4: goto z3iGX; goto OnY89; xAQbz: $content[$k]['val'] = array(); goto NVvKG; GII1u: $this->json_return('9', 0); goto pY121; tD7lA: goto KlQUL; goto s8ua7; fhpmo: if (!($re != false)) { goto WPtL0; } goto uzM7O; jmUMq: if (!(count($v['val']) > 8)) { goto VrCgR; } goto NVyS2; Gx42z: Bd6j5: goto NSkYJ; QyaUq: if (!($v['type'] == 'pic')) { goto aWG34; } goto xAQbz; ME_pj: $re = getLatLng($v['val']['title'], $tencent_map_key); goto fhpmo; IO08P: $content[$k]['val']['longitude'] = $re['lng']; goto npqrD; sS7hl: if ($v['type'] == 'more_pic') { goto VwQVb; } goto HZeS3; HZeS3: if ($v['type'] == 'grid_pic') { goto iwkUV; } goto QyaUq; YFA5L: NzgBj: goto BRfAY; IbjfG: if (!(count($v['val']) > 9)) { goto PbhNL; } goto GII1u; E9roT: if (!($tencent_map_key != '')) { goto Iz_H_; } goto ME_pj; s8ua7: VwQVb: goto IbjfG; Am8S1: KlQUL: goto q2k7u; NVyS2: $this->json_return('8', 0); goto ygTW_; I10Op: z3iGX: goto tD7lA; NSkYJ: } goto ojWW8; WWkoh: $this->json_return(''); goto if54i; EmMI1: goto IJ5wn; goto JuSnK; h0y9r: $this->json_return('', 0); goto EmMI1; A2Yli: goto TSqsf; goto BGXbT; JSof0: vVkX2: goto oyTwu; JuSnK: N0Cao: goto WWkoh; bfR_S: if ($content != NULL && is_array($content)) { goto CkISu; } goto AMv5p; ojWW8: Yq8QR: goto nuMZf; WVGd_: $id = intval($_GPC['id']); goto B7LGR; oyTwu: $content = $_GPC['content']; goto bfR_S; MKo9Z: if (!($id < 1 || $card_id < 1)) { goto vVkX2; } goto ikuxn; OG07G: global $_GPC, $_W; goto WVGd_; BGXbT: CkISu: goto OSOiq; m_x8h: $result = pdo_update($this->tablePrefix . 'website', array("data" => $content, "update_time" => time()), array("id" => $id)); goto pZ_vO; RgQyD: $content = json_encode($content); goto m_x8h; AMv5p: $content = array(); goto A2Yli; nuMZf: TSqsf: goto RgQyD; ikuxn: $this->json_return('', 0); goto JSof0; if54i: IJ5wn: goto zv2gd; zv2gd: } public function doWebItemStore() { goto d1wRu; zjz2r: $member = pdo_fetch('SELECT `id`, `uid`,`name`,`picture`,`store` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `id`=:id LIMIT 1', array(":id" => $card_id)); goto aPWJq; cMd3O: $this->doWebItemStoreContent($card_id, $member); goto X2zb3; drPQQ: $this->doWebItemStoreEdit($card_id, $member); goto QsS92; X2zb3: js122: goto vAIJK; d1wRu: global $_GPC, $_W; goto kut6X; aPWJq: $store = pdo_fetch('SELECT `id`,`uid`,`card_id`,`store_name` FROM ' . tablename($this->tablePrefix . 'store') . ' WHERE `card_id`=:card_id', array(":card_id" => $card_id)); goto ZcC8K; kut6X: $card_id = intval($_GPC['card_id']); goto zjz2r; ZcC8K: if ($store != false) { goto E9SUD; } goto drPQQ; QsS92: goto js122; goto Zc3qn; Zc3qn: E9SUD: goto cMd3O; vAIJK: } public function doWebItemStoreContent($card_id = 0, $member = array()) { goto XSl3H; zi9_4: zfwFv: goto qOtXR; eryLR: $total = count($allList); goto oq0Cl; DiJ8u: $pagesize = $this->pageCount; goto W_xvq; W_xvq: $pager = pagination($total, $pageindex, $pagesize); goto jC52_; jC52_: $list = pdo_getall($this->tablePrefix . 'goods', $where, array("id", "goods_name", "goods_pics", "goods_introduce", "goods_price", "views", "order_sort", "status", "add_time"), '', array("add_time DESC"), array($pageindex, $pagesize)); goto xwFNn; dQ4Sg: $data['store_introduce'] = mb_substr($data['store_introduce'], 0, 30, 'utf-8') . '...'; goto HSMT2; BgH00: goto t8JEs; goto xWpHr; QV57U: H3oG7: goto zi9_4; V6v3N: $where['card_id'] = $card_id; goto dqT2u; sYaWF: $pageindex = $_GPC['page']; goto BgH00; XSl3H: global $_GPC, $_W; goto DFepD; elU3u: $data = pdo_fetch('SELECT `id`,`uid`,`card_id`,`store_name`,`store_logo`,`store_introduce`,`store_business`,`store_contact`,`store_owner`,`status` FROM ' . tablename($this->tablePrefix . 'store') . ' WHERE `card_id`=:card_id LIMIT 1', array(":card_id" => $card_id)); goto ou9RU; xYo4Q: t8JEs: goto DiJ8u; ou9RU: $data['store_business'] = mb_substr($data['store_business'], 0, 30, 'utf-8') . '...'; goto dQ4Sg; qOtXR: include $this->template('item_store/item_store_content'); goto Vl4RZ; DFepD: if (!($card_id > 0)) { goto zfwFv; } goto elU3u; oq0Cl: if (!isset($_GPC['page'])) { goto yg4Bx; } goto sYaWF; mA51H: $pageindex = 1; goto xYo4Q; dqT2u: $allList = pdo_getall($this->tablePrefix . 'goods', $where, array("id"), ''); goto eryLR; xwFNn: foreach ($list as $k => $v) { goto Btfpf; swccU: $list[$k]['goods_introduce'] = mb_substr($v['goods_introduce'], 0, 15, 'utf-8') . '...'; goto iY4id; Btfpf: $list[$k]['goods_pics'] = unserialize($v['goods_pics']); goto swccU; iY4id: NkND9: goto fk5CL; fk5CL: } goto QV57U; xWpHr: yg4Bx: goto mA51H; HSMT2: $where['uniacid'] = $_W['uniacid']; goto V6v3N; Vl4RZ: } public function doWebItemStoreEdit($card_id = 0, $member = array()) { goto aRXiz; E0hDb: $card_id = intval($_GPC['card_id']) > 0 ? intval($_GPC['card_id']) : $card_id; goto WweMJ; aRXiz: global $_GPC, $_W; goto E0hDb; Z3qz_: $data = pdo_fetch('SELECT `id`,`uid`,`card_id`,`store_name`,`store_logo`,`store_introduce`,`store_business`,`address`,`latitude`,`longitude`,`store_contact`,`store_banner`,`store_owner`,`add_time`,`status` FROM ' . tablename($this->tablePrefix . 'store') . ' WHERE `card_id`=:card_id LIMIT 1', array(":card_id" => $card_id)); goto rbcu4; WweMJ: if (!($card_id > 0)) { goto yRp4o; } goto Z3qz_; zo1jV: include $this->template('item_store/item_store_info'); goto lftC5; rbcu4: $data['banner'] = unserialize($data['banner']); goto iwxg8; iwxg8: yRp4o: goto zo1jV; lftC5: } public function doWebItemStoreSave() { goto pWtjJ; orduw: if (!(trim($_GPC['store_business']) == '')) { goto vJeCM; } goto y28eO; xC5oe: if (!($re != false)) { goto stySh; } goto y2y63; xPEZh: $condition['add_time'] = intval($add_time); goto YTd_E; v_mo5: $result = pdo_insert($this->tablePrefix . 'store', $condition); goto l1GhL; id0Ck: $this->json_return('', 1, array("url" => $url)); goto bsXDu; noRkL: $condition['longitude'] = $re['lng']; goto gzViO; A35lz: goto vNgSI; goto MKoY5; wgufI: $condition['store_business'] = trim($_GPC['store_business']); goto Ev8XK; o2A6U: $condition['store_banner'] = ''; goto A35lz; Ev8XK: if (!(trim($_GPC['store_owner']) == '')) { goto ZEE1O; } goto sQsZF; On4Jl: $condition['store_banner'] = serialize($_GPC['store_banner']); goto b4a3g; Z9gYS: YalqD: goto bcswe; WfR_S: if (!(trim($_GPC['store_introduce']) == '')) { goto JjeDg; } goto gBcj_; WMCBC: MeL0g: goto E6aNg; bcswe: if (count($_GPC['store_banner']) > 0) { goto x2PYq; } goto o2A6U; cAFTZ: $this->json_return('', 0); goto WMCBC; MLNc7: $addr = trim($condition['address']); goto S_s8y; Kdkyw: $this->json_return('', 0); goto UKCYU; NB1j1: eMLe_: goto PoMUI; l1GhL: goto AG2Gi; goto m0Ee0; BWylK: $this->json_return('', 0); goto KjMxC; uyTEu: $re = getLatLng($addr, $tencent_map_key); goto xC5oe; y2y63: $condition['latitude'] = $re['lat']; goto noRkL; gCXTQ: $id = intval($_GPC['id']); goto EsQSn; hvECr: if (!($condition['latitude'] == '' && $condition['longitude'] == '')) { goto Th6p1; } goto MLNc7; pWtjJ: global $_GPC, $_W; goto gCXTQ; ADIk3: if (!($card_id < 1)) { goto MeL0g; } goto cAFTZ; Wtmn9: if (!(intval($add_time) < 1)) { goto ye36W; } goto BWylK; QF522: $condition['card_id'] = $card_id; goto Gk8Sn; Ndqy7: $this->json_return('', 0); goto hXUtA; O6EO3: $this->json_return('logo', 0); goto DRPhw; IZDj5: $result = pdo_update($this->tablePrefix . 'store', $condition, array("id" => $id)); goto U1crS; bsXDu: eQsJp: goto zEkrv; gQTRb: if (!(trim($_GPC['store_owner']) == '')) { goto HUc7T; } goto Kdkyw; HnPJ0: $this->json_return('banner', 0); goto Z9gYS; YTd_E: $condition['address'] = trim($_GPC['address']); goto O5vfe; C6WQQ: if (!(trim($_GPC['store_logo']) == '')) { goto zQxdw; } goto O6EO3; UKCYU: HUc7T: goto GeN7C; VfrvB: $condition['store_owner'] = trim($_GPC['store_owner']); goto gQTRb; GMZLh: Th6p1: goto tQXMx; U1crS: AG2Gi: goto WZIAE; sQsZF: $this->json_return('', 0); goto wpPCX; GeN7C: $condition['store_contact'] = trim($_GPC['store_contact']); goto wbMBv; wbMBv: $add_time = strtotime($_GPC['add_time']); goto Wtmn9; JOCmx: $condition['longitude'] = trim($_GPC['longitude']); goto KIgc6; NTnVC: $condition['update_time'] = time(); goto IZDj5; y28eO: $this->json_return('', 0); goto QD5qL; FCsvt: $condition['create_time'] = time(); goto QF522; h28H0: if (!($tencent_map_key != '')) { goto nLViT; } goto uyTEu; Ta7u2: $url = $this->createWebUrl('itemStore') . '&card_id=' . $card_id; goto id0Ck; hXUtA: goto eQsJp; goto b2m45; QD5qL: vJeCM: goto wgufI; O5vfe: $condition['latitude'] = trim($_GPC['latitude']); goto JOCmx; S_s8y: $tencent_map_key = getAppConfSd('tencent_map_key'); goto h28H0; E6aNg: if (!(trim($_GPC['store_name']) == '')) { goto eMLe_; } goto wpTHJ; c5h_W: $card = pdo_fetch('SELECT `id`,`uid` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `id`=:card_id LIMIT 1', array(":card_id" => $card_id)); goto I095x; wQvNU: if (!(count($_GPC['store_banner']) > 9)) { goto YalqD; } goto HnPJ0; wpPCX: ZEE1O: goto VfrvB; M70Vo: pdo_update($this->tablePrefix . 'item', array("store" => 1), array("id" => $card_id)); goto Ta7u2; I095x: $condition['uid'] = $card['uid']; goto FCsvt; b2m45: S0OFF: goto M70Vo; Gk8Sn: $condition['uniacid'] = $_W['uniacid']; goto v_mo5; m0Ee0: NrlSR: goto NTnVC; gBcj_: $this->json_return('', 0); goto gAOMh; wpTHJ: $this->json_return('', 0); goto NB1j1; b4a3g: vNgSI: goto WfR_S; KIgc6: $condition['status'] = intval($_GPC['status']); goto hvECr; l83ls: $condition['store_introduce'] = trim($_GPC['store_introduce']); goto orduw; gAOMh: JjeDg: goto l83ls; WZIAE: if ($result > 0) { goto S0OFF; } goto Ndqy7; EsQSn: $card_id = intval($_GPC['card_id']); goto ADIk3; sZo_1: $condition['store_logo'] = trim($_GPC['store_logo']); goto wQvNU; gzViO: stySh: goto YPmMV; tQXMx: if ($id > 0) { goto NrlSR; } goto c5h_W; PoMUI: $condition['store_name'] = trim($_GPC['store_name']); goto C6WQQ; YPmMV: nLViT: goto GMZLh; KjMxC: ye36W: goto xPEZh; DRPhw: zQxdw: goto sZo_1; MKoY5: x2PYq: goto On4Jl; zEkrv: } public function doWebItemStoreStatus() { goto xJOcR; CgoGx: $id = intval($_GPC['id']); goto liRxZ; liRxZ: $data = pdo_fetch('SELECT `id`,`store` FROM ' . tablename($this->tablePrefix . 'item') . ' WHERE `id`=:id', array(":id" => $id)); goto Rjisq; Juy2k: $this->json_return('', 1, array("val" => $val)); goto h0z1q; vFwwt: $result = pdo_update($this->tablePrefix . 'item', array("store" => $val), array("id" => $id)); goto kdVsj; sqlg_: D0y01: goto Juy2k; lHbPX: $this->json_return('', 0); goto Or0qI; Rjisq: $val = $data['store'] == 1 ? 0 : 1; goto vFwwt; h0z1q: gpmNE: goto XfE_M; kdVsj: if ($result != false) { goto D0y01; } goto lHbPX; xJOcR: global $_GPC, $_W; goto CgoGx; Or0qI: goto gpmNE; goto sqlg_; XfE_M: } public function doWebItemStoreContentEdit() { goto vcXgy; roWRW: $member = pdo_fetch('SELECT `i`.`id`,`i`.`name`, `i`.`picture` FROM ' . tablename($this->tablePrefix . 'item') . ' `i` LEFT JOIN ' . tablename($this->tablePrefix . 'store') . ' `s` ON `i`.`id`=`s`.`card_id` WHERE `s`.`id`=:store_id', array(":store_id" => $store_id)); goto dKori; rj4Q9: if (!($data['goods_content'] != '')) { goto P1nJy; } goto C8kai; k9QJB: $data['goods_pics'] = unserialize($data['goods_pics']); goto JfTLs; JZf_P: yFTcH: goto zqiiH; JfTLs: $data['goods_content'] = json_decode($data['goods_content'], true); goto rj4Q9; iEYuL: PsmtQ: goto A1H5l; vcXgy: global $_GPC, $_W; goto umNbD; C8kai: foreach ($data['goods_content'] as $k => $v) { goto Siypk; GdXH1: if (!is_array($v['val'])) { goto fhEqT; } goto gRqll; Ycr1F: FL03W: goto Mf3MZ; Siypk: if ($v['type'] == 'card') { goto wb1UT; } goto yWcWM; Mlmpz: $data['goods_content'][$k]['name'] = $member['name']; goto kBPF2; kBPF2: rwSkX: goto Ycr1F; yWcWM: if (!($v['type'] == 'pic')) { goto Wjiep; } goto GdXH1; uK4GN: wb1UT: goto p1zPZ; syAwr: Wjiep: goto W4sL0; p1zPZ: $data['goods_content'][$k]['picture'] = $member['picture']; goto Mlmpz; PtGMz: fhEqT: goto syAwr; gRqll: $data['goods_content'][$k]['val'] = $v['val'][0]; goto PtGMz; W4sL0: goto rwSkX; goto uK4GN; Mf3MZ: } goto iEYuL; dKori: aDgsP: goto Erp11; DXdOj: $data = pdo_fetch('SELECT * FROM ' . tablename($this->tablePrefix . 'goods') . ' WHERE `id`=:id and `uniacid`=:uniacid', array(":id" => $id, ":uniacid" => $_W['uniacid'])); goto k9QJB; zqiiH: include $this->template('item_store/item_store_content_info'); goto Zk_15; Erp11: if (!($id > 0)) { goto yFTcH; } goto DXdOj; OVaPN: if (!($store_id > 0)) { goto aDgsP; } goto roWRW; A1H5l: P1nJy: goto JZf_P; D_Uen: $store_id = intval($_GPC['store_id']); goto OVaPN; umNbD: $id = intval($_GPC['id']); goto D_Uen; Zk_15: } public function doWebItemStoreContentSave() { goto HtBdj; aYjcN: $condition['status'] = 1; goto sn9yq; C1LKN: if ($result != false) { goto vaWHz; } goto cLlsh; jzLGW: mr4YS: goto y5IAl; Je135: if (!(count($data['goods_pics']) < 1)) { goto QRVEv; } goto f4nKn; GjTdW: $condition['uniacid'] = $_W['uniacid']; goto aYjcN; OtOp7: $result = pdo_insert($this->tablePrefix . 'goods', $condition); goto qHJ8_; wD7eS: $condition['goods_price'] = trim($data['goods_price']) != '' ? trim($data['goods_price']) : $this->json_return('', 0); goto T_fQy; pxMo6: $id = intval($_GPC['data']['id']); goto ktE7e; aihEq: $condition['goods_introduce'] = trim($data['goods_introduce']) != '' ? trim($data['goods_introduce']) : $this->json_return('', 0); goto wD7eS; mdY6K: erJrq: goto ddJd2; f4nKn: $this->json_return('', 0); goto WjXky; y5IAl: $condition['goods_pics'] = serialize($data['goods_pics']); goto aihEq; cLlsh: $this->json_return('', 0); goto tZiX1; JEFBH: $condition['add_time'] = time(); goto GjTdW; XqYWx: $this->json_return('', 0); goto jzLGW; WjXky: QRVEv: goto k4KGc; PDf7Q: NGmRz: goto feHoE; Clzu7: $this->json_return('', 1, array("url" => $url)); goto PDf7Q; tZiX1: goto NGmRz; goto WuPTM; nk9gY: $store = pdo_fetch('SELECT  `id`,`uid`,`card_id` FROM ' . tablename($this->tablePrefix . 'store') . ' WHERE `id`=:store_id', array(":store_id" => $store_id)); goto FY1o1; gbWAw: $condition['store_id'] = $store_id; goto OtOp7; ZA7Oc: $condition['goods_name'] = trim($data['goods_name']) != '' ? trim($data['goods_name']) : $this->json_return('', 0); goto Je135; Qen3C: foreach ($data['detail'] as $k => $v) { goto ImpQS; mj2rL: s2P5X: goto KDMc6; Z05zn: wUNRX: goto bWZ63; cHQQb: UYvTP: goto FZhkH; muRO5: goto RIKH5; goto ItIbY; drcVP: if ($v['type'] == 'grid_pic') { goto s2P5X; } goto itVtc; ttSh2: goto MzMpL; goto P5KZC; ywQ0r: MPUS2: goto jZSix; D1LRs: $data['detail'][$k]['val'] = array(); goto LqJOn; j1YFv: if ($v['type'] == 'more_pic') { goto VmwcA; } goto drcVP; yYeBr: $tencent_map_key = getAppConfSd('tencent_map_key'); goto t3u6U; XoMON: if (!($re != false)) { goto S39yf; } goto ga2gu; ImpQS: if ($v['type'] == 'map') { goto BCZn4; } goto j1YFv; CeEGa: $this->json_return('8', 0); goto Z05zn; itVtc: if (!($v['type'] == 'pic')) { goto dLMz2; } goto D1LRs; ga2gu: $data['detail'][$k]['val']['latitude'] = $re['lat']; goto Ef294; KDMc6: if (!(count($v['val']) > 8)) { goto wUNRX; } goto CeEGa; U0wrO: S39yf: goto ESa4U; LqJOn: $data['detail'][$k]['val'][] = $v['val']; goto ysY04; ItIbY: VmwcA: goto s6FDl; ysY04: dLMz2: goto rnVDa; Ef294: $data['detail'][$k]['val']['longitude'] = $re['lng']; goto U0wrO; FZhkH: MzMpL: goto ywQ0r; BlaUv: $this->json_return('9', 0); goto kONby; t3u6U: if (!($tencent_map_key != '')) { goto UmmU1; } goto nOd26; P5KZC: BCZn4: goto dnK2H; ESa4U: UmmU1: goto cHQQb; s6FDl: if (!(count($v['val']) > 9)) { goto fa0f3; } goto BlaUv; nOd26: $re = getLatLng($v['val']['title'], $tencent_map_key); goto XoMON; cHgI0: RIKH5: goto ttSh2; bWZ63: wH8wb: goto muRO5; kONby: fa0f3: goto cHgI0; rnVDa: goto wH8wb; goto mj2rL; dnK2H: if (!($v['val']['latitude'] == '' || $v['val']['longitude'] == '' && $v['val']['title'] != '')) { goto UYvTP; } goto yYeBr; jZSix: } goto iJTic; nqYUr: $result = pdo_update($this->tablePrefix . 'goods', $condition, array("id" => $id)); goto zVWes; CQY3v: wCiLv: goto wnm0U; iJTic: XjRwX: goto CQY3v; T_fQy: $condition['goods_stock'] = trim($data['goods_stock']) != '' ? trim($data['goods_stock']) : $this->json_return('', 0); goto jRrhP; ddJd2: $condition['update_time'] = time(); goto nqYUr; DOq3E: if (!(count($data['detail']) > 0)) { goto wCiLv; } goto Qen3C; wnm0U: $condition['goods_content'] = json_encode($data['detail']); goto nk9gY; TNKSh: $data = $_GPC['data']; goto pxMo6; qHJ8_: goto B97wE; goto mdY6K; b3VAW: $condition['uid'] = $store['uid']; goto gbWAw; LIGgy: $url = $this->createWebUrl('itemStore') . '&card_id=' . $store['card_id']; goto Clzu7; HtBdj: global $_GPC, $_W; goto TNKSh; k4KGc: if (!(count($data['goods_pics']) > 9)) { goto mr4YS; } goto XqYWx; jRrhP: $condition['order_sort'] = intval($data['order_sort']); goto DOq3E; WuPTM: vaWHz: goto LIGgy; sn9yq: $condition['card_id'] = $store['card_id']; goto b3VAW; zVWes: B97wE: goto C1LKN; FY1o1: if ($id > 0) { goto erJrq; } goto JEFBH; ktE7e: $store_id = intval($data['store_id']) > 0 ? intval($data['store_id']) : $this->json_return('', 0); goto ZA7Oc; feHoE: } public function doWebItemStoreDel() { goto MKXM5; r36F2: $this->json_return('', 0); goto RMB4M; QAQpJ: xWWMu: goto l0L8I; vOGZw: nu4qe: goto WdRRN; RMB4M: goto xWWMu; goto vOGZw; y2Kcq: if ($result != false) { goto nu4qe; } goto r36F2; WdRRN: $this->json_return(''); goto QAQpJ; USAiG: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto Ev0Wx; MKXM5: global $_GPC, $_W; goto USAiG; Ev0Wx: $result = pdo_delete($this->tablePrefix . 'goods', array("id" => $id)); goto y2Kcq; l0L8I: } public function doWebItemGoodsStatus() { goto RgyH2; zGeQ7: grdjr: goto UYedr; igzMX: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto y6Lw4; y6Lw4: $status = intval($_GPC['status']); goto UNS_0; RgyH2: global $_GPC, $_W; goto igzMX; z0340: if ($result != false) { goto zsRgv; } goto STq9k; UNS_0: $result = pdo_update($this->tablePrefix . 'goods', array("status" => $status), array("id" => $id)); goto z0340; Mk8Fp: zsRgv: goto rs3O7; ZI53a: goto grdjr; goto Mk8Fp; STq9k: $this->json_return('', 0); goto ZI53a; rs3O7: $this->json_return(''); goto zGeQ7; UYedr: } public function doWebSystemConfig() { goto zWxWP; CRygT: $list = pdo_getall($this->tablePrefix . $this->configTable, array("uniacid" => $_W['uniacid'], "parent_id" => 0, "status" => 1), array("id", "code", "name"), '', array("sort_order DESC")); goto RyIwV; xZqPC: $configList = array(); goto tnQYo; oBqOi: Z310J: goto MrPKA; RyIwV: if (!(count($list) > 0)) { goto Z310J; } goto xZqPC; xjhuM: VGGaC: goto oBqOi; tnQYo: foreach ($list as $k => $v) { goto OSyV5; Oz91T: YPpIu: goto LvSAE; fFL6r: PDjUA: goto Oz91T; OSyV5: $child = pdo_getall($this->tablePrefix . $this->configTable, array("uniacid" => $_W['uniacid'], "parent_id" => $v['id'], "status" => 1), array("id", "parent_id", "name", "code", "type", "store_range", "value", "tip"), '', array("sort_order DESC")); goto mbWls; mbWls: foreach ($child as $k2 => $v2) { goto ZbAxt; ZbAxt: if (!($v2['store_range'] != '')) { goto V00EU; } goto zOVGH; h_R7k: dRbXY: goto rtuqS; Ej8fz: $configList[$k][$k2] = $v2; goto h_R7k; zOVGH: $v2['store_range'] = json_decode($v2['store_range'], true); goto UYtKp; UYtKp: V00EU: goto Ej8fz; rtuqS: } goto fFL6r; LvSAE: } goto xjhuM; MrPKA: include $this->template('system_config/system_config'); goto CHAaN; zWxWP: global $_GPC, $_W; goto CRygT; CHAaN: } public function doWebSystemConfigSave() { goto hZsJo; UUGWs: kpZ4R: goto aevOB; Yg5hA: n6G_3: goto PK79W; IPV0o: $list = pdo_getall($this->tablePrefix . $this->configTable, array("uniacid" => $_W['uniacid'], "status" => 1), array("code", "type", "value")); goto QgosQ; PK79W: foreach ($list as $key => $v) { goto z5RsY; W0nR4: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $condition[$v['code']]), array("uniacid" => $_W['uniacid'], "code" => $v['code'])); goto S6vM7; Q8tmw: goto PFjLh; goto eKONb; oD6nT: $this->json_return('', 0); goto upLnn; eKONb: VkCbh: goto W0nR4; z5RsY: if (!array_key_exists($v['code'], $condition)) { goto ISZ5r; } goto S7apc; DnZwQ: PFjLh: goto q_zFL; VGd3U: ISZ5r: goto DnZwQ; S7apc: if (!($v['value'] === $condition[$v['code']])) { goto VkCbh; } goto Q8tmw; upLnn: Bg6Fv: goto VGd3U; S6vM7: if (!($result != true)) { goto Bg6Fv; } goto oD6nT; q_zFL: } goto UUGWs; QgosQ: foreach ($list as $v) { goto ABaac; J9bxQ: AN048: goto BBpqA; ABaac: if (!array_key_exists($v['code'], $_GPC)) { goto U6hCp; } goto zEP99; jXAJN: if (!($v['type'] == 'switch')) { goto h_qc5; } goto GXyHz; kIZHj: $condition[$v['code']] = $_GPC[$v['code']]; goto WTQKa; ZATq3: goto AN048; goto sAhtb; zEP99: if (is_array($_GPC[$v['code']])) { goto thG01; } goto kIZHj; Xluto: cKrU5: goto X1pnF; sAhtb: thG01: goto a0OaM; pkYyM: h_qc5: goto Xluto; BBpqA: U6hCp: goto jXAJN; R7pYu: unset($condition[$v['code']]); goto LyZgP; GXyHz: $condition[$v['code']] = $_GPC[$v['code']] != NULL ? $_GPC[$v['code']] : '0'; goto pkYyM; LyZgP: Bc9on: goto ZATq3; WTQKa: if (!($condition[$v['code']] === '')) { goto Bc9on; } goto Q28x1; a0OaM: $condition[$v['code']] = implode(',', $_GPC[$v['code']]); goto J9bxQ; Q28x1: pdo_update($this->tablePrefix . $this->configTable, array("value" => ""), array("code" => $v['code'], "uniacid" => $_W['uniacid'])); goto R7pYu; X1pnF: } goto Yg5hA; aevOB: $this->json_return(''); goto PjS1L; hZsJo: global $_GPC, $_W; goto IPV0o; PjS1L: } public function doWebConfigBack() { goto V4YCr; V4YCr: global $_GPC, $_W; goto e4bd0; AnmoU: include $this->template('system_config/config_back_list'); goto jsqm3; e4bd0: $list = pdo_getall($this->tablePrefix . 'configbak', array("uniacid" => $_W['uniacid']), array("id", "back_name", "create_time"), '', array("create_time desc"), array()); goto AnmoU; jsqm3: } public function doWebConfigBackEdit() { global $_GPC, $_W; include $this->template('system_config/config_back_info'); } public function doWebConfigBackSave() { goto wg2sa; cTMnE: $condition['create_time'] = time(); goto Vik9M; yH9GQ: $this->json_return('', 1); goto deVRX; lKrAq: $condition['back_up'] = serialize($list); goto Akjkl; Vik9M: $result = pdo_insert($this->tablePrefix . 'configbak', $condition); goto MgPh0; wg2sa: global $_GPC, $_W; goto FuGGf; GjJqZ: if (count($list) > 0) { goto qhw_0; } goto gKmgE; deVRX: goto KZcja; goto duS7v; dZzLN: goto AmaVo; goto ESy1l; duS7v: Z51OC: goto ny_5_; MgPh0: if ($result != false) { goto Z51OC; } goto yH9GQ; bwr_M: $list = pdo_getall($this->tablePrefix . $this->configTable, array("uniacid" => $_W['uniacid']), array(), '', array()); goto GjJqZ; hhDLw: AmaVo: goto XIx1B; Akjkl: $condition['uniacid'] = $_W['uniacid']; goto cTMnE; ny_5_: $this->json_return(''); goto XPvlB; gKmgE: $this->json_return('', 1); goto dZzLN; XPvlB: KZcja: goto hhDLw; ESy1l: qhw_0: goto lKrAq; FuGGf: $condition['back_name'] = trim($_GPC['back_name'] != '') ? trim($_GPC['back_name']) : $this->json_return('', 0); goto bwr_M; XIx1B: } public function doWebConfigBackReduction() { goto R15BU; LlTL1: sb6kX: goto la65o; xuQRq: u0YTl: goto B_o6Z; PcRtR: $info = pdo_fetch('SELECT `back_up` FROM ' . tablename($this->tablePrefix . 'configbak') . ' WHERE `id`=:id and `uniacid` =:uniacid', array("id" => $id, ":uniacid" => $_W['uniacid'])); goto NDbGC; TkTIK: $codes = array(); goto JMptv; la65o: $list = pdo_getall($this->tablePrefix . $this->configTable, array("uniacid" => $_W['uniacid']), array("id", "code", "value")); goto EiJp3; VpPDr: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto PcRtR; NDbGC: $info = unserialize($info['back_up']); goto TkTIK; EiJp3: foreach ($list as $v) { goto SSxLZ; vBfM3: AN31Q: goto k3d35; vduDt: goto l2BC3; goto bBeOC; u94xj: BlRqa: goto J6qEv; gQgbe: if ($v['code'] != '') { goto h_C8L; } goto YRJ4D; zZnZY: goto SwXQz; goto R_m3P; bgpbA: F5i7b: goto u94xj; f3BMx: $re1 = 1; goto zZnZY; FLRGF: $data['value'] = ''; goto xWulZ; LGUvI: $re2 = pdo_update($this->tablePrefix . $this->configTable, array("value" => $codes[$v['code']]), array("code" => $v['code'], "uniacid" => $_W['uniacid'])); goto mo6A0; iSqEQ: Cj04F: goto RqSkI; mo6A0: goto gaB4m; goto vBfM3; RqSkI: if ($codes[$v['code']] == '') { goto AN31Q; } goto LGUvI; PLygj: Mq1GQ: goto yyCWp; bBeOC: h_C8L: goto uc99R; wiebC: SwXQz: goto u3WVW; YRJ4D: goto BlRqa; goto vduDt; vZKuh: goto Mq1GQ; goto iSqEQ; SSxLZ: if (!array_key_exists($v['code'], $codes)) { goto F5i7b; } goto gQgbe; xWulZ: $re1 = pdo_update($this->tablePrefix . $this->configTable, $data, array("code" => $v['code'], "uniacid" => $_W['uniacid'])); goto wiebC; yyCWp: l2BC3: goto bgpbA; uc99R: if ($v['value'] != '') { goto IL5Bd; } goto f3BMx; gXBrS: $data = array(); goto FLRGF; GEel4: gaB4m: goto PLygj; yP2H7: $this->json_return('' . $v['code'] . '', 0); goto vZKuh; R_m3P: IL5Bd: goto gXBrS; u3WVW: if ($re1 != false) { goto Cj04F; } goto yP2H7; k3d35: goto BlRqa; goto GEel4; J6qEv: } goto xuQRq; JMptv: foreach ($info as $v) { $codes[$v['code']] = $v['value']; fmJ7K: } goto LlTL1; B_o6Z: $this->json_return(''); goto GaS3w; R15BU: global $_GPC, $_W; goto VpPDr; GaS3w: } public function doWebConfigBackDel() { goto T3eet; SFZuc: if ($result != false) { goto BHe3Q; } goto G07W9; dZm4s: $result = pdo_delete($this->tablePrefix . 'configbak', array("id" => $id, "uniacid" => $_W['uniacid'])); goto SFZuc; KbMd9: goto hAU_6; goto rKijc; yTNi6: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto dZm4s; rKijc: BHe3Q: goto aD03v; aD03v: $this->json_return(''); goto F107A; T3eet: global $_GPC, $_W; goto yTNi6; F107A: hAU_6: goto PKcI5; G07W9: $this->json_return('', 0); goto KbMd9; PKcI5: } public function doWebOrderStatistics() { goto IjQb5; Pow_O: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto iZHnB; NkPLr: $nextday1 = date('Y-m-d 23:59:59', strtotime("-{$i} days")); goto Re1PJ; MbfXw: mxu9a: goto Gni_1; z9VKn: $start_time = strtotime(date('Y-m-d 00:00:00')); goto gLPQV; mQf9h: $total_order_no = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 0'); goto iITSJ; cHve_: if (!($i < 30)) { goto k4k4x; } goto cR83o; IjQb5: global $_GPC, $_W; goto z9VKn; sOfZe: $count['totalData'] = array_reverse($count['totalData']); goto BzRuL; Gni_1: $i++; goto DGV3t; CxUZz: DDHTp: goto cHve_; ooAIv: $count['time'] = array(); goto ry8HC; ry8HC: $i = 0; goto CxUZz; Yz7LN: $today_order_no = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 0 and `create_time` > ' . $start_time); goto mQf9h; n6hjD: include $this->template('order/order_statistics'); goto CceTo; WnTup: $count['successData'] = array(); goto rsdb8; foFMH: $count = json_encode($count); goto n6hjD; cR83o: $prevday1 = date('Y-m-d 00:00:00', strtotime("-{$i} days")); goto NkPLr; wznLO: $total_order_yes = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1'); goto Yz7LN; iZYzP: $today_order_yes = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` > ' . $start_time); goto wznLO; Bh31Q: $today_total_fee = pdo_fetchall('SELECT SUM(`fee`) as `fee` From ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `pay_time` > ' . $start_time); goto Er7lG; Er7lG: $total_fee = pdo_getall($this->tablePrefix . 'orders', array("uniacid" => $_W['uniacid'], "status" => 1), array("SUM(fee) as totalFee")); goto y1HIl; rsdb8: $count['totalData'] = array(); goto ooAIv; DGV3t: goto DDHTp; goto tj6vG; iITSJ: $count = array(); goto WnTup; y1HIl: $total_order = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid']); goto iZYzP; tj6vG: k4k4x: goto L5T64; Re1PJ: $prevday = strtotime(date('Y-m-d 00:00:00', strtotime("-{$i} days"))); goto U6Y5m; L5T64: $count['successData'] = array_reverse($count['successData']); goto sOfZe; gLPQV: $today_total_order = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` > ' . $start_time); goto Bh31Q; TXbLl: $count['time'][] = date('Y-m-d', strtotime("-{$i} days")); goto MbfXw; qR3lq: $count['totalData'][] = $totalData['count']; goto TXbLl; GD3dn: $count['successData'][] = $successData['count']; goto qR3lq; BzRuL: $count['time'] = array_reverse($count['time']); goto foFMH; U6Y5m: $nextday = strtotime(date('Y-m-d 23:59:59', strtotime("-{$i} days"))); goto Pow_O; iZHnB: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto GD3dn; CceTo: } public function doWebGetOrder() { goto Sjyvs; JSwJn: eERi2: goto UZ3or; c3qoe: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto QPhTy; Mbv3V: if ($data['dateType'] == 0) { goto izD0e; } goto Evuv5; i0_Py: KY4jY: goto XwIwD; f3qaS: $i = 0; goto do3uW; S8kFR: $nextTime = strtotime(date('Y-m-d 23:59:59', strtotime($date[0] . '+' . $j . ' day'))); goto Vw1bL; ct_fg: XSebh: goto IGay7; Qyf9Z: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto NtUMg; G4BRT: $i = $start; goto t9qFj; jAUdJ: $nextTime = strtotime(date('Y-m-' . $i . ' 23:59:59', strtotime('-1 month'))); goto csRSe; UX36K: $count['time'][] = date('Y-m-d', $prevTime); goto Uguli; g5PXh: $i++; goto aV5Bm; xqYys: $prevTime = strtotime(date('Y-m-' . $i . ' 00:00:00', strtotime('-1 month'))); goto jAUdJ; mkibw: $nextday = strtotime(date('Y-m-d 23:59:59', strtotime("-{$i} days"))); goto Cdp1F; kChVA: $count['time'][] = date('H', $prevTime); goto wQef3; BlAJf: goto A6C7R; goto JSwJn; RcU5C: $count['time'][] = date('Y-m-d', $prevTime); goto jUpLG; FBdxM: $data = $_GPC['data']; goto mjSYD; s8MRI: lKZPu: goto BlAJf; QPhTy: $count['successData'][] = $successData['count']; goto bsHdi; iA3ZB: $count['time'] = array(); goto FBdxM; yil4y: if (!($i <= $time)) { goto KY4jY; } goto L1n8p; pT2Ni: goto aRafz; goto k97Zr; agP6J: $count['time'] = array_reverse($count['time']); goto GzWy5; p5SgJ: goto lKZPu; goto ESum1; firvR: goto UHzWf; goto yRhr7; tvzFN: $count['time'][] = date('H', $prevTime); goto Zq71l; FHnFP: $count['successData'] = array_reverse($count['successData']); goto X2sqH; MP8jd: goto upJiJ; goto ItP0w; Cg2kR: $count['successData'][] = $successData['count']; goto fdy9L; bm8Du: $i++; goto pT2Ni; I1u9d: $count = array(); goto vSKtB; f2ZLe: $days = date('t', strtotime('-1 month')); goto uZ11o; T9P3Q: goto zIbrU; goto ct_fg; dJSJu: UHzWf: goto T9P3Q; bsDZG: $prevTime = strtotime(date('Y-m-' . $i . ' 00:00:00')); goto KQuxm; NZYyg: $nextTime = strtotime(date('Y-m-' . $day . ' ' . $i . ':59:59')); goto OD4j1; LAilo: $count['totalData'] = array(); goto iA3ZB; ikFhs: $count['totalData'][] = $totalData['count']; goto qd2Dn; ItP0w: kgdsv: goto f2ZLe; orPVd: $prevTime = strtotime(date('Y-m-d 00:00:00', strtotime($date[0] . '+' . $j . ' day'))); goto S8kFR; SN23H: IXbn6: goto VP_eM; PMxLq: $count['totalData'][] = $totalData['count']; goto RcU5C; fdy9L: $count['totalData'][] = $totalData['count']; goto UqaK5; gYYXI: $prevday = strtotime(date('Y-m-d 00:00:00', strtotime("-{$i} days"))); goto mkibw; NBxM0: $totalData = pdo_fetch('SELECT  COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto n_s8Y; Evuv5: if ($data['dateType'] == 1) { goto eERi2; } goto LBbs6; mKyT8: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto F9cfU; SPLEd: return $count; goto pbSdi; XiajR: yAy6q: goto ZwDLi; wckTp: $count = json_encode($count); goto SPLEd; Ao1NB: $i++; goto WAGZu; X2sqH: $count['totalData'] = array_reverse($count['totalData']); goto agP6J; SUY3U: $count['time'][] = '   ' . date('H', $prevTime); goto Wlnm3; rsyrH: GSlhP: goto VAd5E; NYyxc: m5zoH: goto reDfL; qSwI_: if (strpos($data['time'], '-')) { goto IXbn6; } goto n7niJ; U8Ish: vkCOl: goto FHnFP; NtUMg: $count['successData'][] = $successData['count']; goto mE1sE; Aq5OS: neBG6: goto egMG2; UZ3or: $time = date('H'); goto f3qaS; KQuxm: $nextTime = strtotime(date('Y-m-' . $i . ' 23:59:59')); goto jsyXT; IGay7: $i = 0; goto rsyrH; t9qFj: MGQEF: goto BmNox; RI6Ob: goto GSlhP; goto U8Ish; uaUsR: yz_L6: goto MP8jd; UqaK5: if ($i == 0) { goto r8dYL; } goto tvzFN; OD4j1: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto mKyT8; do3uW: jNsF3: goto yil4y; Uguli: oB89o: goto Ao1NB; irCsS: $count['totalData'][] = $totalData['count']; goto EVtfE; F9cfU: $count['successData'][] = $successData['count']; goto ikFhs; mjSYD: if ($data['dateType'] == 7 || $data['dateType'] == 30) { goto XSebh; } goto Mbv3V; JIOmJ: nXaxs: goto NYyxc; aV5Bm: goto yAy6q; goto zmZDf; Sjyvs: global $_GPC, $_W; goto I1u9d; csRSe: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto LtC4k; ESum1: cDcGn: goto O7sNO; L1n8p: $prevTime = strtotime(date('Y-m-d ' . $i . ':00:00')); goto u126Z; eGGHS: IkH2Y: goto g5PXh; tMKth: U5UgI: goto bm8Du; b1i6R: $days = date('d'); goto BfEAK; GzWy5: zIbrU: goto Pj5rx; yRhr7: izD0e: goto qSwI_; Pj5rx: $this->json_return('', 1, $count); goto wckTp; LHg6J: $count['successData'][] = $successData['count']; goto PMxLq; bsHdi: $count['totalData'][] = $totalData['count']; goto XcYHf; k97Zr: VB7RM: goto s8MRI; Zq71l: goto nXaxs; goto adg4u; vK9nJ: $j = 0; goto G4BRT; uoTED: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto Qyf9Z; jsyXT: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto NBxM0; eLEQK: goto neBG6; goto O1BcD; adg4u: r8dYL: goto GHs1g; XGhxT: $prevTime = strtotime(date('Y-m-' . $day . ' ' . $i . ':00:00')); goto NZYyg; VAd5E: if (!($i < $data['dateType'])) { goto vkCOl; } goto gYYXI; GHs1g: $count['time'][] = '   ' . date('H', $prevTime); goto JIOmJ; LtC4k: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto LHg6J; n7niJ: $this->json_return('', 0); goto Ig0Qp; qd2Dn: if ($i == 0) { goto vM4fe; } goto kChVA; Rvgi7: aRafz: goto vxORw; xaM04: $day -= 1; goto ofMyR; RUM8u: if (!($data['dateType'] == 4)) { goto yz_L6; } goto b1i6R; vxORw: if (!($i < 24)) { goto VB7RM; } goto XGhxT; BfEAK: $i = 1; goto XiajR; Vz1un: $i++; goto eLEQK; VP_eM: $date = explode('-', $data['time']); goto HvgEI; O7sNO: $day = date('d'); goto xaM04; Ko0fD: $start = date('d', strtotime($date[0])); goto vK9nJ; HvgEI: $days = getDays(strtotime($date[0]), strtotime($date[1])); goto Efd2I; uZ11o: $i = 1; goto Aq5OS; EVtfE: $count['time'][] = date('Y-m-' . $i, $prevTime); goto eGGHS; Cdp1F: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto c3qoe; Vw1bL: $j += 1; goto uoTED; mnpog: goto jNsF3; goto i0_Py; LBbs6: if ($data['dateType'] == 2) { goto cDcGn; } goto IY9Ik; reDfL: $i++; goto mnpog; n_s8Y: $count['successData'][] = $successData['count']; goto irCsS; OapCG: vM4fe: goto SUY3U; mE1sE: $count['totalData'][] = $totalData['count']; goto UX36K; zmZDf: zUoae: goto uaUsR; BmNox: if (!($i <= $days + $start)) { goto rlrGH; } goto orPVd; egMG2: if (!($i <= $days)) { goto b3RAx; } goto xqYys; jUpLG: MYPRa: goto Vz1un; Efd2I: oF3Jp: goto Ko0fD; pRCia: $i++; goto RI6Ob; IY9Ik: if ($data['dateType'] == 3) { goto kgdsv; } goto RUM8u; XwIwD: A6C7R: goto firvR; WAGZu: goto MGQEF; goto cpAUf; WSzuL: upJiJ: goto p5SgJ; O1BcD: b3RAx: goto WSzuL; CIQAY: XhqeC: goto pRCia; Wlnm3: rqDBl: goto tMKth; zqeub: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto nmm3c; cpAUf: rlrGH: goto dJSJu; XcYHf: $count['time'][] = date('Y-m-d', strtotime("-{$i} days")); goto CIQAY; nmm3c: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'orders') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto Cg2kR; Ig0Qp: goto oF3Jp; goto SN23H; vSKtB: $count['successData'] = array(); goto LAilo; ofMyR: $i = 0; goto Rvgi7; u126Z: $nextTime = strtotime(date('Y-m-d ' . $i . ':59:59')); goto zqeub; ZwDLi: if (!($i <= $days)) { goto zUoae; } goto bsDZG; wQef3: goto rqDBl; goto OapCG; pbSdi: } public function doWebSquareComments() { goto uv9Sx; uv9Sx: global $_GPC, $_W; goto r8kC8; XUqj3: $pager = pagination($count, $pageindex, $pagesize); goto kkCdj; A1onz: include $this->template('square/square_comments'); goto f1fnx; id7W3: $allList = pdo_fetchall('SELECT `c`.`id`,`c`.`uniacid`,`c`.`sid`,`c`.`uid`,`c`.`comment`,`c`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'squarecomments') . ' `c` LEFT JOIN ' . tablename('mc_members') . ' `m` on `c`.`uid`=`m`.`uid` ' . $where . ' ORDER BY id DESC'); goto Uh3hn; EzemI: if (!isset($_GPC['page'])) { goto eSqPY; } goto yWlvM; yWlvM: $pageindex = intval($_GPC['page']); goto abB1Y; M1sv3: rZYwB: goto A1onz; dnUlC: $pagesize = 7; goto EzemI; SEH3_: $where = 'WHERE `c`.`sid`=' . $sid; goto OPMp8; zFWiq: foreach ($list as &$v) { $v['comment'] = urldecode($v['comment']); u4ar2: } goto M1sv3; Bc4cL: if (!($sid > 0)) { goto KJ4nc; } goto SEH3_; XBnNP: $pageindex2 = 0; goto Xn57I; zvhDH: goto opro9; goto fa176; abB1Y: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto zvhDH; kkCdj: $list = pdo_fetchall('SELECT `c`.`id`,`c`.`uniacid`,`c`.`sid`,`c`.`uid`,`c`.`comment`,`c`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'squarecomments') . ' `c` LEFT JOIN ' . tablename('mc_members') . ' `m` on `c`.`uid`=`m`.`uid` ' . $where . ' ORDER BY id DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto zFWiq; r8kC8: $sid = intval($_GPC['sid']); goto Bc4cL; OPMp8: KJ4nc: goto id7W3; Xn57I: opro9: goto XUqj3; nRyxu: $pageindex = 0; goto XBnNP; Uh3hn: $count = count($allList); goto dnUlC; fa176: eSqPY: goto nRyxu; f1fnx: } public function doWebSquareCommentsDel() { goto sTvLI; KpTZu: $data = pdo_fetch('SELECT `s`.`id`,`s`.`comments` FROM ' . tablename($this->tablePrefix . 'squarecomments') . ' `c` LEFT JOIN ' . tablename($this->tablePrefix . 'square') . ' `s` ON `c`.`sid`=`s`.`id` WHERE `c`.`id`=:id', array(":id" => $id)); goto Oo_jD; kfz3x: pdo_update($this->tablePrefix . 'square', array("comments" => $data['comments'] - 1), array("id" => $data['id'])); goto uEwUP; k53fm: QLHBA: goto kfz3x; P581A: goto xsCfs; goto k53fm; sTvLI: global $_GPC, $_W; goto ruIZQ; uEwUP: $this->json_return(''); goto jUhri; ruIZQ: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto KpTZu; KyFaY: if ($result != false) { goto QLHBA; } goto NJ8O5; jUhri: xsCfs: goto FZstG; Oo_jD: $result = pdo_delete($this->tablePrefix . 'squarecomments', array("id" => $id, "uniacid" => $_W['uniacid'])); goto KyFaY; NJ8O5: $this->json_return('', 0); goto P581A; FZstG: } public function doWebAgentCenter() { goto GGRZl; bQfBg: Q0pig: goto WI_Fv; SI14R: if (!$nickname) { goto t9BOo; } goto OcGkn; Whnk1: $total = count($totalList); goto a1rRX; PHcV7: irlbz: goto CgXiM; BtC7N: $pager = pagination($total, $pageindex, $pagesize); goto JOeJZ; JOeJZ: $list = pdo_fetchall('SELECT `u`.`id`, `u`.`agent_open_time`,`u`.`agent`,`u`.`agent_profit`,`u`.`agent_balance`,`u`.`agent_status`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'user') . ' `u` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `u`.`id`= `m`.`uid`' . $where . ' ORDER BY `u`.`id` DESC LIMIT ' . $pageindex1 . ' , ' . $pagesize); goto HGhpG; pm92c: $pageindex = $_GPC['page']; goto sNn06; sYnrN: $where = ' WHERE `u`.`uniacid` = ' . $_W['uniacid'] . ' and `u`.`agent` > 0'; goto kiSJF; lr7O3: R4ygw: goto BtC7N; BncXr: $agent = ''; goto iLctC; CgXiM: $pageindex = 0; goto M5Q0V; qkZ6Y: beYAb: goto vtwDE; vtwDE: if (!($datemax && $datemin == false)) { goto IqYOL; } goto AEP8x; MwCHm: if (!($datemin && $datemax == false)) { goto beYAb; } goto BmW0_; n09zL: $where .= ' and `u`.`agent` = ' . $_GPC['agent']; goto bQfBg; zt2Ql: if (!isset($_GPC['page'])) { goto irlbz; } goto pm92c; iLctC: $agent = $_GPC['agent']; goto lbsnJ; txMDq: include $this->template('agent_center/agent_center'); goto qTYKi; re9A2: sjKRU: goto MwCHm; sNn06: $pageindex1 = (intval($_GPC['page']) - 1) * 6; goto kEr7K; ltsXt: VqA9p: goto MxaDq; CTPmu: foreach ($gradeData as $v) { $agent_grade[$v['id']] = $v['name']; TnN5X: } goto hViUh; M5Q0V: $pageindex1 = 0; goto lr7O3; WI_Fv: $datemin = strtotime($_GPC['datemin']); goto FALiB; MxaDq: foreach ($list as $k => $v) { $list[$k]['agent'] = $agent_grade[$v['agent']]; Nokq2: } goto zkpQn; eDpBa: if (!($datemin && $datemax)) { goto sjKRU; } goto GygBw; GGRZl: global $_GPC, $_W; goto E_pHS; kiSJF: $nickname = trim($_GPC['nickname']); goto SI14R; lbsnJ: if (!($agent != '')) { goto Q0pig; } goto n09zL; OcGkn: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto R0iTp; R0iTp: t9BOo: goto BncXr; kEr7K: goto R4ygw; goto PHcV7; a1rRX: $pagesize = 6; goto zt2Ql; BmW0_: $where .= ' and `u`.`agent_open_time` > ' . $datemin; goto qkZ6Y; HGVvW: $agent_grade = array(); goto blEKg; zkpQn: PoWu2: goto txMDq; HWXzj: $totalList = pdo_fetchall('SELECT `u`.`id` FROM ' . tablename($this->tablePrefix . 'user') . ' `u` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `u`.`id` = `m`.`uid`' . $where . ' ORDER BY `u`.`id` DESC'); goto Whnk1; E_pHS: $url = $this->createWebUrl('agentCenter'); goto sYnrN; AEP8x: $where .= ' and `u`.`agent_open_time` < ' . $datemax; goto riWn0; blEKg: if (!(count($gradeData) > 0)) { goto VqA9p; } goto CTPmu; FALiB: $datemax = strtotime($_GPC['datemax']); goto eDpBa; hViUh: hlQG1: goto ltsXt; riWn0: IqYOL: goto HWXzj; HGhpG: $gradeData = unserialize(getAppConfSd('agent_grade')); goto HGVvW; GygBw: $where .= ' and `u`.`agent_open_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto re9A2; qTYKi: } public function doWebAgentGrade() { goto OjxWY; OjxWY: global $_GPC, $_W; goto utEZ6; IIqcJ: include $this->template('agent_center/agent_grade'); goto gYHkm; Y98wA: if (!(count($gradeData) > 0)) { goto ZcfpY; } goto p749l; DRQ1_: I9w3c: goto sZAPb; p749l: foreach ($gradeData as $v) { goto gQ9Pu; iPeY4: $agent_grade['original_price' . $v['id']] = $v['original_price']; goto WCY0z; V0X5d: $agent_grade['price' . $v['id']] = $v['price']; goto H6Isq; wt12F: MHYfo: goto PqpJo; gQ9Pu: $agent_grade['name' . $v['id']] = $v['name']; goto V0X5d; WUyu5: $agent_grade['pic' . $v['id']] = $v['pic']; goto iPeY4; WCY0z: $agent_grade['agent_explain' . $v['id']] = $v['agent_explain']; goto rqson; rqson: $agent_grade['status' . $v['id']] = $v['status']; goto wt12F; jDVna: $agent_grade['two_profit' . $v['id']] = $v['two_profit']; goto PfGB5; PfGB5: $agent_grade['three_profit' . $v['id']] = $v['three_profit']; goto WUyu5; H6Isq: $agent_grade['one_profit' . $v['id']] = $v['one_profit']; goto jDVna; PqpJo: } goto DRQ1_; utEZ6: $gradeData = unserialize(getAppConfSd('agent_grade')); goto cSB3S; sZAPb: ZcfpY: goto IIqcJ; cSB3S: $agent_grade = array(); goto Y98wA; gYHkm: } public function doWebAgentGradeSave() { goto Eewls; SqN_c: LZpwD: goto ZW6zQ; pTj7E: GmqQb: goto VA6Nr; zjO7G: if (!(trim($_GPC['price1']) == '' || trim($_GPC['price2']) == '' || trim($_GPC['price3']) == '')) { goto a2StX; } goto MPqQY; BjY7n: goto LZpwD; goto pTj7E; g0x0e: $arr = serialize($arr); goto p_1WE; I50o6: $this->json_return('', 0); goto oVHVT; MPqQY: $this->json_return('', 0); goto RlDtM; kEjYC: $this->json_return('', 0); goto WG7nc; rmy81: $this->json_return('', 0); goto IiCr2; OYUln: $this->json_return('', 0); goto BjY7n; WG7nc: PGRuV: goto eLlDx; VA6Nr: $this->json_return(''); goto SqN_c; IiCr2: az3VS: goto zjO7G; RVtwb: $arr = array(array("id" => 1, "name" => trim($_GPC['name1']), "price" => trim($_GPC['price1']), "one_profit" => trim($_GPC['one_profit1']), "two_profit" => $_GPC['two_profit1'], "three_profit" => $_GPC['three_profit1'], "pic" => $_GPC['pic1'], "original_price" => $_GPC['original_price1'], "agent_explain" => $_GPC['agent_explain1']), array("id" => 2, "name" => trim($_GPC['name2']), "price" => trim($_GPC['price2']), "one_profit" => trim($_GPC['one_profit2']), "two_profit" => $_GPC['two_profit2'], "three_profit" => $_GPC['three_profit2'], "pic" => $_GPC['pic2'], "original_price" => $_GPC['original_price2'], "agent_explain" => $_GPC['agent_explain2'], "status" => $_GPC['status2'] ? 1 : 0), array("id" => 3, "name" => trim($_GPC['name3']), "price" => trim($_GPC['price3']), "one_profit" => trim($_GPC['one_profit3']), "two_profit" => $_GPC['two_profit3'], "three_profit" => $_GPC['three_profit3'], "pic" => $_GPC['pic3'], "original_price" => $_GPC['original_price3'], "agent_explain" => $_GPC['agent_explain3'], "status" => $_GPC['status3'] ? 1 : 0)); goto g0x0e; KmlXu: if (!(trim($_GPC['one_profit1']) == '' || trim($_GPC['one_profit2']) == '' || trim($_GPC['one_profit3']) == '')) { goto l5IDt; } goto F5POv; bN1eu: if ($result != false) { goto GmqQb; } goto OYUln; MUurV: if (!(trim($_GPC['name1']) == '' || trim($_GPC['name2']) == '' || trim($_GPC['name3']) == '')) { goto az3VS; } goto rmy81; oVHVT: shoAD: goto RVtwb; F5POv: $this->json_return('', 0); goto zEEXC; Eewls: global $_GPC, $_W; goto MUurV; RlDtM: a2StX: goto KmlXu; tSxDu: if (!(trim($_GPC['two_profit1']) == '' || trim($_GPC['two_profit2']) == '' || trim($_GPC['two_profit3']) == '')) { goto PGRuV; } goto kEjYC; p_1WE: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $arr), array("uniacid" => $_W['uniacid'], "code" => "agent_grade")); goto bN1eu; eLlDx: if (!(trim($_GPC['three_profit1']) == '' || trim($_GPC['three_profit2']) == '' || trim($_GPC['three_profit3']) == '')) { goto shoAD; } goto I50o6; zEEXC: l5IDt: goto tSxDu; ZW6zQ: } public function doWebAgentDesign() { goto JGv8Y; lcMXo: $poster_data = json_decode($design['data'], true); goto kq_Jp; kq_Jp: include $this->template('agent_center/agent_design'); goto mCSv1; JGv8Y: global $_GPC, $_W; goto d9aF4; d9aF4: $design = unserialize(getAppConfSd('agent_design')); goto lcMXo; mCSv1: } public function doWebAgentDesignSave() { goto aaUxy; rBVaf: if (empty($_GPC['poster']['data'])) { goto JqOjt; } goto yIztQ; lu0nx: JqOjt: goto QCQU1; aaUxy: global $_GPC, $_W; goto rBVaf; ZgXM3: IWlR5: goto lu0nx; r19MN: $this->json_return(''); goto ZgXM3; pTTaN: $this->json_return('', 0); goto n1oEP; Djb9Z: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => $data), array("uniacid" => $_W['uniacid'], "code" => "agent_design")); goto jIxYm; feZIf: pdo_update($this->tablePrefix . 'user', array("agent_qrpic" => ""), array("uniacid" => $_W['uniacid'])); goto r19MN; n1oEP: goto IWlR5; goto mpEgq; yIztQ: $data = serialize(str_replace('&quot;', '"', $_GPC['poster'])); goto Djb9Z; mpEgq: DzTkE: goto feZIf; jIxYm: if ($result != false) { goto DzTkE; } goto pTTaN; QCQU1: } public function doWebServiceGroupSet() { goto F5oBe; F5oBe: global $_GPC, $_W; goto lt2bl; lt2bl: $list = pdo_fetchall('SELECT  `name`,`code`,`type`,`store_range`,`value`,`tip` FROM ' . tablename($this->tablePrefix . $this->configTable) . ' WHERE `code` in (\'income_words\', \'account_qrcode\') and `uniacid`=:uniacid', array(":uniacid" => $_W['uniacid'])); goto n4cEK; n4cEK: foreach ($list as $v) { goto hJ7HG; oEG43: $data['income_words'] = $v; goto iZAiu; LP_LI: if (!($v['code'] == 'account_qrcode')) { goto fLgmX; } goto fd4f6; hJ7HG: if (!($v['code'] == 'income_words')) { goto pyxgH; } goto oEG43; iZAiu: pyxgH: goto LP_LI; KYS2F: dFhVx: goto z1vPn; fd4f6: $data['account_qrcode'] = $v; goto Gccu1; Gccu1: fLgmX: goto KYS2F; z1vPn: } goto kja7S; kja7S: M6lx_: goto SwX5D; SwX5D: include $this->template('app_set/service_group_set'); goto trer0; trer0: } public function doWebServiceSetSave() { goto b1Hw5; U3c5j: $income_words = $_GPC['income_words']; goto OEx0Q; XOaVb: $account_qr_file = file_remote_attach_fetch(getFileUrlSd($account_qrcode)); goto WR3E8; lBh6b: @chmod($save_path, 0777); goto PzBJR; WAAb9: @copy(ATTACHMENT_ROOT . '/' . $account_qr_file, $save_path); goto lBh6b; IlxzF: if (empty($account_qrcode)) { goto zm51X; } goto XOaVb; PzBJR: file_delete($account_qr_file); goto a_GCL; a_GCL: zm51X: goto eCGc0; dC_QO: pdo_update($this->tablePrefix . $this->configTable, array("value" => $income_words), array("uniacid" => $_W['uniacid'], "code" => "income_words")); goto nPnuc; OEx0Q: $account_qrcode = $_GPC['account_qrcode']; goto dC_QO; eCGc0: $this->json_return(''); goto sRB9l; WR3E8: $save_path = MODULE_ROOT . '/resource/images/account_qrcode.jpg'; goto WAAb9; b1Hw5: global $_GPC, $_W; goto U3c5j; nPnuc: pdo_update($this->tablePrefix . $this->configTable, array("value" => $account_qrcode), array("uniacid" => $_W['uniacid'], "code" => "account_qrcode")); goto IlxzF; sRB9l: } public function doWebAgentSet() { goto U2nk2; YI_mA: id5hX: goto NGrF3; ufdk6: foreach ($list as $v) { goto V9AfV; GmDpk: if (!($v['code'] == 'agent_open_explain')) { goto y3Gu9; } goto fXkWG; sX80M: $data['agent_center_pic'] = $v; goto GN6ze; RMLCC: y3Gu9: goto HnqxZ; Tj6tn: if (!($v['code'] == 'agent_introduct_pic')) { goto KZv9a; } goto md0FX; hMlIO: $data['agent_open_balance'] = $v; goto kE4Q_; kbQrJ: KZv9a: goto fduDF; GN6ze: vBqU2: goto Tj6tn; PVaZ6: $data['agent_switch'] = $v; goto PiKCU; nu6DR: eXeSZ: goto WTd1G; HnqxZ: if (!($v['code'] == 'devied_show_switch')) { goto hlcgB; } goto ETG0_; bhyHx: rDZNK: goto W81YY; W81YY: if (!($v['code'] == 'agent_center_pic')) { goto vBqU2; } goto sX80M; Rd2SB: hlcgB: goto nu6DR; ETG0_: $data['devied_show_switch'] = $v; goto Rd2SB; kE4Q_: OaV6R: goto GmDpk; PiKCU: JcAI6: goto YseIw; V9AfV: if (!($v['code'] == 'agent_switch')) { goto JcAI6; } goto PVaZ6; md0FX: $data['agent_introduct_pic'] = $v; goto kbQrJ; a4_bE: $data['agent_open_pic'] = $v; goto bhyHx; YseIw: if (!($v['code'] == 'agent_open_pic')) { goto rDZNK; } goto a4_bE; fXkWG: $data['agent_open_explain'] = $v; goto RMLCC; fduDF: if (!($v['code'] == 'agent_open_balance')) { goto OaV6R; } goto hMlIO; WTd1G: } goto YI_mA; hgsoa: $list = pdo_fetchall('SELECT  `name`,`code`,`type`,`store_range`,`value`,`tip` FROM ' . tablename($this->tablePrefix . $this->configTable) . ' WHERE `code` in (\'agent_switch\', \'agent_open_pic\', \'agent_center_pic\', \'agent_introduct_pic\', \'agent_open_balance\', \'agent_open_explain\', \'devied_show_switch\') and `uniacid`=:uniacid', array(":uniacid" => $_W['uniacid'])); goto ufdk6; jK8D2: include $this->template('agent_center/agent_set'); goto tMB3T; U2nk2: global $_GPC, $_W; goto hgsoa; NGrF3: $data['withdrawal_method']['store_range'] = json_decode($data['withdrawal_method']['store_range'], true); goto jK8D2; tMB3T: } public function doWebAgentSetSave() { goto NoLjW; BPc1t: $agent_open_pic = $_GPC['agent_open_pic']; goto nK_3O; yyv6q: $agent_open_explain = $_GPC['agent_open_explain']; goto xr79j; r9sXF: $this->json_return(''); goto Ld0H3; cs5IM: $agent_introduct_pic = $_GPC['agent_introduct_pic']; goto yyv6q; JhCnn: pdo_update($this->tablePrefix . $this->configTable, array("value" => $agent_open_explain), array("uniacid" => $_W['uniacid'], "code" => "agent_open_explain")); goto fUhxW; bsY2W: pdo_update($this->tablePrefix . $this->configTable, array("value" => $agent_open_pic), array("uniacid" => $_W['uniacid'], "code" => "agent_open_pic")); goto sr7cM; NoLjW: global $_GPC, $_W; goto MBqkI; TSfF1: $devied_show_switch = intval($_GPC['devied_show_switch']); goto TNQrY; sr7cM: pdo_update($this->tablePrefix . $this->configTable, array("value" => $agent_center_pic), array("uniacid" => $_W['uniacid'], "code" => "agent_center_pic")); goto cQ3zY; cQ3zY: pdo_update($this->tablePrefix . $this->configTable, array("value" => $agent_introduct_pic), array("uniacid" => $_W['uniacid'], "code" => "agent_introduct_pic")); goto mXkS8; fUhxW: pdo_update($this->tablePrefix . $this->configTable, array("value" => $devied_show_switch), array("uniacid" => $_W['uniacid'], "code" => "devied_show_switch")); goto r9sXF; TNQrY: pdo_update($this->tablePrefix . $this->configTable, array("value" => $agent_switch), array("uniacid" => $_W['uniacid'], "code" => "agent_switch")); goto bsY2W; xr79j: $agent_open_balance = intval($_GPC['agent_open_balance']); goto TSfF1; mXkS8: pdo_update($this->tablePrefix . $this->configTable, array("value" => $agent_open_balance), array("uniacid" => $_W['uniacid'], "code" => "agent_open_balance")); goto JhCnn; MBqkI: $agent_switch = intval($_GPC['agent_switch']); goto BPc1t; nK_3O: $agent_center_pic = $_GPC['agent_center_pic']; goto cs5IM; Ld0H3: } public function doWebUserAgent() { goto bxz1E; Fgzns: if (!($id > 0)) { goto DU3Vs; } goto TvqtZ; mfomd: $gradeData = unserialize(getAppConfSd('agent_grade')); goto Pzwip; Pzwip: include $this->template('user/user_agent'); goto wvOcm; cbcZL: $id = intval($_GPC['id']); goto Fgzns; EHOHI: $status = $user['agent'] > 0 ? 1 : 0; goto SVBwN; bxz1E: global $_GPC, $_W; goto cbcZL; SVBwN: DU3Vs: goto mfomd; TvqtZ: $user = pdo_fetch('SELECT `id`,`agent` From ' . tablename($this->tablePrefix . 'user') . ' WHERE `id` = :id', array(":id" => $id)); goto EHOHI; wvOcm: } public function doWebuserAgentSave() { goto Mtry5; F2YYt: Ev_aF: goto BxEtV; pbWGs: $this->json_return('', 0); goto Owqdv; dVW1K: $data['agent_status'] = 0; goto UgcYK; i2N2L: if (!($data['agent'] < 1)) { goto o8Og2; } goto qtM5v; qtM5v: $data['agent_open_time'] = 0; goto dVW1K; SR8mo: $user_id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto FeijB; Da0Sa: $data['agent'] = intval($_GPC['agent']) > 0 ? intval($_GPC['agent']) : $this->json_return('', 0); goto c2KVg; jXbyE: $this->json_return(''); goto F2YYt; WPMxw: URu7H: goto jXbyE; FeijB: $data = array(); goto Da0Sa; Owqdv: goto Ev_aF; goto WPMxw; c2KVg: $user = pdo_fetch('SELECT `agent` FROM ' . tablename($this->tablePrefix . 'user') . ' WHERE `id` = :id', array(":id" => $user_id)); goto n0GuO; QFhmH: $data['agent_status'] = 1; goto m9Yhj; Mtry5: global $_GPC, $_W; goto SR8mo; dV_lp: $result = pdo_update($this->tablePrefix . 'user', $data, array("uniacid" => $_W['uniacid'], "id" => $user_id)); goto IsbmQ; m9Yhj: yPoBu: goto i2N2L; pbXEE: $data['agent_open_time'] = time(); goto QFhmH; UgcYK: o8Og2: goto dV_lp; IsbmQ: if ($result != false) { goto URu7H; } goto pbWGs; n0GuO: if (!($user['agent'] < 1 && $data['agent'] > 0)) { goto yPoBu; } goto pbXEE; BxEtV: } public function doWebWithdrawalApply() { goto Go47w; ggwRF: az9JV: goto dFGbJ; i7QXb: Ix1tQ: goto NWvQN; xhUOU: $pageindex = 0; goto VE31_; BHisO: if (!($datemax && $datemin == false)) { goto rukgU; } goto BUB_Q; Mz4ol: $pageindex = $_GPC['page']; goto PI0js; aijQC: $where .= ' and `w`.`create_time` > ' . $datemin; goto LioV0; Kxy7z: if (!$nickname) { goto q5Gd4; } goto G5Q1d; UmgMc: rukgU: goto ILJhJ; GSMId: $list = pdo_fetchall('SELECT `w`.`id`,`w`.`profit`,`w`.`status`,`w`.`out_trade_no`,`w`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' `w` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `w`.`uid`=`m`.`uid`' . $where . ' ORDER BY `w`.`create_time` DESC LIMIT ' . $pageindex2 . ' , ' . $pagesize); goto TviSV; xyr8e: if (!isset($_GPC['page'])) { goto pmog3; } goto Mz4ol; LioV0: ekL7n: goto BHisO; R3Yz5: goto Ix1tQ; goto lA46n; Xghft: $pagesize = 6; goto xyr8e; BUB_Q: $where .= ' and `w`.`create_time` < ' . $datemax; goto UmgMc; PI0js: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto R3Yz5; bcjUg: $total = count($totalList); goto Xghft; Ul7kn: if (!($datemin && $datemax)) { goto az9JV; } goto lBUFL; ILJhJ: $totalList = pdo_fetchall('SELECT `w`.`id` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' `w` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `w`.`uid`=`m`.`uid`' . $where . ' ORDER BY `w`.`create_time` DESC'); goto bcjUg; NWvQN: $pager = pagination($total, $pageindex, $pagesize); goto GSMId; G5Q1d: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto B1wFP; lA46n: pmog3: goto xhUOU; dFGbJ: if (!($datemin && $datemax == false)) { goto ekL7n; } goto aijQC; PPRuk: $datemax = strtotime($_GPC['datemax']); goto Ul7kn; VE31_: $pageindex2 = 0; goto i7QXb; TviSV: include $this->template('agent_center/withdrawal_apply'); goto sEtzL; ka7ah: $datemin = strtotime($_GPC['datemin']); goto PPRuk; JNGhN: $url = $this->createWebUrl('withdrawalApply'); goto BpbU4; lBUFL: $where .= ' and `w`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto ggwRF; B1wFP: q5Gd4: goto ka7ah; Go47w: global $_GPC, $_W; goto JNGhN; BpbU4: $where = ' WHERE `w`.`uniacid` = ' . $_W['uniacid'] . ' and `w`.`status`= 0'; goto wlEDr; wlEDr: $nickname = trim($_GPC['nickname']); goto Kxy7z; sEtzL: } public function doWebWithdrawalApplyStatus() { goto HrXd0; rXXPd: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto sQhnX; HrXd0: global $_GPC, $_W; goto rXXPd; UhyvK: goto mHdxg; goto zDoi7; sQhnX: $status = intval($_GPC['status']) > 0 ? intval($_GPC['status']) : $this->json_return('', 0); goto CWKne; CWKne: $result = pdo_update($this->tablePrefix . 'withdrawalapply', array("status" => $status), array("id" => $id)); goto w3Z0q; w3Z0q: if ($result != false) { goto bUfnJ; } goto V6Y9P; XHDjx: $this->WithdrawalApplyMsg($id, $status); goto yOG3D; dAl8n: mHdxg: goto qEE_C; V6Y9P: $this->json_return('', 0); goto UhyvK; yOG3D: $this->json_return(''); goto dAl8n; zDoi7: bUfnJ: goto XHDjx; qEE_C: } public function doWebWithdrawalApplysStatus() { goto X1cu7; eCzLX: PFIe4: goto eSlCg; BB0Md: Jipm6: goto Heqma; fvqUe: goto Jipm6; goto eCzLX; CWZ4W: if ($profit['uid'] > 0) { goto Kes5L; } goto AWj_P; Xgvsk: $withdrawal_method = getAppConfSd('withdrawal_method'); goto ICGx8; ICGx8: $condition = array(); goto g666H; Heqma: $result = pdo_update($this->tablePrefix . 'withdrawalapply', $condition, array("id" => $id)); goto fGZTG; X1cu7: global $_GPC, $_W; goto R7dVM; EakJo: $user = pdo_fetch('SELECT `id`,`agent_balance` FROM ' . tablename($this->tablePrefix . 'user') . ' WHERE `id` = :id', array(":id" => $profit['uid'])); goto GJ1pk; uSBR4: Gncb1: goto kOaTd; WWBzC: $this->json_return('', 0); goto uSBR4; PCyHK: goto co1tR; goto UPUe6; rTfGo: if (!($withdrawal_method == 1)) { goto DkzBu; } goto fHKwN; AWj_P: $this->json_return('', 0); goto Mk_g5; UPm53: $profit = pdo_fetch('SELECT `id`,`uid`,`profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `id` = :id', array(":id" => $id)); goto CWZ4W; fHKwN: $condition['status'] = $status; goto fd_2z; K4P32: ofEUo: goto PCyHK; iWuZh: bKdtQ: goto mDDjb; E_0WR: Kes5L: goto EakJo; fd_2z: DkzBu: goto fvqUe; OxDtd: $this->json_return(''); goto iWuZh; aUA4I: $this->json_return('', 0); goto scvRl; KInzk: $result = pdo_update($this->tablePrefix . 'withdrawalapply', array("status" => 3), array("id" => $id)); goto K4P32; fGZTG: if ($result != false) { goto Yc49q; } goto aUA4I; s3WQd: if ($pay_result['result_code'] == 'SUCCESS') { goto sU0HM; } goto deJT2; PCu3_: pdo_update($this->tablePrefix . 'user', array("agent_balance" => $profit['profit'] + $user['agent_balance']), array("id" => $profit['uid'])); goto KInzk; kOaTd: $pay_result = pay_wx_pocket($user['openid'], $user['out_trade_no']); goto R8Dkq; q8d6n: co1tR: goto BB0Md; G2Jhh: if (!($user['openid'] == '' || $user['out_trade_no'] == '')) { goto Gncb1; } goto WWBzC; Mk_g5: goto ofEUo; goto E_0WR; L5jP3: $condition['status'] = 2; goto q8d6n; scvRl: goto bKdtQ; goto HeyOi; GJ1pk: $agent_balance = $profit['profit'] + $user['agent_balance']; goto PCu3_; HeyOi: Yc49q: goto OxDtd; R8Dkq: $condition['info'] = json_encode($pay_result); goto s3WQd; deJT2: $condition['status'] = 3; goto UPm53; eSlCg: $user = pdo_fetch('SELECT `w`.`id`,`w`.`out_trade_no`,`m`.`uid`,`m`.`openid`,`m`.`nickname` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' `w` LEFT JOIN ' . tablename('mc_mapping_fans') . ' `m` ON `w`.`uid` = `m`.`uid` WHERE `w`.`id`=:id LIMIT 1', array(":id" => $id)); goto G2Jhh; UPUe6: sU0HM: goto L5jP3; sug50: $status = intval($_GPC['status']) > 0 ? intval($_GPC['status']) : $this->json_return('', 0); goto Xgvsk; R7dVM: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto sug50; g666H: if ($withdrawal_method == 2) { goto PFIe4; } goto rTfGo; mDDjb: } public function doWebWithdrawalApplys() { goto hFxX9; AmeA2: $totalList = pdo_fetchall('SELECT `w`.`id` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' `w` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `w`.`uid`=`m`.`uid`' . $where . ' ORDER BY `w`.`create_time` DESC'); goto UYD5I; T_FxA: goto oj7Qc; goto HcWtp; IIJQD: $where .= ' and `w`.`status` = ' . $withdrawal_status; goto d5J_y; epfRI: $withdrawal_status = ''; goto ibl50; sp73_: b4TIc: goto S4G2F; t4Hhm: oj7Qc: goto WgRtM; RcRjd: if (!($datemax && $datemin == false)) { goto O9m7j; } goto JRyUV; Naufx: if (!$nickname) { goto DHbQA; } goto O0E3t; HcWtp: LfiI9: goto vCrZv; O0E3t: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto wywxi; s5msD: include $this->template('agent_center/withdrawal_applys'); goto PZ38d; Apvoc: $list = pdo_fetchall('SELECT `w`.`id`,`w`.`profit`,`w`.`status`,`w`.`reason`,`w`.`withdrawal_qrcode`,`w`.`out_trade_no`,`w`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' `w` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `w`.`uid`=`m`.`uid`' . $where . ' ORDER BY `w`.`create_time` DESC LIMIT ' . $pageindex2 . ' , ' . $pagesize); goto R5spQ; P3dA6: if (!($withdrawal_status != '')) { goto gmDkl; } goto IIJQD; hFxX9: global $_GPC, $_W; goto Pg0Wl; Pg0Wl: $url = $this->createWebUrl('withdrawalApplys'); goto SjBYp; WgRtM: $pager = pagination($total, $pageindex, $pagesize); goto Apvoc; mHkYO: $datemax = strtotime($_GPC['datemax']); goto zDUPJ; CQ2je: $nickname = trim($_GPC['nickname']); goto Naufx; SjBYp: $where = ' WHERE `w`.`uniacid` = ' . $_W['uniacid'] . ' and `w`.`status` > 0'; goto CQ2je; fBlAt: O9m7j: goto AmeA2; Xs8HN: ewUvZ: goto RcRjd; DaajR: $where .= ' and `w`.`create_time` > ' . $datemin; goto Xs8HN; yDGgS: $where .= ' and `w`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto sp73_; UPQne: if (!isset($_GPC['page'])) { goto LfiI9; } goto GD1zw; SZnMT: $pageindex2 = 0; goto t4Hhm; Jfy3g: $pagesize = 6; goto UPQne; S4G2F: if (!($datemin && $datemax == false)) { goto ewUvZ; } goto DaajR; GD1zw: $pageindex = $_GPC['page']; goto tX1DF; d5J_y: gmDkl: goto f_Wqy; R5spQ: $withdrawal_method = getAppConfSd('withdrawal_method'); goto s5msD; JRyUV: $where .= ' and `w`.`create_time` < ' . $datemax; goto fBlAt; UYD5I: $total = count($totalList); goto Jfy3g; f_Wqy: $datemin = strtotime($_GPC['datemin']); goto mHkYO; wywxi: DHbQA: goto epfRI; zDUPJ: if (!($datemin && $datemax)) { goto b4TIc; } goto yDGgS; vCrZv: $pageindex = 0; goto SZnMT; tX1DF: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto T_FxA; ibl50: $withdrawal_status = $_GPC['withdrawal_status']; goto P3dA6; PZ38d: } public function doWebUserAgentCancel() { goto s8t8k; ZNeT3: r3zk7: goto p_H_4; GD6Re: if ($result != false) { goto D3Ost; } goto W0FIh; DsgXP: $result = pdo_update($this->tablePrefix . 'user', array("agent" => 0, "agent_status" => 0, "agent_open_time" => 0), array("id" => $id)); goto GD6Re; W0FIh: $this->json_return('', 0); goto S9lRd; fpvzP: $this->json_return(''); goto ZNeT3; S9lRd: goto r3zk7; goto wp4oB; wp4oB: D3Ost: goto fpvzP; Hb6XB: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto DsgXP; s8t8k: global $_GPC, $_W; goto Hb6XB; p_H_4: } public function doWebUserAgentStatus() { goto deyTO; g4FIQ: MnlCF: goto F952s; S0KIl: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto K0cfx; deyTO: global $_GPC, $_W; goto S0KIl; K0cfx: $status = intval($_GPC['status']); goto F9ty3; z18Tc: $this->json_return('', 0); goto UkQc3; qdWCV: pD6bt: goto s5CWI; s5CWI: $this->json_return(''); goto g4FIQ; F9ty3: $result = pdo_update($this->tablePrefix . 'user', array("agent_status" => $status), array("id" => $id)); goto fykUC; UkQc3: goto MnlCF; goto qdWCV; fykUC: if ($result != false) { goto pD6bt; } goto z18Tc; F952s: } public function WithdrawalApplyMsg($id, $status, $reason = "") { goto lw63a; LY1nU: $msg[1] = ''; goto K1LwK; lw63a: global $_GPC, $_W; goto WhTQR; MIXML: $withdrawal = pdo_fetch('SELECT `id`,`uid`,`profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `id` = :id', array(":id" => $id)); goto Bywry; Bywry: if (!($withdrawal['uid'] > 0)) { goto Cpb94; } goto j4WAX; j4WAX: $touser = $this->getFansInfoByUid($withdrawal['uid'], 'openid'); goto dUERW; SaP8m: if (!(getAppConfSd('account_msg_switch') == 1)) { goto ub8oi; } goto zZipQ; nz5V9: if (!($sub_count > 0)) { goto msWzo; } goto Rjg4C; pBZ2G: pdo_query('UPDATE ' . tablename($this->tablePrefix . 'usersub') . ' SET `audit_msg_sub` = `audit_msg_sub` - 1 WHERE uid = :uid', array(":uid" => $withdrawal['uid'])); goto s1Q1g; dUERW: $page = 'super_card/pages/index/index'; goto SaP8m; WNVqW: ub8oi: goto M2UwS; MSfsL: $sub_count = $temp['audit_msg_sub']; goto nz5V9; XKq0E: Cpb94: goto uh2Pi; zZipQ: $data = array("first" => array("value" => ""), "keyword1" => array("value" => getAppConfSd('app_name')), "keyword2" => array("value" => '' . $withdrawal['profit'] . '' . $msg[$status]), "remark" => array("value" => date('Y-m-d H:i'))); goto Q_3Dg; QtOpg: DLMiB: goto WNVqW; M2UwS: $temp_id = getAppConfSd('audit_results_tempid'); goto I0Tc9; LP6rf: msWzo: goto bgsyw; s1Q1g: pdo_insert($this->tablePrefix . 'msglog', array("uniacid" => $_W['uniacid'], "uid" => $withdrawal['uid'], "msg" => "", "r_content" => $re['content'], "create_time" => time())); goto LP6rf; Rjg4C: $data = array("thing5" => array("value" => str_cut('' . $withdrawal['profit'] . '' . $msg[$status], 50)), "phrase1" => array("value" => $status == 1 ? '' : ''), "date4" => array("value" => date('Y/m/d H:i'))); goto A8gXN; bgsyw: B0rH2: goto XKq0E; WhTQR: $msg = array(); goto LY1nU; UhA3h: if (!($result === true)) { goto DLMiB; } goto vgp29; A8gXN: $re = $this->sendSubMsg($touser, $temp_id, $page, $data); goto pBZ2G; j_5ye: $temp = pdo_fetch('SELECT `audit_msg_sub` FROM ' . tablename($this->tablePrefix . 'usersub') . ' WHERE uid = :uid LIMIT 1', array(":uid" => $withdrawal['uid'])); goto MSfsL; K1LwK: $msg[3] = trim($reason) != '' ? ', ' . trim($reason) . '' : ''; goto MIXML; Q_3Dg: $result = $this->sendAccountMsg($touser, $page, $data, '', $withdrawal['uid']); goto UhA3h; I0Tc9: if (!$temp_id) { goto B0rH2; } goto j_5ye; vgp29: return true; goto QtOpg; uh2Pi: } public function doWebWithdrawalApplyRefuse() { goto k37qn; k37qn: global $_GPC, $_W; goto dpOE3; DHD4I: include $this->template('agent_center/withdrawal_apply_Refuse'); goto Ehp8g; dpOE3: $id = intval($_GPC['id']); goto DHD4I; Ehp8g: } public function doWebWithdrawalApplyRefuseSave() { goto BuHg9; BuHg9: global $_GPC, $_W; goto GNPHK; ofNMK: $this->WithdrawalApplyMsg($id, 3, $reason); goto lTy_T; jcK8Z: ujIdV: goto zWcqw; EY7fe: $reason = trim($_GPC['reason']); goto aTIip; zWcqw: $user = pdo_fetch('SELECT `id`,`agent_balance` FROM ' . tablename($this->tablePrefix . 'user') . ' WHERE `id` = :id', array(":id" => $profit['uid'])); goto gYBlJ; a5Amv: seTqE: goto ofNMK; hYEk4: pdo_update($this->tablePrefix . 'user', array("agent_balance" => $profit['profit'] + $user['agent_balance']), array("id" => $profit['uid'])); goto pikA4; TvNv0: goto y3vpz; goto jcK8Z; DNdVH: y3vpz: goto Ysh3n; pikA4: $result = pdo_update($this->tablePrefix . 'withdrawalapply', array("reason" => $reason, "status" => 3), array("id" => $id)); goto DNdVH; lI97W: goto b_lob; goto a5Amv; aTIip: $profit = pdo_fetch('SELECT `id`,`uid`,`profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `id` = :id', array(":id" => $id)); goto iDJVs; iDJVs: if ($profit['uid'] > 0) { goto ujIdV; } goto B3TX5; lTy_T: $this->json_return(''); goto vteHp; vteHp: b_lob: goto PdiP7; GNPHK: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto EY7fe; CWkcp: $this->json_return('', 0); goto lI97W; gYBlJ: $agent_balance = $profit['profit'] + $user['agent_balance']; goto hYEk4; B3TX5: $this->json_return('', 0); goto TvNv0; Ysh3n: if ($result != false) { goto seTqE; } goto CWkcp; PdiP7: } public function doWebAgentProfitEdit() { goto SIY3g; CXYCk: $id = intval($_GPC['id']); goto AQb8b; AQb8b: include $this->template('agent_center/agent_profit'); goto bP2OS; SIY3g: global $_GPC, $_W; goto CXYCk; bP2OS: } public function doWebAgentProfitSave() { goto Q5dNA; r22XZ: goto ZRSJs; goto Co5Nr; NW6eY: SbABl: goto iGrEN; fXzZN: pdo_insert($this->tablePrefix . 'profitlog', $data); goto MiaI9; WrMOV: $data['create_time'] = time(); goto fXzZN; KrNfC: if (!($data['type'] == 2)) { goto DXOJh; } goto E83hv; H1E_u: $result = pdo_update($this->tablePrefix . 'user', array("agent_profit" => $agent_profit, "agent_balance" => $agent_balance), array("id" => $data['uid'])); goto NW6eY; E83hv: $agent_profit = $user['agent_profit'] - $data['agent_profit'] > 0 ? $user['agent_profit'] - $data['agent_profit'] : $this->json_return(', ', 0); goto Ttwzp; vTm48: goto SbABl; goto arm5A; iGrEN: if ($result != false) { goto Vt9QC; } goto RibNn; kvz_O: ZRSJs: goto GUkhU; LjRIR: $data['uid'] = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto zOave; Ttwzp: $agent_balance = $user['agent_balance'] - $data['agent_profit'] > 0 ? $user['agent_balance'] - $data['agent_profit'] : $this->json_return(', ', 0); goto f9lB9; jChcB: $user = pdo_fetch('SELECT `id`, `agent_profit`,`agent_balance` FROM ' . tablename($this->tablePrefix . 'user') . ' WHERE `id` = :id', array(":id" => $data['uid'])); goto Ye9Gy; RibNn: $this->json_return('', 0); goto r22XZ; MiaI9: $this->json_return(''); goto kvz_O; bP0qn: $agent_balance = $data['agent_profit'] + $user['agent_balance']; goto H1E_u; Y6v7p: DXOJh: goto vTm48; Co5Nr: Vt9QC: goto K_u83; Q5dNA: global $_GPC, $_W; goto LjRIR; arm5A: sQBtp: goto fAr4m; K_u83: $data['change_desc'] = $_GPC['change_desc']; goto uXbQa; uXbQa: $data['uniacid'] = $_W['uniacid']; goto WrMOV; Ye9Gy: if ($data['type'] == 1) { goto sQBtp; } goto KrNfC; zOave: $data['type'] = intval($_GPC['type']) > 0 ? intval($_GPC['type']) : $this->json_return('', 0); goto f7AkD; f9lB9: $result = pdo_update($this->tablePrefix . 'user', array("agent_profit" => $agent_profit, "agent_balance" => $agent_balance), array("id" => $data['uid'])); goto Y6v7p; fAr4m: $agent_profit = $data['agent_profit'] + $user['agent_profit']; goto bP0qn; f7AkD: $data['agent_profit'] = trim($_GPC['agent_profit']) != '' ? trim($_GPC['agent_profit']) : $this->json_return('', 0); goto jChcB; GUkhU: } public function doWebProfitLog() { goto bj2IA; uFxM7: iTzeP: goto BK9kk; grSGH: $pager = pagination($total, $pageindex, $pagesize); goto PnOmv; qtKjR: $pagesize = 10; goto grSGH; PnOmv: $member = pdo_fetch('SELECT `u`.`agent_profit`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'user') . ' `u` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `u`.`id`=`m`.`uid` WHERE `u`.`id` = :uid LIMIT 1', array(":uid" => $uid)); goto BfZxP; HP2q_: $pageindex = $_GPC['page']; goto JwEFV; BfZxP: $list = pdo_getall($this->tablePrefix . 'profitlog', array("uid" => $uid, "uniacid" => $_W['uniacid']), array("id", "agent_profit", "type", "change_desc", "create_time"), '', array("create_time DESC"), array($pageindex, $pagesize)); goto aTE1L; bj2IA: global $_GPC, $_W; goto oH2DD; jSJTT: IDyvU: goto Dzie0; JwEFV: goto iTzeP; goto jSJTT; BK9kk: $totalList = pdo_getall($this->tablePrefix . 'profitlog', array("uid" => $uid, "uniacid" => $_W['uniacid']), array("id"), ''); goto VIiJJ; VIiJJ: $total = count($totalList); goto qtKjR; aTE1L: include $this->template('agent_center/profit_log'); goto O2uIp; Dzie0: $pageindex = 1; goto uFxM7; azcDF: if (!isset($_GPC['page'])) { goto IDyvU; } goto HP2q_; oH2DD: $uid = intval($_GPC['uid']); goto azcDF; O2uIp: } public function doWebSetAgentParent() { goto cgpLF; y2tyq: $total = count($totalList); goto krid4; v_FB9: if (!isset($_GPC['page'])) { goto mBFsi; } goto r1xJD; krid4: $pagesize = 5; goto v_FB9; Nbvar: $nickname = trim($_GPC['nickname']); goto xCdU4; jtiRK: $pageindex1 = 0; goto uDfHR; SPToP: include $this->template('user/set_agent_parent'); goto dUXmB; mv1E1: $url = $this->createWebUrl('setAgentParent'); goto E_Sv4; lfl0u: $pager = pagination($total, $pageindex, $pagesize); goto ykkkN; iijej: $pageindex1 = (intval($_GPC['page']) - 1) * $pagesize; goto PzUTe; dLZ0y: $where = ' WHERE `u`.`uniacid` = ' . $_W['uniacid'] . ' and `u`.`id` <> ' . $id; goto Nbvar; cgpLF: global $_GPC, $_W; goto mv1E1; ykkkN: $list = pdo_fetchall('SELECT `u`.`id`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'user') . ' `u` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `u`.`id`=`m`.`uid` ' . $where . ' LIMIT ' . $pageindex1 . ' , ' . $pagesize); goto SPToP; NKUX6: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto uYAGZ; uYAGZ: lGH3z: goto Hxkuk; PzUTe: goto wyQIy; goto oJ0OI; uDfHR: wyQIy: goto lfl0u; oJ0OI: mBFsi: goto vx2Ei; vx2Ei: $pageindex = 0; goto jtiRK; Hxkuk: $totalList = pdo_fetchall('SELECT `u`.`id` FROM ' . tablename($this->tablePrefix . 'user') . ' `u` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `u`.`id`=`m`.`uid` ' . $where); goto y2tyq; xCdU4: if (!$nickname) { goto lGH3z; } goto NKUX6; E_Sv4: $id = intval($_GPC['id']); goto dLZ0y; r1xJD: $pageindex = $_GPC['page']; goto iijej; dUXmB: } public function doWebSetAgentParentSave() { goto DeSAL; zKdzj: $condition = array(); goto M4hSL; ZzS_S: $this->json_return(''); goto mGA5q; iP1QD: $result = pdo_update($this->tablePrefix . 'user', $condition, array("id" => $id)); goto jKB2N; hAl3Y: $pidArr = explode(',', $pidStr); goto NtCN1; M4hSL: foreach ($pidArr as $v) { goto j3pJW; fX8Ce: $condition['pid' . $i] = $v; goto lTVKi; j3pJW: if ($i == 1) { goto orGxU; } goto fX8Ce; sLSZ2: UCAwS: goto e3zy8; e3zy8: $i++; goto cIfk1; cIfk1: DL6Md: goto MZr2t; lTVKi: goto UCAwS; goto RtwG6; X4wM1: $condition['pid'] = $v; goto sLSZ2; RtwG6: orGxU: goto X4wM1; MZr2t: } goto psofQ; IGUVh: goto m9GqP; goto LTyRV; kktT8: $this->json_return('', 0); goto qAyCR; mGA5q: m9GqP: goto mIb_6; psofQ: Tr0PM: goto iP1QD; DeSAL: global $_GPC, $_W; goto zwLzD; xjMky: if (!($pidStr == false)) { goto J8Fc8; } goto kktT8; NtCN1: $i = 1; goto zKdzj; zwLzD: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto hfdXH; srQmN: $pidStr = $this->getPid($pid); goto xjMky; qAyCR: J8Fc8: goto hAl3Y; Jwaez: $this->json_return('', 0); goto IGUVh; LTyRV: Q3W6L: goto ZzS_S; jKB2N: if ($result != false) { goto Q3W6L; } goto Jwaez; hfdXH: $pid = intval($_GPC['pid']) > 0 ? intval($_GPC['pid']) : $this->json_return('', 0); goto srQmN; mIb_6: } public function getPid($pid) { goto lW7MX; dkljL: return false; goto N3Qpe; N3Qpe: nGDLm: goto qbWb3; qbWb3: if ($parent2['pid'] < 1) { goto LTXst; } goto DfMfp; SR3zf: goto OLUlI; goto gCeXL; nuN1h: return false; goto LnuCd; c3_De: if ($parent['pid'] < 1) { goto jSGw5; } goto Pxg2a; mFoIJ: OLUlI: goto rQu32; KDTen: return $parent['id'] . ',' . $parent['pid'] . ',' . $parent2['pid']; goto fsNfq; T9Cwc: if (!empty($parent2)) { goto nGDLm; } goto dkljL; gCeXL: LTXst: goto RpkT4; ORaDJ: if (!empty($parent)) { goto kjqj8; } goto rAe4a; rAe4a: return false; goto dztrn; c1QiR: return $parent['id']; goto MZhsP; rQu32: xqK3r: goto wDtL0; wDtL0: goto n7igG; goto JnJU2; MZhsP: n7igG: goto ARba6; WvZh1: $parent = pdo_fetch('SELECT `id`,`pid` FROM ' . tablename($this->tablePrefix . 'user') . ' WHERE `id`=:id', array(":id" => $pid)); goto ORaDJ; gWmln: $parent2 = pdo_fetch('SELECT `id`,`pid` FROM ' . tablename($this->tablePrefix . 'user') . ' WHERE `id`=:id', array(":id" => $parent['pid'])); goto T9Cwc; JnJU2: jSGw5: goto c1QiR; DfMfp: if (!($parent2['pid'] > 1)) { goto Ek17P; } goto KDTen; Pxg2a: if (!($parent['pid'] > 1)) { goto xqK3r; } goto gWmln; RpkT4: return $parent['id'] . ',' . $parent['pid']; goto mFoIJ; fsNfq: Ek17P: goto SR3zf; lW7MX: if (!($pid < 1)) { goto hSlOW; } goto nuN1h; dztrn: kjqj8: goto c3_De; LnuCd: hSlOW: goto WvZh1; ARba6: } public function doWebGetAgentLower() { goto HUvSg; U9i9u: nudXu: goto hIeCs; XBYES: $pager = pagination($total, $pageindex, $pagesize); goto yGbuv; dW3S8: $url = $this->createWebUrl('getAgentLower'); goto IEnL9; D8Vv4: if (!($id > 0)) { goto rNnqH; } goto mmtsV; G5jSi: $is_agent = intval($_GPC['is_agent']) > 0 ? intval($_GPC['is_agent']) : 0; goto uzw_A; QO0Nv: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto REdkY; ASnZy: HvWVH: goto z5LOS; vHbMZ: $nickname = trim($_GPC['nickname']); goto GOOjc; REdkY: goto tXF2U; goto tM33L; IVMer: rNnqH: goto DZ3Hn; hIeCs: $allList = pdo_fetchall('SELECT `u`.`id` FROM ' . tablename($this->tablePrefix . 'user') . ' `u` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `u`.`id`=`m`.`uid` ' . $where . '  ORDER BY `u`.`create_time` DESC'); goto BXpAN; D9rVB: HGE6o: goto dc2my; KukCp: zE9_G: goto NOCGu; hG4Rz: if (empty($list)) { goto xAG0v; } goto NmGNf; J_vk6: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto Ni8pB; tM33L: HlZ5Z: goto nMvkf; nMvkf: $pageindex = 0; goto sibps; WmFhE: $pageindex = $_GPC['page']; goto QO0Nv; NDQGw: tXF2U: goto XBYES; dc2my: if (!($datemin && $datemax == false)) { goto HpQyJ; } goto EOXk7; HUvSg: global $_GPC, $_W; goto dW3S8; mmtsV: $where = ' WHERE `u`.`uniacid`= ' . $_W['uniacid'] . ' and ( `u`.`pid` = ' . $id . ' or `u`.`pid2` = ' . $id . ' or `u`.`pid3` = ' . $id . ')'; goto vHbMZ; NmGNf: foreach ($list as $k => $v) { goto raOiM; pOYaE: $list[$k]['total_fee'] = $this->getOrderFee($v['id']); goto CtlZ1; u3nEn: DKBzO: goto ee91A; x0mlp: H7nY2: goto pOYaE; Zb6ea: $list[$k]['relation'] = ''; goto mWZl2; s4YrQ: gbtjK: goto PxQ1e; raOiM: if ($v['pid'] == $id) { goto gbtjK; } goto Zb6ea; PxQ1e: $list[$k]['relation'] = ''; goto x0mlp; uGJ3B: $list[$k]['direct_relation'] = $this->getDirectRelation($v['id']); goto u3nEn; mWZl2: goto H7nY2; goto s4YrQ; CtlZ1: $list[$k]['total_order'] = $this->getOrderTotal($v['id']); goto uGJ3B; ee91A: } goto ZNNAn; JDEoC: HpQyJ: goto v_F2V; NOCGu: $datemin = strtotime($_GPC['datemin']); goto lrDHQ; sibps: $pageindex2 = 0; goto NDQGw; s6bK3: $where .= ' and `u`.`create_time` < ' . $datemax; goto U9i9u; vMONb: if (!($datemin && $datemax)) { goto HGE6o; } goto yBW6J; lrDHQ: $datemax = strtotime($_GPC['datemax']); goto vMONb; J1F65: xAG0v: goto IVMer; uzw_A: if (!($is_agent == 1)) { goto HvWVH; } goto AQNIw; jQ9R8: if (!isset($_GPC['page'])) { goto HlZ5Z; } goto WmFhE; XOHf7: $where .= ' and `u`.`agent` < 1'; goto KukCp; GOOjc: if (!$nickname) { goto YoBit; } goto J_vk6; DZ3Hn: include $this->template('agent_center/get_agent_lower'); goto GyAmt; v_F2V: if (!($datemax && $datemin == false)) { goto nudXu; } goto s6bK3; ZNNAn: GnngU: goto J1F65; z5LOS: if (!($is_agent == 2)) { goto zE9_G; } goto XOHf7; EOXk7: $where .= ' and `u`.`create_time` > ' . $datemin; goto JDEoC; vWI84: $pagesize = 6; goto jQ9R8; BXpAN: $total = count($allList); goto vWI84; Ni8pB: YoBit: goto G5jSi; IEnL9: $id = intval($_GPC['id']); goto D8Vv4; AQNIw: $where .= ' and `u`.`agent` > 0'; goto ASnZy; yBW6J: $where .= ' and `u`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto D9rVB; yGbuv: $list = pdo_fetchall('SELECT `u`.`id`,`u`.`agent`,`u`.`pid`,`u`.`pid2`,`u`.`pid3`,`u`.`create_time`,`m`.`avatar`,`m`.`nickname` FROM ' . tablename($this->tablePrefix . 'user') . ' `u` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `u`.`id`=`m`.`uid` ' . $where . ' ORDER BY `u`.`create_time` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto hG4Rz; GyAmt: } public function getOrderFee($uid) { goto zrPqi; zrPqi: global $_GPC, $_W; goto nTVCU; Yvu91: return $totalFee[0]['totalFee']; goto UOh5U; UOh5U: F4U0X: goto h2fMw; h2fMw: return 0.0; goto CI751; ZNz78: $totalFee = pdo_getall($this->tablePrefix . 'orders', array("uniacid" => $_W['uniacid'], "uid" => $uid, "status" => 1), array("SUM(fee) as totalFee")); goto uL0_M; IdL1u: return 0.0; goto Q6fs4; Q6fs4: eABDB: goto ZNz78; uL0_M: if (!($totalFee[0]['totalFee'] != NULL)) { goto F4U0X; } goto Yvu91; nTVCU: if (!($uid < 1)) { goto eABDB; } goto IdL1u; CI751: } public function getOrderTotal($uid) { goto EkI5X; Y8pPv: if (!($uid < 1)) { goto y4zok; } goto NqGOA; EkI5X: global $_GPC, $_W; goto Y8pPv; Ij99Q: WWNH2: goto H6zRc; qCXWr: $totalOrder = pdo_getall($this->tablePrefix . 'orders', array("uniacid" => $_W['uniacid'], "uid" => $uid, "status" => 1), array("COUNT(*) as total")); goto r59Vv; nPYoT: return $totalOrder[0]['total']; goto Ij99Q; H6zRc: return 0; goto bujik; NqGOA: return 0; goto RRuFo; RRuFo: y4zok: goto qCXWr; r59Vv: if (!($totalOrder[0]['total'] > 0)) { goto WWNH2; } goto nPYoT; bujik: } public function getDirectRelation($uid) { goto CaPDV; zZry8: yJg2x: goto rPGNs; Cr5HB: gQwmv: goto co9so; co9so: $totalNum = pdo_getall($this->tablePrefix . 'user', array("uniacid" => $_W['uniacid'], "pid" => $uid), array("COUNT(*) as total")); goto kcygC; lGpNz: return 0; goto Cr5HB; L6Id2: return $totalNum[0]['total']; goto zZry8; CaPDV: global $_GPC, $_W; goto zu8me; zu8me: if (!($uid < 1)) { goto gQwmv; } goto lGpNz; kcygC: if (!($totalNum[0]['total'] > 0)) { goto yJg2x; } goto L6Id2; rPGNs: return 0; goto N2lmN; N2lmN: } public function doWebAgentStatistics() { goto cfPpc; XgU2I: bdDNc: goto h7M3w; EC1KV: $withdrawal_count['time'] = array_reverse($withdrawal_count['time']); goto o1jXH; nIVcX: $profit_count['totalData'] = array(); goto ntr8I; YCtik: $profitTotalData = pdo_fetch('SELECT SUM(`agent_profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'profitlog') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type` = 1 and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto oEajv; Do714: $start_time = strtotime(date('Y-m-d 00:00:00')); goto DqdVy; FuE3u: yvAHW: goto rEX6_; QN3F9: $month_time = strtotime(date('Y-m-d 00:00:00', strtotime("-{$day} days"))); goto l5gdZ; l1FBe: $month_total_profit = pdo_fetch('SELECT SUM(`agent_profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'profitlog') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type` = 1 and `create_time` BETWEEN ' . $month_time . ' and ' . $start_time); goto JD10b; ntr8I: $profit_count['time'] = array(); goto QtQ4B; XPzKa: $profit_count = array(); goto nIVcX; lzNmg: $withdrawal_count['totalData'][] = $withdrawalData['profit'] > 0 ? $withdrawalData['profit'] : 0; goto YqSZy; W5Lc5: Jxrt1: goto psKly; Mmxlf: $withdrawalData = pdo_fetch('SELECT SUM(`profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 2 and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto lzNmg; oEajv: $profit_count['totalData'][] = $profitTotalData['profit'] > 0 ? $profitTotalData['profit'] : 0; goto xJSGN; l5gdZ: $today_total_profit = pdo_fetch('SELECT SUM(`agent_profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'profitlog') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type` = 1 and `create_time` > ' . $start_time); goto I54b3; OEgJ9: $withdrawal_count['time'] = array(); goto HFQs3; xJSGN: $profit_count['time'][] = date('Y-m-d', strtotime("-{$i} days")); goto Mmxlf; YqSZy: $withdrawal_count['time'][] = date('Y-m-d', strtotime("-{$i} days")); goto W5Lc5; VyfeK: $withdrawal_count = json_encode($withdrawal_count); goto h2b0c; QtQ4B: $withdrawal_count = array(); goto D4Vu1; JD10b: $total_profit = pdo_fetch('SELECT SUM(`agent_profit`) as `profit` FROM  ' . tablename($this->tablePrefix . 'profitlog') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type` = 1'); goto XPzKa; rEX6_: $profit_count['totalData'] = array_reverse($profit_count['totalData']); goto z6DLM; z6DLM: $profit_count['time'] = array_reverse($profit_count['time']); goto a20jI; I54b3: $seven_total_profit = pdo_fetch('SELECT SUM(`agent_profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'profitlog') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type` = 1 and `create_time` BETWEEN ' . $seven_time . ' and ' . $start_time); goto l1FBe; a20jI: $withdrawal_count['totalData'] = array_reverse($withdrawal_count['totalData']); goto EC1KV; lRkZe: goto bdDNc; goto FuE3u; o1jXH: $profit_count = json_encode($profit_count); goto VyfeK; D4Vu1: $withdrawal_count['totalData'] = array(); goto OEgJ9; h2b0c: include $this->template('agent_center/agent_statistics'); goto Kh01E; Knh8H: $day = date('d'); goto QN3F9; KXD6D: $nextday = strtotime(date('Y-m-d 23:59:59', strtotime("-{$i} days"))); goto YCtik; DqdVy: $seven_time = strtotime(date('Y-m-d 00:00:00'), strtotime('-7 days')); goto Knh8H; gMBKV: $prevday = strtotime(date('Y-m-d 00:00:00', strtotime("-{$i} days"))); goto KXD6D; h7M3w: if (!($i < 30)) { goto yvAHW; } goto gMBKV; HFQs3: $i = 0; goto XgU2I; cfPpc: global $_GPC, $_W; goto Do714; psKly: $i++; goto lRkZe; Kh01E: } public function doWebGetAgentStatistics() { goto b4b8A; egI_a: $count = array(); goto CLLkX; JIsvz: $totalData = pdo_fetch('SELECT SUM(`profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 2 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto g5ddD; RSqfT: v3Z4o: goto VEKbj; g5ddD: goto cFnuj; goto li3jg; RHI8K: tLdKC: goto z2XzY; LZxBJ: if ($data['dateType'] == 3) { goto hQC5p; } goto NuROU; zjGek: if ($i == 0) { goto WjMIy; } goto I1I_Z; ls4Jq: REeWR: goto lV8Qp; oiWtz: apdbl: goto x0txm; ZZRbS: DCdbi: goto KSF1l; FNP3d: TOW3c: goto MIzk1; b4b8A: global $_GPC, $_W; goto TbGAx; a7fUg: $date = explode('-', $data['time']); goto SUdGk; X9y90: qIRW8: goto uEAxD; I1I_Z: $count['time'][] = date('H', $prevTime); goto CratD; YZkW_: goto cLt_R; goto tCCTu; XwO61: if (!($i <= $time)) { goto Wk_ka; } goto Uzhty; iJnjx: $i = 0; goto Nqq3B; S98Bg: Em5zt: goto ryNaj; bdMA1: pKus3: goto fYhw4; o4dR_: $totalData = pdo_fetch('SELECT SUM(`agent_profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'profitlog') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto hN1BL; VEKbj: $count['totalData'][] = $totalData['profit'] > 0 ? $totalData['profit'] : 0; goto zjGek; K5m0z: $count['time'][] = date('Y-m-d', $prevTime); goto S98Bg; UB4AP: $i++; goto g2HSL; o8SYZ: hQC5p: goto eVZEN; QvKQt: goto tLdKC; goto JOCW3; GYRfX: LUBnG: goto XwO61; CJxJ3: $prevTime = strtotime(date('Y-m-' . $day . ' ' . $i . ':00:00')); goto zoE_1; gDikZ: if ($data['dateType'] == 0) { goto amZDF; } goto qsQa7; CmeWY: $count['totalData'][] = $totalData['profit'] > 0 ? $totalData['profit'] : 0; goto qbAFy; jM0Py: $i = 0; goto WezCL; Nqq3B: moNCZ: goto Md7Mc; xme8n: mxHmb: goto Bja48; eJ443: if ($i == 0) { goto DMmXc; } goto P22zG; g2HSL: goto LUBnG; goto RSMuP; u9Fd5: $totalData = pdo_fetch('SELECT SUM(`profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 2 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto UtUdE; Md7Mc: if (!($i < 24)) { goto kBByl; } goto CJxJ3; WezCL: cLt_R: goto xQg8d; NuROU: if (!($data['dateType'] == 4)) { goto rugv3; } goto kO0fz; exbes: if ($data['type'] == 1) { goto mxHmb; } goto P4jz6; yS_Xy: $start = date('d', strtotime($date[0])); goto dcXCI; q55ar: if ($data['type'] == 1) { goto qIRW8; } goto ZKc5U; aoNNo: hafJy: goto te3CP; IVvvf: HuH81: goto QvKQt; fYhw4: if (!($i <= $days)) { goto n2nAP; } goto gVKfT; vg_ao: $i = 0; goto GYRfX; XjGOR: goto Sb_xj; goto xme8n; SUdGk: $days = getDays(strtotime($date[0]), strtotime($date[1])); goto jRAIb; eT49C: arlnL: goto EaXxJ; tDVMP: $totalData = pdo_fetch('SELECT SUM(`profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 2 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto CkTgM; fFnw3: $data = $_GPC['data']; goto g8jXm; xgPA3: $nextTime = strtotime(date('Y-m-' . $i . ' 23:59:59')); goto exbes; RZLWj: goto HuH81; goto eT49C; Pavnx: if (strpos($data['time'], '-')) { goto k33gi; } goto lhieh; MIzk1: $totalData = pdo_fetch('SELECT SUM(`agent_profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'profitlog') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto RSqfT; dcXCI: $j = 0; goto yCJM9; lV8Qp: $i++; goto g804f; tZzkI: if ($data['type'] == 1) { goto CZDRX; } goto u9Fd5; DSqpY: goto bK5r8; goto sU72Q; AWqnn: Sb_xj: goto FWm32; qbAFy: $count['time'][] = date('Y-m-d', strtotime("-{$i} days")); goto ZOaP0; lhieh: $this->json_return('', 0); goto DSqpY; CratD: goto Y04Jh; goto yvOnR; CLLkX: $count['totalData'] = array(); goto aJEUJ; zoE_1: $nextTime = strtotime(date('Y-m-' . $day . ' ' . $i . ':59:59')); goto MF3SQ; D09iW: $time = date('H'); goto vg_ao; yvOnR: WjMIy: goto DYIwZ; yalqc: Y04Jh: goto CXoET; Te2xn: $nextday = strtotime(date('Y-m-d 23:59:59', strtotime("-{$i} days"))); goto q55ar; nQNJk: kBByl: goto IVvvf; AaZyR: CZDRX: goto xMO39; g804f: goto vbKOV; goto aoNNo; b3qw4: vbKOV: goto zeq5A; xQg8d: if (!($i < $data['dateType'])) { goto Ih9hJ; } goto Ko352; qwERi: $count['time'] = array_reverse($count['time']); goto T2208; ZOaP0: kFbAz: goto cL4Js; eVZEN: $days = date('t', strtotime('-1 month')); goto f8ICd; t570B: DifYS: goto Lkxch; DQ3aF: goto pKus3; goto dJav4; te3CP: R1CUt: goto jX55I; tCCTu: Ih9hJ: goto mwKll; uEAxD: $totalData = pdo_fetch('SELECT SUM(`agent_profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'profitlog') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type` = 1 and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto LQls9; KSF1l: $count['totalData'][] = $totalData['profit'] > 0 ? $totalData['profit'] : 0; goto K5m0z; x0txm: $i++; goto F345W; g8jXm: if ($data['dateType'] == 7 || $data['dateType'] == 30) { goto rma5a; } goto gDikZ; MF3SQ: if ($data['type'] == 1) { goto rIzdO; } goto JIsvz; jX55I: goto Fg8zR; goto pOXzv; CkTgM: goto DCdbi; goto A1Hnx; Bja48: $totalData = pdo_fetch('SELECT SUM(`agent_profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'profitlog') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto AWqnn; USp8X: $count['time'][] = date('Y-m-d', $prevTime); goto ls4Jq; EaXxJ: $day = date('d'); goto Drbax; lLsD9: goto i72t8; goto tFIjX; n4m9E: $i++; goto v0Fx9; yCJM9: $i = $start; goto b3qw4; HPZd6: $totalData = pdo_fetch('SELECT SUM(`profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 2 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto Be7Rz; P22zG: $count['time'][] = date('H', $prevTime); goto lLsD9; cL4Js: $i++; goto YZkW_; FWm32: $count['totalData'][] = $totalData['profit'] > 0 ? $totalData['profit'] : 0; goto Q1AMX; Uzhty: $prevTime = strtotime(date('Y-m-d ' . $i . ':00:00')); goto obNGX; z2XzY: goto R1CUt; goto IqIfw; Ko352: $prevday = strtotime(date('Y-m-d 00:00:00', strtotime("-{$i} days"))); goto Te2xn; CTugu: $count['time'][] = '   ' . date('H', $prevTime); goto juJnc; li3jg: rIzdO: goto o4dR_; zeq5A: if (!($i <= $days + $start)) { goto hafJy; } goto APWSV; ivLu2: $totalData = pdo_fetch('SELECT SUM(`agent_profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'profitlog') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto ZZRbS; juJnc: i72t8: goto TAJMR; F345W: goto OO2z_; goto t570B; hLKco: goto GjKBp; goto X9y90; gVKfT: $prevTime = strtotime(date('Y-m-' . $i . ' 00:00:00', strtotime('-1 month'))); goto oW3Se; PV2se: $this->json_return('', 1, $count); goto i73qT; P4jz6: $totalData = pdo_fetch('SELECT SUM(`profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 2 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto XjGOR; pOXzv: rma5a: goto jM0Py; v0Fx9: goto moNCZ; goto nQNJk; w8jm4: $prevTime = strtotime(date('Y-m-' . $i . ' 00:00:00')); goto xgPA3; JVRzX: qKxfz: goto xuC11; RSMuP: Wk_ka: goto RHI8K; mwKll: $count['totalData'] = array_reverse($count['totalData']); goto qwERi; bTUWO: if ($data['dateType'] == 2) { goto arlnL; } goto LZxBJ; obNGX: $nextTime = strtotime(date('Y-m-d ' . $i . ':59:59')); goto VbFqT; ryNaj: $i++; goto DQ3aF; F8_SH: $count['type'] = $data['type']; goto PV2se; XBdyN: $i = 1; goto O2o2O; CXoET: pExI1: goto UB4AP; T2208: Fg8zR: goto F8_SH; RWKj5: if ($data['type'] == 1) { goto a1VFz; } goto tDVMP; A1Hnx: a1VFz: goto ivLu2; doALo: if (!($i <= $days)) { goto DifYS; } goto w8jm4; DYIwZ: $count['time'][] = '   ' . date('H', $prevTime); goto yalqc; rUHMN: goto avqfZ; goto o8SYZ; aJEUJ: $count['time'] = array(); goto fFnw3; Y4fFI: $j += 1; goto tZzkI; nh89D: $count['totalData'][] = $totalData['profit'] > 0 ? $totalData['profit'] : 0; goto eJ443; O2o2O: OO2z_: goto doALo; xuC11: $count['totalData'][] = $totalData['profit'] > 0 ? $totalData['profit'] : 0; goto USp8X; oW3Se: $nextTime = strtotime(date('Y-m-' . $i . ' 23:59:59', strtotime('-1 month'))); goto RWKj5; TbGAx: $data = $_GPC['data']; goto egI_a; gEjqu: avqfZ: goto RZLWj; IqIfw: amZDF: goto Pavnx; jRAIb: bK5r8: goto yS_Xy; ZKc5U: $totalData = pdo_fetch('SELECT SUM(`profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 2 and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto hLKco; LQls9: GjKBp: goto CmeWY; hN1BL: cFnuj: goto nh89D; sU72Q: k33gi: goto a7fUg; kyZcZ: $nextTime = strtotime(date('Y-m-d 23:59:59', strtotime($date[0] . '+' . $j . ' day'))); goto Y4fFI; f8ICd: $i = 1; goto bdMA1; Be7Rz: goto v3Z4o; goto FNP3d; dJav4: n2nAP: goto gEjqu; qsQa7: if ($data['dateType'] == 1) { goto xTz6g; } goto bTUWO; xMO39: $totalData = pdo_fetch('SELECT SUM(`agent_profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'profitlog') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `type` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto JVRzX; VbFqT: if ($data['type'] == 1) { goto TOW3c; } goto HPZd6; JOCW3: xTz6g: goto D09iW; Drbax: $day -= 1; goto iJnjx; Q1AMX: $count['time'][] = date('Y-m-' . $i, $prevTime); goto oiWtz; kO0fz: $days = date('d'); goto XBdyN; UtUdE: goto qKxfz; goto AaZyR; tFIjX: DMmXc: goto CTugu; Lkxch: rugv3: goto rUHMN; TAJMR: S6lJo: goto n4m9E; APWSV: $prevTime = strtotime(date('Y-m-d 00:00:00', strtotime($date[0] . '+' . $j . ' day'))); goto kyZcZ; i73qT: } public function doWebMemberGrade() { goto A2E0s; qF4Kf: include $this->template('user/member_grade'); goto LvmbW; A2E0s: global $_GPC, $_W; goto Oi9U9; iE1ty: if (!(count($member_grade) > 0 && is_array($member_grade))) { goto ZR3St; } goto i93mF; XeNn0: $list = array(); goto iE1ty; Quxt6: XiFI7: goto aUfJj; i93mF: foreach ($member_grade as $k => $v) { goto SbE5p; vzKwa: $list[$k]['price'] = $v['price']; goto o1kpW; LQ0u6: $list[$k]['name'] = $v['name']; goto vzKwa; o1kpW: d3KP6: goto OeBWr; SbE5p: $list[$k]['id'] = $v['id']; goto LQ0u6; OeBWr: } goto Quxt6; Oi9U9: $member_grade = unserialize(getAppConfSd('member_grade')); goto XeNn0; aUfJj: ZR3St: goto qF4Kf; LvmbW: } public function doWebMemberGradeEdit() { goto fljTK; Q_CcI: $id = intval($_GPC['id']); goto rBNyv; fljTK: global $_GPC, $_W; goto Q_CcI; BCW83: $data = $this->getMemberGrade($id); goto nzmCN; SFR4w: include $this->template('user/member_grade_info'); goto nxtvw; nzmCN: Sx3aI: goto SFR4w; rBNyv: if (!($id > 0)) { goto Sx3aI; } goto BCW83; nxtvw: } public function doWebMemberGradeSave() { goto BWt3L; zQD81: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto qNv6S; mBH3F: $result = pdo_update($this->tablePrefix . $this->configTable, array("uniacid" => $_W['uniacid'], "value" => serialize($list)), array("uniacid" => $_W['uniacid'], "code" => "member_grade")); goto Yc4n9; Yc4n9: if ($result != false) { goto zHv1r; } goto scpO7; g889o: $data['price'] = trim($_GPC['price']) != '' ? trim($_GPC['price']) : $this->json_return('', 0); goto kFLzx; znYTB: $data['status'] = trim($_GPC['status'] ? 1 : 0); goto UetZ0; BWt3L: global $_GPC, $_W; goto zQD81; DUTLE: $data['name'] = trim($_GPC['name']) != '' ? trim($_GPC['name']) : $this->json_return('', 0); goto g889o; Q8B6r: $key = $this->getMemberGrade($id, 1); goto yaJKN; JimfE: $this->json_return(''); goto TNoE4; TNoE4: S4s40: goto s7Mjx; UetZ0: dwfJ8: goto u1e7D; WrTAX: zHv1r: goto JimfE; u1e7D: $list = unserialize(getAppConfSd('member_grade')); goto Q8B6r; qNv6S: $data = $this->getMemberGrade($id); goto Rc1gg; kFLzx: if (!($data['id'] != 1)) { goto dwfJ8; } goto znYTB; GG34R: goto S4s40; goto WrTAX; scpO7: $this->json_return('', 0); goto GG34R; yaJKN: $list[$key] = $data; goto mBH3F; Rc1gg: $data['id'] = intval($data['id']); goto DUTLE; s7Mjx: } public function doWebMemberGradeAuth() { goto COS5V; qXLgZ: $grade_rule = array(); goto z5t7f; mDY0e: fz_tK: goto CQG16; CQG16: $rule_list = json_decode(getAppConfSd('member_rule'), true); goto P_bgk; COS5V: global $_GPC, $_W; goto TH6M9; wywvO: $data = $this->getMemberGrade($id); goto qXLgZ; z5t7f: if (!(strlen($data['grade_rule']) > 0)) { goto fz_tK; } goto WbD28; WbD28: $grade_rule = explode(',', $data['grade_rule']); goto mDY0e; P_bgk: include $this->template('user/member_grade_auth'); goto KLoFU; TH6M9: $id = intval($_GPC['id']); goto wywvO; KLoFU: } public function doWebMemberGradeAuthSave() { goto oZtFn; TUedb: if ($result != false) { goto wzWO1; } goto FIKDp; fbQ43: $list[$key]['grade_rule'] = implode(',', $rule); goto xERax; oZtFn: global $_GPC, $_W; goto Y__t0; kzbo_: $key = $this->getMemberGrade($id, 1); goto fbQ43; vp__9: $rule = is_array($_GPC['rule']) && count($_GPC['rule']) > 0 ? $_GPC['rule'] : $this->json_return('', 0); goto x5Sza; x5Sza: $list = unserialize(getAppConfSd('member_grade')); goto kzbo_; FIKDp: $this->json_return('', 0); goto jkvCs; UMqkU: $this->json_return(''); goto dUpZO; xERax: $result = pdo_update($this->tablePrefix . $this->configTable, array("uniacid" => $_W['uniacid'], "value" => serialize($list)), array("uniacid" => $_W['uniacid'], "code" => "member_grade")); goto TUedb; jkvCs: goto Q8c1w; goto MCKsG; MCKsG: wzWO1: goto UMqkU; dUpZO: Q8c1w: goto zC4r2; Y__t0: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto vp__9; zC4r2: } public function getMemberGrade($id, $type = false) { goto zGXkK; LeuH1: BrK9K: goto HE0xZ; zGXkK: if (!($id != false)) { goto BrK9K; } goto l9HeG; wfUzI: m7xJR: goto LeuH1; l9HeG: $data = getAppConfSd('member_grade'); goto VmNOa; VmNOa: $data = unserialize($data); goto cLwug; cLwug: foreach ($data as $key => $v) { goto MCiK9; MCiK9: if (!($type == false && $id == $v['id'])) { goto CtmwE; } goto I3EIa; oNoU5: RdVOJ: goto hP09a; KzE4b: return $key; goto oNoU5; hP09a: rD3Fb: goto RCm6j; VmKz0: CtmwE: goto HW1BC; I3EIa: return $v; goto VmKz0; HW1BC: if (!($type != false && $id == $v['id'])) { goto RdVOJ; } goto KzE4b; RCm6j: } goto wfUzI; HE0xZ: } public function doWebMemberRule() { goto GvwWO; ZEjkW: include $this->template('user/member_rule'); goto yxrNa; SAj8D: $list = json_decode(getAppConfSd('member_rule'), true); goto ZEjkW; GvwWO: global $_GPC, $_W; goto SAj8D; yxrNa: } public function doWebMemberRuleEdit() { goto qL5lL; XiwAa: $data = $this->getMemberRule($id); goto nqtwQ; Ztrzm: foreach ($list as $key => $v) { $last = $v['id']; N38Do: } goto LYspF; LYspF: Bro59: goto wxL2A; R9yDc: $list = json_decode(getAppConfSd('member_rule'), true); goto qH79H; wxL2A: CtOsn: goto VGbnJ; VGbnJ: $id = $last + 1; goto rLwZC; rTW79: if ($id > 0) { goto jDBED; } goto R9yDc; c2iHz: include $this->template('user/member_rule_info'); goto f6KEm; qL5lL: global $_GPC, $_W; goto oXWiC; rLwZC: goto aZ2fj; goto asXHX; oXWiC: $id = intval($_GPC['id']); goto rTW79; qH79H: $last = 0; goto q3FMn; nqtwQ: aZ2fj: goto c2iHz; asXHX: jDBED: goto XiwAa; q3FMn: if (!(count($list) >= 1)) { goto CtOsn; } goto Ztrzm; f6KEm: } public function doWebMemberRuleSave() { goto ArEaH; qeiRI: KwE55: goto bsiKN; O6Kay: $condition['privilege_introduce'] = trim($_GPC['privilege_introduce']); goto EAmXQ; rgVgf: $list = json_decode(getAppConfSd('member_rule'), true); goto Jj9wF; HlxVB: goto KwE55; goto pIM20; EAmXQ: $key = $this->getMemberRule($id, 1); goto rgVgf; IHjmH: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto J9Nnu; uYwhP: $this->json_return(''); goto qeiRI; m7z8n: $condition['rule_name'] = trim($_GPC['rule_name']) != '' ? trim($_GPC['rule_name']) : $this->json_return('', 0); goto p0Tb_; TPYQi: $this->json_return('', 0); goto HlxVB; p0Tb_: $condition['privilege_name'] = trim($_GPC['privilege_name']); goto O6Kay; ArEaH: global $_GPC, $_W; goto IHjmH; Jj9wF: $list[$key] = $condition; goto xXerv; J9Nnu: $condition['id'] = $id; goto m7z8n; xXerv: $result = pdo_update($this->tablePrefix . $this->configTable, array("value" => json_encode($list)), array("uniacid" => $_W['uniacid'], "code" => "member_rule")); goto pi_3J; pIM20: len0c: goto uYwhP; pi_3J: if ($result != false) { goto len0c; } goto TPYQi; bsiKN: } public function getMemberRule($id, $type = false) { goto K9aZU; K2pIe: $data = getAppConfSd('member_rule'); goto B7crz; WCtTo: I7vhd: goto u9lAt; MjMsS: foreach ($data as $key => $v) { goto lwpmo; XECIe: XjhJn: goto zVw2s; DoOJH: C9xfC: goto XECIe; lwpmo: if (!($type == false && $id == $v['id'])) { goto RjMst; } goto PpK6s; PpK6s: return $v; goto hcuUV; hcuUV: RjMst: goto yqOSZ; sm4vT: return $key; goto DoOJH; yqOSZ: if (!($type != false && $id == $v['id'])) { goto C9xfC; } goto sm4vT; zVw2s: } goto WCtTo; B7crz: $data = json_decode($data, true); goto MjMsS; u9lAt: ojrls: goto d_fog; K9aZU: if (!($id != false)) { goto ojrls; } goto K2pIe; d_fog: } public function doWebCardServ() { goto NETY2; IL_vJ: pB7WR: goto IYtG_; eie7Y: $this->json_return(''); goto IL_vJ; khf8n: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto rNkgz; NETY2: global $_GPC, $_W; goto khf8n; rNkgz: $serv = intval($_GPC['serv']); goto cApyu; nMGtP: if ($result != false) { goto DeQSX; } goto Wqhig; Wqhig: $this->json_return('', 0); goto egSwp; cApyu: $result = pdo_update($this->tablePrefix . 'item', array("serv" => $serv), array("id" => $id)); goto nMGtP; egSwp: goto pB7WR; goto hOvBT; hOvBT: DeQSX: goto eie7Y; IYtG_: } public function doWebTurncateQrcode() { goto ag6eC; Wg4V8: $this->json_return(''); goto HNNXM; FG3kV: pdo_update($this->tablePrefix . 'user', array("agent_qrcode" => "", "agent_qrpic" => "")); goto D1bIE; LGYKr: if ($type == 1) { goto DoLt8; } goto TzqoM; HIbS6: ZZQ1J: goto Wg4V8; trrX0: if (!($type < 1)) { goto eXnSP; } goto PuCu9; pj5W3: $type = intval($_GPC['type']); goto trrX0; TzqoM: if (!($type == 2)) { goto W6ePq; } goto FG3kV; Ti0GD: pdo_update($this->tablePrefix . 'item', array("qrcode" => "", "qrcode_diff" => "", "qrcode_pic" => "")); goto HIbS6; ag6eC: global $_GPC, $_W; goto pj5W3; PuCu9: $this->json_return(''); goto D2LNf; D2LNf: eXnSP: goto LGYKr; Tc8qi: DoLt8: goto Ti0GD; D1bIE: W6ePq: goto H8leD; H8leD: goto ZZQ1J; goto Tc8qi; HNNXM: } public function doWebUserAdmin() { goto djcr1; meujU: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto eln3I; lPQgo: uaCND: goto QuuzM; F1OGD: goto uaCND; goto KZHMO; eln3I: $status = intval($_GPC['type']); goto hIvQb; KZHMO: vc25P: goto RXakj; hIvQb: $result = pdo_update($this->tablePrefix . 'user', array("admin" => $status), array("id" => $id)); goto OwCuy; E_1Qv: $this->json_return('', 0); goto F1OGD; OwCuy: if ($result != false) { goto vc25P; } goto E_1Qv; djcr1: global $_GPC, $_W; goto meujU; RXakj: $this->json_return(''); goto lPQgo; QuuzM: } public function doWebUserArtRecord() { goto Tdt4v; EmXVj: $this->json_return(''); goto ttU6y; gkPox: goto AP7en; goto KJ71x; ttU6y: AP7en: goto fiP9R; SR9Im: $status = intval($_GPC['type']); goto CXI8G; CXI8G: $result = pdo_update($this->tablePrefix . 'user', array("art_record" => $status), array("id" => $id)); goto L4VHk; KJ71x: cbpDR: goto EmXVj; L4VHk: if ($result != false) { goto cbpDR; } goto PZ3sG; M56nI: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto SR9Im; PZ3sG: $this->json_return('', 0); goto gkPox; Tdt4v: global $_GPC, $_W; goto M56nI; fiP9R: } public function doWebmailLog() { goto EjlrX; Tk4gV: $url = $this->createWebUrl('mailLog'); goto ZMibf; Ybmy0: xX8mt: goto YIYT4; jGk0X: EQAnA: goto LKPXx; tOSBR: if (!isset($_GPC['page'])) { goto xX8mt; } goto RZA8H; lVjzQ: $pagesize = 8; goto tOSBR; R3ItA: include $this->template('mail_log/mail_log_list'); goto tX1Ru; EEekU: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto ia328; UIIsg: $pageindex2 = 0; goto jGk0X; YIYT4: $pageindex = 0; goto UIIsg; ia328: goto EQAnA; goto Ybmy0; f6sv6: $list = pdo_fetchall('select `m`.`id`,`m`.`receive_name`,`m`.`receive_mail`,`m`.`uid`,`m`.`card_id`,`m`.`status`,`m`.`create_time`,`mc`.`nickname`,`mc`.`avatar`,`i`.`name` FROM ' . tablename($this->tablePrefix . 'maillog') . ' `m` LEFT JOIN  ' . tablename('mc_members') . ' `mc` ON `m`.`uid`=`mc`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `m`.`card_id`=`i`.`id` WHERE `m`.`uniacid` = ' . $_W['uniacid'] . ' order by `m`.`id` DESC  LIMIT ' . $pageindex2 . ',' . $pagesize); goto R3ItA; RZA8H: $pageindex = $_GPC['page']; goto EEekU; ZMibf: $totalList = pdo_fetchall('select `id` FROM ' . tablename($this->tablePrefix . 'maillog') . ' WHERE `uniacid` = ' . $_W['uniacid']); goto MPEp3; EjlrX: global $_GPC, $_W; goto Tk4gV; LKPXx: $pager = pagination($total, $pageindex2, $pagesize); goto f6sv6; MPEp3: $total = count($totalList); goto lVjzQ; tX1Ru: } public function doWebRedPackersRefund() { global $_GPC, $_W; include $this->template('red_packets/red_packets_refund'); } public function doWebRedPackersSave() { global $_GPC, $_W; } public function doWebRedPackersSet() { goto rF7fE; QR8ay: include $this->template('red_packets/red_packets_set'); goto PlRjL; sDRus: F8N8C: goto QR8ay; vA1sO: foreach ($list as $k => $v) { goto DLPnn; DLPnn: if (!($v['code'] == 'red_packets_switch')) { goto LGu0X; } goto OUBE6; WzcH9: TEjXD: goto XBaQo; hIG63: XjSS_: goto W9TiA; NrVHM: $data['red_packets_money'] = $v; goto h6mi3; ZVwBP: $data['red_packets_receivetip'] = $v; goto c2rW_; TKZw_: LGu0X: goto SoRfE; XBaQo: if (!($v['code'] == 'red_packets_overtime')) { goto XjSS_; } goto wpTcW; y4svs: bM_5t: goto IAUZC; iCkym: $data['red_packets_rate'] = $v; goto Jsrf3; rK1DW: ic8Fq: goto IeTI5; bOQsc: qZPIQ: goto CNZ4g; H0dtd: ayRAE: goto ii8NY; SoRfE: if (!($v['code'] == 'red_packets_rate')) { goto Toy5m; } goto iCkym; c2rW_: Vc8Gj: goto ImWSo; pD7Wk: $data['red_packets_autorefund'] = $v; goto y4svs; ImWSo: if (!($v['code'] == 'red_packets_advertising')) { goto ayRAE; } goto bv0vg; UJnds: if (!($v['code'] == 'red_packets_num')) { goto TEjXD; } goto h5zJH; ii8NY: if (!($v['code'] == 'red_packets_autorefund')) { goto bM_5t; } goto pD7Wk; SiB3L: if (!($v['code'] == 'red_packets_money')) { goto AaCRF; } goto NrVHM; QBZ1W: $data['red_packets_sharetext'] = $v; goto bOQsc; IAUZC: xZUEb: goto kGQSM; h5zJH: $data['red_packets_num'] = $v; goto WzcH9; Jsrf3: Toy5m: goto SiB3L; CNZ4g: if (!($v['code'] == 'red_packets_receivetip')) { goto Vc8Gj; } goto ZVwBP; h6mi3: AaCRF: goto UJnds; IeTI5: if (!($v['code'] == 'red_packets_sharetext')) { goto qZPIQ; } goto QBZ1W; jyOU6: $data['red_packets_sharepic'] = $v; goto rK1DW; OUBE6: $data['red_packets_switch'] = $v; goto TKZw_; bv0vg: $data['red_packets_advertising'] = $v; goto H0dtd; W9TiA: if (!($v['code'] == 'red_packets_sharepic')) { goto ic8Fq; } goto jyOU6; wpTcW: $data['red_packets_overtime'] = $v; goto hIG63; kGQSM: } goto sDRus; yAtXx: $list = pdo_fetchall('SELECT `id`,`name`,`code`,`type`,`value`,`tip`,`store_range` FROM ' . tablename($this->tablePrefix . $this->configTable) . ' WHERE `code` in(\'red_packets_rate\',\'red_packets_money\',\'red_packets_num\',\'red_packets_overtime\',\'red_packets_sharepic\', \'red_packets_sharetext\',\'red_packets_receivetip\',\'red_packets_switch\',\'red_packets_advertising\',\'red_packets_autorefund\') and `uniacid` = :uniacid', array(":uniacid" => $_W['uniacid'])); goto vA1sO; rF7fE: global $_GPC, $_W; goto yAtXx; PlRjL: } public function doWebRedPacketsSetSave() { goto MgNUK; pWbGp: pdo_update($this->tablePrefix . $this->configTable, array("value" => $red_packets_rate), array("uniacid" => $_W['uniacid'], "code" => "red_packets_rate")); goto YTZyI; MgNUK: global $_GPC, $_W; goto AK375; mOZfE: $red_packets_sharetext = trim($_GPC['red_packets_sharetext']); goto b_CBY; aYf_X: pdo_update($this->tablePrefix . $this->configTable, array("value" => $red_packets_advertising), array("uniacid" => $_W['uniacid'], "code" => "red_packets_advertising")); goto s3hU7; VFG6X: pdo_update($this->tablePrefix . $this->configTable, array("value" => $red_packets_num), array("uniacid" => $_W['uniacid'], "code" => "red_packets_num")); goto lKX_Y; lKX_Y: pdo_update($this->tablePrefix . $this->configTable, array("value" => $red_packets_overtime), array("uniacid" => $_W['uniacid'], "code" => "red_packets_overtime")); goto Ef297; xQM_q: pdo_update($this->tablePrefix . $this->configTable, array("value" => $red_packets_sharepic), array("uniacid" => $_W['uniacid'], "code" => "red_packets_sharepic")); goto ddyba; Ef297: pdo_update($this->tablePrefix . $this->configTable, array("value" => $red_packets_sharetext), array("uniacid" => $_W['uniacid'], "code" => "red_packets_sharetext")); goto xQM_q; YTZyI: pdo_update($this->tablePrefix . $this->configTable, array("value" => $red_packets_money), array("uniacid" => $_W['uniacid'], "code" => "red_packets_money")); goto VFG6X; i5Wvg: pdo_update($this->tablePrefix . $this->configTable, array("value" => $red_packets_switch), array("uniacid" => $_W['uniacid'], "code" => "red_packets_switch")); goto pWbGp; ddyba: pdo_update($this->tablePrefix . $this->configTable, array("value" => $red_packets_receivetip), array("uniacid" => $_W['uniacid'], "code" => "red_packets_receivetip")); goto aYf_X; POXeH: $this->json_return(''); goto Ziusk; b_CBY: $red_packets_sharepic = trim($_GPC['red_packets_sharepic']); goto KVWc0; s6Zx8: $red_packets_switch = intval($_GPC['red_packets_switch']); goto mfyUK; mfyUK: $red_packets_autorefund = intval($_GPC['red_packets_autorefund']); goto i5Wvg; T_TRO: $red_packets_advertising = trim($_GPC['red_packets_advertising']); goto s6Zx8; KVWc0: $red_packets_receivetip = trim($_GPC['red_packets_receivetip']); goto T_TRO; Qixpe: $red_packets_num = trim($_GPC['red_packets_num']); goto ryuC3; n2F0c: $red_packets_money = trim($_GPC['red_packets_money']); goto Qixpe; s3hU7: pdo_update($this->tablePrefix . $this->configTable, array("value" => $red_packets_autorefund), array("uniacid" => $_W['uniacid'], "code" => "red_packets_autorefund")); goto POXeH; AK375: $red_packets_rate = trim($_GPC['red_packets_rate']); goto n2F0c; ryuC3: $red_packets_overtime = trim($_GPC['red_packets_overtime']); goto mOZfE; Ziusk: } public function doWebRedPacketsItem() { goto ofXbH; QoO52: VppIt: goto fVWni; GRfYv: $where .= ' and `r`.`create_time` < ' . $datemax; goto dz4xN; YJkDP: $list = pdo_fetchall('SELECT `r`.`id`,`r`.`uid`,`r`.`card_id`,`r`.`money`,`r`.`surplus_money`,`r`.`order_no`,`r`.`service_charge`,`r`.`total_num`,`r`.`receive_num`,`r`.`status`,`r`.`create_time`,`r`.`pay_time`,`r`.`expire_time`,`r`.`refund_time`,`m`.`nickname`,`m`.`avatar`,`i`.`name` From ' . tablename($this->tablePrefix . 'redpacketsitem') . ' `r` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `r`.`uid`=`m`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `r`.`card_id`=`i`.`id` ' . $where . ' ORDER BY `r`.`id` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto zyly2; RfNW8: zB5qR: goto fUPyn; DNzOQ: qx3Gu: goto YLEXh; TcoAb: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto iWhRX; hGvSV: GZHRu: goto APlNC; YLEXh: if (!($datemin && $datemax == false)) { goto Wd8Yy; } goto deRwZ; SfJfB: $datemin = strtotime($_GPC['datemin']); goto BG0lr; zl0Oj: if (!$nickname) { goto gmqqO; } goto TcoAb; MA_4l: if (!($statusList != false)) { goto pORYs; } goto DjDkj; ofXbH: global $_GPC, $_W; goto sSy3j; zo9RR: $nickname = trim($_GPC['nickname']); goto zl0Oj; rDoto: foreach ($statusList as $v) { goto G1DII; G1DII: if (!($v['expire_time'] < $time)) { goto ihz0g; } goto NuFul; kPAep: ihz0g: goto qQ0xf; NuFul: pdo_update($this->tablePrefix . 'redpacketsitem', array("status" => 3), array("id" => $v['id'])); goto kPAep; qQ0xf: nXMRa: goto tEjHe; tEjHe: } goto RfNW8; fUPyn: pORYs: goto YJkDP; gF7A8: $pagesize = 6; goto ZLIrG; lxylq: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto uTQhG; VgPNu: if (!($datemin && $datemax)) { goto qx3Gu; } goto NRLpB; AAIb4: u0g2O: goto SfJfB; dz4xN: sgO3y: goto DQaT8; DQaT8: $statusList = pdo_fetchall('SELECT `id`,`status`,`order_no`,`expire_time` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid`=:uniacid and `status` = 1 ORDER BY id DESC LIMIT  ' . $pageindex2 . ',' . $pagesize, array(":uniacid" => $_W['uniacid'])); goto MA_4l; APlNC: $pageindex = 0; goto xdYhm; Xx5PY: if (!($datemax && $datemin == false)) { goto sgO3y; } goto GRfYv; An8Kg: if (!($status != '' && intval($status) !== false)) { goto u0g2O; } goto jPwNo; t87AU: $where = ' WHERE `r`.`uniacid` = ' . $_W['uniacid']; goto zo9RR; BG0lr: $datemax = strtotime($_GPC['datemax']); goto VgPNu; DjDkj: $time = time(); goto rDoto; xdYhm: $pageindex2 = 0; goto QoO52; GwcgD: $totalList = pdo_getall($this->tablePrefix . 'redpacketsitem', array("uniacid" => $_W['uniacid']), array("id"), ''); goto AN67x; Nn3M2: Wd8Yy: goto Xx5PY; deRwZ: $where .= ' and `r`.`create_time` > ' . $datemin; goto Nn3M2; a53xP: $status = $_GPC['status']; goto An8Kg; sSy3j: $url = $this->createWebUrl('redPacketsItem'); goto GwcgD; R3O1J: $pageindex = $_GPC['page']; goto lxylq; uTQhG: goto VppIt; goto hGvSV; jPwNo: $where .= ' and `r`.`status` = ' . intval($status); goto AAIb4; ZLIrG: if (!$_GPC['page']) { goto GZHRu; } goto R3O1J; iWhRX: gmqqO: goto a53xP; fVWni: $pager = pagination($total, $pageindex, $pagesize); goto t87AU; AN67x: $total = count($totalList); goto gF7A8; NRLpB: $where .= ' and `r`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto DNzOQ; zyly2: include $this->template('red_packets/red_packets_item'); goto gY_cW; gY_cW: } public function doWebredPacketsItemInfo() { goto ICz07; XpbH6: $id = intval($_GPC['id']); goto Tgkcx; ICz07: global $_GPC, $_W; goto XpbH6; pEa0M: include $this->template('red_packets/red_packets_item_info'); goto LIc3O; Tgkcx: $data = pdo_fetch('SELECT `rp`.`id`,`rp`.`money`,`rp`.`surplus_money`,`rp`.`service_charge`,`rp`.`total_num`,`rp`.`receive_num`,`rp`.`order_no`,`rp`.`refund_order_no`,`rp`.`share_words`,`rp`.`rp_data`,`rp`.`status`,`rp`.`create_time`,`rp`.`pay_time`,`rp`.`expire_time`,`rp`.`refund_time`,`m`.`nickname`,`m`.`avatar`,`i`.`name` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' `rp` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `rp`.`uid`=`m`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `rp`.`card_id`=`i`.`id` WHERE `rp`.`uniacid`=:uniacid and `rp`.`id`=:id LIMIT 1', array(":uniacid" => $_W['uniacid'], ":id" => $id)); goto pEa0M; LIc3O: } public function doWebRedPacketsLog() { goto s00AK; JUeCO: $total = count($totalList); goto XJMn4; XJMn4: $pager = pagination($total, $pageindex, 12); goto SIHg1; GivLq: $pageindex2 = 0; goto weOXt; rgrS1: $totalList = pdo_getall($this->tablePrefix . 'redpacketslog', array("uid" => $uid, "rp_id" => $rp_id, "uniacid" => $_W['uniacid']), array("id"), ''); goto JUeCO; xqkEP: qjHv3: goto KWult; s00AK: global $_GPC, $_W; goto j8CZa; Y1o67: $pageindex2 = (intval($_GPC['page']) - 1) * 12; goto HatZf; D3w8K: $rp_id = intval($_GPC['rp_id']); goto ZwwAB; j8CZa: $uid = intval($_GPC['uid']); goto D3w8K; d8VR6: $pageindex = $_GPC['page']; goto Y1o67; XuMJY: include $this->template('red_packets/red_packets_log'); goto YpUqu; HatZf: goto D0SHr; goto xqkEP; SIHg1: $data = pdo_fetch('SELECT `share_words` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `id`=:rp_id', array(":rp_id" => $rp_id)); goto WfYA3; weOXt: D0SHr: goto rgrS1; KWult: $pageindex = 0; goto GivLq; WfYA3: $list = pdo_fetchall('SELECT `l`.`id`,`l`.`money`,`l`.`create_time`,`m`.`nickname`,`m`.`avatar` FROM ' . tablename($this->tablePrefix . 'redpacketslog') . ' `l` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `l`.`receive_uid`=`m`.`uid` WHERE `l`.`uniacid` = :uniacid and `l`.`uid`=:uid and `l`.`rp_id`=:rp_id ORDER BY `l`.`create_time` DESC LIMIT ' . $pageindex2 . ',' . 12, array(":uniacid" => $_W['uniacid'], ":uid" => $uid, ":rp_id" => $rp_id)); goto XuMJY; ZwwAB: if (!isset($_GPC['page'])) { goto qjHv3; } goto d8VR6; YpUqu: } public function doWebWithdrawalSet() { goto M5Ldy; sDWPV: $list = pdo_fetchall('SELECT  `name`,`code`,`type`,`store_range`,`value`,`tip` FROM ' . tablename($this->tablePrefix . $this->configTable) . ' WHERE `code` in (\'withdrawal_apply_open\',\'withdrawal_method\',\'min_withdrawal_money\',\'withdrawal_apply_rate\',\'withdrawal_rule_explain\') and `uniacid`=:uniacid', array(":uniacid" => $_W['uniacid'])); goto nnVCh; D8l7J: $data['withdrawal_method']['store_range'] = json_decode($data['withdrawal_method']['store_range'], true); goto Oqg01; nnVCh: foreach ($list as $v) { goto f4GDF; moWg0: $data['withdrawal_apply_open'] = $v; goto EJqv5; s6Ev6: if (!($v['code'] == 'withdrawal_apply_rate')) { goto xg3bY; } goto c2cjA; f4GDF: if (!($v['code'] == 'min_withdrawal_money')) { goto Q4Se3; } goto iW_yB; PkCPo: xg3bY: goto JOfoA; VF2me: $data['withdrawal_rule_explain'] = $v; goto eo2HW; JOfoA: SUpqM: goto WtYwp; tkonR: if (!($v['code'] == 'withdrawal_apply_open')) { goto i0HgI; } goto moWg0; YSd9F: if (!($v['code'] == 'withdrawal_method')) { goto cCv_V; } goto KLVU3; iW_yB: $data['min_withdrawal_money'] = $v; goto cKC3Q; cKC3Q: Q4Se3: goto YSd9F; KLVU3: $data['withdrawal_method'] = $v; goto WIOFs; c2cjA: $data['withdrawal_apply_rate'] = $v; goto PkCPo; EJqv5: i0HgI: goto s6Ev6; im5UC: if (!($v['code'] == 'withdrawal_rule_explain')) { goto jjhGV; } goto VF2me; eo2HW: jjhGV: goto tkonR; WIOFs: cCv_V: goto im5UC; WtYwp: } goto hrlkV; M5Ldy: global $_GPC, $_W; goto sDWPV; hrlkV: vshgj: goto D8l7J; Oqg01: include $this->template('agent_center/withdrawal_set'); goto TfKtp; TfKtp: } public function doWebWithdrawalSetSave() { goto rzoYi; luU8q: $withdrawal_apply_rate = trim($_GPC['withdrawal_apply_rate']); goto xhQK3; gaHBK: pdo_update($this->tablePrefix . $this->configTable, array("value" => $withdrawal_apply_rate), array("uniacid" => $_W['uniacid'], "code" => "withdrawal_apply_rate")); goto TRLRA; WagJi: $withdrawal_rule_explain = trim($_GPC['withdrawal_rule_explain']); goto luU8q; iNjfS: pdo_update($this->tablePrefix . $this->configTable, array("value" => $min_withdrawal_money), array("uniacid" => $_W['uniacid'], "code" => "min_withdrawal_money")); goto fzRo5; xhQK3: pdo_update($this->tablePrefix . $this->configTable, array("value" => $withdrawal_apply_open), array("uniacid" => $_W['uniacid'], "code" => "withdrawal_apply_open")); goto czgE_; siUil: $min_withdrawal_money = trim($_GPC['min_withdrawal_money']); goto WagJi; xRAX2: if (!($min_withdrawal_money > 0)) { goto wd23X; } goto iNjfS; OYrE9: $withdrawal_method = trim($_GPC['withdrawal_method']); goto siUil; czgE_: pdo_update($this->tablePrefix . $this->configTable, array("value" => $withdrawal_method), array("uniacid" => $_W['uniacid'], "code" => "withdrawal_method")); goto xRAX2; mcGh_: $withdrawal_apply_open = intval($_GPC['withdrawal_apply_open']); goto OYrE9; TRLRA: $this->json_return(''); goto QUMKN; OJMqh: pdo_update($this->tablePrefix . $this->configTable, array("value" => $withdrawal_rule_explain), array("uniacid" => $_W['uniacid'], "code" => "withdrawal_rule_explain")); goto gaHBK; rzoYi: global $_GPC, $_W; goto mcGh_; fzRo5: wd23X: goto OJMqh; QUMKN: } public function doWebWithdrawalStatistics() { goto cCl0m; b9MCY: $withdrawal_count = array(); goto hRXYX; VSwio: $i = 0; goto HZzf_; DT32m: $day = date('d'); goto jzSrE; I2CnN: $nextday = strtotime(date('Y-m-d 23:59:59', strtotime("-{$i} days"))); goto KYP3F; d3vbf: $profit_count['time'] = array(); goto b9MCY; vNzoO: $seven_total_withdrawal = pdo_fetch('SELECT SUM(`profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 2 and `create_time` BETWEEN ' . $seven_time . ' and ' . $start_time); goto XUz1x; HZzf_: AN80z: goto UEsl8; LHJ83: $withdrawal_count['totalData'][] = $withdrawalData['profit'] > 0 ? $withdrawalData['profit'] : 0; goto Gtsb7; ku6Xr: $profit_count = array(); goto SgMuC; R28Ec: $total_withdrawal = pdo_fetch('SELECT SUM(`profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 2'); goto ku6Xr; P3xCo: include $this->template('agent_center/withdrawal_statistics'); goto zNekM; WZ6g3: $start_time = strtotime(date('Y-m-d 00:00:00')); goto HaXXl; mINEX: XH93M: goto n9K5V; HI6SE: $withdrawal_count['totalData'] = array_reverse($withdrawal_count['totalData']); goto LgJt9; SgMuC: $profit_count['totalData'] = array(); goto d3vbf; jzSrE: $month_time = strtotime(date('Y-m-d 00:00:00', strtotime("-{$day} days"))); goto Aj7cu; hRXYX: $withdrawal_count['totalData'] = array(); goto qtfXQ; qtfXQ: $withdrawal_count['time'] = array(); goto VSwio; LgJt9: $withdrawal_count['time'] = array_reverse($withdrawal_count['time']); goto GPwIC; cCl0m: global $_GPC, $_W; goto WZ6g3; em2FZ: goto AN80z; goto CN8Iu; HaXXl: $seven_time = strtotime(date('Y-m-d 00:00:00'), strtotime('-7 days')); goto DT32m; Gtsb7: $withdrawal_count['time'][] = date('Y-m-d', strtotime("-{$i} days")); goto mINEX; CFuUO: $profit_count['time'] = array_reverse($profit_count['time']); goto HI6SE; NfDKG: $prevday = strtotime(date('Y-m-d 00:00:00', strtotime("-{$i} days"))); goto I2CnN; Aj7cu: $today_total_withdrawal = pdo_fetch('SELECT SUM(`profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 2 and `create_time` >' . $start_time); goto vNzoO; UEsl8: if (!($i < 30)) { goto PaphG; } goto NfDKG; h7VrG: $profit_count['totalData'] = array_reverse($profit_count['totalData']); goto CFuUO; GPwIC: $profit_count = json_encode($profit_count); goto Q9Msa; n9K5V: $i++; goto em2FZ; XUz1x: $month_total_withdrawal = pdo_fetch('SELECT SUM(`profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 2 and `create_time` BETWEEN ' . $month_time . ' and ' . $start_time); goto R28Ec; Q9Msa: $withdrawal_count = json_encode($withdrawal_count); goto P3xCo; KYP3F: $withdrawalData = pdo_fetch('SELECT SUM(`profit`) as `profit` FROM ' . tablename($this->tablePrefix . 'withdrawalapply') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 2 and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto LHJ83; CN8Iu: PaphG: goto h7VrG; zNekM: } public function doWebRedPacketsRefund() { goto QM0et; ZfCXz: $url = $this->createWebUrl('redPacketsRefund'); goto T8fNk; tPsgc: $pageindex = $_GPC['page']; goto WwtTW; NghXj: $where .= ' and `r`.`status` = ' . intval($status); goto IoLFR; IoZVU: $pagesize = 6; goto w9T9n; IoLFR: CC87U: goto bA0EF; ERkr3: $nickname = trim($_GPC['nickname']); goto hVKnW; fbUE5: if (!($status != '' && intval($status) !== false)) { goto CC87U; } goto NghXj; cM4xp: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto i1XT6; mvV1f: CndLC: goto Ifw1V; SvOGL: include $this->template('red_packets/red_packets_refund'); goto hxpDC; DH63r: $where .= ' and `r`.`refund_time` < ' . $datemax; goto l7gKA; HBJME: AeLs8: goto MUQnC; Hp4qt: goto AeLs8; goto R1tmg; WwtTW: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto Hp4qt; l7gKA: UBlKf: goto Jdt0e; mBHex: $status = $_GPC['status']; goto fbUE5; MUQnC: $pager = pagination($total, $pageindex, $pagesize); goto HJIiK; PpukZ: $datemax = strtotime($_GPC['datemax']); goto JjQZk; bWttk: $total = count($totalList); goto IoZVU; LxQRv: nqkpT: goto m3l9s; m3l9s: if (!($datemin && $datemax == false)) { goto CndLC; } goto KOagv; HJIiK: $where = ' WHERE `r`.`uniacid` = ' . $_W['uniacid']; goto ERkr3; bA0EF: $datemin = strtotime($_GPC['datemin']); goto PpukZ; T8fNk: $totalList = pdo_getall($this->tablePrefix . 'redpacketsrefund', array("uniacid" => $_W['uniacid']), array("id"), ''); goto bWttk; Ifw1V: if (!($datemax && $datemin == false)) { goto UBlKf; } goto DH63r; JjQZk: if (!($datemin && $datemax)) { goto nqkpT; } goto yJI9K; i1XT6: ID9Rg: goto mBHex; R1tmg: h4ptC: goto RKEaP; RKEaP: $pageindex = 0; goto JNkuK; w9T9n: if (!$_GPC['page']) { goto h4ptC; } goto tPsgc; Jdt0e: $list = pdo_fetchall('SELECT `r`.`id`,`r`.`reason`,`r`.`result`,`r`.`status`,`r`.`refund_order_no`,`r`.`refund_time`,`i`.`name`,`ri`.`card_id`,`ri`.`order_no`,`i`.`name`,`m`.`nickname`,`m`.`avatar` From ' . tablename($this->tablePrefix . 'redpacketsrefund') . ' `r` LEFT JOIN ' . tablename($this->tablePrefix . 'redpacketsitem') . ' `ri` ON `r`.`rp_id`=`ri`.`id` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `ri`.`card_id`=`i`.`id`  LEFT JOIN ' . tablename('mc_members') . ' `m` ON `i`.`uid`=`m`.`uid`' . $where . ' ORDER BY `r`.`id` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto SvOGL; QM0et: global $_GPC, $_W; goto ZfCXz; KOagv: $where .= ' and `r`.`refund_time` > ' . $datemin; goto mvV1f; yJI9K: $where .= ' and `r`.`refund_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto LxQRv; JNkuK: $pageindex2 = 0; goto HBJME; hVKnW: if (!$nickname) { goto ID9Rg; } goto cM4xp; hxpDC: } public function doWebRedPacketsStatistics() { goto KSKnC; eu0K0: $count = json_encode($count); goto nTl5i; jipKE: $total_payment = pdo_fetch('SELECT SUM(`money`) as `money` From ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` > 0'); goto iOvS9; RPDEP: $prevday = strtotime(date('Y-m-d 00:00:00', strtotime("-{$i} days"))); goto hug4Z; Z0bzT: $count['successData'][] = $successData['count']; goto Urxuo; KSKnC: global $_GPC, $_W; goto uaY2h; hug4Z: $nextday = strtotime(date('Y-m-d 23:59:59', strtotime("-{$i} days"))); goto zrd6T; iOvS9: $total_server_charge = pdo_fetch('SELECT SUM(`service_charge`) as `service_charge` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` > 0'); goto Sb179; Sb179: $total_refund_money = pdo_fetch('SELECT SUM(`money`) as `money` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 4'); goto aiW0Q; TL3fk: $count['time'] = array(); goto xQ18j; kYude: ESEZ4: goto ZuNHh; zCDhc: $count['successData'] = array(); goto jNWLX; KrLpx: $count['successData'] = array_reverse($count['successData']); goto DV8PE; VXSMB: $count['time'][] = date('Y-m-d', strtotime("-{$i} days")); goto khhRV; aiW0Q: $count = array(); goto zCDhc; khhRV: QUQ32: goto saPeO; UCgRP: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto Z0bzT; wC3LV: $count['time'] = array_reverse($count['time']); goto eu0K0; FHwNL: $day = date('d'); goto npWoL; jNWLX: $count['totalData'] = array(); goto TL3fk; kodjw: goto ESEZ4; goto lh_Nq; NFiCO: $nextday1 = date('Y-m-d 23:59:59', strtotime("-{$i} days")); goto RPDEP; uaY2h: $start_time = strtotime(date('Y-m-d 00:00:00')); goto FHwNL; zrd6T: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto UCgRP; npWoL: $month_time = strtotime(date('Y-m-d 00:00:00', strtotime("-{$day} days"))); goto m6DnR; vkUTM: $total_num = pdo_fetch('SELECT COUNT(*) as `count` From ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` > 0'); goto jipKE; m6DnR: $today_total_num = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` > 0 and `create_time` > ' . $start_time); goto c3G2G; ZuNHh: if (!($i < 30)) { goto LFyZ0; } goto R0qK_; R0qK_: $prevday1 = date('Y-m-d 00:00:00', strtotime("-{$i} days")); goto NFiCO; xQ18j: $i = 0; goto kYude; DV8PE: $count['totalData'] = array_reverse($count['totalData']); goto wC3LV; UVPCt: $today_server_charge = pdo_fetch('SELECT SUM(`service_charge`) as `service_charge` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` > 0 and `create_time` > ' . $start_time); goto XIQ7c; Urxuo: $count['totalData'][] = $totalData['count']; goto VXSMB; nTl5i: include $this->template('red_packets/red_packets_statistics'); goto frb6W; saPeO: $i++; goto kodjw; c3G2G: $today_total_money = pdo_fetch('SELECT SUM(`money`) as `money` From ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` > 0  and `create_time` > ' . $start_time); goto UVPCt; XIQ7c: $today_refuld_money = pdo_fetch('SELECT SUM(`money`) as `money` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 4 and `create_time` > ' . $start_time); goto vkUTM; lh_Nq: LFyZ0: goto KrLpx; frb6W: } public function doWebGetRedPacketstStatistics() { goto XyS3x; PxkAG: $count['time'][] = '   ' . date('H', $prevTime); goto BZ9Ha; prNqz: $nextTime = strtotime(date('Y-m-' . $day . ' ' . $i . ':59:59')); goto e1et7; yNVvi: $count = array(); goto UsPMM; c759M: $count['successData'][] = $successData['count']; goto jWXM9; EMWdw: J2pYB: goto kOuuv; b7CPc: LnKe4: goto WpKM0; kjmnC: r2_Se: goto bSeHT; Ob10b: JVar6: goto itilm; itilm: $day = date('d'); goto oK00g; PhI3h: $days = date('d'); goto hNmLh; krHBy: $nextday = strtotime(date('Y-m-d 23:59:59', strtotime("-{$i} days"))); goto oiM6c; UsaJL: $count['totalData'][] = $totalData['count']; goto YmXkB; shMl6: if (strpos($data['time'], '-')) { goto bwFfj; } goto Zxa4k; VvvQu: $nextTime = strtotime(date('Y-m-d 23:59:59', strtotime($date[0] . '+' . $j . ' day'))); goto DJx1B; gAATw: gvy2X: goto f3Hyr; ey3_8: if ($data['dateType'] == 0) { goto gzUMS; } goto KEt9Q; ychW5: $nextTime = strtotime(date('Y-m-' . $i . ' 23:59:59')); goto gVCOl; tOyiR: $count['time'][] = date('Y-m-d', $prevTime); goto gjUBs; oiM6c: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto du1Uk; f5FqH: bwFfj: goto BTgmk; vA7jM: $prevTime = strtotime(date('Y-m-' . $i . ' 00:00:00')); goto ychW5; N_i9q: v2RZv: goto lHEua; i_Q6S: $count['totalData'][] = $totalData['count']; goto PbHNp; VvP7t: $days = getDays(strtotime($date[0]), strtotime($date[1])); goto NKbGe; ywYhI: if (!($data['dateType'] == 4)) { goto v2RZv; } goto PhI3h; hXJjD: if ($data['dateType'] == 3) { goto xEKkc; } goto ywYhI; sx9j7: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto T0LeI; RuRug: s3ARD: goto GPNnT; YmXkB: $count['time'][] = date('Y-m-d', $prevTime); goto bfkvB; KAMHy: $j = 0; goto KswTm; dwWQq: $count['totalData'] = array(); goto P3soM; TOpjG: eDnHG: goto lMh8C; icDUo: goto aWsR2; goto f5FqH; UsPMM: $count['successData'] = array(); goto dwWQq; N3pkC: Ud_At: goto WmfjO; KEt9Q: if ($data['dateType'] == 1) { goto TxoDz; } goto iIL2g; Pok3J: $count['successData'][] = $successData['count']; goto UsaJL; hvcbE: $count['successData'][] = $successData['count']; goto bhWS8; oK00g: $day -= 1; goto c8Z0c; bSeHT: $count['successData'] = array_reverse($count['successData']); goto DDC8I; k1gcc: goto LnKe4; goto AMiHz; e1et7: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto Mwsw_; HUy0c: if ($i == 0) { goto Qcz3C; } goto zQF2w; Bg5Mc: if ($data['dateType'] == 7 || $data['dateType'] == 30) { goto D2zyL; } goto ey3_8; Sujsq: xevV8: goto xh4Vh; NKbGe: aWsR2: goto gVcTF; HGHkJ: $i++; goto F6lvm; ttKHN: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto sx9j7; k_YXT: $count['totalData'][] = $totalData['count']; goto tOyiR; VyK6Q: $days = date('t', strtotime('-1 month')); goto Donj9; b2WHn: $nextTime = strtotime(date('Y-m-' . $i . ' 23:59:59', strtotime('-1 month'))); goto XoWpk; P3soM: $count['time'] = array(); goto pQJ0C; SWOSB: xEKkc: goto VyK6Q; Zxa4k: $this->json_return('', 0); goto icDUo; lHEua: goto OSpyW; goto SWOSB; bfkvB: mnjx1: goto zPgBy; XnQdN: Srklp: goto N_i9q; Mwsw_: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto fkcHU; kmt_3: if (!($i <= $days)) { goto Srklp; } goto vA7jM; jWXM9: $count['totalData'][] = $totalData['count']; goto WwKd4; AzyYX: T4frS: goto Sujsq; GPNnT: $this->json_return('', 1, $count); goto c7nbZ; zHcwU: $count['time'][] = date('Y-m-d', strtotime("-{$i} days")); goto TOpjG; du1Uk: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevday . ' and ' . $nextday); goto hvcbE; MNc5b: vZtNB: goto qLR2N; Zpgnf: Kgc0A: goto EMWdw; aOyuE: $totalData = pdo_fetch('SELECT  COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto an1pP; Jnb3S: Qcz3C: goto RGB3M; qw6p4: j9s8o: goto HGHkJ; ep8Xy: gr5Cn: goto kmt_3; DJx1B: $j += 1; goto ttKHN; iIL2g: if ($data['dateType'] == 2) { goto JVar6; } goto hXJjD; hJQ4n: goto SYSfx; goto mXs_m; HLTGa: goto N3fwQ; goto m7zP9; DDC8I: $count['totalData'] = array_reverse($count['totalData']); goto uLe1Z; XoWpk: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto nkAQ4; xh4Vh: goto s3ARD; goto QTMk3; mijRW: gzUMS: goto shMl6; fKRsK: $prevday = strtotime(date('Y-m-d 00:00:00', strtotime("-{$i} days"))); goto krHBy; hmv9Q: $i++; goto HLTGa; vfn0o: goto Oxols; goto Ob10b; Uh9i6: $prevTime = strtotime(date('Y-m-d ' . $i . ':00:00')); goto tktTW; WwKd4: if ($i == 0) { goto yb4Np; } goto bzbRV; c8Z0c: $i = 0; goto Trq4f; gjUBs: KNoPi: goto RBUvk; uLe1Z: $count['time'] = array_reverse($count['time']); goto RuRug; SeLzp: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto c759M; gVcTF: $start = date('d', strtotime($date[0])); goto KAMHy; mXs_m: FS0dB: goto AVRC3; ehjDP: if (!($i < 24)) { goto FS0dB; } goto IUWln; rsSQL: goto I9h5q; goto V6MqK; f3Hyr: if (!($i <= $days + $start)) { goto T4frS; } goto bBAnM; KswTm: $i = $start; goto gAATw; QTMk3: D2zyL: goto VwgAS; cX_fS: if (!($i < $data['dateType'])) { goto r2_Se; } goto fKRsK; VwgAS: $i = 0; goto fKuLo; bhWS8: $count['totalData'][] = $totalData['count']; goto zHcwU; HJGhH: goto gvy2X; goto AzyYX; WpKM0: goto xevV8; goto mijRW; wGQ6g: goto Kgc0A; goto Jnb3S; V6rlk: if (!($i <= $time)) { goto mvrp8; } goto Uh9i6; F6lvm: goto gr5Cn; goto XnQdN; hNmLh: $i = 1; goto ep8Xy; RGB3M: $count['time'][] = '   ' . date('H', $prevTime); goto Zpgnf; AVRC3: Oxols: goto k1gcc; RBUvk: $i++; goto HJGhH; Trq4f: SYSfx: goto ehjDP; peHq9: $prevTime = strtotime(date('Y-m-' . $i . ' 00:00:00', strtotime('-1 month'))); goto b2WHn; PqkyV: $i = 0; goto B71oB; vn9kD: $time = date('H'); goto PqkyV; f6PbO: goto vZtNB; goto N3pkC; V6MqK: yb4Np: goto PxkAG; an1pP: $count['successData'][] = $successData['count']; goto i_Q6S; gVCOl: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto aOyuE; bBAnM: $prevTime = strtotime(date('Y-m-d 00:00:00', strtotime($date[0] . '+' . $j . ' day'))); goto VvvQu; TJLhW: $successData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `status` = 1 and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto SeLzp; fKuLo: sm34o: goto cX_fS; qLR2N: if (!($i <= $days)) { goto Ud_At; } goto peHq9; Donj9: $i = 1; goto MNc5b; kOuuv: $i++; goto hJQ4n; PbHNp: $count['time'][] = date('Y-m-' . $i, $prevTime); goto qw6p4; XyS3x: global $_GPC, $_W; goto yNVvi; BZ9Ha: I9h5q: goto bpVpE; T0LeI: $count['successData'][] = $successData['count']; goto k_YXT; AMiHz: TxoDz: goto vn9kD; BTgmk: $date = explode('-', $data['time']); goto VvP7t; tktTW: $nextTime = strtotime(date('Y-m-d ' . $i . ':59:59')); goto TJLhW; nkAQ4: $totalData = pdo_fetch('SELECT COUNT(*) as `count` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid` = ' . $_W['uniacid'] . ' and `create_time` BETWEEN ' . $prevTime . ' and ' . $nextTime); goto Pok3J; zPgBy: $i++; goto f6PbO; B71oB: N3fwQ: goto V6rlk; bpVpE: qpU1x: goto hmv9Q; WmfjO: OSpyW: goto vfn0o; lMh8C: $i++; goto mRcp8; mRcp8: goto sm34o; goto kjmnC; IUWln: $prevTime = strtotime(date('Y-m-' . $day . ' ' . $i . ':00:00')); goto prNqz; VJlwJ: $count['totalData'][] = $totalData['count']; goto HUy0c; fkcHU: $count['successData'][] = $successData['count']; goto VJlwJ; pQJ0C: $data = $_GPC['data']; goto Bg5Mc; bzbRV: $count['time'][] = date('H', $prevTime); goto rsSQL; zQF2w: $count['time'][] = date('H', $prevTime); goto wGQ6g; m7zP9: mvrp8: goto b7CPc; c7nbZ: } public function doWebWaitRefund() { goto mlSWJ; BQ6af: $datemax = strtotime($_GPC['datemax']); goto F_p5b; yWEif: $pager = pagination($total, $pageindex, $pagesize); goto xh06i; KjKEc: if (!$_GPC['page']) { goto gOcNZ; } goto w60m0; WQxEV: $totalList = pdo_fetchall('SELECT `r`.`id` From ' . tablename($this->tablePrefix . 'redpacketsitem') . ' `r` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `r`.`uid`=`m`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `r`.`card_id`=`i`.`id` ' . $where . ' ORDER BY `r`.`id` DESC'); goto cyO7S; fB49E: $where = ' WHERE `r`.`uniacid` = ' . $_W['uniacid'] . ' and `r`.`status` = 3'; goto UAtyY; DdYmW: $url = $this->createWebUrl('waitRefund'); goto fB49E; RXv_2: newRi: goto WQxEV; Lb8lo: $where .= ' and `r`.`create_time` > ' . $datemin; goto VjXQl; TvoRq: if (!$nickname) { goto t_Bx7; } goto hD1hj; mlSWJ: global $_GPC, $_W; goto DdYmW; xh06i: $list = pdo_fetchall('SELECT `r`.`id`,`r`.`uid`,`r`.`card_id`,`r`.`money`,`r`.`surplus_money`,`r`.`order_no`,`r`.`service_charge`,`r`.`total_num`,`r`.`receive_num`,`r`.`status`,`r`.`create_time`,`r`.`expire_time`,`m`.`nickname`,`m`.`avatar`,`i`.`name` From ' . tablename($this->tablePrefix . 'redpacketsitem') . ' `r` LEFT JOIN ' . tablename('mc_members') . ' `m` ON `r`.`uid`=`m`.`uid` LEFT JOIN ' . tablename($this->tablePrefix . 'item') . ' `i` ON `r`.`card_id`=`i`.`id` ' . $where . ' ORDER BY `r`.`id` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto SGLo1; SGLo1: include $this->template('red_packets/wait_refund'); goto tldZ2; lqgGs: $where .= ' and `r`.`status` = ' . intval($status); goto Wt0Bn; nfAo6: t_Bx7: goto gTh2e; gTh2e: $status = $_GPC['status']; goto yWocY; yoQ6q: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto y0LAg; yWocY: if (!($status != '' && intval($status) !== false)) { goto iLMMQ; } goto lqgGs; uRRG8: if (!($datemax && $datemin == false)) { goto newRi; } goto A27oQ; VjXQl: IQk9b: goto uRRG8; epyF9: OTqoe: goto fIqOC; fIqOC: if (!($datemin && $datemax == false)) { goto IQk9b; } goto Lb8lo; hD1hj: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto nfAo6; hyThO: gOcNZ: goto xObvO; w60m0: $pageindex = $_GPC['page']; goto yoQ6q; cyO7S: $total = count($totalList); goto yF6Xt; Wt0Bn: iLMMQ: goto eiD4E; y0LAg: goto YvJT1; goto hyThO; UAtyY: $nickname = trim($_GPC['nickname']); goto TvoRq; A27oQ: $where .= ' and `r`.`create_time` < ' . $datemax; goto RXv_2; xObvO: $pageindex = 0; goto eRX0s; Tza2J: $where .= ' and `r`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto epyF9; F_p5b: if (!($datemin && $datemax)) { goto OTqoe; } goto Tza2J; YpGIL: YvJT1: goto yWEif; eiD4E: $datemin = strtotime($_GPC['datemin']); goto BQ6af; yF6Xt: $pagesize = 6; goto KjKEc; eRX0s: $pageindex2 = 0; goto YpGIL; tldZ2: } public function doWebShowCreateCdkey() { goto LRp8L; LRp8L: global $_GPC, $_W; goto JUmkP; JUmkP: $member_grade = unserialize(getAppConfSd('member_grade')); goto t3Vjf; t3Vjf: include $this->template('user/create_cdkey'); goto bJsfm; bJsfm: } public function doWebCreateCdkey() { goto F3W0M; AqqKD: $i++; goto M0x9N; MOdYC: Pg_mY: goto oIl33; oIl33: $j++; goto YItTd; gK4Rz: pzPA8: goto AqqKD; md24U: if (in_array($type, array(1, 2, 3))) { goto Z62Kf; } goto pLulb; MPNpg: hPR2_: goto md24U; A3wGv: $data = array("uniacid" => $_W['uniacid'], "code" => $pcode, "type" => $type, "create_time" => time()); goto QYQhZ; YItTd: goto AtMAK; goto cOE5o; kyojm: $num = intval($_GPC['num']); goto lAsyE; Ooudf: $pcode .= $pcodex; goto MOdYC; SHtjm: if (!($num > 1000)) { goto OB3wk; } goto WL6D1; sfplR: Ylsgx: goto gK4Rz; M0x9N: goto olK68; goto hlbPM; FPw0a: $type = intval($_GPC['type']); goto hU1Iu; cOE5o: o0kve: goto A3wGv; izaqE: OB3wk: goto skSeH; F3W0M: global $_GPC, $_W; goto FPw0a; ClCor: Z62Kf: goto kyojm; qy5yJ: exit; goto sfplR; YnH6v: $offset = rand(0, 28); goto v1cUi; ZWJsK: if (!($j < 4)) { goto o0kve; } goto YnH6v; DLxwo: $code = md5(date('Y-m-d H:i:s') + strval($i) + strval($microtime_float)); goto sba8b; oUZv_: $i = 0; goto U9u30; h3GkT: $this->json_return('', 0); goto TuRWh; pLulb: $this->json_return('', 0); goto ClCor; COTUs: list($usec, $sec) = explode(' ', microtime()); goto uwZx_; sba8b: $pcode = ''; goto KlNjp; hU1Iu: if ($type) { goto hPR2_; } goto PYM1s; uwZx_: $microtime_float = (double) $usec + (double) $sec; goto DLxwo; LVOh7: if ($result) { goto Ylsgx; } goto KCwG6; przod: if (!($i < $num)) { goto XGDRS; } goto AOMD8; y2x0x: AtMAK: goto ZWJsK; hlbPM: XGDRS: goto s_xAg; v1cUi: $pcodex = strtoupper(substr($code, $offset, 3)); goto Ooudf; TuRWh: Z_85Z: goto SHtjm; PYM1s: $this->json_return('', 0); goto MPNpg; WL6D1: $this->json_return('1000', 0); goto izaqE; AOMD8: usleep(100); goto COTUs; KCwG6: $this->json_return('', 0); goto qy5yJ; QYQhZ: $result = pdo_insert($this->tablePrefix . 'cdkey', $data); goto LVOh7; s_xAg: $this->json_return('', 1); goto ySDqc; skSeH: $data = array(); goto oUZv_; KlNjp: $j = 0; goto y2x0x; lAsyE: if ($num) { goto Z_85Z; } goto h3GkT; U9u30: olK68: goto przod; ySDqc: } public function doWebExchangeVipLog() { goto dOkQV; aVlA_: if (!$code) { goto GI6sD; } goto Mdt1f; w2fRd: $where .= ' and `e`.`create_time` < ' . $datemax; goto No_oC; JfeVL: goto np22P; goto KTijK; VyrXe: $total = $res['total']; goto HRzqg; bhr0z: $pageindex2 = 0; goto qaKe1; eh6ID: $datemin = strtotime($_GPC['datemin']); goto uqd5Q; Mdt1f: $where .= ' and `e`.`code` =\'' . $code . '\''; goto YUsHH; dOkQV: global $_GPC, $_W; goto yx9MC; HRzqg: $pagesize = 6; goto Y7wJs; Q1UMA: ln9Km: goto eh6ID; PWL9n: if (!$nickname) { goto ln9Km; } goto P6plJ; zXm7y: $pageindex = 0; goto bhr0z; YUsHH: GI6sD: goto O8cB1; UTE_A: $code = trim($_GPC['code']); goto aVlA_; Kpro1: $pager = pagination($total, $pageindex, $pagesize); goto Fv2A9; P6plJ: $where .= ' and `m`.`nickname` LIKE \'%' . $nickname . '%\''; goto Q1UMA; Fv2A9: $list = pdo_fetchall('SELECT e.*,m.`nickname`,m.`avatar` From ' . tablename($this->tablePrefix . 'exchangeviplog') . ' AS `e` LEFT JOIN ' . tablename('mc_members') . ' AS `m` ON `e`.`uid`=`m`.`uid`' . $where . ' ORDER BY `e`.`create_time` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto jIjaT; wLNXP: if (!($datemin && $datemax)) { goto C44i0; } goto NjX5m; Y7wJs: if (!$_GPC['page']) { goto CHsLx; } goto kioEV; kioEV: $pageindex = $_GPC['page']; goto JKtLN; NjX5m: $where .= ' and `e`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto TwQd_; RfeR8: $where .= ' and `e`.`create_time` > ' . $datemin; goto Dl766; jIjaT: include $this->template('user/exchange_vip_log'); goto aOFP3; YRGnO: if (!($datemin && $datemax == false)) { goto nWbkX; } goto RfeR8; No_oC: cq2jW: goto j6LPC; KTijK: CHsLx: goto zXm7y; qaKe1: np22P: goto Kpro1; j6LPC: $res = pdo_fetch('SELECT count(`e`.`id`) as total From ' . tablename($this->tablePrefix . 'exchangeviplog') . ' AS `e` LEFT JOIN ' . tablename('mc_members') . ' AS `m` ON `e`.`uid`=`m`.`uid`' . $where); goto VyrXe; Dl766: nWbkX: goto JJ3kD; yx9MC: $url = $this->createWebUrl('exchangeVipLog'); goto jlgvD; JKtLN: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto JfeVL; uqd5Q: $datemax = strtotime($_GPC['datemax']); goto wLNXP; jlgvD: $where = ' WHERE `e`.`uniacid` = ' . $_W['uniacid']; goto UTE_A; O8cB1: $nickname = trim($_GPC['nickname']); goto PWL9n; TwQd_: C44i0: goto YRGnO; JJ3kD: if (!($datemax && $datemin == false)) { goto cq2jW; } goto w2fRd; aOFP3: } public function doWebMemberCdkey() { goto vGJUZ; bYV2n: $pager = pagination($total, $pageindex, $pagesize); goto QSgqv; gzEGN: $total = $res['total']; goto VvuK_; DyykH: header('Content-Disposition:attachment; filename=.csv'); goto jnJbc; QSgqv: $member_grade = unserialize(getAppConfSd('member_grade')); goto nNXxa; GV4MV: $pageindex = 0; goto BCML6; FTsz_: header('Content-Type: application/vnd.ms-excel'); goto DyykH; XxGta: $html = cdkey_export_parse($list, $available_fields); goto FTsz_; XDXLJ: echo $html; goto cCeTW; SO7d0: S2MMG: goto H2NT3; E4JKB: xDYOV: goto mWtWo; TWVIe: if (!($datemin && $datemax)) { goto xDYOV; } goto FIfGA; nNXxa: $list = pdo_fetchall('SELECT c.* From ' . tablename($this->tablePrefix . 'cdkey') . ' AS `c` ' . $where . ' ORDER BY `c`.`id` DESC LIMIT ' . $pageindex2 . ',' . $pagesize); goto IXXFi; kBPya: $available_fields = array("code" => "", "type" => "", "status" => "", "create_time" => ""); goto en421; RAqv4: if (!isset($_GPC['export'])) { goto KU71n; } goto kBPya; IXXFi: include $this->template('user/member_cdkey'); goto xWTER; AtlM8: FRNTP: goto GV4MV; Q6sMC: $status = $_GPC['status']; goto GAzj5; C3708: if (!($datemax && $datemin == false)) { goto Y3rfI; } goto JYom2; onJxD: $res = pdo_fetch('SELECT count(`c`.`id`) as total From ' . tablename($this->tablePrefix . 'cdkey') . ' AS `c` ' . $where); goto gzEGN; criOL: $where = ' WHERE `c`.`uniacid` = ' . $_W['uniacid']; goto xsTsi; Jy8XW: $pageindex2 = (intval($_GPC['page']) - 1) * $pagesize; goto ZJfuM; AUiOC: $url = $this->createWebUrl('memberCdkey'); goto criOL; liOPp: if (!$_GPC['page']) { goto FRNTP; } goto ZHnNp; NjRhH: $type = $_GPC['type']; goto iDSbA; nZ1s5: if (!$code) { goto smoRp; } goto H_3i_; q2Y2h: smoRp: goto Q6sMC; cCeTW: exit; goto hc2yp; wNVSQ: s3059: goto C3708; H2NT3: $datemin = strtotime($_GPC['datemin']); goto qv1r4; H_3i_: $where .= ' and `c`.`code` = \'' . $code . '\''; goto q2Y2h; aGqrd: wHdKp: goto NjRhH; VvuK_: $pagesize = 13; goto liOPp; en421: $keys = implode(',', array_keys($available_fields)); goto xleYj; vGJUZ: global $_GPC, $_W; goto AUiOC; xleYj: $list = pdo_fetchall("SELECT {$keys} From " . tablename($this->tablePrefix . 'cdkey') . ' AS `c` ' . $where . ' ORDER BY `c`.`id` DESC'); goto XxGta; mWtWo: if (!($datemin && $datemax == false)) { goto s3059; } goto k4ebJ; ZHnNp: $pageindex = $_GPC['page']; goto Jy8XW; q3qxq: $where .= ' and `c`.`type` = ' . intval($type); goto SO7d0; iDSbA: if (!($type != '' && intval($type) !== false)) { goto S2MMG; } goto q3qxq; jnJbc: header('Cache-Control: max-age=0'); goto XDXLJ; Qc2FP: $where .= ' and `c`.`status` = ' . intval($status); goto aGqrd; ZJfuM: goto J5r3E; goto AtlM8; wuvpF: Y3rfI: goto RAqv4; xsTsi: $code = trim($_GPC['code']); goto nZ1s5; JYom2: $where .= ' and `c`.`create_time` < ' . $datemax; goto wuvpF; k4ebJ: $where .= ' and `c`.`create_time` > ' . $datemin; goto wNVSQ; qv1r4: $datemax = strtotime($_GPC['datemax']); goto TWVIe; FIfGA: $where .= ' and `c`.`create_time` BETWEEN ' . $datemin . ' and ' . $datemax; goto E4JKB; hc2yp: KU71n: goto onJxD; BCML6: $pageindex2 = 0; goto eKJPr; GAzj5: if (!($status != '' && intval($status) !== false)) { goto wHdKp; } goto Qc2FP; eKJPr: J5r3E: goto bYV2n; xWTER: } public function doWebredPacketsItemStatus() { goto Tu6e8; XVFK9: if (!($list != false)) { goto J17TI; } goto m8MIq; W_osf: J17TI: goto XpePn; H1sC7: bPSy5: goto W_osf; tcfLB: $list = pdo_fetchall('SELECT `id`,`status`,`expire_time` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid`=:uniacid and `status` = 1', array(":uniacid" => $_W['uniacid'])); goto XVFK9; m8MIq: $time = time(); goto hxgrb; Tu6e8: global $_GPC, $_W; goto tcfLB; hxgrb: foreach ($list as $v) { goto fLOnl; K1j_E: pdo_update($this->tablePrefix . 'redpacketsitem', array("status" => 3), array("id" => $v['id'])); goto Ccnfc; Ccnfc: yXPJL: goto MXG4I; fLOnl: if (!($v['expire_time'] < $time)) { goto yXPJL; } goto K1j_E; MXG4I: sk0s3: goto hV4jz; hV4jz: } goto H1sC7; XpePn: } public function doWebRedPacketsItemRefound() { goto JFVMF; TgZi6: if ($result != false) { goto AxTyB; } goto OpReM; CZxbE: $result = refund_wx_pocket($data['order_no']); goto TgZi6; eB6lW: goto q2Gsg; goto u64cf; JFVMF: global $_GPC, $_W; goto ekIsd; ekIsd: $id = intval($_GPC['id']) > 0 ? intval($_GPC['id']) : $this->json_return('', 0); goto m7ubi; gzgwg: q2Gsg: goto bSso0; m7ubi: $data = pdo_fetch('SELECT `id`,`order_no` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `id`=:id LIMIT 1', array(":id" => $id)); goto CZxbE; u64cf: AxTyB: goto hdi1Z; hdi1Z: $this->json_return(''); goto gzgwg; OpReM: $this->json_return('', 0); goto eB6lW; bSso0: } public function doWebRedPacketsItemRefounds() { goto ddtcw; oRsir: $idArr = $_GPC['idArr']; goto yEi_W; wm3Z0: foreach ($list as $key => $v) { $result = refund_wx_pocket($v['order_no']); hktpJ: } goto V9som; UJJFX: X8EVH: goto qLWwZ; NlWu7: $this->json_return(''); goto GSYf0; jEaLd: JA2Dz: goto pNAPN; Rdg99: goto tE6dS; goto qxahm; R2EpA: $list = pdo_fetchall('SELECT `id`,`order_no` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE  `uniacid` = ' . $_W['uniacid'] . ' and `id` in (' . implode(',', $idArr) . ') and `status` = 3'); goto K1czt; xTA8N: Y2R6T: goto hC3VB; K1czt: rZ1x0: goto jEaLd; GtKTn: if (!($type == 2)) { goto JA2Dz; } goto oRsir; K1fvL: if ($type == 1) { goto Y2R6T; } goto GtKTn; pNAPN: goto X8EVH; goto xTA8N; GSYf0: tE6dS: goto CQbqA; hC3VB: $list = pdo_getAll($this->tablePrefix . 'redpacketsitem', array("uniacid" => $_W['uniacid'], "status" => 3), array("id", "order_no"), ''); goto UJJFX; ddtcw: global $_GPC, $_W; goto wxCrQ; wxCrQ: $type = intval($_GPC['type']); goto K1fvL; V9som: VKsYQ: goto NlWu7; mpthP: $this->json_return('', 0); goto Rdg99; yEi_W: if (!(is_array($idArr) && count($idArr) >= 1)) { goto rZ1x0; } goto R2EpA; qxahm: J8ISx: goto wm3Z0; qLWwZ: if (count($list) >= 1) { goto J8ISx; } goto mpthP; CQbqA: } public function doWebRedPacketsItemAjaxRefound() { goto N3EEw; MprOf: DEiwc: goto yMxuV; ZK6ic: if (!($switch != 1)) { goto Y_bvc; } goto jBqOL; NseSP: $list = pdo_fetchall('SELECT `id`,`order_no`,`status` FROM ' . tablename($this->tablePrefix . 'redpacketsitem') . ' WHERE `uniacid`=:uniacid and `status` = 3', array(":uniacid" => $_W['uniacid'])); goto nuvR0; jBqOL: return false; goto s1SdM; HT1Mo: foreach ($list as $key => $v) { refund_wx_pocket($v['order_no']); mdq5I: }