Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
function mo_openid_get_redirect_url() { $pt = isset($_COOKIE["\162\145\x64\151\x72\x..
Decoded Output download
<? function mo_openid_get_redirect_url()
{
$pt = isset($_COOKIE["redirect_current_url"]) ? $_COOKIE["redirect_current_url"] : '';
$dF = strpos($_SERVER["REQUEST_URI"], "/openidcallback");
if ($dF === false) {
goto vr;
}
$wN = explode("/openidcallback", $_SERVER["REQUEST_URI"]);
$ey = $wN[0];
$x6 = explode("/openidcallback", $pt);
$pt = $x6[0];
goto VC;
vr:
$ey = str_replace("?option=moopenid", '', $_SERVER["REQUEST_URI"]);
$pt = str_replace("?option=moopenid", '', $pt);
VC:
$OU = get_option("mo_openid_login_redirect");
$zt = site_url();
if ($OU == "same") {
goto jF;
}
if ($OU == "homepage") {
goto Tm;
}
if ($OU == "dashboard") {
goto uy;
}
if ($OU == "custom") {
goto xy;
}
if (!($OU == "relative")) {
goto q0;
}
$zt = site_url() . (null !== get_option("mo_openid_relative_login_redirect_url") ? get_option("mo_openid_relative_login_redirect_url") : '');
q0:
goto AZ;
xy:
$zt = get_option("mo_openid_login_redirect_url");
AZ:
goto Bm;
uy:
$zt = admin_url();
Bm:
goto OX;
Tm:
$zt = site_url();
OX:
goto dB;
jF:
if (!is_null($pt)) {
goto gc;
}
if (isset($_SERVER["HTTPS"]) && !empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] != "off") {
goto Jq;
}
$xw = "http://";
goto MM;
Jq:
$xw = "https://";
MM:
$zt = urldecode(html_entity_decode(esc_url($xw . $_SERVER["HTTP_HOST"] . $ey)));
if (!(html_entity_decode(esc_url(remove_query_arg("ss_message", $zt))) == wp_login_url() || strpos($_SERVER["REQUEST_URI"], "wp-login.php") !== FALSE || strpos($_SERVER["REQUEST_URI"], "wp-admin") !== FALSE)) {
goto ky;
}
$zt = site_url() . "/";
ky:
goto XZ;
gc:
if (strpos($pt, get_option("siteurl") . "/wp-login.php") !== false) {
goto nA;
}
$zt = $pt;
goto Vr;
nA:
$zt = get_option("siteurl");
Vr:
XZ:
dB:
if (strpos($zt, "?") !== FALSE) {
goto fg;
}
$zt .= get_option("mo_openid_auto_register_enable") ? '' : "?autoregister=false";
goto Tt;
fg:
$zt .= get_option("mo_openid_auto_register_enable") ? '' : "&autoregister=false";
Tt:
return $zt;
} ?>
Did this file decode correctly?
Original Code
function mo_openid_get_redirect_url()
{
$pt = isset($_COOKIE["\162\145\x64\151\x72\x65\143\164\137\143\165\162\162\x65\156\164\x5f\x75\x72\x6c"]) ? $_COOKIE["\162\x65\144\151\x72\145\143\x74\x5f\143\x75\162\x72\145\x6e\x74\137\165\x72\x6c"] : '';
$dF = strpos($_SERVER["\x52\x45\121\125\105\x53\124\x5f\125\122\x49"], "\57\x6f\x70\x65\156\x69\x64\x63\x61\x6c\x6c\x62\141\143\x6b");
if ($dF === false) {
goto vr;
}
$wN = explode("\x2f\x6f\160\x65\x6e\x69\144\143\x61\x6c\154\142\141\x63\153", $_SERVER["\122\105\x51\x55\105\x53\x54\137\125\x52\111"]);
$ey = $wN[0];
$x6 = explode("\57\x6f\160\x65\x6e\x69\144\x63\x61\154\154\x62\141\x63\x6b", $pt);
$pt = $x6[0];
goto VC;
vr:
$ey = str_replace("\77\157\160\x74\x69\157\156\x3d\x6d\157\157\x70\145\x6e\x69\x64", '', $_SERVER["\x52\x45\121\x55\x45\123\124\137\x55\122\111"]);
$pt = str_replace("\x3f\x6f\x70\164\151\x6f\x6e\75\155\x6f\157\x70\x65\156\x69\x64", '', $pt);
VC:
$OU = get_option("\155\157\x5f\x6f\x70\145\x6e\151\x64\137\x6c\157\147\151\x6e\137\162\x65\144\151\162\x65\x63\164");
$zt = site_url();
if ($OU == "\x73\141\x6d\145") {
goto jF;
}
if ($OU == "\x68\x6f\x6d\x65\160\x61\x67\145") {
goto Tm;
}
if ($OU == "\144\x61\x73\x68\142\x6f\141\x72\x64") {
goto uy;
}
if ($OU == "\143\165\x73\164\x6f\x6d") {
goto xy;
}
if (!($OU == "\x72\x65\154\141\164\x69\166\145")) {
goto q0;
}
$zt = site_url() . (null !== get_option("\155\157\x5f\157\160\x65\x6e\151\144\x5f\162\x65\x6c\141\164\x69\x76\145\x5f\154\157\147\151\x6e\137\162\x65\144\x69\x72\x65\143\164\x5f\x75\162\x6c") ? get_option("\155\157\137\157\160\145\x6e\151\144\x5f\162\145\x6c\141\x74\x69\166\x65\137\x6c\157\x67\x69\x6e\x5f\x72\145\144\x69\x72\145\x63\x74\137\x75\162\154") : '');
q0:
goto AZ;
xy:
$zt = get_option("\155\157\137\157\160\145\156\x69\x64\137\154\157\147\x69\156\x5f\162\145\144\151\162\x65\x63\164\x5f\x75\162\x6c");
AZ:
goto Bm;
uy:
$zt = admin_url();
Bm:
goto OX;
Tm:
$zt = site_url();
OX:
goto dB;
jF:
if (!is_null($pt)) {
goto gc;
}
if (isset($_SERVER["\x48\x54\124\120\x53"]) && !empty($_SERVER["\x48\x54\x54\120\x53"]) && $_SERVER["\110\124\124\x50\x53"] != "\157\146\146") {
goto Jq;
}
$xw = "\x68\x74\x74\x70\x3a\x2f\57";
goto MM;
Jq:
$xw = "\x68\164\x74\160\x73\x3a\x2f\57";
MM:
$zt = urldecode(html_entity_decode(esc_url($xw . $_SERVER["\110\124\x54\x50\x5f\110\x4f\x53\x54"] . $ey)));
if (!(html_entity_decode(esc_url(remove_query_arg("\163\163\x5f\x6d\x65\x73\163\141\147\145", $zt))) == wp_login_url() || strpos($_SERVER["\122\x45\121\125\x45\x53\124\137\x55\x52\x49"], "\x77\x70\x2d\154\157\147\151\x6e\x2e\160\150\160") !== FALSE || strpos($_SERVER["\x52\x45\x51\x55\x45\123\x54\137\125\x52\111"], "\167\160\55\x61\x64\155\x69\156") !== FALSE)) {
goto ky;
}
$zt = site_url() . "\x2f";
ky:
goto XZ;
gc:
if (strpos($pt, get_option("\x73\151\x74\145\165\162\154") . "\57\167\160\55\x6c\157\x67\151\x6e\x2e\160\x68\x70") !== false) {
goto nA;
}
$zt = $pt;
goto Vr;
nA:
$zt = get_option("\x73\x69\164\x65\x75\162\x6c");
Vr:
XZ:
dB:
if (strpos($zt, "\77") !== FALSE) {
goto fg;
}
$zt .= get_option("\155\x6f\x5f\157\x70\145\x6e\151\144\x5f\141\x75\x74\157\137\x72\145\x67\151\x73\164\x65\x72\137\x65\156\141\x62\x6c\145") ? '' : "\x3f\141\x75\164\x6f\162\145\x67\151\x73\x74\x65\162\75\x66\x61\x6c\163\x65";
goto Tt;
fg:
$zt .= get_option("\155\157\x5f\157\x70\x65\x6e\x69\144\x5f\x61\x75\x74\157\x5f\x72\x65\x67\151\x73\164\x65\x72\137\x65\x6e\x61\x62\154\145") ? '' : "\x26\141\x75\x74\157\162\x65\147\x69\163\x74\145\162\75\146\141\154\163\145";
Tt:
return $zt;
}
Function Calls
None |
Stats
MD5 | 51789a3256c009aff9e2c7036d21f7da |
Eval Count | 0 |
Decode Time | 38 ms |