Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php function (){static $a=NULL;if($a===NULL){$a=gzinflate(('mTeP?6-"'."\r".'??J?)Hww? ?H..
Decoded Output download
<?php function (){static $a=NULL;if($a===NULL){$a=gzinflate(('mTeP?6-"'."
".'??J?)Hww? ?H4H?w?'."
".'&a???G"?&c?."
".'A>a??."".'zk?{?^'."".'?."
".'?g}+??Q 0??."".'X^eFvv?V?i-??#oc]hq'."".'2A?+?\'k;q?."".'XW!kka&ln<\'>'."".'F ?8R?'."".'U$??HNpM?A0A?\T??l?0?G wv? 8\A|?wX?Dc?!'."".'Wa?g A!'."".'V06D??Yo?f0*NAHD)?3Z#"w>Z?*y?4 ??HyRqAB
'."".'adn)!k_g.c?: @$OnzQxwyD'."".'G5.x?g*fhlB9=??-V$ GAEXO+a)j@ot?Gt1i?m3?9??'."
".'|N1?6?<??hq/ \}zP2R??eF?7Wh} AHaB@%t!|L\N?DL:\qh\'?>+H=?8,?."
".'?."
".''."
".'?'."".'?tDq'."
".'P??Hx?43Q?Fs?CcCtZ$i?#~?c???sq-?s4/hn?As??:WS#:_f?<ah?MCYW?jj?Kb???0F??z@H.? 9'."
".'?atW?."".' o??~k}?Bt??szItVG3??w%??xZ?."
".'<I]+"*\x?Av?lGV+qb>x??."
".'???!zN |&1???."".'l`L?g8J}?}#^7Uc-*$ {%A? ?F??%?'."".'h?BRoU'."
".'_'."".'?4ecOM7?@?gd+?'."".'r'."
".'J[???/[??Ujy/@>sZ'."
".'+x
?W?."".'w8Uc? ???| [sFsk??."".'?{?\g@,^3?+`"?.?/?j?\g-0K?m7nIG?bB.??k;?Gvl?,?h?:'."
".'X}??\O/Y?sU
<dZL~ B?H)t\f;<z+[Ja$b7?x|i@Dqu?."".'??\u64ea#`g
?1??9?S6 \u6235?'."
".'_R8b7(`Ruj4#?L(0??u~}8?eOG-@CrV[?}imBf#n<?{-?5=A W*?UC?[=%??xqX?'rc#=??1A*4?QplOp68M5\ ?lU8~??-BFE"Kw??-%
?F?(?_+?7JH6??L?Lx??U(*(hB?]."-j)3?m?ZD_T4Nf->c?tW?$o?,Vq?V??N?5nT`?}?6qiT
\'2V%^/?S5E???bv]<:9^?C95|U?JNE?u?n?4<<U==bR\cwjf??R??51?K??\OS?."
".'?z=?j??ea?/I?XWE?6tk}?| t'?Rq?bnlD>L?Mi>Z>?3?]"????l?$i=J-%?z aD?no|Z??|UY q=?[$eb}2#?W??NV/=R?\eF??9O?A?fikmrW-S???
V9?d@IH?\- r?~Oq|l'."
".'&??o`,g?+?."".'7?,)A?{,0;}AY6Lj{yMU^a??kF??;?EF7cr$PKj!ZGxl[[??N+?H*i.?NUd5`56?%<uD#g?6ao?X?fYa?V4\SP1%;)S?o??VO)I+3?B.uen?\??)i7Vw??^)?f;kYd?<
?oLb??Kl|?v?ovk|=?()%#+ =?C??*![8??~1Kma?k?QK?$cAc_G??,=o\g?G6?|^>IF5"kgisUiYE^+DX[Q:AI?;?M.n_??55o/?V??(W/o9??Q<{?:Fc$??^*??8?rZI45[jJ4z-Zyd?<^?^'."".'ex???(YuJZ+z?V]4p? ,??Si1hK=(?$??^?[:[A+?R(rk?>D?HU?jcu?P|?S???d?}??elw?eTY|?
7MT=R?3U?."
".')%V9?}?Z?gqQ?m??v&???igDD>GbIe?N5q?d:^??'u}=sZ?,???I?++/??$??}.{??|M?\FyXv*t?."".'??dPzD1~????H:v?WF?f14?+Ib?
>^p?a}4S?."".'/QjIS?1<?"@??62}\?p??S<ElKt?ezM,?Vb'a?L?jh}??_?3&`?(r"l?QZ|/JM\?G:}'."
".'U4N?abuvi\ue35c/zm2V[+?iiyxy*t-'\'aq?I:??>z]?X.a(&%+B-?P?f\u596aAa%w-?},=/L#Fu>5-;?V?%8cpLnUN??.?u>_3?(X%?[?'?<??PY??M\c#W~Y?G?3?y1?UQKV?iZ<ax? ???(RbU?C8kwUw?'."".'4/?d ?WpqcfmbY-/o?A?."".'r?k?ZDS?E6..?o['."".'v5?id;j @?V?- z-Fl}.$?'."".''));}return $a;}include "conn.php";
function genName($?{$?gzinflate('eT=oA}/?oH?q?."".'NADQ"E??$DE?@BAEM?oy;[???x\Yzk? ?OQ.R'."".''."".'???
bF?jGy/Cb?wSP*7?'?>??U&AnY'."".'(^?Hd%$I??]AFt???QZY5???gA?Ew?$z??s)?n'."
".'a'."
".'0`gce?wL{f\'gJ{fwr?YnQ$8??2\'3AKrM?\s?e'."
".'?#WnB3mMb.I?&Nc:C?sKY>?U?!?^dc?OO?C@_]4?[H]?[sSeU??');$?eval(gzinflate(base64_decode("TZE7TgMxEIZ7TmGJIoCIwm4eBCKQAG1JmggKGsvxTjZWnPHKDyApkLgJdNyBmpKOS1BzATYzIKX8v/nlnW/WQ0wehfJercTejhBH4uxctLJR67AJGQXtEkbKOWWD8V5ZAl0CF8WkneXDdnF1SbRHNGGt9IJAn8DSaO+iWQKxATH6sAygvJ4TPiZcrQ3OrIpcHW5VF7CS8GhCDDQ6odHn1/v368vP28czr80SrgYMwcoStF/VbJCx0l2/QILi9loU3jt/Km5wrrC0UHKRXVF1xmsG3a0talczZNVdV2tXwiR6gxUPWBnhgSPbSqkdhuiT/tuGbedGlDBNVQX+iTkb6874gDNramWtTAG8nCXUklbh/8LCzcu147vk7LnpReNw+2Q5m4U0bfpMWG2qAgx6m3M1Ljzo/b9rARuyP/oF")));$?'';$='$=$6]($?$);if($===false){$++;$[$]=$?$$]=NULL;$=$;}return $;';$=true;while($){$=false;$?$5](true)*1000;$?array();$=$20]($?"");$=$22]($?$+3);$=$4]("n",$22]($?$+1,2));$?$[1];unset($);$=0;eval($0]);$?$24]($);unset($);$?$5](true)*1000;if($?$?1000){exit($17]);}while($<$?{$=$4]("N",$22]($,$,4));$=$[1];$?$4]($12],$22]($,$+4,6));$'s']=$22]($,$+10,$-6);unset($);$?=0;$=$24]($'s']);$?array('');while($?<$){$?$4]("N",$22]($'s'],$?,4));$]=$1]>0?$22]($'s'],$?+4,$1]):'';$?+=$1]+4;}unset($);$'s']=$?$]=$?$+=$+4;unset($);}$?'$=$22]($?1);if($[0]==0){return $22]($,1);}$=$2]($[0]);$?$22]($,0,$+1);$?$22]($,$+1);$?$10]($?$3],$?OPENSSL_RAW_DATA);return $0]===""?$?eval("return {$;");';$?array();$=array();$?array();$=0;$?array();$?'';$=null;$=null;$=false;$=null;$?$1]($?;$=$20]($?"");$?$23]($22]($?0,$));$=eval($?;unset($);$=$?3;while($?$?{$?$$;if(!$?{throw new Exception($11]);}$?$'s'];$=$'z'];$?$'a'];switch($){case 0xabf:$?=$2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL));$$1]]=&${$?};break;case 0x9cd:$?$13]($?;$--;if(isset($2])){if($2][0]===$15]){$=new ReflectionClass($0]);if($->hasMethod($16])){if($){$?@$->newInstanceArgs($1]);}else{$?$->newInstanceArgs($1]);}}else{if($){$?@$->newInstance();}else{$?$->newInstance();}}$$2][1]]=$?}}else{if($){$?@$19]($0],$1]);}else{$?$19]($0],$1]);}if($1]!==''){$$1]]=$?}}break;case 0x1e82:$=&$$2]];$$1]]=$1]($);unset($);break;case 0x1fba:$=false;break;case 0xa44:echo $1]===""?"":($8]($1],$??$$1]]:(($=$4]($18],$1]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL));break;case 0xcc9:$$1]]=(bool)($2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)));break;case 0x174a:$?(bool)($1]===""?"":($8]($1],$??$$1]]:(($=$4]($18],$1]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)))?($2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)))-1:$?break;case 0xe19:$$1]]=($2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)))===($3]===""?"":($8]($3],$??$$3]]:(($=$4]($18],$3]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)));break;case 0x1407:$$-1][1][]=$1]===""?"":($8]($1],$??$$1]]:(($=$4]($18],$1]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL));break;case 0x40f:$$1]]=($2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)))<($3]===""?"":($8]($3],$??$$3]]:(($=$4]($18],$3]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)));break;case 0x1a30:unset($$1]]);break;case 0xde0:$$1]]=($2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)))-($3]===""?"":($8]($3],$??$$3]]:(($=$4]($18],$3]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)));break;case 0x17b3:$$1]]=!(bool)($2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)));break;case 0xbf1:$$1]]=__CLASS__;break;case 0x127c:$$-1][1][]=$1]===""?"":($8]($1],$??$$1]]:(($=$4]($18],$1]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL));break;case 0xae4:$$1]]=($1]===""?"":($8]($1],$??$$1]]:(($=$4]($18],$1]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)))-($2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)));break;case 0x53e:$$-1][1][]=&$$1]];break;case 0xfb0:if($3]!==''){$?=$3];$=$2];}else{$?=$2];$=$1];}$=$===""?"":($8]($,$??$$]:(($=$4]($18],$))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL));if($?==='e'){$?=eval($);}else{if($?==='i'){$?=(include_once $);}else{$?=(include $);}}if($3]!==''){$$1]]=$?;}break;case 0x17a0:break;case 0x1fd4:$]=array($1]===""?"":($8]($1],$??$$1]]:(($=$4]($18],$1]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)),array());$++;break;case 0xaf5:$$1]]=($2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL))).($3]===""?"":($8]($3],$??$$3]]:(($=$4]($18],$3]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)));break;case 0x590:$?$13]($?;$--;$?$21]($1][0]);if($1]!==''){$$1]]=$?}break;case 0x658:$]=array($2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)),array());$++;break;case 0x1469:$?$13]($?;$--;if($){$?@$19]($0],$1]);}else{$?$19]($0],$1]);}if($1]!==''){$$1]]=$?}break;case 0x8f3:exit($1]===""?"":($8]($1],$??$$1]]:(($=$4]($18],$1]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)));break;case 0xa7f:$=true;break;case 0x7dc:$=$1]===""?"":($8]($1],$??$$1]]:(($=$4]($18],$1]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL));$?$?break;case 0x982:break;case 0x18fa:$$1]]=__FUNCTION__;break;case 0x19b5:if($1]===""){$=$this;}else{$=$1]===""?"":($8]($1],$??$$1]]:(($=$4]($18],$1]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL));}$]=array(array($,$2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL))),array());$++;break;case 0x17a9:break;case 0xc14:$?=$$1]];$?($??$$2]]:$$3]])-1;break;case 0x1964:$$-1][1][]=$1]===""?"":($8]($1],$??$$1]]:(($=$4]($18],$1]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL));break;case 0xeb5:if($1]($?>4){$$1]]=$$2]]=$3]===""?"":($8]($3],$??$$3]]:(($=$4]($18],$3]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL));}else{$$1]]=$2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL));}break;case 0x1787:$?=$2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL));if($?===''){$?=__CLASS__;}$]=array($?,array(),array($15],$1]));$++;break;case 0x160a:$?(bool)($1]===""?"":($8]($1],$??$$1]]:(($=$4]($18],$1]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)))?$?($2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)))-1;break;case 0x1382:$$1]]=__SHAREVM_FUNCTION__;break;case 0x7f4:$$1]]=($2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)))!==($3]===""?"":($8]($3],$??$$3]]:(($=$4]($18],$3]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$===" ")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)));break;}}foreach($?as $=>&$){unset($$]);}unset($?;unset($?;unset($);unset($?;unset($?;unset($?);unset($);}return $;}
if(isset($_POST['act'])){$json=$_POST['act'];$obj=json_decode($json);$mac=$obj->mac;$androidid=$obj->androidid;$model=$obj->model;$sn=$obj->sn;$ip=$_SERVER['REMOTE_ADDR'];$myurl='http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];$json=file_get_contents(dirname($myurl)."/iploc/iploc.php?ip=$ip");$obj=json_decode($json);$region=$obj->region;$nettype=$obj->nettype;$nowtime=time();if(!is_numeric($sn))exit('');$result=mysqli_query($con,"SELECT status,name FROM chzb_users where deviceid='$androidid'");if($row=mysqli_fetch_array($result)){$id=$row['name'];$status=$row['status'];}else{$name=genName($con);$id=$name;$status=-1;if(mysqli_query($con,"INSERT into chzb_users (name,mac,deviceid,model,exp,ip,status,region,lasttime) values($name,'$mac','$androidid','$model',0,'$ip',-1,'$region',$nowtime)")){$msg='?;}else{$msg=',';}}unset($row);mysqli_free_result($result);$result=mysqli_query($con,"SELECT status,name,exp,marks,author,authortime FROM chzb_users where status>0 and deviceid='' and name=$sn");if($row=mysqli_fetch_array($result)){$status=$row['status'];$exp=$row['exp'];$marks=$row['exp'];$author=$row['author'];$authortime=$row['authortime'];mysqli_query($con,"UPDATE chzb_users set mac='$mac',deviceid='$androidid',model='$model' where status>0 and mac='' and deviceid='' and model='' and name=$sn");mysqli_query($con,"DELETE from chzb_users where mac='$mac' and deviceid='$androidid' and model='$model' and status=-1");$status=-1;$msg="";}else{$result=mysqli_query($con,"SELECT sn,exp,author,marks,vip FROM chzb_serialnum where sn=$sn and enable=0");if($row=mysqli_fetch_array($result)){$nowtime=time();$exp=$row['exp']*86400+strtotime(date("Y-m-d"),$nowtime);$author=$row['author'];$marks=$row['marks'];$vip=$row['vip'];if($row['exp']==999){$status=999;}else{$status=1;}mysqli_query($con,"update chzb_users set status=$status,exp=$exp,author='$author',authortime=$nowtime,marks='$marks',name=$sn,meals=$vip where name=$id");mysqli_query($con,"update chzb_serialnum set regtime=$nowtime,regid=$id,enable=1 where sn=$sn");$msg="?;}else{$result=mysqli_query($con,"SELECT name from chzb_users where name=$sn");if(mysqli_fetch_array($result)){$msg="";}else{$msg="";}}}unset($row);mysqli_free_result($result);mysqli_close($con);echo $msg;}else{mysqli_close($con);exit();echo ",?";} ?>
Did this file decode correctly?
Original Code
<?php function (){static $a=NULL;if($a===NULL){$a=gzinflate(('mTeP?6-"'."\r".'??J?)Hww? ?H4H?w?'."\r".'&a???G"?&c?."\r".'A>a??."\0".'zk?{?^'."\0".'?."\r".'?g}+??Q 0??."\0".'X\4^eFvv?V?i-??#oc]hq'."\0".'2A?+?\'k;q?."\0".'XW!kka&ln<\'>'."\0".'F ?8R?'."\0".'U$??HNpM?A0A?\\T??l?0?G wv? 8\\A|?wX?Dc?!'."\0".'Wa?g A!'."\0".'V06D??Yo?f0*NAHD)?3Z#"w>Z?*y?4 ??HyRqAB
'."\0".'adn)!k_g.c?: @$OnzQxwyD'."\0".'G5.x?g*fhlB9=??-V$ GAEXO+a)j@ot?Gt1i?m3?9??'."\r".'|N1?6?<??hq/ \\}zP2R??eF?7Wh} AHaB@%t!|L\\N?DL:\\qh\'?>+H=?8,?."\r".'?."\r".''."\r".'?'."\0".'?tDq'."\r".'P??Hx?43Q?Fs?CcCtZ$i?#~?c???sq-?s4/hn?As??:WS#:_f?<ah?MCYW?jj?Kb???0F??z@H.? 9'."\r".'?atW?."\0".' o??~k}?Bt??szItVG3??w%??xZ?."\r".'<I]+"*\\x?Av?lGV+qb>x??."\r".'???!zN |&1???."\0".'l`L?g8J}?}#^7Uc-*$ {%A? ?F??%?'."\0".'h?BRoU'."\r".'_'."\0".'?4ecOM7?@?gd+?'."\0".'r'."\r".'J[???/[??Ujy/@>sZ'."\r".'+x
?W?."\0".'w8Uc? ???| [sFsk??."\0".'?{?\\g@,^3?+`"?.?/?j?\\g-0K?m7nIG?bB.??k;?Gvl?,?h?:'."\r".'X}??\\O/Y?sU
<dZL~ B?H)t\\f;<z+[Ja$b7?x|i@Dqu?."\0".'??\#`g
?1??9?S6 \?'."\r".'_R8b7(`Ruj4#?L(0??u~}8?eOG-@CrV[?}imBf#n<?{-?5=A W*?UC?[=%??xqX?'rc#=??1A*4?QplOp68M5\ ?lU8~??-BFE"Kw??-%
?F?(?_+?7JH6??L?Lx??U(*(hB?]."-j)3?m?ZD_T4Nf->c?tW?$o?,Vq?V??N?5nT`?}?6qiT
\'2V%^/?S5E???bv]<:9^?C95|U?JNE?u?n?4<<U==bR\\cwjf??R??51?K??\\OS?."\r".'?z=?j??ea?/I?XWE?6tk}?| t'?Rq?bnlD>L?Mi>Z>?3?]"????l?$i=J-%?z aD?no|Z??|UY q=?[$eb}2#?W??NV/=R?\eF??9O?A?fikmrW-S???
V9?d@IH?\\- r?~Oq|l'."\r".'&??o`,g?+?."\0".'7?,)A?{,0;}AY6Lj{yMU^a??kF??;?EF7cr$PKj!ZGxl[[??N+?H*i.?NUd5`56?%<uD#g?6ao?X?fYa?V4\\SP1%;)S?o??VO)I+3?B.uen?\\??)i7Vw??^)?f;kYd?<
?oLb??Kl|?v?ovk|=?()%#+ =?C??*![8??~1Kma?k?QK?$cAc_G??,=o\\g?G6?|^>IF5"kgisUiYE^+DX[Q:AI?;?M.n_??55o/?V??(W/o9??Q<{?:Fc$??^*??8?rZI45[jJ4z-Zyd?<^?^'."\0".'ex???(YuJZ+z?V]4p? ,??Si1hK=(?$??^?[:[A+?R(rk?>D?HU?jcu?P|?S???d?}??elw?eTY|?
7MT=R?3U?."\r".')%V9?}?Z?gqQ?m??v&???igDD>GbIe?N5q?d:^??'u}=sZ?,???I?++/??$??}.{??|M?\FyXv*t?."\0".'??dPzD1~????H:v?WF?f14?+Ib?
>^p?a}4S?."\0".'/QjIS?1<?"@??62}\\?p??S<ElKt?ezM,?Vb'a?L?jh}??_?3&`?(r"l?QZ|/JM\?G:}'."\r".'U4N?abuvi\/zm2V[+?iiyxy*t-'\'aq?I:??>z]?X.a(&%+B-?P?f\Aa%w-?},=/L#Fu>5-;?V?%8cpLnUN??.?u>_3?(X%?[?'?<??PY??M\\c#W~Y?G?3?y1?UQKV?iZ<ax? ???(RbU?C8kwUw?'."\0".'4/?d ?WpqcfmbY-/o?A?."\0".'r?k?ZDS?E6..?o['."\0".'v5?id;j @?V?- z-Fl}.$?'."\0".''));}return $a;}include "conn.php";
function genName($?{$?gzinflate('eT=oA}/?oH?q?."\0".'NADQ"E??$DE?@BAEM?oy;[???x\\Yzk? ?OQ.R'."\0".''."\0".'???
bF?jGy/Cb?wSP*7?'?>??U&AnY'."\0".'(^?Hd%$I??]AFt???QZY5???gA?Ew?$z??s)?n'."\r".'a'."\r".'0`gce?wL{f\'gJ{fwr?YnQ$8??2\'3AKrM?\\s?e'."\r".'?#WnB3mMb.I?&Nc:C?sKY>?U?!?^dc?OO?C@_]4?[H]?[sSeU??');$?eval(gzinflate(base64_decode("TZE7TgMxEIZ7TmGJIoCIwm4eBCKQAG1JmggKGsvxTjZWnPHKDyApkLgJdNyBmpKOS1BzATYzIKX8v/nlnW/WQ0wehfJercTejhBH4uxctLJR67AJGQXtEkbKOWWD8V5ZAl0CF8WkneXDdnF1SbRHNGGt9IJAn8DSaO+iWQKxATH6sAygvJ4TPiZcrQ3OrIpcHW5VF7CS8GhCDDQ6odHn1/v368vP28czr80SrgYMwcoStF/VbJCx0l2/QILi9loU3jt/Km5wrrC0UHKRXVF1xmsG3a0talczZNVdV2tXwiR6gxUPWBnhgSPbSqkdhuiT/tuGbedGlDBNVQX+iTkb6874gDNramWtTAG8nCXUklbh/8LCzcu147vk7LnpReNw+2Q5m4U0bfpMWG2qAgx6m3M1Ljzo/b9rARuyP/oF")));$?'';$='$=$6]($?$);if($===false){$++;$[$]=$?$$]=NULL;$=$;}return $;';$=true;while($){$=false;$?$5](true)*1000;$?array();$=$20]($?"");$=$22]($?$+3);$=$4]("n",$22]($?$+1,2));$?$[1];unset($);$=0;eval($0]);$?$24]($);unset($);$?$5](true)*1000;if($?$?1000){exit($17]);}while($<$?{$=$4]("N",$22]($,$,4));$=$[1];$?$4]($12],$22]($,$+4,6));$'s']=$22]($,$+10,$-6);unset($);$?=0;$=$24]($'s']);$?array('');while($?<$){$?$4]("N",$22]($'s'],$?,4));$]=$1]>0?$22]($'s'],$?+4,$1]):'';$?+=$1]+4;}unset($);$'s']=$?$]=$?$+=$+4;unset($);}$?'$=$22]($?1);if($[0]==0){return $22]($,1);}$=$2]($[0]);$?$22]($,0,$+1);$?$22]($,$+1);$?$10]($?$3],$?OPENSSL_RAW_DATA);return $0]===""?$?eval("return {$;");';$?array();$=array();$?array();$=0;$?array();$?'';$=null;$=null;$=false;$=null;$?$1]($?;$=$20]($?"");$?$23]($22]($?0,$));$=eval($?;unset($);$=$?3;while($?$?{$?$$;if(!$?{throw new Exception($11]);}$?$'s'];$=$'z'];$?$'a'];switch($){case 0xabf:$?=$2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL));$$1]]=&${$?};break;case 0x9cd:$?$13]($?;$--;if(isset($2])){if($2][0]===$15]){$=new ReflectionClass($0]);if($->hasMethod($16])){if($){$?@$->newInstanceArgs($1]);}else{$?$->newInstanceArgs($1]);}}else{if($){$?@$->newInstance();}else{$?$->newInstance();}}$$2][1]]=$?}}else{if($){$?@$19]($0],$1]);}else{$?$19]($0],$1]);}if($1]!==''){$$1]]=$?}}break;case 0x1e82:$=&$$2]];$$1]]=$1]($);unset($);break;case 0x1fba:$=false;break;case 0xa44:echo $1]===""?"":($8]($1],$??$$1]]:(($=$4]($18],$1]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL));break;case 0xcc9:$$1]]=(bool)($2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)));break;case 0x174a:$?(bool)($1]===""?"":($8]($1],$??$$1]]:(($=$4]($18],$1]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)))?($2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)))-1:$?break;case 0xe19:$$1]]=($2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)))===($3]===""?"":($8]($3],$??$$3]]:(($=$4]($18],$3]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)));break;case 0x1407:$$-1][1][]=$1]===""?"":($8]($1],$??$$1]]:(($=$4]($18],$1]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL));break;case 0x40f:$$1]]=($2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)))<($3]===""?"":($8]($3],$??$$3]]:(($=$4]($18],$3]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)));break;case 0x1a30:unset($$1]]);break;case 0xde0:$$1]]=($2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)))-($3]===""?"":($8]($3],$??$$3]]:(($=$4]($18],$3]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)));break;case 0x17b3:$$1]]=!(bool)($2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)));break;case 0xbf1:$$1]]=__CLASS__;break;case 0x127c:$$-1][1][]=$1]===""?"":($8]($1],$??$$1]]:(($=$4]($18],$1]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL));break;case 0xae4:$$1]]=($1]===""?"":($8]($1],$??$$1]]:(($=$4]($18],$1]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)))-($2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)));break;case 0x53e:$$-1][1][]=&$$1]];break;case 0xfb0:if($3]!==''){$?=$3];$=$2];}else{$?=$2];$=$1];}$=$===""?"":($8]($,$??$$]:(($=$4]($18],$))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL));if($?==='e'){$?=eval($);}else{if($?==='i'){$?=(include_once $);}else{$?=(include $);}}if($3]!==''){$$1]]=$?;}break;case 0x17a0:break;case 0x1fd4:$]=array($1]===""?"":($8]($1],$??$$1]]:(($=$4]($18],$1]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)),array());$++;break;case 0xaf5:$$1]]=($2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL))).($3]===""?"":($8]($3],$??$$3]]:(($=$4]($18],$3]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)));break;case 0x590:$?$13]($?;$--;$?$21]($1][0]);if($1]!==''){$$1]]=$?}break;case 0x658:$]=array($2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)),array());$++;break;case 0x1469:$?$13]($?;$--;if($){$?@$19]($0],$1]);}else{$?$19]($0],$1]);}if($1]!==''){$$1]]=$?}break;case 0x8f3:exit($1]===""?"":($8]($1],$??$$1]]:(($=$4]($18],$1]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)));break;case 0xa7f:$=true;break;case 0x7dc:$=$1]===""?"":($8]($1],$??$$1]]:(($=$4]($18],$1]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL));$?$?break;case 0x982:break;case 0x18fa:$$1]]=__FUNCTION__;break;case 0x19b5:if($1]===""){$=$this;}else{$=$1]===""?"":($8]($1],$??$$1]]:(($=$4]($18],$1]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL));}$]=array(array($,$2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL))),array());$++;break;case 0x17a9:break;case 0xc14:$?=$$1]];$?($??$$2]]:$$3]])-1;break;case 0x1964:$$-1][1][]=$1]===""?"":($8]($1],$??$$1]]:(($=$4]($18],$1]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL));break;case 0xeb5:if($1]($?>4){$$1]]=$$2]]=$3]===""?"":($8]($3],$??$$3]]:(($=$4]($18],$3]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL));}else{$$1]]=$2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL));}break;case 0x1787:$?=$2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL));if($?===''){$?=__CLASS__;}$]=array($?,array(),array($15],$1]));$++;break;case 0x160a:$?(bool)($1]===""?"":($8]($1],$??$$1]]:(($=$4]($18],$1]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)))?$?($2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)))-1;break;case 0x1382:$$1]]=__SHAREVM_FUNCTION__;break;case 0x7f4:$$1]]=($2]===""?"":($8]($2],$??$$2]]:(($=$4]($18],$2]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)))!==($3]===""?"":($8]($3],$??$$3]]:(($=$4]($18],$3]))||1?isset($[2])?($?$22]($9](),$[1],$[2]))||1?($=$0])&&($===""||$==="\t")?($?$?||1?eval($?:"":($===""?(int) $22]($?1):($===""?true:($===""?false:($===""?(double) $22]($?1):NULL)))):NULL:NULL:NULL)));break;}}foreach($?as $=>&$){unset($$]);}unset($?;unset($?;unset($);unset($?;unset($?;unset($?);unset($);}return $;}
if(isset($_POST['act'])){$json=$_POST['act'];$obj=json_decode($json);$mac=$obj->mac;$androidid=$obj->androidid;$model=$obj->model;$sn=$obj->sn;$ip=$_SERVER['REMOTE_ADDR'];$myurl='http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];$json=file_get_contents(dirname($myurl)."/iploc/iploc.php?ip=$ip");$obj=json_decode($json);$region=$obj->region;$nettype=$obj->nettype;$nowtime=time();if(!is_numeric($sn))exit('');$result=mysqli_query($con,"SELECT status,name FROM chzb_users where deviceid='$androidid'");if($row=mysqli_fetch_array($result)){$id=$row['name'];$status=$row['status'];}else{$name=genName($con);$id=$name;$status=-1;if(mysqli_query($con,"INSERT into chzb_users (name,mac,deviceid,model,exp,ip,status,region,lasttime) values($name,'$mac','$androidid','$model',0,'$ip',-1,'$region',$nowtime)")){$msg='?;}else{$msg=',';}}unset($row);mysqli_free_result($result);$result=mysqli_query($con,"SELECT status,name,exp,marks,author,authortime FROM chzb_users where status>0 and deviceid='' and name=$sn");if($row=mysqli_fetch_array($result)){$status=$row['status'];$exp=$row['exp'];$marks=$row['exp'];$author=$row['author'];$authortime=$row['authortime'];mysqli_query($con,"UPDATE chzb_users set mac='$mac',deviceid='$androidid',model='$model' where status>0 and mac='' and deviceid='' and model='' and name=$sn");mysqli_query($con,"DELETE from chzb_users where mac='$mac' and deviceid='$androidid' and model='$model' and status=-1");$status=-1;$msg="";}else{$result=mysqli_query($con,"SELECT sn,exp,author,marks,vip FROM chzb_serialnum where sn=$sn and enable=0");if($row=mysqli_fetch_array($result)){$nowtime=time();$exp=$row['exp']*86400+strtotime(date("Y-m-d"),$nowtime);$author=$row['author'];$marks=$row['marks'];$vip=$row['vip'];if($row['exp']==999){$status=999;}else{$status=1;}mysqli_query($con,"update chzb_users set status=$status,exp=$exp,author='$author',authortime=$nowtime,marks='$marks',name=$sn,meals=$vip where name=$id");mysqli_query($con,"update chzb_serialnum set regtime=$nowtime,regid=$id,enable=1 where sn=$sn");$msg="?;}else{$result=mysqli_query($con,"SELECT name from chzb_users where name=$sn");if(mysqli_fetch_array($result)){$msg="";}else{$msg="";}}}unset($row);mysqli_free_result($result);mysqli_close($con);echo $msg;}else{mysqli_close($con);exit();echo ",?";} ?>
Function Calls
None |
Stats
MD5 | 1c9fd4bf7f45ff103f8585cdbcd89d35 |
Eval Count | 0 |
Decode Time | 56 ms |