From fe837f0df534f0f3eb125f94a77829439aad48ec Mon Sep 17 00:00:00 2001 From: cloud Date: Sun, 6 Dec 2020 23:45:46 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=A2=9E=E5=8A=A0=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E7=AD=9B=E9=80=89=E5=B0=8F=E5=8C=BA=E7=9A=84=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=202=E3=80=81=E7=BB=9F=E8=AE=A1=E7=AD=9B=E9=80=89=EF=BC=8C?= =?UTF-8?q?=E6=8E=92=E6=9C=9F=E7=AD=9B=E9=80=89=E6=97=B6=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=B0=8F=E5=8C=BA=E7=B1=BB=E5=9E=8B=203=E3=80=81=E6=8A=95?= =?UTF-8?q?=E6=94=BE=E8=AE=A1=E5=88=92=E5=A2=9E=E5=8A=A0=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=EF=BC=8C=E4=BB=85=E5=AE=9E=E7=8E=B0=E4=BA=86?= =?UTF-8?q?=E5=90=8C=E8=AE=A2=E5=8D=95=E4=B8=8B=E5=A4=8D=E5=88=B6=EF=BC=8C?= =?UTF-8?q?=E6=96=B9=E4=BE=BF=E5=90=8C=E8=AE=A2=E5=8D=95=E7=9B=B8=E4=BC=BC?= =?UTF-8?q?=E5=B9=BF=E5=91=8A=E4=BD=8D=E7=9A=84=E9=87=8D=E5=A4=8D=E6=8E=92?= =?UTF-8?q?=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +- admin/ajax.class.php | 259 ++++--- admin/config.class.php | 75 +- admin/index.class.php | 2 +- admin/info_off.class.php | 292 ++++---- admin/info_on.class.php | 18 +- admin/templates/config.php | 56 +- admin/templates/css/metinfo.css | 58 +- admin/templates/img/bg_drawing_tool.png | Bin 0 -> 5846 bytes admin/templates/img/markers.png | Bin 0 -> 6766 bytes admin/templates/js/bmaps.js | 652 +++++++++++++++++ admin/templates/js/own.js | 311 ++++---- admin/templates/launch.php | 2 +- admin/templates/table.php | 2 +- admin/templates/village.php | 116 ++- include/class/appadmin.class.php | 2 +- include/class/table_theme.class.php | 824 ++++++++++++--------- include/traits/appcmp.class.php | 2 +- include/traits/tfield.class.php | 356 ++++----- include/traits/tlist.class.php | 21 +- src/admin/templates/js/bmaps.ts | 911 ++++++++++++++++++++++++ src/admin/templates/js/index.d.ts | 18 + src/update/update.class.php | 2 + tsconfig.json | 62 ++ 24 files changed, 3062 insertions(+), 982 deletions(-) create mode 100644 admin/templates/img/bg_drawing_tool.png create mode 100644 admin/templates/img/markers.png create mode 100644 admin/templates/js/bmaps.js create mode 100644 src/admin/templates/js/bmaps.ts create mode 100644 src/admin/templates/js/index.d.ts create mode 100644 tsconfig.json diff --git a/.gitignore b/.gitignore index 88a5e10..038f38c 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ nbbuild/ dist/ nbdist/ .nb-gradle/ -/config/ \ No newline at end of file +/config/ +/update/ diff --git a/admin/ajax.class.php b/admin/ajax.class.php index 1fcfd1c..969c023 100644 --- a/admin/ajax.class.php +++ b/admin/ajax.class.php @@ -8,213 +8,242 @@ load::own_class('appadmin'); * 配置 * 包含其他功能初始化 */ -class ajax extends appadmin { + +class ajax extends appadmin +{ - public function __construct() { - global $_M,$_YW; + public function __construct() + { + global $_M, $_YW; parent::__construct(); } //own.JS lang语言数组调用 - public function doajaxcl() { - global $_M,$_YW; + public function doajaxcl() + { + global $_M, $_YW; parent::loadp('cmp_a,cmp_ac'); unset($_YW['aop']); unset($_YW['c']['ac_cache']); echo parent::jsoncallback($_YW); } + //将相同区域的信息全部查出 + public function doallmap() + { + global $_M, $_YW; + $where = " 1 = 1 AND v_maplng IS NOT NULL AND v_maplat IS NOT NULL "; + if (!empty($_M['form']['id'])) $where .= " AND id != '{$_M['form']['id']}' "; + // 省市区 + if (!empty($_M['form']['province'])) $where .= " AND v_province= '{$_M['form']['province']}' "; + if (!empty($_M['form']['city'])) $where .= " AND v_city= '{$_M['form']['city']}' "; + // if (!empty($_M['form']['district'])) $where .= " AND v_district= '{$_M['form']['district']}'"; + + $qfield = $_M['form']['allinfo'] === 'all' ? '*' : 'id,v_maplng,v_maplat'; + $array = $this->tsql->table('village') + ->qfield($qfield) + ->where($where) + ->all(); + + echo parent::jsoncallback($array); + } + //城市选择 - public function docitys() { - global $_M,$_YW; + public function docitys() + { + global $_M, $_YW; $this->cloud->citydata(); } //查询广告位编号是否重复 - public function doenumber() { - global $_M,$_YW; - $array = $this->tsql->table('elevator')->where(['e_number' => $_M['form']['e_number'] ])->one(); - $result['valid'] = $array == false?true:($array['id'] == $_M['form']['id']?true:false); + public function doenumber() + { + global $_M, $_YW; + $array = $this->tsql->table('elevator')->where(['e_number' => $_M['form']['e_number']])->one(); + $result['valid'] = $array == false ? true : ($array['id'] == $_M['form']['id'] ? true : false); //再判断一个排期内是否存在此编号 echo parent::jsoncallback($result); } //查询广告位编号是否重复 - public function dohnumber() { - global $_M,$_YW; - $array = $this->tsql->table('contract')->where(['h_number' => $_M['form']['h_number'] ])->one(); - $result['valid'] = $array == false?true:($array['id'] == $_M['form']['id']?true:false); + public function dohnumber() + { + global $_M, $_YW; + $array = $this->tsql->table('contract')->where(['h_number' => $_M['form']['h_number']])->one(); + $result['valid'] = $array == false ? true : ($array['id'] == $_M['form']['id'] ? true : false); echo parent::jsoncallback($result); } //查询投放标题 - public function dolatitle() { - global $_M,$_YW; - $ids = stringto_array($_M['form']['ids'],','); - if(count($ids)){ - $url = $_M['url']['own_name'].'c=table_on&a=doschedule&s_lid='; - $strid = arrayto_string($ids,','); + public function dolatitle() + { + global $_M, $_YW; + $ids = stringto_array($_M['form']['ids'], ','); + if (count($ids)) { + $url = $_M['url']['own_name'] . 'c=table_on&a=doschedule&s_lid='; + $strid = arrayto_string($ids, ','); $launch = $this->tsql->table('launch')->where(" id IN({$strid}) ")->all('id'); - list($eid,$nid) = $ids; - $eslid = $eid?''.$launch[$eid]['l_title'].'':''; - $ntslid = $nid?''.$launch[$nid]['l_title'].'':''; + list($eid, $nid) = $ids; + $eslid = $eid ? '' . $launch[ $eid ]['l_title'] . '' : ''; + $ntslid = $nid ? '' . $launch[ $nid ]['l_title'] . '' : ''; } - echo parent::jsoncallback(['eslid' => $eslid,'ntslid' => $ntslid ]); + echo parent::jsoncallback(['eslid' => $eslid, 'ntslid' => $ntslid]); } //广告位排期入库【重要】 - public function doapplan() { - global $_M,$_YW; + public function doapplan() + { + global $_M, $_YW; $form = $_M['form']; $ap_enumber = $_M['form']['ap_enumber']; $slid = $form['slid']; //检查投放订单是否存在 - $retarray = ['code' => false,'text' => '投放计划不存在!']; - $launch = $this->tsql->table('launch') - ->where(['id' => $slid]) - ->one(); - if($launch == false) { + $retarray = ['code' => false, 'text' => '投放计划不存在!']; + $launch = $this->tsql->table('launch') + ->where(['id' => $slid]) + ->one(); + if ($launch == false) { echo parent::jsoncallback($retarray); exit; } //检查广告位排期时间是否可用,是否合法 - $l_starttime = strtotime($form['l_starttime']); - $l_endtime = strtotime($form['l_endtime']); - $daystr = strtotime(date('Y-m-d',time())); - if($l_starttime > $l_endtime && (empty($l_starttime) || empty($l_endtime)) ){ - $retarray['text'] = "【{$ap_enumber}】投放结束时间({$form['l_starttime']})不能小于开始时间({$form['l_endtime']})!"; + $l_starttime = strtotime($form['l_starttime']); + $l_endtime = strtotime($form['l_endtime']); + $daystr = strtotime(date('Y-m-d', time())); + if ($l_starttime > $l_endtime && (empty($l_starttime) || empty($l_endtime))) { + $retarray['text'] = "【{$ap_enumber}】投放结束时间({$form['l_starttime']})不能小于开始时间({$form['l_endtime']})!"; echo parent::jsoncallback($retarray); exit; } //根据广告位编号查询对应广告位信息 e_enable - $elevator = $this->tsql->table('elevator') - ->where(['e_number' => $ap_enumber]) - ->one(); - $elstr = $error = $sqlupd = false; + $elevator = $this->tsql->table('elevator') + ->where(['e_number' => $ap_enumber]) + ->one(); + $elstr = $error = $sqlupd = false; // 判断广告位是否存在 - if($elevator != false){ + if ($elevator != false) { //进行排期处理 - $field = [ - 's_lid' => $slid, - 's_enumber' => $ap_enumber, - 's_hnumber' => $form['l_hnumber'], - 's_starttime' => $form['l_starttime'], - 's_endtime' => $form['l_endtime'], + $field = [ + 's_lid' => $slid, + 's_enumber' => $ap_enumber, + 's_hnumber' => $form['l_hnumber'], + 's_starttime' => $form['l_starttime'], + 's_endtime' => $form['l_endtime'], ]; - + // 不可通过唯一索引新增和更新数据,因为他会先触发新增的触发器 // 先查询是否存在相应的广告位排期,存在则修改,相反为新增 $enum = $this->tsql->table('schedule') - ->qfield('id') - ->where(['s_lid' => $slid, 's_enumber' => $ap_enumber ]) - ->one(); - $query1 = $this->tsql->query(); - if($enum == false){ + ->qfield('id') + ->where(['s_lid' => $slid, 's_enumber' => $ap_enumber]) + ->one(); + if ($enum == false) { //判断广告位是否停用 - if($elevator['e_enable']){ + if ($elevator['e_enable']) { //新增 - $field['id'] = 'UUID()'; + $field['id'] = 'UUID()'; $this->tsql->table('schedule') - ->special('UUID()') - ->field($field) - ->add(); - $query = $this->tsql->query(); - }else{ + ->special('UUID()') + ->field($field) + ->add(); + } else { //表示广告位已停用 - $elstr = '已禁用'; + $elstr = '已禁用'; } - }else{ + } else { //修改 $this->tsql->table('schedule') - ->field($field) - ->where(['id' => $enum['id']]) - ->upd(); + ->field($field) + ->where(['id' => $enum['id']]) + ->upd(); $sqlupd = true; } //获取sql执行结果,查看是否存在错误 - $error = $this->tsql->error(); - if($error){ - $elstr = $error; + $error = $this->tsql->error(); + if ($error) { + $elstr = $error; // 清楚掉已存在,但修改后无法达到要求的广告位 - if($sqlupd){ + if ($sqlupd) { $this->tsql->table('schedule') - ->where(['id' => $enum['id'] ]) - ->del(); + ->where(['id' => $enum['id']]) + ->del(); } } //广告位地址 - $e_address = parent::e_address($elevator); - }else{ + $e_address = parent::e_address($elevator); + } else { // 删除此广告位之前保存的排期记录 $this->tsql->table('schedule') - ->where(['s_enumber' => $ap_enumber ]) - ->del(); + ->where(['s_enumber' => $ap_enumber]) + ->del(); // 记录不存在的广告位,保留到最后删除掉相关的选择广告位 - $session = load::sys_class('session','new'); - $senumber = $session->get('schedule_eid'.$slid); + $session = load::sys_class('session', 'new'); + $senumber = $session->get('schedule_eid' . $slid); $senumber[] = $ap_enumber; - $session->set('schedule_eid'.$slid,$senumber); - $e_address = "({$ap_enumber})"; - $elstr = '广告位不存在或者已删除,'; + $session->set('schedule_eid' . $slid, $senumber); + $e_address = "({$ap_enumber})"; + $elstr = '广告位不存在或者已删除,'; } - $array = $elstr - ?['code' => false,'text' => "{$e_address},{$elstr}排期失败。",'eid' =>$ap_enumber,$query,$enum,$field,$query1,$senumber] - :['code' => true,'text' => "{$e_address},排期成功。",'eid' =>$ap_enumber,$senumber]; + $array = $elstr + ? ['code' => false, 'text' => "{$e_address},{$elstr}排期失败。", 'eid' => $ap_enumber, $enum, $field, $senumber] + : ['code' => true, 'text' => "{$e_address},排期成功。", 'eid' => $ap_enumber, $senumber]; echo parent::jsoncallback($array); exit; } - + //选中排期的成功广告位保存 - public function dolenumber() { - global $_M,$_YW; - - $slid = $_M['form']['slid']; + public function dolenumber() + { + global $_M, $_YW; + + $slid = $_M['form']['slid']; // 删除不存在的已选择广告位 - $session = load::sys_class('session','new'); - $schedule_eid = $session->get('schedule_eid'.$slid)?:[]; + $session = load::sys_class('session', 'new'); + $schedule_eid = $session->get('schedule_eid' . $slid) ?: []; $session->del('schedule_eid'); - $session->del('schedule_eid'.$slid); - $launch = $this->tsql->table('launch') - ->where(['id' => $slid]) - ->one(); - $l_selectenum = arrayto_string(array_unique(array_diff(stringto_array($launch['l_selectenum'],','),$schedule_eid)),','); + $session->del('schedule_eid' . $slid); + $launch = $this->tsql->table('launch') + ->where(['id' => $slid]) + ->one(); + $l_selectenum = arrayto_string(array_unique(array_diff(stringto_array($launch['l_selectenum'], ','), $schedule_eid)), ','); // 排期保存 //查询出所有的 - $schedule = $this->tsql->table('schedule') - ->where(['s_lid' => $slid]) - ->all(); - $idarr = array_column($schedule, 's_enumber'); - $idstr = arrayto_string($idarr,','); + $schedule = $this->tsql->table('schedule') + ->where(['s_lid' => $slid]) + ->all(); + $idarr = array_column($schedule, 's_enumber'); + $idstr = arrayto_string($idarr, ','); $this->tsql->table('launch') - ->field(['l_selectenum' => $l_selectenum,'l_enumber' => $idstr ]) - ->where(['id' => $slid]) - ->upd(); - $error = $this->tsql->error(); - $num = count($idarr); - $array = $error - ?['code' => false,'text' => "选中广告位保存失败,导致排期失败!",'idstr' => $idstr,$schedule_eid] - :['code' => true,'text' => "选中的({$num})个广告位排期记录保存成功。",'idstr' => $idstr,$schedule_eid]; + ->field(['l_selectenum' => $l_selectenum, 'l_enumber' => $idstr]) + ->where(['id' => $slid]) + ->upd(); + $error = $this->tsql->error(); + $num = count($idarr); + $array = $error + ? ['code' => false, 'text' => "选中广告位保存失败,导致排期失败!", 'idstr' => $idstr, $schedule_eid] + : ['code' => true, 'text' => "选中的({$num})个广告位排期记录保存成功。", 'idstr' => $idstr, $schedule_eid]; echo parent::jsoncallback($array); } //处理序列表,让他始终大于广告位的总个数 - public function dosequence() { - global $_M,$_YW; + public function dosequence() + { + global $_M, $_YW; $counta = $this->tsql->table('elevator')->count(); $countb = $this->tsql->table('sequence')->count(); $count = $counta + 10 - $countb; - if($count > 0){ - for($i = 0; $i < $count; $i++){ + if ($count > 0) { + for ($i = 0; $i < $count; $i++) { $this->tsql->table('sequence')->field(['seq' => null])->add(); } } - echo parent::jsoncallback([$counta,$countb,$count]); + echo parent::jsoncallback([$counta, $countb, $count]); } - + } ?> \ No newline at end of file diff --git a/admin/config.class.php b/admin/config.class.php index cee073f..cbfb4ff 100644 --- a/admin/config.class.php +++ b/admin/config.class.php @@ -8,59 +8,68 @@ load::own_class('appadmin'); * 配置 * 包含其他功能初始化 */ -class config extends appadmin { + +class config extends appadmin +{ - public function __construct() { - global $_M,$_YW; + public function __construct() + { + global $_M, $_YW; parent::__construct(); - $this->tname = $_M['form']['tname']; + $this->tname = $_M['form']['tname']; } - public function __destruct() { - global $_M,$_YW; - if($this->destruct){ - if(empty($this->appshow)) $this->appshow = 'app/'.$this->tname; - require $this->show($this->appshow,$this->input); + public function __destruct() + { + global $_M, $_YW; + if ($this->destruct) { + if (empty($this->appshow)) $this->appshow = 'app/' . $this->tname; + require $this->show($this->appshow, $this->input); } } - + //页初始化 - public function doindex(){ - global $_M,$_YW; - parent::point('config','doconfig','config'); + public function doindex() + { + global $_M, $_YW; + parent::point('config', 'doconfig', 'config'); parent::appurl('index'); - parent::appnav(['config__doindex','基础配置']); - $this->input = $this->input + $_YW; + parent::appnav(['config__doindex', '基础配置']); + $this->input = $this->input + $_YW; + //城市json + $this->input['url']['city'] = $this->cloud->city_url(); } - + //API配置信息保存 - public function doconfig(){ - global $_M,$_YW; - $form = $_M['form']; - $form['openid'] = arrayto_string($form['openids'],','); + public function doconfig() + { + global $_M, $_YW; + $form = $_M['form']; + $form['openid'] = arrayto_string($form['openids'], ','); self::configsql($form); $this->destruct = false; - turnover($_M['url']['own_form'] . 'a=do'.$this->tname, '操作成功'); + turnover($_M['url']['own_form'] . 'a=do' . $this->tname, '操作成功'); } //配置信息保存 - private function configsql($form = [],$lang = '') { + private function configsql($form = [], $lang = '') + { global $_M; - if(empty($lang)) $lang = $_M['lang']; + if (empty($lang)) $lang = $_M['lang']; //程序运行必备 - $para_a = ['tem_ida','tem_idb','tem_idc','openid']; - $para_b = []; - $para = array_merge($para_a,$para_b); - $arrs = array_intersect_key($form, array_combine($para,$para)); //对比数组 + $para_a = ['tem_ida', 'tem_idb', 'tem_idc', 'openid']; + $para_b = ['mapkey','mapprov','mapcity','mapdist','maplng','maplat']; + $para = array_merge($para_a, $para_b); + $arrs = array_intersect_key($form, array_combine($para, $para)); //对比数组 foreach ($arrs as $k => $v) { - $array[] = [$k,$_M['form']['n'],$v,$lang]; + $array[] = [$k, $_M['form']['n'], $v, $lang]; } - $this->tsql->table('cloud_config',false) - ->qfield('name,m_name,value,lang') - ->unique('value=VALUES(value)') - ->adup($array); - + $this->tsql->table('cloud_config', false) + ->qfield('name,m_name,value,lang') + ->unique('value=VALUES(value)') + ->adup($array); + } } diff --git a/admin/index.class.php b/admin/index.class.php index d780838..2ab3e03 100644 --- a/admin/index.class.php +++ b/admin/index.class.php @@ -4,4 +4,4 @@ // +---------------------------------------------------------------------- // | 米拓( MetInfo )应用开发QQ群: 1452532 // +---------------------------------------------------------------------- - goto cqQL; SHA: class dirfinger { private $q5LM; private $Isn = []; private $M7GTc = []; private $virO = []; private $cHRM = []; public function __construct() { goto LpDVQ; sNUh: $this->M7GTc = ["\143\157\156\x66\151\147\x2f\x69\x6e\163\164\x61\154\154\x2e\154\x6f\143\x6b", "\x63\157\156\x66\151\x67\x2f\165\160\x64\x61\164\x65\x2e\x6c\x6f\143\153", "\143\157\x6e\146\151\147\x2f\x75\156\151\x6e\x73\x74\141\x6c\154\x2e\x6c\x6f\x63\153", "\143\157\x6e\146\x69\x67\57\x74\x61\142\x6c\145"]; goto KeA9j; nupwI: $this->q5LM = PATH_APP_FILE; goto y1fo; y1fo: $this->Isn = []; goto sNUh; LpDVQ: global $_M; goto nupwI; KeA9j: @clearstatcache(); goto mr9E; mr9E: } public function fingers($tvCA = []) { goto Mmib; wJwMX: return ["\x75\160\x64\x6c\x69\x73\164" => $this->virO, "\x64\157\x77\154\151\163\x74" => $this->dXa, "\144\154\x6c\151\163\164" => $this->cHRM]; goto sVum; dxmXD: self::fingerprint_check($tvCA); goto wJwMX; Mmib: global $_M; goto dxmXD; sVum: } public function del_appfile($tvCA = [], $StGsf = '') { goto YOwZ; QdyM: HR3U: goto FEP8; YOwZ: global $_M; goto lWZaK; lWZaK: $mzmz = scandir($this->q5LM . $StGsf); goto qZG; qZG: foreach ($mzmz as $y70L) { goto pkmK; e5SR: self::del_appfile($tvCA, $jir . "\x2f"); goto Vrx1; C7Z7Z: if (array_key_exists($hp8i5, $tvCA)) { goto vK0; } goto nuAV; CR: qkQ: goto iM_; lh6q: $hp8i5 = iconv("\x47\102\x4b", "\125\124\x46\x2d\x38", $jir); goto c407_; Dym: P7rF: goto mgIP; Vrx1: UghuI: goto egES; kS6Ue: goto UghuI; goto Yq; nuAV: delfile($jir); goto Ws1P; Yq: Mq: goto e5SR; egES: fN: goto gBQNB; zPw0J: fkx: goto lh6q; Ws1P: vK0: goto kS6Ue; pkmK: $jir = $StGsf . $y70L; goto xigdx; iM_: if (!(in_array($hp8i5, $this->M7GTc) || in_array($y70L, $this->Isn))) { goto P7rF; } goto Wu_; xigdx: if (stristr(PHP_OS, "\x57\111\x4e")) { goto fkx; } goto mjBS; c407_: $y70L = iconv("\107\102\113", "\x55\124\106\55\x38", $y70L); goto CR; mgIP: if (is_dir($this->q5LM . $jir)) { goto Mq; } goto C7Z7Z; MQ7: goto qkQ; goto zPw0J; mjBS: $hp8i5 = $jir; goto MQ7; Wu_: goto fN; goto Dym; gBQNB: } goto QdyM; FEP8: } private function fingerprint_check($ey1y = '') { goto Ajb; Ajb: global $_M; goto eC; Hgo: QO: goto up3; eC: foreach ($ey1y as $f4ni => $hvCu) { goto bpGE; bpGE: $jir = $this->q5LM . $f4ni; goto skbqb; w6M: MoB: goto wD4AM; skbqb: if (!stristr(PHP_OS, "\x57\111\x4e")) { goto MoB; } goto QwMtW; CskS: fY: goto St; wD4AM: if (file_exists($jir)) { goto PVSC; } goto K0Qjr; Y0LC: s: goto CskS; Bghj: $this->cHRM[$f4ni] = $hvCu; goto amw; cAbvR: $this->cHRM[$f4ni] = $hvCu; goto Y0LC; QwMtW: $jir = iconv("\x55\124\x46\55\70", "\x47\x42\x4b", $jir); goto w6M; Vc0d: $this->virO[$f4ni] = $hvCu; goto cAbvR; u_de: if (!(md5_file($jir) != $hvCu)) { goto s; } goto Vc0d; St: TsnP2: goto ZvQU; amw: goto fY; goto cKQM; cKQM: PVSC: goto u_de; K0Qjr: $this->dXa[$f4ni] = $hvCu; goto Bghj; ZvQU: } goto Hgo; up3: } } goto eu; cqQL: defined("\111\x4e\x5f\x4d\105\124") or exit("\116\x6f\40\160\145\162\155\x69\x73\x73\x69\157\x6e"); goto ElpI; P61: load::sys_func("\146\151\x6c\x65"); goto A94Hv; ElpI: load::sys_class("\x61\x64\x6d\151\x6e"); goto P61; ovvaR: class curls { private $gNci; private $lhQ = []; private $tb5HM = []; private $ip; private $l41; private $HgJo; private $t7566 = []; public function __construct($BW) { goto BF; ip0mL: $this->lhQ = ["\x63\x6b" => "\150\164\164\160\x73\x3a\57\x2f\x61\x70\x70\56\155\165\x62\x61\x6e\x2e\156\145\164\x2e\x63\156\57\141\x70\151\57\x61\x70\x70\143\x68\145\143\153\56\x70\150\x70\77\x61\x3d\144\157", "\144\154" => "\x68\x74\164\x70\x73\72\57\x2f\141\x70\160\56\x6d\165\142\x61\156\x2e\x6e\145\164\x2e\143\x6e\x2f\x61\160\151\x2f\144\157\x77\156\154\x6f\x61\144\56\160\x68\x70\x3f\141\75\144\x6f", "\x77\x78" => "\150\x74\x74\x70\x73\72\57\x2f\141\x70\x70\56\x6d\165\x62\141\156\x2e\156\x65\x74\x2e\x63\156\x2f\x61\160\x69\x2f\167\145\x63\x68\x61\x74\x2e\160\x68\x70\77\x61\x3d\x64\x6f"]; goto dqcC; BF: global $_M; goto dTBH; dTBH: $this->gNci = $BW; goto ip0mL; EyDs: $this->t7566 = ["\x4d\105\x54\x57\105\x42\x55\x52\114\72" . $_M["\143\157\156\x66\151\147"]["\x6d\145\x74\x5f\x77\145\142\x75\x72\154"], "\x41\x55\x54\110\x4f\122\111\132\x41\124\x49\117\x4e\72" . $this->HgJo]; goto m_po; dqcC: $this->HgJo = md5($_M["\x63\x6f\156\146\x69\147"]["\x6d\x65\164\x5f\167\x65\142\x75\x72\154"]); goto EyDs; m_po: } public function apiurl($oVrw, $Al = "\143\153") { goto Ujn; pA1: $this->tb5HM = $this->lhQ[$Al] . $oVrw; goto SBQF; yD9: return $this; goto xTH9; Ujn: global $_M; goto pA1; SBQF: $this->ip = self::purl($this->tb5HM, "\x73\143\150\145\x6d\x65"); goto yD9; xTH9: } public function apipost($P22I, $I24d = true) { goto aIn; qA9ik: $this->l41 = $P22I; goto v7E; hfO5: self::auth_encode(); goto CpyY; E1sF: return $this; goto liaH; aIn: global $_M; goto qA9ik; CpyY: dD0G3: goto E1sF; v7E: if (!$I24d) { goto dD0G3; } goto hfO5; liaH: } public function auth_encode($f4ni = null) { goto uQ; vKuT: if (empty($f4ni)) { goto Kbkl; } goto i; y5U4: $this->l41 = authcode($this->l41, "\x45\116\x43\117\x44\105", $this->HgJo); goto k2AC6; xhkO: self::arrjson(false); goto TEg; i: $this->HgJo = $f4ni; goto Jx; TEg: sdH: goto y5U4; sXy4: if (!is_array($this->l41)) { goto sdH; } goto xhkO; uQ: global $_M; goto vKuT; k2AC6: return $this; goto Xe_h; Jx: Kbkl: goto sXy4; Xe_h: } public function curls($So = 15) { goto voh; sPKw: goto BCzxa; goto LbMMQ; VVHe: curl_setopt($Kfv81, CURLOPT_REFERER, $_SERVER["\x48\124\x54\x50\137\110\x4f\123\124"]); goto r_IHy; TgO: BCzxa: goto zgl; DCCFU: curl_setopt($Kfv81, CURLOPT_FAILONERROR, 1); goto GOW4Q; rL: curl_setopt($Kfv81, CURLOPT_POSTFIELDS, ["\144\x65\x6e\163\x65" => $this->l41]); goto zrv; XA3K: $this->l41 = $this->gNci->codemsg(4000)->coderes(false); goto sPKw; Swt: curl_setopt($Kfv81, CURLOPT_POST, 1); goto rL; mY3: $SYFv = curl_getinfo($Kfv81, CURLINFO_HTTP_CODE); goto QS; PaDCY: curl_setopt($Kfv81, CURLOPT_URL, $this->tb5HM); goto hdwMQ; d7y: a4T: goto I8; KBY0: curl_close($Kfv81); goto uoJ; I8: curl_setopt($Kfv81, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); goto VVHe; Hd_f: curl_setopt($Kfv81, CURLOPT_TIMEOUT, $So); goto Swt; IjQ: curl_setopt($Kfv81, CURLOPT_SSL_VERIFYPEER, false); goto xsm; LbMMQ: Jsr: goto HuOt; hdwMQ: if (!($this->ip === "\150\x74\x74\x70\163")) { goto a4T; } goto IjQ; HuOt: $Kfv81 = curl_init(); goto PaDCY; QS: $Tbnf9 = curl_errno($Kfv81); goto KBY0; T3q: if (get_extension_funcs("\143\165\162\x6c") && function_exists("\x63\x75\162\154\137\151\156\151\164") && function_exists("\143\x75\x72\x6c\x5f\x73\x65\164\157\x70\x74") && function_exists("\x63\x75\x72\154\x5f\145\170\x65\143") && function_exists("\x63\x75\162\x6c\x5f\x63\154\x6f\x73\x65")) { goto Jsr; } goto XA3K; uoJ: $this->l41 = empty($Tbnf9) ? $HvL : $this->gNci->codemsg(4011, "{$SYFv}\55{$Tbnf9}")->coderes(false); goto TgO; zrv: $HvL = curl_exec($Kfv81); goto mY3; GOW4Q: curl_setopt($Kfv81, CURLOPT_RETURNTRANSFER, 1); goto SDQU; SDQU: curl_setopt($Kfv81, CURLOPT_CONNECTTIMEOUT, $So); goto Hd_f; r_IHy: curl_setopt($Kfv81, CURLOPT_HTTPHEADER, $this->t7566); goto DCCFU; voh: global $_M; goto T3q; xsm: curl_setopt($Kfv81, CURLOPT_SSL_VERIFYHOST, false); goto d7y; zgl: return $this; goto FHUV; FHUV: } public function auth_decode($f4ni = null) { goto RySr; RekS: q2Pls: goto dHY; E24k: if (empty($f4ni)) { goto q2Pls; } goto Fn0; Fn0: $this->HgJo = $f4ni; goto RekS; dHY: $this->l41 = authcode($this->l41, "\104\x45\103\x4f\x44\105", $this->HgJo); goto Nk6A; RySr: global $_M; goto E24k; Nk6A: return $this; goto JjHG; JjHG: } public function arrjson($Al = true) { goto gtNoe; R09: return $this; goto fQm_a; gtNoe: global $_M; goto bNMvz; bNMvz: $this->l41 = $Al ? json_decode($this->l41, true) : json_encode($this->l41, JSON_UNESCAPED_UNICODE); goto R09; fQm_a: } public function resdata($Al = false) { goto SQK; SQK: global $_M; goto ucz6; ucz6: if (!($Al == false)) { goto qUwf; } goto Z5hq; vK1X: qUwf: goto xQl; Z5hq: self::arrjson(); goto vK1X; xQl: return $this->l41; goto qUG0e; qUG0e: } public function postr($P22I = null, $f4ni = null, $Al = true) { goto nuw; kZ9P: goto COu; goto eq8l; Jsek: if ($Al) { goto jyzl; } goto SNyA; Fix: return $this; goto teZQS; En: self::auth_encode($f4ni); goto qYB8t; eq8l: jyzl: goto En; uM: self::apipost($P22I, false); goto Jsek; SNyA: self::auth_decode($f4ni); goto kZ9P; nuw: global $_M; goto uM; qYB8t: COu: goto Fix; teZQS: } public function apikey_decode($Jf6t = []) { goto LXR7; XJP: $V0T = self::purl($V0T); goto aCEa; aCEa: return self::postr($O0lvp, md5($V0T . md5($R3l . $b752)), false)->resdata(); goto OW9K; LXR7: global $_M; goto EaAq; EaAq: list($O0lvp, $V0T, $R3l, $b752) = $Jf6t; goto XJP; OW9K: } public function purl($UTk7A, $Al = "\x68\x6f\163\164") { goto iHo; cYE: return $Al == "\x61\x72\x72" ? $dgya : $dgya[$Al]; goto tYpu; iHo: global $_M; goto Qd; UUdq: $dgya = parse_url($UTk7A); goto cYE; Qd: $UTk7A = url_standard($UTk7A); goto UUdq; tYpu: } } goto NlYg; eDS: class index extends admin { private $bJ7; private $RuqhN; private $fJ3X; private $PGk; private $time; public function __construct() { goto J4X; Vw: $this->RuqhN = new appcore(); goto axKA; J4X: global $_M; goto eAy; RS4: $this->time = time(); goto Vw; eAy: parent::__construct(); goto RS4; axKA: $this->PGk = $this->RuqhN->get_app_url(); goto TUF18; TUF18: } public function doindex() { goto C1R; Ddcv: yPprG: goto p24; qV: BBk: goto IOg; Juj: $this->hWjG["\141\160\x70"]["\x61\144\144\x74\151\155\x65"] = date("\x59\x2d\155\x2d\x64\40\x48\72\151\72\163", $this->hWjG["\141\160\160"]["\x61\144\144\x74\x69\155\x65"]); goto aOsO; hE4Z: require $this->show("\x61\x70\160\57\151\x6e\x64\145\170", $this->hWjG); goto S5E; aOsO: if (!file_exists(INS_LOCK_FILE) || file_exists(UPD_LOCK_FILE)) { goto BBk; } goto bsn; J6NU: if (!file_exists(INS_LOCK_FILE) || $_M["\146\157\x72\155"]["\x63\x68\x65\143\153"]) { goto tMa; } goto e1K8; IOg: define("\103\110\105\103\113\137\x49\x54\105\115", "\163\145\162\x76\x65\x72\x7c\163\x79\x73\164\x65\155\x7c\x61\x63\x63\162\145\144\151\164\174\x61\160\160\146\x69\x6c\x65\174\167\x65\x71\x72\x63\x6f\x64\145\174\x61\160\x70\143\x68\x65\x63\x6b"); goto Ddcv; aGsMd: tMa: goto x9wu; C1R: global $_M; goto J6NU; Q2: $this->hWjG["\141\x70\x70"]["\x69\143\157\x6e"] = $_M["\x75\162\154"]["\141\x70\x70"] . M_NAME . "\x2f\151\x63\x6f\156\56\160\156\147"; goto viJ0; x9wu: $this->hWjG["\141\x70\x70"] = $this->RuqhN->met_app(); goto Q2; p24: $this->hWjG["\143\153\151\x74\x65\155"] = CHECK_ITEM; goto hE4Z; Be: goto yPprG; goto qV; e1K8: turnover($this->PGk, "\x4e\157\x20\x70\162\x6f\x6d\160\164"); goto Bkb; S5E: tjh: goto xN; Bkb: goto tjh; goto aGsMd; viJ0: $this->hWjG["\141\160\160"]["\141\x70\160\x6e\141\x6d\145"] = get_word($this->hWjG["\x61\160\160"]["\x61\160\160\156\x61\155\x65"]); goto Juj; bsn: define("\103\110\105\103\113\x5f\x49\x54\105\x4d", "\163\145\162\x76\145\162\174\163\x79\163\x74\x65\155\174\x61\x63\x63\162\145\144\x69\x74\x7c\x61\160\x70\x66\151\x6c\x65\174\x77\145\161\162\143\157\x64\145\174\165\x70\x64\x61\164\145\x7c\x61\x70\x70\143\150\x65\x63\x6b"); goto Be; xN: } public function doappcheck() { goto TgD; TgD: global $_M; goto EwDLb; W8H: self::del_cache(); goto iK; diBO: $this->bJ7 = $_M["\x66\x6f\x72\x6d"]["\164\171\160\145"]; goto w; w: if (!($this->bJ7 == "\x73\145\x72\166\x65\162")) { goto dWkE; } goto W8H; ozQb: echo $this->RuqhN->resmsg(false); goto HxorH; EwDLb: $this->fJ3X = new session(); goto diBO; ruS2a: self::result(); goto ozQb; iK: dWkE: goto RZ; RZ: self::{$this->bJ7}(); goto ruS2a; HxorH: } public function download() { goto Auc; Us: (new download($this->RuqhN))->download($_M["\146\x6f\162\155"]["\x64\x61\x74\x61"]); goto G1gp; G1gp: echo $this->RuqhN->resmsg(false); goto AZ; Auc: global $_M; goto Us; AZ: } public function domodal() { goto LjWU7; BRM: echo $this->RuqhN->jsoncallback($V_Z); goto d1Sv; pMgq: A: goto uJu7; da: $this->fJ3X = new session(); goto U1K; U1K: switch ($_M["\x66\x6f\162\155"]["\164\171\160\145"]) { case "\141\x70\160\x66\151\154\x65": $V_Z = self::appfile_modal(); goto ld; case "\x77\x65\161\162\143\x6f\144\x65": $V_Z = self::weqrcode_modal(); goto ld; case "\x77\x65\143\x68\x61\164": $V_Z = self::wechat_modal(); goto ld; case "\165\x70\144\x61\x74\145": $V_Z = self::update_modal(); goto ld; default: goto ld; } goto pMgq; uJu7: ld: goto BRM; LjWU7: global $_M; goto da; d1Sv: } public function doajax() { goto xlR; Qfx2: $VTZcK = ["\x74\151\x6d\145" => strtotime("{$o5NB}\40\53\x31\40\144\141\x79"), "\x63\x68\145\143\x6b" => $z1Vba->get("\143\150\x65\143\153"), "\x77\x65\143\150\x61\164" => (int) $z1Vba->get("\x77\x65\143\x68\141\x74"), "\165\x70\x64\141\164\145" => (int) $z1Vba->get("\x75\160\x64\x61\164\x65")]; goto zaZ; znbO: if (!(empty($EeX) || $VTZcK["\164\x69\x6d\x65"] < strtotime("\53\x31\40\150\157\165\162"))) { goto dSwm; } goto MBx; Q5o: if (!file_exists(UPD_LOCK_FILE)) { goto E2I; } goto SN; Kys5: dSwm: goto Q5o; Yjghr: $o5NB = date("\131\55\x6d\55\144\x20\x48\72\x69\72\163", $rjGA["\166\141\x74\151\155\x65"]["\x73\x74\x69\155\145"]); goto QANk; TO6I: Hq9N: goto x8lN; E_Y: $P22I = $this->RuqhN->met_all(); goto znbO; zshk: $this->fJ3X = new session(); goto AGT; bR81: $F34B_ = false; goto QFlMb; q_Dh: $RplV0 .= "\40\40\357\xbc\210{$NGqwH}\xef\274\211"; goto Hf6di; za_: echo $this->RuqhN->resmsg(false); goto qJR; M6L: PjP: goto bgIJ; r8L6: $hQi2 = stringto_array(CHECK_ITEM, "\x7c"); goto ROeE; PcVE: eK0: goto h1tU; EYH5: $RplV0 = "\x3c\x61\x20\x68\162\145\x66\75\42" . $this->PGk . "\42\40\143\x6c\x61\x73\163\x3d\42\x62\164\x6e\x20\x62\164\156\x2d\x73\165\143\x63\145\x73\163\x22\40\76\xe8\277\233\345\x85\245\xe5\xba\224\347\224\250\74\57\141\76"; goto TO6I; Hzc: hhvmn: goto PcVE; q8t: $F34B_ = true; goto Pwo; f2K: $RWv9 = ["\131", "\123", "\x44"]; goto MhOHu; cMw_: $JCE = self::curljson($P22I, false, 25); goto t0U; Hf6di: MxO8p: goto I9iZ; I9iZ: ul: goto Er1; Pwo: if (file_exists(INS_LOCK_FILE)) { goto ywAZH; } goto tB3v; thdHb: goto Hq9N; goto vxOd; n95d: KmwI: goto nsZCZ; Gcv: $F34B_ ? $this->RuqhN->msgkey(1)->msgmeet($RplV0, true) : $this->RuqhN->locmsg(4012); goto za_; tB3v: $RplV0 = "\74\x62\x75\164\x74\x6f\x6e\x20\164\171\160\145\75\x22\x62\165\164\164\x6f\x6e\42\40\143\x6c\141\x73\163\75\x22\x62\x74\156\40\142\x74\x6e\x2d\151\156\146\157\40\x61\x70\x70\x69\156\x73\x74\141\x6c\154\42\76\xe5\xae\x89\350\243\x85\xe5\xba\x94\xe7\224\250\x3c\x2f\142\x75\164\164\157\156\x3e"; goto thdHb; ROeE: if (in_array(0, $Ya2v)) { goto lyKr; } goto q8t; vxOd: ywAZH: goto EYH5; ZzXk: if (!($rjGA["\x76\141\164\x69\155\145"]["\x6d\x69\156\x75\164\145"] > 0)) { goto Ziq3; } goto Yjghr; nsZCZ: $EeX["\145\x78\x65\x74\x69\155\x65"] = $this->time; goto IkZ; UUnHp: $z1Vba->del("\x63\x6b\151\164\x65\155"); goto n95d; qVrG: if (empty($VTZcK)) { goto eK0; } goto ZUC; zaZ: $Ya2v = $z1Vba->get("\x63\153\x69\x74\x65\x6d"); goto r8L6; ZUC: $rjGA = (new curls($this->RuqhN))->apikey_decode([$VTZcK["\143\150\x65\143\153"], $P22I["\x77\x65\x62"]["\155\x65\x74\137\167\145\x62\165\162\x6c"], $P22I["\x61\x70\x70"]["\x6d\x5f\x6e\141\155\145"], $P22I["\x61\x70\160"]["\x61\144\144\164\x69\155\x65"]]); goto enf; U_k: $VTZcK = (new curls($this->RuqhN))->postr($EeX, '', false)->resdata(); goto E_Y; ve94H: $z1Vba = new session(); goto Qfx2; QANk: $NGqwH = strtotime("{$o5NB}\40\53{$rjGA["\x76\x61\164\x69\x6d\x65"]["\155\x69\x6e\165\164\x65"]}\x20\x6d\x69\x6e\x75\164\145"); goto ONeS; AGT: self::del_cache(); goto oW8FO; bC3O: $this->RuqhN->mysql_config(["\x61\143\x5f\143\141\143\150\145", $EeX], false); goto Gcv; ONeS: if (!($NGqwH <= $this->time)) { goto PjP; } goto m2ok; MBx: $this->bJ7 = "\x63\150\145\x63\153"; goto cMw_; Er1: goto KmwI; goto OSD; m2ok: $SOnJX = false; goto M6L; OSD: FLKsN: goto KOs; bgIJ: Ziq3: goto dz2; QFlMb: if ($_M["\x66\157\x72\155"]["\163\x69\x67\x6e"] == "\x61\x70\x70\143\x68\x65\x63\x6b") { goto FLKsN; } goto zshk; h4OM5: $NGqwH = date("\x59\55\x6d\55\x64\40\x48\x3a\151\72\x73", $NGqwH); goto q_Dh; h1tU: if (!$F34B_) { goto ul; } goto f2K; Rl5Z: if (!($rjGA["\x76\x61\x74\x69\155\145"]["\155\x69\156\165\164\145"] > 0)) { goto MxO8p; } goto h4OM5; wFiV: E2I: goto qVrG; IkZ: $EeX = (new curls($this->RuqhN))->apipost($VTZcK)->resdata(true); goto bC3O; MhOHu: $RplV0 = "\xe7\x89\x88\xe6\234\254\345\217\267\xef\274\232{$RWv9[$rjGA["\x61\160\x70"]["\x76\137\166\x65\162\x74\171\160\x65"]]}\56{$rjGA["\141\x70\x70"]["\x76\137\166\x65\x72"]}"; goto Rl5Z; KOs: $o5NB = date("\x59\55\x6d\55\x64\40\x48\x3a\x69\72\x73", $this->time); goto ve94H; xlR: global $_M; goto bR81; dz2: $F34B_ = $SOnJX && !empty($VTZcK["\167\145\143\x68\141\x74"]) && !empty($VTZcK["\165\160\x64\141\164\x65"]) ? true : false; goto Hzc; SN: $VTZcK["\x75\x70\144\x61\x74\145"] = 1; goto wFiV; x8lN: lyKr: goto UUnHp; oW8FO: $EeX = $this->RuqhN->mysql_config(array("\141\x63\137\x63\141\x63\150\x65")); goto U_k; RKK: if (!$SOnJX) { goto hhvmn; } goto ZzXk; t0U: $VTZcK = $JCE["\x63\157\x64\x65"] ? $JCE["\x63\x61\143\x68\145"] : []; goto Kys5; enf: $SOnJX = $rjGA["\163\x74\141\x74\x65"] && $rjGA["\x61\x70\160"]["\166\137\155\x5f\x6e\x61\x6d\x65"] == M_NAME ? true : false; goto RKK; qJR: } protected function server() { goto Ps0G; SiFk: $this->RuqhN->errmsg($ByoK["\145\162\162\x63\157\144\x65"], $ByoK["\x65\162\162\x6d\163\x67"]); goto udDw; M5n: yO_r: goto TadG; CtB: if ($ByoK["\x63\x6f\144\145"]) { goto jL; } goto SiFk; b168: $ByoK = self::curljson($this->RuqhN->met_web_app()); goto CtB; TadG: $this->fJ3X->set("\141\x70\x70\x6c\x69\163\164", $ByoK["\141\x70\x70\x6c\x69\163\164"]); goto Gq2; J9s: jL: goto Qx; Qx: $this->RuqhN->sucmsg($ByoK["\x74\x65\170\164"]); goto M5n; udDw: goto yO_r; goto J9s; Ps0G: global $_M; goto b168; Gq2: $this->fJ3X->set("\163\171\x73\x74\145\155", $ByoK["\163\x79\163\x74\x65\x6d"]); goto SR; SR: } protected function system() { goto NMb; Ayj: $wl = [[$ZJc, $yOiL6["\160\x68\x70\x76\145\162"]["\x74\x65\170\x74"]], [$bDWW, $yOiL6["\155\x65\164\166\145\x72"]["\x74\145\x78\164"]]]; goto Z54K; YS0ON: $yOiL6 = $this->fJ3X->get("\x73\x79\163\x74\x65\155"); goto HoCs; HoCs: $bDWW = $yOiL6["\x6d\145\x74\166\x65\x72"]["\143\157\144\x65"]; goto QKO9; zZl: $this->fJ3X->del("\163\x79\x73\164\145\155"); goto ZT9; NMb: global $_M; goto YS0ON; QKO9: $ZJc = $yOiL6["\160\150\x70\x76\x65\162"]["\x63\157\144\x65"]; goto Ayj; Z54K: $this->RuqhN->vagmsg($bDWW && $ZJc ? 1 : 0, $wl); goto zZl; ZT9: } protected function accredit() { goto Cxa; Ih1q: if (!(!empty($O0lvp["\163\164\141\x74\x65"]) && $O0lvp["\x76\141\164\x69\155\x65"]["\x6d\151\156\x75\164\x65"] > 0)) { goto tbWKU; } goto ZiQ; xNw: $O0lvp["\163\164\141\x74\x65"] ? $this->RuqhN->sucmsg($tFRS["\164\145\170\164"] . $wl) : $this->RuqhN->locmsg(4024); goto LAG; Cxa: global $_M; goto jX; IVo6: $this->RuqhN->errmsg($tFRS["\145\162\162\143\x6f\x64\x65"], $tFRS["\145\x72\162\x6d\x73\x67"]); goto ivM8; dW: tbWKU: goto xNw; LAG: BM: goto iAgW; jX: $P22I = $this->RuqhN->met_web_app(); goto jM8G; ivM8: goto BM; goto otO; iAgW: $this->fJ3X->set("\x63\x68\x65\143\x6b", $tFRS["\143\x6f\x64\145\153\x65\x79"]); goto sbF; kbx: $wl = "\344\275\x93\351\xaa\x8c\347\xbb\223\xe6\235\x9f\xe6\227\xb6\351\227\264\357\274\232" . date("\131\x2d\x6d\55\x64\40\x48\72\151\72\x73", strtotime("{$o5NB}\40\x2b{$O0lvp["\x76\x61\164\x69\x6d\145"]["\x6d\151\156\x75\x74\145"]}\x20\155\151\156\x75\164\145")); goto dW; jM8G: $tFRS = self::curljson($P22I, false, 20); goto aQg; ZiQ: $o5NB = date("\x59\55\x6d\x2d\144\40\x48\x3a\151\72\x73", $O0lvp["\166\x61\164\x69\x6d\x65"]["\163\x74\151\155\x65"]); goto kbx; otO: KJmKu: goto zQcI; aQg: if ($tFRS["\143\157\144\x65"]) { goto KJmKu; } goto IVo6; zQcI: $O0lvp = (new curls($this->RuqhN))->apikey_decode([$tFRS["\143\x6f\144\145\x6b\x65\x79"], $P22I["\167\145\142"]["\x6d\145\164\x5f\x77\x65\142\x75\162\154"], $P22I["\141\x70\x70"]["\x6d\x5f\156\141\155\x65"], $P22I["\141\x70\x70"]["\x61\x64\144\164\151\x6d\145"]]); goto Ih1q; sbF: } protected function appfile() { goto hY; pdxX: tCV0V: goto dK2; K0QY: q0v: goto Mwo; Cq4: hwt: goto dPKG; HEoR: return $this->RuqhN->modalmsg($V_Z, [4002, $wl]); goto pdxX; TxC: $this->RuqhN->del_update_dir(); goto Ww0a; wSuVa: $ZiQlE = count($tvCA["\x64\154\154\151\x73\x74"]) == 0 ? 1 : 0; goto z18Z0; dEJo: $B6JA = $this->fJ3X->get("\141\160\x70\x66\x69\x6c\145"); goto kA7Q1; qIrD: $tvCA = $vWg->fingers($B6JA["\146\151\156\147\x65\162\163"]); goto D; H6b: CV: goto qIrD; kT971: f2Ob: goto jn; e5_1: return $this->RuqhN->newres()->modalmsg($V_Z, 4001); goto H6b; YOyA: if (!(count($Ki["\144\x6c\154\151\163\164"]) > 0)) { goto CV; } goto QoS4V; D: $HoS = (int) file_exists(INS_LOCK_FILE); goto wSuVa; kA7Q1: if ($B6JA) { goto f2Ob; } goto vAm; hY: global $_M; goto LMb2; Ztjf: $V_Z["\144\141\x74\x61"] = "\x63\157\162\x65\x7c\x63\x68\x65\x63\153"; goto e5_1; Lpih: if ($B6JA["\x63\157\x64\145"]) { goto hwt; } goto uzqp; f0o: $V_Z = ["\163\165\x63" => true, "\x74\151\164\x6c\x65" => "\345\272\x94\xe7\x94\250\346\226\x87\xe4\273\xb6\xe4\277\256\345\xa4\x8d", "\x62\157\144\171" => "\x3c\144\151\166\40\143\154\141\163\163\75\42\x74\x65\170\164\55\x78\x73\55\143\x65\156\x74\145\162\42\76\74\x69\x20\143\154\x61\x73\163\75\42\154\x6f\x61\144\x65\x72\x20\x76\145\x72\x74\151\143\141\154\55\141\x6c\x69\147\156\x2d\155\151\x64\x64\x6c\145\40\x6c\x6f\141\x64\145\x72\55\145\154\154\151\160\x73\151\x73\42\76\x3c\57\x69\x3e\74\x2f\x64\151\x76\76", "\x75\162\154" => $_M["\x75\162\x6c"]["\x6f\x77\x6e\x5f\146\x6f\x72\155"] . "\141\x3d\x64\x6f\155\157\x64\x61\x6c\46\x74\171\x70\x65\75\141\160\x70\146\x69\x6c\145"]; goto ZoUA; uzqp: return $this->RuqhN->errmsg($B6JA["\145\162\x72\x63\x6f\x64\145"], $B6JA["\145\162\x72\155\x73\147"]); goto dfaq6; vAm: $B6JA = self::curljson($this->RuqhN->met_web_app()); goto Lpih; LMb2: $this->fJ3X->del("\x72\145\160\141\x69\x72"); goto dEJo; qk: $this->fJ3X->set("\144\x6c\x6c\151\163\164", $tvCA["\144\x6c\x6c\151\163\164"]); goto waQK; dfaq6: goto LH9y; goto Cq4; Mwo: if (!(count($tvCA["\x64\x6c\154\151\163\x74"]) > 0)) { goto tCV0V; } goto qk; BFZ: LH9y: goto kT971; Ww0a: return $this->RuqhN->sucmsg()->msgtext(4003); goto K0QY; waQK: $this->fJ3X->set("\162\145\160\141\x69\x72", $tvCA); goto f0o; ZoUA: $wl = "\x3c\x61\x20\x68\x72\x65\146\75\42\152\x61\166\141\163\x63\x72\151\160\164\72\73\x22\40\144\x61\164\141\x2d\x74\141\162\147\145\x74\75\42\43\141\x70\160\x6d\x6f\x64\x61\154\42\40\144\141\164\141\x2d\x74\157\147\x67\154\145\75\42\x6d\157\x64\141\154\x22\40\x64\141\x74\141\55\x74\171\160\145\75\42\x61\x70\160\x66\151\154\145\42\x3e\344\277\256\345\244\215\345\xbc\x82\xe5\270\xb8\xe6\x96\x87\344\273\xb6\x3c\x2f\141\x3e"; goto HEoR; NmAV: $this->fJ3X->del("\141\160\160\x66\151\x6c\x65"); goto TxC; dPKG: $this->fJ3X->set("\x61\x70\160\146\x69\x6c\145", $B6JA); goto BFZ; jn: $vWg = new dirfinger(); goto Me4N; Qa_L: $V_Z["\163\165\143"] = false; goto Ztjf; QoS4V: $this->fJ3X->set("\x64\154\154\151\163\x74", $Ki["\144\154\154\151\163\164"]); goto s4; z18Z0: if (!(!$HoS || $ZiQlE)) { goto q0v; } goto SK; s4: $V_Z = $this->RuqhN->msgkey()->msgtext(4004)->resmsg(); goto Qa_L; Me4N: $Ki = $vWg->fingers($B6JA["\143\157\162\145\154\x69\x73\x74"]); goto YOyA; SK: $this->fJ3X->del("\x72\145\x70\x61\151\162"); goto NmAV; dK2: } protected function weqrcode() { goto vy; EFpq: goto SJW; goto xHZ; rDO: cuQ1: goto u89Ao; Olx: if ($J8P["\x63\157\144\145"]) { goto n3E; } goto Shp9r; lL: goto JGzS; goto DDMd; vy: global $_M; goto Q9LM; pBL: if ($J8P["\x77\170"]["\x6b\x65\x79"] == 1) { goto KqnM; } goto tOkN1; tOkN1: $V_Z = ["\163\x75\x63" => true, "\x74\x69\164\154\145" => "\xe5\205\xb3\xe6\263\250\xe5\xbe\xae\344\277\241\xe5\x85\xac\344\xbc\x97\xe5\217\xb7", "\x62\x6f\144\171" => "\x3c\144\x69\x76\x20\143\x6c\141\x73\x73\x3d\x22\x74\145\170\x74\x2d\170\x73\x2d\x63\145\156\x74\x65\x72\x22\76\74\x69\40\x63\x6c\x61\x73\x73\75\x22\154\x6f\x61\x64\x65\162\40\x76\x65\162\x74\x69\143\141\154\x2d\x61\154\151\x67\x6e\55\x6d\x69\x64\x64\154\145\40\154\x6f\x61\144\145\x72\x2d\x65\154\x6c\x69\160\x73\x69\x73\42\76\74\57\151\76\x3c\57\x64\151\166\76", "\x75\x72\154" => $_M["\x75\x72\154"]["\157\167\156\x5f\146\157\162\155"] . "\141\x3d\144\x6f\x6d\x6f\144\141\154\46\x74\x79\x70\145\75\167\x65\161\x72\x63\x6f\x64\x65"]; goto x4E; iiwW0: JGzS: goto pK; x4E: $wl = "\74\141\40\x68\162\x65\146\75\42\152\141\x76\141\x73\143\x72\151\x70\164\x3a\73\x22\40\x64\141\x74\x61\x2d\x74\x61\x72\147\145\164\75\42\x23\x61\160\x70\155\157\144\x61\x6c\x22\40\144\141\x74\141\x2d\x74\157\x67\147\x6c\x65\x3d\x22\x6d\x6f\144\141\x6c\x22\x20\x64\141\x74\141\x2d\x74\171\x70\x65\75\x22\x77\x65\161\162\143\x6f\144\145\42\x3e\xe5\x85\xb3\xe6\263\xa8\345\205\254\xe4\xbc\227\345\x8f\xb7\74\57\141\x3e"; goto jlY; jlY: $this->RuqhN->modalmsg($V_Z)->sucmsg($J8P["\x77\170"]["\x72\x65\x74"]["\x69\156\146\x6f"] . $wl, $J8P["\x77\x78"]["\153\145\x79"]); goto EFpq; yosh: SJW: goto iiwW0; DDMd: n3E: goto pBL; dx1C: $this->RuqhN->sucmsg($J8P["\x74\145\x78\164"]); goto yosh; iqhP: if (!($jtB3 !== '')) { goto cuQ1; } goto Jrgt; Shp9r: $this->RuqhN->errmsg($J8P["\145\x72\162\x63\157\x64\x65"], $J8P["\145\162\x72\x6d\x73\x67"]); goto lL; xHZ: KqnM: goto dx1C; u89Ao: $J8P = self::curljson($this->RuqhN->met_all()); goto Olx; Q9LM: $jtB3 = $this->fJ3X->get("\x77\145\143\x68\141\164"); goto iqhP; Jrgt: sleep(1); goto rDO; pK: $this->fJ3X->set("\167\145\x63\150\x61\x74", $J8P["\x77\x78"]["\153\x65\171"]); goto bomyK; bomyK: } protected function update() { goto KlU; dNv: $this->RuqhN->errmsg($vlua["\145\x72\x72\143\157\x64\x65"], $vlua["\x65\162\x72\x6d\163\x67"]); goto GC; oiW: if (!(file_exists(UPD_LOCK_FILE) || empty($A4FU["\166\137\x63\153\x75\x70\x64\141\x74\x65"]))) { goto Zgb; } goto Zs; GC: if (!empty($vlua["\163\171\163\164\145\x6d"])) { goto hv880; } goto vUQ8c; og: return $this->RuqhN->sucmsg($vlua["\164\145\x78\x74"]); goto Q_P; ik: $V_Z = ["\x73\x75\143" => true, "\164\151\x74\x6c\145" => $vlua["\156\145\x77\141\x70\160"]["\166\137\166\145\x72"] . "\40\xe6\x9b\264\xe6\x96\xb0\345\206\x85\345\xae\xb9", "\x62\x6f\x64\171" => "\74\x64\151\x76\40\x63\x6c\141\x73\163\x3d\x22\x74\x65\170\x74\x2d\x78\x73\x2d\143\145\156\164\x65\x72\42\x3e\x3c\151\x20\143\x6c\x61\x73\163\75\42\x6c\157\x61\144\145\162\40\166\x65\162\164\151\x63\141\154\55\x61\x6c\151\x67\x6e\55\x6d\x69\x64\144\x6c\145\40\154\x6f\141\144\145\162\x2d\145\154\154\151\x70\x73\x69\x73\42\76\x3c\x2f\151\x3e\74\57\144\x69\166\76", "\x75\162\154" => $_M["\x75\162\154"]["\x6f\167\156\137\146\157\x72\x6d"] . "\141\75\144\157\x6d\x6f\x64\141\154\x26\x74\x79\x70\145\75\x75\x70\x64\x61\x74\145"]; goto SEkg; Q_P: j4M8: goto o97; vVdA: Zgb: goto irVy4; nKZ2: return $this->RuqhN->sucmsg("\345\267\xb2\xe6\x98\xaf\346\234\x80\xe6\x96\xb0\347\x89\x88\343\x80\202"); goto vVdA; su7: if (!($vlua["\x63\x6f\x64\145"] == 8002)) { goto j4M8; } goto ENoi; ENoi: $this->fJ3X->set("\x75\x70\144\x61\164\145", 1); goto og; XMT: goto S_bRe; goto Br6n; perBv: $wl = "\74\x64\x69\x76\40\143\154\x61\x73\x73\x3d\47\x70\55\154\55\x31\x30\x27\x3e\12\x20\x20\x20\40\x20\x20\40\x20\x20\40\40\40\x20\40\40\40\x20\x20\x20\x20\x20\x20\40\x20\40\x20\40\40\74\x68\65\76" . $vlua["\x6e\x65\167\x61\160\160"]["\166\x5f\166\145\x72"] . "\x20\347\211\210\xe6\234\254\xe7\216\257\xe5\242\x83\xe8\xa6\x81\xe6\xb1\202\357\xbc\232\x3c\x2f\150\x35\x3e\12\x20\x20\40\40\40\x20\40\40\x20\x20\40\x20\40\40\40\x20\x20\40\x20\x20\40\x20\40\x20\x20\x20\x20\x20\74\x6f\x6c\x3e\74\x6c\x69\76\xe5\272\224\347\x94\xa8" . $V9rR . "\xe6\x94\xaf\xe6\x8c\201\120\x48\120\x20" . $ZJc . "\40\xe7\x89\210\346\x9c\xac\73\74\57\x6c\151\76\74\x6c\x69\76\xe5\272\224\347\x94\250" . $ug . "\346\224\257\xe6\214\201\115\145\x74\111\x6e\x66\157\40" . $bDWW . "\40\347\211\x88\346\x9c\xac\x3b\74\57\x6c\x69\76\74\57\x6f\x6c\x3e\xa\40\x20\x20\40\40\40\x20\40\x20\40\x20\40\x20\40\40\x20\x20\x20\40\40\40\40\x20\x20\x20\40\40\x20\74\x68\x35\76" . $vlua["\x6e\x65\167\141\160\160"]["\x76\137\x76\145\x72"] . "\x20\xe7\211\x88\xe6\x9c\254\xe7\x8e\257\345\xa2\x83\346\xa3\x80\xe6\xb5\213\347\xbb\x93\346\x9e\234\xef\xbc\x9a\74\x2f\x68\65\x3e\12\x20\40\40\x20\x20\x20\x20\x20\40\40\x20\x20\x20\40\x20\x20\x20\x20\40\40\x20\x20\40\x20\x20\x20\40\x20\74\157\154\76" . $vlua["\x73\x79\163\164\x65\x6d"]["\164\x65\x78\164"] . "\74\57\157\154\x3e\xa\40\40\x20\40\x20\x20\x20\x20\40\40\x20\40\40\x20\40\40\x20\x20\x20\x20\40\x20\x20\x20\x3c\x2f\144\x69\166\x3e"; goto epP; Zs: $this->fJ3X->set("\165\160\x64\141\164\x65", 1); goto nKZ2; t0bmZ: S_bRe: goto Jx; eGrw: $bDWW = arrayto_string($vlua["\156\145\x77\141\160\x70"]["\x76\137\x6d\x65\164\166\145\x72"], "\x20\x2d\x2d\x20"); goto LNZ; Jx: $this->fJ3X->set("\x75\x70\x64\141\x74\145", $nEPiA); goto LUw; px: $A4FU = $this->fJ3X->get("\141\x70\x70\154\x69\x73\x74"); goto oiW; KlU: global $_M; goto neU; nz6: hv880: goto XMT; yrM: $this->fJ3X->del("\x6e\x65\167\141\x70\160"); goto px; vUQ8c: $ZJc = arrayto_string($vlua["\156\145\x77\141\x70\160"]["\x76\137\x70\150\160\166\145\x72"], "\x20\55\55\40"); goto eGrw; hHw: $ug = count($vlua["\x6e\145\x77\141\x70\160"]["\x76\137\x6d\145\164\166\145\162"]) == 1 ? "\346\x9c\x80\344\275\x8e" : ''; goto perBv; epP: $this->RuqhN->msgmeet($wl); goto nz6; O922p: $this->RuqhN->modalmsg($V_Z)->sucmsg($vlua["\x74\145\170\x74"] . $wl, $nEPiA); goto t0bmZ; hb3L: if ($vlua["\x63\157\144\x65"]) { goto CNr; } goto Cas; irVy4: $vlua = self::curljson($this->RuqhN->met_web_app()); goto hb3L; o97: $this->fJ3X->set("\156\x65\167\x61\x70\160", $vlua["\x6e\145\x77\x61\160\160"]); goto ik; neU: $this->fJ3X->del("\x64\x6c\x6c\x69\x73\164"); goto yrM; LNZ: $V9rR = count($vlua["\x6e\145\x77\x61\160\160"]["\x76\x5f\160\x68\x70\166\x65\x72"]) == 1 ? "\346\234\x80\xe4\275\216" : ''; goto hHw; SEkg: $wl = "\x3c\141\x20\x68\x72\x65\x66\75\42\152\x61\x76\141\x73\x63\162\x69\x70\164\72\x3b\42\40\x64\141\x74\x61\x2d\x74\141\162\x67\x65\164\75\x22\x23\x61\160\160\x6d\x6f\x64\141\x6c\42\x20\x64\x61\164\141\55\164\x6f\147\147\x6c\145\x3d\x22\x6d\x6f\144\141\154\x22\40\x64\x61\164\141\x2d\164\171\160\145\75\x22\165\x70\144\141\164\x65\x22\x3e\345\x9c\250\xe7\xba\277\xe6\233\xb4\346\226\260\x3c\x2f\141\x3e"; goto ifkV; Br6n: CNr: goto su7; ifkV: $nEPiA = $vlua["\156\x65\167\141\x70\x70"]["\166\x5f\165\x70\x64\141\164\145"] == 1 ? 0 : 2; goto O922p; Cas: $nEPiA = 1; goto dNv; LUw: } protected function appfile_modal() { goto Tq2py; AnBH0: Dod: goto SbMC; f3P: I3bPv: goto QaoAB; uFr: $LvV->download("\x66\151\154\x65\154\x69\x73\164\x7c\x63\150\145\143\153"); goto UAWR; asfRz: return $PHdBu; goto BhoV; YVgZ: foreach ($V0jD["\144\x6c\154\151\163\164"] as $f4ni => $hvCu) { goto l5rB; WQ79: u0No: goto UEFL; b0O9b: if (!$tvCA["\x64\x6f\167\x6c\x69\163\164"][$hvCu]) { goto u0No; } goto MubY; MubY: $wl = "\346\226\x87\xe4\273\266\344\270\x8d\345\xad\230\345\234\xa8"; goto WQ79; v9_a: if (!$tvCA["\x75\160\x64\x6c\x69\x73\164"][$hvCu]) { goto oYz1; } goto Y1Al; zoyUD: oYz1: goto b0O9b; Y1Al: $wl = "\346\226\207\344\xbb\xb6\xe8\242\253\xe4\277\xae\346\x94\271"; goto zoyUD; UEFL: $PHdBu .= "\40\x20\x20\x20\x20\x20\x20\40\x20\x20\40\40\x20\40\x20\x20\x20\40\x20\x20\x3c\160\76\xa\40\x20\x20\x20\40\40\x20\40\40\x20\40\x20\40\x20\x20\x20\40\x20\40\x20\x20\x20\40\x20\x3c\163\160\x61\x6e\x20\143\154\x61\x73\163\75\x22\x6d\x2d\162\x2d\65\60\x22\x3e{$wl}\x3c\x2f\x73\160\x61\x6e\76\xa\x20\40\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\x20\40\40\x20\40\x20\x20\x20\40\40\40\x20\74\x73\160\x61\x6e\x20\x63\x6c\141\163\163\75\42\x66\151\154\145\137\x6e\141\155\145\x22\76{$hvCu}\x3c\x2f\x73\x70\x61\156\76\x20\xa\x20\40\x20\40\x20\x20\x20\x20\x20\x20\x20\40\x20\40\x20\40\x20\40\x20\x20\x20\40\x20\40\74\x73\160\x61\x6e\x20\143\x6c\141\163\163\75\42\x70\165\154\154\55\x78\x73\55\x72\151\147\x68\164\x20\155\x2d\x72\x2d\x31\x35\x20\144\157\x77\156\x6c\157\141\144\x5f\x66\x69\154\x65\x22\40\x64\x61\164\x61\x2d\x64\x6f\x77\156\154\x6f\141\144\75\x22\x72\145\160\141\151\x72\174\x64\154\146\151\x6c\x65\x7c{$f4ni}\42\x3e\74\x61\x20\150\162\x65\x66\75\x22\152\x61\166\x61\163\x63\x72\151\160\x74\x3a\x3b\42\76\347\x82\271\345\207\273\344\xb8\213\xe8\xbd\275\x3c\57\141\x3e\x3c\x2f\x73\x70\x61\x6e\76\xa\x20\40\40\40\40\40\x20\40\40\40\x20\40\x20\40\40\x20\x20\40\x20\40\74\x2f\x70\x3e"; goto rCAUV; l5rB: $wl = ''; goto v9_a; rCAUV: SG5RB: goto B3Bj; B3Bj: } goto f3P; xwP9l: if ($aSq > 0) { goto r1ok; } goto WAS; SbMC: $aSq = $this->RuqhN->resmsg(); goto xwP9l; gpZY: r1ok: goto WLX; WAS: $PHdBu = ["\142\157\144\x79" => $aSq["\164\x65\x78\x74"]]; goto NKhc; uCb: p4Zn: goto asfRz; UAWR: $V0jD = $LvV->app_get_file(); goto JOju; NKhc: goto p4Zn; goto gpZY; QaoAB: $PHdBu = ["\142\x6f\144\171" => "\x3c\144\x69\166\x20\143\154\x61\x73\x73\75\x27\x68\55\62\65\x30\40\x6f\166\55\x62\x6f\144\x79\x27\76{$PHdBu}\x3c\57\144\x69\x76\x3e", "\146\x6f\157\x74" => "\74\142\165\x74\x74\x6f\156\40\164\171\160\145\75\x22\142\165\164\164\x6f\x6e\x22\x20\143\154\x61\x73\x73\75\x22\142\x74\x6e\x20\x62\x74\156\55\x69\156\x66\x6f\40\141\x70\160\x72\145\x70\141\151\x72\42\76\344\xbf\xae\xe5\xa4\x8d\345\x85\xa8\351\203\250\346\x96\x87\xe4\273\266\x3c\57\x62\x75\164\164\x6f\156\76"]; goto uCb; Tq2py: global $_M; goto oW7m; u7cP: return "\74\x64\151\166\x20\143\x6c\x61\x73\x73\75\x22\164\145\170\164\x2d\x78\163\x2d\143\x65\156\164\145\x72\42\76\xe7\x94\250\xe6\226\x87\xe4\273\xb6\xe4\xb8\x8d\xe5\xad\x98\345\x9c\xa8\xe5\xbc\x82\xe5\270\xb8\343\200\202\74\x2f\x64\x69\166\x3e"; goto AnBH0; JOju: if (!(count($V0jD["\144\x6c\x6c\151\163\x74"]) == 0)) { goto Dod; } goto u7cP; WLX: $tvCA = $this->fJ3X->get("\162\145\160\x61\x69\x72"); goto YVgZ; oW7m: $LvV = new download($this->RuqhN); goto uFr; BhoV: } protected function weqrcode_modal() { goto t_Vq; LV: $this->bJ7 = "\x71\162\143\x6f\144\x65"; goto CmT; cc2: return $Sk2; goto Bw; t_Vq: global $_M; goto LV; sd4: $Sk2 = ["\142\157\144\x79" => "\74\x70\40\163\x74\x79\154\145\75\x27\x74\145\x78\x74\x2d\x69\156\144\x65\x6e\x74\72\x20\x32\145\155\73\47\x3e\xef\274\x88{$J8P["\x65\162\x72\x63\x6f\144\x65"]}\xef\xbc\211{$J8P["\x65\x72\162\x6d\163\x67"]}\x3c\x70\x3e"]; goto v; wtEg: if ($J8P["\x63\x6f\144\145"]) { goto KJCn; } goto sd4; y03: $Sk2 = ["\x62\x6f\x64\171" => "\74\144\151\166\40\x63\x6c\141\x73\163\75\x22\150\55\62\x35\x30\x20\164\x65\x78\164\55\x78\x73\55\143\145\x6e\x74\x65\x72\x22\76\74\151\155\x67\40\x73\164\x79\x6c\145\75\x22\x68\145\151\x67\150\x74\x3a\61\x30\x30\x25\73\x22\x20\163\162\x63\75\x22\x64\141\x74\x61\x3a\151\x6d\141\x67\145\x2f\x6a\160\147\73\x62\x61\163\145\66\64\x2c" . $J8P["\161\x72\143\x6f\144\145"]["\x69\x6d\147"] . "\x22\x3e\x3c\57\144\x69\166\x3e", "\x66\x6f\157\x74" => $J8P["\161\x72\x63\x6f\144\145"]["\164\x65\170\164"]["\x69\156\146\x6f"], "\143\x61\154\154\x62\141\x63\x6b" => "\x77\x65\143\150\141\164\x5f\x71\x72\x63\157\x64\145"]; goto iu2; v: goto qfDCz; goto vdV; CmT: $J8P = self::curljson($this->RuqhN->met_all(), false, 25, "\167\x78"); goto wtEg; iu2: qfDCz: goto cc2; vdV: KJCn: goto y03; Bw: } protected function wechat_modal() { goto GVE; U_0H: $aSq["\145\x6e\144\x74\x69\155\145"] = $NGqwH; goto sl6; sUS: zKTY7: goto TLCb; ZbSHI: if ($J8P["\143\157\x64\x65"]) { goto zKTY7; } goto BS; nbbK: $o5NB = date("\131\x2d\x6d\55\x64\x20\x48\72\x69\72\x73", $this->time); goto s08h; TLCb: $this->RuqhN->sucmsg($J8P["\167\170"]["\162\145\164"]["\x69\x6e\x66\157"], $J8P["\x77\x78"]["\x6b\x65\x79"]); goto ZPfm; hSJM: SkU: goto bKPe; oiDeM: if ($_M["\x66\157\x72\x6d"]["\145\x6e\144\x74\151\x6d\x65"] < $this->time) { goto d5Xw; } goto A5ZG5; NnD: goto SkU; goto z9iw; GVE: global $_M; goto DqsD2; EZ1W: HfZkn: goto NnD; nkb: return $aSq; goto R0Zf; s08h: $NGqwH = strtotime("{$o5NB}\x20\53\x32\x20\155\151\156\165\x74\145"); goto hSJM; ykoo: $this->bJ7 = "\x63\150\145\x63\x6b"; goto yyAi0; bKPe: $aSq = $this->RuqhN->resmsg(); goto U_0H; G66na: if (empty($_M["\x66\x6f\x72\x6d"]["\x65\156\x64\x74\151\x6d\x65"])) { goto iVw2; } goto oiDeM; A5ZG5: $NGqwH = $_M["\146\157\162\155"]["\145\x6e\144\164\x69\x6d\x65"]; goto eSf; DqsD2: $E6r = random(6); goto O73; yyAi0: $J8P = self::curljson($this->RuqhN->met_all(), false, 20, "\x77\170"); goto ZbSHI; eSf: goto HfZkn; goto sIFIE; ZPfm: Qr7t: goto G66na; nITx: $this->RuqhN->locmsg([4023, $wl]); goto EZ1W; sIFIE: d5Xw: goto GjZa; z9iw: iVw2: goto nbbK; O73: sleep(1); goto ykoo; Kg: goto Qr7t; goto sUS; GjZa: $wl = "\x3c\x61\x20\143\154\x61\x73\163\x3d\42\x77\145\x71\162\x63\x6f\x64\145\x22\x20\x68\x72\x65\146\75\x22\152\x61\x76\x61\x73\x63\162\151\x70\x74\x3a\73\x22\40\144\x61\164\141\55\x74\x79\160\145\75\x22\x77\x65\x71\x72\x63\157\144\145\x22\76\345\210\xb7\xe6\x96\xb0\344\xba\x8c\xe7\xbb\264\347\240\201\74\x2f\141\76"; goto nITx; BS: $this->RuqhN->errmsg($J8P["\145\162\x72\143\157\x64\x65"], $J8P["\145\162\162\155\163\147"]); goto Kg; sl6: $aSq["\x73\x69\147\x6e"] = $E6r; goto nkb; R0Zf: } protected function update_modal() { goto MU9; Mahmp: $ZZBOn = $this->fJ3X->get("\x6e\x65\x77\141\x70\x70"); goto lnLR; lnLR: return ["\x62\x6f\144\171" => strlen($ZZBOn["\x76\137\x64\141\151\154\x79"]) > 0 ? "\74\x64\x69\166\40\143\x6c\x61\x73\x73\75\x27\150\55\x32\x35\x30\40\157\x76\x2d\x62\x6f\x64\171\47\x3e{$ZZBOn["\166\x5f\x64\x61\x69\x6c\171"]}\x3c\57\x64\x69\x76\76" : "\74\160\x20\163\x74\171\154\x65\75\42\x74\x65\x78\x74\x2d\151\x6e\144\x65\156\164\72\x20\62\x65\x6d\73\x22\76\346\xb2\241\xe6\234\x89\xe6\233\xb4\xe6\x96\260\350\257\xb4\xe6\230\x8e\343\200\202\74\x70\76", "\146\x6f\157\164" => "\x3c\x62\165\x74\x74\157\x6e\x20\x74\171\x70\145\x3d\42\142\x75\164\x74\x6f\x6e\42\x20\143\x6c\x61\x73\x73\x3d\x22\142\x74\156\x20\x62\164\156\55\x69\x6e\x66\157\40\x61\x70\x70\x75\160\144\x61\164\145\42\76\346\x9b\264\346\226\260\xe8\x87\263\40" . $ZZBOn["\166\137\166\145\162"] . "\x3c\x2f\x62\x75\x74\x74\x6f\x6e\x3e"]; goto pbSs; MU9: global $_M; goto Mahmp; pbSs: } private function del_cache() { goto X50; ZIX: $this->fJ3X->del("\167\x65\x63\150\x61\164"); goto Mx1; Zfnco: $this->fJ3X->del("\141\160\160\154\151\163\164"); goto DVftj; PgS: $this->fJ3X->del("\143\150\145\143\x6b"); goto bjJ; ntw: $this->fJ3X->del("\x72\x65\x70\141\x69\x72"); goto QO8; QO8: $this->fJ3X->del("\144\x6c\x6c\151\163\x74"); goto ZIX; X50: global $_M; goto Zfnco; RL: $this->fJ3X->del("\x63\153\151\164\145\155"); goto ZjkI; DVftj: $this->fJ3X->del("\163\x79\163\x74\x65\x6d"); goto PgS; bjJ: $this->fJ3X->del("\141\x70\x70\146\x69\x6c\145"); goto ntw; Mx1: $this->fJ3X->del("\165\160\144\141\164\x65"); goto RL; ZjkI: } private function result() { goto mvT; OK5: $SYFv = false; goto bLuk9; GWBy: if (!($this->bJ7 != "\x61\x70\x70\x63\x68\x65\143\153")) { goto Cgu4; } goto WpQw; vr_k: $this->fJ3X->set("\143\x6b\x69\164\x65\155", $hQi2); goto UQF7; mvT: global $_M; goto OK5; UQF7: Cgu4: goto EgTt; P4kD: $hQi2[$this->bJ7] = $f4ni["\153\x65\x79"]; goto vr_k; WpQw: $f4ni = $this->RuqhN->resmsg(); goto P4kD; bLuk9: $hQi2 = $this->fJ3X->get("\x63\x6b\151\x74\x65\155"); goto GWBy; EgTt: } private function curljson($P22I = [], $Al = false, $So = 15, $E6r = "\x63\x6b") { global $_M; return (new curls($this->RuqhN))->apiurl($this->bJ7, $E6r)->apipost($P22I)->curls($So)->resdata($Al); } protected function show($y70L, $HvL) { goto IUkX; yDmo: require_once $F3q_->dodisplay($y70L, $HvL); goto SjpQ; IUkX: global $_M; goto wp; wp: $F3q_ = load::sys_class("\145\156\147\x69\156\145", "\156\145\167"); goto yDmo; SjpQ: } } goto n925; NlYg: class session { private $wa7 = M_NAME; public function __construct() { global $_M; self::start(); } public function start() { goto E6; E6: $xxAAw = self::getip(); goto CyK1; c0Jj: session_start(); goto H3g; CyK1: session_id(md5($_SERVER["\x48\x54\124\120\x5f\125\123\105\x52\137\x41\107\x45\116\x54"] . $this->wa7 . $xxAAw)); goto c0Jj; H3g: } public function set($e, $xQIt) { self::start(); $_SESSION[$e] = $xQIt; } public function get($e) { self::start(); return $_SESSION[$e]; } public function del($e) { self::start(); unset($_SESSION[$e]); } public function getip() { goto OfWNQ; CqcL: xrX: goto zqjhQ; b_JY: goto eQm; goto dFmj; C7R: if (isset($_SERVER["\x52\105\x4d\117\124\105\137\101\104\104\122"]) && $_SERVER["\122\105\x4d\x4f\124\x45\x5f\x41\104\x44\122"] && strcasecmp($_SERVER["\x52\x45\x4d\x4f\x54\105\x5f\x41\x44\x44\x52"], $rnp4T)) { goto xrX; } goto b_JY; aArc: return $xxAAw; goto OjaU6; PFOL: if (isset($_SERVER["\x48\124\x54\120\x5f\130\x5f\106\x4f\122\127\x41\x52\104\x45\x44\137\106\x4f\122"]) && $_SERVER["\110\124\124\120\x5f\130\137\x46\117\122\x57\101\x52\x44\105\104\x5f\106\x4f\x52"] && strcasecmp($_SERVER["\110\x54\124\120\137\130\x5f\106\117\122\x57\101\x52\104\x45\x44\137\x46\117\122"], $rnp4T)) { goto BK; } goto C7R; dFmj: BK: goto Xxl; Xxl: $PnE = explode("\x2c", $_SERVER["\x48\x54\x54\120\x5f\x58\137\106\x4f\x52\127\101\x52\104\105\x44\137\106\117\x52"]); goto h5k; zqjhQ: $xxAAw = $_SERVER["\122\105\x4d\117\x54\105\137\x41\104\x44\122"]; goto VpS; h5k: $xxAAw = $PnE[0]; goto SZ; VpS: eQm: goto aArc; SZ: goto eQm; goto CqcL; OfWNQ: $rnp4T = "\165\156\x6b\156\157\x77\156"; goto PFOL; OjaU6: } } goto SHA; OhXu: define("\x55\x50\104\x5f\114\117\103\113\137\106\111\114\x45", PATH_APP_FILE . "\143\x6f\x6e\x66\151\147\57\165\x70\144\141\164\x65\x2e\154\157\143\x6b"); goto ymA; A94Hv: define("\111\116\x53\137\114\x4f\x43\113\137\106\111\114\x45", PATH_APP_FILE . "\143\157\x6e\x66\x69\x67\57\151\156\163\164\141\x6c\154\x2e\154\157\x63\153"); goto OhXu; n925: class appcore { private $m_name; private $swf = []; private $OUd = []; private $H0fL = []; private $a48J = []; private $ObZ = []; public function __construct() { global $_M; $this->m_name = M_NAME; } public function get_app_url() { goto pZ7m; KXv: g0V: goto KBo; KBo: return $SNM9; goto g7F_; KXjCa: $SNM9 = $_M["\165\x72\154"]["\x6f\167\156\137\x6e\x61\x6d\x65"] . http_build_query($O66Z1); goto KXv; CnOf: $O66Z1 = file_exists(INS_LOCK_FILE) ? json_decode(file_get_contents(INS_LOCK_FILE), true) : []; goto plDC; opR: fMnne: goto J696R; Zm: goto g0V; goto opR; pZ7m: global $_M; goto CnOf; a6: $SNM9 = $O66Z1["\x75\x72\154"]; goto Zm; plDC: if (empty($O66Z1["\x75\x72\x6c"])) { goto fMnne; } goto a6; J696R: unset($O66Z1["\165\162\154"], $O66Z1["\x74\151\x6d\x65"]); goto KXjCa; g7F_: } public function met_web_app() { global $_M; return ["\167\145\142" => self::met_web(), "\141\x70\x70" => self::met_app()]; } public function met_all() { goto Jt; nFVQ4: $n6vDe = self::met_web_app(); goto ujca; ujca: $n6vDe["\141\x6f\160"] = self::met_aop(); goto yRIE; yRIE: return $n6vDe; goto Vxb79; Jt: global $_M; goto nFVQ4; Vxb79: } public function met_web() { goto XKUM; goD: $this->swf["\160\150\160\166\145\162"] = PHP_VERSION; goto zZ0TM; wks: $e = ["\x6d\x65\164\x5f\167\x65\x62\165\x72\x6c", "\155\145\164\137\x77\x65\142\x6e\x61\x6d\145", "\x6d\x65\164\x63\x6d\163\137\166", "\x6d\x65\x74\137\x6b\x65\x79\167\157\x72\144\163", "\155\x65\x74\137\x64\145\x73\x63\162\x69\x70\164\x69\x6f\156", "\155\x65\164\x5f\x73\x6b\x69\156\137\165\x73\x65\162"]; goto T2w; T2w: foreach ($e as $hvCu) { goto kweI7; semTS: $n6vDe = DB::get_one("\123\105\x4c\x45\x43\124\40\166\x61\154\165\x65\x20\106\x52\x4f\x4d\40{$_M["\x74\141\x62\154\145"]["\143\157\x6e\146\x69\147"]}\40\x57\110\x45\122\x45\40\x6e\141\x6d\145\x20\x3d\40\47{$hvCu}\x27\40\x41\116\104\40\x6c\141\156\x67\40\75\40\x27{$LeIua}\x27\40"); goto V8zo; kp: LuDnE: goto zw; kweI7: $LeIua = $hvCu == "\x6d\145\164\143\x6d\163\x5f\x76" ? "\155\x65\x74\x69\156\x66\157" : $_M["\x6c\x61\156\x67"]; goto semTS; V8zo: $this->swf[$hvCu] = $n6vDe["\x76\x61\x6c\165\x65"]; goto kp; zw: } goto ibu8; XKUM: global $_M; goto wks; vDc: $this->swf["\167\x65\x62\151\x70"] = $_SERVER["\x53\105\122\126\x45\122\137\x41\x44\x44\x52"]; goto TgEqA; ibu8: lH: goto vDc; HyAu: return $this->swf; goto j05; jnI: $this->swf["\x6c\x61\156\x67"] = $_M["\x6c\x61\x6e\x67"]; goto HyAu; B1jx: $this->swf["\x77\145\142\166\145\162"] = str_replace("\120\110\x50\57{$this->swf["\x70\x68\160\166\x65\x72"]}", '', $_SERVER["\123\105\x52\x56\105\x52\x5f\x53\117\106\x54\x57\x41\122\x45"]); goto jnI; zZ0TM: $this->swf["\163\161\x6c\x76\x65\x72"] = DB::version(); goto B1jx; TgEqA: $this->swf["\x73\171\163\166\145\162"] = php_uname("\x73") . "\40" . php_uname("\162"); goto goD; j05: } public function met_app() { goto WO1; bp33: return $this->OUd; goto F37x; WO1: global $_M; goto ceh; JVm: iu5vL: goto A; A: $this->OUd["\x63\154\151\145\156\x74\x5f\x69\x70"] = self::get_client_ip(); goto bp33; ceh: if (empty($this->m_name)) { goto iu5vL; } goto YwzY; YwzY: $this->OUd = DB::get_one("\123\105\x4c\105\103\x54\40\x6e\157\x2c\166\145\x72\x2c\x61\144\144\164\x69\x6d\x65\x2c\x6d\137\156\141\155\145\54\x61\x70\160\156\x61\x6d\x65\40\x46\122\x4f\115\x20{$_M["\164\141\142\154\x65"]["\141\160\x70\154\x69\x73\x74"]}\x20\x57\110\105\122\105\x20\155\137\156\x61\x6d\145\75\47{$this->m_name}\x27\x20"); goto JVm; F37x: } public function met_adl() { goto iQQ; jb3: $this->BcZk["\155\x65\164\x5f\x77\145\142\x75\162\154"] = $n6vDe["\166\x61\x6c\x75\145"]; goto qrXaf; XLZOZ: $n6vDe = DB::get_one("\123\105\114\x45\x43\x54\x20\x76\x61\154\165\145\40\x46\x52\117\115\40{$_M["\x74\x61\x62\x6c\x65"]["\143\x6f\x6e\146\x69\147"]}\40\127\x48\105\x52\x45\x20\x6e\141\155\145\40\x3d\40\47\155\145\164\137\x77\x65\x62\165\162\154\47\40\101\x4e\x44\x20\154\141\156\x67\x20\75\40\x27{$_M["\154\x61\x6e\x67"]}\47\x20"); goto jb3; xEcg: jcHF: goto XLZOZ; qwRC: if (empty($this->m_name)) { goto jcHF; } goto vN3Z; vN3Z: $this->BcZk = DB::get_one("\123\105\114\105\x43\124\x20\x6e\x6f\x2c\x76\145\162\54\141\x64\144\164\151\155\x65\x2c\x6d\137\x6e\141\155\x65\40\x46\122\117\x4d\40{$_M["\x74\x61\142\154\145"]["\x61\160\160\x6c\151\x73\164"]}\40\x57\x48\x45\x52\105\x20\155\x5f\156\141\155\x65\75\47{$this->m_name}\47\x20"); goto xEcg; iQQ: global $_M; goto qwRC; qrXaf: return $this->BcZk; goto r2Zy; r2Zy: } public function met_aop() { goto qAe; KM_: $iZbQ = admin_information(); goto iVIvZ; qAe: global $_M; goto KM_; N9fp: return $this->H0fL; goto Eq4U; iVIvZ: $this->H0fL = ["\141\x64\155\x69\x6e\137\x69\144" => $iZbQ["\x61\144\x6d\x69\156\137\x69\144"], "\141\x64\155\151\156\x5f\157\160" => $iZbQ["\x61\144\x6d\x69\156\x5f\x6f\x70"], "\x61\x64\x6d\x69\156\137\151\160" => $iZbQ["\x61\x64\155\151\156\x5f\155\157\144\x69\x66\x79\137\151\x70"], "\141\144\x6d\151\x6e\x5f\164\151\x6d\x65" => $iZbQ["\x61\144\155\151\x6e\137\x6d\x6f\x64\151\x66\171\x5f\x64\141\x74\x65"]]; goto N9fp; Eq4U: } public function newres() { goto p8Q; p8Q: global $_M; goto Ta_; Nvt: return $this; goto r_sd; Ta_: $this->ObZ = []; goto Nvt; r_sd: } public function resmsg($Al = true, $vMeo8 = false) { goto bN3w0; QqLg: if (!$vMeo8) { goto GD; } goto ynmk; bN3w0: global $_M; goto gjs; HsjqU: GD: goto aj8; ClvR: $aSq = $Al ? $this->ObZ : self::jsoncallback($this->ObZ); goto QqLg; gjs: if (!(strlen($this->ObZ["\x6b\145\x79"]) == 0)) { goto hAWgT; } goto VfCm; KTzr: $this->ObZ["\145\161\153\145\x79"] = $_M["\146\157\162\155"]["\145\x71\153\x65\x79"]; goto ClvR; VfCm: self::locmsg(4012); goto U4K; U4K: hAWgT: goto KTzr; aj8: return $aSq; goto S_t; ynmk: unset($this->ObZ); goto HsjqU; S_t: } public function sucmsg($JWF5, $SYFv = 1) { goto BFLC; BFLC: global $_M; goto OX; Z910: return $this; goto TtzH4; wPub: $this->ObZ["\x74\x65\x78\164"] = self::fontcolor($SYFv, $JWF5); goto Z910; OX: $this->ObZ["\x6b\x65\171"] = $SYFv; goto wPub; TtzH4: } public function vagmsg($SYFv, $JWF5 = []) { goto MSTD5; ooZ: $this->ObZ["\x74\145\170\x74"] = $wl; goto I48w; Pg3: QM: goto hGA; MSTD5: global $_M; goto b1A3; I48w: return $this; goto q1; b1A3: $wl = ''; goto pMkfb; pMkfb: foreach ($JWF5 as $hvCu) { goto PWg; Z3Kw: $wl .= self::fontcolor($pHr, $pHr ? $jbC["\151\x6e\x66\x6f"] : "\xef\xbc\x88{$jbC["\x63\x6f\144\151\156\x67"]}\xef\274\x89{$jbC["\151\156\146\157"]}"); goto Al6D; PWg: list($pHr, $jbC) = $hvCu; goto Z3Kw; Al6D: KzCN: goto yZph; yZph: } goto Pg3; hGA: $this->ObZ["\153\x65\171"] = $SYFv; goto ooZ; q1: } public function errmsg($ZW, $JWF5, $SYFv = 0) { goto tGS; QY: $this->ObZ["\164\x65\x78\164"] = self::fontcolor(0, "\357\274\x88{$ZW}\357\274\211{$JWF5}"); goto Q7P8; tGS: global $_M; goto CkbK; CkbK: $this->ObZ["\x6b\145\171"] = $SYFv; goto QY; Q7P8: return $this; goto SMx; SMx: } public function locmsg($JWF5 = [], $SYFv = 0) { goto J2um; EJ1x: $this->ObZ["\x6b\x65\x79"] = $SYFv; goto e2Q1; J2um: global $_M; goto SfSY2; e2Q1: $this->ObZ["\x74\145\x78\x74"] = self::fontcolor($SYFv, "\357\xbc\210{$this->a48J["\x65\x72\x72\143\157\x64\x65"]}\357\274\211{$this->a48J["\x65\x72\x72\x6d\x73\x67"]}"); goto A9Hc1; SfSY2: if (empty($JWF5)) { goto Fktu; } goto AB; AB: self::codemsg($JWF5); goto fngow; fngow: Fktu: goto EJ1x; A9Hc1: return $this; goto z82Mr; z82Mr: } public function modalmsg($V_Z = [], $aw = [], $SYFv = 0) { goto jta; q4F: return $this; goto qOm; jta: global $_M; goto QK; QK: self::locmsg($aw, $SYFv); goto NGSwq; NGSwq: $this->ObZ["\155\x6f\x64\141\154"] = $V_Z; goto q4F; qOm: } public function msgkey($f4ni = 4) { goto yr0c; TNx: $this->ObZ["\x6b\x65\x79"] = $f4ni; goto Ji5Rv; Ji5Rv: return $this; goto vWHE; yr0c: global $_M; goto TNx; vWHE: } public function msgtext($aw = []) { goto kAZl; OUnb: return $this; goto Kq; u2: $this->ObZ["\164\145\170\164"] = self::fontcolor($this->ObZ["\x6b\x65\171"], $this->a48J["\x65\162\x72\155\163\x67"]); goto OUnb; kAZl: global $_M; goto gyF; gyF: self::codemsg($aw); goto u2; Kq: } public function msgmeet($wl, $Al = false) { goto Q8x2; bDv: return $this; goto mooUA; KRggq: $this->ObZ["\x74\145\x78\164"] = $Al ? $wl : $this->ObZ["\164\x65\170\x74"] . $wl; goto bDv; Q8x2: global $_M; goto KRggq; mooUA: } private function fontcolor($SYFv, $wl) { goto C0lV; ArNx6: return "\x3c\146\x6f\x6e\164\40\163\164\x79\x6c\145\75\42\143\x6f\154\157\x72\x3a" . $x3E[$SYFv] . "\73\42\x3e" . $wl . "\x3c\57\x66\x6f\156\164\76"; goto tkjD; EjwQ: $x3E = ["\x23\x45\71\65\71\x35\x42", "\43\63\66\x41\102\x37\101", "\x23\x45\x43\71\x39\x34\60", "\x23\x37\66\70\63\70\146", "\43\62\x61\63\63\x33\143"]; goto ArNx6; C0lV: global $_M; goto EjwQ; tkjD: } public function coderes($Al = true) { global $_M; return $Al ? $this->a48J["\x65\162\x72\155\163\x67"] : json_encode($this->a48J, JSON_UNESCAPED_UNICODE); } public function codemsg($ZW, $wl = '') { goto bu; mfSK7: $JWF5 = ["\64\x30\x30\x30" => "\345\275\x93\xe5\x89\x8d\xe7\x8e\xaf\xe5\xa2\x83\xe7\xbc\272\xe5\xb0\x91\x43\x55\x52\114\346\224\257\346\x8c\201\xef\274\x81", "\x34\60\x30\61" => "\346\xa0\270\345\277\203\346\226\207\xe4\273\xb6\345\255\x98\345\x9c\xa8\xe5\xbc\202\345\xb8\xb8\x2c\xe5\207\x86\xe5\xa4\x87\xe8\207\252\345\x8a\250\344\277\xae\xe5\xa4\x8d\346\240\xb8\xe5\xbf\203\xe6\x96\x87\xe4\273\xb6\56\56\56", "\64\x30\60\62" => "\345\xba\x94\xe7\x94\250\xe6\226\x87\344\xbb\266\xe5\xad\230\xe5\x9c\250\xe5\274\202\xe5\270\xb8\xe8\257\xb7\347\x82\271\345\207\xbb\x20{$wl}\40\357\xbc\201", "\x34\x30\60\x33" => "\345\xba\224\347\x94\xa8\346\x96\207\xe4\273\xb6\346\255\xa3\xe5\270\xb8\357\274\201", "\64\x30\60\x34" => "\xe6\226\207\344\xbb\xb6\346\235\x83\351\x99\x90\xe6\243\x80\xe6\265\213\xe4\xb8\255\x2e\56\x2e", "\x34\x30\60\65" => "\40{$wl}\40\xe4\xb8\x8d\xe5\255\x98\xe5\x9c\xa8\357\xbc\214\350\xaf\xb7\346\x89\x8b\345\x8a\xa8\345\210\233\345\273\272\357\xbc\201", "\x34\x30\60\x36" => "\x20{$wl}\40\346\x9d\203\351\231\220\xe4\270\x8d\xe8\xb6\xb3\xef\274\214\350\xaf\xb7\xe4\277\256\346\x94\xb9\xe4\xb8\xba\133\67\67\x37\x2f\67\x37\x35\x5d\xe5\xa2\236\345\x8a\240\xe5\206\231\xe5\205\245\xe6\235\x83\xe9\x99\220\357\274\x81", "\x34\60\60\x37" => "\x20{$wl}\40\346\225\260\xe6\215\256\xe5\206\x99\xe5\x85\xa5\351\224\231\350\257\xaf\357\xbc\x8c\350\257\xb7\xe8\207\xaa\350\241\214\346\243\x80\xe6\xb5\x8b\xe6\235\203\xe9\231\x90\357\xbc\201", "\x34\x30\60\x38" => "\xe4\xb8\x8b\xe8\xbd\xbd\346\x9d\203\xe9\x99\220\xe4\xb8\215\xe8\266\xb3\xef\274\x88\350\257\xb7\346\243\200\xe6\x9f\245\343\x80\x90\347\xbd\221\347\xab\x99\347\xbd\x91\345\x9d\x80\343\x80\x91\346\x98\257\xe5\x90\xa6\344\270\xba\350\xb4\xad\xe4\271\260\xe5\xba\x94\347\x94\250\xe7\232\204\xe5\x9f\237\xe5\220\215\xef\274\x89\357\xbc\201", "\64\60\x30\71" => "\345\xba\x94\xe7\224\xa8\xe6\x96\207\344\273\266\344\270\x8b\350\275\xbd\xe4\270\255\56\56\56", "\x34\60\x31\x30" => "\xe5\xba\224\347\x94\250\xe6\x96\x87\344\273\266\xe4\270\x8b\xe8\xbd\xbd\344\270\255\56\56\56{$wl}\x20\x20\50\xe6\xad\243\xe5\x9c\xa8\xe8\xbf\x9b\xe8\241\214\xe4\270\213\xe8\xbd\xbd\xef\xbc\214\350\xaf\xb7\344\xb8\215\xe8\246\201\346\x93\215\xe4\275\x9c\xe9\xa1\265\351\x9d\242\357\274\x81\51", "\x34\60\61\61" => "\xe6\234\215\345\x8a\241\xe7\253\xaf\xe5\274\202\xe5\xb8\270\x5b{$wl}\x5d\xef\274\x8c\351\200\232\xe4\277\241\345\244\261\350\264\xa5\357\xbc\x81", "\x34\60\61\62" => "\xe7\xb3\273\xe7\273\237\345\xbc\x82\xe5\xb8\xb8\xef\xbc\x81", "\x34\60\61\63" => "\345\xba\x94\347\x94\250\xe6\226\x87\344\273\266\357\274\214\xe5\xbc\x80\xe5\247\x8b\xe4\xbf\xae\xe5\244\215\x2e\x2e\56", "\64\x30\61\x34" => "\133\xe6\xa0\xb8\345\277\203\346\226\207\xe4\xbb\xb6\350\207\xaa\xe5\212\250\344\277\256\345\244\x8d\x5d\40\xe4\xbf\xae\xe5\xa4\x8d\xe5\xae\214\xe6\x88\220\343\x80\x82", "\64\60\x31\65" => "\345\xba\224\xe7\x94\xa8\xe6\226\x87\xe4\273\xb6\344\277\256\xe5\244\x8d\xe5\256\214\xe6\x88\x90\343\x80\x82", "\x34\x30\61\66" => "\133{$wl}\x5d\40\xe4\xb8\213\350\xbd\xbd\345\xa4\xb1\350\264\245\357\274\x81", "\x34\60\x31\67" => "\344\xbf\256\345\xa4\215\345\xa4\261\xe8\264\xa5\xef\274\201", "\x34\60\61\70" => "\xe5\256\211\350\xa3\205\xe5\244\261\xe8\xb4\245\xef\xbc\x81", "\x34\60\x31\x39" => "\xe5\xae\211\350\xa3\205\346\x88\220\345\x8a\237\357\xbc\x81", "\x34\x30\x32\60" => "\345\272\224\347\224\250\346\x96\x87\xe4\273\xb6\357\274\214\xe5\274\x80\345\xa7\213\xe5\256\211\xe8\243\205\56\x2e\x2e", "\x34\60\62\61" => "\x5b{$wl}\135\x20\xe5\x86\231\xe5\205\xa5\345\244\xb1\xe8\264\245\xef\xbc\x81", "\64\60\x32\62" => "\346\x9c\xaa\xe6\243\x80\346\xb5\x8b\xe5\x88\xb0\346\226\207\xe4\xbb\266\xef\274\x81", "\x34\60\62\63" => "\xe5\xbe\256\xe4\277\241\345\205\254\xe4\274\x97\xe5\x8f\267\xe4\xba\214\347\xbb\264\347\240\x81\346\x89\xab\xe6\x8f\x8f\xe8\xb6\205\xe6\227\266\357\xbc\x81{$wl}", "\x34\x30\x32\64" => "\xe5\x9f\x9f\345\220\215\346\x9c\252\xe8\216\xb7\345\xbe\x97\xe6\x8e\210\346\x9d\x83\357\xbc\x81", "\x34\60\x32\65" => "\xe5\256\211\350\xa3\205\xe9\x94\201\346\x9d\203\351\231\x90\344\270\215\350\xb6\xb3\357\274\201"]; goto SKnWO; uf: list($ZW, $wl) = $ZW; goto e8Bb6; W1hb: if (!is_array($ZW)) { goto OTvj; } goto uf; bu: global $_M; goto W1hb; Dw: return $this; goto TY_vw; SKnWO: $this->a48J = ["\145\x72\x72\143\x6f\x64\145" => $ZW, "\145\162\162\x6d\x73\x67" => $JWF5[$ZW]]; goto Dw; e8Bb6: OTvj: goto mfSK7; TY_vw: } public function mysql_config($jTK_S = [], $fzl = true) { goto Y4vo; AKb2: $CzfyV = $_M["\x74\x61\x62\154\x65"]["\143\x6c\157\x75\x64\x5f\143\157\x6e\146\151\x67"]; goto xfN3D; bjeYl: if ($fzl) { goto GaztJ; } goto KjTK; nI4p: list($f4ni, $hvCu) = $jTK_S; goto AKb2; Y4vo: global $_M; goto nI4p; v9K_: $hvCu = $RS["\x76\x61\154\x75\145"]; goto XF6M; KjTK: DB::query("\x49\116\123\x45\x52\124\40\x49\116\124\x4f\40{$CzfyV}\40\50\x6e\141\x6d\145\x2c\154\141\x6e\147\x2c\155\137\156\141\x6d\x65\54\x76\x61\154\165\145\51\40\x56\101\x4c\125\105\123\40\50\x27{$f4ni}\x27\x2c\x27{$LeIua}\47\54\47{$this->m_name}\47\54\x27{$hvCu}\x27\x29\40\117\x4e\40\104\125\120\114\x49\x43\x41\124\105\x20\x4b\x45\131\40\125\x50\104\101\124\x45\x20\166\141\154\x75\145\x3d\47{$hvCu}\47\x20"); goto x51; XF6M: SZdg: goto bf9zy; x51: goto SZdg; goto Z2RO; bf9zy: return $hvCu; goto soHg; RlH: $RS = DB::get_one("\163\x65\x6c\x65\143\164\40\x76\141\x6c\x75\145\x20\x66\x72\157\155\x20{$CzfyV}\x20\167\x68\x65\162\145\40\x6e\x61\x6d\145\40\75\40\x27{$f4ni}\47\40\x41\x4e\x44\40\x6d\x5f\156\x61\x6d\x65\40\75\40\47{$this->m_name}\47\40\101\x4e\104\x20\154\x61\x6e\x67\40\75\x20\47{$LeIua}\47\40"); goto v9K_; Z2RO: GaztJ: goto RlH; xfN3D: $LeIua = "\143\154\x6f\x75\144"; goto bjeYl; soHg: } public function get_client_ip() { goto eetX; eetX: $PxO = ["\110\124\x54\x50\137\103\x44\x4e\x5f\123\122\x43\137\x49\120", "\110\124\x54\x50\137\x50\x52\x4f\130\x59\x5f\x43\114\111\x45\116\124\x5f\111\120", "\x48\124\x54\120\x5f\x57\114\137\x50\122\117\x58\x59\x5f\x43\114\111\105\x4e\x54\137\x49\120", "\x48\124\x54\x50\x5f\103\x4c\111\105\x4e\x54\137\x49\120", "\110\124\x54\120\137\130\x5f\106\x4f\x52\x57\x41\x52\x44\x45\x44\x5f\106\117\122", "\122\105\115\117\124\x45\x5f\101\104\104\122"]; goto S6tH; AEt: ZN: goto w1ED; w1ED: return $H7cb; goto wig; fpV0B: foreach ($PxO as $f4ni) { goto WkbP; i0j: TKp: goto fwHE; fwHE: fAo: goto UyL; pE8: $H7cb = $_SERVER[$f4ni]; goto vhJ; WkbP: if (!(!empty($_SERVER[$f4ni]) && strtolower($_SERVER[$f4ni]) != "\165\x6e\153\x6e\x6f\167\x6e" && filter_var($_SERVER[$f4ni], FILTER_VALIDATE_IP))) { goto TKp; } goto pE8; vhJ: goto ZN; goto i0j; UyL: } goto AEt; S6tH: $H7cb = "\x75\x6e\153\x6e\x6f\x77\x6e"; goto fpV0B; wig: } public function jsoncallback($TeuC, $Df8PF = "\x63\141\x6c\x6c\142\x61\143\153") { goto c4RG; Va: $EAJtK = json_encode($TeuC, JSON_UNESCAPED_UNICODE); goto X6HEt; c4RG: global $_M; goto iO7c; Ea: $Df8PF = $_M["\146\x6f\162\x6d"][$Df8PF]; goto Va; X6HEt: echo $Df8PF ? $Df8PF . "\x28" . $EAJtK . "\x29" : $EAJtK; goto rg06P; iO7c: header("\x43\x6f\x6e\x74\x65\156\x74\x2d\x74\x79\160\x65\72\40\141\160\160\x6c\151\x63\141\164\151\x6f\x6e\57\x78\55\x6a\x61\166\x61\163\143\162\x69\160\x74"); goto Ea; rg06P: } public function del_update_dir() { goto Lv2f; PFow: @clearstatcache(); goto i3A0; Lv2f: global $_M; goto PFow; i3A0: if (!(is_dir(APP_UPDATE_DIR) && file_exists(APP_UPDATE_DIR))) { goto Qu1o; } goto yIyg; yIyg: deldir(APP_UPDATE_DIR); goto JcR; JcR: Qu1o: goto ETj; ETj: } } goto ovvaR; ymA: define("\101\120\x50\x5f\125\x50\104\101\x54\x45\137\104\111\122", PATH_APP_FILE . "\165\x70\144\x61\x74\145"); goto eDS; eu: class download { private $yDga; private $bJ7; public $RuqhN; private $fJ3X; private $q5LM; private $EMF6A; private $mi0; private $dlj; private $E1h; private $JIiV; public function __construct($BW) { goto h4lh; yP4v: $this->fJ3X = new session(); goto pT_u; W_a0: $this->mi0 = APP_UPDATE_DIR . "\x2f\x66\x69\154\x65\57"; goto bOqfA; RXBro: $this->RuqhN = $BW; goto yP4v; bOqfA: $this->dlj = APP_UPDATE_DIR . "\x2f\x64\x6c\x6c\x69\163\x74\x2e\x6a\163\157\x6e"; goto RXBro; pN: $this->EMF6A = APP_UPDATE_DIR; goto W_a0; bUstz: $this->q5LM = PATH_APP_FILE; goto pN; pT_u: $this->E1h = $this->RuqhN->met_adl(); goto dlAA; h4lh: global $_M; goto bUstz; dlAA: } public function download($HvL) { goto ATf; ATf: global $_M; goto nbC; wL4: $this->E1h["\157\154\144\x76\145\162"] = $this->E1h["\x76\145\x72"]; goto G_gA; i4: switch ($oVrw) { case "\x63\150\x65\143\153": self::app_file_check(); goto FU; case "\144\154": self::app_file_dl($S6x); goto FU; case "\143\157\162\x65": self::app_file_core(); goto FU; case "\162\145\160\141\x69\x72": self::app_file_repair(); goto FU; case "\x64\154\x66\151\x6c\145": goto DRG; PeA_: RA8i: goto Lla; O2i2: $aSq = $this->RuqhN->resmsg(); goto IeZEL; IeZEL: if (!($aSq["\153\x65\x79"] == 4)) { goto RA8i; } goto D9lyP; r9G: self::app_file_dl($S6x); goto QNPA; D9lyP: $this->RuqhN->msgkey(1); goto PeA_; Lla: goto FU; goto e0hAd; DRG: $this->bJ7 = "\144\x6c"; goto r9G; QNPA: self::app_file_repair(); goto O2i2; e0hAd: case "\165\x70\144\x61\164\145": case "\x69\x6e\163\x74\x61\154\154": self::app_file_install(); goto FU; default: goto FU; } goto VTci; jkW: FU: goto wodN; YtFkT: if (!($this->JIiV == "\x75\x70\x64\141\164\145")) { goto OjLu; } goto wL4; nbC: list($wNK, $oVrw, $S6x, $VFL, $WUPyx) = explode("\x7c", $HvL); goto BM_; G_gA: $this->E1h["\166\145\162"] = self::app_update_ver(); goto qv; Vje: $this->bJ7 = $oVrw; goto d; d: $this->yDga = ["\x73\165\x63" => false, "\x64\x61\164\x61" => ["\143\x6b\163\151\x67\x6e" => $this->JIiV, "\155\x65\x74\150\x6f\x64" => $this->bJ7, "\x73\x74\145\160" => $S6x]]; goto YtFkT; qv: OjLu: goto i4; BM_: $this->JIiV = $wNK; goto Vje; VTci: jrn3: goto jkW; wodN: } public function app_file_check() { goto CwT6; UhM2Q: if ($rjGA["\143\x6f\x64\145"]) { goto FnoIM; } goto dpq; I18j: goto LIu1; goto gahv; SJ1m: modifydirpower($this->EMF6A, 0777); goto bK; e4L: if (file_exists($this->EMF6A)) { goto Yge; } goto jlYek; bhMSA: $this->RuqhN->locmsg(4022); goto DkA; c2Za: if (in_array($this->JIiV, ["\151\x6e\x73\x74\141\154\154", "\x75\160\144\x61\164\x65"])) { goto d0ri; } goto IV8f; gahv: d0ri: goto Sql0l; oER: Ro: goto c2Za; HSlq: $AckO = self::statekey(); goto bM0J; l30TH: Yge: goto Ef; DkA: goto aCYA; goto PzT; apSb: return $this->RuqhN->locmsg([4005, $StGsf]); goto sid; SjUwT: goto k4b; goto l30TH; WhB0: return $this->RuqhN->locmsg([4007, $y70L]); goto QD; Sql0l: $rjGA = self::curljson(["\141\144\x6c" => $this->E1h]); goto UhM2Q; NLhd: $V0jD = $rjGA["\x64\x6c\x6c\x69\163\x74"]; goto xZo0; PzT: a7m: goto L; sid: Ag2: goto L5uq; vwXtx: if (!(file_put_contents($this->dlj, $tDvXk) === false)) { goto dETh; } goto xxwuN; ulX: $StGsf = str_replace(PATH_WEB, '', $this->EMF6A); goto O8q9; bM0J: if (!empty($AckO)) { goto Ro; } goto ZWCx; Lxno: return $this->RuqhN->locmsg([4006, $StGsf]); goto Ukk; xxwuN: $y70L = str_replace(PATH_WEB, '', $this->dlj); goto WhB0; lPK: $this->fJ3X->del("\144\x6c\x6c\x69\x73\164"); goto I18j; Ef: deldir($this->EMF6A, 1); goto SJ1m; L: $tDvXk = json_encode(["\144\154\154\x69\x73\164" => array_keys($V0jD), "\146\151\156\147\x65\x72\x73" => $V0jD], JSON_UNESCAPED_UNICODE); goto vwXtx; xZo0: ZzX: goto w4z; djX: makedir($this->EMF6A); goto SjUwT; jlYek: modifydirpower($this->q5LM, 0777); goto djX; dpq: return $this->RuqhN->errmsg($rjGA["\x65\162\162\x63\x6f\x64\145"], $rjGA["\x65\x72\162\x6d\x73\147"]); goto Qq0E; Qq0E: goto ZzX; goto hN2; CwT6: global $_M; goto e4L; w4z: LIu1: goto gE3I; jmk0: $this->RuqhN->modalmsg(self::modal(0, "\x64\x6c"))->msgkey()->msgtext(4009); goto RHyd; L5uq: if (getdirpower($this->EMF6A)) { goto oFS; } goto Lxno; QD: dETh: goto jmk0; IV8f: $V0jD = $this->fJ3X->get("\x64\154\x6c\151\163\164"); goto lPK; Ukk: oFS: goto HSlq; ZWCx: return $this->RuqhN->locmsg(4008); goto oER; O8q9: if (file_exists($this->EMF6A)) { goto Ag2; } goto apSb; RHyd: aCYA: goto FrdgO; hN2: FnoIM: goto NLhd; gE3I: if (count($V0jD) > 0) { goto a7m; } goto bhMSA; bK: k4b: goto ulX; FrdgO: } public function app_file_dl($S6x) { goto BR; sbTV: $this->E1h["\144\x69\162\146\151\154\x65"] = $efa["\144\154\x6c\151\x73\x74"][$S6x]; goto DsSo; jk4: $this->RuqhN->locmsg([4021, $this->E1h["\x64\x69\162\146\151\154\145"]]); goto NPbSP; M16V: $this->RuqhN->modalmsg(self::modal($S6x, $this->JIiV))->msgkey()->msgtext(in_array($this->JIiV, ["\151\156\x73\164\x61\x6c\x6c", "\165\x70\x64\x61\164\x65"]) ? 4020 : 4013); goto XeM4O; NPbSP: ugX6: goto b2bSr; jzbv: if ($y70L["\x63\157\144\x65"]) { goto XmYnE; } goto S5rh; khjI8: set_time_limit(60); goto sbTV; kjf: Mokb: goto KVQKy; DsSo: $this->E1h["\x66\x69\154\x65\150\141\x73\150"] = $efa["\x66\x69\x6e\147\145\162\163"][$this->E1h["\144\151\x72\146\151\x6c\145"]]; goto My_; nq: $jir = iconv("\125\124\x46\55\70", "\107\x42\113", $jir); goto fqQ_; BR: global $_M; goto kT_f; OUqs: $jir = $this->mi0 . $this->E1h["\x64\x69\x72\x66\x69\154\x65"]; goto WfxS; EGfv: goto DNvo; goto qPJK; kT_f: $efa = self::app_get_file(); goto D6YY; PrU: $wl = floor($S6x / count($efa["\144\154\154\x69\163\x74"]) * 100) . "\x25"; goto UY_Z; lrx: goto Mokb; goto OGvrV; WfxS: if (!stristr(PHP_OS, "\127\111\116")) { goto M18; } goto nq; y36: goto vUd; goto h79R; EU_: if ($this->E1h["\x66\151\x6c\145\150\x61\163\150"] != md5_file($jir)) { goto W1G; } goto MvZ; oqUT: if (file_exists($jir)) { goto Hcf; } goto aah; yKhl: $this->RuqhN->locmsg([4016, $this->E1h["\144\x69\162\146\151\154\x65"]]); goto kjf; TE2: $NAMV = base64_decode($y70L["\x66\151\x6c\x65"]); goto Z3dc; aah: makefile($jir); goto mav6f; OGvrV: W1G: goto yKhl; Z3dc: if (file_put_contents($jir, $NAMV) == false && strlen($NAMV) > 0) { goto jwpg; } goto EU_; KVQKy: goto ugX6; goto vV3Q; XeM4O: DNvo: goto wtK; vV3Q: jwpg: goto jk4; D6YY: if (count($efa["\144\x6c\x6c\x69\x73\x74"]) == $S6x) { goto YtHl; } goto khjI8; mav6f: Hcf: goto TE2; S5rh: $this->RuqhN->errmsg($y70L["\145\162\x72\x63\157\144\x65"], $y70L["\145\162\x72\x6d\x73\x67"]); goto y36; UY_Z: $this->RuqhN->modalmsg(self::modal($S6x))->msgkey()->msgtext([4010, $wl]); goto lrx; b2bSr: vUd: goto EGfv; My_: $y70L = self::curljson(["\141\x64\x6c" => $this->E1h]); goto jzbv; MvZ: $S6x++; goto PrU; h79R: XmYnE: goto OUqs; qPJK: YtHl: goto M16V; fqQ_: M18: goto oqUT; wtK: } public function app_file_core() { goto P8HYB; V1h: oGgS: goto xHLD; P8HYB: global $_M; goto ReV1; xHLD: @clearstatcache(); goto jvo0; jvo0: unset($this->yDga["\x64\141\x74\141"]); goto mGFW; tBD7: $this->RuqhN->locmsg(4017); goto kQ; ReV1: if (movedir($this->mi0, $this->q5LM)) { goto oGgS; } goto tBD7; kQ: goto MgHS; goto V1h; mGFW: $this->RuqhN->modalmsg(self::modal())->msgkey(1)->msgtext(4014); goto kE11; kE11: MgHS: goto d2gN; d2gN: } public function app_file_repair() { goto yisj; ikZ: $this->RuqhN->modalmsg(self::modal())->msgkey(1)->msgtext(4015); goto zC; zC: a: goto Tn9h; QMgiC: q3Z0d: goto wu; yd8cM: goto a; goto QMgiC; uBgb: $this->RuqhN->locmsg(4017); goto yd8cM; hJEY: unset($this->yDga["\144\141\x74\141"]); goto ikZ; wu: @clearstatcache(); goto hJEY; yisj: global $_M; goto oKhN; oKhN: if (copydir($this->mi0, $this->q5LM)) { goto q3Z0d; } goto uBgb; Tn9h: } public function app_file_install() { goto M0qW; X0Da: self::_require(); goto z4_; z4_: !file_exists(INS_LOCK_FILE) ? $this->RuqhN->locmsg(4025) : $this->RuqhN->msgkey(1)->msgtext(4019); goto HDf; iYyti: $this->RuqhN->locmsg(4018); goto HGl; CHwR: Fe_: goto X0Da; M0qW: global $_M; goto Omi; lDex: @clearstatcache(); goto dvb; S3WpH: $F34B_ = movedir($this->mi0, $this->q5LM); goto lDex; Jo0a: if ($F34B_) { goto Fe_; } goto iYyti; HDf: a1uP: goto WfHX; dvb: hSp: goto Jo0a; Omi: $F34B_ = false; goto Iw3; Iw3: if (!file_exists($this->mi0)) { goto hSp; } goto S3WpH; HGl: goto a1uP; goto CHwR; WfHX: } public function app_get_file() { global $_M; return file_exists($this->dlj) ? json_decode(file_get_contents($this->dlj), true) : []; } public function app_update_ver() { goto hki; x3TD: $ZZBOn = $this->fJ3X->get("\156\145\x77\141\160\160"); goto fV; hki: global $_M; goto x3TD; fV: return $ZZBOn["\x76\x5f\x76\x65\162"]; goto tNRM; tNRM: } private function statekey() { goto KTJ; FqPOz: $SOnJX = false; goto J9; ksB: $SOnJX = true; goto kAxt; xIcu2: $MZvk = (new curls($this->RuqhN))->apikey_decode([$O0lvp, $this->E1h["\x6d\145\x74\x5f\x77\x65\x62\x75\x72\154"], $this->E1h["\155\x5f\156\x61\155\x65"], $this->E1h["\x61\x64\x64\x74\x69\x6d\x65"]]); goto gHE; Jy: C11i: goto rmXL; Oyp9d: return $SOnJX; goto scn; pEn: Cf7B: goto Oyp9d; M9wd: $o5NB = date("\131\55\155\x2d\144\x20\110\x3a\151\72\x73", $MZvk["\x76\x61\164\151\x6d\145"]["\x73\x74\x69\x6d\145"]); goto Lt; nig: $SOnJX = false; goto Jy; Lt: if (!(strtotime("{$o5NB}\x20\x2b{$MZvk["\x76\141\164\x69\155\145"]["\155\x69\x6e\165\x74\x65"]}\x20\155\151\x6e\165\164\x65") <= time())) { goto C11i; } goto nig; kAxt: if (!($MZvk["\x76\x61\x74\x69\x6d\145"]["\155\151\156\x75\x74\145"] > 0)) { goto L6; } goto M9wd; KTJ: global $_M; goto FqPOz; rmXL: L6: goto pEn; J9: $O0lvp = $this->fJ3X->get("\143\x68\145\x63\153"); goto xIcu2; gHE: if (empty($MZvk["\x73\164\141\x74\x65"])) { goto Cf7B; } goto ksB; scn: } private function modal($S6x = '', $oVrw) { goto WGy4g; WGy4g: global $_M; goto mdq; dcoG: return $V_Z; goto MdD; OHgr: $V_Z["\144\x61\164\x61"] = arrayto_string($V_Z["\x64\141\164\141"], "\174"); goto W9Z6; fdu: $this->yDga["\x64\141\x74\141"]["\x73\164\x65\160"] = $S6x; goto z8; z8: sgrF: goto gFUA; gFUA: if (!(strlen($oVrw) > 0)) { goto hhG_U; } goto T1mt; T1mt: $this->yDga["\x64\x61\x74\x61"]["\x6d\145\x74\150\x6f\x64"] = $oVrw; goto micd; mdq: if (!(strlen($S6x) > 0)) { goto sgrF; } goto fdu; W9Z6: aPoh: goto dcoG; micd: hhG_U: goto H4RN; Ke: if (!(count($this->yDga["\144\x61\x74\141"]) > 0)) { goto aPoh; } goto OHgr; H4RN: $V_Z = $this->yDga; goto Ke; MdD: } private function curljson($P22I = [], $Al = false, $So = 60, $E6r = "\x64\x6c") { global $_M; return (new curls($this->RuqhN))->apiurl($this->bJ7, $E6r)->apipost($P22I)->curls($So)->resdata($Al); } private function _require() { goto ckDhr; Dfo3: FAoDr: goto RaX; B63u9: $StGsf = $this->EMF6A . "\x2f\x75\160\144\x61\x74\145\56\143\154\x61\x73\163\x2e\160\150\x70"; goto TBAMl; LOf: $vlua = load::own_class("\x75\160\144\x61\x74\145\x2f\165\160\144\x61\164\x65", "\156\x65\167"); goto s2E; ao: if (!file_exists($StGsf)) { goto FAoDr; } goto LOf; ckDhr: global $_M; goto B63u9; TBAMl: $UWssl = []; goto ao; s2E: $vlua->set($this->E1h)->start(); goto Dfo3; RaX: $this->RuqhN->del_update_dir(); goto hzOD; hzOD: } } + goto kVEe; q0Du: define("\101\120\120\x5f\x55\x50\x44\101\x54\x45\137\x44\x49\122", PATH_APP_FILE . "\x75\x70\144\141\164\x65"); goto wwhlX; KEbsg: class session { private $HoE = M_NAME; public function __construct() { global $_M; self::start(); } public function start() { goto jal; PQM: session_id(md5($_SERVER["\110\124\x54\120\x5f\x55\123\105\x52\137\101\x47\x45\x4e\x54"] . $this->HoE . $j37)); goto Dnw; jal: $j37 = self::getip(); goto PQM; Dnw: session_start(); goto w5pJ6; w5pJ6: } public function set($cIPO, $bZ7C) { self::start(); $_SESSION[$cIPO] = $bZ7C; } public function get($cIPO) { self::start(); return $_SESSION[$cIPO]; } public function del($cIPO) { self::start(); unset($_SESSION[$cIPO]); } public function getip() { goto KmCcR; rjK_6: $HTdJk = explode("\54", $_SERVER["\x48\124\x54\x50\137\x58\x5f\x46\x4f\122\127\101\122\104\105\104\x5f\106\x4f\x52"]); goto sc; su02X: NtR8: goto rjK_6; sc: $j37 = $HTdJk[0]; goto Tar; zkdj: Fzs: goto rw0c8; nwqNN: if (isset($_SERVER["\x52\105\x4d\117\x54\105\x5f\x41\104\x44\122"]) && $_SERVER["\122\105\x4d\x4f\x54\105\x5f\101\104\x44\x52"] && strcasecmp($_SERVER["\122\x45\115\117\x54\105\137\101\104\x44\x52"], $WX1e)) { goto XZN; } goto p8GX; Tar: goto Fzs; goto VX87T; YeUP: if (isset($_SERVER["\110\x54\x54\x50\x5f\130\137\106\x4f\122\x57\101\x52\104\105\x44\x5f\106\117\122"]) && $_SERVER["\x48\124\x54\120\x5f\130\x5f\106\117\122\127\x41\122\x44\x45\104\x5f\106\117\x52"] && strcasecmp($_SERVER["\110\x54\124\120\x5f\130\x5f\x46\117\x52\127\x41\x52\104\x45\x44\137\106\x4f\x52"], $WX1e)) { goto NtR8; } goto nwqNN; Nyd: $j37 = $_SERVER["\122\105\x4d\117\x54\105\137\101\104\104\x52"]; goto zkdj; KmCcR: $WX1e = "\x75\156\x6b\x6e\x6f\x77\x6e"; goto YeUP; VX87T: XZN: goto Nyd; rw0c8: return $j37; goto WyM0e; p8GX: goto Fzs; goto su02X; WyM0e: } } goto kIB; wwhlX: class index extends admin { private $V89Ao; private $rKG8I; private $OyfR; private $F60ZJ; private $time; public function __construct() { goto MRKkw; glwK: $this->time = time(); goto T53; LREM: parent::__construct(); goto glwK; T53: $this->rKG8I = new appcore(); goto WLJO; WLJO: $this->F60ZJ = $this->rKG8I->get_app_url(); goto wo7; MRKkw: global $_M; goto LREM; wo7: } public function doindex() { goto vjTY; True: if (!file_exists(INS_LOCK_FILE) || file_exists(UPD_LOCK_FILE)) { goto eGKy; } goto c9C; S8oB: jFGm: goto EbSn; ATQ: turnover($this->F60ZJ, "\x4e\157\x20\x70\x72\157\155\160\164"); goto Rj7m; O9E: goto OXh; goto h; C2G: if (!file_exists(INS_LOCK_FILE) || $_M["\x66\x6f\x72\x6d"]["\x63\150\x65\x63\x6b"]) { goto jFGm; } goto ATQ; c9C: define("\x43\x48\105\103\113\x5f\111\124\x45\x4d", "\x73\x65\162\166\145\x72\x7c\x73\x79\163\x74\145\155\x7c\x61\143\143\x72\x65\x64\151\164\174\141\160\x70\x66\151\154\x65\x7c\x77\x65\161\162\x63\157\144\x65\x7c\165\160\x64\141\x74\145\x7c\x61\x70\160\143\x68\x65\x63\x6b"); goto O9E; vjTY: global $_M; goto C2G; Lx: $this->DD2s["\x61\160\160"]["\141\x64\x64\164\x69\155\x65"] = date("\131\55\x6d\55\x64\40\110\72\x69\x3a\163", $this->DD2s["\141\160\160"]["\141\144\144\164\151\x6d\145"]); goto True; SJkj: $this->DD2s["\143\x6b\151\164\x65\x6d"] = CHECK_ITEM; goto OKaD; h: eGKy: goto sdov; sdov: define("\103\x48\x45\x43\113\x5f\x49\x54\105\115", "\163\x65\x72\166\x65\162\174\x73\171\x73\164\x65\155\x7c\x61\143\x63\x72\x65\x64\x69\164\x7c\x61\160\x70\146\151\154\145\x7c\x77\145\161\x72\x63\x6f\144\x65\174\x61\160\160\143\x68\145\143\x6b"); goto Lyp; Rj7m: goto oux1_; goto S8oB; Lyp: OXh: goto SJkj; EbSn: $this->DD2s["\141\x70\x70"] = $this->rKG8I->met_app(); goto sEh; nkUC: $this->DD2s["\x61\160\160"]["\x61\x70\x70\x6e\141\155\x65"] = get_word($this->DD2s["\141\x70\160"]["\141\160\160\156\x61\155\145"]); goto Lx; sEh: $this->DD2s["\x61\160\160"]["\151\143\x6f\156"] = $_M["\x75\162\x6c"]["\141\160\160"] . M_NAME . "\x2f\x69\x63\x6f\156\56\x70\156\147"; goto nkUC; zwZx: oux1_: goto r5aAK; OKaD: require $this->show("\x61\160\x70\x2f\151\156\144\x65\170", $this->DD2s); goto zwZx; r5aAK: } public function doappcheck() { goto zQu; fEW: UHI: goto Ow6EL; qn6: $this->OyfR = new session(); goto cgoW; zQu: global $_M; goto qn6; C_hR9: self::del_cache(); goto fEW; cgoW: $this->V89Ao = $_M["\146\x6f\162\x6d"]["\164\171\160\145"]; goto mNwJ; CJG: self::result(); goto plcp; mNwJ: if (!($this->V89Ao == "\163\x65\162\166\145\162")) { goto UHI; } goto C_hR9; plcp: echo $this->rKG8I->resmsg(false); goto pkj; Ow6EL: self::{$this->V89Ao}(); goto CJG; pkj: } public function download() { goto oODRk; HTNF: (new download($this->rKG8I))->download($_M["\146\157\x72\155"]["\144\141\x74\141"]); goto lB; oODRk: global $_M; goto HTNF; lB: echo $this->rKG8I->resmsg(false); goto H5N; H5N: } public function domodal() { goto Zruz; GVym: switch ($_M["\x66\157\x72\155"]["\164\x79\x70\145"]) { case "\141\160\160\x66\151\x6c\145": $gaJ = self::appfile_modal(); goto RQv; case "\x77\x65\x71\x72\143\157\144\145": $gaJ = self::weqrcode_modal(); goto RQv; case "\167\145\x63\150\141\164": $gaJ = self::wechat_modal(); goto RQv; case "\165\x70\144\x61\x74\145": $gaJ = self::update_modal(); goto RQv; default: goto RQv; } goto zSE3; cRuzv: $this->OyfR = new session(); goto GVym; DDNm: RQv: goto MgX; zSE3: kZn: goto DDNm; Zruz: global $_M; goto cRuzv; MgX: echo $this->rKG8I->jsoncallback($gaJ); goto d2kz; d2kz: } public function doajax() { goto QdWMX; QJFwf: if (!($ldW["\x76\x61\164\x69\x6d\x65"]["\x6d\151\x6e\x75\x74\x65"] > 0)) { goto a7K; } goto SKN; tjos: a1yM: goto Dcp; Dcp: $xyFh3 = $P8WZ && !empty($gtr["\x77\x65\143\150\x61\164"]) && !empty($gtr["\165\x70\x64\141\164\x65"]) ? true : false; goto Mzv; oBctW: $gtr = ["\164\151\155\x65" => strtotime("{$dHl}\40\53\x31\x20\144\141\171"), "\143\x68\145\143\153" => $vMR4->get("\x63\x68\145\x63\x6b"), "\167\x65\143\150\x61\x74" => (int) $vMR4->get("\x77\145\x63\150\x61\164"), "\165\160\x64\x61\x74\x65" => (int) $vMR4->get("\165\160\x64\x61\164\x65")]; goto LuZ; b27IO: $lwyvK = (new curls($this->rKG8I))->apipost($gtr)->resdata(true); goto S_Sh; Di: $gtr = $bHkH9["\143\157\144\x65"] ? $bHkH9["\143\x61\143\x68\x65"] : []; goto pCV; zj7H: $pyns = stringto_array(CHECK_ITEM, "\174"); goto Ryw; Ym2xh: if (file_exists(INS_LOCK_FILE)) { goto uVf; } goto EQb; MtmP: $pIp .= "\x20\x20\xef\xbc\x88{$cwC}\357\274\x89"; goto NsPy; xSl: kSbO: goto UNxXk; i97q: if (!($cwC <= $this->time)) { goto wN0xV; } goto Crk0; EQb: $pIp = "\74\x62\x75\164\x74\x6f\156\x20\x74\171\160\x65\75\42\142\x75\x74\164\x6f\156\42\40\x63\x6c\141\x73\163\x3d\42\x62\x74\x6e\x20\x62\164\156\x2d\x69\156\x66\157\x20\x61\x70\160\151\156\163\x74\141\154\x6c\42\76\xe5\256\211\xe8\xa3\205\345\272\224\347\x94\xa8\x3c\57\x62\x75\164\x74\x6f\x6e\76"; goto eLcD; ZDrPK: wN0xV: goto tjos; F7Tj: $xyFh3 = false; goto r5eCn; gvw: $lwyvK["\x65\170\145\x74\x69\155\145"] = $this->time; goto b27IO; F3I: u6Sx: goto ATXk; PGk: if (!$P8WZ) { goto wnapG; } goto FhMlp; coR2w: $dHl = date("\131\x2d\155\x2d\x64\40\110\72\x69\x3a\163", $this->time); goto obM; LuZ: $Rc = $vMR4->get("\x63\x6b\x69\x74\145\x6d"); goto zj7H; ATXk: goto sRcf; goto jVBj; pCV: LQI: goto RwxB; jVBj: zmHp: goto coR2w; RwxB: if (!file_exists(UPD_LOCK_FILE)) { goto RkvvI; } goto rcOE; UNxXk: Is65V: goto dQ; NsPy: a7K: goto F3I; CbC: echo $this->rKG8I->resmsg(false); goto V7e2n; S_Sh: $this->rKG8I->mysql_config(["\x61\143\137\x63\141\143\150\145", $lwyvK], false); goto nGe; r5eCn: if ($_M["\x66\157\x72\155"]["\x73\151\x67\156"] == "\141\160\x70\x63\x68\145\x63\153") { goto zmHp; } goto va_J; dQ: $vMR4->del("\143\153\151\164\145\x6d"); goto bMQ; va_J: $this->OyfR = new session(); goto MDWd; So3: $this->V89Ao = "\143\x68\x65\x63\153"; goto Wb2; QUws: $P8WZ = $ldW["\163\x74\141\x74\x65"] && $ldW["\x61\x70\x70"]["\166\x5f\155\x5f\156\x61\x6d\x65"] == M_NAME ? true : false; goto PGk; Xdf: $pIp = "\347\211\210\346\234\xac\xe5\x8f\267\xef\274\232{$T6zyq[$ldW["\x61\x70\x70"]["\x76\137\x76\x65\x72\164\x79\x70\145"]]}\56{$ldW["\x61\160\x70"]["\166\x5f\x76\145\162"]}"; goto QJFwf; d0C: jbK: goto DN6; bMQ: sRcf: goto gvw; PKP0: $dHl = date("\131\x2d\x6d\55\144\x20\x48\x3a\x69\x3a\x73", $ldW["\166\x61\x74\151\x6d\x65"]["\163\x74\151\x6d\x65"]); goto nJs; PQh2P: uVf: goto vW2J; B15c: RkvvI: goto L7n; nJs: $cwC = strtotime("{$dHl}\40\53{$ldW["\166\x61\x74\151\155\x65"]["\x6d\x69\x6e\x75\x74\x65"]}\x20\x6d\x69\x6e\x75\164\145"); goto i97q; obM: $vMR4 = new session(); goto oBctW; Wb2: $bHkH9 = self::curljson($yhphG, false, 25); goto Di; eLcD: goto kSbO; goto PQh2P; Mzv: wnapG: goto d0C; Crk0: $P8WZ = false; goto ZDrPK; L7n: if (empty($gtr)) { goto jbK; } goto ENy1; SKN: $cwC = date("\131\x2d\x6d\x2d\x64\x20\110\x3a\151\72\x73", $cwC); goto MtmP; DN6: if (!$xyFh3) { goto u6Sx; } goto FpXZl; MDWd: self::del_cache(); goto a7qJ; QdWMX: global $_M; goto F7Tj; vW2J: $pIp = "\74\141\40\150\x72\x65\146\75\42" . $this->F60ZJ . "\42\x20\x63\154\141\163\x73\x3d\42\x62\x74\156\40\x62\x74\156\x2d\x73\165\x63\143\x65\163\x73\42\40\76\xe8\277\233\xe5\x85\xa5\xe5\xba\x94\347\x94\250\74\57\141\x3e"; goto xSl; a7qJ: $lwyvK = $this->rKG8I->mysql_config(array("\x61\x63\137\x63\x61\143\x68\145")); goto UT0; Ryw: if (in_array(0, $Rc)) { goto Is65V; } goto XFj0; OYMS: $yhphG = $this->rKG8I->met_all(); goto f5n; ENy1: $ldW = (new curls($this->rKG8I))->apikey_decode([$gtr["\143\150\145\143\x6b"], $yhphG["\167\145\142"]["\155\145\164\x5f\167\x65\142\165\x72\x6c"], $yhphG["\141\160\160"]["\155\137\156\141\x6d\x65"], $yhphG["\x61\x70\160"]["\x61\144\144\x74\x69\x6d\145"]]); goto QUws; FhMlp: if (!($ldW["\x76\141\164\151\155\x65"]["\x6d\x69\x6e\x75\x74\x65"] > 0)) { goto a1yM; } goto PKP0; nGe: $xyFh3 ? $this->rKG8I->msgkey(1)->msgmeet($pIp, true) : $this->rKG8I->locmsg(4012); goto CbC; FpXZl: $T6zyq = ["\x59", "\123", "\x44"]; goto Xdf; rcOE: $gtr["\165\x70\x64\141\x74\x65"] = 1; goto B15c; XFj0: $xyFh3 = true; goto Ym2xh; f5n: if (!(empty($lwyvK) || $gtr["\x74\x69\x6d\145"] < strtotime("\x2b\61\x20\150\157\165\162"))) { goto LQI; } goto So3; UT0: $gtr = (new curls($this->rKG8I))->postr($lwyvK, '', false)->resdata(); goto OYMS; V7e2n: } protected function server() { goto g_m; HwO: $this->OyfR->set("\163\x79\x73\164\145\155", $uzd["\x73\171\163\x74\145\x6d"]); goto FrmyL; MR: $this->rKG8I->errmsg($uzd["\145\162\162\143\157\144\145"], $uzd["\145\162\162\x6d\163\147"]); goto AN0K; OyL: $this->rKG8I->sucmsg($uzd["\164\x65\170\x74"]); goto leNCx; leNCx: dz7: goto M3xC; Xh0: $uzd = self::curljson($this->rKG8I->met_web_app()); goto B2HgA; B2HgA: if ($uzd["\143\157\144\145"]) { goto bcjuA; } goto MR; CoUV: bcjuA: goto OyL; AN0K: goto dz7; goto CoUV; g_m: global $_M; goto Xh0; M3xC: $this->OyfR->set("\141\x70\160\x6c\151\163\164", $uzd["\x61\160\x70\154\151\163\x74"]); goto HwO; FrmyL: } protected function system() { goto qu2jp; EW0d: $oWISt = $MH2Ey["\x70\x68\x70\166\145\x72"]["\143\x6f\x64\145"]; goto Mve; Mve: $axZ = [[$oWISt, $MH2Ey["\160\150\x70\166\x65\162"]["\x74\145\x78\x74"]], [$uh, $MH2Ey["\x6d\x65\x74\166\145\x72"]["\x74\145\170\x74"]]]; goto uqvr; WKs: $uh = $MH2Ey["\x6d\145\x74\x76\145\162"]["\143\x6f\x64\145"]; goto EW0d; qu2jp: global $_M; goto ZBa; uqvr: $this->rKG8I->vagmsg($uh && $oWISt ? 1 : 0, $axZ); goto TPmo; ZBa: $MH2Ey = $this->OyfR->get("\x73\x79\x73\x74\145\155"); goto WKs; TPmo: $this->OyfR->del("\163\x79\163\x74\x65\x6d"); goto X4O; X4O: } protected function accredit() { goto Dor; OR5: nqOg5: goto s8Sb; dpr: goto nqOg5; goto Sg5; TQC7i: ZE5b3: goto mfW; QSe: $this->rKG8I->errmsg($TsEb["\145\x72\x72\143\157\x64\x65"], $TsEb["\x65\x72\x72\155\x73\x67"]); goto dpr; Zsp: if (!(!empty($Z3z["\x73\x74\141\164\x65"]) && $Z3z["\166\141\x74\x69\155\145"]["\155\151\x6e\x75\164\145"] > 0)) { goto ZE5b3; } goto Rq7; n5z: $TsEb = self::curljson($yhphG, false, 20); goto eFiU; Rq7: $dHl = date("\x59\55\x6d\x2d\x64\x20\110\x3a\x69\x3a\x73", $Z3z["\x76\141\164\151\x6d\145"]["\x73\164\151\155\x65"]); goto RnhO; TaRH: $Z3z = (new curls($this->rKG8I))->apikey_decode([$TsEb["\x63\x6f\144\145\x6b\145\171"], $yhphG["\x77\x65\x62"]["\155\145\164\137\167\x65\142\165\x72\x6c"], $yhphG["\x61\x70\x70"]["\x6d\137\156\141\155\145"], $yhphG["\x61\x70\x70"]["\x61\144\144\x74\x69\155\x65"]]); goto Zsp; s8Sb: $this->OyfR->set("\x63\x68\145\x63\x6b", $TsEb["\x63\x6f\x64\x65\153\145\171"]); goto TxP; Sg5: bME: goto TaRH; RnhO: $axZ = "\344\275\x93\xe9\252\214\xe7\273\223\xe6\x9d\237\346\x97\266\351\227\264\xef\274\232" . date("\x59\55\155\55\x64\x20\x48\x3a\x69\72\x73", strtotime("{$dHl}\x20\x2b{$Z3z["\166\141\x74\x69\155\x65"]["\x6d\151\x6e\x75\164\145"]}\x20\155\x69\x6e\165\x74\x65")); goto TQC7i; eFiU: if ($TsEb["\143\157\x64\x65"]) { goto bME; } goto QSe; Dor: global $_M; goto uHS; mfW: $Z3z["\163\164\141\164\x65"] ? $this->rKG8I->sucmsg($TsEb["\x74\145\170\164"] . $axZ) : $this->rKG8I->locmsg(4024); goto OR5; uHS: $yhphG = $this->rKG8I->met_web_app(); goto n5z; TxP: } protected function appfile() { goto CRAg; sYe0k: $this->OyfR->set("\x64\x6c\154\151\x73\164", $BTZ["\x64\x6c\154\151\x73\x74"]); goto qmk; yeyv: $this->OyfR->set("\144\x6c\154\x69\x73\x74", $h6_a["\144\x6c\154\x69\163\x74"]); goto KdGDY; KNr: $gaJ["\144\141\164\x61"] = "\x63\157\x72\145\x7c\x63\150\145\x63\153"; goto r7IE; qmk: $gaJ = $this->rKG8I->msgkey()->msgtext(4004)->resmsg(); goto b7; FNM2: $this->rKG8I->del_update_dir(); goto HoXu; AhAr: pRA: goto tJ7mF; v0: $h6_a = $lGC->fingers($jv_V["\146\151\156\147\145\162\163"]); goto ETK; kaX_: pbcO: goto ZXw; WblF: $jv_V = self::curljson($this->rKG8I->met_web_app()); goto lkhK; KdGDY: $this->OyfR->set("\162\x65\160\141\151\162", $h6_a); goto CmGo; Ugvy: $axZ = "\x3c\141\40\x68\x72\145\146\75\x22\152\141\166\x61\x73\143\x72\x69\x70\x74\x3a\x3b\x22\40\x64\141\164\x61\x2d\164\141\162\147\x65\x74\75\x22\43\141\160\x70\155\x6f\x64\x61\x6c\x22\40\144\x61\x74\x61\55\164\x6f\147\147\x6c\x65\75\42\x6d\157\144\141\154\42\x20\144\141\x74\x61\x2d\x74\171\160\145\x3d\42\141\160\x70\x66\x69\x6c\x65\42\x3e\xe4\xbf\256\345\244\x8d\xe5\xbc\x82\345\xb8\xb8\346\x96\x87\344\xbb\266\74\x2f\141\x3e"; goto pj; ERe: $this->OyfR->set("\141\160\x70\x66\151\x6c\x65", $jv_V); goto UZE; r7IE: return $this->rKG8I->newres()->modalmsg($gaJ, 4001); goto zpP; tH: if (!(count($BTZ["\144\154\154\x69\163\x74"]) > 0)) { goto nRt; } goto sYe0k; UZE: T7xT: goto kaX_; ZXw: $lGC = new dirfinger(); goto wn; wn: $BTZ = $lGC->fingers($jv_V["\143\157\x72\x65\154\151\163\164"]); goto tH; fan: $this->OyfR->del("\x61\160\x70\x66\151\x6c\x65"); goto FNM2; HoXu: return $this->rKG8I->sucmsg()->msgtext(4003); goto AhAr; Xe6D3: return $this->rKG8I->errmsg($jv_V["\145\162\x72\143\157\x64\x65"], $jv_V["\x65\162\162\x6d\x73\x67"]); goto mdjh; CRAg: global $_M; goto BH0; jRCLB: if ($jv_V) { goto pbcO; } goto WblF; XQO: $this->OyfR->del("\x72\145\160\141\x69\x72"); goto fan; LU0Pf: BAHk: goto BhZL4; UL: $jv_V = $this->OyfR->get("\x61\160\x70\146\x69\154\x65"); goto jRCLB; nOz: $cmd = count($h6_a["\x64\154\154\151\x73\x74"]) == 0 ? 1 : 0; goto bky; b7: $gaJ["\163\x75\143"] = false; goto KNr; lkhK: if ($jv_V["\143\157\x64\x65"]) { goto L_; } goto Xe6D3; zpP: nRt: goto v0; CmGo: $gaJ = ["\163\165\143" => true, "\164\151\x74\154\x65" => "\xe5\xba\x94\xe7\224\250\xe6\x96\x87\xe4\273\xb6\344\277\256\xe5\xa4\215", "\142\x6f\x64\171" => "\x3c\144\151\x76\x20\143\x6c\141\x73\163\75\42\164\x65\170\164\x2d\170\x73\x2d\143\145\156\164\x65\162\42\x3e\74\151\40\x63\154\141\x73\163\x3d\42\x6c\157\141\144\x65\162\40\166\145\162\x74\x69\143\x61\x6c\55\x61\154\x69\x67\x6e\x2d\155\151\144\x64\x6c\x65\x20\x6c\x6f\141\144\145\162\55\145\154\154\x69\x70\163\151\163\42\76\x3c\57\151\76\74\x2f\x64\151\x76\x3e", "\x75\x72\154" => $_M["\x75\162\154"]["\157\167\x6e\137\146\157\x72\155"] . "\x61\75\144\157\155\157\x64\x61\154\x26\164\x79\x70\145\x3d\x61\x70\160\x66\151\154\145"]; goto Ugvy; bky: if (!(!$stF || $cmd)) { goto pRA; } goto XQO; pj: return $this->rKG8I->modalmsg($gaJ, [4002, $axZ]); goto LU0Pf; iX2: L_: goto ERe; ETK: $stF = (int) file_exists(INS_LOCK_FILE); goto nOz; mdjh: goto T7xT; goto iX2; BH0: $this->OyfR->del("\x72\145\x70\x61\151\162"); goto UL; tJ7mF: if (!(count($h6_a["\144\x6c\154\x69\163\164"]) > 0)) { goto BAHk; } goto yeyv; BhZL4: } protected function weqrcode() { goto ey; Mzhk: sleep(1); goto eTIp; G3h: $this->OyfR->set("\167\x65\x63\150\x61\x74", $P1i["\x77\170"]["\x6b\x65\x79"]); goto THd; So8: goto gPb; goto X4Yr; CMZh: $gaJ = ["\163\x75\143" => true, "\x74\x69\x74\154\145" => "\xe5\x85\263\xe6\263\250\345\276\256\344\xbf\xa1\345\205\xac\xe4\xbc\227\345\x8f\267", "\142\157\144\171" => "\74\x64\x69\x76\40\x63\154\x61\163\163\x3d\x22\x74\x65\x78\x74\x2d\x78\163\55\x63\145\x6e\164\145\162\x22\76\74\151\40\x63\x6c\141\x73\163\x3d\42\154\157\x61\144\x65\162\x20\x76\145\x72\164\x69\x63\x61\154\55\x61\x6c\x69\x67\x6e\x2d\x6d\151\x64\144\x6c\x65\40\x6c\157\x61\x64\145\x72\x2d\145\154\x6c\x69\160\x73\151\163\42\x3e\x3c\x2f\x69\76\74\x2f\144\x69\166\76", "\165\x72\154" => $_M["\165\x72\154"]["\x6f\x77\156\137\x66\x6f\162\155"] . "\x61\x3d\144\x6f\x6d\157\144\141\x6c\46\x74\171\x70\x65\x3d\x77\x65\x71\x72\143\157\x64\145"]; goto lYM7; IdN: gPb: goto YmYp; ey: global $_M; goto r0KE; HG3r: if (!($yy1 !== '')) { goto IakJ; } goto Mzhk; lYM7: $axZ = "\x3c\141\x20\x68\162\x65\146\x3d\x22\152\x61\166\x61\x73\143\162\x69\x70\164\72\x3b\x22\x20\144\x61\164\x61\55\164\141\x72\x67\x65\x74\x3d\42\x23\141\160\160\155\157\144\x61\x6c\x22\x20\x64\x61\164\141\55\x74\x6f\x67\147\x6c\145\75\x22\x6d\157\x64\x61\154\x22\40\x64\x61\x74\x61\x2d\x74\171\160\x65\x3d\42\x77\x65\161\x72\143\x6f\x64\x65\42\x3e\xe5\205\xb3\xe6\xb3\250\345\x85\254\xe4\xbc\227\xe5\217\xb7\74\57\x61\76"; goto ZtAH; X4Yr: xCFDE: goto eX9U; wb81: PO: goto NXkz; YmYp: z4zQ: goto G3h; r0KE: $yy1 = $this->OyfR->get("\167\x65\143\150\x61\164"); goto HG3r; ZtAH: $this->rKG8I->modalmsg($gaJ)->sucmsg($P1i["\167\x78"]["\162\145\x74"]["\x69\x6e\146\157"] . $axZ, $P1i["\x77\x78"]["\x6b\145\x79"]); goto So8; oEbJ: goto z4zQ; goto wb81; kvqcj: if ($P1i["\143\157\144\x65"]) { goto PO; } goto b3mI; b3mI: $this->rKG8I->errmsg($P1i["\x65\x72\162\x63\157\144\x65"], $P1i["\145\x72\x72\155\163\147"]); goto oEbJ; NXkz: if ($P1i["\x77\170"]["\x6b\x65\171"] == 1) { goto xCFDE; } goto CMZh; eX9U: $this->rKG8I->sucmsg($P1i["\164\145\x78\x74"]); goto IdN; tes: $P1i = self::curljson($this->rKG8I->met_all()); goto kvqcj; eTIp: IakJ: goto tes; THd: } protected function update() { goto cjOF; LU1z: if ($d6z["\x63\157\x64\x65"]) { goto Ju; } goto qN1V; QlLJ: YXQg: goto jo; Em0: $this->OyfR->del("\x6e\145\x77\141\160\160"); goto hvir; jws: $uh = arrayto_string($d6z["\x6e\x65\167\141\160\x70"]["\x76\x5f\155\145\164\166\145\162"], "\40\55\x2d\x20"); goto kpmV; lx0: $wX4sJ = count($d6z["\156\145\x77\141\x70\160"]["\166\137\x6d\145\x74\x76\145\x72"]) == 1 ? "\xe6\234\x80\xe4\xbd\x8e" : ''; goto vUHl; cjOF: global $_M; goto y0RpR; C_u9: if (!(file_exists(UPD_LOCK_FILE) || empty($DW9GR["\x76\x5f\x63\x6b\165\160\x64\141\164\x65"]))) { goto YXQg; } goto Ff0; AbiX: return $this->rKG8I->sucmsg("\xe5\267\262\xe6\230\xaf\346\x9c\x80\xe6\226\260\347\211\210\343\200\202"); goto QlLJ; s1fNi: $this->OyfR->set("\x75\160\144\141\x74\145", 1); goto MXO5o; vUHl: $axZ = "\74\x64\151\166\x20\x63\154\141\163\163\x3d\47\x70\55\x6c\x2d\x31\x30\47\x3e\12\40\x20\40\x20\x20\40\40\x20\x20\40\x20\x20\40\40\x20\40\40\x20\x20\40\x20\x20\40\40\x20\40\x20\40\74\150\65\x3e" . $d6z["\156\145\x77\x61\160\x70"]["\166\137\x76\145\x72"] . "\x20\347\x89\x88\xe6\234\xac\xe7\x8e\xaf\xe5\242\x83\xe8\xa6\201\346\xb1\x82\357\xbc\232\x3c\57\150\65\x3e\12\x20\40\40\40\x20\x20\40\x20\x20\x20\40\40\x20\x20\40\x20\x20\40\40\40\x20\40\40\x20\40\x20\x20\x20\74\157\154\76\x3c\154\151\76\xe5\xba\x94\xe7\224\250" . $QCc2 . "\346\224\257\xe6\x8c\201\x50\x48\120\x20" . $oWISt . "\40\347\x89\x88\346\x9c\254\73\74\57\x6c\x69\76\x3c\154\151\76\xe5\272\x94\347\224\xa8" . $wX4sJ . "\346\224\xaf\xe6\x8c\x81\x4d\145\164\x49\x6e\146\x6f\x20" . $uh . "\x20\347\x89\210\346\x9c\254\73\x3c\x2f\x6c\x69\x3e\74\57\157\x6c\76\12\40\40\40\40\x20\40\40\40\x20\x20\40\x20\x20\x20\40\40\x20\x20\40\x20\x20\x20\x20\x20\40\40\40\40\x3c\150\x35\76" . $d6z["\x6e\x65\x77\141\160\160"]["\x76\x5f\x76\145\x72"] . "\40\347\x89\x88\346\234\254\347\x8e\257\345\xa2\203\xe6\xa3\x80\346\xb5\213\xe7\xbb\223\xe6\x9e\234\357\274\232\74\x2f\150\65\x3e\12\x20\40\x20\40\40\40\40\40\x20\40\40\x20\x20\x20\x20\x20\40\x20\x20\x20\40\40\x20\x20\x20\x20\40\40\x3c\x6f\x6c\76" . $d6z["\163\171\163\164\x65\155"]["\x74\x65\x78\x74"] . "\74\x2f\x6f\x6c\x3e\12\x20\40\40\x20\40\x20\40\x20\40\40\x20\x20\40\40\x20\x20\x20\40\40\x20\x20\x20\x20\x20\x3c\57\x64\151\x76\76"; goto WvQqv; jo: $d6z = self::curljson($this->rKG8I->met_web_app()); goto LU1z; gxNo: $this->OyfR->set("\x75\x70\x64\141\164\145", $pTv); goto KMQ; RdrI: YbM: goto gxNo; tXDdB: Ju: goto QLm; Ff0: $this->OyfR->set("\165\160\144\141\x74\x65", 1); goto AbiX; ZSL4: $pTv = $d6z["\156\145\x77\141\x70\x70"]["\x76\x5f\x75\x70\144\141\164\x65"] == 1 ? 0 : 2; goto XeMOv; QLm: if (!($d6z["\143\157\144\x65"] == 8002)) { goto LVM; } goto s1fNi; MXO5o: return $this->rKG8I->sucmsg($d6z["\x74\145\x78\164"]); goto mh0H; l5uF: $gaJ = ["\x73\165\x63" => true, "\164\x69\x74\154\145" => $d6z["\156\145\167\x61\x70\x70"]["\166\137\x76\x65\162"] . "\40\xe6\233\xb4\xe6\x96\260\xe5\x86\205\345\256\xb9", "\142\157\144\x79" => "\74\x64\x69\x76\x20\x63\x6c\x61\x73\163\x3d\x22\x74\x65\x78\164\x2d\x78\x73\55\x63\x65\x6e\x74\x65\x72\42\76\x3c\x69\40\143\154\141\163\163\75\x22\x6c\157\x61\x64\x65\162\x20\x76\145\x72\164\x69\x63\x61\154\x2d\141\x6c\151\x67\x6e\55\x6d\151\144\144\x6c\145\x20\x6c\157\141\144\x65\x72\x2d\145\154\154\x69\x70\163\151\x73\42\x3e\x3c\x2f\x69\76\74\57\x64\x69\x76\76", "\x75\x72\154" => $_M["\x75\x72\154"]["\x6f\x77\156\x5f\146\157\x72\x6d"] . "\141\x3d\144\157\155\x6f\144\141\x6c\x26\164\171\160\x65\x3d\165\x70\144\x61\164\145"]; goto lpXeB; qN1V: $pTv = 1; goto QYjxl; d: $oWISt = arrayto_string($d6z["\156\145\x77\x61\160\160"]["\x76\137\160\x68\x70\166\x65\x72"], "\40\55\55\x20"); goto jws; XeMOv: $this->rKG8I->modalmsg($gaJ)->sucmsg($d6z["\x74\x65\x78\164"] . $axZ, $pTv); goto RdrI; rWB: $this->OyfR->set("\x6e\145\167\141\160\160", $d6z["\156\145\167\141\x70\x70"]); goto l5uF; QYjxl: $this->rKG8I->errmsg($d6z["\x65\x72\162\143\x6f\x64\145"], $d6z["\145\x72\162\155\x73\147"]); goto fA8jf; lpXeB: $axZ = "\74\x61\40\150\x72\145\x66\75\x22\x6a\x61\x76\x61\163\x63\x72\151\160\x74\72\73\42\40\144\x61\x74\x61\x2d\164\141\162\147\x65\x74\75\42\43\x61\x70\160\155\x6f\144\141\x6c\x22\x20\x64\141\164\141\55\164\157\147\x67\x6c\145\x3d\x22\x6d\x6f\x64\x61\x6c\x22\x20\x64\141\164\x61\x2d\164\x79\160\x65\x3d\42\165\160\144\141\164\145\x22\x3e\345\234\250\347\272\xbf\xe6\x9b\264\346\226\xb0\74\57\x61\76"; goto ZSL4; hvir: $DW9GR = $this->OyfR->get("\141\160\x70\154\x69\163\x74"); goto C_u9; fA8jf: if (!empty($d6z["\163\x79\163\164\x65\155"])) { goto dDBq; } goto d; kpmV: $QCc2 = count($d6z["\156\145\167\141\x70\160"]["\166\x5f\160\x68\160\166\145\162"]) == 1 ? "\346\234\200\344\275\x8e" : ''; goto lx0; mh0H: LVM: goto rWB; y0RpR: $this->OyfR->del("\144\x6c\154\x69\163\164"); goto Em0; Cpwk: dDBq: goto xzt8; WvQqv: $this->rKG8I->msgmeet($axZ); goto Cpwk; xzt8: goto YbM; goto tXDdB; KMQ: } protected function appfile_modal() { goto Q1jkw; kLB0: $h6_a = $this->OyfR->get("\162\145\160\141\151\162"); goto juEs; N5o: goto noK; goto T1MU; ykGb: $qLEM->download("\x66\151\154\x65\x6c\151\163\x74\174\143\150\x65\143\x6b"); goto Tr6; T1MU: GR: goto kLB0; evM: $i09B = $this->rKG8I->resmsg(); goto Wn09d; oGi: pfv: goto evM; XkIR: $WWyp = ["\142\x6f\144\171" => $i09B["\164\145\x78\x74"]]; goto N5o; Wn09d: if ($i09B > 0) { goto GR; } goto XkIR; KB: noK: goto CdiM; Lvv7: agUc: goto Xxux; Xxux: $WWyp = ["\x62\x6f\144\x79" => "\x3c\144\x69\x76\40\143\x6c\x61\163\x73\x3d\47\x68\55\62\65\x30\40\x6f\x76\x2d\x62\x6f\144\x79\47\x3e{$WWyp}\74\57\x64\151\x76\x3e", "\146\157\x6f\x74" => "\74\142\x75\164\x74\157\x6e\40\x74\171\x70\145\x3d\x22\142\165\164\164\157\156\x22\x20\x63\154\141\x73\163\75\42\x62\x74\156\x20\142\x74\x6e\x2d\x69\156\146\x6f\40\141\x70\160\x72\x65\x70\x61\x69\x72\42\76\xe4\277\256\345\xa4\x8d\xe5\205\xa8\xe9\203\250\xe6\226\x87\xe4\273\266\x3c\x2f\x62\x75\164\164\x6f\x6e\x3e"]; goto KB; CdiM: return $WWyp; goto sx0; Tr6: $iy7 = $qLEM->app_get_file(); goto RRE; lBLK: return "\x3c\144\x69\166\x20\x63\x6c\x61\x73\163\75\x22\164\145\x78\x74\x2d\x78\163\55\x63\x65\156\x74\x65\x72\x22\76\347\x94\250\xe6\226\x87\344\273\xb6\344\270\x8d\xe5\255\230\xe5\234\xa8\xe5\xbc\x82\xe5\270\270\343\x80\x82\74\57\x64\151\x76\76"; goto oGi; RRE: if (!(count($iy7["\x64\x6c\x6c\x69\x73\164"]) == 0)) { goto pfv; } goto lBLK; z_GC: $qLEM = new download($this->rKG8I); goto ykGb; juEs: foreach ($iy7["\144\154\x6c\x69\x73\164"] as $a1oK => $Zh) { goto YC0; aVbV: if (!$h6_a["\165\160\144\x6c\x69\x73\164"][$Zh]) { goto NONW; } goto ODQX; J7sH: kOK: goto yzG4; YjHz: $WWyp .= "\40\40\40\40\x20\x20\x20\40\40\40\x20\40\40\x20\x20\40\40\40\x20\40\x3c\160\76\xa\40\x20\40\40\x20\40\40\x20\40\40\x20\40\x20\x20\x20\x20\x20\40\x20\40\40\x20\40\x20\x3c\163\160\141\x6e\x20\x63\x6c\141\x73\x73\x3d\x22\155\x2d\162\55\x35\x30\x22\76{$axZ}\x3c\57\x73\160\141\156\76\xa\x20\40\40\x20\40\40\40\x20\x20\40\40\x20\40\x20\40\x20\x20\40\x20\x20\40\40\40\40\x3c\x73\160\141\x6e\40\143\x6c\141\163\x73\x3d\42\146\151\154\145\x5f\156\x61\155\145\42\x3e{$Zh}\74\x2f\163\160\141\x6e\x3e\x20\xa\40\x20\x20\40\x20\x20\40\x20\x20\x20\x20\40\40\x20\x20\40\40\x20\40\40\x20\40\x20\x20\x3c\x73\x70\141\156\x20\143\154\141\163\163\75\42\x70\165\x6c\154\x2d\170\163\55\162\x69\x67\150\164\40\x6d\55\162\55\61\x35\40\x64\157\x77\x6e\x6c\157\x61\144\137\x66\x69\154\145\42\40\144\x61\164\x61\x2d\x64\157\x77\156\x6c\157\141\x64\75\x22\x72\x65\x70\x61\151\162\174\144\154\x66\151\x6c\x65\174{$a1oK}\x22\76\x3c\141\x20\x68\162\x65\146\75\42\x6a\141\x76\x61\163\143\x72\x69\x70\164\72\73\x22\76\347\202\271\xe5\207\273\344\xb8\x8b\xe8\275\275\x3c\x2f\141\76\x3c\57\x73\x70\x61\156\76\12\x20\x20\40\40\40\x20\x20\x20\40\x20\x20\40\x20\40\x20\40\x20\x20\40\x20\x3c\57\x70\x3e"; goto J7sH; ODQX: $axZ = "\xe6\226\207\344\273\xb6\xe8\xa2\xab\xe4\xbf\xae\346\224\271"; goto mm9h; r: $axZ = "\xe6\x96\207\344\273\266\xe4\270\215\345\255\x98\xe5\x9c\250"; goto yKI; yKI: qHw: goto YjHz; mm9h: NONW: goto Crd; YC0: $axZ = ''; goto aVbV; Crd: if (!$h6_a["\144\157\167\x6c\151\163\x74"][$Zh]) { goto qHw; } goto r; yzG4: } goto Lvv7; Q1jkw: global $_M; goto z_GC; sx0: } protected function weqrcode_modal() { goto R_; Vf: $W = ["\142\x6f\144\171" => "\x3c\x64\151\166\40\143\154\141\163\163\75\x22\x68\x2d\62\65\60\40\x74\x65\x78\164\x2d\x78\163\x2d\143\145\x6e\x74\145\x72\42\x3e\x3c\151\155\147\x20\163\164\x79\x6c\145\x3d\42\x68\x65\x69\147\150\x74\72\x31\x30\x30\45\73\42\x20\163\162\143\75\x22\x64\x61\164\141\72\151\x6d\x61\x67\145\x2f\x6a\x70\x67\73\142\141\163\145\x36\64\x2c" . $P1i["\x71\162\143\x6f\144\145"]["\151\155\x67"] . "\42\76\x3c\x2f\144\x69\166\x3e", "\146\157\x6f\164" => $P1i["\161\162\143\157\x64\x65"]["\164\145\170\164"]["\x69\156\x66\157"], "\143\141\154\154\x62\141\143\x6b" => "\167\145\143\150\141\x74\137\x71\x72\143\x6f\x64\x65"]; goto B9xxY; B9xxY: GrB: goto OzT; OzT: return $W; goto PlMc; j3S: $P1i = self::curljson($this->rKG8I->met_all(), false, 25, "\x77\170"); goto Qv0; vr5D: HKFI: goto Vf; R_: global $_M; goto dcN; Qv0: if ($P1i["\143\x6f\x64\145"]) { goto HKFI; } goto FuQ; FuQ: $W = ["\x62\x6f\x64\171" => "\74\160\40\163\164\x79\x6c\x65\x3d\47\164\145\170\164\x2d\x69\x6e\x64\x65\x6e\164\x3a\40\x32\145\155\73\x27\76\357\xbc\x88{$P1i["\145\x72\162\143\157\x64\x65"]}\357\xbc\x89{$P1i["\145\x72\x72\x6d\x73\x67"]}\74\160\76"]; goto KGwI; dcN: $this->V89Ao = "\x71\162\x63\157\x64\145"; goto j3S; KGwI: goto GrB; goto vr5D; PlMc: } protected function wechat_modal() { goto I7; vxpi: if ($_M["\x66\x6f\162\x6d"]["\145\x6e\144\x74\151\155\x65"] < $this->time) { goto rHok; } goto lXW; Yr: $this->rKG8I->sucmsg($P1i["\x77\x78"]["\x72\x65\x74"]["\151\x6e\x66\157"], $P1i["\x77\170"]["\x6b\x65\x79"]); goto yZHP; Tt3Z: $i09B["\x65\156\x64\x74\151\x6d\145"] = $cwC; goto sDQ; tzmd: OOojk: goto JAWu; pzGca: goto mdx; goto iEUU; jA: $P1i = self::curljson($this->rKG8I->met_all(), false, 20, "\x77\170"); goto EWUtK; yAFWJ: egb: goto R4; R4: goto cRMq; goto tzmd; nwRJB: if (empty($_M["\x66\157\x72\155"]["\145\156\x64\x74\x69\155\145"])) { goto OOojk; } goto vxpi; UxTe: $Z = random(6); goto ozJs; OcB: $i09B = $this->rKG8I->resmsg(); goto Tt3Z; lXW: $cwC = $_M["\x66\x6f\162\155"]["\x65\x6e\144\164\x69\x6d\x65"]; goto olq; q_Y6: $this->V89Ao = "\143\x68\145\143\153"; goto jA; xKsxb: return $i09B; goto Wy3; Idmv: cRMq: goto OcB; hHZSy: $this->rKG8I->locmsg([4023, $axZ]); goto yAFWJ; GNJh: rHok: goto yNR; iEUU: iHev: goto Yr; I7: global $_M; goto UxTe; ozJs: sleep(1); goto q_Y6; olq: goto egb; goto GNJh; rDJJ: $this->rKG8I->errmsg($P1i["\145\x72\x72\143\x6f\144\x65"], $P1i["\145\162\x72\155\163\147"]); goto pzGca; EWUtK: if ($P1i["\x63\x6f\x64\x65"]) { goto iHev; } goto rDJJ; JAWu: $dHl = date("\x59\55\x6d\x2d\x64\x20\110\x3a\x69\72\163", $this->time); goto O5NV5; yNR: $axZ = "\x3c\141\x20\x63\154\141\x73\x73\75\42\167\145\x71\x72\143\157\144\x65\x22\x20\150\162\x65\x66\75\42\152\141\x76\141\163\x63\x72\x69\x70\164\x3a\73\42\x20\144\141\x74\x61\x2d\164\x79\160\145\75\x22\x77\x65\161\x72\x63\x6f\x64\145\x22\76\345\x88\267\346\226\260\xe4\272\x8c\xe7\273\264\xe7\xa0\201\x3c\x2f\141\76"; goto hHZSy; sDQ: $i09B["\x73\151\147\x6e"] = $Z; goto xKsxb; yZHP: mdx: goto nwRJB; O5NV5: $cwC = strtotime("{$dHl}\40\x2b\62\x20\x6d\x69\156\165\x74\145"); goto Idmv; Wy3: } protected function update_modal() { goto rG7j; rG7j: global $_M; goto Ez0xG; fRtea: return ["\x62\x6f\144\x79" => strlen($JtlK["\x76\137\144\x61\x69\x6c\171"]) > 0 ? "\74\x64\x69\x76\x20\x63\154\141\163\x73\75\47\x68\55\62\x35\x30\40\157\166\55\x62\x6f\x64\171\x27\x3e{$JtlK["\x76\137\144\141\151\x6c\171"]}\x3c\57\x64\151\x76\x3e" : "\x3c\160\x20\163\x74\x79\154\x65\75\42\164\x65\170\x74\55\151\156\x64\145\156\x74\72\40\x32\145\155\x3b\42\x3e\346\262\241\346\x9c\x89\346\233\xb4\xe6\226\xb0\350\257\264\346\230\216\343\200\202\x3c\160\76", "\x66\x6f\x6f\x74" => "\x3c\142\x75\164\164\x6f\x6e\40\x74\171\160\x65\75\x22\142\x75\164\x74\157\x6e\42\x20\x63\154\x61\163\163\75\42\142\x74\156\40\x62\x74\x6e\55\x69\156\146\x6f\x20\141\x70\x70\x75\160\x64\141\164\145\x22\x3e\xe6\233\264\346\226\260\xe8\x87\xb3\x20" . $JtlK["\x76\x5f\166\x65\x72"] . "\74\57\x62\165\x74\x74\x6f\x6e\x3e"]; goto PyZ; Ez0xG: $JtlK = $this->OyfR->get("\x6e\145\167\141\x70\x70"); goto fRtea; PyZ: } private function del_cache() { goto G6J; h5MF: $this->OyfR->del("\x64\x6c\x6c\151\163\164"); goto Wj2T; H0eAC: $this->OyfR->del("\x61\x70\x70\154\151\163\x74"); goto ai; Wj2T: $this->OyfR->del("\x77\145\143\x68\141\164"); goto jsfb; xsUf: $this->OyfR->del("\141\x70\x70\146\151\154\145"); goto ApPpy; A250: $this->OyfR->del("\143\x6b\151\164\145\155"); goto lT5n; t: $this->OyfR->del("\143\150\145\x63\153"); goto xsUf; G6J: global $_M; goto H0eAC; ai: $this->OyfR->del("\x73\171\163\x74\145\x6d"); goto t; jsfb: $this->OyfR->del("\x75\160\144\x61\164\145"); goto A250; ApPpy: $this->OyfR->del("\x72\145\x70\141\151\162"); goto h5MF; lT5n: } private function result() { goto ZJlb; xX0d: $pyns[$this->V89Ao] = $a1oK["\x6b\x65\x79"]; goto DMPy; ZJlb: global $_M; goto ZBB; ZBB: $oLyok = false; goto zSSaQ; DMPy: $this->OyfR->set("\x63\x6b\151\164\x65\x6d", $pyns); goto HNy; nOM: if (!($this->V89Ao != "\141\x70\x70\x63\x68\145\x63\x6b")) { goto xZ; } goto ZJOP; HNy: xZ: goto d8pX; zSSaQ: $pyns = $this->OyfR->get("\143\153\x69\x74\145\x6d"); goto nOM; ZJOP: $a1oK = $this->rKG8I->resmsg(); goto xX0d; d8pX: } private function curljson($yhphG = [], $ghGgS = false, $KqS = 15, $Z = "\x63\x6b") { global $_M; return (new curls($this->rKG8I))->apiurl($this->V89Ao, $Z)->apipost($yhphG)->curls($KqS)->resdata($ghGgS); } protected function show($AlZ, $DFPpo) { goto ZM7h; ZM7h: global $_M; goto IDwz0; XeCxq: require_once $DkFB->dodisplay($AlZ, $DFPpo); goto OeD; IDwz0: $DkFB = load::sys_class("\x65\156\147\x69\156\x65", "\156\x65\167"); goto XeCxq; OeD: } } goto BHH; BHH: class appcore { private $m_name; private $cxX = []; private $NC50 = []; private $D3KN = []; private $GYX = []; private $QG2l = []; public function __construct() { global $_M; $this->m_name = M_NAME; } public function get_app_url() { goto RS_R; fkJ: $kyg = $_M["\165\162\x6c"]["\157\x77\156\137\x6e\x61\x6d\145"] . http_build_query($Fy3gB); goto Jf; vx27: DI: goto mEz0v; mfk: $Fy3gB = file_exists(INS_LOCK_FILE) ? json_decode(file_get_contents(INS_LOCK_FILE), true) : []; goto JaHZ; JaHZ: if (empty($Fy3gB["\x75\x72\x6c"])) { goto DI; } goto Tl7; RS_R: global $_M; goto mfk; Jf: zO5: goto N1Lbu; mEz0v: unset($Fy3gB["\165\162\154"], $Fy3gB["\x74\151\155\145"]); goto fkJ; N1Lbu: return $kyg; goto koI; Vwetm: goto zO5; goto vx27; Tl7: $kyg = $Fy3gB["\x75\162\154"]; goto Vwetm; koI: } public function met_web_app() { global $_M; return ["\167\x65\142" => self::met_web(), "\141\160\x70" => self::met_app()]; } public function met_all() { goto Aw7_; Shoh: $aB = self::met_web_app(); goto tPJS; Aw7_: global $_M; goto Shoh; MBn: return $aB; goto zKjC; tPJS: $aB["\x61\157\x70"] = self::met_aop(); goto MBn; zKjC: } public function met_web() { goto Au; RAAR: Ea: goto KRHk; C0: $this->cxX["\x70\150\x70\x76\x65\162"] = PHP_VERSION; goto vZmrp; T4V: foreach ($cIPO as $Zh) { goto mWWy; Z19G9: Ua_GU: goto lcEh7; MXq: $this->cxX[$Zh] = $aB["\166\x61\x6c\165\x65"]; goto Z19G9; LSQzA: $aB = DB::get_one("\123\x45\114\105\x43\124\x20\x76\141\154\165\145\x20\x46\x52\117\x4d\x20{$_M["\x74\x61\x62\154\x65"]["\143\x6f\156\x66\x69\x67"]}\40\127\x48\x45\122\105\40\x6e\141\x6d\145\x20\x3d\40\x27{$Zh}\47\x20\x41\x4e\104\x20\x6c\141\x6e\x67\x20\x3d\x20\47{$VSP0}\x27\40"); goto MXq; mWWy: $VSP0 = $Zh == "\x6d\145\x74\143\x6d\x73\137\166" ? "\x6d\x65\x74\x69\x6e\146\157" : $_M["\154\x61\156\147"]; goto LSQzA; lcEh7: } goto RAAR; bJI: $cIPO = ["\x6d\145\x74\x5f\167\145\142\165\162\x6c", "\x6d\145\x74\x5f\167\145\142\156\x61\x6d\x65", "\155\x65\164\143\x6d\163\x5f\166", "\155\145\x74\137\153\145\171\x77\157\x72\144\163", "\x6d\145\164\x5f\144\145\163\x63\162\x69\x70\164\x69\157\x6e", "\x6d\145\x74\x5f\163\x6b\x69\x6e\137\x75\x73\x65\x72"]; goto T4V; Au: global $_M; goto bJI; vZmrp: $this->cxX["\x73\x71\154\166\145\162"] = DB::version(); goto OL0; KRHk: $this->cxX["\x77\145\142\x69\160"] = $_SERVER["\123\105\x52\126\105\x52\x5f\x41\x44\x44\122"]; goto eosE; eosE: $this->cxX["\x73\171\163\x76\145\162"] = php_uname("\x73") . "\x20" . php_uname("\x72"); goto C0; hoK: $this->cxX["\x6c\x61\156\x67"] = $_M["\x6c\141\x6e\147"]; goto MN; OL0: $this->cxX["\x77\x65\x62\166\x65\162"] = str_replace("\x50\x48\x50\57{$this->cxX["\x70\x68\x70\166\x65\162"]}", '', $_SERVER["\123\x45\x52\x56\105\x52\137\123\x4f\x46\124\127\101\x52\105"]); goto hoK; MN: return $this->cxX; goto iJM; iJM: } public function met_app() { goto pHAKG; pHAKG: global $_M; goto Gf4; sW6: $this->NC50 = DB::get_one("\123\x45\x4c\x45\x43\x54\40\156\157\54\166\x65\162\54\141\x64\x64\x74\x69\x6d\145\54\155\x5f\156\x61\155\145\x2c\x61\x70\x70\156\141\x6d\x65\40\x46\x52\x4f\x4d\x20{$_M["\164\141\142\x6c\145"]["\141\x70\160\154\x69\163\164"]}\x20\127\x48\105\x52\105\40\x6d\x5f\x6e\x61\x6d\x65\75\x27{$this->m_name}\47\40"); goto Jg; Gf4: if (empty($this->m_name)) { goto AA40; } goto sW6; dDhkJ: return $this->NC50; goto vhEM; JaVW: $this->NC50["\x63\154\x69\145\156\164\137\151\x70"] = self::get_client_ip(); goto dDhkJ; Jg: AA40: goto JaVW; vhEM: } public function met_adl() { goto VSR8U; RKA4: $this->L5ifx["\x6d\x65\x74\137\x77\x65\142\x75\x72\x6c"] = $aB["\x76\141\x6c\x75\145"]; goto hvG; hvG: return $this->L5ifx; goto EcP; ARGL: if (empty($this->m_name)) { goto eR6Q; } goto GKY; VSR8U: global $_M; goto ARGL; GKY: $this->L5ifx = DB::get_one("\x53\x45\x4c\105\103\x54\x20\156\157\x2c\166\145\x72\54\x61\144\x64\x74\x69\x6d\x65\x2c\x6d\x5f\156\141\x6d\x65\40\106\122\117\115\x20{$_M["\164\x61\x62\x6c\x65"]["\x61\x70\160\154\151\x73\x74"]}\40\x57\x48\x45\x52\105\x20\155\137\x6e\141\155\x65\75\x27{$this->m_name}\x27\x20"); goto Ips0D; Ips0D: eR6Q: goto flWT; flWT: $aB = DB::get_one("\123\x45\114\105\103\124\x20\166\141\154\x75\145\40\x46\122\117\x4d\x20{$_M["\164\x61\142\154\145"]["\143\x6f\156\146\x69\x67"]}\x20\127\x48\105\x52\x45\40\x6e\141\155\145\x20\x3d\40\x27\155\145\x74\137\167\145\x62\x75\162\154\x27\40\x41\116\104\40\154\141\x6e\147\40\x3d\40\47{$_M["\154\141\x6e\147"]}\47\40"); goto RKA4; EcP: } public function met_aop() { goto ER_k; F8_: $this->D3KN = ["\x61\144\155\x69\x6e\x5f\151\144" => $ay["\141\x64\155\x69\x6e\137\151\144"], "\141\144\155\x69\x6e\x5f\157\x70" => $ay["\141\144\155\151\x6e\137\157\160"], "\141\x64\x6d\x69\x6e\137\151\x70" => $ay["\141\144\x6d\x69\156\137\155\x6f\144\x69\146\171\137\x69\x70"], "\141\x64\x6d\x69\x6e\137\164\151\x6d\145" => $ay["\141\144\x6d\x69\156\137\x6d\x6f\x64\151\x66\171\137\144\141\164\145"]]; goto O60d; ER_k: global $_M; goto i5Kf; i5Kf: $ay = admin_information(); goto F8_; O60d: return $this->D3KN; goto piF; piF: } public function newres() { goto d8; fQu_: $this->QG2l = []; goto VrHM4; VrHM4: return $this; goto fs; d8: global $_M; goto fQu_; fs: } public function resmsg($ghGgS = true, $F4R = false) { goto jw8A; jw8A: global $_M; goto hvu; g5: self::locmsg(4012); goto tcuch; wYo: return $i09B; goto gTTf; RMy: $this->QG2l["\145\x71\x6b\x65\x79"] = $_M["\146\x6f\162\x6d"]["\x65\161\153\x65\171"]; goto M4kws; M4kws: $i09B = $ghGgS ? $this->QG2l : self::jsoncallback($this->QG2l); goto FId; tcuch: sx: goto RMy; hvu: if (!(strlen($this->QG2l["\x6b\x65\x79"]) == 0)) { goto sx; } goto g5; FId: if (!$F4R) { goto HUH; } goto W1; x1b6b: HUH: goto wYo; W1: unset($this->QG2l); goto x1b6b; gTTf: } public function sucmsg($CU_Vf, $oLyok = 1) { goto K9z; Ah: $this->QG2l["\153\145\171"] = $oLyok; goto d_QW; Wx5i: return $this; goto P_Td; d_QW: $this->QG2l["\164\x65\170\x74"] = self::fontcolor($oLyok, $CU_Vf); goto Wx5i; K9z: global $_M; goto Ah; P_Td: } public function vagmsg($oLyok, $CU_Vf = []) { goto WpDC; Tk3O: $this->QG2l["\164\x65\x78\164"] = $axZ; goto GZ0eU; xHDm: $this->QG2l["\x6b\145\171"] = $oLyok; goto Tk3O; WpDC: global $_M; goto a5wa; a5wa: $axZ = ''; goto Klwlt; Klwlt: foreach ($CU_Vf as $Zh) { goto dlY; Hv: uCR6: goto cJ; dlY: list($otF6, $hqV) = $Zh; goto sZpS; sZpS: $axZ .= self::fontcolor($otF6, $otF6 ? $hqV["\151\x6e\x66\x6f"] : "\xef\xbc\210{$hqV["\x63\157\x64\x69\x6e\x67"]}\357\274\x89{$hqV["\x69\x6e\x66\x6f"]}"); goto Hv; cJ: } goto xdeuk; xdeuk: ybfv0: goto xHDm; GZ0eU: return $this; goto sTfUP; sTfUP: } public function errmsg($IyEO, $CU_Vf, $oLyok = 0) { goto QMre; qWn8: $this->QG2l["\x6b\145\x79"] = $oLyok; goto esxr; esxr: $this->QG2l["\x74\145\x78\164"] = self::fontcolor(0, "\357\274\210{$IyEO}\357\xbc\x89{$CU_Vf}"); goto guKv; guKv: return $this; goto aNnA; QMre: global $_M; goto qWn8; aNnA: } public function locmsg($CU_Vf = [], $oLyok = 0) { goto Eg5UB; efW: io1: goto zHfGW; Vvfr: if (empty($CU_Vf)) { goto io1; } goto PKwv; PKwv: self::codemsg($CU_Vf); goto efW; Eg5UB: global $_M; goto Vvfr; GMQH: $this->QG2l["\x74\145\170\164"] = self::fontcolor($oLyok, "\xef\xbc\210{$this->GYX["\145\x72\x72\143\x6f\x64\x65"]}\xef\274\x89{$this->GYX["\x65\x72\162\155\163\x67"]}"); goto Mkt; Mkt: return $this; goto VHqUG; zHfGW: $this->QG2l["\153\145\x79"] = $oLyok; goto GMQH; VHqUG: } public function modalmsg($gaJ = [], $wX = [], $oLyok = 0) { goto o5; vWmp: $this->QG2l["\155\x6f\x64\141\x6c"] = $gaJ; goto AcSH; AcSH: return $this; goto ieT; o5: global $_M; goto ONU7g; ONU7g: self::locmsg($wX, $oLyok); goto vWmp; ieT: } public function msgkey($a1oK = 4) { goto fNhh; y0K: return $this; goto VdZM; fNhh: global $_M; goto ErwY; ErwY: $this->QG2l["\x6b\x65\171"] = $a1oK; goto y0K; VdZM: } public function msgtext($wX = []) { goto HTP1X; OrqR: self::codemsg($wX); goto p2e; qsxMH: return $this; goto dtK; p2e: $this->QG2l["\x74\x65\x78\164"] = self::fontcolor($this->QG2l["\153\145\x79"], $this->GYX["\145\x72\162\155\163\x67"]); goto qsxMH; HTP1X: global $_M; goto OrqR; dtK: } public function msgmeet($axZ, $ghGgS = false) { goto VbSJ4; m9w: $this->QG2l["\164\145\170\x74"] = $ghGgS ? $axZ : $this->QG2l["\164\145\x78\x74"] . $axZ; goto zoMa; zoMa: return $this; goto mYolC; VbSJ4: global $_M; goto m9w; mYolC: } private function fontcolor($oLyok, $axZ) { goto nSOU; ZzB: $hnw = ["\43\105\x39\65\x39\65\x42", "\x23\x33\66\101\102\x37\101", "\43\105\x43\x39\x39\64\x30", "\x23\67\66\70\63\70\146", "\x23\62\141\63\63\63\x63"]; goto FPk; FPk: return "\x3c\146\157\x6e\164\40\x73\164\171\154\145\x3d\x22\x63\157\154\x6f\162\x3a" . $hnw[$oLyok] . "\73\x22\76" . $axZ . "\x3c\x2f\146\157\x6e\164\76"; goto e3; nSOU: global $_M; goto ZzB; e3: } public function coderes($ghGgS = true) { global $_M; return $ghGgS ? $this->GYX["\145\162\x72\x6d\x73\147"] : json_encode($this->GYX, JSON_UNESCAPED_UNICODE); } public function codemsg($IyEO, $axZ = '') { goto Ndf; nu: Zhu0: goto kLs; xK0Vr: $this->GYX = ["\145\x72\x72\143\x6f\x64\145" => $IyEO, "\145\162\x72\x6d\163\x67" => $CU_Vf[$IyEO]]; goto kBxW; Ndf: global $_M; goto wWOS; kLs: $CU_Vf = ["\64\60\x30\60" => "\xe5\275\x93\xe5\211\215\xe7\x8e\xaf\345\242\203\xe7\xbc\272\xe5\260\221\x43\x55\x52\x4c\346\x94\257\346\214\201\xef\xbc\x81", "\64\x30\60\61" => "\xe6\240\xb8\345\xbf\203\346\x96\x87\xe4\xbb\266\345\255\x98\xe5\x9c\250\xe5\xbc\202\345\270\270\x2c\xe5\207\x86\xe5\xa4\207\xe8\207\252\345\x8a\250\xe4\277\256\345\244\x8d\xe6\xa0\xb8\345\277\203\xe6\226\207\xe4\273\266\56\x2e\56", "\x34\x30\x30\62" => "\xe5\272\224\xe7\224\250\346\226\x87\344\273\xb6\xe5\255\x98\xe5\x9c\250\345\xbc\x82\345\270\270\350\xaf\267\xe7\202\271\xe5\x87\273\40{$axZ}\40\357\274\201", "\x34\60\x30\63" => "\345\xba\x94\347\224\xa8\xe6\226\207\344\273\266\346\255\xa3\345\270\270\357\xbc\201", "\64\60\60\64" => "\xe6\226\x87\xe4\xbb\266\xe6\235\x83\351\231\x90\346\xa3\x80\346\265\213\xe4\270\255\x2e\x2e\x2e", "\64\x30\60\x35" => "\40{$axZ}\x20\xe4\270\x8d\xe5\xad\230\345\234\xa8\357\274\214\xe8\257\267\346\211\x8b\345\x8a\250\345\x88\x9b\xe5\273\xba\357\xbc\201", "\x34\x30\60\x36" => "\x20{$axZ}\x20\346\235\203\xe9\x99\x90\xe4\270\215\xe8\266\263\357\xbc\214\xe8\xaf\xb7\344\xbf\256\xe6\224\xb9\344\270\272\x5b\67\67\x37\x2f\67\x37\65\x5d\xe5\xa2\x9e\xe5\x8a\240\xe5\x86\231\345\x85\xa5\346\x9d\x83\351\231\220\xef\xbc\201", "\64\x30\60\67" => "\x20{$axZ}\x20\xe6\225\260\xe6\215\256\xe5\x86\231\xe5\205\245\xe9\224\231\xe8\257\257\357\xbc\214\350\257\267\xe8\207\252\350\241\214\xe6\243\200\346\265\x8b\xe6\x9d\203\351\x99\x90\xef\274\201", "\x34\x30\60\70" => "\xe4\270\x8b\xe8\275\275\xe6\x9d\x83\xe9\231\220\xe4\270\215\350\266\xb3\357\274\x88\350\257\267\346\xa3\200\xe6\x9f\245\xe3\200\220\xe7\xbd\221\xe7\253\x99\xe7\275\221\345\235\200\343\200\221\xe6\230\257\xe5\x90\xa6\xe4\270\272\350\264\xad\344\271\260\345\272\224\xe7\224\xa8\347\x9a\x84\345\237\x9f\345\x90\215\xef\xbc\211\357\274\201", "\x34\60\x30\x39" => "\345\272\224\xe7\224\250\346\x96\x87\xe4\xbb\266\344\xb8\213\xe8\275\275\xe4\270\xad\56\x2e\56", "\64\x30\x31\60" => "\xe5\xba\x94\xe7\x94\250\xe6\226\x87\344\xbb\266\xe4\270\x8b\350\275\275\xe4\xb8\255\x2e\x2e\x2e{$axZ}\40\40\x28\346\xad\243\345\234\xa8\350\277\x9b\350\241\214\344\270\213\350\275\xbd\xef\xbc\214\350\257\267\xe4\270\215\350\xa6\x81\xe6\223\215\344\275\234\xe9\241\xb5\351\x9d\xa2\357\xbc\201\x29", "\64\x30\x31\61" => "\346\234\x8d\345\x8a\241\347\xab\257\xe5\xbc\202\345\xb8\xb8\x5b{$axZ}\135\xef\xbc\x8c\xe9\x80\x9a\344\277\241\345\244\xb1\350\xb4\245\357\xbc\201", "\x34\x30\x31\x32" => "\xe7\xb3\xbb\347\273\237\345\274\x82\345\270\xb8\357\xbc\x81", "\x34\60\x31\x33" => "\345\272\224\xe7\x94\xa8\xe6\x96\207\344\273\xb6\xef\274\x8c\xe5\274\200\xe5\xa7\x8b\xe4\xbf\256\xe5\244\x8d\56\x2e\56", "\x34\60\x31\64" => "\133\346\240\xb8\xe5\277\203\xe6\226\x87\xe4\xbb\266\350\x87\252\xe5\212\xa8\344\277\256\345\xa4\215\x5d\40\xe4\277\xae\xe5\xa4\x8d\345\256\214\346\x88\220\xe3\x80\202", "\64\60\61\x35" => "\xe5\xba\x94\xe7\224\250\346\x96\x87\xe4\273\266\344\xbf\xae\xe5\xa4\215\345\xae\214\346\210\x90\xe3\200\202", "\64\60\x31\x36" => "\133{$axZ}\x5d\40\xe4\xb8\213\xe8\xbd\275\xe5\244\xb1\350\xb4\xa5\357\xbc\x81", "\x34\x30\x31\67" => "\xe4\xbf\xae\345\244\215\xe5\xa4\xb1\xe8\264\xa5\xef\274\201", "\64\60\61\70" => "\345\xae\211\350\xa3\205\xe5\244\xb1\xe8\264\xa5\xef\xbc\x81", "\64\60\61\x39" => "\345\256\211\xe8\xa3\205\346\210\x90\345\212\237\xef\xbc\x81", "\x34\60\62\60" => "\345\272\224\xe7\x94\250\346\226\207\xe4\273\266\xef\274\x8c\345\xbc\x80\xe5\247\x8b\xe5\256\x89\350\xa3\x85\x2e\56\56", "\x34\x30\x32\x31" => "\x5b{$axZ}\135\x20\xe5\x86\231\345\x85\xa5\345\xa4\261\xe8\264\245\xef\xbc\x81", "\64\x30\62\x32" => "\xe6\x9c\252\346\xa3\200\xe6\xb5\x8b\345\x88\xb0\346\x96\x87\344\273\266\357\xbc\201", "\64\x30\62\x33" => "\xe5\276\xae\xe4\277\xa1\345\x85\xac\344\274\227\xe5\217\267\344\xba\x8c\xe7\273\xb4\347\240\x81\346\x89\253\xe6\217\217\350\266\x85\xe6\x97\xb6\357\274\x81{$axZ}", "\x34\x30\x32\x34" => "\xe5\237\x9f\345\x90\x8d\346\234\xaa\350\216\267\xe5\276\x97\346\216\210\346\x9d\x83\xef\xbc\x81", "\64\x30\x32\65" => "\xe5\256\x89\350\243\205\351\224\201\xe6\235\203\351\x99\220\xe4\270\215\xe8\xb6\xb3\357\xbc\201"]; goto xK0Vr; kBxW: return $this; goto VZ0v; G: list($IyEO, $axZ) = $IyEO; goto nu; wWOS: if (!is_array($IyEO)) { goto Zhu0; } goto G; VZ0v: } public function mysql_config($iLe = [], $nMn = true) { goto Sn; uSZ: dxM1: goto jA; oEBtI: list($a1oK, $Zh) = $iLe; goto E9hY; E9hY: $cWQi = $_M["\x74\141\x62\x6c\x65"]["\143\154\x6f\x75\144\x5f\x63\157\x6e\x66\151\x67"]; goto YvIp; YvIp: $VSP0 = "\x63\x6c\157\165\144"; goto DNJe; jA: $pWgP = DB::get_one("\x73\x65\154\x65\x63\x74\40\x76\x61\154\x75\x65\40\146\162\157\155\x20{$cWQi}\x20\167\x68\145\x72\x65\x20\156\141\x6d\145\40\x3d\x20\x27{$a1oK}\47\40\101\x4e\x44\40\x6d\137\x6e\141\155\145\40\x3d\40\x27{$this->m_name}\47\x20\101\116\x44\x20\x6c\141\156\x67\x20\x3d\x20\x27{$VSP0}\47\40"); goto ygv; n5kv: return $Zh; goto F9mn; htNe: goto t4Afw; goto uSZ; ygv: $Zh = $pWgP["\x76\141\x6c\x75\x65"]; goto hwlv; Sn: global $_M; goto oEBtI; c0ay: DB::query("\111\x4e\x53\105\x52\x54\40\111\116\124\117\x20{$cWQi}\40\x28\x6e\x61\x6d\x65\x2c\154\x61\156\147\54\155\x5f\156\141\155\x65\54\x76\x61\x6c\x75\145\51\40\x56\x41\x4c\x55\105\123\40\50\x27{$a1oK}\x27\54\47{$VSP0}\x27\x2c\47{$this->m_name}\47\x2c\x27{$Zh}\47\x29\40\117\116\x20\x44\125\x50\114\x49\x43\x41\124\x45\40\113\105\x59\40\125\120\104\101\x54\x45\x20\166\141\154\x75\145\75\47{$Zh}\47\40"); goto htNe; DNJe: if ($nMn) { goto dxM1; } goto c0ay; hwlv: t4Afw: goto n5kv; F9mn: } public function get_client_ip() { goto MOz; hJ7: $xo6n = "\165\156\x6b\x6e\x6f\x77\x6e"; goto kANNx; MOz: $wona = ["\110\x54\124\x50\x5f\x43\104\x4e\137\123\x52\103\137\x49\x50", "\x48\124\x54\120\x5f\x50\122\x4f\130\131\x5f\103\114\111\x45\x4e\124\x5f\x49\x50", "\x48\x54\x54\120\x5f\x57\114\x5f\x50\122\x4f\x58\131\137\x43\114\111\x45\116\124\137\111\120", "\110\x54\124\x50\x5f\103\114\x49\105\116\124\137\111\120", "\x48\124\124\120\137\x58\x5f\106\x4f\x52\127\x41\122\x44\x45\104\137\x46\x4f\x52", "\x52\105\115\117\124\x45\137\101\104\x44\x52"]; goto hJ7; jCc4: return $xo6n; goto Fwo; Zv: RdFHR: goto jCc4; kANNx: foreach ($wona as $a1oK) { goto YCX0; vv7O: PbuW: goto kdI; gDW4: $xo6n = $_SERVER[$a1oK]; goto W3SmE; ubK: PSgJ: goto vv7O; YCX0: if (!(!empty($_SERVER[$a1oK]) && strtolower($_SERVER[$a1oK]) != "\x75\156\153\x6e\157\x77\x6e" && filter_var($_SERVER[$a1oK], FILTER_VALIDATE_IP))) { goto PSgJ; } goto gDW4; W3SmE: goto RdFHR; goto ubK; kdI: } goto Zv; Fwo: } public function jsoncallback($ktxe, $pUUK = "\x63\141\154\154\x62\141\x63\x6b") { goto e1U; sKXr: echo $pUUK ? $pUUK . "\x28" . $JNn . "\51" : $JNn; goto hYY; QMTw3: $JNn = json_encode($ktxe, JSON_UNESCAPED_UNICODE); goto sKXr; Kz: header("\x43\157\156\x74\x65\x6e\x74\x2d\164\171\x70\145\72\x20\141\x70\160\x6c\x69\143\x61\164\x69\157\156\x2f\x78\55\152\141\166\x61\x73\143\162\151\x70\164"); goto wetG; e1U: global $_M; goto Kz; wetG: $pUUK = $_M["\146\157\162\155"][$pUUK]; goto QMTw3; hYY: } public function del_update_dir() { goto hzD; V3: if (!(is_dir(APP_UPDATE_DIR) && file_exists(APP_UPDATE_DIR))) { goto v_Al; } goto QnH; hzD: global $_M; goto fuymV; quMSL: v_Al: goto MpQ; fuymV: @clearstatcache(); goto V3; QnH: deldir(APP_UPDATE_DIR); goto quMSL; MpQ: } } goto N_JKJ; D665j: load::sys_func("\x66\x69\x6c\145"); goto wiJ; yAo: load::sys_class("\141\144\x6d\x69\x6e"); goto D665j; wiJ: define("\x49\116\123\137\114\117\103\x4b\137\x46\x49\114\105", PATH_APP_FILE . "\x63\x6f\156\146\x69\x67\x2f\x69\x6e\x73\x74\x61\x6c\x6c\x2e\154\x6f\x63\153"); goto IGebZ; IGebZ: define("\x55\120\104\x5f\114\117\x43\113\137\x46\111\114\105", PATH_APP_FILE . "\143\157\156\x66\151\147\57\x75\x70\x64\x61\164\x65\x2e\154\x6f\143\153"); goto q0Du; kIB: class dirfinger { private $Kx; private $zW = []; private $EMBQ = []; private $ln = []; private $AcZm = []; public function __construct() { goto umW8; umW8: global $_M; goto Uw3Ns; zdVaQ: $this->zW = []; goto QfY3; QfY3: $this->EMBQ = ["\x63\157\156\146\151\147\57\151\x6e\x73\164\x61\x6c\154\56\154\x6f\x63\x6b", "\x63\x6f\x6e\x66\x69\x67\x2f\165\x70\x64\141\164\x65\56\x6c\157\x63\153", "\x63\157\x6e\146\x69\147\x2f\165\156\x69\156\x73\164\141\x6c\x6c\56\154\157\143\x6b", "\x63\x6f\156\146\x69\147\x2f\x74\141\142\x6c\145"]; goto D7D; Uw3Ns: $this->Kx = PATH_APP_FILE; goto zdVaQ; D7D: @clearstatcache(); goto OdY5; OdY5: } public function fingers($h6_a = []) { goto NPx; fhpu: self::fingerprint_check($h6_a); goto ILk; ILk: return ["\x75\x70\x64\154\x69\163\164" => $this->ln, "\x64\157\x77\x6c\151\163\x74" => $this->b3HV, "\x64\x6c\x6c\x69\163\x74" => $this->AcZm]; goto mMd; NPx: global $_M; goto fhpu; mMd: } public function del_appfile($h6_a = [], $rqc = '') { goto x5x; x5x: global $_M; goto Qfu; WyI: QKKw: goto QvaOs; c0u: foreach ($Nk as $AlZ) { goto BkX; ihPK: tO: goto inT; n47G: if (!(in_array($vk4c1, $this->EMBQ) || in_array($AlZ, $this->zW))) { goto tvV; } goto ly9F; TvfE: SgZIP: goto CKGb; inT: y_zsM: goto SEtO; CKGb: self::del_appfile($h6_a, $IKm . "\57"); goto ihPK; IDd: $vk4c1 = iconv("\x47\102\x4b", "\x55\124\x46\55\x38", $IKm); goto xPc7F; FsyS: if (stristr(PHP_OS, "\127\x49\x4e")) { goto oh; } goto Hp; A5: oh: goto IDd; z5DW: gCYJ: goto I6KI; xPc7F: $AlZ = iconv("\x47\x42\113", "\125\x54\106\x2d\70", $AlZ); goto QpRj; K9M: tvV: goto Db; WB51Q: delfile($IKm); goto z5DW; Db: if (is_dir($this->Kx . $IKm)) { goto SgZIP; } goto Ni03x; I6KI: goto tO; goto TvfE; BkX: $IKm = $rqc . $AlZ; goto FsyS; Hp: $vk4c1 = $IKm; goto JWGv; JWGv: goto RFDc; goto A5; ly9F: goto y_zsM; goto K9M; QpRj: RFDc: goto n47G; Ni03x: if (array_key_exists($vk4c1, $h6_a)) { goto gCYJ; } goto WB51Q; SEtO: } goto WyI; Qfu: $Nk = scandir($this->Kx . $rqc); goto c0u; QvaOs: } private function fingerprint_check($UzvE = '') { goto joO; Sa: foreach ($UzvE as $a1oK => $Zh) { goto Nb8l; nZzJ4: NK: goto WCs; kv1Yp: $this->ln[$a1oK] = $Zh; goto A0PtG; oOE4: $IKm = iconv("\x55\x54\x46\55\70", "\x47\102\113", $IKm); goto DqNO8; Nb8l: $IKm = $this->Kx . $a1oK; goto Sk_1; jUB: if (!(md5_file($IKm) != $Zh)) { goto NK; } goto kv1Yp; YJ4: $this->AcZm[$a1oK] = $Zh; goto R_9Lj; eon: jEIIS: goto jUB; Sk_1: if (!stristr(PHP_OS, "\127\x49\x4e")) { goto slH; } goto oOE4; R_9Lj: goto bjAd; goto eon; y7M: $this->b3HV[$a1oK] = $Zh; goto YJ4; WCs: bjAd: goto Dgp; iLk: if (file_exists($IKm)) { goto jEIIS; } goto y7M; A0PtG: $this->AcZm[$a1oK] = $Zh; goto nZzJ4; Dgp: WHZs: goto krU; DqNO8: slH: goto iLk; krU: } goto UHu; joO: global $_M; goto Sa; UHu: ejA9i: goto tF; tF: } } goto sVSS; N_JKJ: class curls { private $RPQY2; private $oho = []; private $KU1os = []; private $jiho; private $mgRp; private $aKR; private $iAJa = []; public function __construct($jA) { goto zI0; sa: $this->oho = ["\143\153" => "\150\x74\x74\160\163\x3a\x2f\x2f\141\160\x70\56\155\165\142\141\x6e\x2e\156\145\164\56\x63\x6e\x2f\141\x70\x69\x2f\x61\160\160\143\x68\145\x63\153\56\160\x68\160\x3f\x61\75\x64\x6f", "\144\x6c" => "\x68\164\164\x70\x73\72\x2f\x2f\141\160\160\x2e\x6d\165\x62\x61\x6e\x2e\x6e\145\164\x2e\x63\x6e\x2f\141\160\x69\x2f\144\157\x77\x6e\x6c\x6f\141\144\56\160\x68\x70\77\x61\x3d\144\157", "\167\170" => "\150\x74\x74\160\x73\72\x2f\57\141\160\x70\x2e\155\x75\x62\141\x6e\x2e\x6e\x65\x74\56\x63\156\x2f\x61\x70\x69\57\x77\145\143\x68\x61\164\x2e\x70\150\x70\77\x61\x3d\144\157"]; goto Oo0a; Oo0a: $this->aKR = md5($_M["\x63\x6f\156\146\x69\x67"]["\155\145\164\137\167\145\x62\165\162\x6c"]); goto Eaj_; Eaj_: $this->iAJa = ["\x4d\x45\x54\x57\105\102\125\122\x4c\x3a" . $_M["\x63\157\x6e\146\151\x67"]["\155\x65\164\x5f\167\x65\142\165\x72\154"], "\101\x55\124\x48\x4f\122\111\132\x41\124\x49\x4f\x4e\x3a" . $this->aKR]; goto HQH; aCi: $this->RPQY2 = $jA; goto sa; zI0: global $_M; goto aCi; HQH: } public function apiurl($sY7N, $ghGgS = "\143\153") { goto ni; YNYLd: $this->KU1os = $this->oho[$ghGgS] . $sY7N; goto z3DO; CZoC: return $this; goto RzaI; ni: global $_M; goto YNYLd; z3DO: $this->jiho = self::purl($this->KU1os, "\x73\143\150\x65\x6d\145"); goto CZoC; RzaI: } public function apipost($yhphG, $iB11 = true) { goto xvw; LTo: if (!$iB11) { goto Jr; } goto RMy; dQ3I: return $this; goto vRr; xvw: global $_M; goto QUJp; RMy: self::auth_encode(); goto s7Ej; QUJp: $this->mgRp = $yhphG; goto LTo; s7Ej: Jr: goto dQ3I; vRr: } public function auth_encode($a1oK = null) { goto VDGM; rxN0J: self::arrjson(false); goto Ur8; GoAJ: $this->mgRp = authcode($this->mgRp, "\x45\116\x43\117\104\x45", $this->aKR); goto cJX_; ePG5A: if (empty($a1oK)) { goto KhJ; } goto bupp; IS4uf: if (!is_array($this->mgRp)) { goto DJKK; } goto rxN0J; bupp: $this->aKR = $a1oK; goto hQW; Ur8: DJKK: goto GoAJ; hQW: KhJ: goto IS4uf; cJX_: return $this; goto hfc; VDGM: global $_M; goto ePG5A; hfc: } public function curls($KqS = 15) { goto MhAp; hYh: curl_setopt($hB1x, CURLOPT_RETURNTRANSFER, 1); goto ym; f7: curl_setopt($hB1x, CURLOPT_FAILONERROR, 1); goto hYh; rUrJ: fqpH: goto UG; y4B: return $this; goto nXfzN; qTzy: curl_close($hB1x); goto WcE; QCn2: curl_setopt($hB1x, CURLOPT_POST, 1); goto qdTT; gS3v: h3G0: goto oNg1J; Mdbz: if (get_extension_funcs("\143\165\x72\x6c") && function_exists("\x63\165\162\154\137\x69\156\x69\164") && function_exists("\x63\165\162\154\x5f\163\x65\164\157\x70\x74") && function_exists("\143\x75\162\154\137\x65\x78\x65\143") && function_exists("\143\165\162\154\137\x63\x6c\x6f\x73\145")) { goto fqpH; } goto Dfhh; MhAp: global $_M; goto Mdbz; UG: $hB1x = curl_init(); goto Ule1H; oNg1J: curl_setopt($hB1x, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); goto Kw; WcE: $this->mgRp = empty($w6WSd) ? $DFPpo : $this->RPQY2->codemsg(4011, "{$oLyok}\x2d{$w6WSd}")->coderes(false); goto Kf5o; qdTT: curl_setopt($hB1x, CURLOPT_POSTFIELDS, ["\x64\x65\x6e\163\145" => $this->mgRp]); goto qNpDD; tIOw: curl_setopt($hB1x, CURLOPT_HTTPHEADER, $this->iAJa); goto f7; gKC: curl_setopt($hB1x, CURLOPT_SSL_VERIFYHOST, false); goto gS3v; swU: if (!($this->jiho === "\150\x74\164\160\x73")) { goto h3G0; } goto xkbs; qNpDD: $DFPpo = curl_exec($hB1x); goto AWB9; xkbs: curl_setopt($hB1x, CURLOPT_SSL_VERIFYPEER, false); goto gKC; Kw: curl_setopt($hB1x, CURLOPT_REFERER, $_SERVER["\x48\124\124\120\x5f\x48\117\x53\124"]); goto tIOw; Ule1H: curl_setopt($hB1x, CURLOPT_URL, $this->KU1os); goto swU; jp1p: curl_setopt($hB1x, CURLOPT_TIMEOUT, $KqS); goto QCn2; Uf: goto UURO; goto rUrJ; Kf5o: UURO: goto y4B; IQwZ: $w6WSd = curl_errno($hB1x); goto qTzy; AWB9: $oLyok = curl_getinfo($hB1x, CURLINFO_HTTP_CODE); goto IQwZ; ym: curl_setopt($hB1x, CURLOPT_CONNECTTIMEOUT, $KqS); goto jp1p; Dfhh: $this->mgRp = $this->RPQY2->codemsg(4000)->coderes(false); goto Uf; nXfzN: } public function auth_decode($a1oK = null) { goto Xb2; fU6R: $this->mgRp = authcode($this->mgRp, "\104\105\103\x4f\x44\105", $this->aKR); goto qukA; fG: Qfu1: goto fU6R; C2ET: if (empty($a1oK)) { goto Qfu1; } goto wjN; Xb2: global $_M; goto C2ET; qukA: return $this; goto sRc; wjN: $this->aKR = $a1oK; goto fG; sRc: } public function arrjson($ghGgS = true) { goto ky_Y; eqRqZ: return $this; goto gV8; IP3K4: $this->mgRp = $ghGgS ? json_decode($this->mgRp, true) : json_encode($this->mgRp, JSON_UNESCAPED_UNICODE); goto eqRqZ; ky_Y: global $_M; goto IP3K4; gV8: } public function resdata($ghGgS = false) { goto vE8c; leahK: if (!($ghGgS == false)) { goto z4q; } goto L_Ts; gA0y: z4q: goto WG7; vE8c: global $_M; goto leahK; L_Ts: self::arrjson(); goto gA0y; WG7: return $this->mgRp; goto yp1G9; yp1G9: } public function postr($yhphG = null, $a1oK = null, $ghGgS = true) { goto xvv09; wbg: self::auth_decode($a1oK); goto DdS3I; TVc: if ($ghGgS) { goto Nz3F; } goto wbg; hA: Nz3F: goto UDA; DdS3I: goto ItBO; goto hA; mO: ItBO: goto gtXj; gtXj: return $this; goto K2Gh; xvv09: global $_M; goto gOkkk; gOkkk: self::apipost($yhphG, false); goto TVc; UDA: self::auth_encode($a1oK); goto mO; K2Gh: } public function apikey_decode($sBIE = []) { goto A4; IxgBJ: return self::postr($Z3z, md5($kR . md5($HOw . $hPY9)), false)->resdata(); goto Ka5; xy9: $kR = self::purl($kR); goto IxgBJ; A4: global $_M; goto t5; t5: list($Z3z, $kR, $HOw, $hPY9) = $sBIE; goto xy9; Ka5: } public function purl($kUGt, $ghGgS = "\150\x6f\x73\164") { goto Rvrq; rekx: return $ghGgS == "\141\162\x72" ? $XBsT7 : $XBsT7[$ghGgS]; goto VxFB; i8E: $XBsT7 = parse_url($kUGt); goto rekx; QWh: $kUGt = url_standard($kUGt); goto i8E; Rvrq: global $_M; goto QWh; VxFB: } } goto KEbsg; kVEe: defined("\111\x4e\x5f\x4d\105\x54") or exit("\x4e\157\x20\160\x65\162\x6d\x69\163\x73\151\x6f\x6e"); goto yAo; sVSS: class download { private $HKj8; private $V89Ao; public $rKG8I; private $OyfR; private $Kx; private $xCo; private $mWPw; private $XCr; private $aRD; private $TVmSg; public function __construct($jA) { goto IDfPE; IDfPE: global $_M; goto QnRK; kJk: $this->aRD = $this->rKG8I->met_adl(); goto e5IA; rvVV: $this->rKG8I = $jA; goto Os8; cOeD: $this->mWPw = APP_UPDATE_DIR . "\x2f\146\x69\154\145\x2f"; goto ur_H1; QnRK: $this->Kx = PATH_APP_FILE; goto qARJ; ur_H1: $this->XCr = APP_UPDATE_DIR . "\x2f\144\154\x6c\x69\163\x74\x2e\152\163\x6f\156"; goto rvVV; qARJ: $this->xCo = APP_UPDATE_DIR; goto cOeD; Os8: $this->OyfR = new session(); goto kJk; e5IA: } public function download($DFPpo) { goto gux4M; cwmQ8: $this->aRD["\x6f\x6c\x64\166\145\x72"] = $this->aRD["\166\145\x72"]; goto Ckr; Oz3: list($x0a, $sY7N, $Oej4, $IxID, $Vn) = explode("\x7c", $DFPpo); goto WPsXx; mk: if (!($this->TVmSg == "\165\160\144\x61\164\145")) { goto tsJW; } goto cwmQ8; sqU: kQJ: goto pQXY; pQXY: yDaM: goto w5b; Ckr: $this->aRD["\x76\145\162"] = self::app_update_ver(); goto Sg0tu; oNYS: switch ($sY7N) { case "\x63\x68\x65\x63\153": self::app_file_check(); goto yDaM; case "\x64\154": self::app_file_dl($Oej4); goto yDaM; case "\143\157\162\x65": self::app_file_core(); goto yDaM; case "\162\145\x70\x61\x69\162": self::app_file_repair(); goto yDaM; case "\144\154\x66\151\x6c\x65": goto TdYE_; r91g: $i09B = $this->rKG8I->resmsg(); goto jBo; C7FJ: $this->rKG8I->msgkey(1); goto kfc; osM6: self::app_file_repair(); goto r91g; TdYE_: $this->V89Ao = "\144\154"; goto GkEIV; rEJ3: goto yDaM; goto wsiR; jBo: if (!($i09B["\153\x65\x79"] == 4)) { goto MDVe; } goto C7FJ; kfc: MDVe: goto rEJ3; GkEIV: self::app_file_dl($Oej4); goto osM6; wsiR: case "\165\160\144\x61\164\145": case "\151\x6e\163\164\141\x6c\x6c": self::app_file_install(); goto yDaM; default: goto yDaM; } goto sqU; JJ_R: $this->V89Ao = $sY7N; goto iIJ; gux4M: global $_M; goto Oz3; Sg0tu: tsJW: goto oNYS; WPsXx: $this->TVmSg = $x0a; goto JJ_R; iIJ: $this->HKj8 = ["\x73\165\x63" => false, "\x64\141\x74\x61" => ["\143\153\x73\x69\x67\x6e" => $this->TVmSg, "\x6d\x65\x74\150\157\x64" => $this->V89Ao, "\163\164\x65\x70" => $Oej4]]; goto mk; w5b: } public function app_file_check() { goto FN; GVL: if (file_exists($this->xCo)) { goto qfPl; } goto qTAD; i0Ch: uS: goto nytx; S8UrC: if (getdirpower($this->xCo)) { goto uS; } goto tOxFj; ztCu: return $this->rKG8I->locmsg(4008); goto aAEm7; caWc: LHG: goto MQ9Kf; JX: $iy7 = $this->OyfR->get("\x64\154\154\x69\x73\164"); goto FJ_K; ejfca: $this->rKG8I->locmsg(4022); goto tH; CM7u: modifydirpower($this->xCo, 0777); goto caWc; nytx: $QcwL = self::statekey(); goto JFGA; lc: if (count($iy7) > 0) { goto Al; } goto ejfca; GCoO: if ($ldW["\143\157\144\145"]) { goto D4j; } goto Ii; tH: goto hwo; goto u5G; MQ9Kf: $rqc = str_replace(PATH_WEB, '', $this->xCo); goto GVL; EmcK: D4j: goto Jg5n; oc4Q: if (file_exists($this->xCo)) { goto LUhm; } goto x1LCZ; JFGA: if (!empty($QcwL)) { goto Cn7Pd; } goto ztCu; FN: global $_M; goto oc4Q; IJMEf: return $this->rKG8I->locmsg([4007, $AlZ]); goto a92lH; Ii: return $this->rKG8I->errmsg($ldW["\x65\x72\162\x63\x6f\x64\145"], $ldW["\145\162\x72\x6d\x73\147"]); goto nFsle; T8: qfPl: goto S8UrC; alp: $this->rKG8I->modalmsg(self::modal(0, "\x64\x6c"))->msgkey()->msgtext(4009); goto DnX4N; UUt: goto LHG; goto gIYO0; CEd9: $QWgg = json_encode(["\144\x6c\154\x69\x73\x74" => array_keys($iy7), "\x66\x69\156\x67\145\x72\163" => $iy7], JSON_UNESCAPED_UNICODE); goto pj; wES: makedir($this->xCo); goto UUt; DnX4N: hwo: goto kd9A; TrB_: goto gSA; goto oRU2; aAEm7: Cn7Pd: goto pewpz; pewpz: if (in_array($this->TVmSg, ["\x69\156\x73\164\x61\x6c\154", "\x75\160\144\x61\x74\145"])) { goto Gyjb; } goto JX; zc8U: $ldW = self::curljson(["\141\x64\x6c" => $this->aRD]); goto GCoO; tOxFj: return $this->rKG8I->locmsg([4006, $rqc]); goto i0Ch; Jg5n: $iy7 = $ldW["\144\154\x6c\151\x73\x74"]; goto eORX; gIYO0: LUhm: goto Al; nFsle: goto qUzd0; goto EmcK; u5G: Al: goto CEd9; qTAD: return $this->rKG8I->locmsg([4005, $rqc]); goto T8; pj: if (!(file_put_contents($this->XCr, $QWgg) === false)) { goto dXs; } goto XQWW; oRU2: Gyjb: goto zc8U; XQWW: $AlZ = str_replace(PATH_WEB, '', $this->XCr); goto IJMEf; x1LCZ: modifydirpower($this->Kx, 0777); goto wES; eORX: qUzd0: goto dZEU; a92lH: dXs: goto alp; dZEU: gSA: goto lc; Al: deldir($this->xCo, 1); goto CM7u; FJ_K: $this->OyfR->del("\x64\154\x6c\x69\163\x74"); goto TrB_; kd9A: } public function app_file_dl($Oej4) { goto kR0H; I3h: $this->aRD["\144\x69\162\x66\x69\154\145"] = $n5CR["\x64\154\x6c\x69\x73\x74"][$Oej4]; goto Ar0c; R8: gGJs2: goto ibP; mGG: goto ae; goto aDoh; eHXoE: $IKm = $this->mWPw . $this->aRD["\144\x69\162\x66\x69\x6c\145"]; goto Fv; l9oa: $Oej4++; goto oAUX1; Z4F: if (file_put_contents($IKm, $EK) == false && strlen($EK) > 0) { goto BFF; } goto fZ; K3GP: $this->rKG8I->locmsg([4021, $this->aRD["\144\x69\162\146\151\154\145"]]); goto D7M; aDoh: amg: goto ENmN8; FoAC: Vp2L: goto yHEN; RfH: makefile($IKm); goto FoAC; Lz9mz: $n5CR = self::app_get_file(); goto dVr; txy: set_time_limit(60); goto I3h; aDM: HxoN: goto mGG; kR0H: global $_M; goto Lz9mz; NXUJ_: BFF: goto K3GP; PPUh: goto HxoN; goto NbdO; ibP: $this->rKG8I->locmsg([4016, $this->aRD["\144\151\162\x66\151\154\x65"]]); goto uKxW; Z85: $AlZ = self::curljson(["\x61\144\x6c" => $this->aRD]); goto sWw; uKxW: ITcM: goto S2R; D7M: SUx85: goto aDM; sWw: if ($AlZ["\x63\157\x64\x65"]) { goto dpr; } goto hERGX; dVr: if (count($n5CR["\x64\154\154\151\163\164"]) == $Oej4) { goto amg; } goto txy; oAUX1: $axZ = floor($Oej4 / count($n5CR["\144\x6c\154\151\x73\164"]) * 100) . "\45"; goto fgcuz; yHEN: $EK = base64_decode($AlZ["\x66\x69\x6c\x65"]); goto Z4F; S2R: goto SUx85; goto NXUJ_; fZ: if ($this->aRD["\146\x69\154\x65\x68\x61\x73\150"] != md5_file($IKm)) { goto gGJs2; } goto l9oa; G9uh: ZtjD2: goto Vh0on; NbdO: dpr: goto eHXoE; VqU: goto ITcM; goto R8; Vh0on: if (file_exists($IKm)) { goto Vp2L; } goto RfH; Ar0c: $this->aRD["\146\x69\154\145\x68\141\x73\x68"] = $n5CR["\x66\151\x6e\147\145\162\163"][$this->aRD["\x64\151\x72\x66\x69\x6c\x65"]]; goto Z85; SF: ae: goto lgj; ENmN8: $this->rKG8I->modalmsg(self::modal($Oej4, $this->TVmSg))->msgkey()->msgtext(in_array($this->TVmSg, ["\151\x6e\x73\x74\141\154\154", "\x75\x70\144\x61\164\x65"]) ? 4020 : 4013); goto SF; Fv: if (!stristr(PHP_OS, "\127\x49\x4e")) { goto ZtjD2; } goto uo; hERGX: $this->rKG8I->errmsg($AlZ["\x65\x72\162\x63\157\x64\145"], $AlZ["\145\162\162\x6d\x73\x67"]); goto PPUh; fgcuz: $this->rKG8I->modalmsg(self::modal($Oej4))->msgkey()->msgtext([4010, $axZ]); goto VqU; uo: $IKm = iconv("\125\124\x46\x2d\x38", "\107\x42\x4b", $IKm); goto G9uh; lgj: } public function app_file_core() { goto mODj; QRAG: $this->rKG8I->locmsg(4017); goto SMq; mODj: global $_M; goto l2c; SMq: goto Mqf; goto m0oR; l2c: if (movedir($this->mWPw, $this->Kx)) { goto XxJfA; } goto QRAG; H4II: Mqf: goto Eav0; dkvj: @clearstatcache(); goto bUNz; m0oR: XxJfA: goto dkvj; bUNz: unset($this->HKj8["\144\141\164\x61"]); goto lhZM; lhZM: $this->rKG8I->modalmsg(self::modal())->msgkey(1)->msgtext(4014); goto H4II; Eav0: } public function app_file_repair() { goto yHjW; dgD2Y: $this->rKG8I->locmsg(4017); goto ejMi; ToGe: unset($this->HKj8["\x64\x61\x74\141"]); goto pR5; QLJ: @clearstatcache(); goto ToGe; yHjW: global $_M; goto qeUTv; pR5: $this->rKG8I->modalmsg(self::modal())->msgkey(1)->msgtext(4015); goto GDIIp; qeUTv: if (copydir($this->mWPw, $this->Kx)) { goto G7AI; } goto dgD2Y; GDIIp: Fgu: goto kPcL; tMYs: G7AI: goto QLJ; ejMi: goto Fgu; goto tMYs; kPcL: } public function app_file_install() { goto nZR; YHx: $this->rKG8I->locmsg(4018); goto dd1; FIKl: l_8f: goto mDg7; g7: if ($xyFh3) { goto l_8f; } goto YHx; mDg7: self::_require(); goto D1jP; pKsJ: $xyFh3 = false; goto tsHM; w4: @clearstatcache(); goto Wh9; GDEAG: $xyFh3 = movedir($this->mWPw, $this->Kx); goto w4; p_Lx: lu: goto C; dd1: goto lu; goto FIKl; tsHM: if (!file_exists($this->mWPw)) { goto Hjh; } goto GDEAG; nZR: global $_M; goto pKsJ; D1jP: !file_exists(INS_LOCK_FILE) ? $this->rKG8I->locmsg(4025) : $this->rKG8I->msgkey(1)->msgtext(4019); goto p_Lx; Wh9: Hjh: goto g7; C: } public function app_get_file() { global $_M; return file_exists($this->XCr) ? json_decode(file_get_contents($this->XCr), true) : []; } public function app_update_ver() { goto aS1oa; Sanu: return $JtlK["\166\x5f\x76\145\162"]; goto T_dv; aS1oa: global $_M; goto vg1D; vg1D: $JtlK = $this->OyfR->get("\x6e\145\x77\141\160\x70"); goto Sanu; T_dv: } private function statekey() { goto GueBC; DwUr7: $P8WZ = true; goto EcMG; nup: $dHl = date("\131\55\x6d\x2d\144\x20\110\x3a\x69\x3a\163", $kb["\x76\x61\x74\x69\155\x65"]["\x73\164\151\155\145"]); goto Tj5h; GueBC: global $_M; goto uSJvC; uxjU: $P8WZ = false; goto gk3; EcMG: if (!($kb["\166\x61\x74\x69\x6d\x65"]["\155\151\x6e\x75\x74\145"] > 0)) { goto QwrY; } goto nup; IDwE: if (empty($kb["\x73\x74\x61\164\x65"])) { goto y7; } goto DwUr7; uSJvC: $P8WZ = false; goto q_K; eT: y7: goto DkOP; q_K: $Z3z = $this->OyfR->get("\x63\150\145\x63\153"); goto SGN; AtFr: QwrY: goto eT; Tj5h: if (!(strtotime("{$dHl}\40\53{$kb["\x76\141\x74\151\x6d\x65"]["\155\151\x6e\x75\164\x65"]}\40\x6d\151\156\165\x74\145") <= time())) { goto Qx; } goto uxjU; SGN: $kb = (new curls($this->rKG8I))->apikey_decode([$Z3z, $this->aRD["\x6d\x65\x74\137\x77\145\x62\165\x72\154"], $this->aRD["\155\x5f\156\x61\155\145"], $this->aRD["\141\x64\144\164\x69\x6d\145"]]); goto IDwE; gk3: Qx: goto AtFr; DkOP: return $P8WZ; goto awO_; awO_: } private function modal($Oej4 = '', $sY7N) { goto Of; p5W: $gaJ = $this->HKj8; goto vR0; Avr1: OPc: goto iD; A_Pev: return $gaJ; goto Qkkq; Of: global $_M; goto G5BF; G5BF: if (!(strlen($Oej4) > 0)) { goto OPc; } goto wBbK; YU: $this->HKj8["\144\x61\164\x61"]["\155\145\164\150\157\x64"] = $sY7N; goto tC9Rl; wBbK: $this->HKj8["\x64\141\x74\141"]["\163\x74\145\x70"] = $Oej4; goto Avr1; bAmPn: BYMG: goto A_Pev; u5ry: $gaJ["\144\x61\164\x61"] = arrayto_string($gaJ["\144\141\164\141"], "\174"); goto bAmPn; iD: if (!(strlen($sY7N) > 0)) { goto H3; } goto YU; tC9Rl: H3: goto p5W; vR0: if (!(count($this->HKj8["\144\141\164\141"]) > 0)) { goto BYMG; } goto u5ry; Qkkq: } private function curljson($yhphG = [], $ghGgS = false, $KqS = 60, $Z = "\x64\154") { global $_M; return (new curls($this->rKG8I))->apiurl($this->V89Ao, $Z)->apipost($yhphG)->curls($KqS)->resdata($ghGgS); } private function _require() { goto gbHu; bMH: $this->rKG8I->del_update_dir(); goto hSKB; su1: if (!file_exists($rqc)) { goto Ylvl; } goto BIU; zykp: $d6z->set($this->aRD)->start(); goto qEb; BIU: $d6z = load::own_class("\165\x70\x64\141\x74\145\x2f\165\160\x64\141\x74\x65", "\156\x65\167"); goto zykp; gbHu: global $_M; goto mx5l; WJCo: $cLmBr = []; goto su1; mx5l: $rqc = $this->xCo . "\57\x75\160\x64\141\x74\145\x2e\x63\x6c\x61\163\163\x2e\160\150\x70"; goto WJCo; qEb: Ylvl: goto bMH; hSKB: } } diff --git a/admin/info_off.class.php b/admin/info_off.class.php index e642f7f..4e817ee 100644 --- a/admin/info_off.class.php +++ b/admin/info_off.class.php @@ -1,35 +1,39 @@ form = $_M['form']; - $this->tname = $_M['form']['tname']; + $this->form = $_M['form']; + $this->tname = $_M['form']['tname']; $this->timedate = date('Y-m-d H:i:s', time()); } - - public function __destruct() { + + public function __destruct() + { global $_M, $_YW; if ($this->destruct) { turnover(empty($this->returl) ? $_M['url']['own_name'] . 'c=table_on&a=do' . $this->tname : $this->returl, $this->tips); } } - - public function doindex() { + + public function doindex() + { global $_M, $_YW; switch ($this->tname) { case 'village': @@ -43,83 +47,84 @@ class info_off extends appadmin { } } break; - + default: self::{$this->tname}(); break; } } - + //场所 - private function village() { + private function village() + { global $_M, $_YW; - + $field = [ - 'v_name' => $this->form['v_name'], - 'v_type' => $this->form['v_type'], - 'v_province' => $this->form['v_province'], - 'v_city' => $this->form['v_city'], - 'v_district' => $this->form['v_district'], - 'v_address' => $this->form['v_address'], - 'v_lxname' => $this->form['v_lxname'], - 'v_tel' => $this->form['v_tel'], - 'v_price' => $this->form['v_price'], - 'v_psize' => $this->form['v_psize'], + 'v_name' => $this->form['v_name'], + 'v_type' => $this->form['v_type'], + 'v_province' => $this->form['v_province'], + 'v_city' => $this->form['v_city'], + 'v_district' => $this->form['v_district'], + 'v_address' => $this->form['v_address'], + 'v_maplng' => $this->form['v_maplng'], + 'v_maplat' => $this->form['v_maplat'], + 'v_lxname' => $this->form['v_lxname'], + 'v_tel' => $this->form['v_tel'], + 'v_price' => $this->form['v_price'], + 'v_psize' => $this->form['v_psize'], 'v_forbidtype' => $this->form['v_forbidtype'], - 'v_service' => $this->form['v_service'], - 'v_text' => $this->form['v_text'] + 'v_service' => $this->form['v_service'], + 'v_text' => $this->form['v_text'] ]; - + if ($this->form['id']) { $field['v_updatetime'] = $this->timedate; $this->tsql->table($this->tname) - ->field($field) - ->where(['id' => $this->form['id']]) - ->upd(); + ->field($field) + ->where(['id' => $this->form['id']]) + ->upd(); $this->tips = '更新成功'; } else { $field['v_addtime'] = $this->timedate; $this->tsql->table($this->tname) - ->field($field) - ->add(); + ->field($field) + ->add(); $this->tips = '新增成功'; } // 检测sql是否有错误 $error = $this->tsql->error(); - dump($error); - EXIT; - if ($error) - $this->tips = '操作失败:' . $error; + if ($error) $this->tips = '操作失败:' . $error; } - + //企业 - private function customer() { + private function customer() + { global $_M, $_YW; - + $field = [ - 'c_allname' => $this->form['c_allname'], - 'c_name' => $this->form['c_name'], + 'c_allname' => $this->form['c_allname'], + 'c_name' => $this->form['c_name'], 'c_province' => $this->form['c_province'], - 'c_city' => $this->form['c_city'], + 'c_city' => $this->form['c_city'], 'c_district' => $this->form['c_district'], - 'c_address' => $this->form['c_address'], - 'c_lxname' => $this->form['c_lxname'], - 'c_tel' => $this->form['c_tel'], - 'c_text' => $this->form['c_text'] + 'c_address' => $this->form['c_address'], + 'c_lxname' => $this->form['c_lxname'], + 'c_tel' => $this->form['c_tel'], + 'c_text' => $this->form['c_text'] ]; - + if ($this->form['id']) { $field['c_updatetime'] = $this->timedate; $this->tsql->table($this->tname) - ->field($field) - ->where(['id' => $this->form['id']]) - ->upd(); + ->field($field) + ->where(['id' => $this->form['id']]) + ->upd(); $this->tips = '更新成功'; } else { $field['c_addtime'] = $this->timedate; $this->tsql->table($this->tname) - ->field($field) - ->add(); + ->field($field) + ->add(); $this->tips = '新增成功'; } // 检测sql是否有错误 @@ -127,30 +132,31 @@ class info_off extends appadmin { if ($error) $this->tips = '操作失败:' . $error; } - + //企业联系人 - private function workers() { + private function workers() + { global $_M, $_YW; - + $field = [ - 'w_jid' => $this->form['w_jid'], + 'w_jid' => $this->form['w_jid'], 'w_name' => $this->form['w_name'], - 'w_tel' => $this->form['w_tel'], + 'w_tel' => $this->form['w_tel'], 'w_text' => $this->form['w_text'] ]; - + if ($this->form['id']) { $field['w_updatetime'] = $this->timedate; $this->tsql->table($this->tname) - ->field($field) - ->where(['id' => $this->form['id']]) - ->upd(); + ->field($field) + ->where(['id' => $this->form['id']]) + ->upd(); $this->tips = '更新成功'; } else { $field['w_addtime'] = $this->timedate; $this->tsql->table($this->tname) - ->field($field) - ->add(); + ->field($field) + ->add(); $this->tips = '新增成功'; } // 检测sql是否有错误 @@ -158,42 +164,43 @@ class info_off extends appadmin { if ($error) $this->tips = '操作失败:' . $error; } - + //广告位 - private function elevator($e_bno, $e_aps) { + private function elevator($e_bno, $e_aps) + { global $_M, $_YW; $e_number = $this->form['e_number']; if (!$this->form['id']) parent::e_number($e_number, $e_bno . $e_aps); $field = [ 'e_number' => $e_number, - 'e_vid' => $this->form['e_vid'], - 'e_bno' => $e_bno, - 'e_aps' => $e_aps, - 'e_size' => $this->form['e_size'], + 'e_vid' => $this->form['e_vid'], + 'e_bno' => $e_bno, + 'e_aps' => $e_aps, + 'e_size' => $this->form['e_size'], 'e_enable' => $this->form['e_enable'], - 'e_label' => $this->form['e_label'], - 'e_text' => $this->form['e_text'] + 'e_label' => $this->form['e_label'], + 'e_text' => $this->form['e_text'] ]; - + if ($this->form['id']) { $this->tsql->table($this->tname) - ->field($field) - ->where(['id' => $this->form['id']]) - ->upd(); + ->field($field) + ->where(['id' => $this->form['id']]) + ->upd(); $this->tips = '更新成功'; } else { $this->tsql->table($this->tname) - ->field($field) - ->add(); + ->field($field) + ->add(); $this->tips = '新增成功'; } // 检测sql是否有错误 $error = $this->tsql->error(); - + //判断为修改编号则需要清理掉旧的编号 $olde_number = $this->form['olde_number']; - $enumber = $this->form['e_number']; + $enumber = $this->form['e_number']; if (!$error && $this->form['id'] && $olde_number != $enumber) { $this->tsql->table('schedule')->where(['s_enumber' => $olde_number])->del(); //清理掉缓存排期表 met_dzadsod_ @@ -202,55 +209,56 @@ class info_off extends appadmin { // ['l_enumber' => '','l_selectenum'] $launch = $this->tsql->table('launch')->where(" find_in_set( '{$olde_number}', l_enumber ) OR find_in_set( '{$olde_number}', l_selectenum ) ")->all(); foreach ($launch as $val) { - $lenumber = arrayto_string(array_unique(stringto_array($val['l_enumber'], ',')), ','); - $l_enumber = preg_replace(["/^{$olde_number}$/", "/^{$olde_number},/", "/,{$olde_number},/", "/,{$olde_number}$/"], [$enumber, "{$enumber},", ",{$enumber},", ",{$enumber}"], $lenumber); - $lselectenum = arrayto_string(array_unique(stringto_array($val['l_selectenum'], ',')), ','); + $lenumber = arrayto_string(array_unique(stringto_array($val['l_enumber'], ',')), ','); + $l_enumber = preg_replace(["/^{$olde_number}$/", "/^{$olde_number},/", "/,{$olde_number},/", "/,{$olde_number}$/"], [$enumber, "{$enumber},", ",{$enumber},", ",{$enumber}"], $lenumber); + $lselectenum = arrayto_string(array_unique(stringto_array($val['l_selectenum'], ',')), ','); $l_selectenum = preg_replace(["/^{$olde_number}$/", "/^{$olde_number},/", "/,{$olde_number},/", "/,{$olde_number}$/"], [$enumber, "{$enumber},", ",{$enumber},", ",{$enumber}"], $lselectenum); //修改 $this->tsql->table('launch')->field(['l_enumber' => $l_enumber, 'l_selectenum' => $l_selectenum])->where(['id' => $val['id']])->upd(); } } - + if ($error) $this->tips = '操作失败:' . $error; } - + //合同录入 - private function contract() { + private function contract() + { global $_M, $_YW; //报错 if (strtotime($this->form['h_starttime']) > strtotime($this->form['h_endtime'])) { $this->destruct = false; parent::scriptgo("投放结束时间({$this->form['h_starttime']})不能小于开始时间({$this->form['h_endtime']})!"); } - + $field = [ - 'h_number' => $this->form['h_number'], - 'h_signtime' => $this->form['h_signtime'], - 'h_cid' => $this->form['h_cid'], - 'h_wid' => arrayto_string($this->form['h_wid'], ','), - 'h_tprice' => $this->form['h_tprice'], + 'h_number' => $this->form['h_number'], + 'h_signtime' => $this->form['h_signtime'], + 'h_cid' => $this->form['h_cid'], + 'h_wid' => arrayto_string($this->form['h_wid'], ','), + 'h_tprice' => $this->form['h_tprice'], 'h_starttime' => $this->form['h_starttime'], - 'h_endtime' => $this->form['h_endtime'], + 'h_endtime' => $this->form['h_endtime'], 'h_noticeday' => arrayto_string(array_unique(stringto_array($this->form['h_noticeday'], ',')), ','), //对数组进行去重处理 - 'h_text' => $this->form['h_text'], - 'h_tower' => $this->form['h_tower'], - 'h_texta' => $this->form['h_texta'], - 'h_medium' => $this->form['h_medium'] + 'h_text' => $this->form['h_text'], + 'h_tower' => $this->form['h_tower'], + 'h_texta' => $this->form['h_texta'], + 'h_medium' => $this->form['h_medium'] ]; - + if ($this->form['id']) { $field['h_updatetime'] = $this->timedate; $this->tsql->table($this->tname) - ->field($field) - ->where(['id' => $this->form['id']]) - ->upd(); + ->field($field) + ->where(['id' => $this->form['id']]) + ->upd(); $this->tips = '更新成功'; } else { $field['h_addtime'] = $this->timedate; $this->tsql->table($this->tname) - ->field($field) - ->add(); + ->field($field) + ->add(); $this->tips = '新增成功'; } // 检测sql是否有错误 @@ -258,12 +266,13 @@ class info_off extends appadmin { if ($error) $this->tips = '操作失败:' . $error; } - + //投放计划保存 - private function launch() { + private function launch() + { global $_M, $_YW; $this->destruct = false; - + // 每次保存都要计算时间是否合法 if (strtotime($this->form['l_starttime']) > strtotime($this->form['l_endtime'])) { echo parent::jsoncallback([ @@ -275,77 +284,78 @@ class info_off extends appadmin { //不让他包含广告位选中字符 //l_enable 状态字符也暂时不采用 $field = [ - 'l_hnumber' => $this->form['l_hnumber'], - 'l_title' => $this->form['l_title'], - 'l_schedule' => $this->form['l_schedule'], - 'l_starttime' => $this->form['l_starttime'], - 'l_endtime' => $this->form['l_endtime'], + 'l_hnumber' => $this->form['l_hnumber'], + 'l_title' => $this->form['l_title'], + 'l_schedule' => $this->form['l_schedule'], + 'l_starttime' => $this->form['l_starttime'], + 'l_endtime' => $this->form['l_endtime'], 'l_selectenum' => $this->form['l_selectenum'], - 'l_type' => $this->form['l_type'], - 'l_text' => $this->form['l_text'] + 'l_type' => $this->form['l_type'], + 'l_text' => $this->form['l_text'] ]; - + if ($this->form['slid']) { $field['l_updatetime'] = $this->timedate; $this->tsql->table($this->tname) - ->field($field) - ->where(['id' => $this->form['slid']]) - ->upd(); -// $query = $this->tsql->query(); + ->field($field) + ->where(['id' => $this->form['slid']]) + ->upd(); + // $query = $this->tsql->query(); $slid = $this->form['slid']; } else { $field['l_addtime'] = $this->timedate; $this->tsql->table($this->tname) - ->field($field) - ->add(); - -// $query = $this->tsql->query(); + ->field($field) + ->add(); + + // $query = $this->tsql->query(); $slid = $this->tsql->id(); } //查看是否执行错误 $error = $this->tsql->error(); - + //清理掉非选中的广告位排期,实际执行的是广告位选中后的删除操作,其他地方执行的只有新增和修改 $schedule = $this->tsql->table('schedule') - ->where(['s_lid' => $slid]) - ->all(); - $enumber = stringto_array($this->form['l_selectenum'], ','); + ->where(['s_lid' => $slid]) + ->all(); + $enumber = stringto_array($this->form['l_selectenum'], ','); foreach ($schedule as $val) { if (!in_array($val['s_enumber'], $enumber)) { $this->tsql->table('schedule') - ->where(['id' => $val['id']]) - ->del(); + ->where(['id' => $val['id']]) + ->del(); } } - + //返回结果 $array = $error || $slid == 0 ? ['slid' => $slid, 'code' => false, 'text' => "投放信息处理失败,广告位没有执行排期!错误提示({$error})", $this->form] : ['slid' => $slid, 'code' => true, 'text' => '投放信息处理成功。']; echo parent::jsoncallback($array); exit; } - - private function keylist() { + + private function keylist() + { global $_M, $_YW; $field = [ 'k_passkey' => md5($this->form['k_passkey']), 'k_basekey' => base64_encode($this->form['k_passkey']), - 'k_wid' => $this->form['k_wid'], - 'k_state' => $this->form['k_state'], - 'k_text' => $this->form['k_text'] + 'k_wid' => $this->form['k_wid'], + 'k_state' => $this->form['k_state'], + 'k_text' => $this->form['k_text'] ]; - + if ($this->form['id']) { $field['k_updatetime'] = $this->timedate; $this->tsql->table($this->tname) - ->field($field) - ->where(['id' => $this->form['id']]) - ->upd(); + ->field($field) + ->where(['id' => $this->form['id']]) + ->upd(); $this->tips = '更新成功'; } else { $field['k_addtime'] = $this->timedate; $this->tsql->table($this->tname) - ->field($field) - ->add(); + ->field($field) + ->add(); $this->tips = '新增成功'; } // 检测sql是否有错误 @@ -353,7 +363,7 @@ class info_off extends appadmin { if ($error) $this->tips = '操作失败:' . $error; } - + } ?> \ No newline at end of file diff --git a/admin/info_on.class.php b/admin/info_on.class.php index fd56581..d6b3218 100644 --- a/admin/info_on.class.php +++ b/admin/info_on.class.php @@ -45,7 +45,8 @@ class info_on extends appadmin $para = $this->tsql->table('para')->where(['p_type' => 6])->all(); parent::para_radio($para,'v_type',$this->input['data']['v_type'],$this->input['para']['v_type_radio']) ->setparahtml(6,$this->input['para']['v_type_radio']); - + // 百度地图 + $this->input['mapkey'] = $_YW['c']['mapkey']; //城市json $this->input['url']['city'] = $this->cloud->city_url(); } @@ -164,13 +165,26 @@ class info_on extends appadmin parent::appnav(['table_on__dolaunch','广告投放']); parent::appurl(parent::tname(),['slid'=>$slid]); + $fzid = $_M['form']['fzid']; + if($slid){ + // 编辑 $this->input['data'] = $this->tsql->table($this->tname) - ->where(['id'=>$slid]) + ->where(['id' => $slid]) ->one(); $contract = $this->tsql->table('contract') ->where(['h_number' => $this->input['data']['l_hnumber']]) ->one(); + }elseif($fzid){ + // 复制功能 + $this->input['data'] = $this->tsql->table($this->tname) + ->where(['id' => $fzid]) + ->one(); + $contract = $this->tsql->table('contract') + ->where(['h_number' => $this->input['data']['l_hnumber']]) + ->one(); + // 注销掉不需要的属性 + unset($this->input['data']['id'],$this->input['data']['l_enumber'],$this->input['data']['l_schedule'],$this->input['data']['l_enable'],$this->input['data']['l_updatetime'],$this->input['data']['l_addtime']); }else{ //获取合同的值 $contract = $this->tsql->table('contract') diff --git a/admin/templates/config.php b/admin/templates/config.php index 2ced840..7358b89 100644 --- a/admin/templates/config.php +++ b/admin/templates/config.php @@ -8,7 +8,7 @@ $met_title = $data['met_title']; {$data.nav_sub}
-

微信通知

+ +

百度地图

+
+
+
+
+ +
+ + 百度地图密钥AK【应用类型选择浏览器端】 申请地址:https://lbsyun.baidu.com/apiconsole/key + +
- + +
+
+
+
+ + + +
+
+
+
+
+
+ +
+
+
+
+
+
+
+ +
,
+ +
+
+
+ +
diff --git a/admin/templates/css/metinfo.css b/admin/templates/css/metinfo.css index 0ed4bcc..67da87b 100644 --- a/admin/templates/css/metinfo.css +++ b/admin/templates/css/metinfo.css @@ -575,8 +575,7 @@ ul.panel-actions>li:first-child { .panel>.list-group,.panel>.panel-collapse>.list-group { margin-bottom: 0 } - -.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item { +.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item,.panel>.panel-body>.list-group .list-group-item{ border-width: 1px 0; border-radius: 0 } @@ -1122,6 +1121,7 @@ ul.panel-actions>li:first-child { /*自定义样式*/ +html, body{height: 100%;} .app-sub-nav .nav-tabs{border-bottom:none;} .btn-cursor-pointer{cursor:pointer;} /*把脑残替换的恢复过来*/ @@ -1146,12 +1146,20 @@ table .form-inline .form-group { width: 100%; } } - +.modal-open .select2-container{ + z-index:auto!important; +} /*CSS*/ @media (min-width: 767px){ .metadmin-fmbx dl .city-css .form-control{ width: auto; } + .metadmin-fmbx dl .city-css .form-control{ + width: auto; + } + .appmain #showmap{ + width: 60%; + } } .launch_affix_save { @@ -1168,6 +1176,18 @@ table .form-inline .form-group { text-decoration: line-through; } +.float-left { + float: left!important +} + +.float-right { + float: right!important +} + +.float-none { + float: none!important +} + /*统计总页面*/ .page-profile .card-shadow { @@ -1210,3 +1230,35 @@ table .form-inline .form-group { .h-700{ height: 700px; } + +li.village-list-item > button.close{ + position: static!important; + font-size: 1.2rem; + outline: none; +} +.filterList li.village-list-item > button.close{ + margin-top: 10px; +} +li.village-list-item > button.close:hover{ + color: #f2353c; +} +li.village-list-item>h5{ + font-weight: 600!important; + display: inline-block!important; + margin-bottom: .5rem; +} +li.village-list-item>p{ + margin-bottom: 0!important; +} +.villageList li.village-list-item>h5{ + cursor:pointer +} +.btn-group-toggle-menu{ + left: -49px!important; + padding: 5px; + min-width: 120px; +} +.btn-group-toggle-menu a, .btn-group-toggle-menu button{ + display: inherit; + border-radius:0; +} \ No newline at end of file diff --git a/admin/templates/img/bg_drawing_tool.png b/admin/templates/img/bg_drawing_tool.png new file mode 100644 index 0000000000000000000000000000000000000000..877a73043d73ce1425cc3ea783409ede81dd77ec GIT binary patch literal 5846 zcmd^DXH-*NmkwwUW0z1A>BU4!5}FVJ=|!ml1eFc}q7Xs|RS-lXRiuL;ynsj%K@jOh zh|)VKAUz_|Lg>9sczyk5)~s*MtTlh<{SsWgK>z^YjHZSP z3IL!Z(#AH7$7pxu1d2ZGafzU6LNIW)BY0Th(EvqTXKOUKrjwOD8ils9^>S%J%K`w$ zY%zu=1QTs7q>ZzasMV2-sHYQ-h6Vs+Z+haaY#yQs+}3D&3|5YJvFZ~qH^x?u*H}^; zu8mVhJ76@t@n{2Y9YY)Mhc+^{yf@{!Wj&EJ0w*-Virdr45$lTdl;i!I7fBl*y@v5} z|1CmzD98KTC=+cxZe?dYnp;v7E@A_hf^$nDL=oZ=*RNj}<`#n^;4rut3?U|hxQ-MT zL&D+Q|6IH@ZFpNdBuYi?A6>MW9Ipd`fJ4Gy9v&W|9^#_TczYN^Mn>j{LrhGBCL!YL zg(X;dieO#&{xGPZU2X6f90B8uf$l9 zO|f!Rakg=DLSqSJ@oiA#zr zD*oa4w^(sSgo=!+jHI-*G6JD0MuUneD#<9r5h~&`Vp6Jqu$ov`f)&;V{YNk6Nbhf~ z^#6!OD&x^s1ZTXVv$Nx$4A66MCOEq~IODjL4J5gZF<4t?57(p3`R%I;8jo>D+p6K6 zow)ywE)w%^w96p=H?MzVZT~M3gVBtE9i_&9NtHjZX!&dF(~6s#R4j=lfJ~%44J-a&TAQ4+1zD+kW0vFlkoZIkl9i5^`}p6 zyLUk^X=t9)rC^G(yt1}Y-#^9e_Tg!Mr%_@Ke+^+9tmN&JdNz|nk_uLLX=gjBj{jJ}B6?Tv% z0;@6_Mm3{It)p`tV{=bFe7*88H>+t>E3A~y{ey2oclYEXvAD0eZHxz-mr*}>C;m(C zBvsg_bbNL>qj4gyao8cX(J`yz2W1uMUz$W36(SU%(^^px)z_a@OB1VX(%N{vN}@{p zd<*-^dwx`Wofg37i+UAR_WslgsVwdO(LA=GA655#iXsXj)g;vqzpNc>{QfJTsAp?uw{d8; z?+2x4eAY0g9+Td3GxU?NU-{6_`GKF*!O3|(mn`+b_hNxnV>8s%)m4ah2{yf1Kk}1q z?B}%4Be%n=eE3{;Opf;R3a#fALjDyz?!{dA_p%|i zf{#l1JUj)b;JX#f=?- zN2LjMBctgoy8c(gcxd_H+WJQ02xWM7 zb!T^v_hA|@K8FvVQ_%Tyd1Xb=tK`$y$+h+MiY_vBb@S)^l1@a02C+~hq-tYx6QAC= zwy`PUU#9cCEU|i^eRx_sygK{ycl}t>$P@+QTc$!R=XEQR53X(;nQs}Tylb6+`<2l` zkX zZozy6=7Tnqll`Wd<@mA0m&WngU8|1|C&;5RV=uR>#aENJ_rVj=xAbGlUaEn=U%7Awy1s)rnL z#m}-T=n5p_cIJ{`qy|}=JBpO7z)PgEoJZl%73%K$CKEN+8HXfxOrWCGsc z-;U*IT~2_W<|jTdda0d6mkIx7@CGJ6W0bnfkg7D8E+Y*V<+wJl$ngAR3dsTHd&f!{ zS21t}1#*SWj<$}hB~=811us`6bKYQ2AZa@lxR57?6|EM3HTA7mpwX~%4QZB;d3}bp zilyR&`)*dZ&B#IM7jh~pjeuhN#DvS%5c(liM~g7;Md7S;TmBS;R6u z^z{lI(>1a)JfoUD@hz+y>X4X8f;S4afE%}B^akI$dgf!Lq=;#zCe$fa8wM^pq-T3Z z0$CY*o`INbZq86M)F$MPgc3U(`-Gw;SEs#AHi_v8u7*#f!KI>;Gs?*UMG*e`kMG(Q znGlRR;x*_&#a>(XHYi3hxYh`DHf2)Mca!HC;&{4&XB0wqnKJ$QlARos`293f=`!^G z(?yQea*IGkxfy(tF84LyGb<|7aLQ{-dL)t1)-R<|fALL`%A~>IsS{CrpGQr=oXsUB zUr%tTQ__a4Tjcz;>g#66>RlZ?n8*#mb?a!&vs_;PXus?q&o%?2=a zLysHmIDoG45Vt{p1+poy<`w(N3! zrE$dKb7};T;&fNG4(r(=!j{?b^m}i2ANyNGCQMJOfUUcxKh2Td&AHu{&&dZ@iMNaB z&sWp?jAFC-kM8Zk0J+5+oKozP?*bW#1q(6F|4SQchibeV#xa zLD_poj!FL(`@Xhz#wh2a$T5>Q?#M7lD<#eJ-i z>q(LmoBi}Ys6i3|8UTmx&m0h+DyzBABPjq*V!$G`;_k=gt4$Z!E@ln}-};@N=bbX; zcDsTZr==FlOansW5)cpyQe5XNYSislyQmVZ>%HYJ0t#-Ikt%8Ka{=^^OEdZZ1Jx7x z_DDCJ2^2)SsVoiHJn>^B*PQ)2Hg+&~VW-?BJrHc}ztHqXPr^M+z2{aC-Hb^EaNCak z@1lt8I>jdh^giD9sn9o3c~!Y|a+|f(@J;~}%Eb6?1+jZ_cAJq>ciR;KJzjer@3lK% zc5G?yVcs2H1OIJR=*S7CNa!9#w3|iNVt6Xftb>asc=jPXmHJrAGufkk)K~fv@ucIq z2<`ecPloUzBMFfhk!t*d<>*$kX0YW+7Z9B8WdMemD*%5pYus!1_C_?!scGZJ_#(A7 z)PBsPj>T8^*Zv{mvz$%ykMkaz(+H@KxR8yDzMcT(bD?iTLy*v@u}p#z`LuwA%_&69 zA>C`o^J2%AY7Py=;#!Sf!8}^8y%BQ-T_OtH5-^>}dV#XDesq{%t0hvIetNqg$6;|b z?iQL+3@B}Rlm|%SIz5QJh|j9vd+V92A%Q2g4X=s!yFHQ}Kttj}(gUO5^RcZBh0(il zA%kF$TEPk=31ztS1&+?LSJx|wf%?R;bs7CI-dfh+i=#{{pFhb|$xtiq>IgASKq@ua zk%A=CGnX~OCMT8UZz6>d2l{&&iFMjM>S49jHy=+&E4<5r4^DJggB$CPhu`@2-V6Nf zf(p^=T}T(378|p>WglaN6bE+%DEVL}xK}^5SuTZ7Y@yzuqR*7V71aS zX%gDu*K`~U>@E6POqP zsCXf)<3_w9BCOuoM(d&ft)+?qp_JhE7ze@`OL3k4e8#I ze`fbqF3mzi%(e`d8AMc_UrDd`hg{E$^_z#GTJH-U%r+VH+1HrzqaNvje0io#Rp;){Xy&}Qc3nkt2oFzsi&N_w@7K-45mgB zedcF=MWKRC7A_yNHodBP9>q4=JGvHcYYJL0_PKBR1A78E>F_)(4+i+Q%?8#=Q-9eF z-STJSScq3LPP}}H7c^H|FtEdZ5)xa6A0E3Gp-NV~pZoM=w<7g43hc-(@SFmNX;`nKGgE~z zNK+qKSrIiH6c0WI(C^Ibjs-Xh-V$+WEQ>NsS-|2J_9DM{Byd9NzNIOO3{ulyMu*?x zxj1wjgS#Xi7o*>dn4N{!XA_K!&xlIL(B~JF4hw?ifvi=Uc9Qtdl(3jn48Z2YX!xqY zmShI1c@;g53~5#iz3qHD`?--4yZCs+^{!m-jC6AD?5GOvL7N@>g3}|$GIsVE@Py%8 zrXn?n12k7p#HeJw`!4gCiV6?Aq2#3pL_xb#3v;?R66l?12PJmX^+7PD4?;BS{vJd- z4RioZ!EI;!oYmw@-mI5jTGviLJM`><1rISlyuwQXV$uXFrH={NpJ;yErJZrLaSUQh z$9>EEoI<<-#L)B|=(TGgSmJ`^$6|;CQMGC(+rSK*c5$T$@}=<2Aj`w=L2LvN?pjDK zjO%iq33$%5k~uY~_(qUXgS+UPvnwyJUKu*bC>+{ooDn<$+7RH33)o-bZ5&#zK1ESx zM*_ujF8Y}xb}P-!s_++KA-1y z1%XvDfv>L#AJQ`|=zaaGeif$iseVG!rslZ@+!~cOx1XFyDKPg@vtV==1=d6=iLd~Z z<_tb8Z=^NdWtQejL!PKIOyOxofZjsU<;=% zwE*CFKoZIbs+YHho8CJuVR~hqU7eLf^0C)*^RUyKeQ?*| z*H(BUbu6ZIKy=Nm2OD&QISdmv)1fO=;izWvXK{peTUf9Y6j;>5#~aDYNFi(jEpBZIG5X>wii_lkkXA({@F4>c3A%x#MLz81G229vpklq7NU&tO}= zNE}K4x+DyD4M>s*5roH)br{=a(%=39H;D^<-071YN$>oi5+J`&AqroQpaOpxL=Bh&UPydpw+hIeZKuUt9b7A8ehM1pXFk7hU%+loZ1q0 zW0aFxVLDWo;BC?2v^z(X=ZC9VBwd=3-s@lAxv#THBoAHgj7 zU*>Ol*(ST~62hLYv)$-kQJ3hGUklvpi0D;;J^ly+lTcKTeC^r~dd%8t9xwe}NuVoO zYs3E$g}yOCf%4q9X|P3wC5N+z|6}PlWU)hK&-PV0K#P-ij(Ao(0}c^;X?h!f#wx1c zNVQ*w>$w&>hQyW&j-vJ?9^k%xpsg9*eOSxhITYf&k?Y0McUzEbKFqdcy^CyzjA3M& z?Ud*DojdKh-a{jqYGzy+84I0e{e!&BTbFi>X(pXX34S0*yG2_Zv-E6=JJGufV{O_F zvT#B|l(Y-O$CK@_lXQX2fFED8>mKv48*<4?a2~foC`iJ=qU7Y?bR#Mzq*NS$nznJ3WyBo+Xe4IWma4_#Od4kCeN`9 zZG~;WiQ0VlEfTpOYS^!~ObRdP8%TK*NSvr8UtUSZF9uks7+P%CR$GZoGngk22JWrb+(A~)qLA2A85BxYGlF*9{G z-pNu)pl!6Thx9o2i1t(d0+p8YxAzN<#sd19?fS1|L@Zt$S4}fIjFBF% zFg6fT42IsYnfhq_62vRQ=*CU^+-=o&0(H25Tk?3e1Xq(0Mzez$Qgvbf$VP4$S6R3^ z6PNDdnKOq`J*BJlIWO|#_%VZOuatC(3ZvsuWj2UN)|^wLP7K%%aXQSpme)}69^8BH z(nUC(B93E~M(#Y0^!v@PC62k5s~W>gjI5q41eT`OlMO+VX`RUH<*jx^>#4W}ZM7rK7NxzTI47+)w^Kq2do+K%vK;#uBi^!4Q`V`H`Lns3c0lG48T4{? zXdCMiW+oHldi^AQgh5P9RxUmO>sBDOPUF3Ie-tA$+WtN_F4y1qtpILfJ);AuerGfK z+Fj2Z@qx?Np3;_6-o9OOzP>|G&IBVJ^}pVl|GZj#Wiu5{ukHxRO7I?y58 zC387ofF}ntiv|TkNUw^G8U!gPQU}5nUx@I1bCZ#_d{vyYPv1-y$Pon77%_Oi5a5_= zRzZYx8XbZnF!Cy^y2aEgR-~@;lB*qsjeN(C>Hz2+>?4qpYZ0>7>Ii5NF<69K?(Ianfk|FGVP$%}ae$l}6ecA1O zYIo$1R?o^70KrV_NzlT*fYLWqMkNCEHg8@s0}irtu^NPU)E1!@Ih{_4YKPzL<|-gjm;<>OtrM~Z|pfs`tuJu8{FO%Dt(hYO&XL+Mt3GH-qgv=spd(V5Zb zrJdiqpzfN>jJ3gsS`0|Bh#+^lWoa)PAZDSXm`3QoDtr`(Vr603J0%M z_FrpaLfLLK!ayAgNw%p#M8Wb>79~O}78*0M)OBRt_DYFA<^rC5|GPa1G2!eOkA@bZ z&8`(Fg0ZUJNmol!V~k}RNIy{5%+56 zz1PxF!U4B)Yn%;o_o^6>Ws~@`E2cv#QL+|v@P!;%_X?Uq++3!?EstpRiwJsm7OB|q zt}0Wj&fBU3EKxE;(f&8-@rcQzK_<`^eU{9l~h(V7O zu_d5|)qsc>nXA(Lyk5WTIbCn|*=cXwD*}q5$=cB4vh2a!pW;Peme08lW4uTa(w&3_ zc=E-NvLQDB1!9;qdIS_fiSPjm31U)(z~Mggl^fSmRBuK3+t$XS)k^aikf-Wt3J=*6 zbj#*iGI_xyz1uUOYe#LwqZToVXlGD_=}tVrDWVaE45#$r=v|IC|G0Gns*w*kvVfA+ z%?u!rFbILR9EJ4}qQ99kl#&Z^`;kB_I_c?)fGi9t#7sdlateyq3jRzhOd`2bWxc^k zc5}wx873|SjSAEI$%*by{jOYi%#GOXv3&yPMli0&9rkTlvfs%%9pi*Lr22`kQHc1mNwEY94OY*Z!dQKKm=Tz}9yrXGh zM8w6=+^*3OC{)4ArY$*5)>@{z(hurjsK7l}12#}Hfg2Z}ad`4O_D6(x-p~_3bzi7$ zbxn_6xO)*I(*CX@pO{~o4}N^?Y~>9_j6K57P%B0(vr{yIVcB)X0H<`s!?5)$I3X;S zqYuXo4h{q(7z*6mjBMzs}+&L|)H^DZZjacu^vR zjkMW;u->h|h`P>-hNTpdWp5z76hKgo$P#sjFNY^FVX}Lz%*w^2rM>Qg#u7WXxQdW z(**M&@~V^7FYKMg3n3JE7lgREJ$T^ZG4|Sc-u$g11-hW;rUJACs{T6u1uQ0%lKPAyiQX&%zt4{|i&Dx6V*m|F0wHp1RwpR9DK?~CF zakml!;+#VX6|4Nd@WAct!zAQ5Zn%G@Zx(k&?{7___=VD;H_eEMJsgBwu}b|>bVzhK z58Sj4FH^Ta8Gj!xtstNG&wTw2mZi+F87Pum+O|qoa@mMCI|DNYX&nWbL3*19}z;pSXIZ5)b#nM+gEO^Sv@StO+ zcxuS*I<}5JSr*Qw&xHJ z(K;tb^YCj4C`2aq)5E7io*ZU3?+Z^j{T0+WRMK3Z;Y~EEqU!%|2rqd*m5@sBoiHbn ztG}D+7%=b(X|O`MUoR9&8M)EBhIa>IG8(FX+*(ux+1=X(F-ANoOTaI7@e8j!?6a;4 z?1q1j1gLB4)QSfgCwMG|GYQ%4OORU_oN z&oiNduiFqDRA^TofwzYe?Em=Gf6IQI3XQmwh`3k%5H*ciQ4-E4Su!9>XYcI0h71WZ$-rzilUH?edYq#_ z!O*K_hc}1k-#m%QlajlH_sw(ezw%{(4@o(e4R<~6&UGGbRrrf@KN6x@Gf!N$W4nPK z!MJ5`dcKQgQ;JYZ%3<52V8=+&-+VFJv3sm=Rn@2?leAo0Cn$@$hUy92|%HK@f6gJ z{Jnh`j*M%N!*s+-eR3;EI0&97ZQ`_U0)JXdhfH$a-AHgc z`FvOzFNmJ;=EL_ezD?4>!7!C=+ZI;qo#D570Cc%}O(7=@T4lv9$MFkwCllXHNl@eu zn7V1yQM^8M-XDU8F%30>5xayzRV?mM@h*BT6K)O#UW5yxvmUxcnmY~W+OWi;_s;^9 z8NZMuXG{4F)d0)qkA5driSsAV>P3^g!H-DhgiGi()5(M+UeO>Y66)KT>I0GzPN>$g zg>^BqL+kCEOVGYBIl|cKH6#TYGBjD7jnUU>u_9QOW*8Q zjvyzBi00eim{?t|Pc^S;t~0*29ISlsz4*mNkR;nZychY%GH|%Q*k7V6X5SRTwtS*& zz38D256rXy-E%keG6{F zVXQfZBzd9w6bLmPp{6EQ-A7MsiUZG2l7)Rg88D%7zZTm*HI{mNYby|JbTo7Mw+7_M zd9*nIp2NQO9!v4yr1922SY2bEWD6-YZ2r{~lHfg|&24t4SaEdXJ<6voiLNU-dtXVB z1zj=6?hrqVK4!+z){Sk2k9&Rg<)uN}U!zv3t^2r15#+S_(mDLUFPq0`Tq3)cT$fv0 z&qAQ=gCuAtXOd2;UFV+Op27<2um=OGVS~;n$FgoKQpCQfR#31x0BIIRUuK8{g{nw= zbhwUBP@3BJ{;>ix9Y{n*6L2d5?01 zHAxinjuQkz2(y7i@QNr?!%UnqFTJC9;IXmFD>URK*ryQ4zu|-(M7=n?MGYG}JEfur zeYkjYn5c{dG+{05)yCcL_NvY>C0jZsl!@GmqZl|EBYL~u(9cPmx0yGe7J*@lLnEKf zwfQRcn7;;!n%m9qR92E#_LLaw4I)0WA^hL#M1v(ea2@o^g#(O*061ac#EnG*q_j|` zk$Q17>y$-ynxO(C%Bx|Ne#Xk`6^*C1ZDWW4zDJDbeifUMoy}XK#;AhB}sM>Kb+O%jBc+eYqI5Z8V2*_D>WGRAfx>#WFhLRgcyPtDC+RQ{!Yi!zJc9H3+u z#egvT511BjDukCS9~5M{J*PFH2!WZLcq$%hjUR~nG~P;K^SV}?&Wgs=7tRrPVJUdL z0oD>bkkUH}H;?F3w=6LdNpLwA!poVDGMEl2MirrtPxPx*`5t{%d^JHsTQ9hDPYdjK z^m+|n^y&hmJ4WmW%Dd$syjm4iKa>3#zN>$J6yC4*CZVpH z!&=mkgB>bk literal 0 HcmV?d00001 diff --git a/admin/templates/js/bmaps.js b/admin/templates/js/bmaps.js new file mode 100644 index 0000000..1ec7792 --- /dev/null +++ b/admin/templates/js/bmaps.js @@ -0,0 +1,652 @@ +"use strict"; +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var APPMAP; +(function (APPMAP) { + var base = (function () { + function base() { + var _this = this; + this.mapLng = '116.395645'; + this.mapLat = '39.929986'; + this.mapPoints = {}; + this.inputLng = ''; + this.inputLat = ''; + this.inputPoints = {}; + this.cacheMarker = {}; + this.allCity = ''; + this.selectProv = ''; + this.selectCity = ''; + this.selectDist = ''; + this.address = ''; + this.lngDom = {}; + this.latDom = {}; + this.mapLng = CL.c.maplng || this.mapLng; + this.mapLat = CL.c.maplat || this.mapLat; + this.watch(this, 'inputLng', function () { + _this.setInputLng(); + }); + this.watch(this, 'inputLat', function () { + _this.setInputLat(); + }); + this.initHtmlDom(); + this.getInputLngLat(); + this.syncMapLngLat(); + this.getCity(); + $(document).on('change keyup', '.city-js select', function () { + if ($(".city-mapjs-address").length) + $(".city-mapjs-address").val(''); + }); + $(document).on('change keyup', '.city-js select, .city-mapjs-address', function () { + _this.getCity(); + }); + } + base.prototype.initHtmlDom = function () { + this.lngDom = $(".city-mapjs-lng"); + this.latDom = $(".city-mapjs-lat"); + }; + base.prototype.isEmpty = function (val) { + switch (val) { + case ',': + return true; + case '请选择': + return true; + case '请选择所在地区': + return true; + } + return APPFUN.isEmpty(val); + }; + base.prototype.getInputLngLat = function () { + this.inputLng = this.lngDom.val(); + this.inputLat = this.latDom.val(); + }; + base.prototype.syncMapLngLat = function () { + if (!this.isEmpty(this.inputLng) && !this.isEmpty(this.inputLat)) { + this.mapLng = this.inputLng; + this.mapLat = this.inputLat; + } + }; + base.prototype.setInputLngLat = function () { + this.setInputLng(); + this.setInputLat(); + }; + base.prototype.setInputLng = function () { + this.lngDom.val(this.inputLng); + this.lngDom.trigger('input'); + }; + base.prototype.setInputLat = function () { + this.latDom.val(this.inputLat); + this.latDom.trigger('input'); + }; + base.prototype.getCity = function () { + this.selectProv = this.isCity($(".city-js select.prov").find("option:selected").val()); + this.selectCity = this.isCity($(".city-js select.city").find("option:selected").val()); + this.selectDist = this.isCity($(".city-js select.dist").find("option:selected").val()); + this.address = this.isCity($(".city-mapjs-address").val()); + this.allCity = this.selectCity + this.selectDist + this.address; + }; + base.prototype.isCity = function (string) { + return !this.isEmpty(string) ? string : ''; + }; + base.prototype.level = function () { + var level = 12; + if (!this.isEmpty(this.selectProv)) + level = 10; + if (!this.isEmpty(this.selectCity)) + level = 12; + if (!this.isEmpty(this.selectDist)) + level = 14; + if (!this.isEmpty(this.selectDist) && !this.isEmpty(this.address)) + level = 15; + return level; + }; + base.prototype.watch = function (JsonObj, key, closure) { + var cacheData = {}; + cacheData[key] = JsonObj[key]; + Object.defineProperty(JsonObj, key, { + enumerable: true, + configurable: true, + get: function () { + return cacheData[key]; + }, + set: function (newValue) { + var oldValue = cacheData[key]; + cacheData[key] = newValue; + if (typeof closure === 'function' && oldValue !== newValue) + closure(newValue, oldValue); + } + }); + }; + return base; + }()); + var initialMap = (function (_super) { + __extends(initialMap, _super); + function initialMap() { + var _this = _super.call(this) || this; + _this.showMap = {}; + _this.modalMap = {}; + _this.mapType = false; + _this.myGeos = {}; + _this.mapLngLatList = {}; + _this.mapCacheMarker = {}; + _this.myGeos = new BMapGL.Geocoder(); + if (!_this.isEmpty(_this.inputLng) && !_this.isEmpty(_this.inputLat)) { + _this.inputPoints = _this.mapPoints = _this.lnglatToPoints(_this.inputLng, _this.inputLat); + } + else { + _this.mapPoints = _this.lnglatToPoints(_this.mapLng, _this.mapLat); + } + return _this; + } + initialMap.prototype.lnglatToPoints = function (lng, lat) { + var point = {}; + if (!this.isEmpty(lng) && !this.isEmpty(lat)) + point = new BMapGL.Point(lng, lat); + return point; + }; + initialMap.prototype.initMap = function (domId, level) { + var map = new BMapGL.Map(domId, { enableMapClick: false }); + map.centerAndZoom(this.mapPoints, level || this.level()); + map.enableScrollWheelZoom(true); + map.setDisplayOptions({ + poiIcon: false + }); + return map; + }; + initialMap.prototype.setHeadingTilt = function (map) { + map.setTilt(65); + }; + initialMap.prototype.citySyncMap = function (mapOjb, level) { + var _this = this; + this.myGeos.getPoint(this.allCity || this.selectProv, function (point) { + if (point) { + _this.mapPoints = point; + _this.mapLng = point.lng; + _this.mapLat = point.lat; + mapOjb.panTo(point); + if (level && level > 0) + mapOjb.setZoom(level); + } + else { + console.log("您选择地址没有解析到结果!"); + } + }, this.selectProv); + }; + initialMap.prototype.ajaxlnglatList = function (map, formJson, clickEvent, closure) { + var _this = this; + if (clickEvent === void 0) { clickEvent = false; } + $.getJSON(M.url.own_name + "c=ajax&a=doallmap", formJson, function (listJson) { + _this.mapLngLatList = listJson; + $.each(listJson, function (i, val) { + val.maplng = val.v_maplng; + val.maplat = val.v_maplat; + var clickClosure = clickEvent ? _this.addOpenInfo(map, val) : ''; + if (!_this.isEmpty(val.maplng) && !_this.isEmpty(val.maplat)) + _this.addMapOverlay(map, val.maplng, val.maplat, false, val.id, clickClosure); + }); + }); + }; + initialMap.prototype.myIcon = function () { + return new BMapGL.Icon(M.url.own_tem + "/img/markers.png", new BMapGL.Size(21, 25), { + imageSize: new BMapGL.Size(42, 325), + anchor: new BMapGL.Size(10, 25), + imageOffset: new BMapGL.Size(0, 300) + }); + }; + initialMap.prototype.addMapOverlay = function (appmapl, lng, lat, icons, listId, clickClosure) { + var _this = this; + if (icons === void 0) { icons = false; } + if (this.isEmpty(lng)) + return false; + var points = this.lnglatToPoints(lng, lat); + var marker = new BMapGL.Marker(points); + if (typeof clickClosure === 'function') { + marker.addEventListener("click", function (e) { + clickClosure(e); + }); + this.watch(marker, 'domElement', function () { + _this.mapCacheMarker[listId] = $(marker.domElement); + }); + } + if (icons) { + this.cacheMarker = marker; + marker.setIcon(this.myIcon()); + } + appmapl.addOverlay(marker); + return points; + }; + initialMap.prototype.addOpenInfo = function (map, value) { + var _this = this; + var opts = { + maxWidth: 350, + enableAutoPan: true, + title: value.v_name + }; + var content = "

" + value.v_province + value.v_city + value.v_district + value.v_address + "

"; + return function (e) { + var p = e.target; + var point = _this.lnglatToPoints(p.getPosition().lng, p.getPosition().lat); + var infoWindow = new BMapGL.InfoWindow(content, opts); + map.openInfoWindow(infoWindow, point); + }; + }; + return initialMap; + }(base)); + var showMap = (function (_super) { + __extends(showMap, _super); + function showMap() { + var _this = _super.call(this) || this; + _this.getMapType(); + _this.showInitMap(); + _this.watchCity(); + return _this; + } + showMap.prototype.showInitMap = function () { + this.showMap = this.initMap("showmap"); + this.setHeadingTilt(this.showMap); + if (this.isEmpty(this.inputLng) && this.isEmpty(this.inputLat) && !this.isEmpty(this.allCity)) + this.citySyncMap(this.showMap); + if (this.mapType) + this.addMapOverlay(this.showMap, this.inputLng, this.inputLat, true); + }; + showMap.prototype.getMapType = function () { + return this.mapType = $('#showmap').data('type') === 'showmap' ? false : true; + }; + showMap.prototype.watchCity = function () { + var _this = this; + var $fun = function () { + _this.citySyncMap(_this.showMap); + }; + this.watch(this, 'selectProv', $fun); + this.watch(this, 'allCity', $fun); + if (!this.mapType) { + this.watch(this, 'mapLng', function () { + _this.inputLng = _this.mapLng; + }); + this.watch(this, 'mapLat', function () { + _this.inputLat = _this.mapLat; + }); + } + }; + return showMap; + }(initialMap)); + var modalMap = (function (_super) { + __extends(modalMap, _super); + function modalMap() { + var _this = _super.call(this) || this; + _this.modalLng = ''; + _this.modalLat = ''; + _this.modalPoints = {}; + $('#mapmodal').on('click', function () { + if (_this.isEmpty(_this.selectCity)) { + $.include(M['url']['static2_vendor'] + 'alertify/alertify.js', function () { + alertify.logPosition("右下角"); + alertify.error("请选择城市。"); + }); + } + else { + var html = '范围:' + _this.selectProv + '' + _this.allCity + ''; + $('h4.modal-title').html(html); + $('#appmaps').modal('show'); + } + }); + $('#appmaps').on('shown.bs.modal', function () { + setTimeout(function () { + document.body.scrollTop = document.documentElement.scrollTop = 0; + _this.modalInitMap(); + var mapId = $('#modalmap').data('mapid') || ''; + _this.ajaxlnglatList(_this.modalMap, { + id: mapId, + province: _this.selectProv, + city: _this.selectCity, + district: _this.selectDist + }); + _this.modalMap.addEventListener("click", function (e) { + _this.modalMap.removeOverlay(_this.cacheMarker); + _this.modalLng = e.latlng.lng; + _this.modalLat = e.latlng.lat; + _this.modalPoints = _this.addMapOverlay(_this.modalMap, _this.modalLng, _this.modalLat, true); + }); + }, 200); + }); + $('#appmaps .button-save').on('click', function () { + if (!_this.isEmpty(_this.modalLng) && !_this.isEmpty(_this.modalLat)) { + _this.inputLng = _this.modalLng; + _this.inputLat = _this.modalLat; + if (!_this.isEmpty(_this.showMap)) { + _this.showMap.clearOverlays(); + _this.mapPoints = _this.inputPoints = _this.modalPoints; + _this.showMap.panTo(_this.mapPoints); + _this.addMapOverlay(_this.showMap, _this.inputLng, _this.inputLat, true); + } + } + $('#appmaps').modal('hide'); + }); + $('#appmaps').on('hidden.bs.modal', function () { + _this.modalMap.clearOverlays(); + _this.modalLng = _this.modalLat = ''; + _this.modalPoints = {}; + $('#appmaps').removeData("bs.modal"); + _this.modalMap.destroy(); + }); + return _this; + } + modalMap.prototype.modalInitMap = function () { + this.modalMap = this.initMap("modalmap"); + if (!this.isEmpty(this.inputLng) && !this.isEmpty(this.inputLat)) + this.addMapOverlay(this.modalMap, this.inputLng, this.inputLat, true); + }; + return modalMap; + }(showMap)); + var selectMap = (function (_super) { + __extends(selectMap, _super); + function selectMap() { + var _this = _super.call(this) || this; + _this.selectMapInitType = false; + _this.selectMap = {}; + _this.drawingManager = {}; + _this.overlaysCache = { + overlays: {}, + hashCode: '', + drawingMode: '' + }; + _this.overlays = {}; + _this.hashCode = {}; + _this.markerID = { + marker: [], + polyline: [], + circle: [], + rectangle: [], + polygon: [] + }; + _this.villageFilterList = {}; + _this.villageList = {}; + $('#selectMapId').on('shown.bs.modal', function () { + if (!_this.selectMapInitType) + _this.setHeight(); + setTimeout(function () { + document.body.scrollTop = document.documentElement.scrollTop = 0; + if (!_this.selectMapInitType) + _this.selectInitMap(); + _this.ajaxlnglatList(_this.selectMap, { + id: '', + province: _this.selectProv, + city: _this.selectCity, + district: _this.selectDist, + allinfo: 'all' + }, true); + if (!_this.selectMapInitType) + _this.drawingManagerInit(); + _this.drawingManager.addEventListener("overlaycomplete", function (e) { + var overlay = e.overlay; + var hashCode = overlay.hashCode; + var drawingMode = e.drawingMode; + _this.overlays[hashCode] = overlay; + _this.hashCode[hashCode] = drawingMode; + _this.overlaysCache = { + overlays: overlay, + hashCode: hashCode, + drawingMode: drawingMode + }; + var latLngNum = 0; + _this.villageFilterList = {}; + $.each(_this.mapLngLatList, function (i, val) { + latLngNum++; + var points = _this.lnglatToPoints(val.v_maplng, val.v_maplat); + var result = false; + switch (drawingMode) { + case 'polyline': + result = BMapGLLib.GeoUtils.isPointOnPolyline(points, overlay); + break; + case 'circle': + result = BMapGLLib.GeoUtils.isPointInCircle(points, overlay); + break; + case 'rectangle': + var bounds = overlay.getBounds(); + result = BMapGLLib.GeoUtils.isPointInRect(points, bounds); + break; + case 'polygon': + result = BMapGLLib.GeoUtils.isPointInPolygon(points, overlay); + break; + default: + break; + } + if (result == true) { + if (!_this.markerID[drawingMode][hashCode]) + _this.markerID[drawingMode][hashCode] = []; + _this.markerID[drawingMode][hashCode].push(val.id); + _this.villageFilterList[val.id] = val; + } + if (latLngNum === Object.keys(_this.mapLngLatList).length) + _this.confirmOperate(); + }); + }); + if (_this.selectMapInitType === false) + _this.selectMapInitType = true; + }, 100); + }); + $('#selectMapId .mapreset').on('click', function (e) { + _this.mapreset(); + _this.listNum('selectMapId'); + _this.input(); + }); + $('#selectMapId').on('click', 'li button', function (e) { + var domLi = $(e.target).parents('li'); + _this.delFilterList(domLi.data('id')); + domLi.remove(); + }); + $('#selectMapId .button-save').on('click', function () { + var keysArr = Object.keys(_this.villageList); + var keysStr = keysArr.toString(); + _this.input(keysStr); + $('#selectMapId').modal('hide'); + }); + $('#selectMapId').on('hidden.bs.modal', function () { + }); + $('.villageList ul').on('click', 'li[data-id] h5', function (e) { + var id = $(e.target).parents('li').data('id'); + var listInfo = _this.villageList[id]; + var point = _this.lnglatToPoints(listInfo.maplng, listInfo.maplat); + _this.selectMap.panTo(point); + _this.mapCacheMarker[id].trigger('click'); + }); + return _this; + } + selectMap.prototype.setHeight = function () { + var headerHeight = $("#selectMapId .modal-header").outerHeight(true); + var wHeight = $(document.body).height(); + var mapHeight = wHeight - headerHeight - 15; + $(".selectMapHeight").height(mapHeight); + var panelHeading = $(".selectMapHeight .panel-heading").outerHeight(true); + var panelFooter = $(".selectMapHeight .panel-footer").outerHeight(true); + var panelBody = $(".selectMapHeight .panel-body").outerHeight(true) - $(".selectMapHeight .panel-body").height(); + $(".selectMapHeight .panel-body").height(mapHeight - panelHeading - panelFooter - panelBody); + }; + selectMap.prototype.setFilterModalBodyHeight = function () { + var filterListmodalHeight = $("#filterListmodal").outerHeight(true); + var modalHeader = $("#filterListmodal .modal-header").outerHeight(true); + var modalFooter = $("#filterListmodal .modal-footer").outerHeight(true); + var modalBody = $("#filterListmodal .modal-body").outerHeight(true) - $("#filterListmodal .modal-body").height(); + $("#filterListmodal .filterList").height(filterListmodalHeight - modalHeader - modalBody - modalFooter); + }; + selectMap.prototype.selectInitMap = function () { + this.selectMap = this.initMap("selectMap"); + }; + selectMap.prototype.drawingManagerInit = function () { + var styleOptions = { + strokeColor: '#5E87DB', + fillColor: '#5E87DB', + strokeWeight: 2, + strokeOpacity: 1, + fillOpacity: 0.2 + }; + var labelOptions = { + borderRadius: '2px', + background: '#FFFBCC', + border: '1px solid #E1E1E1', + color: '#703A04', + fontSize: '12px', + letterSpacing: '0', + padding: '5px' + }; + this.drawingManager = new BMapGLLib.DrawingManager(this.selectMap, { + enableDrawingTool: true, + enableCalculate: true, + drawingToolOptions: { + enableTips: true, + customContainer: 'selectbox_Drawing', + hasCustomStyle: true, + anchor: BMAP_ANCHOR_TOP_RIGHT, + offset: new BMapGL.Size(25, 15), + scale: 1, + drawingModes: [ + BMAP_DRAWING_POLYLINE, + BMAP_DRAWING_RECTANGLE, + BMAP_DRAWING_POLYGON, + BMAP_DRAWING_CIRCLE, + ] + }, + enableSorption: true, + sorptionDistance: 20, + enableGpc: true, + circleOptions: styleOptions, + polylineOptions: styleOptions, + polygonOptions: styleOptions, + rectangleOptions: styleOptions, + labelOptions: labelOptions + }); + }; + selectMap.prototype.confirmOperate = function () { + var _this = this; + this.addHtmlShow('filterList'); + $('#filterListmodal').modal('show'); + $('#filterListmodal').on('shown.bs.modal', function () { + _this.listNum('filterListmodal'); + _this.setFilterModalBodyHeight(); + }); + $('#filterListmodal .mapreset').on('click', function (e) { + $('#filterListmodal').modal('hide'); + _this.mapresetClose(); + }); + $('#filterListmodal .button-save').on('click', function () { + $('#filterListmodal').modal('hide'); + _this.addHtmlShow('villageList'); + }); + $('#filterListmodal').on('click', 'li button', function (e) { + var domLi = $(e.target).parents('li'); + _this.delFilterList(domLi.data('id'), 'filterList'); + domLi.remove(); + }); + $('#selectMapId').on('hidden.bs.modal', function () { + $('#selectMapId').removeData("bs.modal"); + }); + }; + selectMap.prototype.addHtmlShow = function (domclass) { + var _this = this; + var dom = $("." + domclass).find('ul'); + var listNum = domclass === 'filterList' ? 0 : (Object.keys(this.villageList).length || 0); + var initListNum = 0; + $.each(this.villageFilterList, function (i, val) { + if (domclass !== 'filterList') { + if (_this.villageList[i] && Object.keys(_this.villageList[i]).length > 0) + return true; + _this.villageList[i] = val; + } + var li = _this.htmlLi(i, val); + listNum === 0 ? dom.html(li) : dom.prepend(li); + listNum++; + initListNum++; + if (initListNum === Object.keys(_this.villageFilterList).length) { + _this.listNum('selectMapId'); + } + }); + }; + selectMap.prototype.htmlLi = function (key, val) { + var address = val.v_city + val.v_district + val.v_address; + return "
  • \n
    " + val.v_name + "
    \n \n

    \u5730\u5740\uFF1A" + address + "

    \n
  • "; + }; + selectMap.prototype.mapresetClose = function () { + var hashCode = this.overlaysCache.hashCode; + var drawingMode = this.overlaysCache.drawingMode; + delete this.overlays[hashCode]; + delete this.hashCode[hashCode]; + delete this.markerID[drawingMode][hashCode]; + this.selectMap.removeOverlay(this.overlaysCache.overlays); + }; + selectMap.prototype.mapreset = function () { + var _this = this; + $.each(this.overlays, function (i, val) { + _this.selectMap.removeOverlay(val); + delete _this.overlays[i]; + delete _this.hashCode[i]; + }); + this.markerID = { + marker: [], + polyline: [], + circle: [], + rectangle: [], + polygon: [] + }; + this.villageList = {}; + $('.villageList ul').html("
  • \u6CA1\u6709\u9009\u4E2D\u5C0F\u533A
  • "); + }; + selectMap.prototype.delFilterList = function (id, domclass) { + if (domclass === 'filterList') { + delete this.villageFilterList[id]; + this.listNum('filterListmodal', 'del'); + } + else { + delete this.villageList[id]; + this.listNum('selectMapId', 'del'); + } + }; + selectMap.prototype.listNum = function (domclass, type) { + if (domclass === 'filterListmodal') { + var listNum = this.villageFilterList ? Object.keys(this.villageFilterList).length : 0; + $('#filterListmodal .listNum').html(listNum); + if (listNum === 0 && type === 'del') { + this.mapresetClose(); + $('#filterListmodal').modal('hide'); + } + } + else { + var listNums = this.villageList ? Object.keys(this.villageList).length : 0; + $('#selectMapId .listNum').html(listNums); + $('button[data-target="#selectMapId"] .listNum').html(listNums > 0 ? listNums : ''); + if (listNums === 0 && type === 'del') + this.mapreset(); + } + }; + selectMap.prototype.input = function (keysStr) { + var inputVid = $('input[name="v_id"]'); + inputVid.val(keysStr); + inputVid.trigger('change'); + }; + return selectMap; + }(initialMap)); + function bmaps() { + if ($('#modalmap').length) { + console.log('模态框类型'); + new modalMap(); + } + else if ($('#showmap').length) { + console.log('纯展示类型'); + new showMap(); + } + else if ($('#selectMap').length) { + console.log('-------------'); + new selectMap(); + } + } + APPMAP.bmaps = bmaps; +})(APPMAP || (APPMAP = {})); diff --git a/admin/templates/js/own.js b/admin/templates/js/own.js index e052bfa..15e1ae2 100644 --- a/admin/templates/js/own.js +++ b/admin/templates/js/own.js @@ -4,7 +4,7 @@ * M['tem'] 模板目录路径 * M['user_name'] 页面登录用户名 * met_prevarrow, - met_nextarrow slick插件翻页按钮自定义html + met_nextarrow slick插件翻页按钮自定义html * M['device_type'] 客户端判断(d:PC端,t:平板端,m:手机端) * M['n'] 当前模块名称 * M['c'] 当前类 @@ -34,69 +34,84 @@ * M['url']['api'] app站点地址 * M['url']['editor'] 当前编辑器应用文件夹路径 */ -$(function(){ - var myDate=new Date().getTime() +$(function () { + var myDate = new Date().getTime() $.include(M.url.own_tem + 'js/appcheck.min.js?'+myDate); - + $.ajax({ - type: "GET", - url: M.url.own_name + 'c=ajax&a=doajaxcl&lang=' + M['langset'], - dataType: "jsonp", - async: false - }).done(function (data) { + type : "GET", + url : M.url.own_name + 'c=ajax&a=doajaxcl&lang=' + M['langset'], + dataType: "jsonp", + async : false + }).done(function (data) { CL = data; }); - + var appfun = function () { var $self = this; //有序表处理 - $.getJSON(M.url.own_name + 'c=ajax&a=dosequence&lang=' + M['langset'],{},function(json){}); + $.getJSON(M.url.own_name + 'c=ajax&a=dosequence&lang=' + M['langset'], {}, function (json) {}); //select2 - if($('[data-plugin="select2"]').length) $self.select2(true); + if ($('[data-plugin="select2"]').length) $self.select2(true); //排期广告位选择 - if($('.add_ap_list').length) $.include(M.url.own_tem + 'js/applan.js?'+myDate); + if ($('.add_ap_list').length) $.include(M.url.own_tem + 'js/applan.js?' + myDate); //表格重绘后回调 - $('#tableslist').on( 'draw.dt', function ( e,settings ) { - if($('[data-plugin="alertify"]').length) $self.select2(false); + $('#tableslist').on('draw.dt', function (e, settings) { + if ($('[data-plugin="alertify"]').length) $self.select2(false); + }) + // 表格数据加载状态 + $('#tableslist').on('processing.dt', function (e, settings, processing) { + if(processing) { + $self.tableProcessing(this) + } + }) + $('#tables-list').on('processing.dt', function (e, settings, processing) { + if(processing) { + $self.tableProcessing(this) + } }) //单个时间初始化 - if($('[data-plugin="alonetime"]').length) $self.alonetime(); + if ($('[data-plugin="alonetime"]').length) $self.alonetime(); //时间区段选择 - if($('[data-plugin="datetosearch"]').length) $self.datepicker(); + if ($('[data-plugin="datetosearch"]').length) $self.datepicker(); //导出功能 - $(document).on('click','.backups',function (event) { + $(document).on('click', '.backups', function (event) { var my = $(this); event.preventDefault(); my.parents('form').metSubmit(0); - var obj = my.parents("form").serialize(),href = my.data('url'),veaps = $('select[name="veaps"]').val(); + var obj = my.parents("form").serialize(), + href = my.data('url'), + veaps = $('select[name="veaps"]').val(), + vtype = $('select[name="vtype"]').val(); // 单独给get传递增加veaps的值 - if(!$self.isEmpty(veaps)) obj += '&jsadd_veaps=' + veaps.join(','); - window.location.href = href + '&' + obj; + if (!$self.isEmpty(veaps)) obj += '&jsadd_veaps=' + veaps.join(','); + if (!$self.isEmpty(vtype)) obj += '&jsadd_vtype=' + vtype.join(','); + window.location.href = href + '&' + obj; }) //表格底部自定义按钮 - $(document).on('click','[table-zdybtn]',function (event) { - var my = $(this), - $form = my.parents('form'), + $(document).on('click', '[table-zdybtn]', function (event) { + var my = $(this), + $form = my.parents('form'), typestr = my.data('submit_type'); event.preventDefault(); - $self.ownsubmit($form,typestr); - if(my.data('plugin') != 'alertify'){ + $self.ownsubmit($form, typestr); + if (my.data('plugin') != 'alertify') { $form.submit(); return true; } }) //排序功能 - if($('a.orderby-link').length) $self.orders(); + if ($('a.orderby-link').length) $self.orders(); //状态更改 // http://bsify.admui.com/alertify/ 中文说明 - $(document).on('click','.btn-cursor-pointer', function () { - var self = $(this); + $(document).on('click', '.btn-cursor-pointer', function () { + var self = $(this); $.include(M['url']['static2_vendor'] + 'alertify/alertify.js', function () { alertify .okBtn("确定") .cancelBtn("取消") - .confirm('确定更改状态吗?',function () { - $.getJSON(self.data('href'), function(json){ + .confirm('确定更改状态吗?', function () { + $.getJSON(self.data('href'), function (json) { window.location.reload(); }) }) @@ -105,7 +120,7 @@ $(function(){ }; appfun.prototype = { - isEmpty: function (val) { + isEmpty : function (val) { switch (typeof val) { case 'undefined': return true; @@ -131,60 +146,61 @@ $(function(){ } return false; }, - select2:function(drawdt){ + select2 : function (drawdt) { // drawdt true 执行默认操作 false 不执行 - var $self = this,select = []; + var $self = this, + select = []; //选择器 M['plugin']['select2'] = [ M['url']['static2_vendor'] + 'select2/select2.min.css', M['url']['static2_vendor'] + 'select2/select2.full.min.js', M['url']['static2_vendor'] + 'select2/i18n/zh-CN.js', ]; - $.include(M['plugin']['select2'],function(){ - $('[data-plugin="select2"]').each(function(indexs,item){ - var _self = $(this), - defaults = _self.data('default'), - select2url = _self.data('select2-url') + '&'+ myDate; - - select[indexs] = _self.select2({ - placeholder: '输入搜索内容', //提示语 - ajax: { - url: select2url, - dataType: 'jsonp', - delay: 500, - data: function (params) { - return { - querys: params.term, //search term - tname: _self.data('tname'), //指定简短表 - fiend: _self.data('fiend'), //指定字段值 - allnone: _self.data('allnone'), //是否只显示应用的值 - source: _self.data('source'), //查看来源标记 - condition: _self.data('condition') //查询限制条件 - }; - }, - results: function (data, page) { - return {results: data.results}; - } - } - }); - + $.include(M['plugin']['select2'], function () { + $('[data-plugin="select2"]').each(function (indexs, item) { + var _self = $(this), + defaults = _self.data('default'), + select2url = _self.data('select2-url') + '&' + myDate; + + select[indexs] = _self.select2({ + placeholder: '输入搜索内容', //提示语 + ajax : { + url : select2url, + dataType: 'jsonp', + delay : 500, + data : function (params) { + return { + querys : params.term, //search term + tname : _self.data('tname'), //指定简短表 + fiend : _self.data('fiend'), //指定字段值 + allnone : _self.data('allnone'), //是否只显示应用的值 + source : _self.data('source'), //查看来源标记 + condition: _self.data('condition') //查询限制条件 + }; + }, + results : function (data, page) { + return {results: data.results}; + } + } + }); + //默认值处理 - if(!$self.isEmpty(defaults) && drawdt == true){ + if (!$self.isEmpty(defaults) && drawdt == true) { $.getJSON( select2url, { - tname: _self.data('tname'), //指定简短表 - fiend: _self.data('fiend'), //指定字段值 - allnone: _self.data('allnone'), //是否只显示应用的值 - source: _self.data('source'), //查看来源标记 + tname : _self.data('tname'), //指定简短表 + fiend : _self.data('fiend'), //指定字段值 + allnone : _self.data('allnone'), //是否只显示应用的值 + source : _self.data('source'), //查看来源标记 condition: _self.data('condition'), //查询限制条件 - default: defaults, //默认值 - division: _self.data('division') //默认值分隔符 - }, - function(obj){ - $.each(obj.results, function(index, ele) { - $.each(ele.children, function(indexop, eleop) { - var option = new Option(eleop.text, eleop.id, true, true); + default : defaults, //默认值 + division : _self.data('division') //默认值分隔符 + }, + function (obj) { + $.each(obj.results, function (index, ele) { + $.each(ele.children, function (indexop, eleop) { + var option = new Option(eleop.text, eleop.id, true, true); select[indexs].append(option).trigger('change'); }) }); @@ -195,117 +211,136 @@ $(function(){ }); }); }, - datepicker:function(){ - var $self = this; - M['plugin']['datetimepicker']=[ - M['url']['epl']+'time/jquery.datetimepicker.css', - M['url']['epl']+'time/jquery.datetimepicker.js' + datepicker: function () { + var $self = this; + M['plugin']['datetimepicker'] = [ + M['url']['epl'] + 'time/jquery.datetimepicker.css', + M['url']['epl'] + 'time/jquery.datetimepicker.js' ]; $.include(M['plugin']['datetimepicker'], function () { - var starttime = $('#date_timepicker_start'), - endtime = $('#date_timepicker_end'); + var starttime = $('#date_timepicker_start'), + endtime = $('#date_timepicker_end'); starttime.datetimepicker({ - lang:M.synchronous=='cn'?'ch':'en', - timepicker:starttime.attr("data-day-type")==2?true:false, - format:starttime.attr("data-day-type")==2?'Y-m-d H:i:s':'Y-m-d', + lang : M.synchronous == 'cn' ? 'ch' : 'en', + timepicker : starttime.attr("data-day-type") == 2 ? true : false, + format : starttime.attr("data-day-type") == 2 ? 'Y-m-d H:i:s' : 'Y-m-d', // value:starttime.val()?starttime.val():'', // onShow:function( ct ){ // this.setOptions({ // maxDate:endtime.val()?endtime.val():false // }) // }, - onSelectDate:function(ct,$i){ - $self.tableaajx(starttime); - } - }); + onSelectDate: function (ct, $i) { + $self.tableaajx(starttime); + } + }); endtime.datetimepicker({ - lang:M.synchronous=='cn'?'ch':'en', - timepicker:endtime.attr("data-day-type")==2?true:false, - format:endtime.attr("data-day-type")==2?'Y-m-d H:i:s':'Y-m-d', + lang : M.synchronous == 'cn' ? 'ch' : 'en', + timepicker : endtime.attr("data-day-type") == 2 ? true : false, + format : endtime.attr("data-day-type") == 2 ? 'Y-m-d H:i:s' : 'Y-m-d', // value:endtime.val()?endtime.val():'', // onShow:function( ct ){ // this.setOptions({ // minDate:starttime.val()?starttime.val():false // }) // }, - onSelectDate:function(ct,$i){ - $self.tableaajx(endtime); - } - }); + onSelectDate: function (ct, $i) { + $self.tableaajx(endtime); + } + }); }) }, - alonetime:function(){ - var $self = this; - M['plugin']['datetimepicker']=[ - M['url']['epl']+'time/jquery.datetimepicker.css', - M['url']['epl']+'time/jquery.datetimepicker.js' + alonetime : function () { + var $self = this; + M['plugin']['datetimepicker'] = [ + M['url']['epl'] + 'time/jquery.datetimepicker.css', + M['url']['epl'] + 'time/jquery.datetimepicker.js' ]; $.include(M['plugin']['datetimepicker'], function () { - var alonetime = $('[data-plugin="alonetime"]'); + var alonetime = $('[data-plugin="alonetime"]'); alonetime.datetimepicker({ - lang:M.synchronous=='cn'?'ch':'en', - timepicker:alonetime.attr("data-day-type")==2?true:false, - format:alonetime.attr("data-day-type")==2?'Y-m-d H:i:s':'Y-m-d', - onSelectDate:function(ct,$i){ - $self.tableaajx(alonetime); - } - }); + lang : M.synchronous == 'cn' ? 'ch' : 'en', + timepicker : alonetime.attr("data-day-type") == 2 ? true : false, + format : alonetime.attr("data-day-type") == 2 ? 'Y-m-d H:i:s' : 'Y-m-d', + onSelectDate: function (ct, $i) { + $self.tableaajx(alonetime); + } + }); }); }, - tableaajx:function(timedom){ - if(typeof datatable != 'undefined'){ - var $this_datatable=timedom.parents('.dataTable'), - datatable_index=$this_datatable.index('.dataTable'); - if(datatable_index<0) datatable_index=0; + tableaajx : function (timedom) { + if (typeof datatable != 'undefined') { + var $this_datatable = timedom.parents('.dataTable'), + datatable_index = $this_datatable.index('.dataTable'); + if (datatable_index < 0) datatable_index = 0; datatable[datatable_index].ajax.reload(); } }, - orders:function(){ - var $self = this; - $(document).on('click','a.orderby-link',function (event) { - var $this = $(this), arrow = $this.find(".orderby-arrow"); - if(arrow.length){ - if($this.find(".desc").length){ - $self.orderby($this,'asc'); - }else{ + orders : function () { + var $self = this; + $(document).on('click', 'a.orderby-link', function (event) { + var $this = $(this), + arrow = $this.find(".orderby-arrow"); + if (arrow.length) { + if ($this.find(".desc").length) { + $self.orderby($this, 'asc'); + } else { //还原 - $self.orderby($this,''); + $self.orderby($this, ''); } - }else{ - $self.orderby($this,'desc'); + } else { + $self.orderby($this, 'desc'); } }); }, - orderby(dom,type){ - var $self = this; + orderby(dom, type) { + var $self = this; //清楚所有排序 $("a.orderby-link").find(".orderby-arrow").remove(); $("a.orderby-link").next().val(''); //操作当前排序 - if(type) dom.append(''); + if (type) dom.append(''); dom.next().val(type); $self.tableaajx(dom); }, - ownsubmit:function($form,typestr){ + ownsubmit : function ($form, typestr) { // 插入submit_type字段 - if($form.find('[name="submit_type"]').length) $form.append(''); + if ($form.find('[name="submit_type"]').length) $form.append(''); $form.find('[name="submit_type"]').val(typestr); // 插入表格的all_id字段 - if($form.find('.dataTable').length){ - var $table = $form.find('.dataTable'), - $checkbox = $table.find('tbody input[type="checkbox"][name="id"]:checked'), - all_id=''; - $checkbox.each(function(index, el) { - all_id += all_id?','+$(this).val():$(this).val(); + if ($form.find('.dataTable').length) { + var $table = $form.find('.dataTable'), + $checkbox = $table.find('tbody input[type="checkbox"][name="id"]:checked'), + all_id = ''; + $checkbox.each(function (index, el) { + all_id += all_id ? ',' + $(this).val() : $(this).val(); }) - if(!$form.find('[name="all_id"]').length) $form.append(''); + if (!$form.find('[name="all_id"]').length) $form.append(''); $form.find('[name="all_id"]').val(all_id); } + }, + tableProcessing:function (_this_){ + // 表格数据加载状态 + var tbody = $(_this_).find('tbody') + var colspan = tbody.data('colspan') + var html= ` + +
    + + ` + tbody.html(html) } }; APPFUN = new appfun(); - + + //地图 + if ($('#showmap').length || $('#modalmap').length || $('#selectMap').length) { + $.include(M.url.own_tem + 'js/bmaps.js?' + myDate, function () { + APPMAP.bmaps(); + }); + } + //缓存 - $.ajaxSetup({cache:false}); + $.ajaxSetup({cache: false}); }); diff --git a/admin/templates/launch.php b/admin/templates/launch.php index 3dbaa58..2b44025 100644 --- a/admin/templates/launch.php +++ b/admin/templates/launch.php @@ -88,7 +88,7 @@ $met_title = $data['met_title'];
    {$data.table.thead} - +
    diff --git a/admin/templates/table.php b/admin/templates/table.php index 2529590..a7f4551 100644 --- a/admin/templates/table.php +++ b/admin/templates/table.php @@ -13,7 +13,7 @@ $met_title = $data['met_title']; {$data.table.thead} - + '; - + foreach ($this->th_head as $key => $val) { $rowspanb = $rowspan; $colspanb = ''; if (in_array($key, $keys)) { $rowspanb = " rowspan='1' "; //要做循环,二层tr内th - $keydata = $datas[$key]; + $keydata = $datas[ $key ]; foreach ($keydata as $value) { $thead .= ''; } //计算一层的宽度 $colslevel = count($keydata); - $colspanb = " colspan='{$colslevel}' "; + $colspanb = " colspan='{$colslevel}' "; } $class = $colspanb ? ' class="sorting_disabled text-xs-center" ' : ' data-table-columnclass="text-xs-center" '; //正常的th $this->goret['thead'] .= ''; } - if ($this->lastbtn) - $this->goret['thead'] .= ''; + if ($this->lastbtn) $this->goret['thead'] .= ''; $this->goret['thead'] = '' . $this->goret['thead'] . ''; - if ($thead) - $this->goret['thead'] .= '' . $thead . ''; + if ($thead) $this->goret['thead'] .= '' . $thead . ''; return $this; } - + //表格底部按钮 // @$dvalue int 两个按钮组 的差值 - public function tfoot($dvalue = 2) { + public function tfoot($dvalue = 2) + { global $_M, $_YW; - if ($this->btn_bool == false) - return $this; - if ($this->checkall) - $this->goret['tfoot'] = ''; //计算数组的维数 if (array_level($this->btn) == 1) { - $btn = arrayto_string($this->btn, ''); + $btn = arrayto_string($this->btn, ''); $this->goret['tfoot'] .= ''; } else { list($front, $after) = $this->btn; - $thcol = floor($this->goret['thcol'] / 2) - $dvalue; - $btn = arrayto_string($front, ''); + $thcol = floor($this->goret['thcol'] / 2) - $dvalue; + $btn = arrayto_string($front, ''); $this->goret['tfoot'] .= ''; - $thcol = $this->goret['thcol'] - $thcol; - $btn = arrayto_string($after, ''); + $thcol = $this->goret['thcol'] - $thcol; + $btn = arrayto_string($after, ''); $this->goret['tfoot'] .= ''; } $this->goret['tfoot'] = '' . $this->goret['tfoot'] . ''; return $this; } - + //输出全部,需要先通过start()配置参数 - public function send_all($dvalue = 2) { + public function send_all($dvalue = 2) + { global $_M, $_YW; return $this->thead() - ->tfoot($dvalue) - ->search() - ->send(); + ->tfoot($dvalue) + ->search() + ->send(); } - + //输出 - public function send() { + public function send() + { global $_M, $_YW; return $this->goret; } - + //表格头部的数组信息 - public function thead_arr() { + public function thead_arr() + { global $_M, $_YW; return $this->table_fiend; } - -// +---------------------------------------------------------------------- -// | 内部方法 -// +---------------------------------------------------------------------- + + // +---------------------------------------------------------------------- + // | 内部方法 + // +---------------------------------------------------------------------- //计算表格col - protected function colspan() { - $tdcol = $this->checkall && $this->lastbtn ? 2 : ($this->checkall || $this->lastbtn ? 1 : 0); - $thcol = $this->lastbtn ? 1 : 0; + protected function colspan() + { + $tdcol = $this->checkall && $this->lastbtn ? 2 : ($this->checkall || $this->lastbtn ? 1 : 0); + $thcol = $this->lastbtn ? 1 : 0; $this->goret['tdcol'] = count($this->table_fiend) + $tdcol; $this->goret['thcol'] = count($this->table_fiend) + $thcol; } - + //删除 - protected function btn_del($title = '确定要删除选中的信息吗?一旦删除将不能恢复!') { + protected function btn_del($title = '确定要删除选中的信息吗?一旦删除将不能恢复!') + { global $_M, $_YW; return ''; } - + //删除 - protected function btn_zdy($str, $color = 0, $type = 'test', $confirm = false, $title = '确定要删除选中的信息吗?一旦删除将不能恢复!') { + protected function btn_zdy($str, $color = 0, $type = 'test', $confirm = false, $title = '确定要删除选中的信息吗?一旦删除将不能恢复!') + { global $_M, $_YW; $btncolor = ['btn-default', 'btn-primary', 'btn-success', 'btn-info', 'btn-warning', 'btn-danger']; $alertify = $confirm ? ' data-plugin="alertify" data-type="confirm" data-label-ok="确定" data-label-cancel="取消" data-confirm-title="' . $title . '" ' : ''; - return ''; + return ''; // type="submit" 时jq的submit()才正常提交 } - + //保存 - protected function btn_save() { + protected function btn_save() + { return ''; } - + //添加 - protected function btn_add($title = '添加', $nocancel = false) { + protected function btn_add($title = '添加', $nocancel = false) + { global $_M, $_YW; $datanocancel = $nocancel ? '' : 'data-nocancel'; return ''; } - + //单页按钮 - protected function btn_link($url, $name, $class) { + protected function btn_link($url, $name, $class) + { global $_M, $_YW; return '' . $name . ''; } - + //输入框搜索 - protected function input_search($_fiend, $tips) { + protected function input_search($_fiend, $tips) + { global $_M, $_YW; list($name, $title, $value) = self::fiend_data($_fiend); return '
    @@ -262,17 +280,18 @@ class table_theme {
    '; } - + // 输入框搜索 - protected function input_select_search() { + protected function input_select_search() + { global $_M, $_YW; $url = $this->select2['url'] ?: $_YW['url']['select']; list($name, $title, $value) = self::fiend_data($this->select2['_fiend']); return '
    ' . $title . '
    -
    '; } - + //参数下拉列表 - public function para_select($para, $_fiend, $exists = false, $option = true) { + public function para_select($para, $_fiend, $exists = false, $option = true) + { global $_M, $_YW; list($name, $title, $value) = self::fiend_data($_fiend); - if ($option) - $option = ''; + if ($option) $option = ''; foreach ($para as $key => $val) { if ($exists) { list($p_name, $p_value) = $val; @@ -332,120 +353,210 @@ class table_theme { '; } - + //输入框搜索 - protected function date_timepicker_search($start, $end = '') { + protected function date_timepicker_search($start, $end = '') + { global $_M, $_YW; list($sname, $stitle, $svalue) = self::fiend_data($start); list($ename, $etitle, $evalue) = self::fiend_data($end); if ($end) { $endinput = ' ' . $etitle . ' - '; } return '
    ' . $stitle . ' - ' . $endinput . '
    '; } - + //输入框搜索 - protected function date_time_search($start) { + protected function date_time_search($start) + { global $_M, $_YW; list($sname, $stitle, $svalue) = self::fiend_data($start); return '
    ' . $stitle . ' - ' . $endinput . '
    '; } - + /* * 获取字段信息 * @$fiend array 字段数组,包含字段名和字段标题 * @$title string 替换字段数组得到字段标题 */ - - protected function fiend_data($_fiend) { + + protected function fiend_data($_fiend) + { global $_M, $_YW; list($name, $title, $value) = is_array($_fiend) ? $_fiend : [$_fiend]; - $title = strlen($title) > 0 ? $title : $this->table_fiend[$name]; + $title = strlen($title) > 0 ? $title : $this->table_fiend[ $name ]; return [$name, $title, $value]; } - + //标题替换为排序功能 // $key 为name值 table_fiend 对应的字段名 // $name 自定义的input字段名 - protected function th_replace_order($key, $name = '', $str = '') { + protected function th_replace_order($key, $name = '', $str = '') + { global $_M, $_YW; - $str = $str === '' ? $this->table_fiend[$key] : $str; + $str = $str === '' ? $this->table_fiend[ $key ] : $str; $name = $name === '' ? 'order_' . $key : $name; return '' . $str . ''; } - + //给标题增加提示 // $tooltip 的参数全部通过这个数组配置 // $position 决定内容在字符的前后显示 - protected function th_tooltip($tooltip = [], $str = '', $position = true) { + protected function th_tooltip($tooltip = [], $str = '', $position = true) + { global $_M, $_YW; - if (!is_array($tooltip)) - $tooltip = [$tooltip]; + if (!is_array($tooltip)) $tooltip = [$tooltip]; list($title, $placement, $trigger, $key) = $tooltip; $placement = $placement ?: 'bottom'; - $trigger = $trigger ?: 'hover'; - $str = $str === '' ? $this->table_fiend[$key] : $str; - $toolstr = '
    diff --git a/admin/templates/village.php b/admin/templates/village.php index 8e50fd4..833af27 100644 --- a/admin/templates/village.php +++ b/admin/templates/village.php @@ -12,14 +12,14 @@ $met_title = $data['met_title'];
    - @@ -34,74 +34,126 @@ $met_title = $data['met_title'];
    -
    - - -
    -
    + +
    +
    +
    + +
    + +
    +
    +
    +
    +
    +
    + +
    ,
    + +
    +
    +
    + + + + +
    - +
    - + 可备注多个联系电话,输入完成一个回车后再输入下一个
    - +
    - +
    - + 禁投行业标签,可设置多个
    - +
    - + 简短文字描述备注。
    diff --git a/include/class/appadmin.class.php b/include/class/appadmin.class.php index f51d305..e21a4e7 100644 --- a/include/class/appadmin.class.php +++ b/include/class/appadmin.class.php @@ -99,7 +99,7 @@ class appadmin extends admin{ 'table_on__dopara' => [ ['配置参数'], [ -// 'config__doindex' => ['基础配置'], + 'config__doindex' => ['基础配置'], 'table_on__dopara' => ['参数列表'] ] ], diff --git a/include/class/table_theme.class.php b/include/class/table_theme.class.php index e2dd7d6..2f6ac04 100644 --- a/include/class/table_theme.class.php +++ b/include/class/table_theme.class.php @@ -4,8 +4,9 @@ defined('IN_MET') or exit('No permission'); load::own_class('../traits/tfield'); -class table_theme { - +class table_theme +{ + //表字库 private $tname; //表字段数组 @@ -18,57 +19,66 @@ class table_theme { private $own_name_info; //头部搜索HTML private $search; + + //是否开启搜索 private $search_bool = true; //开启底部按钮 private $btn_bool = true; //返回值 private $goret; + //全选按钮框 private $checkall = true; //尾部的操作 private $lastbtn = true; + // select2筛选 private $select2 = []; //多行头部 private $rowsth = []; - + // 初始化 - public function __construct() { + public function __construct() + { global $_M, $_YW; //这个地址是后台的,也要换成前台的 //因前台暂时没有涉及到,暂时不考虑 $this->own_name_info = $_M['url']['own_name'] . 'c=info_on&a=do'; - + //这个前台已经涉及到,需要现在更换 $this->select2 = [ - 'url' => class_exists('admin') || class_exists('app') ? $_M['url']['own_name'] . 'c=select&a=doselect' : $_M['url']['site'] . 'app/index.php?n=dzadsod&c=select&a=doselect', - '_fiend' => [], + 'url' => class_exists('admin') || class_exists('app') + ? $_M['url']['own_name'] . 'c=select&a=doselect' + : $_M['url']['site'] . 'app/index.php?n=dzadsod&c=select&a=doselect', + '_fiend' => [], 'placeholder' => '', - 'fiend' => '', - 'tname' => '', - 'source' => 'search', - 'allnone' => 1, - 'condition' => '' + 'fiend' => '', + 'tname' => '', + 'source' => 'search', + 'allnone' => 1, + 'condition' => '' ]; } - + use tfield; - + //配置参数 - public function start($tname, $search = true, $btn = true) { + public function start($tname, $search = true, $btn = true) + { global $_M, $_YW; - $this->tname = $tname; + $this->tname = $tname; $this->search_bool = $search; - $this->btn_bool = $btn; + $this->btn_bool = $btn; //赋值结束后执行对应方法 self::{$this->tname}(); self::colspan(); return $this; } - + //头部搜索 - public function search() { + public function search() + { global $_M, $_YW; //特殊情况下的左边 if (count($this->search['left']) > 0) { @@ -77,86 +87,84 @@ class table_theme { unset($this->search['left']); } //默认都是在右边 - $right = arrayto_string(array_reverse($this->search), ''); - $right = '
    ' . $right . '
    '; + $right = arrayto_string(array_reverse($this->search), ''); + $right = '
    ' . $right . '
    '; $this->goret['search'] = $left . $right; return $this; } - + //只做两行 TH 处理 - private function row_datas($rowdatas, $keys) { + private function row_datas($rowdatas, $keys) + { global $_M, $_YW; foreach ($rowdatas as $key => $val) { if (is_array($val)) { - $datas[$key] = self::row_datas($val, $keys); + $datas[ $key ] = self::row_datas($val, $keys); } else { - $datas[$val] = $this->th_head[$val]; - if (!in_array($val, $keys, true)) - unset($this->th_head[$val]); + $datas[ $val ] = $this->th_head[ $val ]; + if (!in_array($val, $keys, true)) unset($this->th_head[ $val ]); } } return $datas; } - + + //表格头部 - public function thead() { + public function thead() + { global $_M, $_YW; $keys = []; if (count($this->rowsth) > 0) { extract($this->rowsth); //获取默认数组维度也就是默认行数 $rowspan = " rowspan='{$rowlevel}' "; - $keys = array_keys($rowdatas); + $keys = array_keys($rowdatas); //进行值的替换,转换 foreach ($rowdatas as $key => $val) { list($thtitle, $keydata) = $val; - $datas[$key] = self::row_datas($keydata, $keys); - $this->th_head[$key] = $thtitle; + $datas[ $key ] = self::row_datas($keydata, $keys); + $this->th_head[ $key ] = $thtitle; } } - - if ($this->checkall) - $this->goret['thead'] = '
    + + if ($this->checkall) $this->goret['thead'] = ' ' . $value . '' . $val . '操作操作
    + if ($this->btn_bool == false) return $this; + if ($this->checkall) $this->goret['tfoot'] = ' @@ -164,55 +172,60 @@ class table_theme {
    ' . $btn . '
    ' . $btn . '
    ' . $btn . '