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 defined("\x49\116\137\111\x41") or exit("\x41\x63\x63\x65\163\x73\40\104\x65\x6e\x6..
Decoded Output download
<?php
defined("IN_IA") or exit("Access Denied");
class tiger_newhuModuleReceiver extends WeModuleReceiver
{
public function receive()
{
goto CDwyA;
ufmg0:
$gztitle = str_replace("##", $mc["nickname"], $cfg["gztitle"]);
goto CGDtG;
Iqz5E:
if (empty($cfg["gztitle"])) {
goto KGkhZ;
}
goto Wa5fY;
NeBUY:
$this->mc_jl($s_fans["id"], 0, 3, -$cscore3, "2", '');
goto S09HH;
wwzZW: pzkWr:
goto wuaH2;
ZM1sj:
pdo_update("tiger_newhu_share", array("follow" => $status, "hasdel" => 1), array("openid" => $mc["uid"], "weid" => $mc["uniacid"]));
goto dq1uP;
ReuDQ:
pdo_update("tiger_newhu_share", array("follow" => $status1), array("openid" => $mc["uid"], "weid" => $mc["uniacid"]));
goto AAi7U;
X40zK:
$msg = htmlspecialchars_decode($cfg["tiger_newhu_usr"]);
goto pilQm;
jajw5:
$news = array("title" => $gztitle, "description" => $cfg["gzdescription"], "url" => $gzurl, "picurl" => $gzpicurl);
goto DO_a2;
NRNL7:
$rtips = str_replace("##", $cscorehb3, $rtips);
goto pUz3Z;
U7DsX:
if (!$cscorehb3) {
goto Sa9Tx;
}
goto oHCdm;
F_bZb:
$mc["province"] = $userInfo["province"];
goto lsxfv;
BVqFb:
$zfs = $cfg["tiger_newhu_fansnum"] + $fanssum;
goto N2qZ9;
UPAmK:
$msg = str_replace("##", $fansusr["gender"], $msg);
goto txEVs;
tETPx:
if (!(empty($mc["nickname"]) || empty($mc["avatar"]) || empty($mc["province"]))) {
goto F2LtS;
}
goto qBrk6;
or7j2:
$rtips3 = str_replace("##", $mc["nickname"], $reply["rtips"]);
goto PCN1W;
o9XUF:
$mc = mc_fetch($this->message["from"]);
goto lmX4k;
lWiSw:
$this->mc_jl($p_fans["id"], 1, 3, -$pscorehb3, "3", '');
goto ZOQlA;
FyjVM:
if (!$cscore3) {
goto SKJ9h;
}
goto NeBUY;
ijD0b:
if (!$pscore3) {
goto LdIgd;
}
goto PECS8;
DxCEG: LdIgd:
goto PTrOh;
s7t8d: b9_8o:
goto FubZl;
z59wW:
$json = ihttp_get($url);
goto w1F_t;
whNR7:
$url = "https://api.weixin.qq.com/cgi-bin/user/info?access_token={$ACCESS_TOKEN}&openid={$openid}&lang=zh_CN";
goto cPB4F;
pilQm:
$msg = str_replace("##", $mc["nickname"], $msg);
goto Kn97U;
Iq3xn:
$mc["avatar"] = $userInfo["headimgurl"];
goto F_bZb;
w1F_t:
$userInfo = @json_decode($json["content"], true);
goto CnzcB;
Wa5fY:
$url = $_W["siteroot"] . str_replace("./", "app/", $this->createMobileurl("kending", array("uid" => $mc["uid"])));
goto ufmg0;
xQpEd:
$s_fans = pdo_fetch("SELECT * FROM " . tablename($this->modulename . "_share") . " WHERE weid='{$_W["uniacid"]}' and id='{$m_fans["helpid"]}'");
goto FyjVM;
lsxfv:
$mc["city"] = $userInfo["city"];
goto SXCyy;
WzOh5:
if ($fansusr["gender"] == 1) {
goto AMvy1;
}
goto BYnJy;
DE_0v:
$account->sendCustomNotice($custom);
goto Iqz5E;
txEVs:
$msg = str_replace("##", $mc["country"], $msg);
goto rnCJ2;
SXCyy:
$mc["country"] = $userInfo["country"];
goto ubuHk;
PCN1W:
$rtips3 = str_replace("##", $pscore3, $rtips3);
goto QVw_X;
WRcIX:
$gzpicurl = $_W["siteroot"] . "/attachment/" . $cfg["gzpicurl"];
goto jajw5;
rnCJ2:
$msg = str_replace("##", $mc["province"], $msg);
goto jRbAE;
Sth86: FU43j:
goto fu7Ry;
lpS13:
if (!$s_fans["helpid"]) {
goto XTrSk;
}
goto USWb5;
jRbAE:
$msg = str_replace("##", $mc["city"], $msg);
goto FyZp4;
dq1uP: W98nX:
goto ugIQa;
fAcAV:
load()->func("logging");
goto SzNaA;
S09HH: SKJ9h:
goto U7DsX;
ZOQlA: k1fGc:
goto or7j2;
FyZp4:
$msg = str_replace("##", $url, $msg);
goto WVUrD;
CnzcB:
$mc["nickname"] = $userInfo["nickname"];
goto Iq3xn;
d1e6f: iVhpO:
goto cp6MW;
USWb5:
$p_fans = pdo_fetch("SELECT * FROM " . tablename($this->modulename . "_share") . " WHERE weid='{$_W["uniacid"]}' and id='{$s_fans["helpid"]}'");
goto ijD0b;
YjD1t:
if (!($this->message["event"] == "subscribe")) {
goto b9_8o;
}
goto tETPx;
PECS8:
$this->mc_jl($p_fans["id"], 0, 3, -$pscore3, "3", '');
goto DxCEG;
AAi7U:
$fansusr = mc_fetch($this->message["from"]);
goto WzOh5;
BYnJy:
if ($fansusr["gender"] == 2) {
goto kx2l3;
}
goto m4qZd;
Go6Mo:
$pscore3 = $reply["pscore"];
goto MF0ap;
Ya1DQ:
$status1 = 1;
goto ReuDQ;
QVw_X:
$rtips3 = str_replace("##", $pscorehb3, $rtips3);
goto oIYBF;
oHCdm:
$this->mc_jl($s_fans["id"], 1, 3, -$cscorehb3, "2", '');
goto tbpPs;
wuaH2:
$account_name = $_W["account"]["name"];
goto BVqFb;
ToRsx: AMvy1:
goto XKUka;
fu7Ry:
$cscore3 = $reply["cscore"];
goto Go6Mo;
h8AfD:
goto pzkWr;
goto qaEm4;
WnKoB:
$mc = mc_fetch($this->message["from"]);
goto oGrxA;
Wcs5o:
$msg = str_replace("##", $mc["credit2"], $msg);
goto tQjfm;
MF0ap:
$cscorehb3 = $reply["cscorehb"];
goto eBuGl;
CCuX8:
if (!($this->message["event"] == "unsubscribe")) {
goto W98nX;
}
goto o9XUF;
tbpPs: Sa9Tx:
goto pGIZr;
tQjfm:
$msg = str_replace("##", $zfs, $msg);
goto UPAmK;
oIYBF:
$this->sendText($p_fans["from_user"], $rtips3);
goto DRGL0;
DO_a2:
$this->sendNews($news, $this->message["from"]);
goto iwu8q;
XKUka:
$fansusr["gender"] = "";
goto h8AfD;
lmX4k:
$reply = pdo_fetch("select * from " . tablename("tiger_newhu_poster") . " where weid=:weid order by id asc limit 1", array(":weid" => $mc["uniacid"]));
goto eaNbK;
SzNaA:
$cfg = $this->module["config"];
goto WFNml;
cPB4F:
load()->func("communication");
goto z59wW;
WFNml:
load()->model("mc");
goto WnKoB;
qBrk6:
$openid = $this->message["from"];
goto Ke48I;
WVUrD:
$msg = str_replace("##", $account_name, $msg);
goto Mvjsb;
iwu8q: KGkhZ:
goto s7t8d;
x2yag:
$m_fans = pdo_fetch("select * from " . tablename("tiger_newhu_share") . " where weid=:weid AND from_user=:from_user order by id asc limit 1", array(":weid" => $mc["uniacid"], ":from_user" => $this->message["from"]));
goto K5tqQ;
CGDtG:
$gzurl = str_replace("##", $url, $cfg["gzurl"]);
goto WRcIX;
eaNbK:
if (!($reply["rscore"] == 0)) {
goto FU43j;
}
goto deQGj;
Kn97U:
$msg = str_replace("##", $mc["credit1"], $msg);
goto Wcs5o;
deQGj:
return '';
goto Sth86;
m4qZd:
goto pzkWr;
goto ToRsx;
FubZl:
if (!($this->message["msgtype"] == "event")) {
goto MeRec;
}
goto CCuX8;
qaEm4: kx2l3:
goto qEBm3;
bak4K:
$custom = array("msgtype" => "text", "text" => array("content" => urlencode($msg)), "touser" => $this->message["from"]);
goto DE_0v;
qEBm3:
$fansusr["gender"] = "";
goto wwzZW;
pUz3Z:
$this->sendText($s_fans["from_user"], $rtips);
goto lpS13;
ubuHk: F2LtS:
goto Ya1DQ;
PTrOh:
if (!$pscorehb3) {
goto k1fGc;
}
goto lWiSw;
Mvjsb:
$account = WeAccount::create();
goto bak4K;
ugIQa: MeRec:
goto dxnTO;
CDwyA: global $_W, $_GPC;
goto fAcAV;
N2qZ9:
$url = $_W["siteroot"] . str_replace("./", "app/", $this->createMobileurl("kending", array("uid" => $mc["uid"])));
goto X40zK;
pGIZr:
$rtips = str_replace("##", $mc["nickname"], $reply["rtips"]);
goto clH2Q;
cp6MW:
$status = 0;
goto ZM1sj;
eBuGl:
$pscorehb3 = $reply["pscorehb"];
goto x2yag;
clH2Q:
$rtips = str_replace("##", $cscore3, $rtips);
goto NRNL7;
Ke48I:
$ACCESS_TOKEN = $this->getAccessToken();
goto whNR7;
oGrxA:
$openid = $this->message["from"];
goto YjD1t;
K5tqQ:
if (!($m_fans["helpid"] && empty($m_fans["hasdel"]))) {
goto iVhpO;
}
goto xQpEd;
DRGL0: XTrSk:
goto d1e6f;
dxnTO:
}
function formot_content($content = '', $fansusr)
{
goto iDEQw;
joldi: QyMT9:
goto FInZZ;
TCsVR:
$fansusr = mc_fetch($this->message["from"]);
goto IPsrs;
o7roA:
return $content;
goto MLDN8;
iDEQw: global $_W;
goto QGSiZ;
Vtijt:
foreach ($replace as $re) {
$content = str_replace($re["replace"], $fansusr[$re["name"]], $content);
F9a5Y:
}
goto joldi;
QGSiZ:
if (!empty($content)) {
goto cHm5G;
}
goto o7roA;
IPsrs:
$replace = array("a" => array("replace" => "##", "name" => "nickname"), "b" => array("replace" => "##", "name" => "credit1"), "c" => array("replace" => "##", "name" => "credit2"), "d" => array("replace" => "##", "name" => "nationality"), "e" => array("replace" => "##", "name" => "resideprovince"), "f" => array("replace" => "##", "name" => "residecity"));
goto Vtijt;
qnUTL:
load()->model("mc");
goto TCsVR;
FInZZ:
return $content;
goto bGe69;
MLDN8: cHm5G:
goto qnUTL;
bGe69:
}
private function Uid2Openid($uid)
{
return pdo_fetchcolumn("select openid from " . tablename("mc_mapping_fans") . " where uid='{$uid}'");
}
public function sendText($openid, $text)
{
goto z9Txd;
KS1u_:
$ret = $this->sendRes($this->getAccessToken(), $post);
goto yl5dl;
yl5dl:
return $ret;
goto RECtg;
z9Txd:
$post = "{"touser":"" . $openid . "","msgtype":"text","text":{"content":"" . $text . ""}}";
goto KS1u_;
RECtg:
}
public function sendNews($news, $openid)
{
goto vtUp7;
JOQBZ:
$ret = ihttp_request($url, $result);
goto v_W1u;
v_W1u:
return $ret;
goto bfihp;
T6Vwp:
$url = "https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token={$access_token}";
goto JOQBZ;
vtUp7:
$result = "{"touser":"" . $openid . "","msgtype":"news","news":{"articles":[{"title":"" . $news["title"] . "","description":"" . $news["description"] . "","url":"" . $news["url"] . "","picurl":"" . $news["picurl"] . ""}]}}";
goto Qb978;
Qb978:
$access_token = $this->getAccessToken();
goto T6Vwp;
bfihp:
}
private function sendRes($access_token, $data)
{
goto icXed;
toRek:
return $content["errcode"];
goto JmNb8;
gxrrn:
$ret = ihttp_request($url, $data);
goto clCT4;
clCT4:
$content = @json_decode($ret["content"], true);
goto toRek;
xe63B:
load()->func("communication");
goto gxrrn;
icXed:
$url = "https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token={$access_token}";
goto xe63B;
JmNb8:
}
private function getAccessToken()
{
goto ajhcY;
ajhcY: global $_W;
goto nraxG;
QGbTm:
$token = $account->getAccessToken();
goto a3REK;
a3REK:
return $token;
goto PL5GW;
n2Ptc:
$acid = $_W["uniacid"];
goto BJ_j_;
Cu_Kt:
$acid = $_W["acid"];
goto zQ6s8;
BJ_j_: rCrGM:
goto r4BUc;
nraxG:
load()->model("account");
goto Cu_Kt;
r4BUc:
$account = WeAccount::create($acid);
goto QGbTm;
zQ6s8:
if (!empty($acid)) {
goto rCrGM;
}
goto n2Ptc;
PL5GW:
}
public function mc_jl($uid, $type, $typelx, $num, $remark, $orderid)
{
goto ZXQRL;
ecudt:
return array("error" => 0, "data" => "");
goto uKOAU;
H7cre:
$credit2 = $share["credit2"] + $num;
goto aYCN4;
MASFc:
if ($inst === false) {
goto bLlPQ;
}
goto Xjc7G;
Pnx2f: IeQuv:
goto kdlTQ;
PGXOI: bLlPQ:
goto ecudt;
lGMy1:
$credit1 = $share["credit1"] + $num;
goto Rx0jc;
Filb_: sLZsw:
goto ODee2;
BGDu5:
goto TGBK1;
goto t6gIh;
o8q1K:
goto IeQuv;
goto dLNOq;
RVbZv:
return array("error" => 0, "data" => "");
goto mKTDz;
wSYqq:
return array("error" => 1, "data" => "");
goto wg0s8;
mKTDz: rc4ug:
goto o8q1K;
kuPNv:
if ($type == 1) {
goto NZ0gb;
}
goto l3Bvy;
Rx0jc:
if (!($credit1 < 0)) {
goto HWNOk;
}
goto hUcLH;
oTp2x:
$res = pdo_update($this->modulename . "_share", array("credit1" => $credit1), array("id" => $uid));
goto bibqR;
w7oQa:
if ($inst === false) {
goto TPHxv;
}
goto wSYqq;
aYCN4:
if (!($credit2 < 0)) {
goto vZROb;
}
goto yhpB0;
yhpB0:
return array("error" => 0, "data" => "");
goto K8b7w;
y2t8U:
goto VDWHo;
goto LDX1v;
jI4dQ: HWNOk:
goto oTp2x;
bibqR:
if ($res === false) {
goto igw2B;
}
goto vsz8w;
tPDxH:
return array("error" => 0, "data" => "");
goto Pnx2f;
wuej3:
$share = pdo_fetch("SELECT credit1,credit2 FROM " . tablename($this->modulename . "_share") . " WHERE id='{$uid}' and weid='{$_W["uniacid"]}' ");
goto kuPNv;
n1Aqu:
if ($res === false) {
goto p4w3r;
}
goto Jppur;
LDX1v: p4w3r:
goto ckMHy;
uKOAU: ghQMf:
goto y2t8U;
HXGTL:
return;
goto Filb_;
ZXQRL: global $_W;
goto n4ca9;
t6gIh: xikam:
goto lGMy1;
Jppur:
$inst = pdo_insert($this->modulename . "_jl", $data);
goto MASFc;
fHZr5: VDWHo:
goto BGDu5;
K8b7w: vZROb:
goto nqctN;
n4ca9:
if (!empty($uid)) {
goto sLZsw;
}
goto HXGTL;
SnlfD:
goto TGBK1;
goto l1lZf;
ODee2:
$data = array("uid" => $uid, "weid" => $_W["uniacid"], "type" => $type, "typelx" => $typelx, "num" => $num, "remark" => $remark, "orderid" => $orderid, "createtime" => time());
goto wuej3;
vsz8w:
$inst = pdo_insert($this->modulename . "_jl", $data);
goto w7oQa;
nqctN:
$res = pdo_update($this->modulename . "_share", array("credit2" => $credit2), array("id" => $uid));
goto n1Aqu;
hUcLH:
return array("error" => 0, "data" => "");
goto jI4dQ;
wg0s8:
goto rc4ug;
goto RUvu3;
RUvu3: TPHxv:
goto RVbZv;
Xjc7G:
return array("error" => 1, "data" => "");
goto jnmsE;
l1lZf: NZ0gb:
goto H7cre;
jnmsE:
goto ghQMf;
goto PGXOI;
ckMHy:
return array("error" => 0, "data" => "");
goto fHZr5;
l3Bvy:
if ($type == 0) {
goto xikam;
}
goto SnlfD;
kdlTQ: TGBK1:
goto Ha541;
dLNOq: igw2B:
goto tPDxH;
Ha541:
}
} ?>
Did this file decode correctly?
Original Code
<?php
defined("\x49\116\137\111\x41") or exit("\x41\x63\x63\x65\163\x73\40\104\x65\x6e\x69\x65\x64");
class tiger_newhuModuleReceiver extends WeModuleReceiver
{
public function receive()
{
goto CDwyA;
ufmg0:
$gztitle = str_replace("\43\346\230\xb5\347\247\260\43", $mc["\x6e\x69\143\153\x6e\x61\155\145"], $cfg["\x67\x7a\164\x69\164\154\x65"]);
goto CGDtG;
Iqz5E:
if (empty($cfg["\x67\x7a\x74\151\164\x6c\x65"])) {
goto KGkhZ;
}
goto Wa5fY;
NeBUY:
$this->mc_jl($s_fans["\x69\x64"], 0, 3, -$cscore3, "\62\347\xba\xa7\345\217\x96\346\266\210\345\205\263\346\xb3\xa8", '');
goto S09HH;
wwzZW: pzkWr:
goto wuaH2;
ZM1sj:
pdo_update("\x74\151\147\145\x72\137\156\x65\x77\x68\165\137\x73\x68\141\162\145", array("\146\x6f\154\x6c\x6f\167" => $status, "\150\141\x73\x64\x65\154" => 1), array("\x6f\160\x65\x6e\x69\x64" => $mc["\x75\151\x64"], "\167\145\151\x64" => $mc["\165\156\x69\x61\x63\151\x64"]));
goto dq1uP;
ReuDQ:
pdo_update("\x74\151\x67\x65\x72\x5f\x6e\x65\167\150\165\137\163\150\141\x72\x65", array("\146\157\154\x6c\x6f\167" => $status1), array("\x6f\160\145\x6e\x69\144" => $mc["\165\x69\x64"], "\x77\145\x69\x64" => $mc["\x75\x6e\x69\x61\143\151\144"]));
goto AAi7U;
X40zK:
$msg = htmlspecialchars_decode($cfg["\x74\x69\147\x65\162\137\156\x65\x77\150\165\x5f\x75\163\x72"]);
goto pilQm;
jajw5:
$news = array("\x74\x69\164\x6c\x65" => $gztitle, "\x64\x65\163\143\162\151\160\164\x69\x6f\x6e" => $cfg["\x67\172\144\x65\163\x63\x72\151\160\x74\151\157\x6e"], "\x75\x72\x6c" => $gzurl, "\160\x69\x63\x75\x72\x6c" => $gzpicurl);
goto DO_a2;
NRNL7:
$rtips = str_replace("\43\xe5\205\x83\x23", $cscorehb3, $rtips);
goto pUz3Z;
U7DsX:
if (!$cscorehb3) {
goto Sa9Tx;
}
goto oHCdm;
F_bZb:
$mc["\x70\x72\157\x76\x69\156\x63\x65"] = $userInfo["\160\x72\157\166\151\x6e\143\x65"];
goto lsxfv;
BVqFb:
$zfs = $cfg["\164\x69\147\x65\162\x5f\156\145\167\x68\x75\137\x66\141\156\163\156\165\x6d"] + $fanssum;
goto N2qZ9;
UPAmK:
$msg = str_replace("\43\346\x80\xa7\345\x88\xab\43", $fansusr["\147\x65\156\144\145\x72"], $msg);
goto txEVs;
tETPx:
if (!(empty($mc["\156\x69\143\153\x6e\x61\x6d\x65"]) || empty($mc["\x61\x76\x61\164\x61\162"]) || empty($mc["\x70\162\157\x76\151\x6e\x63\x65"]))) {
goto F2LtS;
}
goto qBrk6;
or7j2:
$rtips3 = str_replace("\x23\xe6\230\265\xe7\247\260\43", $mc["\x6e\151\143\153\156\141\x6d\145"], $reply["\x72\164\x69\x70\163"]);
goto PCN1W;
o9XUF:
$mc = mc_fetch($this->message["\x66\x72\x6f\155"]);
goto lmX4k;
lWiSw:
$this->mc_jl($p_fans["\x69\x64"], 1, 3, -$pscorehb3, "\63\xe7\272\xa7\345\217\x96\xe6\xb6\x88\345\205\263\xe6\xb3\xa8", '');
goto ZOQlA;
FyjVM:
if (!$cscore3) {
goto SKJ9h;
}
goto NeBUY;
ijD0b:
if (!$pscore3) {
goto LdIgd;
}
goto PECS8;
DxCEG: LdIgd:
goto PTrOh;
s7t8d: b9_8o:
goto FubZl;
z59wW:
$json = ihttp_get($url);
goto w1F_t;
whNR7:
$url = "\x68\164\x74\160\163\x3a\x2f\57\x61\160\151\x2e\x77\x65\x69\x78\151\156\x2e\161\x71\56\143\157\155\x2f\x63\147\151\55\x62\x69\156\57\165\x73\145\162\x2f\x69\156\x66\x6f\x3f\x61\143\143\x65\163\163\x5f\164\157\153\145\x6e\75{$ACCESS_TOKEN}\46\x6f\x70\x65\156\151\144\x3d{$openid}\46\x6c\x61\x6e\x67\75\x7a\x68\137\x43\x4e";
goto cPB4F;
pilQm:
$msg = str_replace("\x23\xe6\230\265\xe7\xa7\260\43", $mc["\156\x69\143\153\156\141\155\x65"], $msg);
goto Kn97U;
Iq3xn:
$mc["\141\166\141\164\141\162"] = $userInfo["\x68\145\141\x64\x69\155\147\165\x72\x6c"];
goto F_bZb;
w1F_t:
$userInfo = @json_decode($json["\143\157\x6e\164\x65\156\x74"], true);
goto CnzcB;
Wa5fY:
$url = $_W["\163\x69\x74\x65\162\157\x6f\164"] . str_replace("\x2e\57", "\141\160\160\57", $this->createMobileurl("\153\x65\x6e\144\151\x6e\x67", array("\165\x69\x64" => $mc["\165\x69\144"])));
goto ufmg0;
xQpEd:
$s_fans = pdo_fetch("\x53\x45\114\x45\x43\124\x20\52\40\x46\x52\x4f\x4d\x20" . tablename($this->modulename . "\x5f\163\x68\141\x72\145") . "\x20\127\x48\x45\x52\105\x20\x20\167\x65\x69\x64\x3d\x27{$_W["\165\x6e\151\x61\x63\x69\144"]}\47\40\141\x6e\144\x20\151\x64\75\47{$m_fans["\x68\x65\x6c\160\x69\x64"]}\x27");
goto FyjVM;
lsxfv:
$mc["\143\x69\164\171"] = $userInfo["\x63\x69\164\x79"];
goto SXCyy;
WzOh5:
if ($fansusr["\147\145\x6e\x64\145\x72"] == 1) {
goto AMvy1;
}
goto BYnJy;
DE_0v:
$account->sendCustomNotice($custom);
goto Iqz5E;
txEVs:
$msg = str_replace("\43\345\x9b\275\xe5\256\266\x23", $mc["\x63\x6f\165\156\164\x72\x79"], $msg);
goto rnCJ2;
SXCyy:
$mc["\143\157\x75\x6e\x74\162\x79"] = $userInfo["\143\x6f\x75\156\164\x72\x79"];
goto ubuHk;
PCN1W:
$rtips3 = str_replace("\x23\xe7\xa7\257\345\x88\x86\43", $pscore3, $rtips3);
goto QVw_X;
WRcIX:
$gzpicurl = $_W["\x73\151\164\x65\162\x6f\x6f\164"] . "\57\141\x74\x74\141\143\x68\x6d\145\156\x74\x2f" . $cfg["\147\x7a\160\x69\143\165\162\x6c"];
goto jajw5;
rnCJ2:
$msg = str_replace("\43\xe7\x9c\x81\43", $mc["\x70\x72\157\166\x69\x6e\x63\145"], $msg);
goto jRbAE;
Sth86: FU43j:
goto fu7Ry;
lpS13:
if (!$s_fans["\x68\x65\154\160\151\x64"]) {
goto XTrSk;
}
goto USWb5;
jRbAE:
$msg = str_replace("\43\345\xb8\202\43", $mc["\143\x69\x74\x79"], $msg);
goto FyZp4;
dq1uP: W98nX:
goto ugIQa;
fAcAV:
load()->func("\x6c\x6f\147\x67\x69\156\147");
goto SzNaA;
S09HH: SKJ9h:
goto U7DsX;
ZOQlA: k1fGc:
goto or7j2;
FyZp4:
$msg = str_replace("\43\351\xa2\x86\345\x8f\226\xe7\xa7\257\xe5\x88\206\43", $url, $msg);
goto WVUrD;
CnzcB:
$mc["\156\x69\x63\153\x6e\141\155\x65"] = $userInfo["\x6e\x69\143\x6b\x6e\x61\x6d\145"];
goto Iq3xn;
d1e6f: iVhpO:
goto cp6MW;
USWb5:
$p_fans = pdo_fetch("\123\105\x4c\x45\103\124\40\x2a\x20\106\122\117\115\x20" . tablename($this->modulename . "\x5f\163\150\141\162\145") . "\40\127\x48\x45\122\x45\x20\x20\x77\x65\151\144\75\x27{$_W["\165\156\151\141\x63\x69\x64"]}\x27\40\141\x6e\x64\40\151\144\75\47{$s_fans["\x68\145\x6c\x70\x69\144"]}\x27");
goto ijD0b;
YjD1t:
if (!($this->message["\145\x76\x65\156\x74"] == "\163\165\142\163\x63\x72\151\x62\x65")) {
goto b9_8o;
}
goto tETPx;
PECS8:
$this->mc_jl($p_fans["\x69\144"], 0, 3, -$pscore3, "\x33\347\xba\xa7\xe5\217\226\xe6\xb6\x88\xe5\x85\263\xe6\263\250", '');
goto DxCEG;
AAi7U:
$fansusr = mc_fetch($this->message["\x66\162\x6f\155"]);
goto WzOh5;
BYnJy:
if ($fansusr["\147\x65\x6e\144\145\162"] == 2) {
goto kx2l3;
}
goto m4qZd;
Go6Mo:
$pscore3 = $reply["\x70\163\x63\157\162\145"];
goto MF0ap;
Ya1DQ:
$status1 = 1;
goto ReuDQ;
QVw_X:
$rtips3 = str_replace("\x23\xe5\205\x83\43", $pscorehb3, $rtips3);
goto oIYBF;
oHCdm:
$this->mc_jl($s_fans["\x69\144"], 1, 3, -$cscorehb3, "\62\347\272\xa7\345\217\x96\xe6\266\210\345\x85\263\xe6\xb3\xa8", '');
goto tbpPs;
wuaH2:
$account_name = $_W["\141\x63\x63\157\x75\156\164"]["\x6e\141\x6d\x65"];
goto BVqFb;
ToRsx: AMvy1:
goto XKUka;
fu7Ry:
$cscore3 = $reply["\143\163\x63\x6f\x72\145"];
goto Go6Mo;
h8AfD:
goto pzkWr;
goto qaEm4;
WnKoB:
$mc = mc_fetch($this->message["\x66\162\157\x6d"]);
goto oGrxA;
Wcs5o:
$msg = str_replace("\x23\344\xbd\x99\xe9\xa2\235\x23", $mc["\x63\162\x65\x64\x69\164\62"], $msg);
goto tQjfm;
MF0ap:
$cscorehb3 = $reply["\143\163\143\157\x72\145\150\142"];
goto eBuGl;
CCuX8:
if (!($this->message["\145\x76\145\156\x74"] == "\165\x6e\x73\165\142\163\x63\x72\151\x62\x65")) {
goto W98nX;
}
goto o9XUF;
tbpPs: Sa9Tx:
goto pGIZr;
tQjfm:
$msg = str_replace("\43\345\201\x87\347\262\x89\344\xb8\x9d\346\x95\xb0\43", $zfs, $msg);
goto UPAmK;
oIYBF:
$this->sendText($p_fans["\146\162\x6f\155\137\x75\x73\145\162"], $rtips3);
goto DRGL0;
DO_a2:
$this->sendNews($news, $this->message["\146\162\157\x6d"]);
goto iwu8q;
XKUka:
$fansusr["\147\x65\x6e\x64\x65\162"] = "\xe5\270\x85\345\223\245";
goto h8AfD;
lmX4k:
$reply = pdo_fetch("\x73\145\154\145\x63\x74\x20\52\x20\x66\162\x6f\155\x20" . tablename("\x74\151\x67\x65\162\x5f\x6e\145\167\x68\x75\x5f\160\157\163\164\x65\162") . "\40\167\150\145\162\145\40\x77\145\151\x64\x3d\72\167\x65\151\x64\x20\157\162\x64\x65\162\x20\142\x79\x20\x69\144\40\x61\x73\x63\x20\154\x69\155\151\x74\40\61", array("\x3a\167\x65\151\x64" => $mc["\165\156\x69\x61\x63\151\144"]));
goto eaNbK;
SzNaA:
$cfg = $this->module["\x63\x6f\x6e\146\x69\147"];
goto WFNml;
cPB4F:
load()->func("\x63\x6f\x6d\155\165\x6e\151\x63\x61\164\151\x6f\x6e");
goto z59wW;
WFNml:
load()->model("\x6d\143");
goto WnKoB;
qBrk6:
$openid = $this->message["\146\162\x6f\x6d"];
goto Ke48I;
WVUrD:
$msg = str_replace("\x23\345\205\xac\344\xbc\x97\345\217\267\345\x90\215\347\247\260\43", $account_name, $msg);
goto Mvjsb;
iwu8q: KGkhZ:
goto s7t8d;
x2yag:
$m_fans = pdo_fetch("\163\x65\154\145\143\164\x20\52\40\146\x72\157\x6d\x20" . tablename("\164\151\147\x65\x72\137\156\145\167\x68\x75\137\x73\x68\141\x72\145") . "\x20\x77\x68\145\162\145\x20\167\145\x69\x64\x3d\x3a\x77\145\x69\x64\x20\x41\116\104\40\146\162\157\155\x5f\165\x73\x65\x72\x3d\72\146\x72\157\x6d\x5f\x75\x73\x65\162\x20\x6f\x72\144\x65\x72\x20\142\x79\40\x69\144\40\141\163\x63\40\154\x69\155\x69\164\40\61", array("\x3a\x77\x65\151\x64" => $mc["\x75\x6e\x69\x61\143\x69\x64"], "\x3a\x66\162\157\155\x5f\165\163\145\x72" => $this->message["\146\162\x6f\155"]));
goto K5tqQ;
CGDtG:
$gzurl = str_replace("\43\351\242\x86\xe5\x8f\226\347\xa7\xaf\xe5\210\x86\x23", $url, $cfg["\147\x7a\x75\x72\154"]);
goto WRcIX;
eaNbK:
if (!($reply["\162\x73\143\x6f\x72\145"] == 0)) {
goto FU43j;
}
goto deQGj;
Kn97U:
$msg = str_replace("\x23\347\xa7\257\345\x88\x86\x23", $mc["\143\162\145\x64\151\164\61"], $msg);
goto Wcs5o;
deQGj:
return '';
goto Sth86;
m4qZd:
goto pzkWr;
goto ToRsx;
FubZl:
if (!($this->message["\x6d\163\x67\x74\x79\160\145"] == "\145\x76\145\x6e\x74")) {
goto MeRec;
}
goto CCuX8;
qaEm4: kx2l3:
goto qEBm3;
bak4K:
$custom = array("\x6d\x73\x67\164\171\x70\x65" => "\x74\145\170\x74", "\164\145\170\164" => array("\x63\x6f\x6e\164\145\156\164" => urlencode($msg)), "\x74\157\x75\x73\145\162" => $this->message["\x66\162\x6f\155"]);
goto DE_0v;
qEBm3:
$fansusr["\147\145\156\x64\x65\162"] = "\xe7\276\x8e\345\245\263";
goto wwzZW;
pUz3Z:
$this->sendText($s_fans["\146\162\157\x6d\x5f\165\163\145\162"], $rtips);
goto lpS13;
ubuHk: F2LtS:
goto Ya1DQ;
PTrOh:
if (!$pscorehb3) {
goto k1fGc;
}
goto lWiSw;
Mvjsb:
$account = WeAccount::create();
goto bak4K;
ugIQa: MeRec:
goto dxnTO;
CDwyA: global $_W, $_GPC;
goto fAcAV;
N2qZ9:
$url = $_W["\x73\151\164\145\162\157\157\164"] . str_replace("\56\57", "\x61\x70\x70\57", $this->createMobileurl("\153\145\156\144\x69\x6e\x67", array("\x75\x69\x64" => $mc["\x75\x69\144"])));
goto X40zK;
pGIZr:
$rtips = str_replace("\x23\346\230\265\xe7\xa7\260\43", $mc["\156\x69\143\x6b\x6e\141\155\x65"], $reply["\x72\x74\151\x70\163"]);
goto clH2Q;
cp6MW:
$status = 0;
goto ZM1sj;
eBuGl:
$pscorehb3 = $reply["\160\163\x63\157\162\x65\150\x62"];
goto x2yag;
clH2Q:
$rtips = str_replace("\43\347\xa7\xaf\345\210\206\x23", $cscore3, $rtips);
goto NRNL7;
Ke48I:
$ACCESS_TOKEN = $this->getAccessToken();
goto whNR7;
oGrxA:
$openid = $this->message["\x66\162\x6f\x6d"];
goto YjD1t;
K5tqQ:
if (!($m_fans["\150\145\154\160\151\144"] && empty($m_fans["\x68\x61\x73\144\145\154"]))) {
goto iVhpO;
}
goto xQpEd;
DRGL0: XTrSk:
goto d1e6f;
dxnTO:
}
function formot_content($content = '', $fansusr)
{
goto iDEQw;
joldi: QyMT9:
goto FInZZ;
TCsVR:
$fansusr = mc_fetch($this->message["\x66\x72\x6f\155"]);
goto IPsrs;
o7roA:
return $content;
goto MLDN8;
iDEQw: global $_W;
goto QGSiZ;
Vtijt:
foreach ($replace as $re) {
$content = str_replace($re["\162\x65\160\154\141\x63\x65"], $fansusr[$re["\x6e\141\x6d\145"]], $content);
F9a5Y:
}
goto joldi;
QGSiZ:
if (!empty($content)) {
goto cHm5G;
}
goto o7roA;
IPsrs:
$replace = array("\x61" => array("\162\145\160\154\141\x63\x65" => "\43\346\x98\265\347\247\260\43", "\x6e\141\155\x65" => "\156\151\143\x6b\156\141\x6d\145"), "\x62" => array("\162\145\x70\154\x61\143\x65" => "\x23\xe7\xa7\257\xe5\210\x86\x23", "\x6e\x61\155\145" => "\143\x72\145\144\151\164\x31"), "\x63" => array("\162\145\x70\x6c\x61\x63\145" => "\x23\xe4\xbd\231\351\242\x9d\x23", "\156\141\x6d\145" => "\x63\162\145\144\151\164\62"), "\x64" => array("\162\145\x70\154\141\x63\x65" => "\x23\345\233\xbd\345\256\266\x23", "\x6e\x61\x6d\x65" => "\156\141\x74\x69\157\156\141\x6c\x69\x74\171"), "\x65" => array("\162\145\x70\x6c\x61\x63\145" => "\x23\xe7\x9c\x81\43", "\x6e\141\155\x65" => "\x72\145\x73\x69\144\x65\160\162\x6f\x76\151\156\143\x65"), "\x66" => array("\162\x65\160\154\141\143\145" => "\43\345\270\x82\x23", "\x6e\x61\155\145" => "\x72\145\163\x69\x64\x65\143\x69\164\171"));
goto Vtijt;
qnUTL:
load()->model("\155\x63");
goto TCsVR;
FInZZ:
return $content;
goto bGe69;
MLDN8: cHm5G:
goto qnUTL;
bGe69:
}
private function Uid2Openid($uid)
{
return pdo_fetchcolumn("\163\145\154\145\x63\164\40\157\x70\x65\156\x69\x64\x20\x66\x72\157\155\x20" . tablename("\x6d\x63\137\x6d\141\160\x70\151\x6e\x67\x5f\146\x61\x6e\x73") . "\x20\x77\150\145\x72\x65\x20\165\x69\144\x3d\47{$uid}\47");
}
public function sendText($openid, $text)
{
goto z9Txd;
KS1u_:
$ret = $this->sendRes($this->getAccessToken(), $post);
goto yl5dl;
yl5dl:
return $ret;
goto RECtg;
z9Txd:
$post = "\x7b\42\164\x6f\165\x73\145\x72\42\72\42" . $openid . "\42\x2c\x22\x6d\x73\147\164\171\160\145\x22\x3a\x22\x74\145\170\x74\x22\54\x22\x74\145\170\164\42\72\x7b\x22\x63\x6f\x6e\164\145\156\x74\42\x3a\x22" . $text . "\x22\x7d\x7d";
goto KS1u_;
RECtg:
}
public function sendNews($news, $openid)
{
goto vtUp7;
JOQBZ:
$ret = ihttp_request($url, $result);
goto v_W1u;
v_W1u:
return $ret;
goto bfihp;
T6Vwp:
$url = "\150\x74\x74\x70\163\x3a\57\57\141\x70\x69\56\x77\x65\151\170\x69\x6e\x2e\x71\161\x2e\x63\157\155\x2f\x63\147\x69\x2d\x62\x69\156\57\155\145\x73\163\141\x67\x65\x2f\x63\165\163\x74\157\155\x2f\x73\145\x6e\x64\x3f\x61\x63\143\145\x73\163\137\164\x6f\153\145\x6e\75{$access_token}";
goto JOQBZ;
vtUp7:
$result = "\x7b\x22\164\157\x75\163\x65\x72\x22\x3a\x22" . $openid . "\x22\x2c\x22\155\163\x67\164\x79\160\145\42\72\x22\156\x65\167\x73\x22\x2c\42\x6e\x65\x77\x73\x22\72\173\x22\x61\162\x74\x69\x63\154\145\163\42\72\133\173\x22\x74\151\164\x6c\145\x22\72\42" . $news["\x74\x69\x74\154\145"] . "\42\54\x22\x64\145\x73\143\x72\x69\160\x74\x69\x6f\x6e\42\x3a\42" . $news["\144\x65\163\143\x72\151\x70\164\151\x6f\x6e"] . "\x22\54\x22\165\x72\x6c\x22\x3a\42" . $news["\165\162\154"] . "\42\54\x22\160\151\143\x75\x72\154\x22\x3a\42" . $news["\160\151\x63\165\162\154"] . "\42\x7d\135\175\175";
goto Qb978;
Qb978:
$access_token = $this->getAccessToken();
goto T6Vwp;
bfihp:
}
private function sendRes($access_token, $data)
{
goto icXed;
toRek:
return $content["\145\x72\162\x63\x6f\x64\145"];
goto JmNb8;
gxrrn:
$ret = ihttp_request($url, $data);
goto clCT4;
clCT4:
$content = @json_decode($ret["\143\157\156\164\145\x6e\x74"], true);
goto toRek;
xe63B:
load()->func("\x63\x6f\x6d\x6d\x75\156\x69\143\141\164\x69\x6f\156");
goto gxrrn;
icXed:
$url = "\x68\x74\164\x70\x73\x3a\57\x2f\141\160\x69\56\x77\145\151\170\151\156\56\x71\x71\56\x63\157\155\57\143\x67\151\x2d\x62\x69\156\57\155\145\x73\x73\141\x67\x65\57\143\165\163\x74\157\155\57\163\145\x6e\x64\x3f\141\x63\x63\145\x73\163\137\x74\157\153\x65\x6e\x3d{$access_token}";
goto xe63B;
JmNb8:
}
private function getAccessToken()
{
goto ajhcY;
ajhcY: global $_W;
goto nraxG;
QGbTm:
$token = $account->getAccessToken();
goto a3REK;
a3REK:
return $token;
goto PL5GW;
n2Ptc:
$acid = $_W["\x75\156\x69\x61\x63\x69\144"];
goto BJ_j_;
Cu_Kt:
$acid = $_W["\141\143\x69\144"];
goto zQ6s8;
BJ_j_: rCrGM:
goto r4BUc;
nraxG:
load()->model("\141\x63\143\x6f\x75\x6e\164");
goto Cu_Kt;
r4BUc:
$account = WeAccount::create($acid);
goto QGbTm;
zQ6s8:
if (!empty($acid)) {
goto rCrGM;
}
goto n2Ptc;
PL5GW:
}
public function mc_jl($uid, $type, $typelx, $num, $remark, $orderid)
{
goto ZXQRL;
ecudt:
return array("\x65\x72\162\157\x72" => 0, "\x64\141\164\x61" => "\xe4\xbd\231\351\xa2\x9d\346\x9b\264\346\226\260\xe5\244\xb1\350\xb4\xa5");
goto uKOAU;
H7cre:
$credit2 = $share["\143\162\x65\x64\151\164\62"] + $num;
goto aYCN4;
MASFc:
if ($inst === false) {
goto bLlPQ;
}
goto Xjc7G;
Pnx2f: IeQuv:
goto kdlTQ;
PGXOI: bLlPQ:
goto ecudt;
lGMy1:
$credit1 = $share["\143\162\145\144\x69\164\61"] + $num;
goto Rx0jc;
Filb_: sLZsw:
goto ODee2;
BGDu5:
goto TGBK1;
goto t6gIh;
o8q1K:
goto IeQuv;
goto dLNOq;
RVbZv:
return array("\x65\x72\162\x6f\162" => 0, "\144\x61\164\141" => "\xe7\247\xaf\345\210\x86\xe6\233\264\xe6\226\xb0\345\244\261\350\264\245");
goto mKTDz;
wSYqq:
return array("\145\x72\162\157\x72" => 1, "\144\x61\x74\x61" => "\xe7\xa7\257\345\x88\206\xe6\233\264\346\x96\260\xe6\x88\220\345\x8a\237");
goto wg0s8;
mKTDz: rc4ug:
goto o8q1K;
kuPNv:
if ($type == 1) {
goto NZ0gb;
}
goto l3Bvy;
Rx0jc:
if (!($credit1 < 0)) {
goto HWNOk;
}
goto hUcLH;
oTp2x:
$res = pdo_update($this->modulename . "\137\x73\x68\141\162\x65", array("\143\x72\145\x64\151\164\x31" => $credit1), array("\x69\144" => $uid));
goto bibqR;
w7oQa:
if ($inst === false) {
goto TPHxv;
}
goto wSYqq;
aYCN4:
if (!($credit2 < 0)) {
goto vZROb;
}
goto yhpB0;
yhpB0:
return array("\x65\162\x72\x6f\x72" => 0, "\144\x61\x74\141" => "\xe4\xbd\x99\351\xa2\235\xe4\xb8\215\350\266\263");
goto K8b7w;
y2t8U:
goto VDWHo;
goto LDX1v;
jI4dQ: HWNOk:
goto oTp2x;
bibqR:
if ($res === false) {
goto igw2B;
}
goto vsz8w;
tPDxH:
return array("\x65\162\x72\x6f\x72" => 0, "\x64\x61\x74\141" => "\347\247\xaf\345\210\x86\xe6\x9b\264\346\226\260\345\244\261\xe8\264\245");
goto Pnx2f;
wuej3:
$share = pdo_fetch("\123\105\114\x45\x43\x54\x20\x63\162\145\x64\151\x74\61\x2c\143\162\x65\144\x69\164\x32\x20\x46\122\x4f\x4d\40" . tablename($this->modulename . "\x5f\x73\x68\141\x72\x65") . "\40\x57\x48\105\122\105\40\x69\x64\75\x27{$uid}\x27\40\141\x6e\144\40\167\x65\151\x64\75\x27{$_W["\x75\156\x69\141\143\x69\x64"]}\x27\x20");
goto kuPNv;
n1Aqu:
if ($res === false) {
goto p4w3r;
}
goto Jppur;
LDX1v: p4w3r:
goto ckMHy;
uKOAU: ghQMf:
goto y2t8U;
HXGTL:
return;
goto Filb_;
ZXQRL: global $_W;
goto n4ca9;
t6gIh: xikam:
goto lGMy1;
Jppur:
$inst = pdo_insert($this->modulename . "\137\x6a\154", $data);
goto MASFc;
fHZr5: VDWHo:
goto BGDu5;
K8b7w: vZROb:
goto nqctN;
n4ca9:
if (!empty($uid)) {
goto sLZsw;
}
goto HXGTL;
SnlfD:
goto TGBK1;
goto l1lZf;
ODee2:
$data = array("\x75\x69\144" => $uid, "\167\145\151\144" => $_W["\165\156\151\141\143\x69\x64"], "\164\171\160\145" => $type, "\164\x79\x70\x65\154\x78" => $typelx, "\156\165\155" => $num, "\162\145\x6d\x61\x72\153" => $remark, "\157\162\x64\145\162\x69\144" => $orderid, "\143\x72\x65\141\x74\145\x74\151\x6d\145" => time());
goto wuej3;
vsz8w:
$inst = pdo_insert($this->modulename . "\x5f\152\x6c", $data);
goto w7oQa;
nqctN:
$res = pdo_update($this->modulename . "\x5f\x73\x68\x61\162\x65", array("\x63\162\x65\144\x69\x74\62" => $credit2), array("\x69\144" => $uid));
goto n1Aqu;
hUcLH:
return array("\145\162\162\x6f\x72" => 0, "\x64\141\x74\141" => "\xe7\xa7\257\xe5\210\x86\xe4\270\215\xe8\266\xb3");
goto jI4dQ;
wg0s8:
goto rc4ug;
goto RUvu3;
RUvu3: TPHxv:
goto RVbZv;
Xjc7G:
return array("\145\x72\x72\157\x72" => 1, "\x64\x61\164\x61" => "\xe4\275\x99\351\xa2\x9d\346\233\xb4\346\226\260\xe6\210\220\345\212\237");
goto jnmsE;
l1lZf: NZ0gb:
goto H7cre;
jnmsE:
goto ghQMf;
goto PGXOI;
ckMHy:
return array("\x65\x72\x72\x6f\x72" => 0, "\144\x61\164\141" => "\344\xbd\x99\351\242\235\346\233\xb4\xe6\x96\xb0\xe5\xa4\261\350\xb4\245");
goto fHZr5;
l3Bvy:
if ($type == 0) {
goto xikam;
}
goto SnlfD;
kdlTQ: TGBK1:
goto Ha541;
dLNOq: igw2B:
goto tPDxH;
Ha541:
}
}
Function Calls
None |
Stats
MD5 | 7e46a9daacd0c7e0165971c39ef0f1c6 |
Eval Count | 0 |
Decode Time | 149 ms |