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 /** * This file is a part of the miniorange-saml-20-single-sign-on plugin. * ..
Decoded Output download
<?php
/**
* This file is a part of the miniorange-saml-20-single-sign-on plugin.
*
* @link https://plugins.miniorange.com/
* @author miniOrange
* @package miniorange-saml-20-single-sign-on
*/
namespace MOSAML\LicenseLibrary\Utils;
use MOSAML\LicenseLibrary\Classes\Mo_License_API_Client;
use MOSAML\LicenseLibrary\Classes\Mo_License_Constants;
use MOSAML\LicenseLibrary\Classes\Mo_License_Library;
use MOSAML\LicenseLibrary\Mo_License_Config;
use MOSAML\LicenseLibrary\Classes\Mo_License_Dao;
if (defined("ABSPATH")) {
goto S6;
}
exit;
S6:
class Mo_License_Actions_Utility
{
public static function fetch_license_expiry_date()
{
try {
$sW = Mo_License_API_Client::fetch_license_info();
if (!empty($sW)) {
goto Vc;
}
return false;
Vc:
$sW = json_decode($sW, true);
if (!(!empty($sW["status"]) && strcasecmp($sW["status"], "SUCCESS") === 0)) {
goto Ne;
}
if (empty($sW["licenseExpiry"])) {
goto XU;
}
return $sW["licenseExpiry"];
XU:
return false;
Ne:
return false;
} catch (\Exception $XJ) {
return false;
}
}
public static function get_current_environment_hook_name($NH)
{
return Mo_License_Constants::ENVIRONMENT_SPECIFIC_HOOKS[$NH][Mo_License_Library::$environment_type];
}
public static function get_environment_type()
{
if (!function_exists("is_plugin_active_for_network")) {
require_once ABSPATH . "/wp-admin/includes/plugin.php";
}
$M1 = explode("/", Mo_License_Config::PLUGIN_FILE);
$RF = (array) Mo_License_Dao::mo_get_option("active_sitewide_plugins", array());
if (is_plugin_active_for_network(Mo_License_Config::PLUGIN_FILE)) {
goto R4;
}
if (!empty($RF)) {
goto Tz;
}
goto gq;
R4:
return "network";
goto gq;
Tz:
foreach ($RF as $sd => $Hr) {
if (!(strpos($sd, $M1[0]) !== false)) {
goto sy;
}
return "network";
sy:
Co:
}
rp:
gq:
return "standalone";
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* This file is a part of the miniorange-saml-20-single-sign-on plugin.
*
* @link https://plugins.miniorange.com/
* @author miniOrange
* @package miniorange-saml-20-single-sign-on
*/
namespace MOSAML\LicenseLibrary\Utils;
use MOSAML\LicenseLibrary\Classes\Mo_License_API_Client;
use MOSAML\LicenseLibrary\Classes\Mo_License_Constants;
use MOSAML\LicenseLibrary\Classes\Mo_License_Library;
use MOSAML\LicenseLibrary\Mo_License_Config;
use MOSAML\LicenseLibrary\Classes\Mo_License_Dao;
if (defined("\x41\102\x53\x50\x41\124\110")) {
goto S6;
}
exit;
S6:
class Mo_License_Actions_Utility
{
public static function fetch_license_expiry_date()
{
try {
$sW = Mo_License_API_Client::fetch_license_info();
if (!empty($sW)) {
goto Vc;
}
return false;
Vc:
$sW = json_decode($sW, true);
if (!(!empty($sW["\x73\164\x61\x74\x75\x73"]) && strcasecmp($sW["\x73\x74\x61\x74\x75\163"], "\x53\125\103\103\105\123\x53") === 0)) {
goto Ne;
}
if (empty($sW["\x6c\x69\x63\145\x6e\163\145\105\x78\x70\x69\162\x79"])) {
goto XU;
}
return $sW["\x6c\151\x63\x65\156\x73\145\x45\x78\x70\151\x72\171"];
XU:
return false;
Ne:
return false;
} catch (\Exception $XJ) {
return false;
}
}
public static function get_current_environment_hook_name($NH)
{
return Mo_License_Constants::ENVIRONMENT_SPECIFIC_HOOKS[$NH][Mo_License_Library::$environment_type];
}
public static function get_environment_type()
{
if (!function_exists("\151\x73\x5f\x70\x6c\165\147\x69\x6e\137\x61\143\x74\x69\x76\x65\137\x66\x6f\x72\137\x6e\x65\x74\x77\x6f\162\x6b")) {
require_once ABSPATH . "\57\167\160\55\141\144\155\151\x6e\x2f\151\156\143\154\165\x64\x65\163\57\160\154\x75\147\151\x6e\x2e\x70\x68\x70";
}
$M1 = explode("\57", Mo_License_Config::PLUGIN_FILE);
$RF = (array) Mo_License_Dao::mo_get_option("\141\143\x74\151\x76\145\137\x73\151\164\x65\167\151\x64\145\x5f\160\x6c\165\147\x69\156\x73", array());
if (is_plugin_active_for_network(Mo_License_Config::PLUGIN_FILE)) {
goto R4;
}
if (!empty($RF)) {
goto Tz;
}
goto gq;
R4:
return "\x6e\x65\x74\x77\157\162\153";
goto gq;
Tz:
foreach ($RF as $sd => $Hr) {
if (!(strpos($sd, $M1[0]) !== false)) {
goto sy;
}
return "\156\145\x74\x77\x6f\x72\x6b";
sy:
Co:
}
rp:
gq:
return "\x73\164\x61\x6e\144\141\154\157\x6e\x65";
}
}
Function Calls
| None |
Stats
| MD5 | ef6ce249dcf4bbf7b05ed3c9f19bd19a |
| Eval Count | 0 |
| Decode Time | 89 ms |