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 namespace MOLDAP_DIR_SEARCH\LicenseLibrary\Utils; use MOLDAP_DIR_SEARCH\Lice..

Decoded Output download

<?php 
 
 
namespace MOLDAP_DIR_SEARCH\LicenseLibrary\Utils; 
 
use MOLDAP_DIR_SEARCH\LicenseLibrary\Classes\Mo_License_API_Client; 
use MOLDAP_DIR_SEARCH\LicenseLibrary\Classes\Mo_License_Constants; 
use MOLDAP_DIR_SEARCH\LicenseLibrary\Mo_License_Config; 
if (defined("ABSPATH")) { 
    goto U1; 
} 
exit; 
U1: 
class Mo_License_Actions_Utility 
{ 
    public static $environment_type; 
    public function __construct() 
    { 
        self::$environment_type = $this->get_environment_type(); 
    } 
    public static function fetch_license_expiry_date() 
    { 
        try { 
            $om = Mo_License_API_Client::fetch_license_info(); 
            if (!empty($om)) { 
                goto Bd; 
            } 
            return false; 
            Bd: 
            $om = json_decode($om, true); 
            if (!(!empty($om["status"]) && strcasecmp($om["status"], "SUCCESS") === 0)) { 
                goto xM; 
            } 
            if (empty($om["licenseExpiry"])) { 
                goto kR; 
            } 
            return $om["licenseExpiry"]; 
            kR: 
            return false; 
            xM: 
            return false; 
        } catch (\Exception $UJ) { 
            return false; 
        } 
    } 
    public static function get_current_environment_hook_name($ri) 
    { 
        return Mo_License_Constants::ENVIRONMENT_SPECIFIC_HOOKS[$ri][self::$environment_type]; 
    } 
    public static function get_environment_type() 
    { 
        if (!function_exists("is_plugin_active_for_network")) { 
            require_once ABSPATH . "/wp-admin/includes/plugin.php"; 
        } 
        if (!is_plugin_active_for_network(Mo_License_Config::PLUGIN_FILE)) { 
            goto Z4; 
        } 
        return "network"; 
        Z4: 
        return "standalone"; 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php


namespace MOLDAP_DIR_SEARCH\LicenseLibrary\Utils;

use MOLDAP_DIR_SEARCH\LicenseLibrary\Classes\Mo_License_API_Client;
use MOLDAP_DIR_SEARCH\LicenseLibrary\Classes\Mo_License_Constants;
use MOLDAP_DIR_SEARCH\LicenseLibrary\Mo_License_Config;
if (defined("\x41\102\x53\x50\x41\124\x48")) {
    goto U1;
}
exit;
U1:
class Mo_License_Actions_Utility
{
    public static $environment_type;
    public function __construct()
    {
        self::$environment_type = $this->get_environment_type();
    }
    public static function fetch_license_expiry_date()
    {
        try {
            $om = Mo_License_API_Client::fetch_license_info();
            if (!empty($om)) {
                goto Bd;
            }
            return false;
            Bd:
            $om = json_decode($om, true);
            if (!(!empty($om["\x73\x74\141\164\x75\163"]) && strcasecmp($om["\x73\164\141\x74\165\163"], "\123\x55\x43\x43\105\123\123") === 0)) {
                goto xM;
            }
            if (empty($om["\x6c\x69\143\x65\156\x73\x65\105\x78\160\x69\162\x79"])) {
                goto kR;
            }
            return $om["\x6c\x69\143\x65\156\x73\x65\x45\x78\x70\151\162\x79"];
            kR:
            return false;
            xM:
            return false;
        } catch (\Exception $UJ) {
            return false;
        }
    }
    public static function get_current_environment_hook_name($ri)
    {
        return Mo_License_Constants::ENVIRONMENT_SPECIFIC_HOOKS[$ri][self::$environment_type];
    }
    public static function get_environment_type()
    {
        if (!function_exists("\x69\x73\137\x70\154\165\147\151\156\x5f\141\143\164\x69\166\145\x5f\146\x6f\x72\137\x6e\145\x74\167\x6f\162\x6b")) {
            require_once ABSPATH . "\57\x77\x70\55\141\x64\x6d\151\156\57\151\156\x63\154\x75\144\145\x73\x2f\160\x6c\x75\x67\x69\x6e\56\160\150\160";
        }
        if (!is_plugin_active_for_network(Mo_License_Config::PLUGIN_FILE)) {
            goto Z4;
        }
        return "\x6e\145\x74\167\x6f\x72\x6b";
        Z4:
        return "\x73\x74\141\156\x64\x61\154\x6f\x6e\x65";
    }
}

Function Calls

None

Variables

None

Stats

MD5 ff7b2145c38f644341824f2467f78516
Eval Count 0
Decode Time 67 ms