<?php
goto B3VNT; B3VNT: defined('IN_IA') or exit('Access Denied'); goto AlbId; AlbId: require_once 'phpimagelib/imagelib.php'; goto dvoIk; dvoIk: class Yy_shequn2ModuleSite extends WeModuleSite { function deldir($dir) { goto kiUFu; NfoXQ: jzysO: goto gelNW; lbo1G: goto nUrb2; goto hVDr2; rUz5X: hyP83: goto Myffr; JQkiD: nUrb2: goto w3lid; gelNW: bKaGP: goto lbo1G; l78AA: goto jzysO; goto rUz5X; w3lid: if (!($file = readdir($dh))) { goto BBoZJ; } goto jfFfe; uMuDm: if (!is_dir($fullpath)) { goto hyP83; } goto cYKuf; Myffr: unlink($fullpath); goto NfoXQ; hVDr2: BBoZJ: goto Uovts; jfFfe: if (!($file != '.' && $file != '..')) { goto bKaGP; } goto TiScf; kiUFu: $dh = opendir($dir); goto JQkiD; cYKuf: deldir($fullpath); goto l78AA; TiScf: $fullpath = $dir . '/' . $file; goto uMuDm; Uovts: } function getToken() { goto HdQEh; PXEe0: if (!is_error($token)) { goto CiJM1; } goto fQnXc; NR0fZ: $account_api = WeAccount::create(); goto qOcJO; y1Pa3: if (!is_error($token)) { goto mzsa8; } goto aiZlK; B6Jvq: mzsa8: goto le4UJ; LqNQu: global $_GPC, $_W; goto NR0fZ; qOcJO: $token = $account_api->getAccessToken(); goto y1Pa3; le4UJ: return $token; goto syen8; aiZlK: $account_api->clearAccessToken(); goto zKLOO; zKLOO: $token = $account_api->getAccessToken(); goto PXEe0; fQnXc: message('获取access token 失败'); goto Ni0JZ; HdQEh: load()->func('tpl'); goto LqNQu; Ni0JZ: CiJM1: goto B6Jvq; syen8: } function doWebusrlahei() { goto rrXEH; MVdfF: $isvipopen = pdo_fetchcolumn('SELECT `isOpen` FROM ' . tablename('yy_shequn2_vipSetting') . ' WHERE `uniacid`=:uniacid', array("uniacid" => $uniacid)); goto iqpsV; TKl8_: sZoPD: goto ubKPi; iqpsV: if (!($isvipopen == 1)) { goto sZoPD; } goto ylevI; rrXEH: global $_W, $_GPC; goto Dn_0b; G_p2K: if (!($islahei == 1)) { goto BBWA5; } goto lA8pl; Dn_0b: $uniacid = intval($_W['uniacid']); goto MVdfF; lA8pl: echo '<a href=\'' . $url . '\'>您没有权限进入该页面,请联系本站管理员</a>
<script>
setTimeout(jump(), 5000);
function jump() {
window.location.href=\'' . $url . '\';
}
</script>
'; goto muwLr; muwLr: exit; goto BdsLa; BdsLa: BBWA5: goto TKl8_; JdPct: $url = $this->createMobileUrl('index'); goto G_p2K; ylevI: $islahei = pdo_fetchcolumn('SELECT `islahei` FROM ' . tablename('yy_shequn2_user') . ' WHERE `openid`=:openid', array(":openid" => $_W['usrinfo']['openid'])); goto JdPct; ubKPi: } function getweixinuser($openid) { goto mJLbZ; u0l0g: PrRtw: goto g65bs; pmLu3: $output = ihttp_request($url); goto yaGOi; oYnSa: return $info; goto itCEE; g65bs: $info = $output['content']; goto YTBZT; veh_K: return error(-1, "访问公众平台接口失败, 错误: {$output['message']}"); goto u0l0g; zZmKV: global $_GPC, $_W; goto jnyxL; yaGOi: if (!is_error($output)) { goto PrRtw; } goto veh_K; mJLbZ: load()->func('tpl'); goto zZmKV; YTBZT: $info = json_decode($info, true); goto oYnSa; jnyxL: $token = $this->getToken(); goto MMLB1; MMLB1: $url = 'https://api.weixin.qq.com/cgi-bin/user/info?access_token=' . $token . '&openid=' . $openid . '&lang=zh_CN'; goto pmLu3; itCEE: } function setusrinfo() { goto sge5e; b0gpq: $_W['usrinfo'] = $usrinfo; goto XbuHM; yDp51: if (!(!empty($_W['account']['key']) && !empty($_W['account']['secret']))) { goto Gj9PL; } goto MTCu6; QZA8I: $usrinfo['sex'] = $info['sex']; goto P_fpZ; rIRHv: Q0JCs: goto b0gpq; P_fpZ: $usrinfo['city'] = $info['city']; goto pvfMR; o1e68: Gj9PL: goto rIRHv; rW00A: $usrinfo['country'] = $info['country']; goto c3dHi; c3dHi: $usrinfo['headimgurl'] = $info['headimgurl']; goto Dm1Yo; cxPm6: g9goS: goto o1e68; bo7Xp: $info = $this->getweixinuser($usrinfo['openid']); goto r_Ec6; SmgOk: $usrinfo['nickname'] = $info['nickname']; goto QZA8I; Zumu7: if (empty($_W['openid'])) { goto Q0JCs; } goto kkf1T; pvfMR: $usrinfo['province'] = $info['province']; goto rW00A; J18iH: $usrinfo['subscribe'] = $info['subscribe']; goto SmgOk; MTCu6: if (empty($usrinfo['openid'])) { goto g9goS; } goto bo7Xp; r_Ec6: if (!($info['subscribe'] == 1)) { goto vFVXj; } goto J18iH; Dm1Yo: vFVXj: goto cxPm6; sge5e: global $_W, $_GPC; goto Zumu7; kkf1T: $usrinfo = array("subscribe" => 0, "openid" => $_W['openid'], "nickname" => "", "sex" => "", "city" => "", "province" => "", "country" => "", "headimgurl" => ""); goto yDp51; XbuHM: } function upusrinfo() { goto VaCpS; tDyDc: $usr = pdo_fetch('SELECT `id`,`nickname`,`headimgurl` FROM ' . tablename('yy_shequn2_user') . ' WHERE `uniacid`=:uniacid AND `openid`=:openid', array(":uniacid" => $uniacid, ":openid" => $utemp['openid'])); goto Pmjca; eam26: LJ3h3: goto m1Zh3; fVFNx: $_W['usrinfo']['city'] = $utemp['city']; goto jSptt; c3Cov: pdo_update('yy_shequn2_user', $arrdata, array("id" => intval($usr['id']))); goto KTtcb; xT66E: $_W['usrinfo']['country'] = $utemp['country']; goto vVXDN; KTtcb: MdMKp: goto eam26; Yy68q: if (!(!empty($utemp['nickname']) && !empty($utemp['headimgurl']))) { goto Gb4b1; } goto LVWGn; FXm27: $arrdata = array("nickname" => $utemp['nickname'], "sex" => $utemp['sex'], "city" => $utemp['city'], "province" => $utemp['province'], "headimgurl" => $utemp['headimgurl']); goto c3Cov; sYIfj: $this->saveusrinfo(); goto R8sJt; Ox1TW: $_W['usrinfo']['sex'] = $utemp['sex']; goto fVFNx; Da08m: Gb4b1: goto sXoUc; Pmjca: if (!empty($usr)) { goto eXt7j; } goto sYIfj; vT5T4: load()->func('tpl'); goto E9TAU; KsEu7: $utemp = mc_oauth_userinfo($uniacid); goto Yy68q; LVWGn: $_W['usrinfo']['subscribe'] = $utemp['subscribe']; goto qdIrg; m1Zh3: $this->showretailstore(); goto Da08m; qdIrg: $_W['usrinfo']['nickname'] = $utemp['nickname']; goto Ox1TW; vVXDN: $_W['usrinfo']['headimgurl'] = $utemp['headimgurl']; goto tDyDc; E9TAU: $uniacid = intval($_W['uniacid']); goto KsEu7; R8sJt: goto LJ3h3; goto Xq9NF; jSptt: $_W['usrinfo']['province'] = $utemp['province']; goto xT66E; VaCpS: global $_W, $_GPC; goto vT5T4; oHk8I: if (!(empty($usr['nickname']) || empty($usr['headimgurl']))) { goto MdMKp; } goto FXm27; Xq9NF: eXt7j: goto oHk8I; sXoUc: } function saveusrinfo() { goto tYGE3; PLg2u: pdo_insert('yy_shequn2_user', $data); goto EO8ny; EO8ny: fqskC: goto b5oF2; tYGE3: global $_W, $_GPC; goto goDNT; lEXw_: $userinfo = mc_oauth_userinfo($uniacid); goto Zwpqk; SZslJ: $data = array("uniacid" => $uniacid, "openid" => $userinfo['openid'], "fee" => 0, "nickname" => $userinfo['nickname'], "headimgurl" => $userinfo['headimgurl'], "province" => $userinfo['province'], "city" => $userinfo['city'], "sex" => $userinfo['sex'], "firstTime" => $firstTime); goto PLg2u; Zwpqk: $usrid = pdo_fetchcolumn('SELECT `id` FROM ' . tablename('yy_shequn2_user') . ' WHERE `openid`=:openid', array(":openid" => $userinfo['openid'])); goto IK2Nc; goDNT: $uniacid = $_W['uniacid']; goto lEXw_; IK2Nc: if (!empty($usrid)) { goto fqskC; } goto SQbni; SQbni: $firstTime = date('Y-m-d H:i:s', time()); goto SZslJ; b5oF2: } public function __construct() { goto ztT0D; rMIex: $phdmoain = str_replace('HTTP://', '', $phdmoain); goto ZIkKD; e0IbW: die('<script type=\'text/javascript\'>window.location.href=\'' . $url . '\'</script>'); goto d22dE; fPMxf: $this->setusrinfo(); goto tFJG6; ya2eP: f4lom: goto C0cyw; F31Fp: $url = $paohui['paohuidomain'] . $_SERVER['REQUEST_URI']; goto e0IbW; d22dE: exit; goto ypMM2; C0mix: $phdmoain = str_replace('https://', '', $phdmoain); goto rMIex; ZIkKD: $phdmoain = str_replace('HTTPS://', '', $phdmoain); goto df9gw; Ahkm3: if (!(substr($request_url, 0, 14) != '/web/index.php')) { goto f4lom; } goto g7j60; ypMM2: AdvKG: goto ZGnR9; w9JqO: $_W['bottomfontcolor'] = '#33b9c4'; goto fPMxf; tFJG6: $request_url = $_SERVER['REQUEST_URI']; goto Ahkm3; jBV87: $paohui = pdo_fetch('SELECT `paohuidomain`,`isenablepaohui`,`bottomfontcolor` FROM ' . tablename('yy_shequn2_setting') . ' WHERE `uniacid`=:uniacid', array("uniacid" => $uniacid)); goto vIGy4; akxEy: HhYjc: goto PFe2U; cFH6G: $_W['bottomfontcolor'] = $paohui['bottomfontcolor']; goto akxEy; vIGy4: if (empty($paohui['bottomfontcolor'])) { goto HhYjc; } goto cFH6G; ZGnR9: LtqpT: goto ya2eP; PFe2U: if (!(!empty($paohui) && !empty($pao