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 dlZb_; dlZb_: defined('IN_IA') or exit('Access Denied'); goto LIygz; LIygz: r..

Decoded Output download

<?php 
 goto dlZb_; dlZb_: defined('IN_IA') or exit('Access Denied'); goto LIygz; LIygz: require_once IA_ROOT . '/addons/hc_answer/functions.php'; goto X8MIc; X8MIc: class Hc_answerModuleSite extends WeModuleSite { public function doWebMain() { global $_GPC, $_W; include $this->template('main'); } public function doWebBasic() { goto IiQsn; JchT0: if ($currtime >= $active['xnnumstart']) { goto IeRV7; } goto wFsaE; vwTiN: if (!($everyday > 1)) { goto XcEyS; } goto mFOcw; RPFEf: $maxnum = round($active['truemoney'] / $active['money']) - $active['truepeople']; goto GHC_q; ZPB5b: BAJ_r: goto FjUVZ; Jq_7I: $info['tpl'] = json_decode($res['tpl'], true); goto UOUOr; yVWtv: $plan = ceil(24 / $everyday) . ''; goto oNQKP; B12JM: $active = json_decode(pdo_getcolumn('hc_setting', array("weid" => $_W['uniacid']), array("active")), true); goto ChUjY; wFsaE: $days = round(($season['endtime'] - $season['starttime']) / 86400) - $active['xnnumstart'] + 1; goto insvC; PCn2p: idUT7: goto RPFEf; RQFUJ: yL6BD: goto A4rjk; insvC: goto idUT7; goto D02rx; oNQKP: goto bfonO; goto RQFUJ; tdUY7: $everyhour = round($everyday / 24); goto G0PSV; g5qbN: $info['follow'] = json_decode($res['follow'], true); goto jBdpw; AnWei: $plan = '1'; goto ZPB5b; hvwxG: $info['index'] = json_decode($res['index'], true); goto FkBer; ChUjY: $season = pdo_get('hc_season', array("status" => 1, "weid" => $_W['uniacid'])); goto L3cCb; IiQsn: global $_GPC, $_W; goto AX55O; D02rx: IeRV7: goto fBzcJ; B0g5a: $dan = pdo_getall('hc_dan', array("weid" => $_W['uniacid']), array(), '', 'dan_id desc'); goto uIOzL; n09P5: $plan = ceil(60 / $everyhour) . ''; goto TZleg; jBdpw: $info['forward'] = json_decode($res['forward'], true); goto FBrts; G0PSV: $everymins = round($everyhour / 60); goto vwTiN; UOUOr: $info['active'] = json_decode($res['active'], true); goto BaZdE; FjUVZ: bfonO: goto x8dat; fBzcJ: $days = round(($season['endtime'] - time()) / 86400) - $active['xnnumstart'] + 1; goto PCn2p; FBrts: $info['notice'] = json_decode($res['notice'], true); goto kPoIq; A4rjk: if ($everymins > 1) { goto RnGQ9; } goto n09P5; uIOzL: $ad = pdo_getall('hc_ad', array("weid" => $_W['uniacid']), array(), '', 'id asc'); goto B12JM; FkBer: $info['basic'] = json_decode($res['basic'], true); goto uAlSy; mFOcw: if ($everyhour > 1) { goto yL6BD; } goto yVWtv; rXnpd: RnGQ9: goto AnWei; AX55O: $res = pdo_get('hc_setting', array("weid" => $_W['uniacid'])); goto hvwxG; BaZdE: $sid = pdo_getcolumn('hc_season', array("status" => 1, "weid" => $_W['uniacid']), array("id")); goto B0g5a; kPoIq: $info['sign'] = json_decode($res['sign'], true); goto Jq_7I; x8dat: XcEyS: goto wU6cb; GHC_q: $everyday = round($maxnum / $days); goto tdUY7; L3cCb: $currtime = ceil((time() - $season['starttime']) / 86400); goto JchT0; uAlSy: $info['ques'] = json_decode($res['ques'], true); goto g5qbN; TZleg: goto BAJ_r; goto rXnpd; wU6cb: include $this->template('setting/basic'); goto QHV2v; QHV2v: } public function doWebBasicdo() { goto l2okR; ewNnL: ccCKY: goto nrtze; hD_z5: if (!$result) { goto d5ASc; } goto zN_8d; MRnJn: $data = array("weid" => $_W['uniacid'], "index" => json_encode($_POST['index']), "basic" => json_encode($_POST['basic']), "ques" => json_encode($_POST['ques']), "follow" => json_encode($_POST['follow']), "forward" => json_encode($_POST['forward']), "notice" => json_encode($_POST['notice']), "sign" => json_encode($_POST['sign']), "tpl" => json_encode($_POST['tpl']), "active" => json_encode($_POST['active'])); goto v2Ki2; v2Ki2: $res = pdo_get('hc_setting', array("weid" => $_W['uniacid'])); goto Mc1ra; l2okR: global $_GPC, $_W; goto MRnJn; MYWRF: eb6bV: goto hD_z5; fGT6n: $result = pdo_update('hc_setting', $data, array("weid" => $_W['uniacid'])); goto MrSPn; Th0DU: exit(json_encode(array("code" => 0, "msg" => ""))); goto sEK5q; MrSPn: goto eb6bV; goto ewNnL; nrtze: $result = pdo_insert('hc_setting', $data); goto MYWRF; zN_8d: exit(json_encode(array("code" => 1, "msg" => ""))); goto R09em; Mc1ra: if (empty($res)) { goto ccCKY; } goto fGT6n; R09em: d5ASc: goto Th0DU; sEK5q: } public function doWebStartsocket() { exit(json_encode(array("code" => 1, "msg" => ""))); } public function doWebSeason() { goto FQyR1; VGV2z: $pagesize = 15; goto ViWtv; wKhpr: $nums = ceil($count / $pagesize); goto DoMKX; bySfX: $sid = $_GPC['season']; goto yT3KM; ViWtv: $count = pdo_getcolumn('hc_season', $where, array("count(*)")); goto wKhpr; DoMKX: include $this->template('setting/season'); goto AKrMF; FQyR1: global $_GPC, $_W; goto bySfX; yT3KM: $where['weid'] = $_W['uniacid']; goto VGV2z; AKrMF: } public function doWebSeasonajax() { goto puFZ8; wkHx3: $currno = pdo_getcolumn('hc_season', array("status" => 1, "weid" => $_W['uniacid']), array("no")); goto qOWrJ; qOWrJ: $list = pdo_getslice('hc_season', $where, array($pageindex, $pagesize), $total, array(), '', 'no asc'); goto Nrv1a; puFZ8: global $_GPC, $_W; goto FNNlT; mGDmj: $pagesize = 15; goto Ys2nv; Ys2nv: $where['weid'] = $_W['uniacid']; goto wkHx3; FNNlT: $pageindex = max(1, intval($_POST['page'])); goto mGDmj; MnyKY: exit(json_encode(array("code" => 1, "msg" => "", "data" => $list))); goto hH0zV; sFhG0: L6MHs: goto MnyKY; Nrv1a: foreach ($list as $key => $val) { goto Q1BXj; uXr6R: $list[$key]['endtime'] = date('Y-m-d H:i', $val['endtime']); goto c5JUA; BE70A: hK7TR: goto h0FY5; h0FY5: $list[$key]['thumb'] = $_W['attachurl'] . $val['thumb']; goto Ipzvk; Ipzvk: $list[$key]['starttime'] = date('Y-m-d H:i', $val['starttime']); goto uXr6R; Q1BXj: if (!($val['no'] < $currno)) { goto hK7TR; } goto yQ6m2; c5JUA: bfYGY: goto QiXvo; yQ6m2: $list[$key]['status'] = 2; goto BE70A; QiXvo: } goto sFhG0; hH0zV: } public function doWebSeasonadd() { goto aZVcZ; RgiYl: K7VZO: goto QEE0V; aZVcZ: global $_GPC, $_W; goto IcSaO; HbmOP: $info['starttime'] = date('Y-m-d H:i', $info['starttime']); goto xIx3O; qj_YE: $info = pdo_get('hc_season', array("weid" => $_W['uniacid'], "id" => $id)); goto HbmOP; QEE0V: include $this->template('setting/seasonadd'); goto Blr80; xIx3O: $info['endtime'] = date('Y-m-d H:i', $info['endtime']); goto RgiYl; T3Zoz: if (empty($id)) { goto K7VZO; } goto qj_YE; IcSaO: $id = $_GPC['id']; goto T3Zoz; Blr80: } public function doWebSeasondo() { goto gOmCF; OZCGD: exit(json_encode(array("code" => 0, "msg" => ""))); goto dbonD; gOmCF: global $_GPC, $_W; goto zWAg9; uqrXW: exit(json_encode(array("code" => 1, "msg" => ""))); goto AY_Rn; RIB8z: LOrMP: goto m8tZz; Cgf_p: goto UL7Yb; goto heRnh; Apio7: pdo_update('hc_season', array("status" => 0), array("weid" => $_W['uniacid'], "id !=" => $id)); goto DZR5E; PQ_5U: exit(json_encode(array("code" => 0, "msg" => ""))); goto sO4RG; dbonD: ElTXX: goto HAFzr; P67jv: yS5P0: goto OZCGD; m8tZz: exit(json_encode(array("code" => 0, "msg" => ""))); goto gFte5; AhKtu: $data = array("no" => $_GPC['no'], "name" => $_GPC['name'], "starttime" => strtotime($_GPC['starttime']), "endtime" => strtotime($_GPC['endtime']), "weid" => $_W['uniacid'], "createtime" => time()); goto l9xVD; l9xVD: if (!empty($id)) { goto H3OmN; } goto CdCLI; AY_Rn: nb7OQ: goto PQ_5U; sO4RG: goto ElTXX; goto lRkd2; fhicq: $res = pdo_delete('hc_season', array("id" => $id)); goto tilrT; nNdW7: if ($_GPC['act'] == 'start') { goto AnaUe; } goto AhKtu; lRkd2: AnaUe: goto WDKeE; heRnh: H3OmN: goto kufTG; wcnxf: UL7Yb: goto Mqc4M; DZR5E: $lastseason = pdo_getall('hc_user_info', array("weid" => $_W['uniacid'])); goto nUp9Z; kufTG: $res = pdo_update('hc_season', $data, array("id" => $id)); goto wcnxf; nUp9Z: foreach ($lastseason as $key => $val) { goto SQE7e; SQE7e: $data = array("uid" => $val['uid'], "weid" => $val['weid'], "sid" => $val['sid'], "level" => $val['level'], "expe" => $val['expe'], "dan" => $val['dan'], "star" => $val['star'], "winrate" => $val['winrate'], "totalnum" => $val['totalnum'], "winnum" => $val['winnum']); goto PPayZ; w0bkQ: pdo_update('hc_user_info', $udate, array("uid" => $val['uid'], "weid" => $val['weid'], "sid" => $val['sid'])); goto m65Z7; m9TOM: $udate = array("sid" => $id, "dan" => 1, "star" => 0, "winrate" => 0, "totalnum" => 0, "winnum" => 0); goto w0bkQ; m65Z7: DmBoa: goto IkGwf; PPayZ: pdo_insert('hc_user_history', $data); goto m9TOM; IkGwf: } goto oOrrY; UjzLZ: if (!($_GPC['act'] == 'del')) { goto wJcHy; } goto fhicq; oOrrY: kNOgM: goto a2tad; Mqc4M: if (empty($res)) { goto nb7OQ; } goto uqrXW; QOZY3: exit(json_encode(array("code" => 1, "msg" => ""))); goto P67jv; zWAg9: $id = $_GPC['id']; goto UjzLZ; CdCLI: $res = pdo_insert('hc_season', $data); goto Cgf_p; gFte5: wJcHy: goto nNdW7; WDKeE: $res = pdo_update('hc_season', array("status" => 1), array("weid" => $_W['uniacid'], "id" => $id)); goto Apio7; tilrT: if (!$res) { goto LOrMP; } goto dfySr; dfySr: exit(json_encode(array("code" => 1, "msg" => ""))); goto RIB8z; a2tad: if (!$res) { goto yS5P0; } goto QOZY3; HAFzr: } public function doWebGrade() { goto zth3J; tCvTo: $list = pdo_getall('hc_grade', array("weid" => $_W['uniacid']), array(), '', 'levelno asc'); goto cT0B4; zth3J: global $_GPC, $_W; goto tCvTo; cT0B4: include $this->template('setting/grade'); goto wFIIg; wFIIg: } public function doWebGradedo() { goto fVknD; YsGpj: exit(json_encode(array("code" => 1, "msg" => ""))); goto J_UDO; zCtla: z7Aui: goto ZH6Hh; ubSUz: exit(json_encode(array("code" => 0, "msg" => ""))); goto bQvz7; wlou3: if (!$res) { goto z7Aui; } goto yY3Lu; AB6kX: foreach ($arr as $key => $val) { goto Yh4wt; Yh4wt: $data = array("weid" => $_W['uniacid'], "levelno" => $val['no'], "levelname" => $val['name'], "levelexp" => $val['exp']); goto JbH9c; BIdio: O57NZ: goto NJbA2; dohWu: if (empty($res)) { goto O57NZ; } goto WD3nD; WD3nD: $result = pdo_update('hc_grade', $data, array("weid" => $_W['uniacid'], "levelno" => $val['no'])); goto oZtce; JbH9c: $res = pdo_getcolumn('hc_grade', array("weid" => $_W['uniacid'], "levelno" => $val['no']), array("id")); goto dohWu; oZtce: goto dvU0q; goto BIdio; wc9aw: dvU0q: goto CkjyB; CkjyB: Qmpfb: goto cLgJb; NJbA2: $result = pdo_insert('hc_grade', $data); goto wc9aw; cLgJb: } goto LloiT; ZH6Hh: exit(json_encode(array("code" => 0, "msg" => ""))); goto s_YxV; rYFOC: $res = pdo_delete('hc_grade', array("id" => $id)); goto wlou3; FvFzo: VEjBk: goto rYFOC; kw1KX: if ($result) { goto U7pBV; } goto ubSUz; bQvz7: goto Yaj09; goto q_2Jt; LloiT: COUv1: goto kw1KX; pwH9E: $id = $_POST['id']; goto spqFB; q_2Jt: U7pBV: goto YsGpj; Cnngd: $arr = json_decode($data, true); goto AB6kX; spqFB: if ($_POST['act'] == 'del') { goto VEjBk; } goto o14Zf; J_UDO: Yaj09: goto wkRrT; wkRrT: goto V47pD; goto FvFzo; yY3Lu: exit(json_encode(array("code" => 1, "msg" => ""))); goto zCtla; s_YxV: V47pD: goto DLBJs; o14Zf: $data = $_POST['level']; goto Cnngd; fVknD: global $_GPC, $_W; goto pwH9E; DLBJs: } public function doWebRank() { goto AEZCq; xzMuc: $count = pdo_getcolumn('hc_dan', $where, array("count(*)")); goto vu9v4; jndOG: include $this->template('setting/rank'); goto t7CQO; NEQcc: $pagesize = 15; goto xzMuc; mT2ik: $where['weid'] = $_W['uniacid']; goto NEQcc; vu9v4: $nums = ceil($count / $pagesize); goto jndOG; AEZCq: global $_GPC, $_W; goto mT2ik; t7CQO: } public function doWebRankajax() { goto d1aHb; nMkis: foreach ($list as $key => $val) { goto buI02; d9hHL: $list[$key]['season'] = pdo_getcolumn('hc_season', array("status" => 1, "weid" => $_W['uniacid']), array("name")); goto avn_a; buI02: $quesids = explode(',', $val['quesids']); goto DeZsL; DeZsL: $list[$key]['thumb'] = $_W['attachurl'] . $val['thumb']; goto d9hHL; UgRvs: ODoAk: goto zwvf4; avn_a: $list[$key]['quesnum'] = empty($val['quesids']) ? 0 : count($quesids); goto SMvyQ; SMvyQ: unset($quesids); goto UgRvs; zwvf4: } goto n0zRN; fDvaw: exit(json_encode(array("code" => 1, "msg" => "", "data" => $list))); goto kwcLk; bZPyw: $pageindex = max(1, intval($_POST['page'])); goto FA3cT; bLS2x: $list = pdo_getslice('hc_dan', $where, array($pageindex, $pagesize), $total, array(), '', 'dan_id asc'); goto nMkis; emrDZ: $where['weid'] = $_W['uniacid']; goto bLS2x; FA3cT: $pagesize = 15; goto emrDZ; d1aHb: global $_GPC, $_W; goto bZPyw; n0zRN: d0W3Q: goto fDvaw; kwcLk: } public function doWebRankadd() { goto eYd2G; QyIqb: if (empty($id)) { goto DTsDc; } goto xittF; ya3xt: $season = pdo_getall('hc_season', array("weid" => $_W['uniacid']), array(), '', 'no desc'); goto nr7c1; H16j6: DTsDc: goto ya3xt; UI8Xb: $prop = pdo_get('hc_prop', array("id" => $info['reward'], "weid" => $_W['uniacid'])); goto H16j6; eYd2G: global $_GPC, $_W; goto MAxNY; nr7c1: include $this->template('setting/rankadd'); goto cJZLe; MAxNY: $id = $_GPC['id']; goto QyIqb; xittF: $info = pdo_get('hc_dan', array("weid" => $_W['uniacid'], "id" => $id)); goto UI8Xb; cJZLe: } public function doWebRanklook() { goto Cor0v; chpT7: p5iNW: goto scJmE; r1Ej8: $quess = pdo_getall('hc_pk_record', array("weid" => $_W['uniacid'], "dan" => $id), array("questions")); goto ayGcs; WuMkB: $quesstr = implode(',', $ques); goto C7kqk; dwx_8: include $this->template('setting/ranklook'); goto Ynagx; ayGcs: if (!empty($quess)) { goto yLCpK; } goto Aru0R; Aru0R: $alrcount = 0; goto N180T; scJmE: $info = pdo_get('hc_dan', array("weid" => $_W['uniacid'], "id" => $id)); goto OOXR_; Qlmfn: foreach ($info['res'] as $key => $val) { goto CEoFV; CEoFV: $info['res'][$key]['count'] = $countval[$val['id']]; goto mduqF; mduqF: $info['res'][$key]['type_id'] = pdo_getcolumn('hc_question_type', array("weid" => $_W['uniacid'], "id" => $val['type_id']), array("name")); goto F_u5M; F_u5M: cWrz9: goto E6FKB; E6FKB: } goto MwJlX; erCkZ: $quescount = count($quesdan); goto XfuoK; T4C1x: if (empty($id)) { goto YXfyc; } goto r1Ej8; fI4j3: $countval = array_count_values($quesarr); goto qYBpr; V0Xa2: kw2yM: goto WuMkB; qYBpr: $quesall = array_unique($quesarr); goto sg65V; C7kqk: $quesarr = explode(',', $quesstr); goto fI4j3; Cor0v: global $_GPC, $_W; goto m8JI3; sg65V: $alrcount = count($quesall); goto chpT7; zuMac: foreach ($quess as $key => $val) { $ques[$key] = $val['questions']; CUru7: } goto V0Xa2; XfuoK: $info['res'] = pdo_fetchall('SELECT * FROM ' . tablename('hc_question') . ' WHERE id in(' . $info['quesids'] . ') AND weid=:weid', array(":weid" => $_W['uniacid'])); goto Qlmfn; Kr8Vg: yLCpK: goto zuMac; N180T: goto p5iNW; goto Kr8Vg; MwJlX: lkIO9: goto SmDpE; OOXR_: $quesdan = explode(',', $info['quesids']); goto erCkZ; SmDpE: YXfyc: goto dwx_8; m8JI3: $id = $_GPC['id']; goto T4C1x; Ynagx: } public function doWebRankdo() { goto iwSd8; I37Oc: eV6P4: goto dvqZv; hujIY: $quesids = explode(',', $_GPC['remark']); goto h500t; qzaX9: $id = $_GPC['id']; goto NWuVC; xfAML: exit(json_encode(array("code" => 1, "msg" => ""))); goto BzfIv; Y_TH5: OjUYg: goto CO8wl; eQgId: exit(json_encode(array("code" => 1, "msg" => ""))); goto jQJRL; EOhOw: $tk = explode(',', $ques); goto f5EUq; CnvKk: if ($_GPC['act'] == 'ques') { goto xJSMM; } goto gf6zl; S2cHH: foreach ($dan as $key => $val) { goto RZO2a; ZxWfC: unset($quesids); goto vFYUM; iOgnS: unset($arr); goto xMrJu; koV8B: $quesids = implode(',', $res); goto aQwYI; aTTY6: $res = array_intersect($tk, $arr); goto koV8B; RZO2a: $arr = explode(',', $val['quesids']); goto aTTY6; xMrJu: unset($res); goto ZxWfC; aQwYI: pdo_update('hc_dan', array("quesids" => $quesids), array("weid" => $_W['uniacid'], "id" => $val['id'])); goto iOgnS; vFYUM: vgsTX: goto lSgIR; lSgIR: } goto zWcZv; jQJRL: goto gr1S2; goto Y_TH5; zWcZv: Iha4A: goto fuTtI; tsJLa: if (empty($res)) { goto byYiW; } goto xfAML; kjHLj: $quesids = explode(',', $_GPC['remark']); goto gOksg; ODECR: exit(json_encode(array("code" => 0, "msg" => ""))); goto KZu7p; zCYSs: goto gr1S2; goto y4kTt; KZu7p: goto gr1S2; goto vitTy; f5EUq: $dan = pdo_getall('hc_dan', array("weid" => $_W['uniacid']), array("id", "quesids"), '', 'createtime desc'); goto S2cHH; if75a: if (!empty($id)) { goto eV6P4; } goto Q3IJT; kyeD3: rxpAD: goto EOhOw; GGZR1: $res = pdo_delete('hc_dan', array("id" => $id)); goto KFA7x; LZ2QV: goto VJyy0; goto I37Oc; NWuVC: if ($_GPC['act'] == 'del') { goto DjDPC; } goto CnvKk; gf6zl: if ($_GPC['act'] == 'update') { goto OjUYg; } goto kjHLj; h500t: $quesids = array_unique($quesids); goto c4rGI; kinSO: $quesids = implode(',', $quesids); goto WGk2f; vitTy: DjDPC: goto GGZR1; xBlCy: NS8PW: goto pKp2d; QoWtf: exit(json_encode(array("code" => 1, "msg" => ""))); goto xBlCy; shxZe: VJyy0: goto tsJLa; dvqZv: $res = pdo_update('hc_dan', $data, array("id" => $id)); goto shxZe; mQItm: foreach ($question as $key => $val) { goto lE3j9; jq7QU: $ques = $val['id']; goto SYncV; lE3j9: if ($key == 0) { goto jCAhO; } goto jSD2u; jSD2u: $ques .= ',' . $val['id']; goto xB0_g; lXNnz: wFQlS: goto AD_T0; xB0_g: goto c_OCs; goto PAtBf; SYncV: c_OCs: goto lXNnz; PAtBf: jCAhO: goto jq7QU; AD_T0: } goto kyeD3; Owh4P: gr1S2: goto k1M8S; fuTtI: exit(json_encode(array("code" => 1, "msg" => ""))); goto Owh4P; c4rGI: $quesids = implode(',', $quesids); goto fcSzi; BzfIv: byYiW: goto ODECR; pKp2d: exit(json_encode(array("code" => 0, "msg" => ""))); goto zCYSs; gOksg: $quesids = array_unique($quesids); goto kinSO; iwSd8: global $_GPC, $_W; goto qzaX9; fcSzi: $res = pdo_update('hc_dan', array("quesids" => $quesids), array("id" => $id)); goto eQgId; y4kTt: xJSMM: goto hujIY; Q3IJT: $res = pdo_insert('hc_dan', $data); goto LZ2QV; CO8wl: $question = pdo_getall('hc_question', array("weid" => $_W['uniacid']), array("id"), '', 'createtime desc'); goto mQItm; WGk2f: $data = array("dan_id" => $_GPC['dan_id'], "season" => $_GPC['season'], "name" => $_GPC['name'], "thumb" => $_GPC['thumbs'], "win_star" => $_GPC['win_star'], "use_gold" => $_GPC['use_gold'], "win_gold" => $_GPC['win_gold'], "quesids" => $quesids, "reward" => $_GPC['reward'], "winexp" => $_GPC['winexp'], "failexp" => $_GPC['failexp'], "rewardnum" => $_GPC['rewardnum'], "border" => $_GPC['border'], "robot" => $_GPC['robot'], "weid" => $_W['uniacid'], "createtime" => time()); goto if75a; KFA7x: if (!$res) { goto NS8PW; } goto QoWtf; k1M8S: } public function doWebSelectlib() { goto JWsfj; L2RdN: $nums = ceil($count / $pagesize); goto YmR2k; sa6iY: $pagesize = max(100, intval($_GPC['pagenum'])); goto gHw7Z; NMdBJ: $where .= ' AND id in(' . $questions . ')'; goto RxNIU; JWsfj: global $_GPC, $_W; goto a_YiV; yla3U: include $this->template('setting/selectlib'); goto g9JXB; V_cH4: XHxhw: goto aGtE8; Q6I7y: $where .= " AND question like=%{$question}%"; goto V_cH4; w3xZ6: HSKXv: goto sa6iY; b5rVo: $questions = pdo_getcolumn('hc_dan', array("id" => $id, "weid" => $_W['uniacid']), array("quesids")); goto NMdBJ; BGBm2: $where .= ' AND type_id=' . $cate_id; goto Gb5vR; RxNIU: oe9rR: goto aFPEh; TWUxO: if (empty($cate_id)) { goto QwAK7; } goto BGBm2; e7Fi5: if (empty($question)) { goto XHxhw; } goto Q6I7y; C9L_f: if (empty($easy)) { goto cg2NN; } goto SZilz; aFPEh: if (!($type == 2)) { goto HSKXv; } goto XLNG1; pFJ6Q: $question = $_GPC['question']; goto e7Fi5; SZilz: $where .= ' AND easy=' . $easy; goto rpX5r; Gb5vR: QwAK7: goto pFJ6Q; rpX5r: cg2NN: goto C3nGZ; DT__R: $cate_id = $_GPC['cate_id']; goto TWUxO; C3nGZ: $type = $_GPC['type']; goto ouOgR; HqlhZ: $where = ' weid=' . $_W['uniacid']; goto DT__R; YmR2k: $cate = pdo_getall('hc_question_type', array("weid" => $_W['uniacid'], "pid" => 0)); goto xTQRw; XLNG1: $questions = pdo_getcolumn('hc_dan', array("id" => $id, "weid" => $_W['uniacid']), array("quesids")); goto ldyTm; ouOgR: if (!($type == 1)) { goto oe9rR; } goto b5rVo; aGtE8: $easy = $_GPC['easy']; goto C9L_f; xTQRw: foreach ($cate as $key => $val) { $cate[$key]['children'] = pdo_getall('hc_question_type', array("pid" => $val['id'])); bvrlQ: } goto dRsPM; gHw7Z: $count = pdo_fetchcolumn('SELECT count(*) FROM ' . tablename('hc_question') . ' WHERE ' . $where . ''); goto L2RdN; a_YiV: $id = $_GPC['id']; goto HqlhZ; LOygv: $questions = pdo_getcolumn('hc_dan', array("id" => $id, "weid" => $_W['uniacid']), array("quesids")); goto yla3U; ldyTm: $where .= ' AND id not in(' . $questions . ')'; goto w3xZ6; dRsPM: pZizI: goto LOygv; g9JXB: } public function doWebSelectlibajax() { goto ARMh9; UskcP: foreach ($list as $key => $val) { goto pUE5R; iYff2: XJCek: goto ahXgD; sCubc: if ($val['easy'] == 1) { goto cZqo0; } goto V0Sea; WTqXz: goto u3iqP; goto il8cL; VFTcT: zJ2yq: goto uFsYx; ahXgD: $list[$key]['easy'] = ''; goto M1d3K; bbf20: foreach ($ques as $k => $v) { goto pEqZD; pEqZD: if (!($val['id'] == $v)) { goto W392A; } goto lIAMO; lIAMO: $list[$key]['status'] = 1; goto GqZZT; o5IiA: oKYbW: goto kdUsa; GqZZT: W392A: goto o5IiA; kdUsa: } goto x0lxX; x0lxX: zpdw3: goto VFTcT; PCnsJ: $list[$key]['easy'] = ''; goto CeSCd; mIUiy: pgql_: goto bDYrI; M1d3K: goto u3iqP; goto mIUiy; bDYrI: $list[$key]['easy'] = ''; goto d2ycF; V0Sea: if ($val['easy'] == 2) { goto XJCek; } goto dFOth; il8cL: cZqo0: goto PCnsJ; pUE5R: $list[$key]['type_id'] = pdo_getcolumn('hc_question_type', array("id" => $val['type_id']), array("name")); goto sCubc; CeSCd: goto u3iqP; goto iYff2; d2ycF: u3iqP: goto bbf20; dFOth: if ($val['easy'] == 3) { goto pgql_; } goto WTqXz; uFsYx: } goto spfQA; K09uk: $where .= ' AND type_id=' . $cate_id; goto ga4Vi; iv1ZC: $questions = pdo_getcolumn('hc_dan', array("id" => $id, "weid" => $_W['uniacid']), array("quesids")); goto GYI4U; zabKo: if ($type == 2) { goto MeaG1; } goto eW5gO; wmoRS: qJMSf: goto xTT1Y; eW5gO: if (empty($yxques)) { goto hA5fv; } goto YWMGu; TiTGY: To6Cy: goto I_hJP; V3WCI: rfdl7: goto wmoRS; l4Wzw: m0gcx: goto hYCGU; Bqdl9: $page = pagination($total, $pageindex, $pagesize); goto H0tj7; uqPme: $id = $_GPC['id']; goto f7OBl; LxzNB: $where .= ' AND id in(' . $questions . ')'; goto ihsf7; tkooB: KqXIr: goto sFVgj; RiJEj: $where .= " AND question like=%{$question}%"; goto tkooB; yijDY: $pagesize = max(100, intval($_GPC['pagenum'])); goto eS2wl; vrvBV: $pageindex = max(1, intval($_GPC['page'])); goto yijDY; Aj8Q5: $where .= ' AND id not in(' . $questions . ')'; goto GSwU7; I_hJP: $yxquestions = pdo_getall('hc_dan', $dataarr, array("quesids")); goto B624F; GYI4U: if (!empty($questions)) { goto lGc8U; } goto a88XT; Q4OT2: if (empty($easy)) { goto ueHGK; } goto jJHOo; Q2ah4: $questions = $questions . ',' . $yxques; goto V3WCI; sFVgj: $easy = $_GPC['easy']; goto Q4OT2; ZQSlD: $dataarr = array("weid" => $_W['uniacid']); goto JYqyr; bHyTi: pJUMl: goto isCTD; ga4Vi: RBluM: goto GfgtV; V_drj: $yxques = ''; goto xlq3M; DZHjd: $list = pdo_fetchall('SELECT * FROM ' . tablename('hc_question') . ' WHERE ' . $where . ' ORDER BY id ASC LIMIT ' . $p . ',' . $pagesize); goto Bqdl9; Gu6O7: $yxques = implode(',', $yxarr); goto l4Wzw; nTQnX: foreach ($yxquestions as $key => $val) { goto hYw85; hYw85: if (empty($val['quesids'])) { goto vjne1; } goto x4r0l; x4r0l: $yxarr[$key] = $val['quesids']; goto QQoH3; e2cRV: ZAz4M: goto gZ1yb; QQoH3: vjne1: goto e2cRV; gZ1yb: } goto TrjE2; pFI8p: if (empty($cate_id)) { goto RBluM; } goto K09uk; yd71E: exit(json_encode(array("code" => 1, "msg" => "", "data" => $list, "id" => $id))); goto H_4CV; H0tj7: $questions = pdo_getcolumn('hc_dan', array("id" => $id, "weid" => $_W['uniacid']), array("quesids")); goto bPrPa; DyRsf: if (empty($question)) { goto KqXIr; } goto RiJEj; GfgtV: $question = $_GPC['question']; goto DyRsf; L0BaI: gSX51: goto T2i1S; G137i: if (empty($yxques)) { goto rfdl7; } goto Q2ah4; ihsf7: kf1AC: goto vrvBV; ARMh9: global $_GPC, $_W; goto uqPme; xlq3M: if (!empty($id)) { goto whOZO; } goto ZQSlD; C40BI: $p = ($pageindex - 1) * $pagesize; goto DZHjd; cz10S: $dataarr = array("id !=" => $id, "weid" => $_W['uniacid']); goto TiTGY; GXYD4: lGc8U: goto G137i; n56sA: goto qJMSf; goto GXYD4; eS2wl: $total = pdo_fetchcolumn('SELECT count(*) FROM ' . tablename('hc_question') . ' WHERE ' . $where . ''); goto C40BI; TxHx2: whOZO: goto cz10S; spfQA: gFu83: goto yd71E; a88XT: $questions = $yxques; goto n56sA; yQGrC: hA5fv: goto bB0k4; hYCGU: $type = $_GPC['type']; goto oZ3Si; JYqyr: goto To6Cy; goto TxHx2; TrjE2: UwrS3: goto Gu6O7; xTT1Y: if (empty($questions)) { goto QFCpA; } goto Aj8Q5; bPrPa: $ques = explode(',', $questions); goto UskcP; jJHOo: $where .= ' AND easy=' . $easy; goto rDYF1; GSwU7: QFCpA: goto L0BaI; ZuhBA: MeaG1: goto iv1ZC; oZ3Si: if ($type == 1) { goto pJUMl; } goto zabKo; T2i1S: goto kf1AC; goto bHyTi; isCTD: $questions = pdo_getcolumn('hc_dan', array("id" => $id, "weid" => $_W['uniacid']), array("quesids")); goto LxzNB; bZYso: $cate_id = $_GPC['cate_id']; goto pFI8p; bB0k4: goto gSX51; goto ZuhBA; YWMGu: $where .= ' AND id not in(' . $yxques . ')'; goto yQGrC; B624F: if (empty($yxquestions)) { goto m0gcx; } goto nTQnX; f7OBl: $where = ' weid=' . $_W['uniacid']; goto bZYso; rDYF1: ueHGK: goto V_drj; H_4CV: } public function doWebLibrary() { goto mzmz2; biJDt: $count = pdo_getcolumn('hc_question', $where, array("count(*)")); goto rAqpM; sbi9s: zo35_: goto hzY2e; rAqpM: $nums = ceil($count / $pagesize); goto JZlfX; plDNO: HEHUG: goto fbgCS; qmdcy: $question = $_GPC['question']; goto L523K; fbgCS: $easy = $_GPC['easy']; goto FBi8c; sw3Xe: $where['question like'] = '%' . $question . '%'; goto plDNO; FBi8c: if (empty($easy)) { goto RB_mN; } goto SvGpV; MgaXp: $cate_id = $_GPC['cate_id']; goto Sz4eK; hTTFl: $pagesize = 15; goto biJDt; mzmz2: global $_GPC, $_W; goto QNFUY; sipQ8: fEscp: goto qmdcy; QNFUY: $where['weid'] = $_W['uniacid']; goto MgaXp; JZlfX: $cate = pdo_getall('hc_question_type', array("weid" => $_W['uniacid'], "pid" => 0)); goto YpT8z; hzY2e: include $this->template('setting/library'); goto ZQ7SG; YpT8z: foreach ($cate as $key => $val) { $cate[$key]['children'] = pdo_getall('hc_question_type', array("pid" => $val['id'])); rmp5Q: } goto sbi9s; fl2kB: RB_mN: goto hTTFl; L523K: if (empty($question)) { goto HEHUG; } goto sw3Xe; SvGpV: $where['easy'] = $easy; goto fl2kB; Nps8M: $where['type_id'] = $cate_id; goto sipQ8; Sz4eK: if (empty($cate_id)) { goto fEscp; } goto Nps8M; ZQ7SG: } public function doWebLibraryajax() { goto HsL05; wtbYo: $where['weid'] = $_W['uniacid']; goto t35HT; IZ29e: $where['easy'] = $easy; goto FAF9z; FAF9z: iuySl: goto NMtoK; t35HT: $list = pdo_getslice('hc_question', $where, array($pageindex, $pagesize), $total, array(), '', 'id desc'); goto oL6Ps; CiWFZ: $pageindex = max(1, intval($_POST['page'])); goto YRF2N; oL6Ps: foreach ($list as $key => $val) { goto vXT8G; fOaeo: if ($val['easy'] == 2) { goto C6W6F; } goto pGfxM; G1WMj: ssCTO: goto J1W5_; OYKxj: $list[$key]['easy'] = ''; goto PdLq9; pGfxM: if ($val['easy'] == 3) { goto b8LMQ; } goto BfqUf; unA0l: goto bdwCm; goto wS8GA; vXT8G: $list[$key]['type_id'] = pdo_getcolumn('hc_question_type', array("id" => $val['type_id']), array("name")); goto cJ_rQ; sdNlh: $list[$key]['easy'] = ''; goto C5lI3; XPSGq: i1xtw: goto ituim; wS8GA: C6W6F: goto sdNlh; cJ_rQ: if ($val['easy'] == 1) { goto i1xtw; } goto fOaeo; PdLq9: bdwCm: goto G1WMj; C5lI3: goto bdwCm; goto RwEsG; BfqUf: goto bdwCm; goto XPSGq; RwEsG: b8LMQ: goto OYKxj; ituim: $list[$key]['easy'] = ''; goto unA0l; J1W5_: } goto packd; HsL05: global $_GPC, $_W; goto CiWFZ; vd8oX: if (empty($easy)) { goto iuySl; } goto IZ29e; juof1: $where['question like'] = '%' . $question . '%'; goto enuzm; fFvkU: IHctA: goto chgcK; chgcK: $question = $_POST['question']; goto r6T60; nbA3L: if (empty($cate_id)) { goto IHctA; } goto aE4Jl; r6T60: if (empty($question)) { goto WMbDA; } goto juof1; enuzm: WMbDA: goto yx_Ch; jEPkb: exit(json_encode(array("code" => 1, "msg" => "", "data" => $list))); goto W90oW; YRF2N: $cate_id = $_POST['cate_id']; goto nbA3L; yx_Ch: $easy = $_POST['easy']; goto vd8oX; aE4Jl: $where['type_id'] = $cate_id; goto fFvkU; packd: wU5GA: goto jEPkb; NMtoK: $pagesize = 15; goto wtbYo; W90oW: } public function doWebLibraryadd() { goto RTkU8; MoVdf: foreach ($cate as $key => $val) { $cate[$key]['children'] = pdo_getall('hc_question_type', array("pid" => $val['id'])); L6NZ4: } goto CrHHB; dfhp9: XjXwe: goto ftGZG; DHq0K: include $this->template('setting/libraryadd'); goto aBp4s; ljWrz: if (empty($id)) { goto XjXwe; } goto HDPTV; HDPTV: $info = pdo_get('hc_question', array("weid" => $_W['uniacid'], "id" => $id)); goto dfhp9; CrHHB: FH01o: goto DHq0K; RTkU8: global $_GPC, $_W; goto J6mIP; ftGZG: $cate = pdo_getall('hc_question_type', array("weid" => $_W['uniacid'], "pid" => 0)); goto MoVdf; J6mIP: $id = $_GPC['id']; goto ljWrz; aBp4s: } public function doWebLibraryimport() { goto VW0_I; a80Ht: $cate = pdo_getall('hc_question_type', array("weid" => $_W['uniacid'], "pid" => 0)); goto bdvZh; VW0_I: global $_GPC, $_W; goto a80Ht; bdvZh: foreach ($cate as $key => $val) { $cate[$key]['children'] = pdo_getall('hc_question_type', array("pid" => $val['id'])); A22vw: } goto QgQfd; myeMZ: include $this->template('setting/libraryimport'); goto fB1Y9; QgQfd: LtFVN: goto myeMZ; fB1Y9: } public function doWebLibrarynotice() { global $_GPC, $_W; include $this->template('setting/librarynotice'); } public function doWebLibrarydo() { goto Ho2vv; BVIFn: exit(json_encode(array("code" => 0, "msg" => ""))); goto i_GH7; nNpUG: goto obRYX; goto xpN6q; yEiuX: if (!$res) { goto NGSdG; } goto nayrQ; WYN0Q: goto tJj43; goto VbMrR; HFcQe: if ($res) { goto UEYKd; } goto XW7z2; engE8: $id = $_GPC['id']; goto vvhcw; GQQSc: $data['weid'] = $_W['uniacid']; goto lFa_D; QEBsb: $data['type_id'] = $_GPC['type_id']; goto jBO14; p0Vhz: tJj43: goto dY2p0; zOGfM: load()->library('phpexcel/PHPExcel'); goto x_3h9; n7ut1: $objReader = \PHPExcel_IOFactory::createReader('Excel5'); goto dXJSr; feYMB: goto PO1N7; goto ONp0V; Xd9Il: if (!empty($_GPC['type_id'])) { goto rDHiM; } goto g2Pbg; AEd9U: WPRP7: goto gdHG1; KSFLe: exit(json_encode(array("code" => 0, "msg" => ""))); goto GC2KG; w_x0u: $i++; goto laSUN; x_3h9: $path = IA_ROOT . $_GPC['excels']; goto n7ut1; HeYyF: exit(json_encode(array("code" => 1, "msg" => ""))); goto OVUF2; CCiDt: $data['answer_b'] = $objPHPExcel->getActiveSheet()->getCell('C' . $i)->getValue(); goto oV5UY; wLMEt: if (!($i <= $highestRow)) { goto VxpC6; } goto QEBsb; gdHG1: $res = pdo_insert('hc_question', $data); goto n4Dz4; ixj1W: obRYX: goto qPhD3; WmcCM: $i = 2; goto zsVKZ; g2Pbg: exit(json_encode(array("code" => 0, "msg" => ""))); goto DLOKT; lFa_D: $data['question'] = $objPHPExcel->getActiveSheet()->getCell('A' . $i)->getValue(); goto MZxy7; WpUZw: $highestRow = $sheet->getHighestRow(); goto WmcCM; n4QKm: goto yF9tR; goto WTurG; Hbjey: xUdok: goto nThNf; bxbc_: $data['answer_d'] = $objPHPExcel->getActiveSheet()->getCell('E' . $i)->getValue(); goto RwlL1; VbMrR: wP4Nw: goto uT3js; Ho2vv: global $_GPC, $_W; goto engE8; XYLsa: if (!empty($data['question'])) { goto WPRP7; } goto FdgEv; dY2p0: if (empty($res)) { goto Bypmq; } goto YEDhJ; jBO14: $data['easy'] = $_GPC['easy']; goto GQQSc; uT3js: $res = pdo_update('hc_question', $data, array("id" => $id)); goto p0Vhz; xpN6q: UEYKd: goto RENhe; qPhD3: yF9tR: goto FgeP6; kdVHY: VxpC6: goto HFcQe; MZxy7: $data['answer_a'] = $objPHPExcel->getActiveSheet()->getCell('B' . $i)->getValue(); goto CCiDt; ONp0V: a_4oO: goto HeYyF; XW7z2: exit(json_encode(array("code" => 0, "msg" => ""))); goto nNpUG; TQB42: $res = pdo_insert('hc_question', $data); goto WYN0Q; DLOKT: rDHiM: goto oPE4t; n4Dz4: Xk2yq: goto w_x0u; GAOJL: if ($_GPC['act'] == 'import') { goto JuDM7; } goto OPGh_; XL6gX: Bypmq: goto KSFLe; laSUN: goto hRN6r; goto kdVHY; VX0Jg: exit(json_encode(array("code" => 0, "msg" => ""))); goto UWJWp; zFi_P: if (!empty($id)) { goto wP4Nw; } goto TQB42; yYlRA: NGSdG: goto VX0Jg; OPGh_: $data = array("question" => $_GPC['question'], "type_id" => $_GPC['type_id'], "answer_a" => $_GPC['answer_a'], "answer_b" => $_GPC['answer_b'], "answer_c" => $_GPC['answer_c'], "answer_d" => $_GPC['answer_d'], "answer" => $_GPC['answer'], "easy" => $_GPC['easy'], "weid" => $_W['uniacid'], "createtime" => time()); goto zFi_P; LWazl: if ($res) { goto a_4oO; } goto Ec3Ph; vvhcw: if ($_GPC['act'] == 'del') { goto xUdok; } goto BbzYH; nThNf: $res = pdo_delete('hc_question', array("id" => $id)); goto yEiuX; BbzYH: if ($_GPC['act'] == 'alldel') { goto PVIHl; } goto GAOJL; oV5UY: $data['answer_c'] = $objPHPExcel->getActiveSheet()->getCell('D' . $i)->getValue(); goto bxbc_; FdgEv: goto VxpC6; goto AEd9U; RwlL1: $data['answer'] = $objPHPExcel->getActiveSheet()->getCell('F' . $i)->getValue(); goto zGA29; WTurG: JuDM7: goto Xd9Il; GC2KG: goto yF9tR; goto Hbjey; fROJV: $ids = $_GPC['ids']; goto TKB3j; nayrQ: exit(json_encode(array("code" => 1, "msg" => ""))); goto yYlRA; YEDhJ: exit(json_encode(array("code" => 1, "msg" => ""))); goto XL6gX; Ec3Ph: exit(json_encode(array("code" => 0, "msg" => ""))); goto feYMB; TKB3j: $res = pdo_query('DELETE FROM ' . tablename('hc_question') . ' WHERE id in(' . $ids . ')'); goto LWazl; zsVKZ: hRN6r: goto wLMEt; RENhe: exit(json_encode(array("code" => 1, "msg" => ""))); goto ixj1W; UWJWp: goto yF9tR; goto osS7z; OVUF2: PO1N7: goto n4QKm; osS7z: PVIHl: goto fROJV; dXJSr: $objPHPExcel = $objReader->load($path, $encode = 'utf-8'); goto O3OlW; zGA29: $data['createtime'] = time(); goto XYLsa; O3OlW: $sheet = $objPHPExcel->getSheet(0); goto WpUZw; oPE4t: if (!empty($_GPC['easy'])) { goto jW0xA; } goto BVIFn; i_GH7: jW0xA: goto zOGfM; FgeP6: } public function doWebCategory() { goto Gm0br; Fd4D6: include $this->template('setting/category'); goto iIdvc; YGfzD: $pagesize = 10; goto zo6Y7; Gm0br: global $_GPC, $_W; goto L7dl5; zo6Y7: $count = pdo_getcolumn('hc_question_type', $where, array("count(*)")); goto pkr8K; pkr8K: $nums = ceil($count / $pagesize); goto Fd4D6; L7dl5: $where['weid'] = $_W['uniacid']; goto YGfzD; iIdvc: } public function doWebCategoryajax() { goto BT_zt; xVUi8: foreach ($list as $key => $val) { goto lGvBa; CWP8h: if ($val['pid'] == '0') { goto ZzLAd; } goto pwuRS; a1CtX: A0qLv: goto qJcpr; wSyaX: ZzLAd: goto NFSCu; pwuRS: $list[$key]['pid'] = pdo_getcolumn('hc_question_type', array("id" => $val['pid']), array("name")); goto CweBq; CweBq: goto A0qLv; goto wSyaX; NFSCu: $list[$key]['pid'] = ''; goto a1CtX; qJcpr: FaD2W: goto f0LYj; lGvBa: $list[$key]['createtime'] = date('Y-m-d H:i', $val['createtime']); goto CWP8h; f0LYj: } goto BWrcQ; BWrcQ: mPHuj: goto RF7kj; Xc8Rx: $list = pdo_getslice('hc_question_type', $where, array($pageindex, $pagesize), $total, array(), '', 'sort asc'); goto xVUi8; RF7kj: exit(json_encode(array("code" => 1, "msg" => "", "data" => $list))); goto RJqjj; VF_0_: $pagesize = 10; goto rNQ1b; BT_zt: global $_GPC, $_W; goto MjJfV; MjJfV: $pageindex = max(1, intval($_POST['page'])); goto VF_0_; rNQ1b: $where['weid'] = $_W['uniacid']; goto Xc8Rx; RJqjj: } public function doWebCategoryadd() { goto mpE82; hdhV6: if (empty($id)) { goto sh828; } goto M3Tw4; mpE82: global $_GPC, $_W; goto umxZz; m7Dqx: include $this->template('setting/categoryadd'); goto Oyi7b; Y92Ae: sh828: goto bvQXC; M3Tw4: $info = pdo_get('hc_question_type', array("weid" => $_W['uniacid'], "id" => $id)); goto Y92Ae; umxZz: $id = $_GPC['id']; goto hdhV6; bvQXC: $list = pdo_getall('hc_question_type', array("weid" => $_W['uniacid'], "pid" => 0)); goto m7Dqx; Oyi7b: } public function doWebCategoryup() { goto YYMEI; RLUlM: $list = json_decode($info, true); goto Zh6kQ; YYMEI: global $_GPC, $_W; goto JOgOn; QxOCa: $info = pdo_getcolumn('hc_question_type', array("weid" => $_W['uniacid'], "id" => $id), array("upgrade")); goto RLUlM; JOgOn: $id = $_GPC['id']; goto HzPUb; Zh6kQ: VfEy1: goto Fou4R; Fou4R: include $this->template('setting/categoryup'); goto ECjFJ; HzPUb: if (empty($id)) { goto VfEy1; } goto QxOCa; ECjFJ: } public function doWebCategorydo() { goto nPYt2; V2Y6g: $res = pdo_update('hc_question_type', array("upgrade" => $upgrade), array("id" => $id)); goto u_KRM; ziOTA: $upgrade = htmlspecialchars_decode($upgrade, ENT_QUOTES); goto V2Y6g; ptcLY: if ($_GPC['act'] == 'del') { goto rSq3D; } goto O025z; KWPD3: $data = array("name" => $_POST['name'], "thumbs" => $_POST['thumbs'], "pid" => $_POST['pid'], "desc1" => $_POST['desc1'], "desc2" => $_POST['desc2'], "sort" => $_POST['sort'], "weid" => $_W['uniacid'], "createtime" => time()); goto HV1yb; JqFg8: $res = pdo_update('hc_question_type', $data, array("id" => $id)); goto ylfvy; oy6Gi: exit(json_encode(array("code" => 0, "msg" => ""))); goto hb122; jWFq0: $res = pdo_insert('hc_question_type', $data); goto y2xES; eXzSC: s9p8V: goto cE4Wh; G9b4J: $id = $_GPC['id']; goto ptcLY; u_KRM: if (!$res) { goto jlOYv; } goto XGAqC; zMV8l: if (empty($res)) { goto ruuz5; } goto YPaoK; gpvOU: exit(json_encode(array("code" => 0, "msg" => ""))); goto y0G5P; xZS0l: if (!$res) { goto Mi5AN; } goto gRCyF; av61b: OCFbd: goto JqFg8; AedVD: jlOYv: goto oy6Gi; O025z: if ($_GPC['act'] == 'upgrade') { goto s9p8V; } goto KWPD3; y7UPV: Mi5AN: goto sXa7q; nPYt2: global $_GPC, $_W; goto G9b4J; HV1yb: if (!empty($id)) { goto OCFbd; } goto jWFq0; fAa2V: ruuz5: goto gpvOU; CjBs1: $res = pdo_delete('hc_question_type', array("id" => $id, "weid" => $_W['uniacid'])); goto k6nwj; WlaRi: goto ul3na; goto eXzSC; y2xES: goto toYa_; goto av61b; cE4Wh: $upgrade = $_GPC['upgrade']; goto ziOTA; YPaoK: exit(json_encode(array("code" => 1, "msg" => ""))); goto fAa2V; ylfvy: toYa_: goto zMV8l; hb122: ul3na: goto Xjik5; gRCyF: exit(json_encode(array("code" => 1, "msg" => ""))); goto y7UPV; y0G5P: goto ul3na; goto HaAHu; k6nwj: pdo_delete('hc_question', array("type_id" => $id, "weid" => $_W['uniacid'])); goto xZS0l; HaAHu: rSq3D: goto CjBs1; sXa7q: exit(json_encode(array("code" => 0, "msg" => ""))); goto WlaRi; XGAqC: exit(json_encode(array("code" => 1, "msg" => ""))); goto AedVD; Xjik5: } public function doWebProp() { goto VL9oM; rp6Gr: $where['weid'] = $_W['uniacid']; goto XjVf5; Ovwsk: include $this->template('prop/prop'); goto fE4Zh; VL9oM: global $_GPC, $_W; goto qAM63; XjVf5: $pagesize = 15; goto XE3U8; dMLc4: $where['type'] = $type; goto H0TdK; H0TdK: s_2gq: goto rp6Gr; DkCWa: $nums = ceil($count / $pagesize); goto Ovwsk; cP0iA: Vychw: goto HdSyh; XE3U8: $count = pdo_getcolumn('hc_prop', $where, array("count(*)")); goto DkCWa; qAM63: $type = $_GPC['type']; goto HmFw1; LNmkp: $where['type'] = 0; goto cP0iA; HdSyh: goto s_2gq; goto LQuve; zu0ZH: if (!($type == 0)) { goto Vychw; } goto LNmkp; HmFw1: if (!empty($type) && $type > 0) { goto iOc8G; } goto zu0ZH; LQuve: iOc8G: goto dMLc4; fE4Zh: } public function doWebPropajax() { goto aHCFL; GA48a: if (!($type == 0)) { goto kNQpe; } goto J7WPP; Utl3t: if (!empty($type) && $type > 0) { goto uxNJl; } goto GA48a; J7WPP: $where['type'] = 0; goto d8SWU; GPw5k: exit(json_encode(array("code" => 1, "msg" => "", "data" => $list))); goto RaDCs; ttpjU: $list = pdo_getslice('hc_prop', $where, array($pageindex, $pagesize), $total, array(), '', 'id desc'); goto JWi3k; TQmmp: $where['weid'] = $_W['uniacid']; goto ttpjU; d8SWU: kNQpe: goto pAj2a; UYpdn: $type = $_POST['type']; goto Utl3t; IB6wD: $pageindex = max(1, intval($_POST['page'])); goto hcD3n; ZXPtz: uxNJl: goto TRU6o; pAj2a: goto WxRq5; goto ZXPtz; vlMM5: ppvjP: goto GPw5k; TRU6o: $where['type'] = $type; goto OKIl5; OKIl5: WxRq5: goto IB6wD; JWi3k: foreach ($list as $key => $val) { goto nhZSC; nhZSC: $list[$key]['thumb'] = $_W['attachurl'] . $val['thumb']; goto qhq70; QTZKy: B7TA2: goto crnhw; qhq70: $list[$key]['shop'] = $val['shop'] == 1 ? '' : ''; goto bNXg9; bNXg9: $list[$key]['give'] = $val['give'] == 1 ? '' : ''; goto QTZKy; crnhw: } goto vlMM5; aHCFL: global $_GPC, $_W; goto UYpdn; hcD3n: $pagesize = 15; goto TQmmp; RaDCs: } public function doWebPropadd() { goto lhcXk; I9twp: $info = pdo_get('hc_prop', array("weid" => $_W['uniacid'], "id" => $id)); goto GrwmI; GrwmI: $info['res'] = pdo_fetchall('SELECT * FROM ' . tablename('hc_prop') . ' WHERE id in(' . $info['remark'] . ') AND weid=:weid', array(":weid" => $_W['uniacid'])); goto o_X47; EGxvq: if (empty($id)) { goto VVy0v; } goto I9twp; kZdEE: JoSO2: goto amyPu; o_X47: foreach ($info['res'] as $key => $val) { $info['res'][$key]['thumb'] = $_W['attachurl'] . $val['thumb']; QMG_H: } goto kZdEE; BLUB0: $id = $_GPC['id']; goto EGxvq; lhcXk: global $_GPC, $_W; goto BLUB0; amyPu: VVy0v: goto xDniB; xDniB: include $this->template('prop/propadd'); goto UYbEm; UYbEm: } public function doWebPropdo() { goto t7aIB; l9GrH: exit(json_encode(array("code" => 0, "msg" => ""))); goto wCuZ4; hR1sj: $res = pdo_delete('hc_prop', array("id" => $id)); goto AlsEA; eCNDy: if (!(!empty($_GPC['jb']) && !empty($_GPC['cc']))) { goto QXF4A; } goto bilvD; PAEJ9: if (empty($res)) { goto lsUE7; } goto S7Ehe; CtzTw: $ids = $_GPC['ids']; goto KQTW5; qhzj5: $res = pdo_get('hc_prop', array("weid" => $_W['uniacid'], "type" => 6, "sj >" => 0, "jb >" => 0)); goto Jc3w4; CdFAT: exit(json_encode(array("code" => 1, "msg" => ""))); goto vVFdS; AlsEA: if (!$res) { goto M26P4; } goto CdFAT; ECexI: if (empty($res)) { goto SseYv; } goto xoF4a; QQ5jz: InqXm: goto kcuKD; EiZHJ: exit(json_encode(array("code" => 0, "msg" => ""))); goto JStiL; dony8: if (!($_GPC['type'] == 7)) { goto bDyYr; } goto UqGxX; o5Kij: if (!(!empty($_GPC['jy']) && !empty($_GPC['sj']))) { goto tP2gd; } goto Mpy2S; ZXuHF: QXF4A: goto yv8PP; ZYomW: if (!(!empty($_GPC['jb']) && !empty($_GPC['sj']))) { goto O5kqX; } goto qhzj5; uJXug: exit(json_encode(array("code" => 0, "msg" => ""))); goto ChVSJ; XKDHw: wb2kX: goto K__F2; eL6_7: if (!($_GPC['type'] == 5)) { goto sct1d; } goto eCNDy; oNAmv: goto GQDOE; goto F4mTM; KQTW5: $res = pdo_fetchall('SELECT * FROM ' . tablename('hc_prop') . ' WHERE id in(' . $ids . ') AND weid=:weid', array(":weid" => $_W['uniacid'])); goto jVyGG; CXA4q: OZPRL: goto jZLcK; n1UmH: O5kqX: goto o5Kij; ub9KT: if ($_GPC['type'] == 3) { goto tQqhd; } goto guIOh; EG9uK: bDyYr: goto ub9KT; guIOh: $jb = $_GPC['jb']; goto oNAmv; PpNIJ: IuugU: goto ECexI; FzEVV: $res = pdo_get('hc_prop', array("weid" => $_W['uniacid'], "type" => 7, "cc >" => 0, "jf >" => 0)); goto PmCj0; t7aIB: global $_GPC, $_W; goto inCN_; Cjt5r: if (!(!empty($res) && $res['id'] != $id)) { goto hh2LN; } goto EiZHJ; Mpy2S: $res = pdo_get('hc_prop', array("weid" => $_W['uniacid'], "type" => 6, "sj >" => 0, "jy >" => 0)); goto xDygi; bilvD: $res = pdo_get('hc_prop', array("weid" => $_W['uniacid'], "type" => 5, "cc >" => 0, "jb >" => 0)); goto KQecT; M3luD: goto Rtwez; goto KZonn; K__F2: tP2gd: goto gxWU2; iGkKx: I2zRr: goto ZXuHF; udyfY: if (!($_GPC['type'] == 6)) { goto dIiWV; } goto ZYomW; jVyGG: foreach ($res as $key => $val) { $res[$key]['thumb'] = $_W['attachurl'] . $val['thumb']; cVkIM: } goto YcobN; yv8PP: if (!(!empty($_GPC['jy']) && !empty($_GPC['cc']))) { goto InqXm; } goto hZPYc; B9ikW: exit(json_encode(array("code" => 0, "msg" => ""))); goto bJ0U1; TZOyo: Zu2BR: goto EG9uK; gxWU2: dIiWV: goto dony8; bJ0U1: fX6VK: goto n1UmH; nl9qq: aN1uL: goto CtzTw; hZPYc: $res = pdo_get('hc_prop', array("weid" => $_W['uniacid'], "type" => 5, "cc >" => 0, "jy >" => 0)); goto Cjt5r; KZonn: Up97A: goto hR1sj; F4mTM: tQqhd: goto M54nu; KQecT: if (!(!empty($res) && $res['id'] != $id)) { goto I2zRr; } goto Fyf_4; Jc3w4: if (!(!empty($res) && $res['id'] != $id)) { goto fX6VK; } goto B9ikW; xoF4a: exit(json_encode(array("code" => 1, "msg" => ""))); goto o1dr7; xDygi: if (!(!empty($res) && $res['id'] != $id)) { goto wb2kX; } goto RqAzD; UqGxX: if (!(!empty($_GPC['jf']) && !empty($_GPC['cc']))) { goto Zu2BR; } goto FzEVV; YcobN: Aj5uj: goto PAEJ9; ChVSJ: goto Rtwez; goto nl9qq; Fyf_4: exit(json_encode(array("code" => 0, "msg" => ""))); goto iGkKx; o1dr7: SseYv: goto yDwts; M54nu: $jb = $_GPC['jbs']; goto axtV6; hkNp3: exit(json_encode(array("code" => 0, "msg" => ""))); goto rNogX; x7VTa: if (!empty($id)) { goto OZPRL; } goto rZcUz; jZLcK: $res = pdo_update('hc_prop', $data, array("id" => $id)); goto PpNIJ; wCuZ4: Rtwez: goto K5pcg; oWiTQ: lsUE7: goto l9GrH; RqAzD: exit(json_encode(array("code" => 0, "msg" => ""))); goto XKDHw; rZcUz: $res = pdo_insert('hc_prop', $data); goto vTDyB; vVFdS: M26P4: goto uJXug; JRvPQ: if ($_GPC['act'] == 'del') { goto Up97A; } goto shAPR; rNogX: lJ3sM: goto TZOyo; yDwts: exit(json_encode(array("code" => 0, "msg" => ""))); goto M3luD; JStiL: hh2LN: goto QQ5jz; shAPR: if ($_GPC['act'] == 'ajaxlook') { goto aN1uL; } goto eL6_7; axtV6: GQDOE: goto GDsTq; S7Ehe: exit(json_encode(array("code" => 1, "msg" => "", "data" => $res))); goto oWiTQ; GDsTq: $data = array("name" => $_GPC['name'], "thumb" => $_GPC['thumbs'], "cc" => $_GPC['cc'], "sj" => $_GPC['sj'], "jb" => $jb, "jy" => $_GPC['jy'], "jf" => $_GPC['jf'], "give" => $_GPC['give'], "price" => $_GPC['price'], "remark" => implode(',', array_unique(explode(',', $_GPC['remark']))), "type" => $_GPC['type'], "shop" => $_GPC['shop'], "dan" => $_GPC['dan'], "randnum" => $_GPC['randnum'], "desc" => $_GPC['desc'], "sort" => $_GPC['sort'], "newthumb" => $_GPC['newthumbs'], "usethumb" => $_GPC['usethumb'], "weid" => $_W['uniacid']); goto x7VTa; PmCj0: if (!(!empty($res) && $res['id'] != $id)) { goto lJ3sM; } goto hkNp3; kcuKD: sct1d: goto udyfY; inCN_: $id = $_GPC['id']; goto JRvPQ; vTDyB: goto IuugU; goto CXA4q; K5pcg: } public function doWebSelectprop() { goto z7mYe; WhIPa: jFvS6: goto iYN_E; iYN_E: $where['weid'] = $_W['uniacid']; goto gyufr; z7mYe: global $_GPC, $_W; goto dzFEy; ckiRW: $where['type'] = $types; goto WhIPa; BiFgl: $count = pdo_getcolumn('hc_prop', $where, array("count(*)")); goto pp7xy; j8Qv4: if (empty($types)) { goto jFvS6; } goto ckiRW; pp7xy: $nums = ceil($count / $pagesize); goto ezYzN; dzFEy: $id = $_GPC['id']; goto Ns3zl; gyufr: $pagesize = 15; goto BiFgl; Ns3zl: $types = $_GPC['types']; goto j8Qv4; ezYzN: include $this->template('prop/selectprop'); goto hAuSs; hAuSs: } public function doWebSelectpropajax() { goto VcCjA; UKuXR: $list = pdo_getslice('hc_prop', $where, array($pageindex, $pagesize), $total, array(), '', 'id desc'); goto zPFkq; xnKds: if (empty($types)) { goto s_Fvy; } goto OEIQ0; SLIFF: exit(json_encode(array("code" => 1, "msg" => "", "data" => $list, "id" => $id))); goto hjJdG; uF358: s_Fvy: goto NFToX; VcCjA: global $_GPC, $_W; goto GdZIJ; OEIQ0: $where['type'] = $types; goto uF358; oBeSA: $id = $_POST['id']; goto hlYUm; hlYUm: $types = $_POST['types']; goto xnKds; zPFkq: foreach ($list as $key => $val) { $list[$key]['thumb'] = $_W['attachurl'] . $val['thumb']; CmN3e: } goto JK14c; GdZIJ: $pageindex = max(1, intval($_POST['page'])); goto oBeSA; JK14c: BfZkM: goto SLIFF; UwovE: $where['weid'] = $_W['uniacid']; goto UKuXR; NFToX: $pagesize = 15; goto UwovE; hjJdG: } public function doWebUser() { goto lDO2l; j6iaG: YSyz7: goto wPlk3; yAmMh: $where['weid'] = $_W['uniacid']; goto jCtWd; Ca7Ng: if (empty($robot)) { goto nhgl3; } goto hOidX; lDO2l: global $_GPC, $_W; goto yAmMh; euaiK: if (empty($nickname)) { goto YSyz7; } goto XobKu; Pbl39: include $this->template('user/list'); goto IAf1e; lbDyZ: nhgl3: goto A7t3I; XobKu: $where['nickname like'] = '%' . $nickname . '%'; goto j6iaG; jCtWd: $robot = $_GPC['robot']; goto Ca7Ng; LWh4h: $count = pdo_getcolumn('hc_user', $where, array("count(*)")); goto XiJMT; hOidX: $where['robot'] = $robot; goto lbDyZ; A7t3I: $nickname = $_GPC['nickname']; goto euaiK; XiJMT: $nums = ceil($count / $pagesize); goto Pbl39; wPlk3: $pagesize = 15; goto LWh4h; IAf1e: } public function doWebUserajax() { goto Svp4S; maPgd: $list = pdo_getslice('hc_user', $where, array($pageindex, $pagesize), $total, array(), '', 'uid desc'); goto n2ETG; RVx_J: $where['weid'] = $_W['uniacid']; goto HDU5n; Rc71Z: KO1j3: goto JDoDw; tnEVw: $where['robot'] = $robot - 1; goto Rc71Z; hg9VU: JkWvB: goto Mj6Vm; BsW2N: $robot = $_GPC['robot']; goto PZ2Cu; n2ETG: foreach ($list as $key => $val) { goto eg9tB; eg9tB: $list[$key]['gender'] = $val['gender'] == 1 ? '' : ''; goto yhVfG; y2cws: $list[$key]['province'] = empty($val['province']) ? '' : $val['province']; goto SmXx9; tPcLg: $list[$key]['level'] = pdo_getcolumn('hc_user_info', array("uid" => $val['uid'], "sid" => $season, "weid" => $_W['uniacid']), array("level")); goto Zv2MX; Zv2MX: $list[$key]['dan'] = pdo_getcolumn('hc_user_info', array("uid" => $val['uid'], "sid" => $season, "weid" => $_W['uniacid']), array("dan")); goto OuphD; SmXx9: $list[$key]['city'] = empty($val['city']) ? '' : $val['city']; goto tPcLg; OuphD: Wc3tK: goto pjPZv; yhVfG: $list[$key]['robot'] = $val['robot'] == 1 ? '' : ''; goto y2cws; pjPZv: } goto B8Vh6; plNY5: exit(json_encode(array("code" => 1, "msg" => "", "data" => $list))); goto ujptv; veOHQ: $where['nickname like'] = '%' . $nickname . '%'; goto hg9VU; Svp4S: global $_GPC, $_W; goto r3Gdy; B8Vh6: uT3Ao: goto plNY5; JDoDw: $nickname = $_GPC['nickname']; goto T6pqT; r3Gdy: $pageindex = max(1, intval($_GPC['page'])); goto BsW2N; T6pqT: if (empty($nickname)) { goto JkWvB; } goto veOHQ; HDU5n: $season = pdo_getcolumn('hc_season', array("status" => 1, "weid" => $_W['uniacid']), array("id")); goto maPgd; Mj6Vm: $pagesize = 15; goto RVx_J; PZ2Cu: if (empty($robot)) { goto KO1j3; } goto tnEVw; ujptv: } public function doWebUseradd() { goto JyYNW; Q9561: $id = $_GPC['id']; goto mhtwI; J3Ydh: $info = pdo_get('hc_user', array("weid" => $_W['uniacid'], "uid" => $id)); goto aMvFc; oxXZB: $info['else'] = pdo_get('hc_user_info', array("weid" => $_W['uniacid'], "uid" => $id, "sid" => $sid)); goto YI3AX; aMvFc: $sid = pdo_getcolumn('hc_season', array("status" => 1, "weid" => $_W['uniacid']), array("id")); goto oxXZB; YI3AX: dXLNV: goto uNRwS; JyYNW: global $_GPC, $_W; goto Q9561; mhtwI: if (empty($id)) { goto dXLNV; } goto J3Ydh; uNRwS: include $this->template('user/useradd'); goto s2SEk; s2SEk: } public function doWebUserdo() { goto isqHM; i5H8B: $res = pdo_update('hc_user', $data, array("uid" => $id)); goto wucYW; SFX35: goto Se4fZ; goto ub0OP; BWyUm: nxAf0: goto T8loQ; xoMQN: pdo_update('hc_user_info', $udata, array("uid" => $id)); goto pfK2s; glnyX: $data['country'] = $_GPC['country']; goto ixJzf; IptjZ: VN9e7: goto zG9Kk; y0tZz: $info = pdo_get('hc_user_info', array("weid" => $_W['uniacid'], "uid" => $id)); goto qMnPW; h9Uoz: if ($_GPC['robot'] == 1) { goto VN9e7; } goto EJTt_; M8DLv: lPfRs: goto U1Fu9; O6Ba2: $data['weid'] = $_W['uniacid']; goto MlocA; cTEEA: if ($_GPC['act'] == 'del') { goto DcdJz; } goto CAu0S; qMnPW: $sid = pdo_getcolumn('hc_season', array("status" => 1, "weid" => $_W['uniacid']), array("id")); goto D8h7_; s8i1v: exit(json_encode(array("code" => 1, "msg" => ""))); goto nnH8c; ixJzf: $data['robot'] = $_GPC['robot']; goto O6Ba2; TiaHx: exit(json_encode(array("code" => 0, "msg" => ""))); goto SFX35; XBd_0: $id = pdo_insertid(); goto mu52i; Iva0p: if ($_GPC['act'] == 'unblack') { goto CPafY; } goto h9Uoz; ZA5xm: pdo_update('hc_user', array("status" => 1), array("uid" => $id, "weid" => $_W['uniacid'])); goto m0N95; pfK2s: goto nxAf0; goto M8DLv; AWMNp: UfV86: goto uH5ng; zLO63: $data['nickname'] = $_GPC['nickname']; goto iG1ko; l4bmG: $res = pdo_insert('hc_user', $data); goto XBd_0; vGJaE: $data['province'] = $_GPC['province']; goto m2mPN; DWQ0V: if (empty($res)) { goto Oij8v; } goto y0tZz; Txzlp: CPafY: goto ZA5xm; NzL_v: $data['avatar'] = $avatar; goto zLO63; m0N95: exit(json_encode(array("code" => 1, "msg" => ""))); goto MDdmj; GwCXO: goto Se4fZ; goto Txzlp; iG1ko: $data['gender'] = $_GPC['gender']; goto vGJaE; VIFHs: $id = $_GPC['id']; goto cTEEA; MlocA: $data['createtime'] = time(); goto OaMc0; zG9Kk: $avatar = $_W['attachurl'] . $_GPC['avatar']; goto fvuDA; mu52i: goto WbhKP; goto K6ZGe; uH5ng: pdo_update('hc_user', array("status" => 2), array("uid" => $id, "weid" => $_W['uniacid'])); goto BpUdt; DTa2q: goto DVvsY; goto IptjZ; D8h7_: $udata = array("uid" => $id, "sid" => $sid, "dan" => $_GPC['dan'], "star" => $_GPC['star'], "level" => $_GPC['level'], "expe" => $_GPC['expe'], "gold" => $_GPC['gold'], "weid" => $_W['uniacid']); goto hM2YI; wucYW: WbhKP: goto DWQ0V; obQQX: pdo_delete('hc_user', array("uid" => $id, "weid" => $_W['uniacid'])); goto hIgRx; hIgRx: pdo_delete('hc_user_info', array("uid" => $id, "weid" => $_W['uniacid'])); goto s8i1v; MDdmj: Se4fZ: goto tvNg6; W43FD: Oij8v: goto TiaHx; K6ZGe: ZFfE6: goto i5H8B; hM2YI: if (empty($info)) { goto lPfRs; } goto xoMQN; CAu0S: if ($_GPC['act'] == 'black') { goto UfV86; } goto Iva0p; BpUdt: exit(json_encode(array("code" => 1, "msg" => ""))); goto GwCXO; OaMc0: if (!empty($id)) { goto ZFfE6; } goto l4bmG; isqHM: global $_GPC, $_W; goto VIFHs; nnH8c: goto Se4fZ; goto AWMNp; fvuDA: DVvsY: goto NzL_v; U1Fu9: pdo_insert('hc_user_info', $udata); goto BWyUm; EJTt_: $avatar = $_GPC['avatar']; goto DTa2q; ub0OP: DcdJz: goto obQQX; T8loQ: exit(json_encode(array("code" => 1, "msg" => ""))); goto W43FD; m2mPN: $data['city'] = $_GPC['city']; goto glnyX; tvNg6: } public function doWebOrder() { goto C_DyY; yE8gA: $ordersn = $_GPC['ordersn']; goto n3pAd; C_DyY: global $_GPC, $_W; goto d4oDk; d4oDk: $where['weid'] = $_W['uniacid']; goto yE8gA; K6rCo: $pagesize = 15; goto ptzuv; TWDCm: $where['ordersn'] = $ordersn; goto ycoMH; ptzuv: $count = pdo_getcolumn('hc_order', $where, array("count(*)")); goto A_xR5; A_xR5: $nums = ceil($count / $pagesize); goto pVfss; ycoMH: Y5Nhq: goto K6rCo; pVfss: include $this->template('order/list'); goto SQO3J; n3pAd: if (empty($ordersn)) { goto Y5Nhq; } goto TWDCm; SQO3J: } public function doWebOrderajax() { goto OmUFU; NfA_L: foreach ($list as $key => $val) { goto Dn8wg; wC_vJ: $list[$key]['avatar'] = $user['avatar']; goto Wjzo0; Dn8wg: $user = pdo_get('hc_user', array("weid" => $_W['uniacid'], "uid" => $val['uid']), array("nickname", "avatar")); goto c5Lg_; c5Lg_: $list[$key]['nickname'] = $user['nickname']; goto wC_vJ; mrB65: WEmKt: goto Xkqzh; Wjzo0: $list[$key]['paystatus'] = $val['paystatus'] == 1 ? '' : ''; goto mrB65; Xkqzh: } goto gdjt7; T7fPk: dSrMx: goto LaChz; TFXzO: $where['ordersn'] = $ordersn; goto T7fPk; g1EW1: $where['weid'] = $_W['uniacid']; goto jwU2t; LaChz: $pagesize = 15; goto g1EW1; bb_CI: if (empty($ordersn)) { goto dSrMx; } goto TFXzO; ioJVJ: exit(json_encode(array("code" => 1, "msg" => "", "data" => $list))); goto C4BpM; gdjt7: MdClu: goto ioJVJ; OmUFU: global $_GPC, $_W; goto rw_Z3; rw_Z3: $pageindex = max(1, intval($_GPC['page'])); goto UANQw; jwU2t: $list = pdo_getslice('hc_order', $where, array($pageindex, $pagesize), $total, array(), '', 'uid desc'); goto NfA_L; UANQw: $ordersn = $_GPC['ordersn']; goto bb_CI; C4BpM: } public function doWebNews() { goto D43yB; U6ELO: $count = pdo_getcolumn('hc_shenhe', $where, array("count(*)")); goto iY7oI; bmURo: include $this->template('news/news'); goto swUgb; D43yB: global $_GPC, $_W; goto Z_lfR; QXjR4: $pagesize = 15; goto U6ELO; Z_lfR: $where['weid'] = $_W['uniacid']; goto QXjR4; iY7oI: $nums = ceil($count / $pagesize); goto bmURo; swUgb: } public function doWebNewsajax() { goto WVP6e; Zscn7: $list = pdo_getslice('hc_shenhe', $where, array($pageindex, $pagesize), $total, array(), '', 'id desc'); goto LXqoH; LXqoH: foreach ($list as $key => $val) { $list[$key]['img'] = $_W['attachurl'] . $val['img']; zEVgx: } goto qVvwC; z1n2y: $pagesize = 15; goto puVjH; WVP6e: global $_GPC, $_W; goto LnyME; LnyME: $pageindex = max(1, intval($_GPC['page'])); goto z1n2y; O_oiE: exit(json_encode(array("code" => 1, "msg" => "", "data" => $list))); goto AgVPN; puVjH: $where['weid'] = $_W['uniacid']; goto Zscn7; qVvwC: fIcwg: goto O_oiE; AgVPN: } public function doWebNewsadd() { goto jh150; P171t: if (empty($id)) { goto Tazd_; } goto RbJSw; KTteH: include $this->template('news/newsadd'); goto X3_Rh; cyf_p: $info['res'] = pdo_fetchall('SELECT * FROM ' . tablename('hc_shenhe') . ' WHERE id in(' . $info['remark'] . ') AND weid=:weid', array(":weid" => $_W['uniacid'])); goto aHZ6D; aHZ6D: Tazd_: goto KTteH; RbJSw: $info = pdo_get('hc_shenhe', array("weid" => $_W['uniacid'], "id" => $id)); goto cyf_p; FuiDA: $id = $_GPC['id']; goto P171t; jh150: global $_GPC, $_W; goto FuiDA; X3_Rh: } public function doWebNewsdo() { goto eSHb6; yaUTV: if (!$res) { goto sk1t0; } goto IaMbN; HbPUF: tZnKB: goto JO_O4; gz36_: goto yjm2E; goto HbPUF; xITqv: MkwIy: goto fQP1B; IaMbN: exit(json_encode(array("code" => 1, "msg" => ""))); goto OlZgX; E5RaN: exit(json_encode(array("code" => 0, "msg" => ""))); goto gpFLK; OlZgX: sk1t0: goto E5RaN; bU1MB: $res = pdo_update('hc_shenhe', $data, array("id" => $id)); goto xITqv; fQP1B: if (empty($res)) { goto gieFn; } goto DL_vH; LVoYS: exit(json_encode(array("code" => 0, "msg" => ""))); goto gz36_; eSHb6: global $_GPC, $_W; goto bKrRv; MPXmm: gieFn: goto LVoYS; DL_vH: exit(json_encode(array("code" => 1, "msg" => ""))); goto MPXmm; gpFLK: yjm2E: goto fTgpN; enbyv: if (!empty($id)) { goto gawUh; } goto D0Hf5; D0Hf5: $res = pdo_insert('hc_shenhe', $data); goto pIHbo; JO_O4: $res = pdo_delete('hc_shenhe', array("id" => $id)); goto yaUTV; bKrRv: $id = $_GPC['id']; goto Gyz2L; pIHbo: goto MkwIy; goto NFMfy; Gyz2L: if ($_GPC['act'] == 'del') { goto tZnKB; } goto qYDsq; qYDsq: $data = array("weid" => $_W['uniacid'], "stact" => 1, "name" => $_GPC['name'], "img" => $_GPC['img'], "time" => date('Y-m-d H:i:s'), "sort" => 1, "content" => $_GPC['content']); goto enbyv; NFMfy: gawUh: goto bU1MB; fTgpN: } public function doWebAdv() { goto y8Tx4; I21cZ: $nums = ceil($count / $pagesize); goto uE8vG; INBiR: $pagesize = 15; goto x3bGa; uE8vG: include $this->template('adv/adv'); goto hUxCa; q6ZWU: $where['weid'] = $_W['uniacid']; goto INBiR; y8Tx4: global $_GPC, $_W; goto q6ZWU; x3bGa: $count = pdo_getcolumn('hc_ad', $where, array("count(*)")); goto I21cZ; hUxCa: } public function doWebAdvajax() { goto kj_So; ttUyd: $pageindex = max(1, intval($_GPC['page'])); goto nRRPA; VgVvI: exit(json_encode(array("code" => 1, "msg" => "", "data" => $list))); goto AuCBg; nRRPA: $pagesize = 15; goto VV0KA; Oakqz: $list = pdo_getslice('hc_ad', $where, array($pageindex, $pagesize), $total, array(), '', 'id desc'); goto VgVvI; VV0KA: $where['weid'] = $_W['uniacid']; goto Oakqz; kj_So: global $_GPC, $_W; goto ttUyd; AuCBg: } public function doWebAdvadd() { goto DfHnM; kAGdm: if (empty($id)) { goto zaCFK; } goto tV8ph; p0F0k: include $this->template('adv/advadd'); goto ZWETj; DfHnM: global $_GPC, $_W; goto bsOTR; kb_Ob: zaCFK: goto p0F0k; bsOTR: $id = $_GPC['id']; goto kAGdm; tV8ph: $info = pdo_get('hc_ad', array("weid" => $_W['uniacid'], "id" => $id)); goto kb_Ob; ZWETj: } public function doWebAdvdo() { goto seDDT; INkRr: exit(json_encode(array("code" => 0, "msg" => ""))); goto RyOzF; q64mX: exit(json_encode(array("code" => 0, "msg" => ""))); goto ILd76; ulQA3: if (empty($res)) { goto HMJlO; } goto ve73p; ve73p: exit(json_encode(array("code" => 1, "msg" => ""))); goto noV8E; O_7ze: if (!$res) { goto im9Yk; } goto uRvMc; tE0bv: $res = pdo_delete('hc_ad', array("id" => $id)); goto O_7ze; ILd76: goto DAApP; goto XXcEx; MZZz0: if ($_GPC['act'] == 'del') { goto i0q7b; } goto YhqG9; whsAW: di0VM: goto wQvNI; ROm_b: l0bgC: goto ulQA3; KiMJ5: $res = pdo_insert('hc_ad', $data); goto q53bb; uRvMc: exit(json_encode(array("code" => 1, "msg" => ""))); goto T6WB1; XXcEx: i0q7b: goto tE0bv; wQvNI: $res = pdo_update('hc_ad', $data, array("id" => $id)); goto ROm_b; K2HAu: if (!empty($id)) { goto di0VM; } goto KiMJ5; RyOzF: DAApP: goto HnFWo; EjrHe: $id = $_GPC['id']; goto MZZz0; q53bb: goto l0bgC; goto whsAW; seDDT: global $_GPC, $_W; goto EjrHe; noV8E: HMJlO: goto q64mX; YhqG9: $data = array("weid" => $_W['uniacid'], "name" => $_GPC['name'], "appid" => $_GPC['appid'], "path" => $_GPC['path'], "desc" => $_GPC['desc']); goto K2HAu; T6WB1: im9Yk: goto INkRr; HnFWo: } public function doWebActive() { goto UldCN; l_RD2: include $this->template('active/active'); goto AVrcn; nPQQC: $nums = ceil($count / $pagesize); goto l_RD2; UldCN: global $_GPC, $_W; goto M9rMB; YOuf3: $count = pdo_getcolumn('hc_bonus', $where, array("count(*)")); goto nPQQC; gUPIZ: $pagesize = 15; goto YOuf3; M9rMB: $where['weid'] = $_W['uniacid']; goto gUPIZ; AVrcn: } public function doWebActiveajax() { goto jVt91; jVt91: global $_GPC, $_W; goto dCAaH; fkfVY: foreach ($list as $key => $val) { goto uRaSU; OtZox: $list[$key]['avatar'] = $user['avatar']; goto RpeVx; NrubJ: lh3pf: goto ngqva; Fux1I: $list[$key]['nickname'] = $user['nickname']; goto OtZox; ucz_n: $list[$key]['addtime'] = date('Y-m-d H:i', $val['addtime']); goto NrubJ; uRaSU: $user = pdo_get('hc_user', array("weid" => $val['weid'], "uid" => $val['uid']), array("nickname", "avatar", "moneycode")); goto Fux1I; RpeVx: $list[$key]['moneycode'] = $user['moneycode']; goto ucz_n; ngqva: } goto j4SU2; RHz0Z: $where['weid'] = $_W['uniacid']; goto YbpOe; YbpOe: $list = pdo_getslice('hc_bonus', $where, array($pageindex, $pagesize), $total, array(), '', 'addtime desc'); goto fkfVY; j4SU2: bFTxg: goto jbCXo; jbCXo: exit(json_encode(array("code" => 1, "msg" => "", "data" => $list))); goto LPOi6; dCAaH: $pageindex = max(1, intval($_GPC['page'])); goto AX_qH; AX_qH: $pagesize = 15; goto RHz0Z; LPOi6: } public function doWebActivedo() { goto C8Oxn; DRO2i: exit(json_encode(array("code" => 0, "msg" => ""))); goto SVsxN; WF1Qx: $res = pdo_update('hc_bonus', array("status" => 1, "dealtime" => time()), array("id" => $id)); goto SkV9i; SkV9i: if (empty($res)) { goto fydc0; } goto aBRwq; v9z3R: fydc0: goto DRO2i; C8Oxn: global $_GPC, $_W; goto OAKb1; OAKb1: $id = $_GPC['id']; goto WF1Qx; aBRwq: exit(json_encode(array("code" => 1, "msg" => ""))); goto v9z3R; SVsxN: } public function doWebUploadimg() { goto s9sCT; aQIrK: mkdir($dir); goto y3OAp; s9sCT: global $_GPC, $_W; goto lzTA3; jJubD: goto XEgaP; goto Gxexz; qX5JT: exit(json_encode(array("code" => 0, "msg" => ""))); goto jJubD; Xj5T5: $type = explode('/', $type); goto DJj6e; lzTA3: if (!empty($_FILES['thumb'])) { goto Eby63; } goto pLEym; MVnk1: $dir = IA_ROOT . '/addons/hc_answer/upload'; goto p91lH; DJj6e: $newfilename = date('YmdHis') . rand(1000, 9999); goto MVnk1; btpah: $type = $_FILES['thumb']['type']; goto Xj5T5; dndCr: exit(json_encode(array("code" => 1, "msg" => "", "path" => $thumb))); goto faeaG; Gxexz: e3a81: goto cGJEB; cGJEB: $thumb = $_W['siteroot'] . 'addons/hc_answer/upload/' . $newfilename . '.' . $type[1]; goto dndCr; SJNzm: Eby63: goto btpah; pLEym: exit(json_encode(array("code" => 0, "msg" => ""))); goto SJNzm; faeaG: XEgaP: goto zc2UZ; ytv0s: QSnXt: goto g1vbm; y3OAp: chmod($dir, 0777); goto ytv0s; p91lH: if (file_exists($dir)) { goto QSnXt; } goto aQIrK; g1vbm: if (move_uploaded_file($_FILES['thumb']['tmp_name'], '../addons/hc_answer/upload/' . $newfilename . '.' . $type[1])) { goto e3a81; } goto qX5JT; zc2UZ: } public function doWebUploadexcel() { goto N_J5y; uQeuv: chmod($dir, 0777); goto rv8x0; AFZuq: exit(json_encode(array("code" => 0, "msg" => ""))); goto RS63k; O9d13: if (file_exists($dir)) { goto U2Y1s; } goto DCsZc; DCsZc: mkdir($dir); goto uQeuv; Ibw5F: MSDo2: goto Tk7QV; xYrQd: exit(json_encode(array("code" => 1, "msg" => "", "path" => $excel))); goto Ibw5F; BXdsW: goto MSDo2; goto T4Dqf; rv8x0: U2Y1s: goto WtiAW; p902v: $dir = IA_ROOT . '/addons/hc_answer/excel'; goto O9d13; N_J5y: global $_GPC, $_W; goto qvWXy; T4Dqf: mQ5Zz: goto BNNuW; RS63k: idHQF: goto yEZR3; qvWXy: if (!empty($_FILES['excel'])) { goto idHQF; } goto AFZuq; WtiAW: if (move_uploaded_file($_FILES['excel']['tmp_name'], '../addons/hc_answer/excel/' . $newfilename)) { goto mQ5Zz; } goto aq5ZY; BNNuW: $excel = '/addons/hc_answer/excel/' . $newfilename; goto xYrQd; aq5ZY: exit(json_encode(array("code" => 0, "msg" => ""))); goto BXdsW; yEZR3: $newfilename = $_FILES['excel']['name']; goto p902v; Tk7QV: } public function doMobileApi() { goto DV0jn; rL1mn: $model = new HcfkModel(); goto mPb1J; zzTo9: $token = $account_api->getAccessToken(); goto rL1mn; HMR8T: return $_GPC['echostr']; goto Ur_K9; SpFkN: $post_data = $model->json_encode2(array("touser" => $openid, "msgtype" => "link", "link" => array("title" => $follow['title'], "description" => $follow['desc'], "url" => $follow['url'], "thumb_url" => toimage($follow['img'])))); goto nR60S; DV0jn: global $_W, $_GPC; goto Z7PHz; JozKu: $openid = $input['FromUserName']; goto kDGNo; PxaSv: $follow = json_decode($settings, true); goto H_1BK; wga1I: load()->func('communication'); goto SpFkN; mPb1J: $settings = pdo_getcolumn('hc_setting', array("weid" => $weid), array("follow")); goto PxaSv; Ur_K9: goto Oe0Nk; goto tf1cq; YETD0: echo success; goto LZUgs; tf1cq: COslR: goto JozKu; H_1BK: $post_url = 'https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=' . $token; goto wga1I; LZUgs: Oe0Nk: goto ef4a7; kDGNo: $account_api = WeAccount::create(); goto zzTo9; ywJw2: $input = $_GPC['__input']; goto qJj2E; nR60S: ihttp_post($post_url, $post_data); goto YETD0; Z7PHz: $weid = $_W['uniacid']; goto ywJw2; qJj2E: if ($input) { goto COslR; } goto HMR8T; ef4a7: } public function doWebSendlibtpl() { goto PCSJO; z82y5: $tpl = json_decode($tpl, true); goto qjzfK; sRbrG: $token = $account_api->getAccessToken(); goto fBeZ6; SMuic: $weid = $_W['uniacid']; goto Tj4dL; jkJ7X: foreach ($users as $key => $val) { goto aPqoY; slkYO: if (!($res['status'] == 'OK')) { goto J4sCA; } goto BO4M4; l61gk: DclbT: goto uuTmY; MpAqk: $data['data']['keyword1']['color'] = '#173177'; goto S8UsZ; igEFW: $data['data']['keyword1']['value'] = $keyword1; goto MpAqk; S8UsZ: $data['data']['keyword2']['value'] = $keyword2; goto hDXED; aPqoY: $data['touser'] = $val['openid']; goto MzIhz; DwK34: J4sCA: goto l61gk; dmRQ0: $res = ihttp_post($url, $json); goto slkYO; ATR1N: $data['emphasis_keyword'] = 'keyword1.DATA'; goto OePw7; OePw7: $data['page'] = 'hc_answer/pages/index/index'; goto F4ikn; BO4M4: pdo_update('hc_formid', array("status" => 1), array("formid" => $val['formid'])); goto DwK34; ZYLvj: $data['form_id'] = $val['formid']; goto igEFW; hDXED: $data['data']['keyword2']['color'] = '#173177'; goto ATR1N; F4ikn: $json = json_encode($data); goto dmRQ0; MzIhz: $data['template_id'] = $tpl['tk']; goto ZYLvj; uuTmY: } goto YAQei; WSbQp: $keyword2 = $_GPC['keyword2']; goto zVWEZ; nrxOO: exit(json_encode(array("code" => 1, "msg" => ""))); goto bj30v; qjzfK: $users = pdo_fetchall('SELECT a.openid,b.formid FROM ' . tablename('hc_user') . ' AS a LEFT JOIN ' . tablename('hc_formid') . ' AS b ON a.uid=b.uid WHERE a.weid=:weid AND b.formid !=\'\' AND b.status=0 group by a.uid', array(":weid" => $weid)); goto jkJ7X; fBeZ6: $url = 'https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send?access_token=' . $token; goto ZU0_I; PCSJO: global $_W, $_GPC; goto SMuic; YAQei: Aavar: goto nrxOO; ZU0_I: $tpl = pdo_getcolumn('hc_setting', array("weid" => $weid), array("tpl")); goto z82y5; Tj4dL: $keyword1 = $_GPC['keyword1']; goto WSbQp; zVWEZ: $account_api = WeAccount::create(); goto sRbrG; bj30v: } } ?>

Did this file decode correctly?

Original Code

<?php
 goto dlZb_; dlZb_: defined('IN_IA') or exit('Access Denied'); goto LIygz; LIygz: require_once IA_ROOT . '/addons/hc_answer/functions.php'; goto X8MIc; X8MIc: class Hc_answerModuleSite extends WeModuleSite { public function doWebMain() { global $_GPC, $_W; include $this->template('main'); } public function doWebBasic() { goto IiQsn; JchT0: if ($currtime >= $active['xnnumstart']) { goto IeRV7; } goto wFsaE; vwTiN: if (!($everyday > 1)) { goto XcEyS; } goto mFOcw; RPFEf: $maxnum = round($active['truemoney'] / $active['money']) - $active['truepeople']; goto GHC_q; ZPB5b: BAJ_r: goto FjUVZ; Jq_7I: $info['tpl'] = json_decode($res['tpl'], true); goto UOUOr; yVWtv: $plan = ceil(24 / $everyday) . ''; goto oNQKP; B12JM: $active = json_decode(pdo_getcolumn('hc_setting', array("weid" => $_W['uniacid']), array("active")), true); goto ChUjY; wFsaE: $days = round(($season['endtime'] - $season['starttime']) / 86400) - $active['xnnumstart'] + 1; goto insvC; PCn2p: idUT7: goto RPFEf; RQFUJ: yL6BD: goto A4rjk; insvC: goto idUT7; goto D02rx; oNQKP: goto bfonO; goto RQFUJ; tdUY7: $everyhour = round($everyday / 24); goto G0PSV; g5qbN: $info['follow'] = json_decode($res['follow'], true); goto jBdpw; AnWei: $plan = '1'; goto ZPB5b; hvwxG: $info['index'] = json_decode($res['index'], true); goto FkBer; ChUjY: $season = pdo_get('hc_season', array("status" => 1, "weid" => $_W['uniacid'])); goto L3cCb; IiQsn: global $_GPC, $_W; goto AX55O; D02rx: IeRV7: goto fBzcJ; B0g5a: $dan = pdo_getall('hc_dan', array("weid" => $_W['uniacid']), array(), '', 'dan_id desc'); goto uIOzL; n09P5: $plan = ceil(60 / $everyhour) . ''; goto TZleg; jBdpw: $info['forward'] = json_decode($res['forward'], true); goto FBrts; G0PSV: $everymins = round($everyhour / 60); goto vwTiN; UOUOr: $info['active'] = json_decode($res['active'], true); goto BaZdE; FjUVZ: bfonO: goto x8dat; fBzcJ: $days = round(($season['endtime'] - time()) / 86400) - $active['xnnumstart'] + 1; goto PCn2p; FBrts: $info['notice'] = json_decode($res['notice'], true); goto kPoIq; A4rjk: if ($everymins > 1) { goto RnGQ9; } goto n09P5; uIOzL: $ad = pdo_getall('hc_ad', array("weid" => $_W['uniacid']), array(), '', 'id asc'); goto B12JM; FkBer: $info['basic'] = json_decode($res['basic'], true); goto uAlSy; mFOcw: if ($everyhour > 1) { goto yL6BD; } goto yVWtv; rXnpd: RnGQ9: goto AnWei; AX55O: $res = pdo_get('hc_setting', array("weid" => $_W['uniacid'])); goto hvwxG; BaZdE: $sid = pdo_getcolumn('hc_season', array("status" => 1, "weid" => $_W['uniacid']), array("id")); goto B0g5a; kPoIq: $info['sign'] = json_decode($res['sign'], true); goto Jq_7I; x8dat: XcEyS: goto wU6cb; GHC_q: $everyday = round($maxnum / $days); goto tdUY7; L3cCb: $currtime = ceil((time() - $season['starttime']) / 86400); goto JchT0; uAlSy: $info['ques'] = json_decode($res['ques'], true); goto g5qbN; TZleg: goto BAJ_r; goto rXnpd; wU6cb: include $this->template('setting/basic'); goto QHV2v; QHV2v: } public function doWebBasicdo() { goto l2okR; ewNnL: ccCKY: goto nrtze; hD_z5: if (!$result) { goto d5ASc; } goto zN_8d; MRnJn: $data = array("weid" => $_W['uniacid'], "index" => json_encode($_POST['index']), "basic" => json_encode($_POST['basic']), "ques" => json_encode($_POST['ques']), "follow" => json_encode($_POST['follow']), "forward" => json_encode($_POST['forward']), "notice" => json_encode($_POST['notice']), "sign" => json_encode($_POST['sign']), "tpl" => json_encode($_POST['tpl']), "active" => json_encode($_POST['active'])); goto v2Ki2; v2Ki2: $res = pdo_get('hc_setting', array("weid" => $_W['uniacid'])); goto Mc1ra; l2okR: global $_GPC, $_W; goto MRnJn; MYWRF: eb6bV: goto hD_z5; fGT6n: $result = pdo_update('hc_setting', $data, array("weid" => $_W['uniacid'])); goto MrSPn; Th0DU: exit(json_encode(array("code" => 0, "msg" => ""))); goto sEK5q; MrSPn: goto eb6bV; goto ewNnL; nrtze: $result = pdo_insert('hc_setting', $data); goto MYWRF; zN_8d: exit(json_encode(array("code" => 1, "msg" => ""))); goto R09em; Mc1ra: if (empty($res)) { goto ccCKY; } goto fGT6n; R09em: d5ASc: goto Th0DU; sEK5q: } public function doWebStartsocket() { exit(json_encode(array("code" => 1, "msg" => ""))); } public function doWebSeason() { goto FQyR1; VGV2z: $pagesize = 15; goto ViWtv; wKhpr: $nums = ceil($count / $pagesize); goto DoMKX; bySfX: $sid = $_GPC['season']; goto yT3KM; ViWtv: $count = pdo_getcolumn('hc_season', $where, array("count(*)")); goto wKhpr; DoMKX: include $this->template('setting/season'); goto AKrMF; FQyR1: global $_GPC, $_W; goto bySfX; yT3KM: $where['weid'] = $_W['uniacid']; goto VGV2z; AKrMF: } public function doWebSeasonajax() { goto puFZ8; wkHx3: $currno = pdo_getcolumn('hc_season', array("status" => 1, "weid" => $_W['uniacid']), array("no")); goto qOWrJ; qOWrJ: $list = pdo_getslice('hc_season', $where, array($pageindex, $pagesize), $total, array(), '', 'no asc'); goto Nrv1a; puFZ8: global $_GPC, $_W; goto FNNlT; mGDmj: $pagesize = 15; goto Ys2nv; Ys2nv: $where['weid'] = $_W['uniacid']; goto wkHx3; FNNlT: $pageindex = max(1, intval($_POST['page'])); goto mGDmj; MnyKY: exit(json_encode(array("code" => 1, "msg" => "", "data" => $list))); goto hH0zV; sFhG0: L6MHs: goto MnyKY; Nrv1a: foreach ($list as $key => $val) { goto Q1BXj; uXr6R: $list[$key]['endtime'] = date('Y-m-d H:i', $val['endtime']); goto c5JUA; BE70A: hK7TR: goto h0FY5; h0FY5: $list[$key]['thumb'] = $_W['attachurl'] . $val['thumb']; goto Ipzvk; Ipzvk: $list[$key]['starttime'] = date('Y-m-d H:i', $val['starttime']); goto uXr6R; Q1BXj: if (!($val['no'] < $currno)) { goto hK7TR; } goto yQ6m2; c5JUA: bfYGY: goto QiXvo; yQ6m2: $list[$key]['status'] = 2; goto BE70A; QiXvo: } goto sFhG0; hH0zV: } public function doWebSeasonadd() { goto aZVcZ; RgiYl: K7VZO: goto QEE0V; aZVcZ: global $_GPC, $_W; goto IcSaO; HbmOP: $info['starttime'] = date('Y-m-d H:i', $info['starttime']); goto xIx3O; qj_YE: $info = pdo_get('hc_season', array("weid" => $_W['uniacid'], "id" => $id)); goto HbmOP; QEE0V: include $this->template('setting/seasonadd'); goto Blr80; xIx3O: $info['endtime'] = date('Y-m-d H:i', $info['endtime']); goto RgiYl; T3Zoz: if (empty($id)) { goto K7VZO; } goto qj_YE; IcSaO: $id = $_GPC['id']; goto T3Zoz; Blr80: } public function doWebSeasondo() { goto gOmCF; OZCGD: exit(json_encode(array("code" => 0, "msg" => ""))); goto dbonD; gOmCF: global $_GPC, $_W; goto zWAg9; uqrXW: exit(json_encode(array("code" => 1, "msg" => ""))); goto AY_Rn; RIB8z: LOrMP: goto m8tZz; Cgf_p: goto UL7Yb; goto heRnh; Apio7: pdo_update('hc_season', array("status" => 0), array("weid" => $_W['uniacid'], "id !=" => $id)); goto DZR5E; PQ_5U: exit(json_encode(array("code" => 0, "msg" => ""))); goto sO4RG; dbonD: ElTXX: goto HAFzr; P67jv: yS5P0: goto OZCGD; m8tZz: exit(json_encode(array("code" => 0, "msg" => ""))); goto gFte5; AhKtu: $data = array("no" => $_GPC['no'], "name" => $_GPC['name'], "starttime" => strtotime($_GPC['starttime']), "endtime" => strtotime($_GPC['endtime']), "weid" => $_W['uniacid'], "createtime" => time()); goto l9xVD; l9xVD: if (!empty($id)) { goto H3OmN; } goto CdCLI; AY_Rn: nb7OQ: goto PQ_5U; sO4RG: goto ElTXX; goto lRkd2; fhicq: $res = pdo_delete('hc_season', array("id" => $id)); goto tilrT; nNdW7: if ($_GPC['act'] == 'start') { goto AnaUe; } goto AhKtu; lRkd2: AnaUe: goto WDKeE; heRnh: H3OmN: goto kufTG; wcnxf: UL7Yb: goto Mqc4M; DZR5E: $lastseason = pdo_getall('hc_user_info', array("weid" => $_W['uniacid'])); goto nUp9Z; kufTG: $res = pdo_update('hc_season', $data, array("id" => $id)); goto wcnxf; nUp9Z: foreach ($lastseason as $key => $val) { goto SQE7e; SQE7e: $data = array("uid" => $val['uid'], "weid" => $val['weid'], "sid" => $val['sid'], "level" => $val['level'], "expe" => $val['expe'], "dan" => $val['dan'], "star" => $val['star'], "winrate" => $val['winrate'], "totalnum" => $val['totalnum'], "winnum" => $val['winnum']); goto PPayZ; w0bkQ: pdo_update('hc_user_info', $udate, array("uid" => $val['uid'], "weid" => $val['weid'], "sid" => $val['sid'])); goto m65Z7; m9TOM: $udate = array("sid" => $id, "dan" => 1, "star" => 0, "winrate" => 0, "totalnum" => 0, "winnum" => 0); goto w0bkQ; m65Z7: DmBoa: goto IkGwf; PPayZ: pdo_insert('hc_user_history', $data); goto m9TOM; IkGwf: } goto oOrrY; UjzLZ: if (!($_GPC['act'] == 'del')) { goto wJcHy; } goto fhicq; oOrrY: kNOgM: goto a2tad; Mqc4M: if (empty($res)) { goto nb7OQ; } goto uqrXW; QOZY3: exit(json_encode(array("code" => 1, "msg" => ""))); goto P67jv; zWAg9: $id = $_GPC['id']; goto UjzLZ; CdCLI: $res = pdo_insert('hc_season', $data); goto Cgf_p; gFte5: wJcHy: goto nNdW7; WDKeE: $res = pdo_update('hc_season', array("status" => 1), array("weid" => $_W['uniacid'], "id" => $id)); goto Apio7; tilrT: if (!$res) { goto LOrMP; } goto dfySr; dfySr: exit(json_encode(array("code" => 1, "msg" => ""))); goto RIB8z; a2tad: if (!$res) { goto yS5P0; } goto QOZY3; HAFzr: } public function doWebGrade() { goto zth3J; tCvTo: $list = pdo_getall('hc_grade', array("weid" => $_W['uniacid']), array(), '', 'levelno asc'); goto cT0B4; zth3J: global $_GPC, $_W; goto tCvTo; cT0B4: include $this->template('setting/grade'); goto wFIIg; wFIIg: } public function doWebGradedo() { goto fVknD; YsGpj: exit(json_encode(array("code" => 1, "msg" => ""))); goto J_UDO; zCtla: z7Aui: goto ZH6Hh; ubSUz: exit(json_encode(array("code" => 0, "msg" => ""))); goto bQvz7; wlou3: if (!$res) { goto z7Aui; } goto yY3Lu; AB6kX: foreach ($arr as $key => $val) { goto Yh4wt; Yh4wt: $data = array("weid" => $_W['uniacid'], "levelno" => $val['no'], "levelname" => $val['name'], "levelexp" => $val['exp']); goto JbH9c; BIdio: O57NZ: goto NJbA2; dohWu: if (empty($res)) { goto O57NZ; } goto WD3nD; WD3nD: $result = pdo_update('hc_grade', $data, array("weid" => $_W['uniacid'], "levelno" => $val['no'])); goto oZtce; JbH9c: $res = pdo_getcolumn('hc_grade', array("weid" => $_W['uniacid'], "levelno" => $val['no']), array("id")); goto dohWu; oZtce: goto dvU0q; goto BIdio; wc9aw: dvU0q: goto CkjyB; CkjyB: Qmpfb: goto cLgJb; NJbA2: $result = pdo_insert('hc_grade', $data); goto wc9aw; cLgJb: } goto LloiT; ZH6Hh: exit(json_encode(array("code" => 0, "msg" => ""))); goto s_YxV; rYFOC: $res = pdo_delete('hc_grade', array("id" => $id)); goto wlou3; FvFzo: VEjBk: goto rYFOC; kw1KX: if ($result) { goto U7pBV; } goto ubSUz; bQvz7: goto Yaj09; goto q_2Jt; LloiT: COUv1: goto kw1KX; pwH9E: $id = $_POST['id']; goto spqFB; q_2Jt: U7pBV: goto YsGpj; Cnngd: $arr = json_decode($data, true); goto AB6kX; spqFB: if ($_POST['act'] == 'del') { goto VEjBk; } goto o14Zf; J_UDO: Yaj09: goto wkRrT; wkRrT: goto V47pD; goto FvFzo; yY3Lu: exit(json_encode(array("code" => 1, "msg" => ""))); goto zCtla; s_YxV: V47pD: goto DLBJs; o14Zf: $data = $_POST['level']; goto Cnngd; fVknD: global $_GPC, $_W; goto pwH9E; DLBJs: } public function doWebRank() { goto AEZCq; xzMuc: $count = pdo_getcolumn('hc_dan', $where, array("count(*)")); goto vu9v4; jndOG: include $this->template('setting/rank'); goto t7CQO; NEQcc: $pagesize = 15; goto xzMuc; mT2ik: $where['weid'] = $_W['uniacid']; goto NEQcc; vu9v4: $nums = ceil($count / $pagesize); goto jndOG; AEZCq: global $_GPC, $_W; goto mT2ik; t7CQO: } public function doWebRankajax() { goto d1aHb; nMkis: foreach ($list as $key => $val) { goto buI02; d9hHL: $list[$key]['season'] = pdo_getcolumn('hc_season', array("status" => 1, "weid" => $_W['uniacid']), array("name")); goto avn_a; buI02: $quesids = explode(',', $val['quesids']); goto DeZsL; DeZsL: $list[$key]['thumb'] = $_W['attachurl'] . $val['thumb']; goto d9hHL; UgRvs: ODoAk: goto zwvf4; avn_a: $list[$key]['quesnum'] = empty($val['quesids']) ? 0 : count($quesids); goto SMvyQ; SMvyQ: unset($quesids); goto UgRvs; zwvf4: } goto n0zRN; fDvaw: exit(json_encode(array("code" => 1, "msg" => "", "data" => $list))); goto kwcLk; bZPyw: $pageindex = max(1, intval($_POST['page'])); goto FA3cT; bLS2x: $list = pdo_getslice('hc_dan', $where, array($pageindex, $pagesize), $total, array(), '', 'dan_id asc'); goto nMkis; emrDZ: $where['weid'] = $_W['uniacid']; goto bLS2x; FA3cT: $pagesize = 15; goto emrDZ; d1aHb: global $_GPC, $_W; goto bZPyw; n0zRN: d0W3Q: goto fDvaw; kwcLk: } public function doWebRankadd() { goto eYd2G; QyIqb: if (empty($id)) { goto DTsDc; } goto xittF; ya3xt: $season = pdo_getall('hc_season', array("weid" => $_W['uniacid']), array(), '', 'no desc'); goto nr7c1; H16j6: DTsDc: goto ya3xt; UI8Xb: $prop = pdo_get('hc_prop', array("id" => $info['reward'], "weid" => $_W['uniacid'])); goto H16j6; eYd2G: global $_GPC, $_W; goto MAxNY; nr7c1: include $this->template('setting/rankadd'); goto cJZLe; MAxNY: $id = $_GPC['id']; goto QyIqb; xittF: $info = pdo_get('hc_dan', array("weid" => $_W['uniacid'], "id" => $id)); goto UI8Xb; cJZLe: } public function doWebRanklook() { goto Cor0v; chpT7: p5iNW: goto scJmE; r1Ej8: $quess = pdo_getall('hc_pk_record', array("weid" => $_W['uniacid'], "dan" => $id), array("questions")); goto ayGcs; WuMkB: $quesstr = implode(',', $ques); goto C7kqk; dwx_8: include $this->template('setting/ranklook'); goto Ynagx; ayGcs: if (!empty($quess)) { goto yLCpK; } goto Aru0R; Aru0R: $alrcount = 0; goto N180T; scJmE: $info = pdo_get('hc_dan', array("weid" => $_W['uniacid'], "id" => $id)); goto OOXR_; Qlmfn: foreach ($info['res'] as $key => $val) { goto CEoFV; CEoFV: $info['res'][$key]['count'] = $countval[$val['id']]; goto mduqF; mduqF: $info['res'][$key]['type_id'] = pdo_getcolumn('hc_question_type', array("weid" => $_W['uniacid'], "id" => $val['type_id']), array("name")); goto F_u5M; F_u5M: cWrz9: goto E6FKB; E6FKB: } goto MwJlX; erCkZ: $quescount = count($quesdan); goto XfuoK; T4C1x: if (empty($id)) { goto YXfyc; } goto r1Ej8; fI4j3: $countval = array_count_values($quesarr); goto qYBpr; V0Xa2: kw2yM: goto WuMkB; qYBpr: $quesall = array_unique($quesarr); goto sg65V; C7kqk: $quesarr = explode(',', $quesstr); goto fI4j3; Cor0v: global $_GPC, $_W; goto m8JI3; sg65V: $alrcount = count($quesall); goto chpT7; zuMac: foreach ($quess as $key => $val) { $ques[$key] = $val['questions']; CUru7: } goto V0Xa2; XfuoK: $info['res'] = pdo_fetchall('SELECT * FROM ' . tablename('hc_question') . ' WHERE id in(' . $info['quesids'] . ') AND weid=:weid', array(":weid" => $_W['uniacid'])); goto Qlmfn; Kr8Vg: yLCpK: goto zuMac; N180T: goto p5iNW; goto Kr8Vg; MwJlX: lkIO9: goto SmDpE; OOXR_: $quesdan = explode(',', $info['quesids']); goto erCkZ; SmDpE: YXfyc: goto dwx_8; m8JI3: $id = $_GPC['id']; goto T4C1x; Ynagx: } public function doWebRankdo() { goto iwSd8; I37Oc: eV6P4: goto dvqZv; hujIY: $quesids = explode(',', $_GPC['remark']); goto h500t; qzaX9: $id = $_GPC['id']; goto NWuVC; xfAML: exit(json_encode(array("code" => 1, "msg" => ""))); goto BzfIv; Y_TH5: OjUYg: goto CO8wl; eQgId: exit(json_encode(array("code" => 1, "msg" => ""))); goto jQJRL; EOhOw: $tk = explode(',', $ques); goto f5EUq; CnvKk: if ($_GPC['act'] == 'ques') { goto xJSMM; } goto gf6zl; S2cHH: foreach ($dan as $key => $val) { goto RZO2a; ZxWfC: unset($quesids); goto vFYUM; iOgnS: unset($arr); goto xMrJu; koV8B: $quesids = implode(',', $res); goto aQwYI; aTTY6: $res = array_intersect($tk, $arr); goto koV8B; RZO2a: $arr = explode(',', $val['quesids']); goto aTTY6; xMrJu: unset($res); goto ZxWfC; aQwYI: pdo_update('hc_dan', array("quesids" => $quesids), array("weid" => $_W['uniacid'], "id" => $val['id'])); goto iOgnS; vFYUM: vgsTX: goto lSgIR; lSgIR: } goto zWcZv; jQJRL: goto gr1S2; goto Y_TH5; zWcZv: Iha4A: goto fuTtI; tsJLa: if (empty($res)) { goto byYiW; } goto xfAML; kjHLj: $quesids = explode(',', $_GPC['remark']); goto gOksg; ODECR: exit(json_encode(array("code" => 0, "msg" => ""))); goto KZu7p; zCYSs: goto gr1S2; goto y4kTt; KZu7p: goto gr1S2; goto vitTy; f5EUq: $dan = pdo_getall('hc_dan', array("weid" => $_W['uniacid']), array("id", "quesids"), '', 'createtime desc'); goto S2cHH; if75a: if (!empty($id)) { goto eV6P4; } goto Q3IJT; kyeD3: rxpAD: goto EOhOw; GGZR1: $res = pdo_delete('hc_dan', array("id" => $id)); goto KFA7x; LZ2QV: goto VJyy0; goto I37Oc; NWuVC: if ($_GPC['act'] == 'del') { goto DjDPC; } goto CnvKk; gf6zl: if ($_GPC['act'] == 'update') { goto OjUYg; } goto kjHLj; h500t: $quesids = array_unique($quesids); goto c4rGI; kinSO: $quesids = implode(',', $quesids); goto WGk2f; vitTy: DjDPC: goto GGZR1; xBlCy: NS8PW: goto pKp2d; QoWtf: exit(json_encode(array("code" => 1, "msg" => ""))); goto xBlCy; shxZe: VJyy0: goto tsJLa; dvqZv: $res = pdo_update('hc_dan', $data, array("id" => $id)); goto shxZe; mQItm: foreach ($question as $key => $val) { goto lE3j9; jq7QU: $ques = $val['id']; goto SYncV; lE3j9: if ($key == 0) { goto jCAhO; } goto jSD2u; jSD2u: $ques .= ',' . $val['id']; goto xB0_g; lXNnz: wFQlS: goto AD_T0; xB0_g: goto c_OCs; goto PAtBf; SYncV: c_OCs: goto lXNnz; PAtBf: jCAhO: goto jq7QU; AD_T0: } goto kyeD3; Owh4P: gr1S2: goto k1M8S; fuTtI: exit(json_encode(array("code" => 1, "msg" => ""))); goto Owh4P; c4rGI: $quesids = implode(',', $quesids); goto fcSzi; BzfIv: byYiW: goto ODECR; pKp2d: exit(json_encode(array("code" => 0, "msg" => ""))); goto zCYSs; gOksg: $quesids = array_unique($quesids); goto kinSO; iwSd8: global $_GPC, $_W; goto qzaX9; fcSzi: $res = pdo_update('hc_dan', array("quesids" => $quesids), array("id" => $id)); goto eQgId; y4kTt: xJSMM: goto hujIY; Q3IJT: $res = pdo_insert('hc_dan', $data); goto LZ2QV; CO8wl: $question = pdo_getall('hc_question', array("weid" => $_W['uniacid']), array("id"), '', 'createtime desc'); goto mQItm; WGk2f: $data = array("dan_id" => $_GPC['dan_id'], "season" => $_GPC['season'], "name" => $_GPC['name'], "thumb" => $_GPC['thumbs'], "win_star" => $_GPC['win_star'], "use_gold" => $_GPC['use_gold'], "win_gold" => $_GPC['win_gold'], "quesids" => $quesids, "reward" => $_GPC['reward'], "winexp" => $_GPC['winexp'], "failexp" => $_GPC['failexp'], "rewardnum" => $_GPC['rewardnum'], "border" => $_GPC['border'], "robot" => $_GPC['robot'], "weid" => $_W['uniacid'], "createtime" => time()); goto if75a; KFA7x: if (!$res) { goto NS8PW; } goto QoWtf; k1M8S: } public function doWebSelectlib() { goto JWsfj; L2RdN: $nums = ceil($count / $pagesize); goto YmR2k; sa6iY: $pagesize = max(100, intval($_GPC['pagenum'])); goto gHw7Z; NMdBJ: $where .= ' AND id in(' . $questions . ')'; goto RxNIU; JWsfj: global $_GPC, $_W; goto a_YiV; yla3U: include $this->template('setting/selectlib'); goto g9JXB; V_cH4: XHxhw: goto aGtE8; Q6I7y: $where .= " AND question like=%{$question}%"; goto V_cH4; w3xZ6: HSKXv: goto sa6iY; b5rVo: $questions = pdo_getcolumn('hc_dan', array("id" => $id, "weid" => $_W['uniacid']), array("quesids")); goto NMdBJ; BGBm2: $where .= ' AND type_id=' . $cate_id; goto Gb5vR; RxNIU: oe9rR: goto aFPEh; TWUxO: if (empty($cate_id)) { goto QwAK7; } goto BGBm2; e7Fi5: if (empty($question)) { goto XHxhw; } goto Q6I7y; C9L_f: if (empty($easy)) { goto cg2NN; } goto SZilz; aFPEh: if (!($type == 2)) { goto HSKXv; } goto XLNG1; pFJ6Q: $question = $_GPC['question']; goto e7Fi5; SZilz: $where .= ' AND easy=' . $easy; goto rpX5r; Gb5vR: QwAK7: goto pFJ6Q; rpX5r: cg2NN: goto C3nGZ; DT__R: $cate_id = $_GPC['cate_id']; goto TWUxO; C3nGZ: $type = $_GPC['type']; goto ouOgR; HqlhZ: $where = ' weid=' . $_W['uniacid']; goto DT__R; YmR2k: $cate = pdo_getall('hc_question_type', array("weid" => $_W['uniacid'], "pid" => 0)); goto xTQRw; XLNG1: $questions = pdo_getcolumn('hc_dan', array("id" => $id, "weid" => $_W['uniacid']), array("quesids")); goto ldyTm; ouOgR: if (!($type == 1)) { goto oe9rR; } goto b5rVo; aGtE8: $easy = $_GPC['easy']; goto C9L_f; xTQRw: foreach ($cate as $key => $val) { $cate[$key]['children'] = pdo_getall('hc_question_type', array("pid" => $val['id'])); bvrlQ: } goto dRsPM; gHw7Z: $count = pdo_fetchcolumn('SELECT count(*) FROM ' . tablename('hc_question') . ' WHERE ' . $where . ''); goto L2RdN; a_YiV: $id = $_GPC['id']; goto HqlhZ; LOygv: $questions = pdo_getcolumn('hc_dan', array("id" => $id, "weid" => $_W['uniacid']), array("quesids")); goto yla3U; ldyTm: $where .= ' AND id not in(' . $questions . ')'; goto w3xZ6; dRsPM: pZizI: goto LOygv; g9JXB: } public function doWebSelectlibajax() { goto ARMh9; UskcP: foreach ($list as $key => $val) { goto pUE5R; iYff2: XJCek: goto ahXgD; sCubc: if ($val['easy'] == 1) { goto cZqo0; } goto V0Sea; WTqXz: goto u3iqP; goto il8cL; VFTcT: zJ2yq: goto uFsYx; ahXgD: $list[$key]['easy'] = ''; goto M1d3K; bbf20: foreach ($ques as $k => $v) { goto pEqZD; pEqZD: if (!($val['id'] == $v)) { goto W392A; } goto lIAMO; lIAMO: $list[$key]['status'] = 1; goto GqZZT; o5IiA: oKYbW: goto kdUsa; GqZZT: W392A: goto o5IiA; kdUsa: } goto x0lxX; x0lxX: zpdw3: goto VFTcT; PCnsJ: $list[$key]['easy'] = ''; goto CeSCd; mIUiy: pgql_: goto bDYrI; M1d3K: goto u3iqP; goto mIUiy; bDYrI: $list[$key]['easy'] = ''; goto d2ycF; V0Sea: if ($val['easy'] == 2) { goto XJCek; } goto dFOth; il8cL: cZqo0: goto PCnsJ; pUE5R: $list[$key]['type_id'] = pdo_getcolumn('hc_question_type', array("id" => $val['type_id']), array("name")); goto sCubc; CeSCd: goto u3iqP; goto iYff2; d2ycF: u3iqP: goto bbf20; dFOth: if ($val['easy'] == 3) { goto pgql_; } goto WTqXz; uFsYx: } goto spfQA; K09uk: $where .= ' AND type_id=' . $cate_id; goto ga4Vi; iv1ZC: $questions = pdo_getcolumn('hc_dan', array("id" => $id, "weid" => $_W['uniacid']), array("quesids")); goto GYI4U; zabKo: if ($type == 2) { goto MeaG1; } goto eW5gO; wmoRS: qJMSf: goto xTT1Y; eW5gO: if (empty($yxques)) { goto hA5fv; } goto YWMGu; TiTGY: To6Cy: goto I_hJP; V3WCI: rfdl7: goto wmoRS; l4Wzw: m0gcx: goto hYCGU; Bqdl9: $page = pagination($total, $pageindex, $pagesize); goto H0tj7; uqPme: $id = $_GPC['id']; goto f7OBl; LxzNB: $where .= ' AND id in(' . $questions . ')'; goto ihsf7; tkooB: KqXIr: goto sFVgj; RiJEj: $where .= " AND question like=%{$question}%"; goto tkooB; yijDY: $pagesize = max(100, intval($_GPC['pagenum'])); goto eS2wl; vrvBV: $pageindex = max(1, intval($_GPC['page'])); goto yijDY; Aj8Q5: $where .= ' AND id not in(' . $questions . ')'; goto GSwU7; I_hJP: $yxquestions = pdo_getall('hc_dan', $dataarr, array("quesids")); goto B624F; GYI4U: if (!empty($questions)) { goto lGc8U; } goto a88XT; Q4OT2: if (empty($easy)) { goto ueHGK; } goto jJHOo; Q2ah4: $questions = $questions . ',' . $yxques; goto V3WCI; sFVgj: $easy = $_GPC['easy']; goto Q4OT2; ZQSlD: $dataarr = array("weid" => $_W['uniacid']); goto JYqyr; bHyTi: pJUMl: goto isCTD; ga4Vi: RBluM: goto GfgtV; V_drj: $yxques = ''; goto xlq3M; DZHjd: $list = pdo_fetchall('SELECT * FROM ' . tablename('hc_question') . ' WHERE ' . $where . ' ORDER BY id ASC LIMIT ' . $p . ',' . $pagesize); goto Bqdl9; Gu6O7: $yxques = implode(',', $yxarr); goto l4Wzw; nTQnX: foreach ($yxquestions as $key => $val) { goto hYw85; hYw85: if (empty($val['quesids'])) { goto vjne1; } goto x4r0l; x4r0l: $yxarr[$key] = $val['quesids']; goto QQoH3; e2cRV: ZAz4M: goto gZ1yb; QQoH3: vjne1: goto e2cRV; gZ1yb: } goto TrjE2; pFI8p: if (empty($cate_id)) { goto RBluM; } goto K09uk; yd71E: exit(json_encode(array("code" => 1, "msg" => "", "data" => $list, "id" => $id))); goto H_4CV; H0tj7: $questions = pdo_getcolumn('hc_dan', array("id" => $id, "weid" => $_W['uniacid']), array("quesids")); goto bPrPa; DyRsf: if (empty($question)) { goto KqXIr; } goto RiJEj; GfgtV: $question = $_GPC['question']; goto DyRsf; L0BaI: gSX51: goto T2i1S; G137i: if (empty($yxques)) { goto rfdl7; } goto Q2ah4; ihsf7: kf1AC: goto vrvBV; ARMh9: global $_GPC, $_W; goto uqPme; xlq3M: if (!empty($id)) { goto whOZO; } goto ZQSlD; C40BI: $p = ($pageindex - 1) * $pagesize; goto DZHjd; cz10S: $dataarr = array("id !=" => $id, "weid" => $_W['uniacid']); goto TiTGY; GXYD4: lGc8U: goto G137i; n56sA: goto qJMSf; goto GXYD4; eS2wl: $total = pdo_fetchcolumn('SELECT count(*) FROM ' . tablename('hc_question') . ' WHERE ' . $where . ''); goto C40BI; TxHx2: whOZO: goto cz10S; spfQA: gFu83: goto yd71E; a88XT: $questions = $yxques; goto n56sA; yQGrC: hA5fv: goto bB0k4; hYCGU: $type = $_GPC['type']; goto oZ3Si; JYqyr: goto To6Cy; goto TxHx2; TrjE2: UwrS3: goto Gu6O7; xTT1Y: if (empty($questions)) { goto QFCpA; } goto Aj8Q5; bPrPa: $ques = explode(',', $questions); goto UskcP; jJHOo: $where .= ' AND easy=' . $easy; goto rDYF1; GSwU7: QFCpA: goto L0BaI; ZuhBA: MeaG1: goto iv1ZC; oZ3Si: if ($type == 1) { goto pJUMl; } goto zabKo; T2i1S: goto kf1AC; goto bHyTi; isCTD: $questions = pdo_getcolumn('hc_dan', array("id" => $id, "weid" => $_W['uniacid']), array("quesids")); goto LxzNB; bZYso: $cate_id = $_GPC['cate_id']; goto pFI8p; bB0k4: goto gSX51; goto ZuhBA; YWMGu: $where .= ' AND id not in(' . $yxques . ')'; goto yQGrC; B624F: if (empty($yxquestions)) { goto m0gcx; } goto nTQnX; f7OBl: $where = ' weid=' . $_W['uniacid']; goto bZYso; rDYF1: ueHGK: goto V_drj; H_4CV: } public function doWebLibrary() { goto mzmz2; biJDt: $count = pdo_getcolumn('hc_question', $where, array("count(*)")); goto rAqpM; sbi9s: zo35_: goto hzY2e; rAqpM: $nums = ceil($count / $pagesize); goto JZlfX; plDNO: HEHUG: goto fbgCS; qmdcy: $question = $_GPC['question']; goto L523K; fbgCS: $easy = $_GPC['easy']; goto FBi8c; sw3Xe: $where['question like'] = '%' . $question . '%'; goto plDNO; FBi8c: if (empty($easy)) { goto RB_mN; } goto SvGpV; MgaXp: $cate_id = $_GPC['cate_id']; goto Sz4eK; hTTFl: $pagesize = 15; goto biJDt; mzmz2: global $_GPC, $_W; goto QNFUY; sipQ8: fEscp: goto qmdcy; QNFUY: $where['weid'] = $_W['uniacid']; goto MgaXp; JZlfX: $cate = pdo_getall('hc_question_type', array("weid" => $_W['uniacid'], "pid" => 0)); goto YpT8z; hzY2e: include $this->template('setting/library'); goto ZQ7SG; YpT8z: foreach ($cate as $key => $val) { $cate[$key]['children'] = pdo_getall('hc_question_type', array("pid" => $val['id'])); rmp5Q: } goto sbi9s; fl2kB: RB_mN: goto hTTFl; L523K: if (empty($question)) { goto HEHUG; } goto sw3Xe; SvGpV: $where['easy'] = $easy; goto fl2kB; Nps8M: $where['type_id'] = $cate_id; goto sipQ8; Sz4eK: if (empty($cate_id)) { goto fEscp; } goto Nps8M; ZQ7SG: } public function doWebLibraryajax() { goto HsL05; wtbYo: $where['weid'] = $_W['uniacid']; goto t35HT; IZ29e: $where['easy'] = $easy; goto FAF9z; FAF9z: iuySl: goto NMtoK; t35HT: $list = pdo_getslice('hc_question', $where, array($pageindex, $pagesize), $total, array(), '', 'id desc'); goto oL6Ps; CiWFZ: $pageindex = max(1, intval($_POST['page'])); goto YRF2N; oL6Ps: foreach ($list as $key => $val) { goto vXT8G; fOaeo: if ($val['easy'] == 2) { goto C6W6F; } goto pGfxM; G1WMj: ssCTO: goto J1W5_; OYKxj: $list[$key]['easy'] = ''; goto PdLq9; pGfxM: if ($val['easy'] == 3) { goto b8LMQ; } goto BfqUf; unA0l: goto bdwCm; goto wS8GA; vXT8G: $list[$key]['type_id'] = pdo_getcolumn('hc_question_type', array("id" => $val['type_id']), array("name")); goto cJ_rQ; sdNlh: $list[$key]['easy'] = ''; goto C5lI3; XPSGq: i1xtw: goto ituim; wS8GA: C6W6F: goto sdNlh; cJ_rQ: if ($val['easy'] == 1) { goto i1xtw; } goto fOaeo; PdLq9: bdwCm: goto G1WMj; C5lI3: goto bdwCm; goto RwEsG; BfqUf: goto bdwCm; goto XPSGq; RwEsG: b8LMQ: goto OYKxj; ituim: $list[$key]['easy'] = ''; goto unA0l; J1W5_: } goto packd; HsL05: global $_GPC, $_W; goto CiWFZ; vd8oX: if (empty($easy)) { goto iuySl; } goto IZ29e; juof1: $where['question like'] = '%' . $question . '%'; goto enuzm; fFvkU: IHctA: goto chgcK; chgcK: $question = $_POST['question']; goto r6T60; nbA3L: if (empty($cate_id)) { goto IHctA; } goto aE4Jl; r6T60: if (empty($question)) { goto WMbDA; } goto juof1; enuzm: WMbDA: goto yx_Ch; jEPkb: exit(json_encode(array("code" => 1, "msg" => "", "data" => $list))); goto W90oW; YRF2N: $cate_id = $_POST['cate_id']; goto nbA3L; yx_Ch: $easy = $_POST['easy']; goto vd8oX; aE4Jl: $where['type_id'] = $cate_id; goto fFvkU; packd: wU5GA: goto jEPkb; NMtoK: $pagesize = 15; goto wtbYo; W90oW: } public function doWebLibraryadd() { goto RTkU8; MoVdf: foreach ($cate as $key => $val) { $cate[$key]['children'] = pdo_getall('hc_question_type', array("pid" => $val['id'])); L6NZ4: } goto CrHHB; dfhp9: XjXwe: goto ftGZG; DHq0K: include $this->template('setting/libraryadd'); goto aBp4s; ljWrz: if (empty($id)) { goto XjXwe; } goto HDPTV; HDPTV: $info = pdo_get('hc_question', array("weid" => $_W['uniacid'], "id" => $id)); goto dfhp9; CrHHB: FH01o: goto DHq0K; RTkU8: global $_GPC, $_W; goto J6mIP; ftGZG: $cate = pdo_getall('hc_question_type', array("weid" => $_W['uniacid'], "pid" => 0)); goto MoVdf; J6mIP: $id = $_GPC['id']; goto ljWrz; aBp4s: } public function doWebLibraryimport() { goto VW0_I; a80Ht: $cate = pdo_getall('hc_question_type', array("weid" => $_W['uniacid'], "pid" => 0)); goto bdvZh; VW0_I: global $_GPC, $_W; goto a80Ht; bdvZh: foreach ($cate as $key => $val) { $cate[$key]['children'] = pdo_getall('hc_question_type', array("pid" => $val['id'])); A22vw: } goto QgQfd; myeMZ: include $this->template('setting/libraryimport'); goto fB1Y9; QgQfd: LtFVN: goto myeMZ; fB1Y9: } public function doWebLibrarynotice() { global $_GPC, $_W; include $this->template('setting/librarynotice'); } public function doWebLibrarydo() { goto Ho2vv; BVIFn: exit(json_encode(array("code" => 0, "msg" => ""))); goto i_GH7; nNpUG: goto obRYX; goto xpN6q; yEiuX: if (!$res) { goto NGSdG; } goto nayrQ; WYN0Q: goto tJj43; goto VbMrR; HFcQe: if ($res) { goto UEYKd; } goto XW7z2; engE8: $id = $_GPC['id']; goto vvhcw; GQQSc: $data['weid'] = $_W['uniacid']; goto lFa_D; QEBsb: $data['type_id'] = $_GPC['type_id']; goto jBO14; p0Vhz: tJj43: goto dY2p0; zOGfM: load()->library('phpexcel/PHPExcel'); goto x_3h9; n7ut1: $objReader = \PHPExcel_IOFactory::createReader('Excel5'); goto dXJSr; feYMB: goto PO1N7; goto ONp0V; Xd9Il: if (!empty($_GPC['type_id'])) { goto rDHiM; } goto g2Pbg; AEd9U: WPRP7: goto gdHG1; KSFLe: exit(json_encode(array("code" => 0, "msg" => ""))); goto GC2KG; w_x0u: $i++; goto laSUN; x_3h9: $path = IA_ROOT . $_GPC['excels']; goto n7ut1; HeYyF: exit(json_encode(array("code" => 1, "msg" => ""))); goto OVUF2; CCiDt: $data['answer_b'] = $objPHPExcel->getActiveSheet()->getCell('C' . $i)->getValue(); goto oV5UY; wLMEt: if (!($i <= $highestRow)) { goto VxpC6; } goto QEBsb; gdHG1: $res = pdo_insert('hc_question', $data); goto n4Dz4; ixj1W: obRYX: goto qPhD3; WmcCM: $i = 2; goto zsVKZ; g2Pbg: exit(json_encode(array("code" => 0, "msg" => ""))); goto DLOKT; lFa_D: $data['question'] = $objPHPExcel->getActiveSheet()->getCell('A' . $i)->getValue(); goto MZxy7; WpUZw: $highestRow = $sheet->getHighestRow(); goto WmcCM; n4QKm: goto yF9tR; goto WTurG; Hbjey: xUdok: goto nThNf; bxbc_: $data['answer_d'] = $objPHPExcel->getActiveSheet()->getCell('E' . $i)->getValue(); goto RwlL1; VbMrR: wP4Nw: goto uT3js; Ho2vv: global $_GPC, $_W; goto engE8; XYLsa: if (!empty($data['question'])) { goto WPRP7; } goto FdgEv; dY2p0: if (empty($res)) { goto Bypmq; } goto YEDhJ; jBO14: $data['easy'] = $_GPC['easy']; goto GQQSc; uT3js: $res = pdo_update('hc_question', $data, array("id" => $id)); goto p0Vhz; xpN6q: UEYKd: goto RENhe; qPhD3: yF9tR: goto FgeP6; kdVHY: VxpC6: goto HFcQe; MZxy7: $data['answer_a'] = $objPHPExcel->getActiveSheet()->getCell('B' . $i)->getValue(); goto CCiDt; ONp0V: a_4oO: goto HeYyF; XW7z2: exit(json_encode(array("code" => 0, "msg" => ""))); goto nNpUG; TQB42: $res = pdo_insert('hc_question', $data); goto WYN0Q; DLOKT: rDHiM: goto oPE4t; n4Dz4: Xk2yq: goto w_x0u; GAOJL: if ($_GPC['act'] == 'import') { goto JuDM7; } goto OPGh_; XL6gX: Bypmq: goto KSFLe; laSUN: goto hRN6r; goto kdVHY; VX0Jg: exit(json_encode(array("code" => 0, "msg" => ""))); goto UWJWp; zFi_P: if (!empty($id)) { goto wP4Nw; } goto TQB42; yYlRA: NGSdG: goto VX0Jg; OPGh_: $data = array("question" => $_GPC['question'], "type_id" => $_GPC['type_id'], "answer_a" => $_GPC['answer_a'], "answer_b" => $_GPC['answer_b'], "answer_c" => $_GPC['answer_c'], "answer_d" => $_GPC['answer_d'], "answer" => $_GPC['answer'], "easy" => $_GPC['easy'], "weid" => $_W['uniacid'], "createtime" => time()); goto zFi_P; LWazl: if ($res) { goto a_4oO; } goto Ec3Ph; vvhcw: if ($_GPC['act'] == 'del') { goto xUdok; } goto BbzYH; nThNf: $res = pdo_delete('hc_question', array("id" => $id)); goto yEiuX; BbzYH: if ($_GPC['act'] == 'alldel') { goto PVIHl; } goto GAOJL; oV5UY: $data['answer_c'] = $objPHPExcel->getActiveSheet()->getCell('D' . $i)->getValue(); goto bxbc_; FdgEv: goto VxpC6; goto AEd9U; RwlL1: $data['answer'] = $objPHPExcel->getActiveSheet()->getCell('F' . $i)->getValue(); goto zGA29; WTurG: JuDM7: goto Xd9Il; GC2KG: goto yF9tR; goto Hbjey; fROJV: $ids = $_GPC['ids']; goto TKB3j; nayrQ: exit(json_encode(array("code" => 1, "msg" => ""))); goto yYlRA; YEDhJ: exit(json_encode(array("code" => 1, "msg" => ""))); goto XL6gX; Ec3Ph: exit(json_encode(array("code" => 0, "msg" => ""))); goto feYMB; TKB3j: $res = pdo_query('DELETE FROM ' . tablename('hc_question') . ' WHERE id in(' . $ids . ')'); goto LWazl; zsVKZ: hRN6r: goto wLMEt; RENhe: exit(json_encode(array("code" => 1, "msg" => ""))); goto ixj1W; UWJWp: goto yF9tR; goto osS7z; OVUF2: PO1N7: goto n4QKm; osS7z: PVIHl: goto fROJV; dXJSr: $objPHPExcel = $objReader->load($path, $encode = 'utf-8'); goto O3OlW; zGA29: $data['createtime'] = time(); goto XYLsa; O3OlW: $sheet = $objPHPExcel->getSheet(0); goto WpUZw; oPE4t: if (!empty($_GPC['easy'])) { goto jW0xA; } goto BVIFn; i_GH7: jW0xA: goto zOGfM; FgeP6: } public function doWebCategory() { goto Gm0br; Fd4D6: include $this->template('setting/category'); goto iIdvc; YGfzD: $pagesize = 10; goto zo6Y7; Gm0br: global $_GPC, $_W; goto L7dl5; zo6Y7: $count = pdo_getcolumn('hc_question_type', $where, array("count(*)")); goto pkr8K; pkr8K: $nums = ceil($count / $pagesize); goto Fd4D6; L7dl5: $where['weid'] = $_W['uniacid']; goto YGfzD; iIdvc: } public function doWebCategoryajax() { goto BT_zt; xVUi8: foreach ($list as $key => $val) { goto lGvBa; CWP8h: if ($val['pid'] == '0') { goto ZzLAd; } goto pwuRS; a1CtX: A0qLv: goto qJcpr; wSyaX: ZzLAd: goto NFSCu; pwuRS: $list[$key]['pid'] = pdo_getcolumn('hc_question_type', array("id" => $val['pid']), array("name")); goto CweBq; CweBq: goto A0qLv; goto wSyaX; NFSCu: $list[$key]['pid'] = ''; goto a1CtX; qJcpr: FaD2W: goto f0LYj; lGvBa: $list[$key]['createtime'] = date('Y-m-d H:i', $val['createtime']); goto CWP8h; f0LYj: } goto BWrcQ; BWrcQ: mPHuj: goto RF7kj; Xc8Rx: $list = pdo_getslice('hc_question_type', $where, array($pageindex, $pagesize), $total, array(), '', 'sort asc'); goto xVUi8; RF7kj: exit(json_encode(array("code" => 1, "msg" => "", "data" => $list))); goto RJqjj; VF_0_: $pagesize = 10; goto rNQ1b; BT_zt: global $_GPC, $_W; goto MjJfV; MjJfV: $pageindex = max(1, intval($_POST['page'])); goto VF_0_; rNQ1b: $where['weid'] = $_W['uniacid']; goto Xc8Rx; RJqjj: } public function doWebCategoryadd() { goto mpE82; hdhV6: if (empty($id)) { goto sh828; } goto M3Tw4; mpE82: global $_GPC, $_W; goto umxZz; m7Dqx: include $this->template('setting/categoryadd'); goto Oyi7b; Y92Ae: sh828: goto bvQXC; M3Tw4: $info = pdo_get('hc_question_type', array("weid" => $_W['uniacid'], "id" => $id)); goto Y92Ae; umxZz: $id = $_GPC['id']; goto hdhV6; bvQXC: $list = pdo_getall('hc_question_type', array("weid" => $_W['uniacid'], "pid" => 0)); goto m7Dqx; Oyi7b: } public function doWebCategoryup() { goto YYMEI; RLUlM: $list = json_decode($info, true); goto Zh6kQ; YYMEI: global $_GPC, $_W; goto JOgOn; QxOCa: $info = pdo_getcolumn('hc_question_type', array("weid" => $_W['uniacid'], "id" => $id), array("upgrade")); goto RLUlM; JOgOn: $id = $_GPC['id']; goto HzPUb; Zh6kQ: VfEy1: goto Fou4R; Fou4R: include $this->template('setting/categoryup'); goto ECjFJ; HzPUb: if (empty($id)) { goto VfEy1; } goto QxOCa; ECjFJ: } public function doWebCategorydo() { goto nPYt2; V2Y6g: $res = pdo_update('hc_question_type', array("upgrade" => $upgrade), array("id" => $id)); goto u_KRM; ziOTA: $upgrade = htmlspecialchars_decode($upgrade, ENT_QUOTES); goto V2Y6g; ptcLY: if ($_GPC['act'] == 'del') { goto rSq3D; } goto O025z; KWPD3: $data = array("name" => $_POST['name'], "thumbs" => $_POST['thumbs'], "pid" => $_POST['pid'], "desc1" => $_POST['desc1'], "desc2" => $_POST['desc2'], "sort" => $_POST['sort'], "weid" => $_W['uniacid'], "createtime" => time()); goto HV1yb; JqFg8: $res = pdo_update('hc_question_type', $data, array("id" => $id)); goto ylfvy; oy6Gi: exit(json_encode(array("code" => 0, "msg" => ""))); goto hb122; jWFq0: $res = pdo_insert('hc_question_type', $data); goto y2xES; eXzSC: s9p8V: goto cE4Wh; G9b4J: $id = $_GPC['id']; goto ptcLY; u_KRM: if (!$res) { goto jlOYv; } goto XGAqC; zMV8l: if (empty($res)) { goto ruuz5; } goto YPaoK; gpvOU: exit(json_encode(array("code" => 0, "msg" => ""))); goto y0G5P; xZS0l: if (!$res) { goto Mi5AN; } goto gRCyF; av61b: OCFbd: goto JqFg8; AedVD: jlOYv: goto oy6Gi; O025z: if ($_GPC['act'] == 'upgrade') { goto s9p8V; } goto KWPD3; y7UPV: Mi5AN: goto sXa7q; nPYt2: global $_GPC, $_W; goto G9b4J; HV1yb: if (!empty($id)) { goto OCFbd; } goto jWFq0; fAa2V: ruuz5: goto gpvOU; CjBs1: $res = pdo_delete('hc_question_type', array("id" => $id, "weid" => $_W['uniacid'])); goto k6nwj; WlaRi: goto ul3na; goto eXzSC; y2xES: goto toYa_; goto av61b; cE4Wh: $upgrade = $_GPC['upgrade']; goto ziOTA; YPaoK: exit(json_encode(array("code" => 1, "msg" => ""))); goto fAa2V; ylfvy: toYa_: goto zMV8l; hb122: ul3na: goto Xjik5; gRCyF: exit(json_encode(array("code" => 1, "msg" => ""))); goto y7UPV; y0G5P: goto ul3na; goto HaAHu; k6nwj: pdo_delete('hc_question', array("type_id" => $id, "weid" => $_W['uniacid'])); goto xZS0l; HaAHu: rSq3D: goto CjBs1; sXa7q: exit(json_encode(array("code" => 0, "msg" => ""))); goto WlaRi; XGAqC: exit(json_encode(array("code" => 1, "msg" => ""))); goto AedVD; Xjik5: } public function doWebProp() { goto VL9oM; rp6Gr: $where['weid'] = $_W['uniacid']; goto XjVf5; Ovwsk: include $this->template('prop/prop'); goto fE4Zh; VL9oM: global $_GPC, $_W; goto qAM63; XjVf5: $pagesize = 15; goto XE3U8; dMLc4: $where['type'] = $type; goto H0TdK; H0TdK: s_2gq: goto rp6Gr; DkCWa: $nums = ceil($count / $pagesize); goto Ovwsk; cP0iA: Vychw: goto HdSyh; XE3U8: $count = pdo_getcolumn('hc_prop', $where, array("count(*)")); goto DkCWa; qAM63: $type = $_GPC['type']; goto HmFw1; LNmkp: $where['type'] = 0; goto cP0iA; HdSyh: goto s_2gq; goto LQuve; zu0ZH: if (!($type == 0)) { goto Vychw; } goto LNmkp; HmFw1: if (!empty($type) && $type > 0) { goto iOc8G; } goto zu0ZH; LQuve: iOc8G: goto dMLc4; fE4Zh: } public function doWebPropajax() { goto aHCFL; GA48a: if (!($type == 0)) { goto kNQpe; } goto J7WPP; Utl3t: if (!empty($type) && $type > 0) { goto uxNJl; } goto GA48a; J7WPP: $where['type'] = 0; goto d8SWU; GPw5k: exit(json_encode(array("code" => 1, "msg" => "", "data" => $list))); goto RaDCs; ttpjU: $list = pdo_getslice('hc_prop', $where, array($pageindex, $pagesize), $total, array(), '', 'id desc'); goto JWi3k; TQmmp: $where['weid'] = $_W['uniacid']; goto ttpjU; d8SWU: kNQpe: goto pAj2a; UYpdn: $type = $_POST['type']; goto Utl3t; IB6wD: $pageindex = max(1, intval($_POST['page'])); goto hcD3n; ZXPtz: uxNJl: goto TRU6o; pAj2a: goto WxRq5; goto ZXPtz; vlMM5: ppvjP: goto GPw5k; TRU6o: $where['type'] = $type; goto OKIl5; OKIl5: WxRq5: goto IB6wD; JWi3k: foreach ($list as $key => $val) { goto nhZSC; nhZSC: $list[$key]['thumb'] = $_W['attachurl'] . $val['thumb']; goto qhq70; QTZKy: B7TA2: goto crnhw; qhq70: $list[$key]['shop'] = $val['shop'] == 1 ? '' : ''; goto bNXg9; bNXg9: $list[$key]['give'] = $val['give'] == 1 ? '' : ''; goto QTZKy; crnhw: } goto vlMM5; aHCFL: global $_GPC, $_W; goto UYpdn; hcD3n: $pagesize = 15; goto TQmmp; RaDCs: } public function doWebPropadd() { goto lhcXk; I9twp: $info = pdo_get('hc_prop', array("weid" => $_W['uniacid'], "id" => $id)); goto GrwmI; GrwmI: $info['res'] = pdo_fetchall('SELECT * FROM ' . tablename('hc_prop') . ' WHERE id in(' . $info['remark'] . ') AND weid=:weid', array(":weid" => $_W['uniacid'])); goto o_X47; EGxvq: if (empty($id)) { goto VVy0v; } goto I9twp; kZdEE: JoSO2: goto amyPu; o_X47: foreach ($info['res'] as $key => $val) { $info['res'][$key]['thumb'] = $_W['attachurl'] . $val['thumb']; QMG_H: } goto kZdEE; BLUB0: $id = $_GPC['id']; goto EGxvq; lhcXk: global $_GPC, $_W; goto BLUB0; amyPu: VVy0v: goto xDniB; xDniB: include $this->template('prop/propadd'); goto UYbEm; UYbEm: } public function doWebPropdo() { goto t7aIB; l9GrH: exit(json_encode(array("code" => 0, "msg" => ""))); goto wCuZ4; hR1sj: $res = pdo_delete('hc_prop', array("id" => $id)); goto AlsEA; eCNDy: if (!(!empty($_GPC['jb']) && !empty($_GPC['cc']))) { goto QXF4A; } goto bilvD; PAEJ9: if (empty($res)) { goto lsUE7; } goto S7Ehe; CtzTw: $ids = $_GPC['ids']; goto KQTW5; qhzj5: $res = pdo_get('hc_prop', array("weid" => $_W['uniacid'], "type" => 6, "sj >" => 0, "jb >" => 0)); goto Jc3w4; CdFAT: exit(json_encode(array("code" => 1, "msg" => ""))); goto vVFdS; AlsEA: if (!$res) { goto M26P4; } goto CdFAT; ECexI: if (empty($res)) { goto SseYv; } goto xoF4a; QQ5jz: InqXm: goto kcuKD; EiZHJ: exit(json_encode(array("code" => 0, "msg" => ""))); goto JStiL; dony8: if (!($_GPC['type'] == 7)) { goto bDyYr; } goto UqGxX; o5Kij: if (!(!empty($_GPC['jy']) && !empty($_GPC['sj']))) { goto tP2gd; } goto Mpy2S; ZXuHF: QXF4A: goto yv8PP; ZYomW: if (!(!empty($_GPC['jb']) && !empty($_GPC['sj']))) { goto O5kqX; } goto qhzj5; uJXug: exit(json_encode(array("code" => 0, "msg" => ""))); goto ChVSJ; XKDHw: wb2kX: goto K__F2; eL6_7: if (!($_GPC['type'] == 5)) { goto sct1d; } goto eCNDy; oNAmv: goto GQDOE; goto F4mTM; KQTW5: $res = pdo_fetchall('SELECT * FROM ' . tablename('hc_prop') . ' WHERE id in(' . $ids . ') AND weid=:weid', array(":weid" => $_W['uniacid'])); goto jVyGG; CXA4q: OZPRL: goto jZLcK; n1UmH: O5kqX: goto o5Kij; ub9KT: if ($_GPC['type'] == 3) { goto tQqhd; } goto guIOh; EG9uK: bDyYr: goto ub9KT; guIOh: $jb = $_GPC['jb']; goto oNAmv; PpNIJ: IuugU: goto ECexI; FzEVV: $res = pdo_get('hc_prop', array("weid" => $_W['uniacid'], "type" => 7, "cc >" => 0, "jf >" => 0)); goto PmCj0; t7aIB: global $_GPC, $_W; goto inCN_; Cjt5r: if (!(!empty($res) && $res['id'] != $id)) { goto hh2LN; } goto EiZHJ; Mpy2S: $res = pdo_get('hc_prop', array("weid" => $_W['uniacid'], "type" => 6, "sj >" => 0, "jy >" => 0)); goto xDygi; bilvD: $res = pdo_get('hc_prop', array("weid" => $_W['uniacid'], "type" => 5, "cc >" => 0, "jb >" => 0)); goto KQecT; M3luD: goto Rtwez; goto KZonn; K__F2: tP2gd: goto gxWU2; iGkKx: I2zRr: goto ZXuHF; udyfY: if (!($_GPC['type'] == 6)) { goto dIiWV; } goto ZYomW; jVyGG: foreach ($res as $key => $val) { $res[$key]['thumb'] = $_W['attachurl'] . $val['thumb']; cVkIM: } goto YcobN; yv8PP: if (!(!empty($_GPC['jy']) && !empty($_GPC['cc']))) { goto InqXm; } goto hZPYc; B9ikW: exit(json_encode(array("code" => 0, "msg" => ""))); goto bJ0U1; TZOyo: Zu2BR: goto EG9uK; gxWU2: dIiWV: goto dony8; bJ0U1: fX6VK: goto n1UmH; nl9qq: aN1uL: goto CtzTw; hZPYc: $res = pdo_get('hc_prop', array("weid" => $_W['uniacid'], "type" => 5, "cc >" => 0, "jy >" => 0)); goto Cjt5r; KZonn: Up97A: goto hR1sj; F4mTM: tQqhd: goto M54nu; KQecT: if (!(!empty($res) && $res['id'] != $id)) { goto I2zRr; } goto Fyf_4; Jc3w4: if (!(!empty($res) && $res['id'] != $id)) { goto fX6VK; } goto B9ikW; xoF4a: exit(json_encode(array("code" => 1, "msg" => ""))); goto o1dr7; xDygi: if (!(!empty($res) && $res['id'] != $id)) { goto wb2kX; } goto RqAzD; UqGxX: if (!(!empty($_GPC['jf']) && !empty($_GPC['cc']))) { goto Zu2BR; } goto FzEVV; YcobN: Aj5uj: goto PAEJ9; ChVSJ: goto Rtwez; goto nl9qq; Fyf_4: exit(json_encode(array("code" => 0, "msg" => ""))); goto iGkKx; o1dr7: SseYv: goto yDwts; M54nu: $jb = $_GPC['jbs']; goto axtV6; hkNp3: exit(json_encode(array("code" => 0, "msg" => ""))); goto rNogX; x7VTa: if (!empty($id)) { goto OZPRL; } goto rZcUz; jZLcK: $res = pdo_update('hc_prop', $data, array("id" => $id)); goto PpNIJ; wCuZ4: Rtwez: goto K5pcg; oWiTQ: lsUE7: goto l9GrH; RqAzD: exit(json_encode(array("code" => 0, "msg" => ""))); goto XKDHw; rZcUz: $res = pdo_insert('hc_prop', $data); goto vTDyB; vVFdS: M26P4: goto uJXug; JRvPQ: if ($_GPC['act'] == 'del') { goto Up97A; } goto shAPR; rNogX: lJ3sM: goto TZOyo; yDwts: exit(json_encode(array("code" => 0, "msg" => ""))); goto M3luD; JStiL: hh2LN: goto QQ5jz; shAPR: if ($_GPC['act'] == 'ajaxlook') { goto aN1uL; } goto eL6_7; axtV6: GQDOE: goto GDsTq; S7Ehe: exit(json_encode(array("code" => 1, "msg" => "", "data" => $res))); goto oWiTQ; GDsTq: $data = array("name" => $_GPC['name'], "thumb" => $_GPC['thumbs'], "cc" => $_GPC['cc'], "sj" => $_GPC['sj'], "jb" => $jb, "jy" => $_GPC['jy'], "jf" => $_GPC['jf'], "give" => $_GPC['give'], "price" => $_GPC['price'], "remark" => implode(',', array_unique(explode(',', $_GPC['remark']))), "type" => $_GPC['type'], "shop" => $_GPC['shop'], "dan" => $_GPC['dan'], "randnum" => $_GPC['randnum'], "desc" => $_GPC['desc'], "sort" => $_GPC['sort'], "newthumb" => $_GPC['newthumbs'], "usethumb" => $_GPC['usethumb'], "weid" => $_W['uniacid']); goto x7VTa; PmCj0: if (!(!empty($res) && $res['id'] != $id)) { goto lJ3sM; } goto hkNp3; kcuKD: sct1d: goto udyfY; inCN_: $id = $_GPC['id']; goto JRvPQ; vTDyB: goto IuugU; goto CXA4q; K5pcg: } public function doWebSelectprop() { goto z7mYe; WhIPa: jFvS6: goto iYN_E; iYN_E: $where['weid'] = $_W['uniacid']; goto gyufr; z7mYe: global $_GPC, $_W; goto dzFEy; ckiRW: $where['type'] = $types; goto WhIPa; BiFgl: $count = pdo_getcolumn('hc_prop', $where, array("count(*)")); goto pp7xy; j8Qv4: if (empty($types)) { goto jFvS6; } goto ckiRW; pp7xy: $nums = ceil($count / $pagesize); goto ezYzN; dzFEy: $id = $_GPC['id']; goto Ns3zl; gyufr: $pagesize = 15; goto BiFgl; Ns3zl: $types = $_GPC['types']; goto j8Qv4; ezYzN: include $this->template('prop/selectprop'); goto hAuSs; hAuSs: } public function doWebSelectpropajax() { goto VcCjA; UKuXR: $list = pdo_getslice('hc_prop', $where, array($pageindex, $pagesize), $total, array(), '', 'id desc'); goto zPFkq; xnKds: if (empty($types)) { goto s_Fvy; } goto OEIQ0; SLIFF: exit(json_encode(array("code" => 1, "msg" => "", "data" => $list, "id" => $id))); goto hjJdG; uF358: s_Fvy: goto NFToX; VcCjA: global $_GPC, $_W; goto GdZIJ; OEIQ0: $where['type'] = $types; goto uF358; oBeSA: $id = $_POST['id']; goto hlYUm; hlYUm: $types = $_POST['types']; goto xnKds; zPFkq: foreach ($list as $key => $val) { $list[$key]['thumb'] = $_W['attachurl'] . $val['thumb']; CmN3e: } goto JK14c; GdZIJ: $pageindex = max(1, intval($_POST['page'])); goto oBeSA; JK14c: BfZkM: goto SLIFF; UwovE: $where['weid'] = $_W['uniacid']; goto UKuXR; NFToX: $pagesize = 15; goto UwovE; hjJdG: } public function doWebUser() { goto lDO2l; j6iaG: YSyz7: goto wPlk3; yAmMh: $where['weid'] = $_W['uniacid']; goto jCtWd; Ca7Ng: if (empty($robot)) { goto nhgl3; } goto hOidX; lDO2l: global $_GPC, $_W; goto yAmMh; euaiK: if (empty($nickname)) { goto YSyz7; } goto XobKu; Pbl39: include $this->template('user/list'); goto IAf1e; lbDyZ: nhgl3: goto A7t3I; XobKu: $where['nickname like'] = '%' . $nickname . '%'; goto j6iaG; jCtWd: $robot = $_GPC['robot']; goto Ca7Ng; LWh4h: $count = pdo_getcolumn('hc_user', $where, array("count(*)")); goto XiJMT; hOidX: $where['robot'] = $robot; goto lbDyZ; A7t3I: $nickname = $_GPC['nickname']; goto euaiK; XiJMT: $nums = ceil($count / $pagesize); goto Pbl39; wPlk3: $pagesize = 15; goto LWh4h; IAf1e: } public function doWebUserajax() { goto Svp4S; maPgd: $list = pdo_getslice('hc_user', $where, array($pageindex, $pagesize), $total, array(), '', 'uid desc'); goto n2ETG; RVx_J: $where['weid'] = $_W['uniacid']; goto HDU5n; Rc71Z: KO1j3: goto JDoDw; tnEVw: $where['robot'] = $robot - 1; goto Rc71Z; hg9VU: JkWvB: goto Mj6Vm; BsW2N: $robot = $_GPC['robot']; goto PZ2Cu; n2ETG: foreach ($list as $key => $val) { goto eg9tB; eg9tB: $list[$key]['gender'] = $val['gender'] == 1 ? '' : ''; goto yhVfG; y2cws: $list[$key]['province'] = empty($val['province']) ? '' : $val['province']; goto SmXx9; tPcLg: $list[$key]['level'] = pdo_getcolumn('hc_user_info', array("uid" => $val['uid'], "sid" => $season, "weid" => $_W['uniacid']), array("level")); goto Zv2MX; Zv2MX: $list[$key]['dan'] = pdo_getcolumn('hc_user_info', array("uid" => $val['uid'], "sid" => $season, "weid" => $_W['uniacid']), array("dan")); goto OuphD; SmXx9: $list[$key]['city'] = empty($val['city']) ? '' : $val['city']; goto tPcLg; OuphD: Wc3tK: goto pjPZv; yhVfG: $list[$key]['robot'] = $val['robot'] == 1 ? '' : ''; goto y2cws; pjPZv: } goto B8Vh6; plNY5: exit(json_encode(array("code" => 1, "msg" => "", "data" => $list))); goto ujptv; veOHQ: $where['nickname like'] = '%' . $nickname . '%'; goto hg9VU; Svp4S: global $_GPC, $_W; goto r3Gdy; B8Vh6: uT3Ao: goto plNY5; JDoDw: $nickname = $_GPC['nickname']; goto T6pqT; r3Gdy: $pageindex = max(1, intval($_GPC['page'])); goto BsW2N; T6pqT: if (empty($nickname)) { goto JkWvB; } goto veOHQ; HDU5n: $season = pdo_getcolumn('hc_season', array("status" => 1, "weid" => $_W['uniacid']), array("id")); goto maPgd; Mj6Vm: $pagesize = 15; goto RVx_J; PZ2Cu: if (empty($robot)) { goto KO1j3; } goto tnEVw; ujptv: } public function doWebUseradd() { goto JyYNW; Q9561: $id = $_GPC['id']; goto mhtwI; J3Ydh: $info = pdo_get('hc_user', array("weid" => $_W['uniacid'], "uid" => $id)); goto aMvFc; oxXZB: $info['else'] = pdo_get('hc_user_info', array("weid" => $_W['uniacid'], "uid" => $id, "sid" => $sid)); goto YI3AX; aMvFc: $sid = pdo_getcolumn('hc_season', array("status" => 1, "weid" => $_W['uniacid']), array("id")); goto oxXZB; YI3AX: dXLNV: goto uNRwS; JyYNW: global $_GPC, $_W; goto Q9561; mhtwI: if (empty($id)) { goto dXLNV; } goto J3Ydh; uNRwS: include $this->template('user/useradd'); goto s2SEk; s2SEk: } public function doWebUserdo() { goto isqHM; i5H8B: $res = pdo_update('hc_user', $data, array("uid" => $id)); goto wucYW; SFX35: goto Se4fZ; goto ub0OP; BWyUm: nxAf0: goto T8loQ; xoMQN: pdo_update('hc_user_info', $udata, array("uid" => $id)); goto pfK2s; glnyX: $data['country'] = $_GPC['country']; goto ixJzf; IptjZ: VN9e7: goto zG9Kk; y0tZz: $info = pdo_get('hc_user_info', array("weid" => $_W['uniacid'], "uid" => $id)); goto qMnPW; h9Uoz: if ($_GPC['robot'] == 1) { goto VN9e7; } goto EJTt_; M8DLv: lPfRs: goto U1Fu9; O6Ba2: $data['weid'] = $_W['uniacid']; goto MlocA; cTEEA: if ($_GPC['act'] == 'del') { goto DcdJz; } goto CAu0S; qMnPW: $sid = pdo_getcolumn('hc_season', array("status" => 1, "weid" => $_W['uniacid']), array("id")); goto D8h7_; s8i1v: exit(json_encode(array("code" => 1, "msg" => ""))); goto nnH8c; ixJzf: $data['robot'] = $_GPC['robot']; goto O6Ba2; TiaHx: exit(json_encode(array("code" => 0, "msg" => ""))); goto SFX35; XBd_0: $id = pdo_insertid(); goto mu52i; Iva0p: if ($_GPC['act'] == 'unblack') { goto CPafY; } goto h9Uoz; ZA5xm: pdo_update('hc_user', array("status" => 1), array("uid" => $id, "weid" => $_W['uniacid'])); goto m0N95; pfK2s: goto nxAf0; goto M8DLv; AWMNp: UfV86: goto uH5ng; zLO63: $data['nickname'] = $_GPC['nickname']; goto iG1ko; l4bmG: $res = pdo_insert('hc_user', $data); goto XBd_0; vGJaE: $data['province'] = $_GPC['province']; goto m2mPN; DWQ0V: if (empty($res)) { goto Oij8v; } goto y0tZz; Txzlp: CPafY: goto ZA5xm; NzL_v: $data['avatar'] = $avatar; goto zLO63; m0N95: exit(json_encode(array("code" => 1, "msg" => ""))); goto MDdmj; GwCXO: goto Se4fZ; goto Txzlp; iG1ko: $data['gender'] = $_GPC['gender']; goto vGJaE; VIFHs: $id = $_GPC['id']; goto cTEEA; MlocA: $data['createtime'] = time(); goto OaMc0; zG9Kk: $avatar = $_W['attachurl'] . $_GPC['avatar']; goto fvuDA; mu52i: goto WbhKP; goto K6ZGe; uH5ng: pdo_update('hc_user', array("status" => 2), array("uid" => $id, "weid" => $_W['uniacid'])); goto BpUdt; DTa2q: goto DVvsY; goto IptjZ; D8h7_: $udata = array("uid" => $id, "sid" => $sid, "dan" => $_GPC['dan'], "star" => $_GPC['star'], "level" => $_GPC['level'], "expe" => $_GPC['expe'], "gold" => $_GPC['gold'], "weid" => $_W['uniacid']); goto hM2YI; wucYW: WbhKP: goto DWQ0V; obQQX: pdo_delete('hc_user', array("uid" => $id, "weid" => $_W['uniacid'])); goto hIgRx; hIgRx: pdo_delete('hc_user_info', array("uid" => $id, "weid" => $_W['uniacid'])); goto s8i1v; MDdmj: Se4fZ: goto tvNg6; W43FD: Oij8v: goto TiaHx; K6ZGe: ZFfE6: goto i5H8B; hM2YI: if (empty($info)) { goto lPfRs; } goto xoMQN; CAu0S: if ($_GPC['act'] == 'black') { goto UfV86; } goto Iva0p; BpUdt: exit(json_encode(array("code" => 1, "msg" => ""))); goto GwCXO; OaMc0: if (!empty($id)) { goto ZFfE6; } goto l4bmG; isqHM: global $_GPC, $_W; goto VIFHs; nnH8c: goto Se4fZ; goto AWMNp; fvuDA: DVvsY: goto NzL_v; U1Fu9: pdo_insert('hc_user_info', $udata); goto BWyUm; EJTt_: $avatar = $_GPC['avatar']; goto DTa2q; ub0OP: DcdJz: goto obQQX; T8loQ: exit(json_encode(array("code" => 1, "msg" => ""))); goto W43FD; m2mPN: $data['city'] = $_GPC['city']; goto glnyX; tvNg6: } public function doWebOrder() { goto C_DyY; yE8gA: $ordersn = $_GPC['ordersn']; goto n3pAd; C_DyY: global $_GPC, $_W; goto d4oDk; d4oDk: $where['weid'] = $_W['uniacid']; goto yE8gA; K6rCo: $pagesize = 15; goto ptzuv; TWDCm: $where['ordersn'] = $ordersn; goto ycoMH; ptzuv: $count = pdo_getcolumn('hc_order', $where, array("count(*)")); goto A_xR5; A_xR5: $nums = ceil($count / $pagesize); goto pVfss; ycoMH: Y5Nhq: goto K6rCo; pVfss: include $this->template('order/list'); goto SQO3J; n3pAd: if (empty($ordersn)) { goto Y5Nhq; } goto TWDCm; SQO3J: } public function doWebOrderajax() { goto OmUFU; NfA_L: foreach ($list as $key => $val) { goto Dn8wg; wC_vJ: $list[$key]['avatar'] = $user['avatar']; goto Wjzo0; Dn8wg: $user = pdo_get('hc_user', array("weid" => $_W['uniacid'], "uid" => $val['uid']), array("nickname", "avatar")); goto c5Lg_; c5Lg_: $list[$key]['nickname'] = $user['nickname']; goto wC_vJ; mrB65: WEmKt: goto Xkqzh; Wjzo0: $list[$key]['paystatus'] = $val['paystatus'] == 1 ? '' : ''; goto mrB65; Xkqzh: } goto gdjt7; T7fPk: dSrMx: goto LaChz; TFXzO: $where['ordersn'] = $ordersn; goto T7fPk; g1EW1: $where['weid'] = $_W['uniacid']; goto jwU2t; LaChz: $pagesize = 15; goto g1EW1; bb_CI: if (empty($ordersn)) { goto dSrMx; } goto TFXzO; ioJVJ: exit(json_encode(array("code" => 1, "msg" => "", "data" => $list))); goto C4BpM; gdjt7: MdClu: goto ioJVJ; OmUFU: global $_GPC, $_W; goto rw_Z3; rw_Z3: $pageindex = max(1, intval($_GPC['page'])); goto UANQw; jwU2t: $list = pdo_getslice('hc_order', $where, array($pageindex, $pagesize), $total, array(), '', 'uid desc'); goto NfA_L; UANQw: $ordersn = $_GPC['ordersn']; goto bb_CI; C4BpM: } public function doWebNews() { goto D43yB; U6ELO: $count = pdo_getcolumn('hc_shenhe', $where, array("count(*)")); goto iY7oI; bmURo: include $this->template('news/news'); goto swUgb; D43yB: global $_GPC, $_W; goto Z_lfR; QXjR4: $pagesize = 15; goto U6ELO; Z_lfR: $where['weid'] = $_W['uniacid']; goto QXjR4; iY7oI: $nums = ceil($count / $pagesize); goto bmURo; swUgb: } public function doWebNewsajax() { goto WVP6e; Zscn7: $list = pdo_getslice('hc_shenhe', $where, array($pageindex, $pagesize), $total, array(), '', 'id desc'); goto LXqoH; LXqoH: foreach ($list as $key => $val) { $list[$key]['img'] = $_W['attachurl'] . $val['img']; zEVgx: } goto qVvwC; z1n2y: $pagesize = 15; goto puVjH; WVP6e: global $_GPC, $_W; goto LnyME; LnyME: $pageindex = max(1, intval($_GPC['page'])); goto z1n2y; O_oiE: exit(json_encode(array("code" => 1, "msg" => "", "data" => $list))); goto AgVPN; puVjH: $where['weid'] = $_W['uniacid']; goto Zscn7; qVvwC: fIcwg: goto O_oiE; AgVPN: } public function doWebNewsadd() { goto jh150; P171t: if (empty($id)) { goto Tazd_; } goto RbJSw; KTteH: include $this->template('news/newsadd'); goto X3_Rh; cyf_p: $info['res'] = pdo_fetchall('SELECT * FROM ' . tablename('hc_shenhe') . ' WHERE id in(' . $info['remark'] . ') AND weid=:weid', array(":weid" => $_W['uniacid'])); goto aHZ6D; aHZ6D: Tazd_: goto KTteH; RbJSw: $info = pdo_get('hc_shenhe', array("weid" => $_W['uniacid'], "id" => $id)); goto cyf_p; FuiDA: $id = $_GPC['id']; goto P171t; jh150: global $_GPC, $_W; goto FuiDA; X3_Rh: } public function doWebNewsdo() { goto eSHb6; yaUTV: if (!$res) { goto sk1t0; } goto IaMbN; HbPUF: tZnKB: goto JO_O4; gz36_: goto yjm2E; goto HbPUF; xITqv: MkwIy: goto fQP1B; IaMbN: exit(json_encode(array("code" => 1, "msg" => ""))); goto OlZgX; E5RaN: exit(json_encode(array("code" => 0, "msg" => ""))); goto gpFLK; OlZgX: sk1t0: goto E5RaN; bU1MB: $res = pdo_update('hc_shenhe', $data, array("id" => $id)); goto xITqv; fQP1B: if (empty($res)) { goto gieFn; } goto DL_vH; LVoYS: exit(json_encode(array("code" => 0, "msg" => ""))); goto gz36_; eSHb6: global $_GPC, $_W; goto bKrRv; MPXmm: gieFn: goto LVoYS; DL_vH: exit(json_encode(array("code" => 1, "msg" => ""))); goto MPXmm; gpFLK: yjm2E: goto fTgpN; enbyv: if (!empty($id)) { goto gawUh; } goto D0Hf5; D0Hf5: $res = pdo_insert('hc_shenhe', $data); goto pIHbo; JO_O4: $res = pdo_delete('hc_shenhe', array("id" => $id)); goto yaUTV; bKrRv: $id = $_GPC['id']; goto Gyz2L; pIHbo: goto MkwIy; goto NFMfy; Gyz2L: if ($_GPC['act'] == 'del') { goto tZnKB; } goto qYDsq; qYDsq: $data = array("weid" => $_W['uniacid'], "stact" => 1, "name" => $_GPC['name'], "img" => $_GPC['img'], "time" => date('Y-m-d H:i:s'), "sort" => 1, "content" => $_GPC['content']); goto enbyv; NFMfy: gawUh: goto bU1MB; fTgpN: } public function doWebAdv() { goto y8Tx4; I21cZ: $nums = ceil($count / $pagesize); goto uE8vG; INBiR: $pagesize = 15; goto x3bGa; uE8vG: include $this->template('adv/adv'); goto hUxCa; q6ZWU: $where['weid'] = $_W['uniacid']; goto INBiR; y8Tx4: global $_GPC, $_W; goto q6ZWU; x3bGa: $count = pdo_getcolumn('hc_ad', $where, array("count(*)")); goto I21cZ; hUxCa: } public function doWebAdvajax() { goto kj_So; ttUyd: $pageindex = max(1, intval($_GPC['page'])); goto nRRPA; VgVvI: exit(json_encode(array("code" => 1, "msg" => "", "data" => $list))); goto AuCBg; nRRPA: $pagesize = 15; goto VV0KA; Oakqz: $list = pdo_getslice('hc_ad', $where, array($pageindex, $pagesize), $total, array(), '', 'id desc'); goto VgVvI; VV0KA: $where['weid'] = $_W['uniacid']; goto Oakqz; kj_So: global $_GPC, $_W; goto ttUyd; AuCBg: } public function doWebAdvadd() { goto DfHnM; kAGdm: if (empty($id)) { goto zaCFK; } goto tV8ph; p0F0k: include $this->template('adv/advadd'); goto ZWETj; DfHnM: global $_GPC, $_W; goto bsOTR; kb_Ob: zaCFK: goto p0F0k; bsOTR: $id = $_GPC['id']; goto kAGdm; tV8ph: $info = pdo_get('hc_ad', array("weid" => $_W['uniacid'], "id" => $id)); goto kb_Ob; ZWETj: } public function doWebAdvdo() { goto seDDT; INkRr: exit(json_encode(array("code" => 0, "msg" => ""))); goto RyOzF; q64mX: exit(json_encode(array("code" => 0, "msg" => ""))); goto ILd76; ulQA3: if (empty($res)) { goto HMJlO; } goto ve73p; ve73p: exit(json_encode(array("code" => 1, "msg" => ""))); goto noV8E; O_7ze: if (!$res) { goto im9Yk; } goto uRvMc; tE0bv: $res = pdo_delete('hc_ad', array("id" => $id)); goto O_7ze; ILd76: goto DAApP; goto XXcEx; MZZz0: if ($_GPC['act'] == 'del') { goto i0q7b; } goto YhqG9; whsAW: di0VM: goto wQvNI; ROm_b: l0bgC: goto ulQA3; KiMJ5: $res = pdo_insert('hc_ad', $data); goto q53bb; uRvMc: exit(json_encode(array("code" => 1, "msg" => ""))); goto T6WB1; XXcEx: i0q7b: goto tE0bv; wQvNI: $res = pdo_update('hc_ad', $data, array("id" => $id)); goto ROm_b; K2HAu: if (!empty($id)) { goto di0VM; } goto KiMJ5; RyOzF: DAApP: goto HnFWo; EjrHe: $id = $_GPC['id']; goto MZZz0; q53bb: goto l0bgC; goto whsAW; seDDT: global $_GPC, $_W; goto EjrHe; noV8E: HMJlO: goto q64mX; YhqG9: $data = array("weid" => $_W['uniacid'], "name" => $_GPC['name'], "appid" => $_GPC['appid'], "path" => $_GPC['path'], "desc" => $_GPC['desc']); goto K2HAu; T6WB1: im9Yk: goto INkRr; HnFWo: } public function doWebActive() { goto UldCN; l_RD2: include $this->template('active/active'); goto AVrcn; nPQQC: $nums = ceil($count / $pagesize); goto l_RD2; UldCN: global $_GPC, $_W; goto M9rMB; YOuf3: $count = pdo_getcolumn('hc_bonus', $where, array("count(*)")); goto nPQQC; gUPIZ: $pagesize = 15; goto YOuf3; M9rMB: $where['weid'] = $_W['uniacid']; goto gUPIZ; AVrcn: } public function doWebActiveajax() { goto jVt91; jVt91: global $_GPC, $_W; goto dCAaH; fkfVY: foreach ($list as $key => $val) { goto uRaSU; OtZox: $list[$key]['avatar'] = $user['avatar']; goto RpeVx; NrubJ: lh3pf: goto ngqva; Fux1I: $list[$key]['nickname'] = $user['nickname']; goto OtZox; ucz_n: $list[$key]['addtime'] = date('Y-m-d H:i', $val['addtime']); goto NrubJ; uRaSU: $user = pdo_get('hc_user', array("weid" => $val['weid'], "uid" => $val['uid']), array("nickname", "avatar", "moneycode")); goto Fux1I; RpeVx: $list[$key]['moneycode'] = $user['moneycode']; goto ucz_n; ngqva: } goto j4SU2; RHz0Z: $where['weid'] = $_W['uniacid']; goto YbpOe; YbpOe: $list = pdo_getslice('hc_bonus', $where, array($pageindex, $pagesize), $total, array(), '', 'addtime desc'); goto fkfVY; j4SU2: bFTxg: goto jbCXo; jbCXo: exit(json_encode(array("code" => 1, "msg" => "", "data" => $list))); goto LPOi6; dCAaH: $pageindex = max(1, intval($_GPC['page'])); goto AX_qH; AX_qH: $pagesize = 15; goto RHz0Z; LPOi6: } public function doWebActivedo() { goto C8Oxn; DRO2i: exit(json_encode(array("code" => 0, "msg" => ""))); goto SVsxN; WF1Qx: $res = pdo_update('hc_bonus', array("status" => 1, "dealtime" => time()), array("id" => $id)); goto SkV9i; SkV9i: if (empty($res)) { goto fydc0; } goto aBRwq; v9z3R: fydc0: goto DRO2i; C8Oxn: global $_GPC, $_W; goto OAKb1; OAKb1: $id = $_GPC['id']; goto WF1Qx; aBRwq: exit(json_encode(array("code" => 1, "msg" => ""))); goto v9z3R; SVsxN: } public function doWebUploadimg() { goto s9sCT; aQIrK: mkdir($dir); goto y3OAp; s9sCT: global $_GPC, $_W; goto lzTA3; jJubD: goto XEgaP; goto Gxexz; qX5JT: exit(json_encode(array("code" => 0, "msg" => ""))); goto jJubD; Xj5T5: $type = explode('/', $type); goto DJj6e; lzTA3: if (!empty($_FILES['thumb'])) { goto Eby63; } goto pLEym; MVnk1: $dir = IA_ROOT . '/addons/hc_answer/upload'; goto p91lH; DJj6e: $newfilename = date('YmdHis') . rand(1000, 9999); goto MVnk1; btpah: $type = $_FILES['thumb']['type']; goto Xj5T5; dndCr: exit(json_encode(array("code" => 1, "msg" => "", "path" => $thumb))); goto faeaG; Gxexz: e3a81: goto cGJEB; cGJEB: $thumb = $_W['siteroot'] . 'addons/hc_answer/upload/' . $newfilename . '.' . $type[1]; goto dndCr; SJNzm: Eby63: goto btpah; pLEym: exit(json_encode(array("code" => 0, "msg" => ""))); goto SJNzm; faeaG: XEgaP: goto zc2UZ; ytv0s: QSnXt: goto g1vbm; y3OAp: chmod($dir, 0777); goto ytv0s; p91lH: if (file_exists($dir)) { goto QSnXt; } goto aQIrK; g1vbm: if (move_uploaded_file($_FILES['thumb']['tmp_name'], '../addons/hc_answer/upload/' . $newfilename . '.' . $type[1])) { goto e3a81; } goto qX5JT; zc2UZ: } public function doWebUploadexcel() { goto N_J5y; uQeuv: chmod($dir, 0777); goto rv8x0; AFZuq: exit(json_encode(array("code" => 0, "msg" => ""))); goto RS63k; O9d13: if (file_exists($dir)) { goto U2Y1s; } goto DCsZc; DCsZc: mkdir($dir); goto uQeuv; Ibw5F: MSDo2: goto Tk7QV; xYrQd: exit(json_encode(array("code" => 1, "msg" => "", "path" => $excel))); goto Ibw5F; BXdsW: goto MSDo2; goto T4Dqf; rv8x0: U2Y1s: goto WtiAW; p902v: $dir = IA_ROOT . '/addons/hc_answer/excel'; goto O9d13; N_J5y: global $_GPC, $_W; goto qvWXy; T4Dqf: mQ5Zz: goto BNNuW; RS63k: idHQF: goto yEZR3; qvWXy: if (!empty($_FILES['excel'])) { goto idHQF; } goto AFZuq; WtiAW: if (move_uploaded_file($_FILES['excel']['tmp_name'], '../addons/hc_answer/excel/' . $newfilename)) { goto mQ5Zz; } goto aq5ZY; BNNuW: $excel = '/addons/hc_answer/excel/' . $newfilename; goto xYrQd; aq5ZY: exit(json_encode(array("code" => 0, "msg" => ""))); goto BXdsW; yEZR3: $newfilename = $_FILES['excel']['name']; goto p902v; Tk7QV: } public function doMobileApi() { goto DV0jn; rL1mn: $model = new HcfkModel(); goto mPb1J; zzTo9: $token = $account_api->getAccessToken(); goto rL1mn; HMR8T: return $_GPC['echostr']; goto Ur_K9; SpFkN: $post_data = $model->json_encode2(array("touser" => $openid, "msgtype" => "link", "link" => array("title" => $follow['title'], "description" => $follow['desc'], "url" => $follow['url'], "thumb_url" => toimage($follow['img'])))); goto nR60S; DV0jn: global $_W, $_GPC; goto Z7PHz; JozKu: $openid = $input['FromUserName']; goto kDGNo; PxaSv: $follow = json_decode($settings, true); goto H_1BK; wga1I: load()->func('communication'); goto SpFkN; mPb1J: $settings = pdo_getcolumn('hc_setting', array("weid" => $weid), array("follow")); goto PxaSv; Ur_K9: goto Oe0Nk; goto tf1cq; YETD0: echo success; goto LZUgs; tf1cq: COslR: goto JozKu; H_1BK: $post_url = 'https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=' . $token; goto wga1I; LZUgs: Oe0Nk: goto ef4a7; kDGNo: $account_api = WeAccount::create(); goto zzTo9; ywJw2: $input = $_GPC['__input']; goto qJj2E; nR60S: ihttp_post($post_url, $post_data); goto YETD0; Z7PHz: $weid = $_W['uniacid']; goto ywJw2; qJj2E: if ($input) { goto COslR; } goto HMR8T; ef4a7: } public function doWebSendlibtpl() { goto PCSJO; z82y5: $tpl = json_decode($tpl, true); goto qjzfK; sRbrG: $token = $account_api->getAccessToken(); goto fBeZ6; SMuic: $weid = $_W['uniacid']; goto Tj4dL; jkJ7X: foreach ($users as $key => $val) { goto aPqoY; slkYO: if (!($res['status'] == 'OK')) { goto J4sCA; } goto BO4M4; l61gk: DclbT: goto uuTmY; MpAqk: $data['data']['keyword1']['color'] = '#173177'; goto S8UsZ; igEFW: $data['data']['keyword1']['value'] = $keyword1; goto MpAqk; S8UsZ: $data['data']['keyword2']['value'] = $keyword2; goto hDXED; aPqoY: $data['touser'] = $val['openid']; goto MzIhz; DwK34: J4sCA: goto l61gk; dmRQ0: $res = ihttp_post($url, $json); goto slkYO; ATR1N: $data['emphasis_keyword'] = 'keyword1.DATA'; goto OePw7; OePw7: $data['page'] = 'hc_answer/pages/index/index'; goto F4ikn; BO4M4: pdo_update('hc_formid', array("status" => 1), array("formid" => $val['formid'])); goto DwK34; ZYLvj: $data['form_id'] = $val['formid']; goto igEFW; hDXED: $data['data']['keyword2']['color'] = '#173177'; goto ATR1N; F4ikn: $json = json_encode($data); goto dmRQ0; MzIhz: $data['template_id'] = $tpl['tk']; goto ZYLvj; uuTmY: } goto YAQei; WSbQp: $keyword2 = $_GPC['keyword2']; goto zVWEZ; nrxOO: exit(json_encode(array("code" => 1, "msg" => ""))); goto bj30v; qjzfK: $users = pdo_fetchall('SELECT a.openid,b.formid FROM ' . tablename('hc_user') . ' AS a LEFT JOIN ' . tablename('hc_formid') . ' AS b ON a.uid=b.uid WHERE a.weid=:weid AND b.formid !=\'\' AND b.status=0 group by a.uid', array(":weid" => $weid)); goto jkJ7X; fBeZ6: $url = 'https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send?access_token=' . $token; goto ZU0_I; PCSJO: global $_W, $_GPC; goto SMuic; YAQei: Aavar: goto nrxOO; ZU0_I: $tpl = pdo_getcolumn('hc_setting', array("weid" => $weid), array("tpl")); goto z82y5; Tj4dL: $keyword1 = $_GPC['keyword1']; goto WSbQp; zVWEZ: $account_api = WeAccount::create(); goto sRbrG; bj30v: } } ?>

Function Calls

None

Variables

None

Stats

MD5 1630faea7a5500ddefc80545e5e38a0e
Eval Count 0
Decode Time 120 ms