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 class TRIPost { public function __construct() { } public s..

Decoded Output download

<?php 
 
 
class TRIPost 
{ 
    public function __construct() 
    { 
    } 
    public static function isPost() 
    { 
        return $_SERVER["REQUEST_METHOD"] == "POST"; 
    } 
    public static function getRemarks() 
    { 
        $B6jQS = [1, 2, 3]; 
        $VBczZ = []; 
        if (!in_array($_POST["tri_moving_size"], $B6jQS)) { 
            goto Okjzs; 
        } 
        $VBczZ = ["tri_moving_comment_" . $_POST["tri_moving_size"] => '']; 
        Okjzs: 
        if (!($_POST["tri_moving_size"] == 4)) { 
            goto Kkdvy; 
        } 
        $VBczZ = ["tri_boxes_small" => "Small boxes (30x30x30cm, max. 11kg): ", "tri_boxes_medium" => "Medium boxes (46x46x46cm, max. 19kg): ", "tri_boxes_large" => "Large boxes (61x46x46cm, max. 27kg): ", "tri_moving_comment_4" => "Other boxes/luggage: "]; 
        Kkdvy: 
        $q10K6 = []; 
        foreach ($VBczZ as $STb3e => $dzLYG) { 
            if (empty($_POST[$STb3e])) { 
                goto TPi7k; 
            } 
            $q10K6[] = $dzLYG . $_POST[$STb3e]; 
            TPi7k: 
            XH4W5: 
        } 
        MHDnq: 
        return empty($q10K6) ? '' : implode("\xd\xa", $q10K6); 
    } 
    public static function buildPost() 
    { 
        $myrfN = ["city_from" => $_POST["tri_city_from"], "country_from" => $_POST["tri_country_from"], "zipcode_from" => $_POST["tri_postcode_from"], "street_from" => $_POST["tri_street_from"], "city_to" => $_POST["tri_city_to"], "country_to" => $_POST["tri_country_to"], "email" => $_POST["tri_email"], "full_name" => $_POST["tri_full_name"], "company_name" => $_POST["tri_company_name"], "telephone1" => $_POST["tri_telephone1"], "moving_date" => date("Y-m-d", strtotime($_POST["tri_moving_date"])), "moving_size" => $_POST["tri_moving_size"], "remarks" => self::getRemarks(), "volume" => '', "storage" => 0, "packing" => 0, "assembly" => 0, "business" => $_POST["tri_type_of_move"]]; 
        return $myrfN; 
    } 
    public static function sendPost($myrfN) 
    { 
        $GOi7m = "https://affiliate-partner-forms.triglobal.info/api.php"; 
        $YmDuj = "f378cda27a919678e92023773eb7c3b1"; 
        $GOi7m = add_query_arg("token", $YmDuj, $GOi7m); 
        $Fq4Cn = curl_init(); 
        curl_setopt($Fq4Cn, CURLOPT_URL, $GOi7m); 
        curl_setopt($Fq4Cn, CURLOPT_POST, true); 
        curl_setopt($Fq4Cn, CURLOPT_POSTFIELDS, http_build_query($myrfN)); 
        curl_setopt($Fq4Cn, CURLOPT_RETURNTRANSFER, true); 
        $mUesY = curl_exec($Fq4Cn); 
        curl_close($Fq4Cn); 
        return $mUesY; 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php


class TRIPost
{
    public function __construct()
    {
    }
    public static function isPost()
    {
        return $_SERVER["\122\105\121\x55\105\123\x54\x5f\115\105\124\x48\117\104"] == "\120\x4f\123\x54";
    }
    public static function getRemarks()
    {
        $B6jQS = [1, 2, 3];
        $VBczZ = [];
        if (!in_array($_POST["\164\x72\x69\137\155\x6f\x76\151\156\147\137\x73\151\172\x65"], $B6jQS)) {
            goto Okjzs;
        }
        $VBczZ = ["\x74\162\x69\137\x6d\x6f\x76\151\x6e\147\x5f\x63\x6f\155\x6d\x65\156\x74\137" . $_POST["\164\162\151\137\155\x6f\x76\x69\x6e\x67\x5f\x73\151\x7a\145"] => ''];
        Okjzs:
        if (!($_POST["\x74\x72\151\x5f\155\157\166\x69\156\x67\137\x73\151\172\145"] == 4)) {
            goto Kkdvy;
        }
        $VBczZ = ["\x74\162\x69\x5f\x62\157\x78\x65\163\x5f\163\155\x61\154\x6c" => "\x53\x6d\x61\x6c\154\x20\142\157\x78\x65\x73\40\50\x33\60\170\x33\60\x78\x33\60\143\x6d\54\x20\155\141\x78\56\x20\61\61\x6b\147\51\x3a\x20", "\164\162\x69\x5f\x62\157\x78\x65\x73\137\x6d\145\x64\151\x75\x6d" => "\x4d\145\144\x69\165\x6d\40\x62\157\170\145\163\40\50\x34\66\x78\64\x36\170\x34\x36\x63\155\x2c\40\155\x61\170\x2e\x20\61\71\153\147\51\x3a\x20", "\x74\162\151\x5f\142\157\x78\145\163\x5f\154\x61\162\147\x65" => "\x4c\x61\x72\147\145\x20\142\x6f\170\x65\163\x20\x28\66\x31\170\64\66\170\64\66\143\x6d\x2c\40\x6d\141\x78\56\40\62\67\x6b\x67\51\x3a\40", "\164\162\151\x5f\155\157\166\x69\x6e\147\x5f\143\157\x6d\x6d\x65\x6e\x74\137\64" => "\x4f\164\x68\x65\162\40\142\x6f\x78\145\x73\57\154\165\x67\x67\x61\147\145\72\x20"];
        Kkdvy:
        $q10K6 = [];
        foreach ($VBczZ as $STb3e => $dzLYG) {
            if (empty($_POST[$STb3e])) {
                goto TPi7k;
            }
            $q10K6[] = $dzLYG . $_POST[$STb3e];
            TPi7k:
            XH4W5:
        }
        MHDnq:
        return empty($q10K6) ? '' : implode("\xd\xa", $q10K6);
    }
    public static function buildPost()
    {
        $myrfN = ["\143\x69\164\x79\137\x66\x72\x6f\x6d" => $_POST["\x74\x72\151\137\x63\151\x74\x79\137\146\x72\x6f\x6d"], "\x63\157\165\x6e\164\x72\171\137\x66\162\x6f\x6d" => $_POST["\164\x72\151\137\x63\x6f\x75\156\x74\x72\171\137\146\x72\x6f\155"], "\172\151\160\x63\x6f\x64\x65\137\146\162\157\155" => $_POST["\164\162\x69\137\160\157\x73\x74\x63\x6f\x64\145\137\x66\x72\157\155"], "\163\164\x72\145\145\164\137\146\162\x6f\x6d" => $_POST["\164\162\x69\137\163\x74\x72\145\145\x74\x5f\x66\x72\x6f\x6d"], "\x63\x69\164\x79\x5f\164\157" => $_POST["\164\x72\151\137\x63\151\x74\x79\x5f\164\157"], "\x63\157\x75\156\164\162\x79\x5f\164\x6f" => $_POST["\164\x72\151\x5f\x63\157\x75\156\164\162\x79\x5f\164\x6f"], "\145\155\x61\x69\154" => $_POST["\x74\162\151\x5f\x65\x6d\x61\151\x6c"], "\146\x75\154\x6c\x5f\156\141\155\145" => $_POST["\x74\162\151\137\x66\x75\154\x6c\x5f\x6e\141\x6d\145"], "\x63\x6f\155\x70\141\x6e\x79\x5f\x6e\x61\155\x65" => $_POST["\x74\x72\x69\137\x63\x6f\155\x70\x61\156\x79\x5f\156\x61\x6d\x65"], "\164\x65\x6c\x65\160\x68\157\156\145\x31" => $_POST["\x74\x72\x69\137\164\x65\x6c\x65\160\x68\x6f\x6e\145\x31"], "\x6d\x6f\166\x69\156\x67\137\144\141\164\x65" => date("\x59\55\x6d\x2d\144", strtotime($_POST["\x74\162\151\x5f\x6d\x6f\x76\151\156\147\137\144\x61\164\145"])), "\x6d\157\x76\151\156\x67\x5f\x73\151\x7a\x65" => $_POST["\164\162\x69\x5f\155\x6f\166\151\x6e\147\x5f\163\151\172\x65"], "\x72\x65\155\x61\x72\x6b\163" => self::getRemarks(), "\x76\x6f\154\x75\155\x65" => '', "\x73\164\157\x72\x61\x67\x65" => 0, "\x70\x61\x63\153\151\156\147" => 0, "\x61\x73\x73\145\155\x62\x6c\x79" => 0, "\142\x75\x73\x69\156\x65\x73\163" => $_POST["\164\162\x69\137\164\171\160\x65\x5f\157\x66\137\x6d\157\166\145"]];
        return $myrfN;
    }
    public static function sendPost($myrfN)
    {
        $GOi7m = "\150\164\x74\160\163\72\57\57\x61\x66\146\x69\154\151\141\164\145\55\160\x61\x72\164\x6e\x65\162\55\x66\x6f\x72\155\x73\56\164\162\151\x67\154\157\x62\141\x6c\56\151\x6e\146\157\57\141\160\x69\x2e\160\150\x70";
        $YmDuj = "\146\63\x37\x38\143\144\141\62\67\141\71\61\71\x36\67\70\x65\71\x32\60\x32\x33\x37\x37\x33\x65\142\67\x63\x33\142\x31";
        $GOi7m = add_query_arg("\x74\157\153\145\156", $YmDuj, $GOi7m);
        $Fq4Cn = curl_init();
        curl_setopt($Fq4Cn, CURLOPT_URL, $GOi7m);
        curl_setopt($Fq4Cn, CURLOPT_POST, true);
        curl_setopt($Fq4Cn, CURLOPT_POSTFIELDS, http_build_query($myrfN));
        curl_setopt($Fq4Cn, CURLOPT_RETURNTRANSFER, true);
        $mUesY = curl_exec($Fq4Cn);
        curl_close($Fq4Cn);
        return $mUesY;
    }
}

Function Calls

None

Variables

None

Stats

MD5 fe08563b9b23aaa0fecffaf57b9e4e53
Eval Count 0
Decode Time 83 ms