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 static function miniorange_oauth_client_mo_login() { global $base_url..
Decoded Output download
<? public static function miniorange_oauth_client_mo_login()
{
global $base_url;
$xX = $_GET["code"];
$xX = Html::escape($xX);
$mY = $_GET["state"];
$mY = Html::escape($mY);
if (!(isset($xX) && isset($mY))) {
goto Vh;
}
if (!(session_id() == '' || !isset($_SESSION))) {
goto wz;
}
session_start();
wz:
if (!isset($xX)) {
goto DQ;
}
$Ll = '';
if (isset($_SESSION["appname"]) && !empty($_SESSION["appname"])) {
goto dm;
}
if (!(isset($mY) && !empty($mY))) {
goto Qv;
}
$Ll = base64_decode($mY);
Qv:
goto Q8;
dm:
$Ll = $_SESSION["appname"];
Q8:
if (!empty($Ll)) {
goto sP;
}
die("No request found for this application.");
sP:
goto W6;
DQ:
if (isset($_GET["error_description"])) {
goto pl;
}
if (!isset($_GET["error"])) {
goto VI;
}
die($_GET["error"]);
VI:
goto Hr;
pl:
die($_GET["error_description"]);
Hr:
die("Invalid response");
W6:
Vh:
$xB = '';
$th = array();
$th = \Drupal::config("miniorange_oauth_client.settings")->get("miniorange_oauth_client_appval");
$xB = \Drupal::config("miniorange_oauth_client.settings")->get("miniorange_oauth_client_app");
$ro = '';
$IN = '';
$g2 = '';
$rc = '';
if (!isset($th["miniorange_oauth_client_email_attr"])) {
goto Eh;
} ?>
Did this file decode correctly?
Original Code
public static function miniorange_oauth_client_mo_login()
{
global $base_url;
$xX = $_GET["\143\157\x64\x65"];
$xX = Html::escape($xX);
$mY = $_GET["\163\164\141\164\145"];
$mY = Html::escape($mY);
if (!(isset($xX) && isset($mY))) {
goto Vh;
}
if (!(session_id() == '' || !isset($_SESSION))) {
goto wz;
}
session_start();
wz:
if (!isset($xX)) {
goto DQ;
}
$Ll = '';
if (isset($_SESSION["\141\160\x70\x6e\x61\x6d\145"]) && !empty($_SESSION["\x61\x70\x70\x6e\x61\155\x65"])) {
goto dm;
}
if (!(isset($mY) && !empty($mY))) {
goto Qv;
}
$Ll = base64_decode($mY);
Qv:
goto Q8;
dm:
$Ll = $_SESSION["\x61\x70\160\156\141\x6d\x65"];
Q8:
if (!empty($Ll)) {
goto sP;
}
die("\x4e\x6f\40\162\x65\x71\x75\145\163\164\x20\146\157\165\x6e\x64\x20\x66\157\x72\x20\x74\150\x69\163\x20\x61\x70\160\x6c\x69\x63\141\164\151\157\x6e\56");
sP:
goto W6;
DQ:
if (isset($_GET["\145\162\x72\x6f\162\137\x64\x65\x73\143\x72\x69\x70\x74\151\157\156"])) {
goto pl;
}
if (!isset($_GET["\145\x72\x72\x6f\x72"])) {
goto VI;
}
die($_GET["\x65\x72\162\157\162"]);
VI:
goto Hr;
pl:
die($_GET["\145\162\162\x6f\162\x5f\x64\145\x73\143\162\x69\160\164\151\x6f\x6e"]);
Hr:
die("\111\x6e\166\x61\x6c\x69\x64\x20\x72\x65\x73\160\x6f\x6e\x73\x65");
W6:
Vh:
$xB = '';
$th = array();
$th = \Drupal::config("\155\151\x6e\151\157\162\x61\x6e\x67\x65\x5f\x6f\x61\165\x74\150\137\x63\x6c\151\145\x6e\x74\x2e\x73\145\x74\x74\151\x6e\x67\163")->get("\x6d\151\x6e\x69\x6f\x72\141\x6e\147\x65\137\157\x61\x75\x74\x68\137\143\x6c\x69\145\x6e\164\137\x61\160\160\166\141\x6c");
$xB = \Drupal::config("\x6d\151\x6e\x69\157\x72\x61\x6e\x67\x65\137\x6f\141\165\x74\x68\x5f\143\x6c\x69\145\156\x74\x2e\163\145\164\164\151\156\x67\x73")->get("\x6d\151\x6e\x69\x6f\x72\141\156\147\x65\x5f\x6f\x61\165\x74\150\137\x63\x6c\x69\x65\x6e\164\x5f\141\160\160");
$ro = '';
$IN = '';
$g2 = '';
$rc = '';
if (!isset($th["\155\x69\156\151\157\x72\x61\x6e\147\x65\137\157\x61\x75\164\x68\x5f\x63\x6c\x69\145\156\x74\137\x65\x6d\x61\151\x6c\137\141\x74\x74\162"])) {
goto Eh;
}
Function Calls
None |
Stats
MD5 | 25b5d7cf8dd40aae19e42a4c70f255dc |
Eval Count | 0 |
Decode Time | 87 ms |