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 liteMember($params): bool|string { try { if(!empty..

Decoded Output download

<?  public function liteMember($params): bool|string { 
        try { 
 
            if(!empty($params['company'])){ 
                $exp = explode(' ', $params['company']); 
                $params['firstname'] = $exp[0]; 
                $params['lastname']  = $exp[1]; 
            } 
 
            if(empty($params['firstname']) || empty($params['phone'])){ 
                return Helpers::response(2001, 'Ltfen geerli bir telefon no giriniz!', false, "danger", ""); 
            } 
 
            if(!empty($params['reference'])){ 
                $params['message'] = @$params['message'] ." Referans Url.: ". @$params['reference']; 
            } 
 
            $params['Endpoint'] = "https://ws.wiradius.com/member_create/create_lite_member_process/{$this->apiKeySubscriber}"; 
            $params['Method']   = "POST"; 
            $params['Fields']   = [ 
                'uniq_code'                 => $this->uniqCode, 
                'first_name'                => !empty($params['firstname']) ? $params['firstname'] : '', 
                'last_name'                 => !empty($params['lastname']) ? $params['lastname'] : '', 
                'basvuru_address_bbk'       => !empty($params['bbk']) ? $params['bbk'] : '', 
                'tt_code'                   => !empty($params['tt_code']) ? $params['tt_code'] : '', 
                'member_lang'               => 'TR', 
                'mobile_no'                 => !empty($params['phone']) ? $params['phone'] : '', 
                'mobile_no_country_code'    => '90', 
                'email_address'             => !empty($params['email']) ? $params['email'] : '', 
                'city'                      => !empty($params['city']) ? $params['city'] : '', 
                'town'                      => !empty($params['town']) ? $params['town'] : '', 
                'neighborhood'              => !empty($params['neighbourhood']) ? $params['neighbourhood'] : '', 
                'street'                    => !empty($params['street']) ? $params['street'] : '', 
                'outside_door_no'           => !empty($params['building']) ? $params['building'] : '', 
                'inside_door_no'            => !empty($params['home']) ? $params['home'] : '', 
                'aciklama'                  => !empty($params['message']) ? $params['message'] : @json_encode($params, JSON_UNESCAPED_UNICODE) 
            ]; 
 
            $result = Wiradius::call($params); 
            if(!empty($result)){ 
                $result = json_decode($result, true); 
                return Helpers::response($result['code'], $result['message'], $result['status'], $result['type'], $result['data']['data']); 
            } 
 
            return Helpers::response(2001, 'Hatal n kayt', false, "danger", array("Err" => $result)); 
 
 
        }catch (\PDOException $e) { 
            return Helpers::response($e->getCode(), $e->getMessage(), false, "danger", $e->getTrace()); 
        } 
    } ?>

Did this file decode correctly?

Original Code

public function liteMember($params): bool|string {
        try {

            if(!empty($params['company'])){
                $exp = explode(' ', $params['company']);
                $params['firstname'] = $exp[0];
                $params['lastname']  = $exp[1];
            }

            if(empty($params['firstname']) || empty($params['phone'])){
                return Helpers::response(2001, 'Ltfen geerli bir telefon no giriniz!', false, "danger", "");
            }

            if(!empty($params['reference'])){
                $params['message'] = @$params['message'] ." Referans Url.: ". @$params['reference'];
            }

            $params['Endpoint'] = "https://ws.wiradius.com/member_create/create_lite_member_process/{$this->apiKeySubscriber}";
            $params['Method']   = "POST";
            $params['Fields']   = [
                'uniq_code'                 => $this->uniqCode,
                'first_name'                => !empty($params['firstname']) ? $params['firstname'] : '',
                'last_name'                 => !empty($params['lastname']) ? $params['lastname'] : '',
                'basvuru_address_bbk'       => !empty($params['bbk']) ? $params['bbk'] : '',
                'tt_code'                   => !empty($params['tt_code']) ? $params['tt_code'] : '',
                'member_lang'               => 'TR',
                'mobile_no'                 => !empty($params['phone']) ? $params['phone'] : '',
                'mobile_no_country_code'    => '90',
                'email_address'             => !empty($params['email']) ? $params['email'] : '',
                'city'                      => !empty($params['city']) ? $params['city'] : '',
                'town'                      => !empty($params['town']) ? $params['town'] : '',
                'neighborhood'              => !empty($params['neighbourhood']) ? $params['neighbourhood'] : '',
                'street'                    => !empty($params['street']) ? $params['street'] : '',
                'outside_door_no'           => !empty($params['building']) ? $params['building'] : '',
                'inside_door_no'            => !empty($params['home']) ? $params['home'] : '',
                'aciklama'                  => !empty($params['message']) ? $params['message'] : @json_encode($params, JSON_UNESCAPED_UNICODE)
            ];

            $result = Wiradius::call($params);
            if(!empty($result)){
                $result = json_decode($result, true);
                return Helpers::response($result['code'], $result['message'], $result['status'], $result['type'], $result['data']['data']);
            }

            return Helpers::response(2001, 'Hatal n kayt', false, "danger", array("Err" => $result));


        }catch (\PDOException $e) {
            return Helpers::response($e->getCode(), $e->getMessage(), false, "danger", $e->getTrace());
        }
    }

Function Calls

None

Variables

None

Stats

MD5 4bf58f2d9b56df502adb550fd41db884
Eval Count 0
Decode Time 56 ms