Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

public function get_haibao() { goto Tx_tp; Tx_tp: global $_W; goto nm8hi; P7P..

Decoded Output download

<?   public function get_haibao() { 
     goto Tx_tp; Tx_tp: global $_W; 
     goto nm8hi; P7P7c: OA74M: goto SFb4S; 
     Lr1D2: $token_param[":uniacid"] = $_W["uniacid"]; 
     goto LepDi; vlRsd: die; 
     goto P7P7c; ALmj6: 
     $commiss_qrcode = $member_info["commiss_qrcode"]; 
     goto DvSFY; MXW9O: 
     if (empty($last_community)) 
     { goto gikfu; } goto d_azK; UopoE: 
     pdo_update("lionfish_comshop_member", 
         array("commiss_qrcode" => $result["full_path"]), 
         array("member_id" => $member_id, 
             "uniacid" => $_W["uniacid"] 
         )); 
     goto TSwO9; DvSFY: 
     echo json_encode(array("code" => 0, "commiss_qrcode" => tomedia($commiss_qrcode))); 
     goto YBMf4; yMOLQ: 
     $last_community = pdo_fetch("select head_id from " . 
         tablename("lionfish_community_history") . 
         " where uniacid=:uniacid and member_id=:member_id order by addtime desc limit 1 ", 
         array(":uniacid" => $_W["uniacid"], 
             ":member_id" => $member_id)); 
     goto X1Yvx; jskEH: 
     $weprogram_token = pdo_fetch("select member_id from " . 
         tablename("lionfish_comshop_weprogram_token") . 
         " where uniacid=:uniacid and token=:token ", 
         $token_param); 
     goto S2VcN; lXqC1: 
     $last_community = pdo_fetch("select id as head_id from " . 
         tablename("lionfish_community_head") . 
         " where uniacid=:uniacid and state=1 and enable=1 and rest=0 order by id limit 1", 
         array(":uniacid" => $_W["uniacid"])); 
     goto hv8Ru; NTtl4: 
     $token = $_GPC["token"]; 
     goto kjtBf; KLiJ_: 
    // 
   //  $avatar = $goods_model->get_commission_user_avatar($member_info["avatar"], $member_id, 5); goto RxbGg; RxbGg: 
 
   $result = $goods_model->get_commission_index_share_image($head_id, $commiss_qrcode, $avatar, $member_info["username"]); goto UopoE; SFb4S: 
 
     $goods_model = load_model_class("pingoods"); goto hNhdh; bjdBL: H4SkS: goto ZGcy2; DEAE0: goto H4SkS; goto xxOjw; d_azK: 
     $head_id = $last_community["head_id"]; goto PZoBq; TSwO9: echo 
     json_encode(array("code" => 0, "commiss_qrcode" => tomedia($result["full_path"]))); goto zT5No; LepDi: 
     $token_param[":token"] = $token; goto jskEH; xxOjw: RyvkZ: goto MRvJ3; PZoBq: gikfu: goto xkYjp; hNhdh: 
     $member_id = $weprogram_token["member_id"]; goto yMOLQ; MRvJ3: 
     $commiss_qrcode = $goods_model->_get_index_wxqrcode($member_id, $head_id); goto KLiJ_; FhFK9: 
     $commiss_qrcode = ''; goto T4CbH; xkYjp: 
     $member_info = pdo_fetch("select commiss_qrcode,avatar,username from " . 
         tablename("lionfish_comshop_member") . 
         " where uniacid=:uniacid and member_id=:member_id", 
         array(":uniacid" => $_W["uniacid"], 
             ":member_id" => $member_id)); goto FhFK9; kjtBf: 
     $token_param = array(); goto Lr1D2; tdPiv: 
     echo json_encode(array("code" => 1, "msg" => "")); goto vlRsd; X1Yvx: 
     if (!empty($last_community)) 
     { goto HOKsx; } 
     goto lXqC1; hv8Ru: HOKsx: goto yhLR3; YBMf4: die; goto DEAE0; yhLR3: 
     $head_id = 0; goto MXW9O; S2VcN: 
     if (!(empty($weprogram_token) || empty($weprogram_token["member_id"]))) 
     { goto OA74M; } goto tdPiv; zT5No: die; goto bjdBL; nm8hi: global 
     $_GPC; goto NTtl4; T4CbH: 
     var_dump(12312);die; 
 
     if (empty($member_info["commiss_qrcode"])) 
     { goto RyvkZ; } goto ALmj6; ZGcy2: 
 
 } ?>

Did this file decode correctly?

Original Code

 public function get_haibao() {
     goto Tx_tp; Tx_tp: global $_W;
     goto nm8hi; P7P7c: OA74M: goto SFb4S;
     Lr1D2: $token_param["\x3a\x75\156\x69\x61\x63\151\x64"] = $_W["\165\156\x69\141\143\151\144"];
     goto LepDi; vlRsd: die;
     goto P7P7c; ALmj6:
     $commiss_qrcode = $member_info["\x63\157\155\x6d\151\163\163\x5f\x71\162\143\157\144\145"];
     goto DvSFY; MXW9O:
     if (empty($last_community))
     { goto gikfu; } goto d_azK; UopoE:
     pdo_update("\x6c\x69\x6f\156\x66\151\163\150\137\143\157\155\163\150\x6f\160\137\x6d\145\x6d\142\x65\x72",
         array("\x63\x6f\x6d\x6d\151\x73\x73\x5f\x71\162\x63\157\144\x65" => $result["\x66\165\x6c\154\137\160\141\x74\150"]),
         array("\155\145\x6d\142\x65\x72\x5f\x69\144" => $member_id,
             "\x75\x6e\x69\141\143\x69\x64" => $_W["\165\156\x69\141\x63\151\144"]
         ));
     goto TSwO9; DvSFY:
     echo json_encode(array("\x63\157\144\145" => 0, "\x63\157\x6d\155\151\163\163\x5f\x71\162\143\x6f\144\145" => tomedia($commiss_qrcode)));
     goto YBMf4; yMOLQ:
     $last_community = pdo_fetch("\163\145\154\145\x63\164\40\x68\145\x61\x64\x5f\x69\144\40\x66\x72\157\155\x20" .
         tablename("\154\x69\157\x6e\x66\x69\x73\150\137\x63\x6f\155\x6d\x75\156\x69\164\x79\137\x68\x69\x73\164\157\162\x79") .
         "\40\167\150\145\x72\145\40\165\156\x69\141\x63\x69\144\x3d\x3a\x75\156\x69\141\x63\151\x64\40\x61\156\x64\40\x6d\x65\x6d\x62\145\x72\137\x69\x64\75\x3a\x6d\145\x6d\142\145\x72\137\151\x64\x20\157\162\144\x65\x72\x20\142\171\40\x61\144\144\x74\x69\x6d\145\40\144\145\x73\143\x20\154\151\155\151\164\x20\x31\x20",
         array("\x3a\x75\156\151\141\143\151\144" => $_W["\x75\x6e\151\x61\143\151\x64"],
             "\72\155\x65\155\x62\x65\162\137\x69\144" => $member_id));
     goto X1Yvx; jskEH:
     $weprogram_token = pdo_fetch("\x73\x65\154\145\143\164\x20\x6d\145\x6d\x62\x65\162\137\x69\x64\40\146\162\157\155\40" .
         tablename("\154\x69\x6f\x6e\x66\151\x73\150\137\143\157\155\x73\150\x6f\x70\137\167\145\x70\162\x6f\x67\162\141\155\x5f\164\x6f\153\x65\x6e") .
         "\40\x77\150\x65\x72\145\x20\165\156\x69\x61\x63\x69\x64\75\72\165\x6e\151\x61\143\x69\x64\40\141\156\x64\40\x74\x6f\153\x65\x6e\75\72\x74\157\153\x65\x6e\x20",
         $token_param);
     goto S2VcN; lXqC1:
     $last_community = pdo_fetch("\x73\x65\154\145\143\164\x20\151\x64\x20\141\x73\40\x68\x65\x61\x64\137\151\144\40\146\x72\x6f\155\40" .
         tablename("\x6c\151\x6f\156\x66\151\x73\x68\x5f\x63\157\x6d\155\165\156\151\164\x79\x5f\x68\x65\x61\144") .
         "\x20\x77\150\145\162\x65\x20\x75\156\151\141\143\x69\x64\75\x3a\165\156\x69\141\143\x69\x64\40\x61\x6e\x64\x20\163\164\141\x74\x65\75\61\40\x61\156\x64\40\x65\x6e\141\142\x6c\x65\x3d\x31\x20\x61\x6e\144\40\x72\145\163\164\75\x30\x20\x6f\x72\x64\145\x72\40\142\171\40\151\144\40\154\151\155\x69\x74\x20\x31",
         array("\72\165\x6e\151\141\143\x69\144" => $_W["\165\156\x69\141\143\151\144"]));
     goto hv8Ru; NTtl4:
     $token = $_GPC["\x74\157\x6b\x65\156"];
     goto kjtBf; KLiJ_:
    //
   //  $avatar = $goods_model->get_commission_user_avatar($member_info["\141\x76\141\164\141\162"], $member_id, 5); goto RxbGg; RxbGg:

   $result = $goods_model->get_commission_index_share_image($head_id, $commiss_qrcode, $avatar, $member_info["\x75\163\145\x72\156\141\155\x65"]); goto UopoE; SFb4S:

     $goods_model = load_model_class("\x70\x69\x6e\147\157\157\x64\x73"); goto hNhdh; bjdBL: H4SkS: goto ZGcy2; DEAE0: goto H4SkS; goto xxOjw; d_azK:
     $head_id = $last_community["\x68\145\x61\144\137\x69\144"]; goto PZoBq; TSwO9: echo
     json_encode(array("\x63\x6f\144\x65" => 0, "\143\157\x6d\155\x69\163\x73\x5f\161\x72\x63\x6f\144\145" => tomedia($result["\x66\x75\154\154\x5f\x70\141\164\x68"]))); goto zT5No; LepDi:
     $token_param["\x3a\164\x6f\x6b\145\x6e"] = $token; goto jskEH; xxOjw: RyvkZ: goto MRvJ3; PZoBq: gikfu: goto xkYjp; hNhdh:
     $member_id = $weprogram_token["\x6d\x65\155\142\145\x72\137\x69\x64"]; goto yMOLQ; MRvJ3:
     $commiss_qrcode = $goods_model->_get_index_wxqrcode($member_id, $head_id); goto KLiJ_; FhFK9:
     $commiss_qrcode = ''; goto T4CbH; xkYjp:
     $member_info = pdo_fetch("\x73\x65\x6c\145\143\x74\x20\x63\157\x6d\155\x69\163\163\137\x71\162\143\157\144\145\x2c\x61\x76\141\164\x61\162\54\x75\x73\x65\x72\x6e\141\x6d\x65\x20\x66\x72\x6f\155\40" .
         tablename("\154\151\157\156\x66\151\163\x68\x5f\143\157\x6d\x73\150\157\160\x5f\x6d\145\155\x62\x65\162") .
         "\x20\x77\x68\145\162\x65\40\165\x6e\x69\141\143\151\144\x3d\72\165\156\x69\141\143\x69\x64\x20\x61\x6e\144\x20\x6d\145\x6d\x62\145\x72\137\151\x64\x3d\72\x6d\x65\155\x62\x65\162\137\151\144",
         array("\x3a\165\156\151\x61\x63\151\x64" => $_W["\165\156\x69\x61\143\151\x64"],
             "\x3a\x6d\145\x6d\x62\x65\162\x5f\151\x64" => $member_id)); goto FhFK9; kjtBf:
     $token_param = array(); goto Lr1D2; tdPiv:
     echo json_encode(array("\x63\x6f\144\145" => 1, "\x6d\x73\x67" => "\xe8\257\xb7\xe5\x85\210\347\231\xbb\xe5\275\225")); goto vlRsd; X1Yvx:
     if (!empty($last_community))
     { goto HOKsx; }
     goto lXqC1; hv8Ru: HOKsx: goto yhLR3; YBMf4: die; goto DEAE0; yhLR3:
     $head_id = 0; goto MXW9O; S2VcN:
     if (!(empty($weprogram_token) || empty($weprogram_token["\x6d\x65\x6d\142\x65\x72\137\x69\144"])))
     { goto OA74M; } goto tdPiv; zT5No: die; goto bjdBL; nm8hi: global
     $_GPC; goto NTtl4; T4CbH:
     var_dump(12312);die;

     if (empty($member_info["\143\157\155\155\151\163\163\x5f\161\162\x63\x6f\x64\145"]))
     { goto RyvkZ; } goto ALmj6; ZGcy2:

 }

Function Calls

None

Variables

None

Stats

MD5 4b96c07e0f1115c77fa7b94c75736c58
Eval Count 0
Decode Time 114 ms