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 MiniOrange\Helper; use MiniOrange\Helper\Utilities; class PluginS..
Decoded Output download
<?php
namespace MiniOrange\Helper;
use MiniOrange\Helper\Utilities;
class PluginSettings
{
private static $obj;
public static function getPluginSettings()
{
if (isset(self::$obj)) {
goto Dh;
}
self::$obj = new PluginSettings();
Dh:
return self::$obj;
}
public function getIdpName()
{
return self::get_option("saml_identity_name");
}
public function getIdpEntityId()
{
return self::get_option("idp_entity_id");
}
public function getSamlLoginUrl()
{
return self::get_option("saml_login_url");
}
public function getX509Certificate()
{
return self::get_option("saml_x509_certificate");
}
public function getSamlLogoutUrl()
{
return self::get_option("saml_logout_url");
}
public function getLoginBindingType()
{
return self::get_option("saml_login_binding_type");
}
public function getForceAuthentication()
{
if (self::get_option("force_authentication") != false) {
goto bV;
}
return FALSE;
goto an;
bV:
return TRUE;
an:
}
public function getSiteBaseUrl()
{
return self::get_option("sp_base_url");
}
public function getSpEntityId()
{
return self::get_option("sp_entity_id");
}
public function getAcsUrl()
{
return self::get_option("acs_url");
}
public function getSingleLogoutUrl()
{
return self::get_option("single_logout_url");
}
public function getAssertionSigned()
{
return true;
}
public function getResponseSigned()
{
return true;
}
public function getSamlAmEmail()
{
return self::get_option("saml_am_email");
}
public function getSamlAmUsername()
{
return self::get_option("saml_am_username");
}
public function getApplicationUrl()
{
return self::get_option("application_url");
}
public function getSiteLogoutUrl()
{
return self::get_option("site_logout_url");
}
public function getCustomAttributeMapping()
{
return self::get_option("mo_saml_custom_attrs_mapping");
}
public function getSessionIndex()
{
$TE = self::get_option("session_index");
self::delete_option("session_index");
return $TE;
}
public function setSessionIndex($pp)
{
self::update_option("session_index", $pp);
}
public static function get_option($pf)
{
$rg = self::get_options();
if (!empty($rg)) {
goto gL;
}
return false;
goto PC;
gL:
if (array_key_exists($pf, $rg)) {
goto i3;
}
return false;
goto vH;
i3:
return $rg[$pf];
vH:
PC:
}
public static function update_option($pf, $E3)
{
$sw = self::get_options();
if (!empty($sw)) {
goto V9;
}
$sw = array();
V9:
$lO = array($pf => $E3);
$qD = array_merge($sw, $lO);
$YX = self::getOptionsFilePath();
$qz = json_encode($qD, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
file_put_contents($YX, $qz);
}
public static function delete_option($pf)
{
$rg = self::get_options();
unset($rg[$pf]);
$YX = self::getOptionsFilePath();
$qz = json_encode($rg, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
file_put_contents($YX, $qz);
}
private static function get_options()
{
$wt = '';
if (!file_exists(self::getOptionsFilePath())) {
goto wF;
}
$wt = file_get_contents(self::getOptionsFilePath());
wF:
$wP = json_decode($wt, true);
return $wP;
}
public static function getOptionsFilePath()
{
return dirname(__FILE__) . DIRECTORY_SEPARATOR . "data" . DIRECTORY_SEPARATOR . "options.json";
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace MiniOrange\Helper;
use MiniOrange\Helper\Utilities;
class PluginSettings
{
private static $obj;
public static function getPluginSettings()
{
if (isset(self::$obj)) {
goto Dh;
}
self::$obj = new PluginSettings();
Dh:
return self::$obj;
}
public function getIdpName()
{
return self::get_option("\163\141\155\x6c\x5f\151\x64\x65\156\x74\x69\x74\171\x5f\x6e\141\x6d\x65");
}
public function getIdpEntityId()
{
return self::get_option("\151\x64\160\137\x65\156\164\151\x74\171\x5f\x69\144");
}
public function getSamlLoginUrl()
{
return self::get_option("\x73\x61\x6d\154\x5f\154\157\x67\x69\x6e\137\165\x72\154");
}
public function getX509Certificate()
{
return self::get_option("\163\x61\155\154\137\x78\65\x30\71\137\x63\145\162\x74\x69\146\x69\x63\141\164\x65");
}
public function getSamlLogoutUrl()
{
return self::get_option("\163\x61\155\x6c\137\154\x6f\147\x6f\x75\x74\137\165\162\x6c");
}
public function getLoginBindingType()
{
return self::get_option("\163\x61\x6d\x6c\137\154\157\147\x69\156\137\x62\x69\156\x64\x69\156\147\x5f\x74\x79\x70\145");
}
public function getForceAuthentication()
{
if (self::get_option("\146\x6f\x72\143\145\137\141\x75\x74\150\x65\x6e\164\x69\x63\x61\x74\151\157\156") != false) {
goto bV;
}
return FALSE;
goto an;
bV:
return TRUE;
an:
}
public function getSiteBaseUrl()
{
return self::get_option("\163\x70\x5f\142\141\163\x65\x5f\165\x72\154");
}
public function getSpEntityId()
{
return self::get_option("\x73\160\x5f\145\x6e\x74\x69\x74\x79\137\x69\144");
}
public function getAcsUrl()
{
return self::get_option("\x61\143\163\x5f\165\162\x6c");
}
public function getSingleLogoutUrl()
{
return self::get_option("\163\x69\156\x67\154\x65\x5f\x6c\x6f\x67\157\x75\164\137\165\x72\154");
}
public function getAssertionSigned()
{
return true;
}
public function getResponseSigned()
{
return true;
}
public function getSamlAmEmail()
{
return self::get_option("\x73\x61\155\x6c\x5f\141\x6d\x5f\145\155\141\x69\154");
}
public function getSamlAmUsername()
{
return self::get_option("\163\141\x6d\x6c\x5f\x61\x6d\137\165\163\x65\x72\x6e\141\155\145");
}
public function getApplicationUrl()
{
return self::get_option("\x61\x70\x70\x6c\x69\143\x61\164\151\157\x6e\137\165\162\154");
}
public function getSiteLogoutUrl()
{
return self::get_option("\x73\151\164\145\x5f\154\x6f\x67\x6f\165\x74\x5f\x75\x72\154");
}
public function getCustomAttributeMapping()
{
return self::get_option("\155\x6f\137\163\x61\x6d\x6c\137\143\165\163\x74\157\x6d\x5f\x61\164\164\x72\163\x5f\x6d\141\160\160\151\156\147");
}
public function getSessionIndex()
{
$TE = self::get_option("\163\145\163\163\x69\x6f\x6e\x5f\x69\x6e\x64\x65\170");
self::delete_option("\163\x65\x73\163\x69\157\x6e\x5f\151\x6e\144\145\x78");
return $TE;
}
public function setSessionIndex($pp)
{
self::update_option("\x73\x65\x73\163\151\157\156\137\151\x6e\x64\145\x78", $pp);
}
public static function get_option($pf)
{
$rg = self::get_options();
if (!empty($rg)) {
goto gL;
}
return false;
goto PC;
gL:
if (array_key_exists($pf, $rg)) {
goto i3;
}
return false;
goto vH;
i3:
return $rg[$pf];
vH:
PC:
}
public static function update_option($pf, $E3)
{
$sw = self::get_options();
if (!empty($sw)) {
goto V9;
}
$sw = array();
V9:
$lO = array($pf => $E3);
$qD = array_merge($sw, $lO);
$YX = self::getOptionsFilePath();
$qz = json_encode($qD, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
file_put_contents($YX, $qz);
}
public static function delete_option($pf)
{
$rg = self::get_options();
unset($rg[$pf]);
$YX = self::getOptionsFilePath();
$qz = json_encode($rg, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
file_put_contents($YX, $qz);
}
private static function get_options()
{
$wt = '';
if (!file_exists(self::getOptionsFilePath())) {
goto wF;
}
$wt = file_get_contents(self::getOptionsFilePath());
wF:
$wP = json_decode($wt, true);
return $wP;
}
public static function getOptionsFilePath()
{
return dirname(__FILE__) . DIRECTORY_SEPARATOR . "\x64\x61\x74\x61" . DIRECTORY_SEPARATOR . "\157\x70\x74\151\x6f\x6e\163\x2e\152\x73\x6f\x6e";
}
}
Function Calls
None |
Stats
MD5 | c099d2d144870f96abbcb2c0aa2b02f3 |
Eval Count | 0 |
Decode Time | 52 ms |