Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
private function processUserAction($lf, $Xq, $XX, $ul, $VA, $Y6, $jR, $pU, $ly, $GK, $tz, ..
Decoded Output download
<? private function processUserAction($lf, $Xq, $XX, $ul, $VA, $Y6, $jR, $pU, $ly, $GK, $tz, $eI, $UR, $Uz, $z4, $do, $DO, $tA, $Yq, $S6, $BK)
{
if (!$this->oauthUtility->isTrialExpired()) {
goto xM;
}
$this->oauthUtility->log_debug("ProcessUserAction: execute : Your demo account has expired.");
print_r("Your Demo account has expired. Please contact [email protected]");
exit;
xM:
if ($jR == "username") {
goto Xe;
}
$this->oauthUtility->log_debug("ProcessUserAction: processUerAction :: User Email");
$DH = false;
$user = null;
$DH = $this->oauthUtility->checkIfFlowStartedFromBackend($this->attrs["relayState"]);
if (!$DH) {
goto dg;
}
$this->oauthUtility->log_debug("ProcessUserAction: Inside the admin=true");
$DH = true;
$user = $this->getAdminUserFromAttributes($lf);
dg:
if ($DH) {
goto Qc;
}
$this->oauthUtility->log_debug("user not found as admin.. searching in customers");
$user = $this->getCustomerFromAttributes($lf);
Qc:
if (!$user) {
goto kr;
}
if (!$DH) {
goto EY;
}
$user = $this->getAdminUserFromAttributes($lf);
$user = $this->updateAdmin($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6);
goto Os;
EY:
$user = $this->updateCustomer($lf, $Xq, $XX, $ul, $pU, $ly, $GK, $tz, $eI, $UR, $Uz, $z4, $do, $DO, $tA, $Yq, $S6, $BK, $DH, $VA, $Y6);
if (!(isset($this->updateAttribute) && strcasecmp($this->updateAttribute, "checked") === 0)) {
goto yV;
}
$user = $this->updateCustom($user, $lf);
yV:
Os:
goto Ue;
kr:
$this->oauthUtility->log_debug("no users found in customers as well as in admin");
$this->oauthUtility->log_debug("user does not exist");
$DH = $this->oauthUtility->checkIfFlowStartedFromBackend($this->attrs["relayState"]);
if ($DH) {
goto Km;
}
$a3 = $this->clientDetails["mo_oauth_auto_create_customer"];
if ($a3) {
goto L7;
}
$this->oauthUtility->log_debug("AutoCreateCustomer is disabled");
$EN = "User doesn't exist anywhere.You are not allowed to login. Please contact your administrator.";
$this->showerrorMessage($EN);
goto oP;
L7:
$this->oauthUtility->log_debug("creating new user");
$user = $this->createNewUser($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6, $pU, $ly, $GK, $tz, $UR, $Uz, $z4, $do, $DO, $tA, $S6, $BK);
oP:
goto G5;
Km:
$a3 = $this->clientDetails["mo_oauth_auto_create_admin"];
if ($a3) {
goto Fd;
}
$this->oauthUtility->log_debug("AutoCreateAdmin is disabled");
$EN = "User doesn't exist anywhere.You are not allowed to login. Please contact your administrator.";
$this->oauthUtility->log_debug($ul . " - User Auto Creation is disabled for new Admin user. Redirecting to Login Page");
return $this->getResponse()->setBody($EN);
goto vW;
Fd:
$this->oauthUtility->log_debug("creating new user");
$user = $this->createNewUser($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6, $pU, $ly, $GK, $tz, $UR, $Uz, $z4, $do, $DO, $tA, $S6, $BK);
vW:
G5:
Ue:
if ($DH) {
goto R_;
}
$this->oauthUtility->setSessionData("customer_post_logout", 1);
$this->customerLoginAction->setUser($user)->setRelayState($this->attrs["relayState"])->execute();
goto JI;
R_:
$this->oauthUtility->setAdminSessionData("admin_post_logout", 1);
$this->oauthUtility->log_debug("flow started from admin/backend");
$this->redirectToBackendAndLogin($user->getUsername());
JI:
goto W7;
Xe:
$this->oauthUtility->log_debug("ProcessUserAction: processUerAction :: Username");
$DH = false;
$user = null;
if (!empty($ul)) {
goto I0;
}
print_r("Username not received");
return;
I0:
if (!(strpos($ul, "@") === false)) {
goto jI;
}
$ul = $ul . "[email protected]";
jI:
$DH = $this->oauthUtility->checkIfFlowStartedFromBackend($this->attrs["relayState"]);
if (!$DH) {
goto Cb;
}
$this->oauthUtility->log_debug("ProcessUserAction: Inside the admin=true");
$user = $this->getAdminUserFromAttributes($lf);
Cb:
if ($DH) {
goto OK;
}
$this->oauthUtility->log_debug("user not found as admin.. searching in customers");
$DH = true;
$user = $this->getCustomerFromAttributes($lf);
OK:
if (!$user) {
goto WF;
}
if (!$DH) {
goto nk;
}
$user = $this->getAdminUserFromAttributes($lf);
$user = $this->updateAdmin($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6);
goto YR;
nk:
$user = $this->updateCustomer($lf, $Xq, $XX, $ul, $pU, $ly, $GK, $tz, $eI, $UR, $Uz, $z4, $do, $DO, $tA, $Yq, $S6, $BK, $DH, $VA, $Y6);
if (!(isset($this->updateAttribute) && strcasecmp($this->updateAttribute, "checked") === 0)) {
goto OH;
}
$user = $this->updateCustom($user, $lf);
OH:
YR:
goto s2;
WF:
$this->oauthUtility->log_debug("no users found in customers as well as in admin");
$this->oauthUtility->log_debug("user does not exist");
$DH = $this->oauthUtility->checkIfFlowStartedFromBackend($this->attrs["relayState"]);
if ($DH) {
goto hk;
}
$a3 = $this->clientDetails["mo_oauth_auto_create_customer"];
$this->oauthUtility->log_debug("autocreatecustomer: ", $a3);
if ($a3) {
goto dB;
}
$this->oauthUtility->log_debug("AutoCreateCustomer is disabled");
$EN = "User doesn't exist anywhere. You are not allowed to login. Please contact your administrator.";
$this->showerrorMessage($EN);
goto lq;
dB:
$this->oauthUtility->log_debug("creating new user");
$user = $this->createNewUser($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6, $pU, $ly, $GK, $tz, $UR, $Uz, $z4, $do, $DO, $tA, $S6, $BK);
lq:
goto Fh;
hk:
$a3 = $this->clientDetails["mo_oauth_auto_create_admin"];
if ($a3) {
goto KQ;
}
$this->oauthUtility->log_debug("AutoCreateAdmin is disabled");
$EN = "User doesn't exist anywhere. You are not allowed to login. Please contact your administrator.";
return $this->getResponse()->setBody($EN);
goto CM;
KQ:
$this->oauthUtility->log_debug("creating new user");
$user = $this->createNewUser($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6, $pU, $ly, $GK, $tz, $UR, $Uz, $z4, $do, $DO, $tA, $S6, $BK);
CM:
Fh:
s2:
if ($DH) {
goto JN;
}
$this->oauthUtility->setSessionData("customer_post_logout", 1);
$this->customerLoginAction->setUser($user)->setRelayState($this->attrs["relayState"])->execute();
goto Ew;
JN:
$this->oauthUtility->setAdminSessionData("admin_post_logout", 1);
$this->oauthUtility->log_debug("flow started from admin/backend");
$this->oauthUtility->log_debug("Before RedirecttoBackendAndLogin getID" . $user->getId());
$this->redirectToBackendAndLogin($user->getUsername());
Ew:
W7:
} ?>
Did this file decode correctly?
Original Code
private function processUserAction($lf, $Xq, $XX, $ul, $VA, $Y6, $jR, $pU, $ly, $GK, $tz, $eI, $UR, $Uz, $z4, $do, $DO, $tA, $Yq, $S6, $BK)
{
if (!$this->oauthUtility->isTrialExpired()) {
goto xM;
}
$this->oauthUtility->log_debug("\120\x72\157\x63\x65\x73\x73\x55\x73\x65\x72\x41\143\x74\151\157\156\72\x20\x65\x78\145\143\165\164\x65\40\72\40\x59\157\x75\x72\40\144\x65\155\157\40\141\143\143\157\165\156\x74\40\150\x61\163\40\x65\x78\x70\151\162\145\144\56");
print_r("\x59\157\165\x72\40\104\x65\155\x6f\40\x61\143\x63\x6f\x75\156\x74\x20\x68\x61\163\40\x65\170\x70\x69\x72\145\144\56\40\120\154\145\x61\x73\145\40\143\x6f\156\164\141\143\x74\x20\x6d\141\147\145\156\x74\157\163\165\x70\x70\157\x72\x74\100\x78\x65\143\165\162\151\146\x79\56\143\157\155");
exit;
xM:
if ($jR == "\165\x73\145\x72\156\141\x6d\x65") {
goto Xe;
}
$this->oauthUtility->log_debug("\120\162\157\143\145\x73\x73\x55\163\x65\162\101\x63\164\x69\157\156\72\40\160\x72\x6f\x63\145\x73\163\x55\x65\162\101\x63\164\151\x6f\x6e\x20\72\x3a\40\125\163\145\x72\40\105\x6d\141\151\154");
$DH = false;
$user = null;
$DH = $this->oauthUtility->checkIfFlowStartedFromBackend($this->attrs["\162\145\x6c\141\171\x53\164\x61\x74\x65"]);
if (!$DH) {
goto dg;
}
$this->oauthUtility->log_debug("\x50\162\x6f\x63\145\163\163\125\163\x65\x72\101\x63\164\x69\157\x6e\x3a\x20\111\x6e\x73\x69\x64\x65\x20\x74\150\145\x20\x61\x64\155\x69\156\x3d\164\162\165\x65");
$DH = true;
$user = $this->getAdminUserFromAttributes($lf);
dg:
if ($DH) {
goto Qc;
}
$this->oauthUtility->log_debug("\165\x73\145\x72\x20\x6e\x6f\164\x20\x66\157\165\156\x64\x20\141\x73\x20\141\144\x6d\x69\156\56\x2e\40\163\145\141\162\x63\150\x69\x6e\147\40\151\156\40\x63\x75\x73\x74\157\155\145\x72\x73");
$user = $this->getCustomerFromAttributes($lf);
Qc:
if (!$user) {
goto kr;
}
if (!$DH) {
goto EY;
}
$user = $this->getAdminUserFromAttributes($lf);
$user = $this->updateAdmin($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6);
goto Os;
EY:
$user = $this->updateCustomer($lf, $Xq, $XX, $ul, $pU, $ly, $GK, $tz, $eI, $UR, $Uz, $z4, $do, $DO, $tA, $Yq, $S6, $BK, $DH, $VA, $Y6);
if (!(isset($this->updateAttribute) && strcasecmp($this->updateAttribute, "\143\150\145\x63\x6b\145\x64") === 0)) {
goto yV;
}
$user = $this->updateCustom($user, $lf);
yV:
Os:
goto Ue;
kr:
$this->oauthUtility->log_debug("\156\x6f\40\x75\x73\x65\x72\163\40\146\x6f\x75\156\x64\40\x69\156\40\143\x75\163\164\157\155\145\162\163\x20\x61\163\40\x77\x65\154\x6c\x20\141\x73\x20\151\x6e\40\141\144\x6d\x69\x6e");
$this->oauthUtility->log_debug("\165\163\x65\162\x20\144\x6f\145\163\x20\x6e\157\x74\x20\145\x78\x69\x73\164");
$DH = $this->oauthUtility->checkIfFlowStartedFromBackend($this->attrs["\x72\x65\x6c\141\x79\123\x74\141\x74\145"]);
if ($DH) {
goto Km;
}
$a3 = $this->clientDetails["\155\x6f\137\157\141\165\x74\150\x5f\x61\165\164\157\x5f\143\x72\145\141\x74\x65\137\143\165\x73\164\x6f\155\145\162"];
if ($a3) {
goto L7;
}
$this->oauthUtility->log_debug("\x41\165\x74\x6f\x43\162\x65\141\x74\145\x43\x75\x73\164\x6f\155\x65\162\40\151\x73\40\x64\151\163\141\142\154\x65\144");
$EN = "\125\163\145\162\40\144\x6f\x65\163\x6e\47\x74\40\x65\170\x69\x73\x74\x20\x61\x6e\x79\x77\x68\145\162\145\x2e\131\157\x75\40\x61\x72\145\40\x6e\x6f\x74\x20\141\154\154\x6f\x77\x65\x64\x20\164\157\x20\154\x6f\x67\151\x6e\x2e\40\x50\154\x65\x61\x73\x65\x20\x63\157\156\164\141\x63\x74\x20\171\x6f\x75\162\40\x61\x64\155\x69\156\x69\163\x74\162\x61\x74\x6f\x72\x2e";
$this->showerrorMessage($EN);
goto oP;
L7:
$this->oauthUtility->log_debug("\143\x72\x65\x61\x74\x69\x6e\147\40\156\145\x77\40\x75\x73\x65\162");
$user = $this->createNewUser($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6, $pU, $ly, $GK, $tz, $UR, $Uz, $z4, $do, $DO, $tA, $S6, $BK);
oP:
goto G5;
Km:
$a3 = $this->clientDetails["\155\x6f\137\157\141\x75\x74\150\x5f\141\165\x74\x6f\137\x63\x72\145\141\x74\145\137\x61\x64\x6d\151\x6e"];
if ($a3) {
goto Fd;
}
$this->oauthUtility->log_debug("\101\165\164\157\x43\x72\145\141\164\x65\x41\144\155\x69\x6e\40\x69\x73\x20\144\151\x73\141\142\154\x65\x64");
$EN = "\125\163\x65\x72\40\144\x6f\x65\x73\x6e\47\x74\40\145\x78\151\163\x74\40\x61\156\x79\167\x68\x65\162\x65\56\131\157\165\x20\x61\162\145\x20\156\157\x74\x20\x61\154\154\x6f\x77\145\144\40\x74\157\x20\x6c\x6f\x67\x69\156\56\x20\120\154\x65\x61\x73\145\x20\143\x6f\x6e\x74\x61\143\164\x20\x79\157\x75\162\40\x61\x64\x6d\x69\156\x69\163\164\162\x61\x74\x6f\x72\x2e";
$this->oauthUtility->log_debug($ul . "\x20\x2d\x20\x55\163\145\162\40\x41\x75\164\x6f\x20\103\162\145\x61\x74\x69\157\156\x20\x69\x73\x20\x64\x69\x73\141\142\x6c\145\144\x20\x66\157\x72\40\156\145\x77\40\x41\x64\155\x69\x6e\x20\x75\x73\145\162\x2e\x20\122\x65\x64\151\162\145\143\x74\x69\156\x67\40\x74\157\x20\114\157\147\151\x6e\40\120\x61\x67\x65");
return $this->getResponse()->setBody($EN);
goto vW;
Fd:
$this->oauthUtility->log_debug("\143\162\x65\141\164\x69\156\147\40\156\x65\x77\40\165\x73\145\162");
$user = $this->createNewUser($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6, $pU, $ly, $GK, $tz, $UR, $Uz, $z4, $do, $DO, $tA, $S6, $BK);
vW:
G5:
Ue:
if ($DH) {
goto R_;
}
$this->oauthUtility->setSessionData("\143\x75\163\164\157\x6d\x65\x72\x5f\x70\157\163\164\137\154\x6f\147\x6f\x75\x74", 1);
$this->customerLoginAction->setUser($user)->setRelayState($this->attrs["\x72\x65\154\x61\171\x53\x74\x61\x74\x65"])->execute();
goto JI;
R_:
$this->oauthUtility->setAdminSessionData("\141\144\155\151\x6e\x5f\x70\x6f\x73\x74\x5f\x6c\x6f\x67\157\165\164", 1);
$this->oauthUtility->log_debug("\146\x6c\x6f\167\x20\163\164\141\x72\x74\145\144\40\x66\162\157\155\x20\141\144\x6d\151\x6e\57\x62\x61\143\x6b\x65\156\x64");
$this->redirectToBackendAndLogin($user->getUsername());
JI:
goto W7;
Xe:
$this->oauthUtility->log_debug("\x50\x72\157\x63\145\163\163\125\x73\x65\162\x41\x63\164\151\x6f\156\72\x20\x70\162\157\x63\x65\x73\x73\x55\145\162\x41\143\164\151\x6f\156\x20\72\x3a\40\x55\x73\x65\x72\156\141\155\145");
$DH = false;
$user = null;
if (!empty($ul)) {
goto I0;
}
print_r("\x55\x73\x65\x72\156\141\x6d\145\40\x6e\157\x74\40\162\x65\x63\x65\151\x76\145\x64");
return;
I0:
if (!(strpos($ul, "\100") === false)) {
goto jI;
}
$ul = $ul . "\x6d\x61\x67\x40\155\141\x67\x65\x6e\x74\157\165\x73\145\162\x2e\143\157\155";
jI:
$DH = $this->oauthUtility->checkIfFlowStartedFromBackend($this->attrs["\162\145\154\141\171\123\164\141\164\x65"]);
if (!$DH) {
goto Cb;
}
$this->oauthUtility->log_debug("\120\x72\x6f\x63\145\163\x73\x55\x73\145\162\x41\143\164\x69\x6f\156\72\40\x49\x6e\x73\151\x64\145\x20\164\150\145\40\x61\144\155\151\x6e\x3d\x74\162\165\145");
$user = $this->getAdminUserFromAttributes($lf);
Cb:
if ($DH) {
goto OK;
}
$this->oauthUtility->log_debug("\165\163\145\162\40\x6e\157\x74\x20\146\x6f\165\156\x64\40\x61\x73\40\141\144\x6d\x69\156\x2e\x2e\40\163\145\x61\162\x63\150\x69\156\147\x20\x69\156\x20\143\x75\163\x74\x6f\x6d\x65\x72\x73");
$DH = true;
$user = $this->getCustomerFromAttributes($lf);
OK:
if (!$user) {
goto WF;
}
if (!$DH) {
goto nk;
}
$user = $this->getAdminUserFromAttributes($lf);
$user = $this->updateAdmin($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6);
goto YR;
nk:
$user = $this->updateCustomer($lf, $Xq, $XX, $ul, $pU, $ly, $GK, $tz, $eI, $UR, $Uz, $z4, $do, $DO, $tA, $Yq, $S6, $BK, $DH, $VA, $Y6);
if (!(isset($this->updateAttribute) && strcasecmp($this->updateAttribute, "\143\150\x65\143\153\x65\144") === 0)) {
goto OH;
}
$user = $this->updateCustom($user, $lf);
OH:
YR:
goto s2;
WF:
$this->oauthUtility->log_debug("\x6e\157\x20\x75\163\x65\x72\163\x20\146\157\x75\x6e\x64\x20\x69\x6e\x20\143\165\x73\164\157\155\145\162\x73\40\x61\x73\40\x77\145\154\x6c\40\x61\163\x20\x69\156\40\x61\144\x6d\x69\x6e");
$this->oauthUtility->log_debug("\165\x73\x65\x72\x20\144\157\145\163\40\x6e\x6f\164\40\145\x78\151\x73\x74");
$DH = $this->oauthUtility->checkIfFlowStartedFromBackend($this->attrs["\x72\x65\154\141\x79\123\164\x61\164\145"]);
if ($DH) {
goto hk;
}
$a3 = $this->clientDetails["\x6d\157\x5f\x6f\x61\x75\164\150\x5f\141\165\164\x6f\137\143\162\145\x61\x74\145\x5f\143\x75\163\x74\x6f\x6d\x65\x72"];
$this->oauthUtility->log_debug("\141\x75\164\x6f\x63\162\x65\141\164\145\x63\165\x73\x74\157\155\145\x72\72\x20", $a3);
if ($a3) {
goto dB;
}
$this->oauthUtility->log_debug("\x41\165\164\x6f\103\x72\145\141\164\145\x43\x75\163\164\157\x6d\145\x72\40\151\163\40\144\151\163\x61\x62\x6c\145\144");
$EN = "\125\163\145\x72\x20\144\157\x65\x73\x6e\47\164\40\145\x78\x69\x73\164\x20\x61\156\171\x77\x68\145\162\145\x2e\40\131\157\x75\40\141\162\145\40\156\x6f\164\40\x61\x6c\154\157\167\145\x64\40\x74\x6f\40\x6c\x6f\147\x69\x6e\56\x20\120\154\145\141\163\145\x20\x63\157\156\x74\141\143\x74\40\x79\157\165\162\40\141\144\155\x69\156\151\x73\x74\162\141\x74\157\x72\56";
$this->showerrorMessage($EN);
goto lq;
dB:
$this->oauthUtility->log_debug("\x63\x72\145\141\x74\151\x6e\147\x20\156\145\167\40\x75\x73\145\x72");
$user = $this->createNewUser($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6, $pU, $ly, $GK, $tz, $UR, $Uz, $z4, $do, $DO, $tA, $S6, $BK);
lq:
goto Fh;
hk:
$a3 = $this->clientDetails["\155\x6f\x5f\x6f\141\x75\x74\150\x5f\x61\x75\x74\157\137\x63\162\145\141\x74\145\x5f\x61\x64\x6d\151\x6e"];
if ($a3) {
goto KQ;
}
$this->oauthUtility->log_debug("\x41\x75\164\157\x43\x72\145\141\164\x65\101\144\155\151\156\x20\151\x73\40\x64\x69\x73\x61\142\x6c\145\144");
$EN = "\x55\163\145\x72\40\x64\x6f\145\163\x6e\47\x74\x20\x65\x78\151\x73\164\x20\x61\156\171\167\x68\x65\162\x65\56\x20\131\x6f\x75\x20\141\x72\145\40\156\x6f\164\x20\x61\154\x6c\x6f\x77\x65\x64\x20\x74\x6f\40\x6c\157\147\x69\156\x2e\x20\x50\154\x65\x61\x73\x65\x20\143\157\156\164\141\x63\164\x20\x79\157\x75\162\x20\x61\144\155\151\156\151\163\164\162\x61\x74\x6f\162\56";
return $this->getResponse()->setBody($EN);
goto CM;
KQ:
$this->oauthUtility->log_debug("\143\x72\x65\141\164\x69\x6e\x67\x20\156\145\167\40\x75\163\145\162");
$user = $this->createNewUser($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6, $pU, $ly, $GK, $tz, $UR, $Uz, $z4, $do, $DO, $tA, $S6, $BK);
CM:
Fh:
s2:
if ($DH) {
goto JN;
}
$this->oauthUtility->setSessionData("\143\165\163\164\x6f\x6d\x65\162\x5f\160\x6f\163\x74\137\x6c\157\147\x6f\165\164", 1);
$this->customerLoginAction->setUser($user)->setRelayState($this->attrs["\162\145\154\141\171\123\164\x61\x74\x65"])->execute();
goto Ew;
JN:
$this->oauthUtility->setAdminSessionData("\141\x64\x6d\151\x6e\137\x70\157\163\164\137\154\x6f\x67\x6f\x75\x74", 1);
$this->oauthUtility->log_debug("\146\154\157\167\40\x73\x74\141\x72\164\145\x64\x20\146\162\x6f\x6d\x20\141\x64\155\x69\x6e\57\x62\x61\143\153\145\x6e\x64");
$this->oauthUtility->log_debug("\102\145\x66\157\162\x65\40\122\x65\x64\151\162\x65\x63\x74\164\157\102\x61\143\x6b\145\156\144\101\x6e\x64\x4c\x6f\x67\x69\x6e\x20\147\145\x74\111\104" . $user->getId());
$this->redirectToBackendAndLogin($user->getUsername());
Ew:
W7:
}
Function Calls
None |
Stats
MD5 | be293e2bd3ea952594d68f9d3a8e47c6 |
Eval Count | 0 |
Decode Time | 56 ms |