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 lUpEt; zsXF2: define("\x4d\x59\x5f\x4d\x4f\x44\x55\114\105\x5f\x52\x4f\x4f\12..

Decoded Output download

<?php 
 goto lUpEt; zsXF2: define("MY_MODULE_ROOT", IA_ROOT . "/addons/wei_idiom"); goto n5Zgw; lUpEt: defined("IN_IA") or exit("Access Denied"); goto zsXF2; n5Zgw: class Wei_idiomModuleWxapp extends WeModuleWxapp { const V = "1.1.5"; public function __construct() { include_once MY_MODULE_ROOT . "/core/func/function.php"; self::register(); } public static function register() { spl_autoload_register("loadModel"); spl_autoload_register("loadUtils"); } public function doPageLogin() { goto YqfZN; Kqd3k: response(0, "", $user); goto NGndz; rBhwA: $user = IdiomUser::getUser($_W["uniacid"], $_W["openid"]); goto oZc06; oWGKW: response(-1, ""); goto UHwUh; OyPl5: $user = convertBalance($user); goto Kqd3k; YqfZN: global $_W; goto rBhwA; UHwUh: Przz0: goto OyPl5; oZc06: if (!empty($user)) { goto Przz0; } goto oWGKW; NGndz: } public function doPageInfo() { goto RTXi1; nOFre: $res = IdiomUser::updateByOpenid($_W["uniacid"], $_W["openid"], $pairs); goto k8n21; s2ycu: $pairs = compact("realname", "mobile", "wxid"); goto nOFre; sAVNB: DDGBt: goto vD756; RTXi1: global $_W, $_GPC; goto Y3Vvd; SeL59: response(-1, ""); goto kOlFE; Wtqxz: FNRpG: goto sVvls; dmFH0: if (!(!isset($_GPC["mobile"]) || empty($_GPC["mobile"]))) { goto Lelvg; } goto NbIm3; fVZhN: $mobile = trim($_GPC["mobile"]); goto Er8yJ; k8n21: if (!(false == $res)) { goto FNRpG; } goto TujnY; g_Shg: response(0, "ok", $user); goto IOBEI; Y3Vvd: if (!(!isset($_GPC["realname"]) || empty($_GPC["realname"]))) { goto TG9M5; } goto SeL59; NbIm3: response(-1, ""); goto sU6ED; ZghgZ: if (!(!isset($_GPC["wxid"]) || empty($_GPC["wxid"]))) { goto DDGBt; } goto iA4i2; TujnY: response(-1, ""); goto Wtqxz; vD756: $realname = trim($_GPC["realname"]); goto fVZhN; sU6ED: Lelvg: goto ZghgZ; Er8yJ: $wxid = trim($_GPC["wxid"]); goto s2ycu; kOlFE: TG9M5: goto dmFH0; sVvls: $user = IdiomUser::getUser($_W["uniacid"], $_W["openid"]); goto g_Shg; iA4i2: response(-1, ""); goto sAVNB; IOBEI: } public function doPageRegister() { goto xL9g_; gBMQt: if (!($vid > 0)) { goto tnYHJ; } goto R7fuv; iz6H1: response(-1, ""); goto MZEhf; FPmK5: if (!(false == $user)) { goto cDZA6; } goto iz6H1; Mwia7: $setting = IdiomSetting::getSetting($_W["uniacid"]); goto rmEAV; CjTXy: $user = IdiomUser::getUser($_W["uniacid"], $_W["openid"]); goto sjLZQ; MZEhf: cDZA6: goto CdhgP; Xb7H8: if (!(!isset($_W["openid"]) || empty($_W["openid"]))) { goto t_gC2; } goto mPCHG; wyT_b: $vid = intval($_GPC["vid"]); goto S1S6k; R7fuv: if (!(!empty($setting) && $setting["per_invite_gold"] > 0)) { goto yUaVl; } goto K7doZ; sjLZQ: if (!empty($user)) { goto Znk16; } goto Mwia7; rbSzB: $vid = 0; goto jLBin; mPCHG: response(-1, ""); goto SLU_d; S1S6k: PG4os: goto Xb7H8; WbZOE: yUaVl: goto BIFAZ; jLBin: if (!(isset($_GPC["vid"]) && !empty($_GPC["vid"]))) { goto PG4os; } goto wyT_b; BIFAZ: tnYHJ: goto PABei; xL9g_: global $_W, $_GPC; goto a8ty3; rmEAV: $user = IdiomUser::create($_W["uniacid"], $_W["openid"], $fans, $vid, $setting["register_gold"]); goto gBMQt; mlLyj: response(0, "ok", $user); goto LxG_5; K7doZ: IdiomUser::incrGoldNumAndInviteNum($_W["uniacid"], $vid, $setting["per_invite_gold"]); goto WbZOE; SLU_d: t_gC2: goto CjTXy; CdhgP: $user = convertBalance($user); goto mlLyj; a8ty3: $fans = ["nickname" => trim($_GPC["nickName"]), "headimgurl" => trim($_GPC["avatarUrl"]), "gender" => trim($_GPC["gender"])]; goto rbSzB; PABei: Znk16: goto FPmK5; LxG_5: } public function doPageConfig() { goto cc4p7; fMpmS: DOrW_: goto CxJs9; DCSXT: M_WaR: goto KCziE; Acn16: !empty($adv_list) && ($adv_list = idiomTomediaList($adv_list, "image")); goto YOG4_; xtPjB: $setting["gzh_img"] = tomedia($setting["gzh_img"]); goto Jol1J; CxJs9: $logs = IdiomVideoLog::getUserTodayLog($_W["uniacid"], $_W["openid"]); goto OMIZT; cc4p7: global $_W; goto L2o48; L2o48: $setting = IdiomSetting::getFrontConfig($_W["uniacid"]); goto zify5; zify5: if (!(!empty($setting) && !empty($setting["header_img"]))) { goto mPWtq; } goto wvXCR; KCziE: if (!(!empty($setting) && !empty($setting["gzh_img"]))) { goto XxYGg; } goto xtPjB; U4azl: hrrel: goto aITa5; OMIZT: if (!(sizeof($logs) >= $setting["day_video_num"])) { goto hrrel; } goto WJNWK; H738p: mPWtq: goto XIa7t; kD21l: $setting["gzh_ewm_img"] = tomedia($setting["gzh_ewm_img"]); goto fMpmS; XIa7t: if (!(!empty($setting) && !empty($setting["header_img"]))) { goto M_WaR; } goto WugDl; Jol1J: XxYGg: goto At1sr; WugDl: $setting["header_img"] = tomedia($setting["header_img"]); goto DCSXT; YOG4_: response(0, "", ["setting" => ["status" => empty($setting) ? false : true, "data" => $setting], "share" => $share, "adv" => ["status" => !empty($adv_list), "data" => $adv_list], "mp3" => ["correct" => $_W["siteroot"] . "/addons/wei_idiom/core/static/mp3/corr.mp3"]]); goto IDefO; aITa5: $share = IdiomShare::getShareConf($_W["uniacid"]); goto nxocK; At1sr: if (!(!empty($setting) && !empty($setting["gzh_ewm_img"]))) { goto DOrW_; } goto kD21l; WJNWK: $setting["video_ad_status"] = IdiomSetting::VIDEO_AD_OFF; goto U4azl; nxocK: $adv_list = IdiomAdv::getMobileAdvList($_W["uniacid"]); goto Acn16; wvXCR: $setting["header_img"] = tomedia($setting["header_img"]); goto H738p; IDefO: } public function doPageGoods() { goto T0asm; qA0wk: if (empty($list)) { goto dhfA7; } goto GAJSx; QrrYG: $list = IdiomGoods::getAllGoods($_W["uniacid"]); goto qA0wk; GAJSx: $list = idiomTomediaList($list, "image"); goto fa0iA; yta4O: response(0, "ok", $list, false); goto pwGRO; T0asm: global $_W; goto QrrYG; fa0iA: dhfA7: goto yta4O; pwGRO: } private function checkCode($code) { goto Xsotd; icjy1: if (!(!isset($response["content"]) || empty($response["content"]))) { goto vuG4V; } goto jigyo; UUoyX: return false; goto Hw0Mn; KGo2D: return true; goto shs5e; ha5Hg: $account = $_W["account"]->account; goto gho0g; QaU2B: return false; goto KB3Ew; Fe8aU: vuG4V: goto LJx86; Xsotd: global $_W; goto K3rt2; Utw_I: if (!(isset($res["openid"]) && isset($res["session_key"]))) { goto kCymF; } goto KGo2D; cx7yf: return true; goto taykH; shs5e: kCymF: goto rYbCl; KB3Ew: A90Wx: goto FK_2G; FK_2G: $res = json_decode($response["content"], true); goto Utw_I; jigyo: return false; goto Fe8aU; rYbCl: if (!(isset($res["errcode"]) && $res["errcode"] == -1)) { goto NERz1; } goto cx7yf; gho0g: $url = "https://api.weixin.qq.com/sns/jscode2session?appid={$account["key"]}&secret={$account["secret"]}&js_code={$code}&grant_type=authorization_code"; goto NSB3h; K3rt2: load()->func("communication"); goto ha5Hg; taykH: NERz1: goto UUoyX; NSB3h: $response = ihttp_get($url); goto icjy1; LJx86: if (is_string($response["content"])) { goto A90Wx; } goto QaU2B; Hw0Mn: } public function doPageExchange() { goto I_6cw; nog5D: response(-1, ""); goto QT5cr; Rku5e: response(0, "ok"); goto Vzim2; pZjX1: response(-1, "3"); goto jTRKN; If37x: pdo_rollback(); goto ONlFY; FGDz0: C4zmX: goto kUSJN; UcO4f: pdo_commit(); goto P661s; psFVv: if (!(false == $user_res)) { goto YFa0C; } goto HVfYu; o09_y: if (!(false == $order_res)) { goto jse02; } goto If37x; qwkzE: IdiomRateLimit::unlock(); goto pZjX1; vB95p: IdiomRateLimit::lock($_W["openid"]); goto bfVnb; lJNly: pdo_begin(); goto iyWZ_; Qmore: if (!(!isset($_GPC["goods_id"]) || empty($_GPC["goods_id"]) || !is_numeric($_GPC["goods_id"]))) { goto C4zmX; } goto A_qyX; pz_G8: pdo_rollback(); goto Av_CN; OmXbc: response(-1, "2"); goto eCsfu; FO1Ne: $goods = IdiomGoods::getGoodById($_W["uniacid"], $goods_id); goto tLAMo; I_6cw: global $_W, $_GPC; goto Qmore; iyWZ_: $order_res = IdiomOrder::create($_W["uniacid"], $user["openid"], $order_sn, $goods_id, $form_id, $goods["name"], $goods["price"]); goto o09_y; HVfYu: pdo_rollback(); goto qwkzE; A_qyX: response(-1, ""); goto FGDz0; eCsfu: vjM3K: goto GOHlA; Ry_eF: $goods_res = IdiomGoods::decrFreeCount($_W["uniacid"], $goods["id"]); goto V1uag; VOAc9: if (!($goods["price"] * 100 > $user["balance"])) { goto n9uQR; } goto nog5D; jTRKN: YFa0C: goto UcO4f; QT5cr: n9uQR: goto vB95p; U7aaQ: response(-1, ""); goto i0_J2; e5Dan: jse02: goto Ry_eF; nMylV: response(-1, "1"); goto e5Dan; bfVnb: $order_sn = buildOrderNo(); goto lJNly; P661s: IdiomRateLimit::unlock(); goto Rku5e; i0_J2: VWrFB: goto edy8s; Av_CN: IdiomRateLimit::unlock(); goto OmXbc; ONlFY: IdiomRateLimit::unlock(); goto nMylV; kUSJN: $goods_id = intval($_GPC["goods_id"]); goto TXbvf; TXbvf: $form_id = isset($_GPC["form_id"]) ? trim($_GPC["form_id"]) : ''; goto FO1Ne; V1uag: if (!(false == $goods_res)) { goto vjM3K; } goto pz_G8; GOHlA: $user_res = IdiomUser::decrUserBalance($_W["uniacid"], $_W["openid"], $goods["price"] * 100); goto psFVv; tLAMo: if (!(intval($goods["free_count"]) <= 0)) { goto VWrFB; } goto U7aaQ; edy8s: $user = IdiomUser::getUser($_W["uniacid"], $_W["openid"]); goto VOAc9; Vzim2: } public function doPageRecord() { goto cSIVK; q1c69: $list = convertIdiomOrder($list); goto Fazx9; QeCK8: $list = IdiomOrder::getMyOrder($_W["openid"], $_W["uniacid"]); goto XWJ2S; cSIVK: global $_W; goto QeCK8; VyAKi: response(0, "", $list, false); goto IOZqL; XWJ2S: if (empty($list)) { goto T_3pS; } goto q1c69; Fazx9: T_3pS: goto VyAKi; IOZqL: } public function doPageSendReward() { goto w11RF; BPxNx: $log_res = IdiomVideoLog::add($_W["uniacid"], $_W["openid"]); goto On27M; BYlpQ: if (empty($list)) { goto ZZVLf; } goto CGmWt; H131b: response(-1, ""); goto a57CD; oUWEd: if (!($setting["video_strong_check"] == IdiomSetting::VIDEO_STRONG_CHECK_ON)) { goto CzBlE; } goto g2YbU; mben_: IdiomRateLimit::unlock(); goto YqYQY; yL8TX: if (!($_GPC["v"] == self::V)) { goto LRyct; } goto bzyQ3; db3o2: LLMCB: goto ZKHQl; gbfQo: EB68y: goto NB6CX; Oysg9: response(-1, ""); goto VYuhw; nlUtM: response(-1, ""); goto db3o2; F2os2: response(-1, ""); goto EAIIy; CGmWt: $last = $list[0]; goto bu1NC; C8iJ7: if (!(false == $check_res)) { goto c_LHc; } goto N25dx; usntR: IdiomRateLimit::unlock(); goto gWGqG; Ojvz6: IdiomRateLimit::unlock(); goto jR6fH; L8Z0s: pdo_commit(); goto usntR; g2YbU: if (!(!isset($_GPC["code"]) || empty($_GPC["code"]))) { goto EB68y; } goto nOR36; mZpzM: IdiomRateLimit::unlock(); goto Oysg9; QW_0s: SFpY_: goto ma1l3; ma1l3: $setting = IdiomSetting::getSetting($_W["uniacid"]); goto iXmMS; OF2f0: CzBlE: goto YvVdE; YKJ6C: IdiomRateLimit::unlock(); goto H131b; On27M: if (!(false == $res || false == $log_res)) { goto K_Ecc; } goto W8da5; lkvRv: IdiomRateLimit::unlock(); goto g4nCC; tOWQT: if (!empty($user)) { goto SFpY_; } goto mben_; CP4Y8: c_LHc: goto OF2f0; d12Kf: $user = IdiomUser::getUser($_W["uniacid"], $_W["openid"]); goto tOWQT; FNATG: response(-1, ""); goto gbfQo; bu1NC: if (!(time() - strtotime($last["insert_time"]) <= 6)) { goto i6RTE; } goto YKJ6C; g4nCC: response(-1, ""); goto BPNk6; iXmMS: if (!empty($setting)) { goto KUnHA; } goto DPDL4; yrWL2: IdiomRateLimit::lock($_W["openid"]); goto d12Kf; nygK5: LRyct: goto oUWEd; j_9rM: pdo_begin(); goto QXPzi; gWGqG: response(0, "ok", ["show_video" => sizeof($list) + 1 < $setting["day_video_num"]]); goto Y3EdK; N25dx: IdiomRateLimit::unlock(); goto XT_7O; W8da5: pdo_rollback(); goto mZpzM; inznO: g1afL: goto yL8TX; a57CD: i6RTE: goto uNsCk; uNsCk: if (!(sizeof($list) >= $setting["day_video_num"])) { goto LLMCB; } goto lUiX_; EAIIy: KUnHA: goto HnH1W; XT_7O: response(-1, ""); goto CP4Y8; HnH1W: if (!($setting["per_video_gold"] <= 0)) { goto g1afL; } goto Ojvz6; VYuhw: K_Ecc: goto L8Z0s; lUiX_: IdiomRateLimit::unlock(); goto nlUtM; BPNk6: HMLZq: goto nygK5; w11RF: global $_W, $_GPC; goto yrWL2; YvVdE: $list = IdiomVideoLog::getUserTodayLog($_W["uniacid"], $_W["openid"]); goto BYlpQ; nOR36: IdiomRateLimit::unlock(); goto FNATG; NB6CX: $check_res = $this->checkCode($_GPC["code"]); goto C8iJ7; DPDL4: IdiomRateLimit::unlock(); goto F2os2; jR6fH: response(-1, ""); goto inznO; bzyQ3: if (!($setting["video_ad_status"] == IdiomSetting::VIDEO_AD_OFF)) { goto HMLZq; } goto lkvRv; ZKHQl: ZZVLf: goto j_9rM; QXPzi: $res = IdiomUser::incrGoldNumById($_W["uniacid"], $user["id"], $setting["per_video_gold"]); goto BPxNx; YqYQY: response(-1, ""); goto QW_0s; Y3EdK: } public function doPageTopics() { goto ukKHM; swdQp: $topics = convertTopics($topics); goto XjeoW; XjeoW: response(0, "ok", $topics, false); goto n4kDI; ErOZ1: $topics = IdiomTopic::getTopic5($_W["uniacid"], $_W["openid"]); goto swdQp; ukKHM: global $_W, $_GPC; goto ErOZ1; n4kDI: } public function doPageCheck() { goto v3RxC; UTbYI: response(-1, ""); goto LFw6U; dFf0x: if (!(empty($setting) || $setting["per_guess_gold"] == 0)) { goto vemNk; } goto f7o08; wAw0n: if (!($_GPC["res_index"] != $topic["res_index"])) { goto qhDql; } goto aVLdl; TRKXy: NJ2Sj: goto i5Pd4; K2MTQ: IdiomRateLimit::unlock(); goto tLceE; i5Pd4: U2ASC: goto AJH1x; IAhmp: yWN1a: goto TRKXy; kB7zm: qhDql: goto v7vCH; tLceE: pdo_rollback(); goto O8m8n; Bu7ws: if (!$send_money) { goto kdOwh; } goto eM2ob; mHlMl: response(-1, ""); goto wwGLY; eTX2g: response(-1, ""); goto xzHA5; YgWON: if (empty($nowLaw)) { goto NJ2Sj; } goto AXCqX; LLTdM: GR8nO: goto qeoVZ; UVFX2: $money = 0; goto JY45W; mYK5y: pdo_rollback(); goto UTbYI; lvSK3: response(-2, ""); goto kB7zm; JY45W: if (!(intval(($user["level"] + 1) % $setting["redbag_interval"]) == 0)) { goto U2ASC; } goto AoONK; mcbkD: if (!(false == $add_res || false == $money_log_res || false == $level_res)) { goto zIY0J; } goto Bpyaw; Bpyaw: IdiomRateLimit::unlock(); goto mYK5y; yrpCf: $send_money = true; goto IAhmp; lGt0x: $topic = IdiomTopic::getById($_GPC["topic_id"]); goto zmhL7; xWh_a: KLVR1: goto wAw0n; aVLdl: IdiomRateLimit::unlock(); goto oTXjh; fRQZj: IdiomRateLimit::unlock(); goto S5xlR; arP9Y: if (!($user["status"] == IdiomUser::STATUS_FORBID)) { goto GR8nO; } goto fRQZj; Uh_ba: $level_res = IdiomUser::incrUserLevel($_W["uniacid"], $user["openid"]); goto mcbkD; wwGLY: NW3fm: goto HS_3g; zmhL7: if (!empty($topic)) { goto NW3fm; } goto lEWFt; qeoVZ: if (!($user["gold_num"] < $setting["per_guess_gold"])) { goto BDo0L; } goto nv0OR; nv0OR: IdiomRateLimit::unlock(); goto yxEvq; qlv9J: $money_log_res = true; goto SnuXX; LFw6U: zIY0J: goto Rlr0g; oTXjh: pdo_commit(); goto lvSK3; rBCNn: response(-1, ""); goto XP0mg; f7o08: IdiomRateLimit::unlock(); goto rBCNn; mHYdb: if (!(false == $gold_res)) { goto KLVR1; } goto K2MTQ; AiW6_: if (!(false == $user)) { goto NFvgU; } goto bcX3q; LihFX: $money = randByLaw($nowLaw["money_min"], $nowLaw["money_max"]); goto yrpCf; uESzU: $send_money = false; goto UVFX2; anRcM: pdo_commit(); goto JsgM3; v7vCH: $add_res = IdiomAnswer::add($_W["uniacid"], $_W["openid"], $_GPC["topic_id"]); goto qlv9J; xzHA5: NFvgU: goto arP9Y; HS_3g: $user = IdiomUser::getUser($_W["uniacid"], $_W["openid"]); goto AiW6_; ee3sR: BDo0L: goto uESzU; N1ofI: if (!($rand <= intval($nowLaw["probability"]))) { goto yWN1a; } goto LihFX; SUj2B: $money_log_res = IdiomEgg::add($_W["uniacid"], $user["openid"], $_GPC["topic_id"], $kkid, $money); goto uP_D0; S5xlR: response(-1, ""); goto LLTdM; O8m8n: response(-2, ""); goto xWh_a; AXCqX: $rand = mt_rand(1, 100); goto N1ofI; yxEvq: response(-1, ""); goto ee3sR; phZsr: (empty($_GPC["topic_id"]) || empty($_GPC["res_index"]) && !is_numeric($_GPC["res_index"])) && response(-1, ""); goto iRMOk; JsgM3: response(0, "ok", ["redbag" => ["status" => $send_money, "kkid" => $kkid]]); goto pKXvT; eM2ob: $kkid = md5(nonce_str() . time()); goto SUj2B; AMUJC: $setting = IdiomSetting::getSetting($_W["uniacid"]); goto dFf0x; uP_D0: kdOwh: goto Uh_ba; lEWFt: IdiomRateLimit::unlock(); goto mHlMl; iRMOk: IdiomRateLimit::lock($_W["openid"]); goto AMUJC; v3RxC: global $_W, $_GPC; goto phZsr; Rlr0g: IdiomRateLimit::unlock(); goto anRcM; Q3vCP: $gold_res = IdiomUser::decrUserGoldNum($_W["uniacid"], $_W["openid"], $setting["per_guess_gold"]); goto mHYdb; AoONK: $nowLaw = IdiomLaw::getByBalance($_W["uniacid"], $user["all_get_balance"] / 100); goto YgWON; bcX3q: IdiomRateLimit::unlock(); goto eTX2g; XP0mg: vemNk: goto lGt0x; SnuXX: $kkid = ''; goto Bu7ws; AJH1x: pdo_begin(); goto Q3vCP; pKXvT: } public function doPageReceive() { goto Sa05x; VRvCm: bplUt: goto w7ZLk; gTvKx: IdiomRateLimit::lock($user["openid"]); goto cM_rs; w7ZLk: IdiomRateLimit::unlock(); goto VD8y6; Kga8h: pdo_rollback(); goto IQNkC; lTF3M: $egg = IdiomEgg::getByOpenidKkid($_W["uniacid"], $user["openid"], $_GPC["kkid"]); goto xewzZ; KJkez: response(-1, ""); goto IaIQJ; C491f: response(-1, ""); goto ighNj; kjWbF: if (!(!isset($_GPC["kkid"]) || empty($_GPC["kkid"]))) { goto fa17V; } goto QY143; sCNED: $user_res = IdiomUser::incrUserBalance($_W["uniacid"], $user["openid"], $num); goto V8zhi; cM_rs: pdo_begin(); goto Ah3XW; yqrlP: fa17V: goto Zt_b8; NjL8j: response(0, "ok", ["redbag" => ["kkid" => $egg["kkid"], "balance" => $egg["balance"]]]); goto pXcGb; Ah3XW: $egg_res = IdiomEgg::updateById($_W["uniacid"], $egg["id"], ["status" => IdiomEgg::STATUS_USED]); goto gMIdA; ighNj: GDLhG: goto lTF3M; xewzZ: if (!empty($egg)) { goto jDWtf; } goto KJkez; Sa05x: global $_W, $_GPC; goto kjWbF; V8zhi: if (!(false == $egg_res || false == $user_res)) { goto bplUt; } goto o3Aw0; IaIQJ: jDWtf: goto gTvKx; o3Aw0: IdiomRateLimit::unlock(); goto Kga8h; Zt_b8: $user = IdiomUser::getUser($_W["uniacid"], $_W["openid"]); goto E8wnx; E8wnx: if (!empty($user)) { goto GDLhG; } goto C491f; VD8y6: pdo_commit(); goto NjL8j; QY143: response(-1, ""); goto yqrlP; gMIdA: $num = $egg["balance"] * 100; goto sCNED; IQNkC: response(-1, ""); goto VRvCm; pXcGb: } public function doPageRank() { goto cuhwU; lCUTi: $list = IdiomUser::getLevelRank($_W["uniacid"], $page, $page_size); goto KhQ9v; jZbCX: goto vwS2k; goto t0vQC; O13Qw: empty($_GPC["page"]) && response(-1, ""); goto XneBh; J9XGU: response(0, "ok", ["list" => $list, "more" => $more, "type" => $_GPC["type"], "myInfo" => ["rank" => $rank + 1, "info" => ["level" => $user["level"], "invite_num" => $user["invite_num"]]]]); goto wB4pR; XneBh: empty($_GPC["page_size"]) && response(-1, ""); goto EOCsx; zNOsK: vwS2k: goto JLeli; cuhwU: global $_W, $_GPC; goto mRtsY; JLeli: if (!(!isset($_GPC["av"]) && $_GPC["type"] == "balance")) { goto MjQSM; } goto xj9Y2; Qlulp: $list = IdiomUser::getInviteRank($_W["uniacid"], $page, $page_size); goto ftJEF; lmiBt: if ($_GPC["type"] == "level") { goto BFvRm; } goto Qlulp; s2E_3: $more = count($list) == 10; goto J9XGU; T13kC: if (!empty($user)) { goto j0fnu; } goto IHV0k; ftJEF: $rank = IdiomUser::getMyInviteRank($_W["uniacid"], $user["invite_num"], $user["id"]); goto jZbCX; t0vQC: BFvRm: goto lCUTi; SkXn0: $user = IdiomUser::getUser($_W["uniacid"], $_W["openid"]); goto T13kC; IHV0k: $user = ["id" => 100000000, "level" => 0, "invite_num" => 0]; goto qfoPL; aZuZs: $page_size = intval($_GPC["page_size"]); goto SkXn0; KhQ9v: $rank = IdiomUser::getMyLevelRank($_W["uniacid"], $user["level"], $user["id"]); goto zNOsK; DLYWQ: MjQSM: goto s2E_3; qfoPL: j0fnu: goto lmiBt; EOCsx: $page = intval($_GPC["page"]); goto aZuZs; mRtsY: (empty($_GPC["type"]) || !in_array($_GPC["type"], ["level", "invite"])) && response(-1, ""); goto O13Qw; xj9Y2: $user = convertBalance($user); goto DLYWQ; wB4pR: } public function doPageMyInvite() { goto XgBki; M6nfT: $list = IdiomUser::getMyInvite($user["uniacid"], $user["id"]); goto S6Piu; S6Piu: response(0, "ok", ["list" => $list]); goto tGyPS; sDO_L: $user = IdiomUser::getUser($_W["uniacid"], $_W["openid"]); goto M6nfT; XgBki: global $_W; goto sDO_L; tGyPS: } public function doPageBroad() { goto JAqZf; JcoUP: if (empty($list)) { goto sytVb; } goto Z3JBp; xoYYF: $list = []; goto wp62p; DTgQi: XneXZ: goto VCRIg; Z3JBp: $list = fillListWithIdiomUser($list, ["nickname"]); goto zHmwQ; gAmKn: $list = IdiomEgg::getForBroad($_W["uniacid"]); goto AsQBe; JAqZf: global $_W; goto gAmKn; VCRIg: sytVb: goto eRkAa; AsQBe: if (!(count($list) < 3)) { goto R5nQy; } goto xoYYF; zHmwQ: foreach ($list as $k => $v) { goto ncUE6; ncUE6: if (strlen($v["user"]["nickname"]) > 8) { goto w6cY6; } goto gdLbo; gdLbo: $list[$k]["nickname"] = $v["user"]["nickname"]; goto JIgGj; aox3f: $list[$k]["nickname"] = my_mb_substr($v["user"]["nickname"], 0, 5, "utf-8") . "**"; goto yPUES; yPUES: ed66k: goto uvZsT; JIgGj: goto ed66k; goto bLSvv; uvZsT: LgEYY: goto qXsvB; bLSvv: w6cY6: goto aox3f; qXsvB: } goto DTgQi; wp62p: R5nQy: goto JcoUP; eRkAa: response(0, "ok", $list, false); goto bS4FO; bS4FO: } } ?>

Did this file decode correctly?

Original Code

<?php
 goto lUpEt; zsXF2: define("\x4d\x59\x5f\x4d\x4f\x44\x55\114\105\x5f\x52\x4f\x4f\124", IA_ROOT . "\57\141\144\x64\x6f\x6e\x73\57\x77\x65\151\x5f\x69\144\x69\x6f\155"); goto n5Zgw; lUpEt: defined("\x49\x4e\137\111\101") or exit("\101\143\143\145\163\x73\x20\x44\145\x6e\x69\x65\x64"); goto zsXF2; n5Zgw: class Wei_idiomModuleWxapp extends WeModuleWxapp { const V = "\61\x2e\61\x2e\65"; public function __construct() { include_once MY_MODULE_ROOT . "\57\x63\x6f\x72\145\57\x66\165\156\x63\57\146\165\156\x63\x74\x69\x6f\x6e\x2e\160\150\x70"; self::register(); } public static function register() { spl_autoload_register("\154\x6f\141\x64\115\157\144\x65\154"); spl_autoload_register("\x6c\157\x61\144\x55\x74\151\x6c\163"); } public function doPageLogin() { goto YqfZN; Kqd3k: response(0, "\xe7\231\273\345\275\225\xe6\210\x90\345\x8a\237", $user); goto NGndz; rBhwA: $user = IdiomUser::getUser($_W["\165\156\151\141\x63\151\x64"], $_W["\x6f\x70\x65\156\x69\x64"]); goto oZc06; oWGKW: response(-1, "\xe6\xb2\xa1\xe6\x9c\x89"); goto UHwUh; OyPl5: $user = convertBalance($user); goto Kqd3k; YqfZN: global $_W; goto rBhwA; UHwUh: Przz0: goto OyPl5; oZc06: if (!empty($user)) { goto Przz0; } goto oWGKW; NGndz: } public function doPageInfo() { goto RTXi1; nOFre: $res = IdiomUser::updateByOpenid($_W["\165\x6e\151\x61\x63\151\x64"], $_W["\x6f\x70\145\156\151\144"], $pairs); goto k8n21; s2ycu: $pairs = compact("\162\x65\x61\x6c\156\x61\x6d\x65", "\155\157\142\151\x6c\x65", "\x77\170\x69\x64"); goto nOFre; sAVNB: DDGBt: goto vD756; RTXi1: global $_W, $_GPC; goto Y3Vvd; SeL59: response(-1, "\xe5\xa7\x93\345\220\215\xe7\274\xba\345\xa4\261"); goto kOlFE; Wtqxz: FNRpG: goto sVvls; dmFH0: if (!(!isset($_GPC["\x6d\157\x62\151\154\x65"]) || empty($_GPC["\x6d\157\142\151\x6c\145"]))) { goto Lelvg; } goto NbIm3; fVZhN: $mobile = trim($_GPC["\x6d\157\142\151\x6c\145"]); goto Er8yJ; k8n21: if (!(false == $res)) { goto FNRpG; } goto TujnY; g_Shg: response(0, "\157\153", $user); goto IOBEI; Y3Vvd: if (!(!isset($_GPC["\x72\x65\141\154\x6e\141\155\145"]) || empty($_GPC["\162\x65\141\154\x6e\x61\155\x65"]))) { goto TG9M5; } goto SeL59; NbIm3: response(-1, "\xe6\x89\213\346\234\xba\345\217\267\347\xbc\272\xe5\244\261"); goto sU6ED; ZghgZ: if (!(!isset($_GPC["\167\170\x69\x64"]) || empty($_GPC["\x77\x78\x69\144"]))) { goto DDGBt; } goto iA4i2; TujnY: response(-1, "\346\233\264\346\x96\xb0\xe5\244\261\xe8\264\xa5"); goto Wtqxz; vD756: $realname = trim($_GPC["\x72\145\x61\x6c\156\x61\155\x65"]); goto fVZhN; sU6ED: Lelvg: goto ZghgZ; Er8yJ: $wxid = trim($_GPC["\x77\170\151\x64"]); goto s2ycu; kOlFE: TG9M5: goto dmFH0; sVvls: $user = IdiomUser::getUser($_W["\x75\x6e\x69\141\x63\151\144"], $_W["\157\160\145\x6e\x69\x64"]); goto g_Shg; iA4i2: response(-1, "\xe5\xbe\256\344\xbf\xa1\345\x8f\267\xe7\xbc\272\xe5\244\261"); goto sAVNB; IOBEI: } public function doPageRegister() { goto xL9g_; gBMQt: if (!($vid > 0)) { goto tnYHJ; } goto R7fuv; iz6H1: response(-1, "\xe6\263\xa8\xe5\206\x8c\345\244\261\350\264\xa5"); goto MZEhf; FPmK5: if (!(false == $user)) { goto cDZA6; } goto iz6H1; Mwia7: $setting = IdiomSetting::getSetting($_W["\x75\156\x69\x61\143\x69\x64"]); goto rmEAV; CjTXy: $user = IdiomUser::getUser($_W["\x75\x6e\x69\x61\x63\151\x64"], $_W["\x6f\x70\x65\x6e\x69\144"]); goto sjLZQ; MZEhf: cDZA6: goto CdhgP; Xb7H8: if (!(!isset($_W["\x6f\160\x65\156\x69\144"]) || empty($_W["\x6f\x70\145\x6e\x69\144"]))) { goto t_gC2; } goto mPCHG; wyT_b: $vid = intval($_GPC["\166\x69\144"]); goto S1S6k; R7fuv: if (!(!empty($setting) && $setting["\x70\x65\x72\137\151\x6e\x76\x69\x74\145\x5f\147\x6f\x6c\144"] > 0)) { goto yUaVl; } goto K7doZ; sjLZQ: if (!empty($user)) { goto Znk16; } goto Mwia7; rbSzB: $vid = 0; goto jLBin; mPCHG: response(-1, "\xe7\xb3\273\xe7\xbb\x9f\xe7\271\201\xe5\xbf\x99"); goto SLU_d; S1S6k: PG4os: goto Xb7H8; WbZOE: yUaVl: goto BIFAZ; jLBin: if (!(isset($_GPC["\x76\151\x64"]) && !empty($_GPC["\x76\x69\x64"]))) { goto PG4os; } goto wyT_b; BIFAZ: tnYHJ: goto PABei; xL9g_: global $_W, $_GPC; goto a8ty3; rmEAV: $user = IdiomUser::create($_W["\x75\x6e\x69\x61\143\x69\144"], $_W["\x6f\x70\145\x6e\x69\x64"], $fans, $vid, $setting["\x72\x65\147\x69\163\x74\145\162\137\x67\157\154\x64"]); goto gBMQt; mlLyj: response(0, "\x6f\x6b", $user); goto LxG_5; K7doZ: IdiomUser::incrGoldNumAndInviteNum($_W["\165\156\151\141\143\151\144"], $vid, $setting["\160\x65\x72\137\x69\x6e\x76\151\164\145\x5f\x67\x6f\154\x64"]); goto WbZOE; SLU_d: t_gC2: goto CjTXy; CdhgP: $user = convertBalance($user); goto mlLyj; a8ty3: $fans = ["\156\x69\143\153\156\141\x6d\x65" => trim($_GPC["\156\x69\x63\x6b\116\x61\x6d\145"]), "\150\x65\x61\x64\x69\155\x67\165\162\154" => trim($_GPC["\x61\x76\141\164\141\162\125\162\x6c"]), "\x67\x65\x6e\144\x65\162" => trim($_GPC["\x67\x65\x6e\144\145\162"])]; goto rbSzB; PABei: Znk16: goto FPmK5; LxG_5: } public function doPageConfig() { goto cc4p7; fMpmS: DOrW_: goto CxJs9; DCSXT: M_WaR: goto KCziE; Acn16: !empty($adv_list) && ($adv_list = idiomTomediaList($adv_list, "\151\155\141\147\145")); goto YOG4_; xtPjB: $setting["\x67\x7a\x68\137\151\x6d\x67"] = tomedia($setting["\147\x7a\x68\137\151\155\x67"]); goto Jol1J; CxJs9: $logs = IdiomVideoLog::getUserTodayLog($_W["\x75\x6e\x69\141\x63\151\x64"], $_W["\x6f\x70\145\156\x69\x64"]); goto OMIZT; cc4p7: global $_W; goto L2o48; L2o48: $setting = IdiomSetting::getFrontConfig($_W["\165\156\x69\141\x63\151\x64"]); goto zify5; zify5: if (!(!empty($setting) && !empty($setting["\150\145\x61\x64\145\x72\x5f\x69\x6d\147"]))) { goto mPWtq; } goto wvXCR; KCziE: if (!(!empty($setting) && !empty($setting["\147\x7a\150\137\x69\155\147"]))) { goto XxYGg; } goto xtPjB; U4azl: hrrel: goto aITa5; OMIZT: if (!(sizeof($logs) >= $setting["\x64\x61\x79\137\x76\151\144\x65\157\x5f\156\165\x6d"])) { goto hrrel; } goto WJNWK; H738p: mPWtq: goto XIa7t; kD21l: $setting["\147\x7a\150\137\x65\x77\155\x5f\x69\x6d\x67"] = tomedia($setting["\147\x7a\150\137\x65\x77\x6d\137\151\x6d\x67"]); goto fMpmS; XIa7t: if (!(!empty($setting) && !empty($setting["\x68\145\x61\144\x65\x72\137\151\155\147"]))) { goto M_WaR; } goto WugDl; Jol1J: XxYGg: goto At1sr; WugDl: $setting["\x68\x65\141\x64\x65\162\137\x69\155\x67"] = tomedia($setting["\x68\x65\x61\144\145\162\137\x69\155\147"]); goto DCSXT; YOG4_: response(0, "\xe8\216\xb7\345\217\226\346\x88\220\345\x8a\x9f", ["\x73\x65\164\164\x69\156\x67" => ["\x73\164\x61\x74\165\163" => empty($setting) ? false : true, "\144\x61\x74\141" => $setting], "\x73\150\141\x72\145" => $share, "\141\144\x76" => ["\163\164\x61\x74\x75\163" => !empty($adv_list), "\144\x61\x74\141" => $adv_list], "\155\160\x33" => ["\x63\x6f\x72\x72\x65\143\x74" => $_W["\x73\151\164\145\x72\x6f\x6f\x74"] . "\x2f\x61\x64\x64\x6f\156\163\x2f\x77\145\x69\x5f\x69\x64\151\x6f\155\57\x63\157\162\x65\57\x73\x74\x61\x74\151\x63\x2f\155\x70\63\x2f\x63\x6f\162\162\56\155\x70\x33"]]); goto IDefO; aITa5: $share = IdiomShare::getShareConf($_W["\165\x6e\x69\x61\x63\x69\x64"]); goto nxocK; At1sr: if (!(!empty($setting) && !empty($setting["\x67\172\x68\137\145\x77\155\x5f\x69\x6d\x67"]))) { goto DOrW_; } goto kD21l; WJNWK: $setting["\x76\x69\144\145\157\x5f\x61\x64\x5f\x73\x74\x61\x74\165\x73"] = IdiomSetting::VIDEO_AD_OFF; goto U4azl; nxocK: $adv_list = IdiomAdv::getMobileAdvList($_W["\165\156\151\x61\143\x69\x64"]); goto Acn16; wvXCR: $setting["\x68\x65\x61\144\x65\162\x5f\x69\155\x67"] = tomedia($setting["\x68\145\x61\x64\x65\x72\137\x69\155\147"]); goto H738p; IDefO: } public function doPageGoods() { goto T0asm; qA0wk: if (empty($list)) { goto dhfA7; } goto GAJSx; QrrYG: $list = IdiomGoods::getAllGoods($_W["\x75\x6e\151\141\143\x69\144"]); goto qA0wk; GAJSx: $list = idiomTomediaList($list, "\151\x6d\141\147\145"); goto fa0iA; yta4O: response(0, "\157\153", $list, false); goto pwGRO; T0asm: global $_W; goto QrrYG; fa0iA: dhfA7: goto yta4O; pwGRO: } private function checkCode($code) { goto Xsotd; icjy1: if (!(!isset($response["\143\157\156\x74\x65\x6e\164"]) || empty($response["\x63\157\x6e\x74\145\x6e\x74"]))) { goto vuG4V; } goto jigyo; UUoyX: return false; goto Hw0Mn; KGo2D: return true; goto shs5e; ha5Hg: $account = $_W["\x61\x63\143\157\x75\x6e\164"]->account; goto gho0g; QaU2B: return false; goto KB3Ew; Fe8aU: vuG4V: goto LJx86; Xsotd: global $_W; goto K3rt2; Utw_I: if (!(isset($res["\x6f\x70\x65\156\x69\x64"]) && isset($res["\x73\x65\163\163\151\x6f\x6e\x5f\153\145\x79"]))) { goto kCymF; } goto KGo2D; cx7yf: return true; goto taykH; shs5e: kCymF: goto rYbCl; KB3Ew: A90Wx: goto FK_2G; FK_2G: $res = json_decode($response["\143\157\x6e\164\145\156\164"], true); goto Utw_I; jigyo: return false; goto Fe8aU; rYbCl: if (!(isset($res["\145\x72\162\x63\157\x64\x65"]) && $res["\145\162\x72\x63\157\144\145"] == -1)) { goto NERz1; } goto cx7yf; gho0g: $url = "\x68\164\x74\x70\x73\72\57\x2f\x61\160\x69\x2e\x77\145\151\x78\x69\156\x2e\161\x71\56\x63\157\155\x2f\163\x6e\x73\x2f\x6a\x73\143\157\x64\145\x32\163\145\x73\x73\x69\x6f\x6e\x3f\141\x70\x70\x69\144\75{$account["\153\x65\x79"]}\46\163\x65\x63\162\x65\164\x3d{$account["\x73\145\x63\x72\x65\164"]}\46\152\x73\137\x63\157\x64\x65\75{$code}\x26\x67\x72\x61\x6e\164\x5f\x74\171\160\145\75\141\x75\x74\x68\157\x72\x69\172\141\x74\151\157\x6e\x5f\x63\x6f\144\145"; goto NSB3h; K3rt2: load()->func("\x63\157\155\x6d\165\x6e\151\x63\x61\164\x69\x6f\x6e"); goto ha5Hg; taykH: NERz1: goto UUoyX; NSB3h: $response = ihttp_get($url); goto icjy1; LJx86: if (is_string($response["\x63\157\156\164\145\156\164"])) { goto A90Wx; } goto QaU2B; Hw0Mn: } public function doPageExchange() { goto I_6cw; nog5D: response(-1, "\xe4\275\x99\xe9\242\x9d\344\xb8\215\xe8\266\263"); goto QT5cr; Rku5e: response(0, "\157\153"); goto Vzim2; pZjX1: response(-1, "\347\263\xbb\xe7\273\237\xe7\xb9\201\xe5\xbf\x99\x33"); goto jTRKN; If37x: pdo_rollback(); goto ONlFY; FGDz0: C4zmX: goto kUSJN; UcO4f: pdo_commit(); goto P661s; psFVv: if (!(false == $user_res)) { goto YFa0C; } goto HVfYu; o09_y: if (!(false == $order_res)) { goto jse02; } goto If37x; qwkzE: IdiomRateLimit::unlock(); goto pZjX1; vB95p: IdiomRateLimit::lock($_W["\x6f\160\145\156\151\144"]); goto bfVnb; lJNly: pdo_begin(); goto iyWZ_; Qmore: if (!(!isset($_GPC["\x67\x6f\x6f\x64\x73\137\151\144"]) || empty($_GPC["\147\x6f\157\x64\163\137\151\144"]) || !is_numeric($_GPC["\147\x6f\x6f\144\163\137\151\144"]))) { goto C4zmX; } goto A_qyX; pz_G8: pdo_rollback(); goto Av_CN; OmXbc: response(-1, "\xe7\263\273\347\273\x9f\xe7\271\201\345\xbf\231\62"); goto eCsfu; FO1Ne: $goods = IdiomGoods::getGoodById($_W["\x75\x6e\x69\141\x63\x69\144"], $goods_id); goto tLAMo; I_6cw: global $_W, $_GPC; goto Qmore; iyWZ_: $order_res = IdiomOrder::create($_W["\165\156\151\141\143\x69\144"], $user["\157\160\145\x6e\x69\144"], $order_sn, $goods_id, $form_id, $goods["\x6e\x61\155\x65"], $goods["\x70\162\151\143\x65"]); goto o09_y; HVfYu: pdo_rollback(); goto qwkzE; A_qyX: response(-1, "\346\240\xa1\xe9\xaa\214\xe5\244\xb1\350\xb4\245"); goto FGDz0; eCsfu: vjM3K: goto GOHlA; Ry_eF: $goods_res = IdiomGoods::decrFreeCount($_W["\x75\156\151\x61\x63\151\x64"], $goods["\151\x64"]); goto V1uag; VOAc9: if (!($goods["\x70\162\x69\x63\145"] * 100 > $user["\x62\141\154\141\156\143\145"])) { goto n9uQR; } goto nog5D; jTRKN: YFa0C: goto UcO4f; QT5cr: n9uQR: goto vB95p; U7aaQ: response(-1, "\345\272\x93\345\255\230\xe4\270\215\xe8\xb6\xb3"); goto i0_J2; e5Dan: jse02: goto Ry_eF; nMylV: response(-1, "\347\263\273\347\xbb\x9f\347\xb9\201\345\xbf\x99\61"); goto e5Dan; bfVnb: $order_sn = buildOrderNo(); goto lJNly; P661s: IdiomRateLimit::unlock(); goto Rku5e; i0_J2: VWrFB: goto edy8s; Av_CN: IdiomRateLimit::unlock(); goto OmXbc; ONlFY: IdiomRateLimit::unlock(); goto nMylV; kUSJN: $goods_id = intval($_GPC["\x67\157\157\144\x73\x5f\x69\144"]); goto TXbvf; TXbvf: $form_id = isset($_GPC["\146\157\162\x6d\137\x69\144"]) ? trim($_GPC["\x66\157\x72\x6d\x5f\151\144"]) : ''; goto FO1Ne; V1uag: if (!(false == $goods_res)) { goto vjM3K; } goto pz_G8; GOHlA: $user_res = IdiomUser::decrUserBalance($_W["\165\156\151\141\x63\x69\x64"], $_W["\157\160\145\156\x69\144"], $goods["\x70\x72\x69\143\x65"] * 100); goto psFVv; tLAMo: if (!(intval($goods["\x66\162\145\x65\x5f\x63\x6f\x75\156\x74"]) <= 0)) { goto VWrFB; } goto U7aaQ; edy8s: $user = IdiomUser::getUser($_W["\165\x6e\151\141\143\x69\x64"], $_W["\x6f\x70\145\156\151\x64"]); goto VOAc9; Vzim2: } public function doPageRecord() { goto cSIVK; q1c69: $list = convertIdiomOrder($list); goto Fazx9; QeCK8: $list = IdiomOrder::getMyOrder($_W["\x6f\x70\145\x6e\151\144"], $_W["\165\x6e\x69\x61\x63\151\x64"]); goto XWJ2S; cSIVK: global $_W; goto QeCK8; VyAKi: response(0, "\xe8\216\xb7\345\217\x96\xe6\x88\220\xe5\x8a\x9f", $list, false); goto IOZqL; XWJ2S: if (empty($list)) { goto T_3pS; } goto q1c69; Fazx9: T_3pS: goto VyAKi; IOZqL: } public function doPageSendReward() { goto w11RF; BPxNx: $log_res = IdiomVideoLog::add($_W["\165\x6e\x69\x61\x63\151\x64"], $_W["\x6f\160\x65\x6e\151\x64"]); goto On27M; BYlpQ: if (empty($list)) { goto ZZVLf; } goto CGmWt; H131b: response(-1, "\346\x82\xa0\347\x9d\200\347\202\xb9"); goto a57CD; oUWEd: if (!($setting["\166\x69\144\145\157\x5f\x73\x74\162\x6f\x6e\147\137\x63\x68\x65\x63\153"] == IdiomSetting::VIDEO_STRONG_CHECK_ON)) { goto CzBlE; } goto g2YbU; mben_: IdiomRateLimit::unlock(); goto YqYQY; yL8TX: if (!($_GPC["\166"] == self::V)) { goto LRyct; } goto bzyQ3; db3o2: LLMCB: goto ZKHQl; gbfQo: EB68y: goto NB6CX; Oysg9: response(-1, "\347\263\273\347\xbb\237\347\271\201\345\277\231"); goto VYuhw; nlUtM: response(-1, "\344\273\212\346\227\245\xe5\267\262\350\xbe\276\xe4\xb8\x8a\351\231\x90"); goto db3o2; F2os2: response(-1, "\351\205\215\347\xbd\xae\xe4\xb8\xa2\345\244\xb1"); goto EAIIy; CGmWt: $last = $list[0]; goto bu1NC; C8iJ7: if (!(false == $check_res)) { goto c_LHc; } goto N25dx; usntR: IdiomRateLimit::unlock(); goto gWGqG; Ojvz6: IdiomRateLimit::unlock(); goto jR6fH; L8Z0s: pdo_commit(); goto usntR; g2YbU: if (!(!isset($_GPC["\x63\x6f\144\x65"]) || empty($_GPC["\x63\157\144\x65"]))) { goto EB68y; } goto nOR36; mZpzM: IdiomRateLimit::unlock(); goto Oysg9; QW_0s: SFpY_: goto ma1l3; ma1l3: $setting = IdiomSetting::getSetting($_W["\165\156\x69\141\143\151\x64"]); goto iXmMS; OF2f0: CzBlE: goto YvVdE; YKJ6C: IdiomRateLimit::unlock(); goto H131b; On27M: if (!(false == $res || false == $log_res)) { goto K_Ecc; } goto W8da5; lkvRv: IdiomRateLimit::unlock(); goto g4nCC; tOWQT: if (!empty($user)) { goto SFpY_; } goto mben_; CP4Y8: c_LHc: goto OF2f0; d12Kf: $user = IdiomUser::getUser($_W["\165\x6e\x69\141\x63\x69\144"], $_W["\x6f\x70\145\156\151\144"]); goto tOWQT; FNATG: response(-1, "\346\240\241\351\xaa\214\xe5\244\261\350\264\245"); goto gbfQo; bu1NC: if (!(time() - strtotime($last["\151\156\163\145\x72\x74\137\164\151\x6d\145"]) <= 6)) { goto i6RTE; } goto YKJ6C; g4nCC: response(-1, "\xe6\234\xaa\345\xbc\x80\xe5\220\xaf\350\xa7\206\351\242\221\345\245\226\xe5\212\261"); goto BPNk6; iXmMS: if (!empty($setting)) { goto KUnHA; } goto DPDL4; yrWL2: IdiomRateLimit::lock($_W["\x6f\x70\145\x6e\x69\144"]); goto d12Kf; nygK5: LRyct: goto oUWEd; j_9rM: pdo_begin(); goto QXPzi; gWGqG: response(0, "\x6f\x6b", ["\x73\x68\157\x77\x5f\166\151\x64\x65\157" => sizeof($list) + 1 < $setting["\144\x61\x79\137\x76\x69\144\145\x6f\137\x6e\x75\x6d"]]); goto Y3EdK; N25dx: IdiomRateLimit::unlock(); goto XT_7O; W8da5: pdo_rollback(); goto mZpzM; inznO: g1afL: goto yL8TX; a57CD: i6RTE: goto uNsCk; uNsCk: if (!(sizeof($list) >= $setting["\144\x61\171\137\166\151\x64\145\157\137\156\165\155"])) { goto LLMCB; } goto lUiX_; EAIIy: KUnHA: goto HnH1W; XT_7O: response(-1, "\346\240\xa1\xe9\252\214\xe5\244\261\xe8\264\245"); goto CP4Y8; HnH1W: if (!($setting["\x70\x65\162\x5f\x76\x69\144\x65\x6f\137\x67\x6f\x6c\144"] <= 0)) { goto g1afL; } goto Ojvz6; VYuhw: K_Ecc: goto L8Z0s; lUiX_: IdiomRateLimit::unlock(); goto nlUtM; BPNk6: HMLZq: goto nygK5; w11RF: global $_W, $_GPC; goto yrWL2; YvVdE: $list = IdiomVideoLog::getUserTodayLog($_W["\x75\156\x69\x61\x63\151\144"], $_W["\x6f\x70\x65\x6e\151\x64"]); goto BYlpQ; nOR36: IdiomRateLimit::unlock(); goto FNATG; NB6CX: $check_res = $this->checkCode($_GPC["\143\157\x64\x65"]); goto C8iJ7; DPDL4: IdiomRateLimit::unlock(); goto F2os2; jR6fH: response(-1, "\xe6\x9c\xaa\350\256\276\xe7\275\xae\xe5\xa5\x96\345\212\xb1\xe9\207\x91\345\xb8\201"); goto inznO; bzyQ3: if (!($setting["\166\x69\x64\145\x6f\x5f\x61\144\x5f\x73\x74\141\x74\165\163"] == IdiomSetting::VIDEO_AD_OFF)) { goto HMLZq; } goto lkvRv; ZKHQl: ZZVLf: goto j_9rM; QXPzi: $res = IdiomUser::incrGoldNumById($_W["\165\156\x69\141\143\151\144"], $user["\x69\x64"], $setting["\x70\x65\162\x5f\x76\x69\144\145\x6f\x5f\x67\157\154\x64"]); goto BPxNx; YqYQY: response(-1, "\347\x94\250\xe6\x88\xb7\xe4\xb8\215\345\xad\230\345\234\250"); goto QW_0s; Y3EdK: } public function doPageTopics() { goto ukKHM; swdQp: $topics = convertTopics($topics); goto XjeoW; XjeoW: response(0, "\157\153", $topics, false); goto n4kDI; ErOZ1: $topics = IdiomTopic::getTopic5($_W["\165\x6e\151\141\x63\x69\144"], $_W["\x6f\160\x65\156\x69\x64"]); goto swdQp; ukKHM: global $_W, $_GPC; goto ErOZ1; n4kDI: } public function doPageCheck() { goto v3RxC; UTbYI: response(-1, "\xe7\263\273\347\xbb\237\xe7\271\x81\xe5\xbf\x99"); goto LFw6U; dFf0x: if (!(empty($setting) || $setting["\160\x65\162\137\147\165\145\163\x73\137\x67\x6f\154\x64"] == 0)) { goto vemNk; } goto f7o08; wAw0n: if (!($_GPC["\162\x65\163\137\151\x6e\144\x65\x78"] != $topic["\x72\x65\163\137\151\x6e\x64\145\x78"])) { goto qhDql; } goto aVLdl; TRKXy: NJ2Sj: goto i5Pd4; K2MTQ: IdiomRateLimit::unlock(); goto tLceE; i5Pd4: U2ASC: goto AJH1x; IAhmp: yWN1a: goto TRKXy; kB7zm: qhDql: goto v7vCH; tLceE: pdo_rollback(); goto O8m8n; Bu7ws: if (!$send_money) { goto kdOwh; } goto eM2ob; mHlMl: response(-1, "\351\242\x98\347\x9b\256\xe4\xb8\215\xe5\255\230\xe5\x9c\xa8"); goto wwGLY; eTX2g: response(-1, "\347\224\xa8\346\x88\267\xe4\xb8\215\345\xad\x98\xe5\234\250"); goto xzHA5; YgWON: if (empty($nowLaw)) { goto NJ2Sj; } goto AXCqX; LLTdM: GR8nO: goto qeoVZ; UVFX2: $money = 0; goto JY45W; mYK5y: pdo_rollback(); goto UTbYI; lvSK3: response(-2, "\xe4\xb8\x8d\346\255\xa3\xe7\241\xae"); goto kB7zm; JY45W: if (!(intval(($user["\x6c\145\x76\145\154"] + 1) % $setting["\x72\x65\144\142\x61\x67\137\151\x6e\164\145\x72\x76\x61\154"]) == 0)) { goto U2ASC; } goto AoONK; mcbkD: if (!(false == $add_res || false == $money_log_res || false == $level_res)) { goto zIY0J; } goto Bpyaw; Bpyaw: IdiomRateLimit::unlock(); goto mYK5y; yrpCf: $send_money = true; goto IAhmp; lGt0x: $topic = IdiomTopic::getById($_GPC["\164\x6f\x70\151\143\x5f\151\144"]); goto zmhL7; xWh_a: KLVR1: goto wAw0n; aVLdl: IdiomRateLimit::unlock(); goto oTXjh; fRQZj: IdiomRateLimit::unlock(); goto S5xlR; arP9Y: if (!($user["\x73\x74\x61\164\165\163"] == IdiomUser::STATUS_FORBID)) { goto GR8nO; } goto fRQZj; Uh_ba: $level_res = IdiomUser::incrUserLevel($_W["\165\156\x69\141\x63\x69\144"], $user["\x6f\x70\145\x6e\151\144"]); goto mcbkD; wwGLY: NW3fm: goto HS_3g; zmhL7: if (!empty($topic)) { goto NW3fm; } goto lEWFt; qeoVZ: if (!($user["\147\x6f\x6c\x64\x5f\x6e\x75\155"] < $setting["\x70\145\162\137\147\x75\x65\163\163\137\147\157\154\144"])) { goto BDo0L; } goto nv0OR; nv0OR: IdiomRateLimit::unlock(); goto yxEvq; qlv9J: $money_log_res = true; goto SnuXX; LFw6U: zIY0J: goto Rlr0g; oTXjh: pdo_commit(); goto lvSK3; rBCNn: response(-1, "\xe9\x85\x8d\347\275\xae\344\270\215\xe5\256\214\346\225\xb4"); goto XP0mg; f7o08: IdiomRateLimit::unlock(); goto rBCNn; mHYdb: if (!(false == $gold_res)) { goto KLVR1; } goto K2MTQ; AiW6_: if (!(false == $user)) { goto NFvgU; } goto bcX3q; LihFX: $money = randByLaw($nowLaw["\x6d\x6f\156\x65\x79\137\x6d\151\156"], $nowLaw["\155\x6f\156\145\171\x5f\155\141\x78"]); goto yrpCf; uESzU: $send_money = false; goto UVFX2; anRcM: pdo_commit(); goto JsgM3; v7vCH: $add_res = IdiomAnswer::add($_W["\165\156\x69\x61\x63\x69\x64"], $_W["\x6f\160\145\x6e\x69\144"], $_GPC["\164\x6f\160\x69\x63\137\151\144"]); goto qlv9J; xzHA5: NFvgU: goto arP9Y; HS_3g: $user = IdiomUser::getUser($_W["\165\x6e\151\x61\143\151\144"], $_W["\157\x70\x65\x6e\x69\x64"]); goto AiW6_; ee3sR: BDo0L: goto uESzU; N1ofI: if (!($rand <= intval($nowLaw["\160\x72\x6f\142\141\142\x69\154\x69\x74\171"]))) { goto yWN1a; } goto LihFX; SUj2B: $money_log_res = IdiomEgg::add($_W["\165\156\151\x61\143\151\144"], $user["\x6f\160\145\156\151\x64"], $_GPC["\164\157\x70\151\x63\x5f\x69\144"], $kkid, $money); goto uP_D0; S5xlR: response(-1, "\350\xb4\xa6\346\210\xb7\xe5\xb7\xb2\xe7\246\201\xe7\224\xa8"); goto LLTdM; O8m8n: response(-2, "\347\xb3\xbb\347\xbb\x9f\347\271\x81\xe5\277\x99"); goto xWh_a; AXCqX: $rand = mt_rand(1, 100); goto N1ofI; yxEvq: response(-1, "\xe9\207\221\345\270\x81\xe4\xb8\x8d\xe8\xb6\263"); goto ee3sR; phZsr: (empty($_GPC["\x74\157\160\x69\x63\137\151\144"]) || empty($_GPC["\x72\x65\x73\137\x69\156\144\145\x78"]) && !is_numeric($_GPC["\162\x65\x73\x5f\x69\156\144\x65\x78"])) && response(-1, "\345\217\202\346\225\xb0\347\274\272\xe5\244\261"); goto iRMOk; JsgM3: response(0, "\157\x6b", ["\x72\x65\x64\x62\141\x67" => ["\x73\x74\x61\x74\x75\163" => $send_money, "\x6b\x6b\151\144" => $kkid]]); goto pKXvT; eM2ob: $kkid = md5(nonce_str() . time()); goto SUj2B; AMUJC: $setting = IdiomSetting::getSetting($_W["\165\x6e\x69\x61\x63\x69\x64"]); goto dFf0x; uP_D0: kdOwh: goto Uh_ba; lEWFt: IdiomRateLimit::unlock(); goto mHlMl; iRMOk: IdiomRateLimit::lock($_W["\157\x70\x65\x6e\151\x64"]); goto AMUJC; v3RxC: global $_W, $_GPC; goto phZsr; Rlr0g: IdiomRateLimit::unlock(); goto anRcM; Q3vCP: $gold_res = IdiomUser::decrUserGoldNum($_W["\165\x6e\151\x61\x63\151\x64"], $_W["\x6f\x70\145\156\151\x64"], $setting["\160\x65\x72\x5f\147\165\x65\x73\x73\x5f\x67\157\x6c\x64"]); goto mHYdb; AoONK: $nowLaw = IdiomLaw::getByBalance($_W["\x75\156\x69\141\x63\x69\x64"], $user["\x61\x6c\154\x5f\147\x65\164\x5f\x62\141\154\x61\156\x63\x65"] / 100); goto YgWON; bcX3q: IdiomRateLimit::unlock(); goto eTX2g; XP0mg: vemNk: goto lGt0x; SnuXX: $kkid = ''; goto Bu7ws; AJH1x: pdo_begin(); goto Q3vCP; pKXvT: } public function doPageReceive() { goto Sa05x; VRvCm: bplUt: goto w7ZLk; gTvKx: IdiomRateLimit::lock($user["\157\160\x65\156\x69\x64"]); goto cM_rs; w7ZLk: IdiomRateLimit::unlock(); goto VD8y6; Kga8h: pdo_rollback(); goto IQNkC; lTF3M: $egg = IdiomEgg::getByOpenidKkid($_W["\x75\x6e\x69\141\x63\151\x64"], $user["\157\x70\x65\x6e\x69\144"], $_GPC["\153\153\151\x64"]); goto xewzZ; KJkez: response(-1, "\xe8\xae\xb0\345\275\225\344\270\215\345\xad\x98\345\234\250"); goto IaIQJ; C491f: response(-1, "\xe7\224\xa8\xe6\x88\267\344\270\x8d\345\255\x98\xe5\x9c\xa8"); goto ighNj; kjWbF: if (!(!isset($_GPC["\x6b\x6b\x69\144"]) || empty($_GPC["\153\153\151\144"]))) { goto fa17V; } goto QY143; sCNED: $user_res = IdiomUser::incrUserBalance($_W["\x75\156\151\x61\x63\151\x64"], $user["\157\160\x65\x6e\151\144"], $num); goto V8zhi; cM_rs: pdo_begin(); goto Ah3XW; yqrlP: fa17V: goto Zt_b8; NjL8j: response(0, "\x6f\x6b", ["\x72\x65\144\x62\x61\x67" => ["\153\x6b\x69\x64" => $egg["\153\x6b\x69\144"], "\x62\141\154\141\156\x63\x65" => $egg["\x62\x61\154\141\x6e\x63\x65"]]]); goto pXcGb; Ah3XW: $egg_res = IdiomEgg::updateById($_W["\165\x6e\151\x61\x63\x69\144"], $egg["\151\144"], ["\163\164\x61\164\165\163" => IdiomEgg::STATUS_USED]); goto gMIdA; ighNj: GDLhG: goto lTF3M; xewzZ: if (!empty($egg)) { goto jDWtf; } goto KJkez; Sa05x: global $_W, $_GPC; goto kjWbF; V8zhi: if (!(false == $egg_res || false == $user_res)) { goto bplUt; } goto o3Aw0; IaIQJ: jDWtf: goto gTvKx; o3Aw0: IdiomRateLimit::unlock(); goto Kga8h; Zt_b8: $user = IdiomUser::getUser($_W["\165\156\x69\141\x63\151\x64"], $_W["\x6f\160\145\x6e\151\x64"]); goto E8wnx; E8wnx: if (!empty($user)) { goto GDLhG; } goto C491f; VD8y6: pdo_commit(); goto NjL8j; QY143: response(-1, "\xe5\217\x82\346\x95\xb0\347\xbc\xba\345\244\261"); goto yqrlP; gMIdA: $num = $egg["\x62\x61\x6c\x61\x6e\143\145"] * 100; goto sCNED; IQNkC: response(-1, "\347\xb3\xbb\xe7\xbb\x9f\xe7\xb9\x81\xe5\xbf\231"); goto VRvCm; pXcGb: } public function doPageRank() { goto cuhwU; lCUTi: $list = IdiomUser::getLevelRank($_W["\x75\x6e\151\x61\143\x69\144"], $page, $page_size); goto KhQ9v; jZbCX: goto vwS2k; goto t0vQC; O13Qw: empty($_GPC["\160\141\x67\x65"]) && response(-1, "\345\210\x86\351\241\xb5\347\274\272\345\xa4\xb1"); goto XneBh; J9XGU: response(0, "\157\x6b", ["\154\x69\x73\164" => $list, "\155\x6f\162\145" => $more, "\x74\171\160\145" => $_GPC["\x74\x79\160\145"], "\x6d\171\x49\156\x66\x6f" => ["\162\141\x6e\x6b" => $rank + 1, "\x69\x6e\146\157" => ["\x6c\145\166\x65\154" => $user["\154\x65\166\145\154"], "\151\x6e\x76\x69\164\145\x5f\x6e\x75\x6d" => $user["\151\156\x76\151\164\145\x5f\x6e\x75\x6d"]]]]); goto wB4pR; XneBh: empty($_GPC["\x70\x61\147\x65\137\163\x69\x7a\145"]) && response(-1, "\xe9\xa1\xb5\347\240\201\347\274\xba\xe5\xa4\xb1"); goto EOCsx; zNOsK: vwS2k: goto JLeli; cuhwU: global $_W, $_GPC; goto mRtsY; JLeli: if (!(!isset($_GPC["\x61\166"]) && $_GPC["\164\171\160\x65"] == "\x62\x61\154\141\x6e\143\145")) { goto MjQSM; } goto xj9Y2; Qlulp: $list = IdiomUser::getInviteRank($_W["\x75\156\151\x61\x63\151\144"], $page, $page_size); goto ftJEF; lmiBt: if ($_GPC["\164\x79\160\145"] == "\154\x65\166\x65\154") { goto BFvRm; } goto Qlulp; s2E_3: $more = count($list) == 10; goto J9XGU; T13kC: if (!empty($user)) { goto j0fnu; } goto IHV0k; ftJEF: $rank = IdiomUser::getMyInviteRank($_W["\x75\x6e\x69\x61\143\x69\144"], $user["\151\156\166\151\164\x65\137\x6e\x75\155"], $user["\151\x64"]); goto jZbCX; t0vQC: BFvRm: goto lCUTi; SkXn0: $user = IdiomUser::getUser($_W["\165\156\151\141\143\x69\144"], $_W["\x6f\160\x65\156\151\144"]); goto T13kC; IHV0k: $user = ["\x69\144" => 100000000, "\154\145\x76\145\x6c" => 0, "\x69\156\x76\x69\164\145\137\x6e\165\155" => 0]; goto qfoPL; aZuZs: $page_size = intval($_GPC["\x70\141\147\145\137\163\151\x7a\x65"]); goto SkXn0; KhQ9v: $rank = IdiomUser::getMyLevelRank($_W["\x75\156\151\141\143\151\144"], $user["\154\145\x76\x65\154"], $user["\151\x64"]); goto zNOsK; DLYWQ: MjQSM: goto s2E_3; qfoPL: j0fnu: goto lmiBt; EOCsx: $page = intval($_GPC["\160\x61\x67\145"]); goto aZuZs; mRtsY: (empty($_GPC["\x74\171\x70\145"]) || !in_array($_GPC["\x74\x79\160\145"], ["\154\145\166\x65\x6c", "\151\x6e\x76\x69\x74\x65"])) && response(-1, "\xe5\x8f\x82\xe6\x95\260\344\xb8\x8d\xe5\x90\210\xe6\xb3\225"); goto O13Qw; xj9Y2: $user = convertBalance($user); goto DLYWQ; wB4pR: } public function doPageMyInvite() { goto XgBki; M6nfT: $list = IdiomUser::getMyInvite($user["\x75\x6e\x69\141\x63\151\144"], $user["\151\144"]); goto S6Piu; S6Piu: response(0, "\157\153", ["\x6c\151\x73\x74" => $list]); goto tGyPS; sDO_L: $user = IdiomUser::getUser($_W["\165\156\x69\141\x63\151\x64"], $_W["\x6f\160\145\156\x69\144"]); goto M6nfT; XgBki: global $_W; goto sDO_L; tGyPS: } public function doPageBroad() { goto JAqZf; JcoUP: if (empty($list)) { goto sytVb; } goto Z3JBp; xoYYF: $list = []; goto wp62p; DTgQi: XneXZ: goto VCRIg; Z3JBp: $list = fillListWithIdiomUser($list, ["\156\151\x63\x6b\156\141\x6d\x65"]); goto zHmwQ; gAmKn: $list = IdiomEgg::getForBroad($_W["\165\156\151\x61\x63\151\144"]); goto AsQBe; JAqZf: global $_W; goto gAmKn; VCRIg: sytVb: goto eRkAa; AsQBe: if (!(count($list) < 3)) { goto R5nQy; } goto xoYYF; zHmwQ: foreach ($list as $k => $v) { goto ncUE6; ncUE6: if (strlen($v["\x75\x73\x65\x72"]["\156\x69\x63\x6b\x6e\x61\155\x65"]) > 8) { goto w6cY6; } goto gdLbo; gdLbo: $list[$k]["\x6e\x69\143\x6b\x6e\141\155\x65"] = $v["\165\163\145\x72"]["\156\151\x63\153\156\x61\x6d\145"]; goto JIgGj; aox3f: $list[$k]["\156\151\143\x6b\x6e\141\x6d\x65"] = my_mb_substr($v["\x75\163\145\162"]["\x6e\151\x63\x6b\156\x61\x6d\145"], 0, 5, "\x75\x74\x66\55\70") . "\52\52"; goto yPUES; yPUES: ed66k: goto uvZsT; JIgGj: goto ed66k; goto bLSvv; uvZsT: LgEYY: goto qXsvB; bLSvv: w6cY6: goto aox3f; qXsvB: } goto DTgQi; wp62p: R5nQy: goto JcoUP; eRkAa: response(0, "\x6f\153", $list, false); goto bS4FO; bS4FO: } }

Function Calls

None

Variables

None

Stats

MD5 8d0f3a8e71ab0cf861b3dc5f229e3f7b
Eval Count 0
Decode Time 120 ms