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

Signing you up...

Thank you for signing up!

PHP Decode

if (!empty($params["\143\x75\x73\164\157\155\137\x66\x69\145\x6c\144\x73"])) { ..

Decoded Output download

<?  if (!empty($params["custom_fields"])) { 
            try { 
                $query = self::listQuery($params, $projectIds, $buildingIds, $params["auth_data"], $params["auth_project"]); 
                $queryOrder = self::listQueryOrder($query[0], $params); 
                $list = $queryOrder->forPage($page, $limit)->get(); 
                $totalCount = $query[1]; 
                $list = self::listMap($list, $params); 
                $followUser = OwnerUserModel::where("corporation_id", $corporationId)->whereExists(function ($query) { 
                $query->select("follow_user_id")->from("contract_follow_user")->whereRaw("dk_owner_user.id = dk_contract_follow_user.follow_user_id"); })->select("id", "name")->get()->toArray(); 
                return ["total_count" => $totalCount, "list" => $list, "follow_user" => $followUser]; 
            } 
            catch (\Exception $exception) { 
                return ["total_count" => 0, "list" => [], "follow_user" => []]; 
            } 
        } 
 
        $params["custom_fields"] = CustomFieldServer::getCustomFieldByType(["type" => 90, "corporation_id" => $corporationId]); 
 ?>

Did this file decode correctly?

Original Code

if (!empty($params["\143\x75\x73\164\157\155\137\x66\x69\145\x6c\144\x73"])) {
            try {
                $query = self::listQuery($params, $projectIds, $buildingIds, $params["\x61\165\x74\150\x5f\x64\141\x74\x61"], $params["\x61\x75\x74\150\x5f\160\162\157\152\145\143\164"]);
                $queryOrder = self::listQueryOrder($query[0], $params);
                $list = $queryOrder->forPage($page, $limit)->get();
                $totalCount = $query[1];
                $list = self::listMap($list, $params);
                $followUser = OwnerUserModel::where("\143\x6f\x72\160\157\162\x61\164\151\x6f\156\137\151\x64", $corporationId)->whereExists(function ($query) {
                $query->select("\x66\157\x6c\154\157\x77\137\x75\163\x65\162\137\x69\144")->from("\x63\157\x6e\x74\x72\x61\143\164\137\x66\x6f\x6c\154\157\x77\137\x75\x73\145\162")->whereRaw("\144\153\x5f\x6f\x77\156\x65\162\137\x75\x73\x65\x72\x2e\x69\144\40\75\40\x64\153\137\143\x6f\x6e\x74\162\x61\143\x74\137\146\x6f\154\154\157\167\137\165\163\x65\162\56\146\157\154\154\157\x77\137\165\x73\145\x72\137\x69\x64"); })->select("\151\x64", "\156\141\x6d\145")->get()->toArray();
                return ["\164\x6f\164\141\x6c\137\143\x6f\x75\156\x74" => $totalCount, "\154\x69\163\164" => $list, "\146\157\x6c\x6c\157\x77\x5f\x75\163\x65\162" => $followUser];
            }
            catch (\Exception $exception) {
                return ["\x74\157\164\x61\154\137\x63\157\165\x6e\164" => 0, "\x6c\151\163\x74" => [], "\146\x6f\154\154\157\x77\x5f\x75\163\x65\x72" => []];
            }
        }

        $params["\x63\165\x73\164\x6f\x6d\x5f\x66\151\145\x6c\144\163"] = CustomFieldServer::getCustomFieldByType(["\x74\x79\x70\145" => 90, "\143\x6f\162\x70\x6f\162\x61\164\151\x6f\x6e\137\x69\x64" => $corporationId]);

Function Calls

None

Variables

None

Stats

MD5 11265a0c3138d2af94bfe8a4a9b59bb2
Eval Count 0
Decode Time 55 ms