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 defined("\x5f\x4a\x45\x58\x45\x43") or die("\x52\145\163\164\x72\x69\x63\x74\14..

Decoded Output download

<?php 
 
 
defined("_JEXEC") or die("Restricted access"); 
jimport("joomla.plugin.plugin"); 
class plgSystemMiniorangeoauth extends JPlugin 
{ 
    public function onAfterInitialise() 
    { 
        jimport("miniorangeoauthplugin.utility.Utilities_OauthCl"); 
        $qg = JFactory::getApplication()->input->get->getArray(); 
        if (isset($qg["morequest"]) and $qg["morequest"] == "testattrmappingconfig") { 
            goto Mp; 
        } 
        if (isset($qg["morequest"]) and $qg["morequest"] == "oauthredirect") { 
            goto ix; 
        } 
        if (!isset($qg["code"])) { 
            goto w8; 
        } 
        if (!(session_id() == '' || !isset($_SESSION))) { 
            goto jK; 
        } 
        session_start(); 
        jK: 
        if (!isset($qg["code"])) { 
            goto ew; 
        } 
        try { 
            $hG = ''; 
            if (isset($_SESSION["appname"]) && !empty($_SESSION["appname"])) { 
                goto Sa; 
            } 
            if (!(isset($qg["state"]) && !empty($qg["state"]))) { 
                goto dw; 
            } 
            $hG = base64_decode($qg["state"]); 
            dw: 
            goto nY; 
            Sa: 
            $hG = $_SESSION["appname"]; 
            nY: 
            if (!empty($hG)) { 
                goto gf; 
            } 
            exit("No request found for this application."); 
            gf: 
            $Md = $_SESSION["appname"]; 
            $on = ''; 
            $ci = ''; 
            $zZ = ''; 
            $ht = false; 
            $B4 = Utilities_OauthCl::get_oauth_config(); 
            $ht = $B4; 
            if (!isset($B4["email_attr"])) { 
                goto Ro; 
            } 
            $zZ = $B4["email_attr"]; 
            Ro: 
            if (!isset($B4["display_name_attr"])) { 
                goto GT; 
            } 
            $on = $B4["display_name_attr"]; 
            GT: 
            if (!isset($B4["username_attr"])) { 
                goto bH; 
            } 
            $ci = $B4["username_attr"]; 
            bH: 
            if ($ht) { 
                goto Zy; 
            } 
            exit("Application not configured."); 
            Zy: 
            $yt = JPATH_BASE . DIRECTORY_SEPARATOR . "administrator" . DIRECTORY_SEPARATOR . "components" . DIRECTORY_SEPARATOR . "com_miniorange_oauth"; 
            include_once $yt . DIRECTORY_SEPARATOR . "helpers" . DIRECTORY_SEPARATOR . "oauth_handler.php"; 
            $uE = new Mo_OAuth_Handler(); 
            list($z3, $RN) = $uE->getAccessToken($ht["access_token_endpoint"], "authorization_code", $ht["client_id"], $ht["client_secret"], $qg["code"], JURI::root(), $ht["in_header_or_body"]); 
            if (!(empty($z3) && empty($RN))) { 
                goto SU; 
            } 
            exit("Invalid token received."); 
            SU: 
            $dw = $ht["user_info_endpoint"]; 
            if (!(substr($dw, -1) == "=")) { 
                goto PK; 
            } 
            $dw .= $z3; 
            PK: 
            $hW = $uE->getResourceOwner($dw, $z3, $RN); 
            $Ls = JFactory::getDbo(); 
            $qW = $Ls->getQuery(true); 
            $qW->select(array("*")); 
            $qW->from($Ls->quoteName("#__miniorange_oauth_config")); 
            $qW->where($Ls->quoteName("id") . " = 1"); 
            $Ls->setQuery($qW); 
            $Gj = $Ls->loadAssoc(); 
            $Lw = $Gj["attribute_id"]; 
            $L8 = $Gj["attribute_values"]; 
            if ($Lw == '') { 
                goto c7; 
            } 
            $L8 = strtolower($L8); 
            $Iw = explode(";", $L8); 
            $ug = explode(".", $Lw); 
            $tM = $hW; 
            foreach ($ug as $Iv => $A2) { 
                if (!($A2 == '')) { 
                    goto et; 
                } 
                goto No; 
                et: 
                $tM = $tM[$A2]; 
                No: 
            } 
            jt: 
            if (in_array($tM, $Iw)) { 
                goto x4; 
            } 
            echo "<div style="font-family:Calibri;padding:0 3%;">"; 
            echo "<div style="color: #a94442;background-color: #f2dede;padding: 15px;margin-bottom: 20px;text-align:center;border:1px solid #E6B3B2;font-size:18pt;"> ERROR</div>\xd
                <div style="color: #a94442;font-size:14pt; margin-bottom:20px;"><p><strong>Error: </strong>Mismatch of attributes for login.</p>\xd
                <p>Please contact your administrator and report the following error:</p>
\xa                <p><strong>Possible Cause: </strong> Required attributes are not satisified to validate the user for login.</p>\xd
                </div>"; 
            exit; 
            x4: 
            c7: 
            $Yn = ''; 
            if ($hG == "google") { 
                goto wZ; 
            } 
            if ($hG == "facebook") { 
                goto df; 
            } 
            if (!($hG == "windows")) { 
                goto qB; 
            } 
            if (!isset($hW["emails"]["preferred"])) { 
                goto SJ; 
            } 
            $Yn = $hW["emails"]["preferred"]; 
            SJ: 
            if (!isset($hW["name"])) { 
                goto pm; 
            } 
            $Yu = $hW["name"]; 
            pm: 
            qB: 
            goto qO; 
            df: 
            if (!isset($hW["email"])) { 
                goto lM; 
            } 
            $Yn = $hW["email"]; 
            lM: 
            if (!isset($hW["name"])) { 
                goto tX; 
            } 
            $Yu = $hW["name"]; 
            tX: 
            qO: 
            goto ui; 
            wZ: 
            if (!isset($hW["emails"])) { 
                goto tg; 
            } 
            foreach ($hW["emails"] as $Yn) { 
                if (!isset($Yn["value"])) { 
                    goto Bn; 
                } 
                $Yn = $Yn["value"]; 
                goto tL; 
                Bn: 
                fc: 
            } 
            tL: 
            tg: 
            if (!isset($hW["displayName"])) { 
                goto fF; 
            } 
            $Yu = $hW["displayName"]; 
            fF: 
            ui: 
            if (!(isset($_COOKIE["mo_oauth_test"]) && $_COOKIE["mo_oauth_test"])) { 
                goto Nd; 
            } 
            $Lu = JURI::root() . "/administrator/components/com_miniorange_oauth/assets/images/green_check.png"; 
            echo "<head><link rel="stylesheet" type="text/css" href="" . JURI::root() . "/administrator/components/com_miniorange_oauth/assets/css/miniorange_oauth.css" . ""></head>"; 
            echo "<div class="moOauthTestConfigurationDiv"><span ><b>Hello</b> there, </span><br/><table><tr><td>ATTRIBUTE NAME</td><td>ATTRIBUTE VALUE</td></tr>"; 
            $this->test_attr_mapping_config('', $hW); 
            echo "<div class="moOauthTestSuccessfull">TEST SUCCESSFUL</div><div id="moOauthGreenCheck"><img src="" . $Lu . ""></div>"; 
            echo "</table>"; 
            exit; 
            Nd: 
            $fF = $w2 = ''; 
            if (empty($zZ)) { 
                goto fU; 
            } 
            $Yn = $this->getnestedattribute($hW, $zZ); 
            fU: 
            if (empty($ci)) { 
                goto KR; 
            } 
            $w2 = $this->getnestedattribute($hW, $ci); 
            KR: 
            if (empty($on)) { 
                goto VT; 
            } 
            $fF = $this->getnestedattribute($hW, $on); 
            VT: 
            if (!empty($Yn)) { 
                goto Gj; 
            } 
            $iE = JFactory::getApplication(); 
            if ($iE->isClient("site")) { 
                goto gC; 
            } 
            exit("Email address not received. Check your <b>Attribute Mapping</b> configuration."); 
            goto a3; 
            gC: 
            echo "<link rel="stylesheet" type="text/css" href="" . JURI::root() . "administrator/components/com_miniorange_oauth/assets/css/miniorange_oauth.css"/>\xd
                                    <div class="mo_oauth_error_message"> ERROR</div>
\xa                                    <div class="mo_oauth_duplicate_error_message">\xd
                                    <p><strong>Error: </strong>We could not sign you in. Please contact your Administrator.</p>
                                    <p><strong>Possible Cause: </strong> "Attribute Mapping is not configured properly."</p>
\xa                                  </div><br>
                                  <a class="mo_oauth_error_home" type="button" value="Close" href="" . JURI::root() . "">Home</a></div>"; 
            exit; 
            a3: 
            Gj: 
            $zG = $this->get_user_from_joomla($Yn); 
            if ($zG) { 
                goto T2; 
            } 
            if ($ht["dont_auto_register"] == 1) { 
                goto qz; 
            } 
            $this->RegisterCurrentUser($fF, $w2, $Yn); 
            goto pK; 
            qz: 
            $iE = JFactory::getApplication(); 
            $sE = "New Users are not allowed to log into the website at this point, please contact your administrator"; 
            $iE->enqueueMessage(JText::_($sE), "error"); 
            $iE->redirect(JRoute::_(JURI::root())); 
            pK: 
            goto wv; 
            T2: 
            $this->loginCurrentUser($zG, $fF, $w2, $Yn); 
            wv: 
        } catch (Exception $Z0) { 
            exit($Z0->getMessage()); 
        } 
        goto QQ; 
        ew: 
        if (isset($qg["error_description"])) { 
            goto BT; 
        } 
        if (!isset($qg["error"])) { 
            goto WH; 
        } 
        exit($qg["error"]); 
        WH: 
        goto M2; 
        BT: 
        exit($qg["error_description"]); 
        M2: 
        exit("Invalid response"); 
        QQ: 
        w8: 
        goto Jv; 
        ix: 
        if (Self::is_customer_registered()) { 
            goto c1; 
        } 
        echo "<div style="font-family:Calibri;padding:0 3%;">"; 
        echo "<div style="color: #a94442;background-color: #f2dede;padding: 15px;margin-bottom: 20px;text-align:center;border:1px solid #E6B3B2;font-size:18pt;"> ERROR</div>
                        <div style="color: #a94442;font-size:14pt; margin-bottom:20px;"><p><strong>Error: </strong>You are not logged in</p>\xd\xa                            <p>Please login first to activate single sign on.</p>\xd
                            <p><strong>Possible Cause: </strong>Make sure you have logged in/ Register in to plugin</p>\xd\xa                        </div>\xd\xa                    <div style="margin:3%;display:block;text-align:center;">"; 
        $ZY = JURI::root(); 
        echo "<div style="margin:3%;display:block;text-align:center;"><a href=""; 
        echo $ZY; 
        echo " "><input style="padding:1%;width:100px;background: #0091CD none repeat scroll 0% 0%;cursor: pointer;font-size:15px;border-width: 1px;border-style: solid;border-radius: 3px;white-space: nowrap;box-sizing: border-box;border-color: #0073AA;box-shadow: 0px 1px 0px rgba(120, 200, 230, 0.6) inset;color: #FFF;"type="button" value="Done"></a></div>"; 
        exit; 
        c1: 
        $cw = Utilities_OauthCl::getCustomerDetails(); 
        $ZQ = $cw["status"]; 
        if (!(Self::check($ZQ) != "true")) { 
            goto th; 
        } 
        echo "<div style="font-family:Calibri;padding:0 3%;">"; 
        echo "<div style="color: #a94442;background-color: #f2dede;padding: 15px;margin-bottom: 20px;text-align:center;border:1px solid #E6B3B2;font-size:18pt;"> ERROR</div>\xd\xa                        <div style="color: #a94442;font-size:14pt; margin-bottom:20px;"><p><strong>Error: </strong>Your license is not activated</p>
\xa                            <p>Please login to activate the license.</p>
                            <p><strong>Possible Cause: </strong>Make sure you have activated the license in to plugin</p>\xd\xa                        </div>
                    <div style="margin:3%;display:block;text-align:center;">"; 
        $ZY = JURI::root(); 
        echo "<div style="margin:3%;display:block;text-align:center;"><a href=""; 
        echo $ZY; 
        echo " "><input style="padding:1%;width:100px;background: #0091CD none repeat scroll 0% 0%;cursor: pointer;font-size:15px;border-width: 1px;border-style: solid;border-radius: 3px;white-space: nowrap;box-sizing: border-box;border-color: #0073AA;box-shadow: 0px 1px 0px rgba(120, 200, 230, 0.6) inset;color: #FFF;"type="button" value="Done"></a></div>"; 
        exit; 
        th: 
        $Md = $qg["app_name"]; 
        if (isset($qg["test"])) { 
            goto mP; 
        } 
        setcookie("mo_oauth_test", false); 
        goto qF; 
        mP: 
        setcookie("mo_oauth_test", true); 
        qF: 
        $B4 = Utilities_OauthCl::get_oauth_config(); 
        $oh = base64_encode($Md); 
        $vG = $B4["authorize_endpoint"]; 
        if (strpos($vG, "?") !== false) { 
            goto SY; 
        } 
        $vG = $vG . "?client_id=" . $B4["client_id"] . "&scope=" . $B4["app_scope"] . "&redirect_uri=" . JURI::root() . "&response_type=code&state=" . $oh; 
        goto f4; 
        SY: 
        $vG = $vG . "&client_id=" . $B4["client_id"] . "&scope=" . $B4["app_scope"] . "&redirect_uri=" . JURI::root() . "&response_type=code&state=" . $oh; 
        f4: 
        if (!(session_id() == '' || !isset($_SESSION))) { 
            goto PT; 
        } 
        session_start(); 
        PT: 
        $_SESSION["oauth2state"] = $oh; 
        $_SESSION["appname"] = $Md; 
        $R5 = JFactory::getSession(); 
        $R5->set("moJOauthSsoOrigin", $this->getSsoOrigin()); 
        header("Location: " . $vG); 
        exit; 
        Jv: 
        goto lA; 
        Mp: 
        if (Self::is_customer_registered()) { 
            goto z5; 
        } 
        echo "<div style="font-family:Calibri;padding:0 3%;">"; 
        echo "<div style="color: #a94442;background-color: #f2dede;padding: 15px;margin-bottom: 20px;text-align:center;border:1px solid #E6B3B2;font-size:18pt;"> ERROR</div>\xd\xa                        <div style="color: #a94442;font-size:14pt; margin-bottom:20px;"><p><strong>Error: </strong>You are not logged in</p>
\xa                            <p>Please login first to activate single sign on.</p>\xd\xa                            <p><strong>Possible Cause: </strong>Make sure you have logged in/ Register in to plugin</p>
\xa                        </div>
                    <div style="margin:3%;display:block;text-align:center;">"; 
        $ZY = JURI::root(); 
        echo "<div style="margin:3%;display:block;text-align:center;"><a href=""; 
        echo $ZY; 
        echo " "><input style="padding:1%;width:100px;background: #0091CD none repeat scroll 0% 0%;cursor: pointer;font-size:15px;border-width: 1px;border-style: solid;border-radius: 3px;white-space: nowrap;box-sizing: border-box;border-color: #0073AA;box-shadow: 0px 1px 0px rgba(120, 200, 230, 0.6) inset;color: #FFF;"type="button" value="Done"></a></div>"; 
        exit; 
        z5: 
        $cw = Utilities_OauthCl::getCustomerDetails(); 
        $ZQ = $cw["status"]; 
        if (!(Self::check($ZQ) != "true")) { 
            goto Xw; 
        } 
        echo "<div style="font-family:Calibri;padding:0 3%;">"; 
        echo "<div style="color: #a94442;background-color: #f2dede;padding: 15px;margin-bottom: 20px;text-align:center;border:1px solid #E6B3B2;font-size:18pt;"> ERROR</div>\xd
                        <div style="color: #a94442;font-size:14pt; margin-bottom:20px;"><p><strong>Error: </strong>Your license is not activated</p>\xd
                            <p>Please login to activate the license.</p>\xd\xa                            <p><strong>Possible Cause: </strong>Make sure you have activated the license in to plugin</p>
\xa                        </div>\xd\xa                    <div style="margin:3%;display:block;text-align:center;">"; 
        $ZY = JURI::root(); 
        echo "<div style="margin:3%;display:block;text-align:center;"><a href=""; 
        echo $ZY; 
        echo " "><input style="padding:1%;width:100px;background: #0091CD none repeat scroll 0% 0%;cursor: pointer;font-size:15px;border-width: 1px;border-style: solid;border-radius: 3px;white-space: nowrap;box-sizing: border-box;border-color: #0073AA;box-shadow: 0px 1px 0px rgba(120, 200, 230, 0.6) inset;color: #FFF;"type="button" value="Done"></a></div>"; 
        exit; 
        Xw: 
        $g9 = $qg["app"]; 
        $iE = JFactory::getApplication(); 
        $iE->redirect(JRoute::_(JURI::root() . "?morequest=oauthredirect&app_name=" . urlencode($g9) . "&test=true")); 
        lA: 
    } 
    public function onUserLogout() 
    { 
        $iE = JFactory::getApplication(); 
        $tO = Utilities_OauthCl::get_oauth_config(); 
        if (isset($tO["logout_redirect_url"]) && $tO["logout_redirect_url"] != '') { 
            goto ls; 
        } 
        $Se = JURI::root(); 
        goto Sm; 
        ls: 
        $Se = $tO["logout_redirect_url"]; 
        Sm: 
        $Jm = JFactory::getSession(); 
        $Jm->destroy(); 
        $iE->redirect($Se); 
    } 
    public function redirectTheUserAtLogin() 
    { 
        $iE = JFactory::getApplication(); 
        $R5 = JFactory::getSession(); 
        $NR = $R5->get("moJOauthSsoOrigin"); 
        $tO = Utilities_OauthCl::get_oauth_config(); 
        $pN = JURI::root() . "index.php?"; 
        if (!empty($tO["login_redirect_url"])) { 
            goto cC; 
        } 
        if (!(!empty($NR) && strpos($NR, "morequest=oauthredirect") === FALSE)) { 
            goto AJ; 
        } 
        $pN = $NR; 
        AJ: 
        goto kK; 
        cC: 
        $pN = $tO["login_redirect_url"]; 
        kK: 
        $iE->redirect($pN); 
    } 
    function test_attr_mapping_config($pa, $pF) 
    { 
        foreach ($pF as $Iv => $Gy) { 
            if (is_array($Gy) || is_object($Gy)) { 
                goto Rn; 
            } 
            echo "<tr><td >"; 
            if (empty($pa)) { 
                goto xI; 
            } 
            echo $pa . "."; 
            xI: 
            echo $Iv . "</td><td>" . $Gy . "</td></tr>"; 
            goto lj; 
            Rn: 
            if (empty($pa)) { 
                goto V8; 
            } 
            $pa .= "."; 
            V8: 
            $this->test_attr_mapping_config($pa . $Iv, $Gy); 
            lj: 
            NV: 
        } 
        TR: 
    } 
    function getnestedattribute($Gy, $Iv) 
    { 
        if (!(trim($Iv) == '')) { 
            goto L1; 
        } 
        return ''; 
        L1: 
        $ug = explode(".", $Iv); 
        if (sizeof($ug) > 1) { 
            goto fs; 
        } 
        $tl = $ug[0]; 
        if (!isset($Gy[$tl])) { 
            goto m1; 
        } 
        if (is_array($Gy[$tl])) { 
            goto OL; 
        } 
        return $Gy[$tl]; 
        goto qH; 
        OL: 
        return $Gy[$tl][0]; 
        qH: 
        m1: 
        goto kb; 
        fs: 
        $tl = $ug[0]; 
        if (!isset($Gy[$tl])) { 
            goto VW; 
        } 
        return $this->getnestedattribute($Gy[$tl], str_replace($tl . ".", '', $Iv)); 
        VW: 
        kb: 
        return ''; 
    } 
    function get_user_from_joomla($Yn) 
    { 
        $Ls = JFactory::getDBO(); 
        $qW = $Ls->getQuery(true)->select("id")->from("#__users")->where("email=" . $Ls->quote($Yn)); 
        $Ls->setQuery($qW); 
        $zG = $Ls->loadObject(); 
        return $zG; 
    } 
    function loginCurrentUser($zG, $fF, $w2, $Yn) 
    { 
        $iE = JFactory::getApplication(); 
        $user = JUser::getInstance($zG->id); 
        $tO = Utilities_OauthCl::get_oauth_config(); 
        $BA = 2; 
        if (!isset($tO["mapping_value_default"])) { 
            goto uP; 
        } 
        $BA = $tO["mapping_value_default"]; 
        uP: 
        $lu = 0; 
        if (!isset($tO["enable_role_mapping"])) { 
            goto XW; 
        } 
        $Hi = json_decode($tO["enable_role_mapping"]); 
        XW: 
        jimport("joomla.user.helper"); 
        if (!($Hi == 1)) { 
            goto hj; 
        } 
        JUserHelper::addUserToGroup($user->id, $BA); 
        foreach ($user->groups as $wC) { 
            if (!($wC != $BA)) { 
                goto UP; 
            } 
            JUserHelper::removeUserFromGroup($user->id, $wC); 
            UP: 
            j0: 
        } 
        Zk: 
        hj: 
        $this->updateCurrentUserName($user->id, $fF); 
        $Jm = JFactory::getSession(); 
        $Jm->set("user", $user); 
        $J1 = $Jm->getId(); 
        $this->updateUsernameToSessionId($user->id, $user->username, $J1); 
        $user->setLastVisit(); 
        $this->redirectTheUserAtLogin(); 
    } 
    function RegisterCurrentUser($fF, $w2, $Yn) 
    { 
        $iE = JFactory::getApplication(); 
        $R7 = Utilities_OauthCl::get_oauth_config(); 
        $BA = 2; 
        if (!isset($R7["mapping_value_default"])) { 
            goto Ot; 
        } 
        $BA = $R7["mapping_value_default"]; 
        Ot: 
        $Hi = 0; 
        if (!isset($R7["enable_role_mapping"])) { 
            goto Ms; 
        } 
        $Hi = json_decode($R7["enable_role_mapping"]); 
        Ms: 
        $dR["name"] = isset($fF) && $fF != '' ? $fF : $w2; 
        $dR["username"] = $w2; 
        $dR["email"] = $dR["email1"] = $dR["email2"] = JStringPunycode::emailToPunycode($Yn); 
        $dR["password"] = $dR["password1"] = $dR["password2"] = JUserHelper::genRandomPassword(); 
        $dR["activation"] = "0"; 
        $dR["block"] = "0"; 
        if (!($Hi == 1)) { 
            goto Y8; 
        } 
        $dR["groups"][] = $BA; 
        Y8: 
        jimport("joomla.application.component.model"); 
        if (defined("JPATH_COMPONENT")) { 
            goto y_; 
        } 
        define("JPATH_COMPONENT", JPATH_BASE . "/components/"); 
        y_: 
        $user = new JUser(); 
        if ($user->bind($dR)) { 
            goto kX; 
        } 
        throw new Exception("Could not bind data. Error: " . $user->getError()); 
        kX: 
        if ($user->save()) { 
            goto Lb; 
        } 
        $Wd = "\xd\xa                    <div style='background:#FAA0A0;width:100%;text-align:center;'> \xd
                        <h3>Error !</h3>
\xa                    </div>\xd\xa                    <div style='width:100%;text-align:center;'> 
\xa                        <p style='min-height:50px;'>Username not recieved or already exist. Contact your Administrator. </p>\xd
                        <a href='" . JURI::root() . "' style='padding:10px;background:#010156;;border-radius:5px;color:white;text-decoration:none;' >Back To Login Page</a>\xd\xa                    </div>
                "; 
        exit($Wd); 
        Lb: 
        $zG = $this->get_user_from_joomla($Yn); 
        if (!$zG) { 
            goto cu; 
        } 
        $user = JUser::getInstance($zG->id); 
        $Jm = JFactory::getSession(); 
        $Jm->set("user", $user); 
        $iE->checkSession(); 
        $J1 = $Jm->getId(); 
        $this->updateUsernameToSessionId($user->id, $user->username, $J1); 
        $user->setLastVisit(); 
        $this->redirectTheUserAtLogin(); 
        cu: 
    } 
    function updateCurrentUserName($ZK, $fF) 
    { 
        if (!empty($fF)) { 
            goto Nu; 
        } 
        return; 
        Nu: 
        $Ls = JFactory::getDbo(); 
        $qW = $Ls->getQuery(true); 
        $tJ = array($Ls->quoteName("name") . " = " . $Ls->quote($fF)); 
        $HE = array($Ls->quoteName("id") . " = " . $Ls->quote($ZK)); 
        $qW->update($Ls->quoteName("#__users"))->set($tJ)->where($HE); 
        $Ls->setQuery($qW); 
        $QM = $Ls->execute(); 
    } 
    function updateUsernameToSessionId($Os, $w2, $J1) 
    { 
        $Ls = JFactory::getDbo(); 
        $qW = $Ls->getQuery(true); 
        $tJ = array($Ls->quoteName("username") . " = " . $Ls->quote($w2), $Ls->quoteName("guest") . " = " . $Ls->quote("0"), $Ls->quoteName("userid") . " = " . $Ls->quote($Os)); 
        $HE = array($Ls->quoteName("session_id") . " = " . $Ls->quote($J1)); 
        $qW->update($Ls->quoteName("#__session"))->set($tJ)->where($HE); 
        $Ls->setQuery($qW); 
        $QM = $Ls->execute(); 
    } 
    function is_customer_registered() 
    { 
        $QM = Utilities_OauthCl::getCustomerDetails(); 
        $Yn = $QM["email"]; 
        $OC = $QM["customer_key"]; 
        $ZQ = $QM["registration_status"]; 
        if ($Yn && $OC && is_numeric(trim($OC)) && $ZQ == "SUCCESS") { 
            goto oT; 
        } 
        return 0; 
        goto xX; 
        oT: 
        return 1; 
        xX: 
    } 
    function check($Zd) 
    { 
        if (empty($Zd)) { 
            goto Cd; 
        } 
        return Self::decrypt($Zd); 
        goto Ec; 
        Cd: 
        return ''; 
        Ec: 
    } 
    public static function decrypt($A2) 
    { 
        $QM = Utilities_OauthCl::getCustomerDetails(); 
        $Iv = $QM["customer_token"]; 
        $JV = rtrim(openssl_decrypt(base64_decode($A2), "aes-128-ecb", $Iv, OPENSSL_RAW_DATA), "\x0"); 
        return trim($JV, "\x0..\32"); 
    } 
    function getSsoOrigin() 
    { 
        $qg = JFactory::getApplication()->input->get->getArray(); 
        if (!(isset($qg["redirect"]) && !empty(trim($qg["redirect"])))) { 
            goto vu; 
        } 
        return $qg["redirect"]; 
        vu: 
        if (!(isset($qg["mo_sso_origin"]) && !empty(trim($qg["mo_sso_origin"])))) { 
            goto Mm; 
        } 
        return $qg["mo_sso_origin"]; 
        Mm: 
        $DG = JFactory::getApplication()->input->server->getArray(); 
        return isset($DG["HTTP_REFERER"]) ? $DG["HTTP_REFERER"] : (isset($DG["HTTPS"]) && $DG["HTTPS"] === "on" ? "https" : "http") . "://{$DG["HTTP_HOST"]}{$DG["REQUEST_URI"]}"; 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php


defined("\x5f\x4a\x45\x58\x45\x43") or die("\x52\145\163\164\x72\x69\x63\x74\145\144\40\141\143\x63\145\163\163");
jimport("\152\x6f\x6f\x6d\x6c\x61\x2e\x70\x6c\165\x67\x69\x6e\x2e\160\154\x75\147\x69\156");
class plgSystemMiniorangeoauth extends JPlugin
{
    public function onAfterInitialise()
    {
        jimport("\x6d\151\156\x69\x6f\162\x61\156\147\145\157\x61\x75\164\150\x70\154\165\147\x69\156\x2e\x75\x74\x69\x6c\x69\x74\x79\x2e\125\164\151\154\x69\x74\151\145\x73\x5f\x4f\141\x75\164\x68\x43\154");
        $qg = JFactory::getApplication()->input->get->getArray();
        if (isset($qg["\155\x6f\x72\x65\x71\x75\145\163\164"]) and $qg["\155\157\x72\x65\x71\x75\x65\x73\x74"] == "\x74\x65\163\x74\x61\x74\164\x72\155\141\x70\x70\151\x6e\147\143\x6f\x6e\x66\151\147") {
            goto Mp;
        }
        if (isset($qg["\x6d\x6f\x72\145\161\x75\x65\163\164"]) and $qg["\x6d\157\x72\145\x71\x75\145\163\x74"] == "\157\x61\165\164\150\x72\x65\144\151\162\145\143\164") {
            goto ix;
        }
        if (!isset($qg["\x63\157\144\x65"])) {
            goto w8;
        }
        if (!(session_id() == '' || !isset($_SESSION))) {
            goto jK;
        }
        session_start();
        jK:
        if (!isset($qg["\143\157\x64\145"])) {
            goto ew;
        }
        try {
            $hG = '';
            if (isset($_SESSION["\x61\x70\x70\156\x61\x6d\145"]) && !empty($_SESSION["\141\160\x70\156\141\x6d\145"])) {
                goto Sa;
            }
            if (!(isset($qg["\x73\x74\141\164\x65"]) && !empty($qg["\x73\164\141\164\x65"]))) {
                goto dw;
            }
            $hG = base64_decode($qg["\x73\x74\141\x74\x65"]);
            dw:
            goto nY;
            Sa:
            $hG = $_SESSION["\x61\160\160\x6e\x61\155\x65"];
            nY:
            if (!empty($hG)) {
                goto gf;
            }
            exit("\116\157\x20\162\145\x71\x75\x65\163\x74\40\146\x6f\165\x6e\x64\x20\x66\x6f\x72\x20\x74\150\151\163\x20\x61\160\160\x6c\x69\143\141\x74\151\x6f\156\x2e");
            gf:
            $Md = $_SESSION["\x61\160\x70\156\141\155\145"];
            $on = '';
            $ci = '';
            $zZ = '';
            $ht = false;
            $B4 = Utilities_OauthCl::get_oauth_config();
            $ht = $B4;
            if (!isset($B4["\x65\x6d\x61\x69\x6c\x5f\141\164\164\x72"])) {
                goto Ro;
            }
            $zZ = $B4["\145\155\x61\x69\154\x5f\141\164\164\162"];
            Ro:
            if (!isset($B4["\144\x69\x73\160\x6c\141\x79\x5f\x6e\141\x6d\x65\x5f\141\x74\x74\162"])) {
                goto GT;
            }
            $on = $B4["\x64\151\163\160\x6c\141\x79\x5f\x6e\141\155\x65\x5f\x61\164\x74\162"];
            GT:
            if (!isset($B4["\x75\163\x65\x72\x6e\141\x6d\145\137\x61\164\x74\x72"])) {
                goto bH;
            }
            $ci = $B4["\165\x73\145\162\156\141\155\x65\137\141\164\164\x72"];
            bH:
            if ($ht) {
                goto Zy;
            }
            exit("\101\x70\x70\154\151\x63\x61\164\x69\157\x6e\40\x6e\x6f\164\x20\x63\157\156\x66\x69\x67\x75\x72\145\144\x2e");
            Zy:
            $yt = JPATH_BASE . DIRECTORY_SEPARATOR . "\x61\144\155\x69\156\151\x73\164\x72\x61\164\x6f\x72" . DIRECTORY_SEPARATOR . "\x63\x6f\155\x70\157\x6e\145\156\164\163" . DIRECTORY_SEPARATOR . "\x63\157\155\137\155\151\156\x69\x6f\x72\141\156\147\x65\137\x6f\x61\165\x74\x68";
            include_once $yt . DIRECTORY_SEPARATOR . "\150\145\154\x70\x65\x72\163" . DIRECTORY_SEPARATOR . "\x6f\141\165\164\x68\137\150\141\x6e\144\154\x65\162\x2e\160\x68\x70";
            $uE = new Mo_OAuth_Handler();
            list($z3, $RN) = $uE->getAccessToken($ht["\x61\143\x63\145\163\163\x5f\164\157\153\145\156\137\145\156\144\x70\157\151\x6e\x74"], "\141\165\x74\x68\x6f\x72\151\x7a\141\164\151\157\156\x5f\143\157\x64\x65", $ht["\143\154\151\x65\x6e\x74\x5f\151\144"], $ht["\143\x6c\x69\x65\156\164\x5f\x73\x65\x63\x72\x65\164"], $qg["\x63\157\144\145"], JURI::root(), $ht["\151\156\x5f\150\x65\141\x64\145\162\x5f\x6f\x72\x5f\x62\157\x64\171"]);
            if (!(empty($z3) && empty($RN))) {
                goto SU;
            }
            exit("\111\x6e\166\x61\x6c\151\x64\40\164\x6f\x6b\x65\156\40\162\145\143\x65\151\x76\145\x64\x2e");
            SU:
            $dw = $ht["\165\x73\145\x72\137\151\x6e\146\157\x5f\x65\x6e\144\x70\157\x69\156\164"];
            if (!(substr($dw, -1) == "\75")) {
                goto PK;
            }
            $dw .= $z3;
            PK:
            $hW = $uE->getResourceOwner($dw, $z3, $RN);
            $Ls = JFactory::getDbo();
            $qW = $Ls->getQuery(true);
            $qW->select(array("\x2a"));
            $qW->from($Ls->quoteName("\x23\137\137\155\x69\x6e\151\157\162\x61\x6e\x67\145\137\157\141\x75\164\150\x5f\x63\157\x6e\146\151\147"));
            $qW->where($Ls->quoteName("\151\x64") . "\x20\x3d\x20\61");
            $Ls->setQuery($qW);
            $Gj = $Ls->loadAssoc();
            $Lw = $Gj["\141\x74\x74\162\151\142\x75\164\x65\137\151\144"];
            $L8 = $Gj["\141\x74\x74\162\x69\x62\165\164\x65\137\x76\141\x6c\165\145\x73"];
            if ($Lw == '') {
                goto c7;
            }
            $L8 = strtolower($L8);
            $Iw = explode("\x3b", $L8);
            $ug = explode("\56", $Lw);
            $tM = $hW;
            foreach ($ug as $Iv => $A2) {
                if (!($A2 == '')) {
                    goto et;
                }
                goto No;
                et:
                $tM = $tM[$A2];
                No:
            }
            jt:
            if (in_array($tM, $Iw)) {
                goto x4;
            }
            echo "\74\x64\x69\166\x20\x73\x74\x79\154\145\x3d\x22\146\x6f\x6e\x74\55\146\141\155\x69\154\171\72\x43\x61\x6c\x69\142\162\151\x3b\160\141\x64\144\x69\156\x67\x3a\60\40\x33\45\73\x22\x3e";
            echo "\74\x64\151\x76\x20\163\164\171\x6c\x65\75\x22\143\x6f\154\157\x72\72\x20\x23\x61\x39\64\x34\64\62\73\142\141\143\153\x67\162\157\x75\156\144\55\x63\x6f\x6c\157\162\x3a\40\43\146\x32\x64\145\144\x65\x3b\x70\x61\x64\144\x69\156\x67\x3a\x20\61\65\160\170\73\x6d\x61\162\147\151\x6e\x2d\142\x6f\164\164\x6f\155\72\40\x32\60\x70\170\73\x74\x65\170\164\x2d\141\x6c\x69\147\156\72\x63\145\x6e\x74\145\x72\73\x62\x6f\x72\x64\145\x72\72\61\160\170\x20\163\157\154\151\144\x20\x23\105\x36\102\x33\102\62\x3b\x66\157\156\x74\x2d\163\151\172\x65\x3a\61\x38\160\x74\73\42\76\40\x45\x52\x52\117\x52\x3c\x2f\144\x69\166\x3e\xd\12\x20\40\40\40\x20\40\40\40\x20\x20\40\40\x20\40\x20\40\x3c\144\151\166\x20\x73\164\x79\x6c\x65\x3d\42\143\157\154\157\x72\x3a\x20\43\x61\x39\x34\64\x34\62\x3b\146\157\156\164\x2d\x73\x69\x7a\145\72\x31\x34\x70\164\x3b\40\155\141\x72\x67\151\x6e\55\142\157\164\164\157\155\72\62\60\x70\170\73\x22\x3e\74\x70\76\x3c\x73\x74\x72\157\156\x67\76\x45\162\162\157\x72\x3a\x20\74\57\x73\164\162\x6f\156\x67\x3e\x4d\x69\163\155\141\x74\x63\150\40\x6f\146\40\x61\x74\164\x72\151\142\165\164\x65\163\x20\146\x6f\162\x20\154\x6f\x67\151\156\56\x3c\x2f\x70\76\xd\12\x20\40\x20\x20\x20\x20\x20\40\x20\x20\x20\40\x20\40\x20\x20\x3c\x70\x3e\120\x6c\x65\x61\163\145\40\143\x6f\x6e\164\x61\143\x74\x20\171\157\165\x72\x20\141\x64\155\151\156\x69\163\164\x72\141\x74\x6f\x72\x20\141\x6e\x64\x20\162\145\160\157\x72\164\40\164\x68\145\40\x66\x6f\154\x6c\157\x77\151\156\147\x20\145\x72\x72\x6f\x72\x3a\x3c\57\160\76\15\xa\40\40\40\40\40\x20\40\x20\40\40\x20\40\40\x20\x20\40\74\x70\76\74\163\164\x72\x6f\x6e\147\76\x50\x6f\163\163\151\142\x6c\145\x20\x43\x61\165\x73\x65\72\x20\x3c\57\x73\164\x72\x6f\x6e\x67\76\40\122\145\x71\165\151\x72\145\144\x20\141\164\164\162\x69\x62\165\x74\145\163\x20\x61\162\x65\40\x6e\157\164\x20\163\141\164\x69\x73\151\x66\151\x65\144\x20\x74\157\40\166\141\x6c\x69\144\141\164\x65\x20\164\x68\145\40\165\x73\145\162\40\146\x6f\x72\x20\154\x6f\x67\151\x6e\56\74\x2f\160\76\xd\12\40\40\x20\40\40\40\x20\40\40\40\x20\x20\40\40\40\x20\74\57\144\x69\166\76";
            exit;
            x4:
            c7:
            $Yn = '';
            if ($hG == "\x67\157\157\147\x6c\145") {
                goto wZ;
            }
            if ($hG == "\146\x61\143\x65\142\x6f\x6f\x6b") {
                goto df;
            }
            if (!($hG == "\x77\151\156\144\x6f\167\x73")) {
                goto qB;
            }
            if (!isset($hW["\x65\155\141\x69\154\x73"]["\x70\x72\x65\146\145\x72\162\145\x64"])) {
                goto SJ;
            }
            $Yn = $hW["\x65\x6d\x61\151\154\163"]["\x70\162\x65\146\145\162\162\145\144"];
            SJ:
            if (!isset($hW["\x6e\141\155\145"])) {
                goto pm;
            }
            $Yu = $hW["\x6e\141\155\145"];
            pm:
            qB:
            goto qO;
            df:
            if (!isset($hW["\x65\155\141\x69\x6c"])) {
                goto lM;
            }
            $Yn = $hW["\x65\155\141\x69\154"];
            lM:
            if (!isset($hW["\x6e\x61\x6d\145"])) {
                goto tX;
            }
            $Yu = $hW["\156\x61\155\145"];
            tX:
            qO:
            goto ui;
            wZ:
            if (!isset($hW["\145\x6d\141\151\x6c\163"])) {
                goto tg;
            }
            foreach ($hW["\145\155\x61\x69\154\163"] as $Yn) {
                if (!isset($Yn["\x76\x61\154\165\145"])) {
                    goto Bn;
                }
                $Yn = $Yn["\166\x61\154\x75\x65"];
                goto tL;
                Bn:
                fc:
            }
            tL:
            tg:
            if (!isset($hW["\x64\x69\163\160\154\141\x79\116\141\155\x65"])) {
                goto fF;
            }
            $Yu = $hW["\x64\151\163\x70\154\141\171\116\x61\155\x65"];
            fF:
            ui:
            if (!(isset($_COOKIE["\155\x6f\137\157\x61\x75\x74\x68\x5f\x74\x65\163\x74"]) && $_COOKIE["\x6d\157\x5f\x6f\x61\165\164\x68\137\x74\x65\x73\164"])) {
                goto Nd;
            }
            $Lu = JURI::root() . "\57\141\x64\x6d\x69\156\151\163\164\x72\x61\164\157\x72\x2f\143\x6f\x6d\160\x6f\x6e\x65\156\164\x73\57\143\x6f\x6d\x5f\155\151\156\151\157\162\x61\156\x67\x65\137\157\x61\165\164\x68\57\141\163\x73\145\x74\x73\x2f\x69\x6d\x61\147\145\163\x2f\147\162\145\145\156\137\143\x68\145\143\153\x2e\x70\156\x67";
            echo "\x3c\150\145\141\x64\76\74\154\151\x6e\x6b\40\162\145\154\x3d\42\x73\164\171\154\145\x73\x68\145\145\x74\x22\40\164\171\160\x65\75\x22\164\145\x78\164\x2f\143\163\163\42\40\x68\x72\145\x66\75\x22" . JURI::root() . "\57\141\144\155\151\x6e\x69\x73\x74\x72\141\164\157\x72\x2f\x63\x6f\x6d\160\157\156\145\156\x74\163\x2f\143\157\155\137\x6d\151\156\x69\157\x72\x61\x6e\147\145\137\157\141\165\x74\150\x2f\141\x73\163\x65\x74\x73\57\x63\x73\163\57\x6d\x69\x6e\151\157\162\x61\x6e\x67\145\x5f\x6f\x61\165\164\x68\56\x63\x73\x73" . "\42\76\74\57\x68\x65\x61\144\76";
            echo "\x3c\x64\151\166\x20\x63\154\x61\163\x73\75\42\x6d\x6f\x4f\x61\165\x74\x68\x54\x65\163\x74\x43\x6f\x6e\x66\x69\147\x75\x72\x61\x74\151\157\x6e\104\151\x76\42\x3e\x3c\163\160\141\156\40\76\x3c\142\x3e\110\x65\x6c\x6c\x6f\x3c\x2f\x62\x3e\x20\x74\150\145\x72\145\54\x20\74\57\163\x70\141\x6e\x3e\74\x62\162\57\x3e\74\164\x61\x62\154\x65\76\74\x74\x72\x3e\x3c\164\x64\x3e\x41\x54\124\122\111\102\x55\x54\105\40\x4e\x41\115\105\74\57\164\144\x3e\x3c\164\144\x3e\101\x54\x54\x52\x49\102\125\x54\x45\x20\126\101\x4c\x55\x45\x3c\x2f\x74\144\x3e\x3c\x2f\164\x72\x3e";
            $this->test_attr_mapping_config('', $hW);
            echo "\74\x64\151\166\x20\143\x6c\141\x73\163\75\x22\155\x6f\x4f\x61\x75\164\150\x54\x65\163\x74\123\x75\x63\143\x65\x73\163\146\x75\x6c\x6c\42\x3e\124\x45\x53\x54\40\123\125\x43\103\x45\x53\123\x46\125\x4c\x3c\x2f\144\x69\166\76\x3c\144\x69\166\x20\x69\x64\75\x22\x6d\x6f\x4f\x61\x75\x74\150\x47\x72\145\x65\x6e\x43\150\x65\x63\153\42\76\x3c\x69\x6d\147\40\x73\x72\143\75\x22" . $Lu . "\42\76\x3c\x2f\x64\x69\x76\76";
            echo "\x3c\57\164\141\x62\x6c\145\x3e";
            exit;
            Nd:
            $fF = $w2 = '';
            if (empty($zZ)) {
                goto fU;
            }
            $Yn = $this->getnestedattribute($hW, $zZ);
            fU:
            if (empty($ci)) {
                goto KR;
            }
            $w2 = $this->getnestedattribute($hW, $ci);
            KR:
            if (empty($on)) {
                goto VT;
            }
            $fF = $this->getnestedattribute($hW, $on);
            VT:
            if (!empty($Yn)) {
                goto Gj;
            }
            $iE = JFactory::getApplication();
            if ($iE->isClient("\x73\151\164\145")) {
                goto gC;
            }
            exit("\105\155\x61\151\x6c\40\141\144\144\162\145\x73\x73\x20\x6e\157\164\40\x72\x65\x63\145\151\166\145\144\56\x20\103\150\145\x63\153\40\x79\157\165\162\40\74\x62\x3e\101\164\x74\x72\151\142\165\164\145\x20\x4d\141\x70\x70\151\156\x67\x3c\x2f\142\x3e\x20\143\157\x6e\146\x69\x67\165\162\141\x74\x69\157\156\x2e");
            goto a3;
            gC:
            echo "\74\x6c\x69\156\x6b\x20\162\145\x6c\75\42\x73\164\171\x6c\145\163\150\145\x65\164\42\40\x74\x79\160\145\75\42\x74\x65\170\x74\57\x63\x73\x73\42\x20\x68\162\145\146\x3d\42" . JURI::root() . "\141\144\155\151\x6e\x69\x73\x74\x72\141\164\x6f\162\x2f\143\157\x6d\160\157\x6e\145\x6e\x74\x73\57\143\157\155\137\155\x69\156\151\157\162\x61\156\147\145\137\x6f\x61\x75\164\150\x2f\141\163\x73\145\x74\x73\57\143\163\163\57\x6d\x69\x6e\151\x6f\162\x61\x6e\147\145\x5f\157\x61\165\x74\150\x2e\x63\x73\x73\x22\x2f\x3e\xd\12\x20\40\x20\40\40\x20\40\x20\40\40\x20\x20\x20\x20\x20\40\40\40\40\40\x20\40\40\40\40\40\x20\40\40\40\x20\40\x20\40\x20\x20\x3c\144\151\166\x20\143\x6c\x61\x73\x73\x3d\x22\x6d\x6f\137\x6f\141\165\x74\150\x5f\x65\162\162\x6f\x72\137\155\145\163\x73\141\147\x65\42\x3e\x20\x45\x52\x52\x4f\122\x3c\x2f\x64\151\166\76\15\xa\x20\40\40\x20\40\40\x20\x20\x20\40\x20\40\x20\x20\40\x20\40\x20\x20\x20\40\x20\40\x20\40\40\40\40\x20\40\40\x20\40\40\x20\x20\74\144\151\166\x20\143\154\141\x73\163\x3d\42\x6d\x6f\137\157\x61\165\164\x68\x5f\144\165\x70\154\151\143\141\164\x65\137\145\x72\x72\x6f\x72\137\x6d\x65\163\x73\x61\x67\x65\42\76\xd\12\40\40\40\40\40\x20\x20\40\x20\x20\x20\40\x20\x20\x20\40\x20\40\x20\x20\x20\x20\40\x20\40\40\x20\x20\40\x20\40\40\x20\x20\x20\40\x3c\x70\76\x3c\x73\164\x72\157\156\147\76\x45\x72\x72\x6f\162\72\x20\x3c\57\163\164\162\x6f\x6e\147\x3e\127\x65\40\x63\157\x75\154\144\40\x6e\x6f\x74\40\163\151\x67\x6e\x20\171\x6f\x75\40\x69\x6e\x2e\x20\x50\x6c\x65\x61\x73\x65\40\x63\x6f\156\x74\141\x63\164\x20\171\x6f\x75\x72\x20\101\x64\x6d\151\x6e\151\x73\164\162\x61\164\x6f\162\56\74\57\160\x3e\15\12\x20\x20\x20\x20\40\x20\40\x20\x20\x20\x20\40\x20\40\x20\x20\40\40\x20\40\40\40\40\40\x20\x20\x20\40\40\40\40\x20\40\40\40\40\74\x70\x3e\x3c\163\164\x72\157\x6e\x67\x3e\120\157\x73\x73\x69\x62\154\145\x20\x43\x61\x75\163\145\72\x20\x3c\57\x73\164\x72\x6f\x6e\147\x3e\x20\42\101\x74\164\162\x69\x62\165\x74\145\40\x4d\x61\160\160\x69\x6e\147\40\x69\163\x20\x6e\157\x74\x20\x63\157\156\x66\x69\147\165\x72\145\144\40\x70\162\x6f\160\145\x72\x6c\x79\x2e\x22\74\57\x70\x3e\15\xa\x20\x20\40\40\40\40\40\40\x20\x20\40\x20\40\x20\40\x20\x20\40\x20\x20\40\40\x20\x20\x20\x20\x20\40\x20\x20\x20\x20\40\x20\74\57\144\151\166\76\x3c\x62\162\x3e\15\12\x20\40\x20\40\40\x20\x20\40\40\40\40\40\40\x20\40\40\40\x20\x20\40\40\40\x20\x20\40\x20\40\x20\40\40\40\x20\x20\40\74\141\x20\143\154\141\x73\163\75\x22\155\x6f\137\x6f\x61\165\x74\150\x5f\x65\162\x72\x6f\162\137\x68\157\155\x65\42\x20\164\171\160\145\75\42\142\165\164\x74\x6f\156\x22\x20\166\x61\154\x75\x65\75\42\103\154\x6f\x73\145\42\40\150\x72\145\146\x3d\42" . JURI::root() . "\x22\x3e\110\157\x6d\145\x3c\57\141\x3e\74\x2f\x64\x69\166\x3e";
            exit;
            a3:
            Gj:
            $zG = $this->get_user_from_joomla($Yn);
            if ($zG) {
                goto T2;
            }
            if ($ht["\x64\157\x6e\x74\x5f\141\x75\x74\x6f\x5f\x72\145\x67\151\x73\x74\145\x72"] == 1) {
                goto qz;
            }
            $this->RegisterCurrentUser($fF, $w2, $Yn);
            goto pK;
            qz:
            $iE = JFactory::getApplication();
            $sE = "\x4e\145\167\x20\125\x73\145\x72\163\x20\141\x72\x65\40\x6e\157\164\x20\141\x6c\x6c\x6f\167\x65\144\40\164\x6f\x20\154\157\x67\x20\151\156\x74\157\40\164\x68\145\40\x77\x65\x62\163\x69\x74\145\40\x61\x74\40\x74\150\x69\x73\40\160\x6f\151\156\x74\54\40\160\x6c\x65\141\x73\x65\x20\x63\157\x6e\164\141\x63\164\40\x79\157\165\162\x20\141\x64\155\151\156\x69\x73\164\x72\141\164\x6f\162";
            $iE->enqueueMessage(JText::_($sE), "\145\x72\x72\x6f\162");
            $iE->redirect(JRoute::_(JURI::root()));
            pK:
            goto wv;
            T2:
            $this->loginCurrentUser($zG, $fF, $w2, $Yn);
            wv:
        } catch (Exception $Z0) {
            exit($Z0->getMessage());
        }
        goto QQ;
        ew:
        if (isset($qg["\145\x72\162\157\x72\x5f\144\x65\163\143\162\x69\x70\164\151\x6f\156"])) {
            goto BT;
        }
        if (!isset($qg["\145\162\x72\x6f\x72"])) {
            goto WH;
        }
        exit($qg["\x65\162\162\x6f\162"]);
        WH:
        goto M2;
        BT:
        exit($qg["\145\162\x72\x6f\x72\137\x64\x65\x73\x63\162\x69\160\x74\151\157\156"]);
        M2:
        exit("\x49\x6e\166\x61\x6c\x69\x64\40\162\x65\163\160\x6f\x6e\163\145");
        QQ:
        w8:
        goto Jv;
        ix:
        if (Self::is_customer_registered()) {
            goto c1;
        }
        echo "\74\144\x69\166\40\x73\x74\171\154\145\75\42\x66\x6f\156\164\x2d\146\x61\155\151\154\x79\72\103\x61\154\151\142\162\x69\73\160\x61\x64\x64\x69\156\x67\x3a\60\x20\x33\x25\73\42\76";
        echo "\x3c\x64\x69\166\40\163\x74\171\x6c\x65\x3d\x22\143\x6f\154\x6f\162\x3a\40\x23\x61\71\x34\64\x34\x32\73\x62\141\x63\x6b\x67\x72\157\x75\x6e\144\x2d\x63\157\x6c\x6f\162\x3a\x20\x23\146\62\144\145\144\x65\x3b\160\x61\144\144\x69\156\x67\x3a\40\x31\x35\x70\x78\x3b\x6d\x61\x72\147\151\x6e\55\142\157\164\x74\x6f\155\72\x20\x32\60\160\x78\73\x74\x65\x78\164\x2d\141\x6c\x69\x67\156\x3a\x63\145\x6e\164\145\162\x3b\x62\157\162\144\x65\x72\72\x31\160\170\x20\163\157\x6c\151\144\x20\x23\x45\x36\102\63\x42\x32\73\x66\x6f\156\x74\x2d\x73\151\x7a\x65\x3a\x31\70\160\164\x3b\42\76\40\105\x52\x52\117\x52\x3c\x2f\144\151\166\76\15\12\40\x20\40\x20\40\x20\40\40\40\40\40\x20\x20\40\x20\40\40\40\x20\40\40\x20\40\40\x3c\x64\151\x76\40\x73\164\x79\154\x65\75\x22\x63\x6f\x6c\157\x72\x3a\x20\43\x61\71\64\64\64\x32\73\146\157\x6e\x74\x2d\x73\x69\x7a\x65\72\61\x34\160\x74\x3b\40\x6d\x61\162\x67\151\x6e\x2d\x62\x6f\x74\164\157\155\72\62\60\160\170\x3b\x22\x3e\74\x70\76\x3c\x73\164\x72\157\x6e\x67\76\x45\x72\162\157\162\72\40\x3c\x2f\163\164\162\157\x6e\x67\76\x59\x6f\x75\x20\141\x72\x65\x20\x6e\x6f\164\x20\154\x6f\147\x67\x65\x64\x20\151\156\x3c\57\x70\x3e\xd\xa\x20\x20\x20\x20\x20\x20\40\x20\40\40\x20\40\x20\40\x20\40\40\x20\x20\x20\x20\x20\x20\40\x20\x20\x20\x20\74\160\x3e\x50\x6c\x65\x61\163\145\x20\x6c\x6f\147\151\156\x20\x66\x69\162\163\x74\40\164\x6f\40\x61\143\x74\151\x76\x61\164\x65\40\x73\x69\x6e\x67\154\145\40\x73\x69\147\x6e\x20\x6f\156\x2e\74\x2f\x70\x3e\xd\12\40\x20\x20\40\x20\x20\40\40\x20\x20\x20\40\40\x20\40\40\40\40\40\x20\40\40\x20\x20\40\40\40\40\74\160\x3e\74\163\164\x72\x6f\156\147\x3e\120\x6f\163\x73\x69\x62\154\x65\x20\103\141\x75\x73\x65\72\40\74\x2f\163\x74\x72\157\x6e\x67\x3e\x4d\141\x6b\x65\40\x73\165\162\145\x20\171\157\x75\x20\150\x61\166\145\x20\x6c\157\147\x67\x65\144\x20\x69\x6e\x2f\40\122\145\147\x69\x73\164\145\x72\40\151\156\x20\x74\157\40\160\x6c\165\147\151\156\x3c\57\x70\x3e\xd\xa\40\x20\x20\x20\40\40\x20\40\40\x20\x20\x20\40\40\x20\40\40\x20\x20\x20\40\x20\x20\x20\x3c\57\x64\151\166\76\xd\xa\x20\40\40\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\40\x20\40\x3c\144\x69\166\x20\x73\164\171\x6c\x65\75\42\x6d\x61\x72\x67\x69\156\x3a\63\x25\73\144\151\x73\160\154\141\171\x3a\142\x6c\157\143\153\x3b\164\x65\x78\x74\x2d\x61\x6c\151\x67\x6e\72\143\145\x6e\164\x65\x72\73\x22\76";
        $ZY = JURI::root();
        echo "\74\x64\x69\x76\40\163\164\171\154\145\x3d\x22\x6d\x61\162\147\x69\156\x3a\x33\45\x3b\144\151\x73\160\x6c\141\x79\x3a\142\x6c\x6f\x63\x6b\x3b\x74\145\170\x74\x2d\x61\x6c\x69\147\156\72\x63\x65\x6e\x74\x65\x72\x3b\x22\76\74\x61\40\150\162\145\x66\75\42";
        echo $ZY;
        echo "\x20\42\76\74\x69\156\x70\165\164\40\x73\164\171\154\x65\x3d\x22\x70\141\144\144\151\x6e\147\x3a\61\x25\73\167\151\x64\x74\150\x3a\61\60\x30\160\x78\x3b\142\141\x63\x6b\x67\x72\157\x75\156\x64\72\40\x23\60\60\x39\x31\x43\x44\x20\156\x6f\x6e\x65\x20\x72\x65\x70\145\x61\x74\40\163\x63\x72\x6f\154\154\x20\x30\x25\x20\x30\45\73\143\x75\162\163\x6f\162\x3a\x20\x70\x6f\x69\156\164\x65\162\x3b\x66\x6f\156\x74\x2d\x73\151\172\145\72\61\x35\x70\x78\73\142\x6f\162\144\145\x72\x2d\167\151\x64\x74\x68\x3a\40\x31\x70\x78\73\x62\157\x72\x64\145\162\55\163\x74\171\154\x65\x3a\40\x73\157\154\x69\144\73\x62\x6f\162\x64\145\x72\x2d\162\141\144\x69\165\163\72\x20\x33\160\x78\x3b\x77\x68\151\x74\x65\55\x73\x70\141\143\x65\72\x20\156\157\x77\x72\141\160\73\x62\157\x78\55\163\151\x7a\151\156\x67\72\x20\x62\157\162\x64\145\x72\55\x62\x6f\x78\73\142\x6f\162\144\145\162\55\143\x6f\x6c\157\x72\72\x20\x23\60\x30\x37\63\101\x41\x3b\x62\157\170\55\163\x68\141\x64\x6f\167\x3a\40\60\x70\170\40\x31\x70\x78\x20\60\160\170\x20\x72\x67\x62\141\50\61\x32\60\x2c\40\62\x30\x30\54\40\62\x33\60\x2c\40\60\x2e\x36\51\x20\151\x6e\163\145\164\73\143\157\x6c\157\162\x3a\40\x23\106\x46\106\x3b\x22\x74\171\160\145\75\x22\x62\165\164\x74\x6f\x6e\x22\x20\166\x61\154\x75\145\75\42\104\x6f\156\x65\42\76\x3c\57\141\76\x3c\57\144\x69\x76\x3e";
        exit;
        c1:
        $cw = Utilities_OauthCl::getCustomerDetails();
        $ZQ = $cw["\x73\164\x61\164\x75\x73"];
        if (!(Self::check($ZQ) != "\x74\x72\x75\145")) {
            goto th;
        }
        echo "\74\144\x69\x76\x20\163\164\x79\154\x65\x3d\x22\146\157\156\x74\x2d\146\x61\x6d\x69\x6c\171\72\103\141\x6c\x69\x62\162\x69\x3b\160\x61\x64\x64\x69\156\x67\x3a\60\40\x33\45\x3b\42\76";
        echo "\x3c\x64\x69\166\40\x73\x74\171\154\145\x3d\42\x63\157\154\x6f\162\x3a\40\43\x61\x39\x34\x34\64\x32\x3b\x62\141\x63\x6b\x67\162\x6f\x75\x6e\x64\x2d\x63\x6f\x6c\157\162\72\x20\43\x66\62\x64\x65\x64\x65\73\160\141\x64\144\151\156\x67\72\40\61\65\160\x78\x3b\155\141\x72\147\151\x6e\55\142\157\x74\x74\x6f\x6d\x3a\40\62\x30\x70\170\x3b\x74\145\x78\164\x2d\x61\x6c\x69\x67\156\72\143\x65\156\x74\145\162\x3b\142\157\x72\x64\x65\162\x3a\x31\x70\x78\40\163\x6f\154\x69\144\x20\x23\x45\66\102\63\x42\62\x3b\x66\157\x6e\x74\x2d\163\x69\x7a\x65\x3a\x31\x38\x70\x74\73\x22\x3e\x20\x45\x52\122\x4f\122\74\x2f\144\x69\x76\x3e\xd\xa\40\x20\40\40\40\40\x20\x20\40\40\40\x20\40\x20\40\x20\40\40\x20\40\x20\x20\x20\x20\x3c\144\x69\166\40\x73\x74\x79\x6c\145\x3d\x22\143\157\154\x6f\162\x3a\x20\x23\141\71\x34\x34\64\62\x3b\x66\157\x6e\164\55\163\x69\x7a\145\x3a\x31\64\x70\164\73\40\155\x61\162\x67\x69\156\x2d\142\157\164\164\x6f\155\x3a\x32\60\x70\170\73\x22\x3e\x3c\x70\76\74\x73\x74\x72\x6f\x6e\x67\x3e\105\x72\x72\157\162\x3a\40\74\57\163\164\162\x6f\156\x67\76\x59\x6f\x75\x72\40\x6c\151\143\x65\156\x73\x65\40\x69\x73\40\156\157\164\x20\141\143\164\x69\x76\141\164\145\144\x3c\x2f\x70\x3e\15\xa\40\40\40\40\40\x20\x20\x20\x20\40\x20\x20\x20\x20\40\40\x20\40\40\40\x20\40\x20\40\40\x20\x20\x20\74\x70\76\x50\154\x65\141\x73\145\40\154\x6f\147\x69\156\x20\164\x6f\x20\141\143\164\151\166\x61\x74\145\x20\x74\150\145\40\x6c\151\x63\145\x6e\x73\x65\x2e\x3c\57\x70\x3e\15\12\40\40\x20\x20\x20\x20\40\40\40\x20\x20\40\40\x20\40\x20\40\40\x20\x20\40\40\40\x20\40\x20\40\40\74\160\x3e\74\x73\164\x72\x6f\156\x67\x3e\120\157\x73\163\x69\x62\x6c\145\x20\x43\x61\x75\x73\x65\x3a\x20\74\x2f\x73\164\162\157\156\147\x3e\x4d\141\153\x65\40\x73\x75\162\x65\x20\x79\x6f\165\40\150\141\x76\x65\40\141\x63\x74\x69\x76\141\164\145\144\x20\164\x68\145\40\x6c\151\143\145\x6e\163\x65\40\x69\x6e\x20\x74\157\40\160\x6c\x75\147\151\156\74\57\x70\x3e\xd\xa\x20\x20\x20\x20\40\x20\x20\40\x20\x20\x20\x20\40\40\40\40\40\40\x20\x20\40\40\x20\x20\74\x2f\144\151\x76\76\15\12\x20\x20\40\40\x20\x20\x20\x20\40\x20\x20\x20\x20\40\40\40\40\x20\x20\40\x3c\x64\151\166\40\163\x74\x79\154\x65\75\x22\155\x61\162\147\151\x6e\x3a\x33\x25\73\x64\151\163\160\154\141\x79\x3a\x62\x6c\157\x63\x6b\73\164\145\x78\164\x2d\x61\154\151\x67\x6e\72\143\145\x6e\x74\145\x72\x3b\42\x3e";
        $ZY = JURI::root();
        echo "\74\144\151\x76\40\x73\x74\x79\154\145\75\42\155\x61\x72\147\x69\x6e\x3a\x33\45\x3b\144\151\163\x70\x6c\141\x79\72\x62\x6c\157\143\153\73\164\145\x78\164\55\x61\x6c\151\x67\x6e\72\x63\145\156\164\145\162\x3b\x22\76\x3c\141\40\x68\x72\x65\146\75\42";
        echo $ZY;
        echo "\x20\x22\76\x3c\151\x6e\x70\165\x74\40\163\x74\171\154\x65\x3d\x22\x70\141\x64\x64\x69\156\x67\x3a\x31\45\x3b\167\151\144\164\150\72\61\60\60\x70\x78\73\x62\x61\143\153\x67\x72\157\x75\156\144\72\40\x23\60\x30\x39\x31\x43\x44\40\156\x6f\156\x65\40\162\x65\x70\145\141\164\x20\x73\x63\162\x6f\154\154\40\x30\45\x20\60\45\x3b\x63\165\162\163\x6f\162\x3a\40\x70\157\x69\156\164\145\x72\73\x66\157\x6e\164\x2d\x73\x69\172\x65\x3a\61\65\160\170\x3b\142\x6f\162\x64\x65\162\x2d\167\x69\144\164\150\x3a\40\61\160\170\73\142\x6f\x72\144\145\x72\x2d\163\x74\171\x6c\145\x3a\x20\163\157\154\x69\x64\73\142\x6f\162\x64\x65\162\x2d\x72\x61\144\x69\x75\163\x3a\x20\63\160\x78\x3b\x77\150\151\164\x65\x2d\x73\x70\141\x63\145\72\40\156\157\x77\162\141\x70\73\x62\157\x78\x2d\163\x69\172\x69\x6e\x67\x3a\x20\x62\x6f\x72\144\145\162\55\142\157\170\73\142\x6f\x72\144\145\x72\x2d\143\157\154\157\x72\x3a\x20\43\60\x30\x37\63\101\101\73\142\157\170\55\x73\150\x61\x64\157\167\72\x20\x30\160\170\x20\61\160\170\40\x30\x70\170\x20\162\x67\142\141\x28\61\x32\x30\x2c\40\62\60\x30\x2c\x20\x32\63\x30\x2c\40\60\56\66\x29\x20\x69\156\163\x65\x74\73\x63\x6f\154\x6f\162\72\40\x23\x46\x46\106\73\x22\x74\171\160\145\x3d\42\142\165\164\x74\157\156\42\40\166\x61\154\x75\x65\x3d\x22\x44\157\x6e\x65\42\76\74\57\141\x3e\74\x2f\x64\151\x76\76";
        exit;
        th:
        $Md = $qg["\x61\160\x70\x5f\156\x61\x6d\x65"];
        if (isset($qg["\x74\x65\x73\164"])) {
            goto mP;
        }
        setcookie("\155\157\137\x6f\141\x75\164\x68\137\x74\145\x73\164", false);
        goto qF;
        mP:
        setcookie("\155\157\137\x6f\141\165\x74\x68\x5f\164\x65\163\164", true);
        qF:
        $B4 = Utilities_OauthCl::get_oauth_config();
        $oh = base64_encode($Md);
        $vG = $B4["\141\x75\x74\150\157\162\x69\x7a\145\x5f\145\x6e\144\160\157\x69\156\164"];
        if (strpos($vG, "\x3f") !== false) {
            goto SY;
        }
        $vG = $vG . "\77\x63\x6c\151\145\156\x74\137\151\144\x3d" . $B4["\143\154\x69\x65\x6e\x74\137\151\144"] . "\46\163\143\x6f\160\145\x3d" . $B4["\x61\x70\160\137\163\143\157\x70\145"] . "\46\162\145\x64\x69\162\145\143\x74\x5f\x75\x72\151\75" . JURI::root() . "\x26\162\x65\x73\x70\157\x6e\163\145\x5f\164\x79\160\145\x3d\143\x6f\144\145\x26\163\164\x61\164\x65\75" . $oh;
        goto f4;
        SY:
        $vG = $vG . "\x26\x63\154\151\145\156\x74\x5f\151\144\75" . $B4["\143\x6c\151\145\156\x74\x5f\151\144"] . "\x26\x73\143\157\160\145\75" . $B4["\141\160\160\x5f\163\143\x6f\160\145"] . "\x26\x72\145\x64\x69\x72\x65\143\x74\137\165\x72\151\x3d" . JURI::root() . "\x26\162\145\163\x70\x6f\156\163\145\137\164\171\x70\145\75\x63\x6f\x64\145\x26\x73\164\141\164\145\x3d" . $oh;
        f4:
        if (!(session_id() == '' || !isset($_SESSION))) {
            goto PT;
        }
        session_start();
        PT:
        $_SESSION["\157\x61\165\164\150\62\x73\x74\x61\164\x65"] = $oh;
        $_SESSION["\141\160\x70\156\141\x6d\x65"] = $Md;
        $R5 = JFactory::getSession();
        $R5->set("\x6d\x6f\x4a\117\x61\x75\164\150\x53\163\x6f\x4f\162\151\x67\x69\x6e", $this->getSsoOrigin());
        header("\x4c\x6f\x63\141\164\x69\157\x6e\x3a\x20" . $vG);
        exit;
        Jv:
        goto lA;
        Mp:
        if (Self::is_customer_registered()) {
            goto z5;
        }
        echo "\74\x64\x69\x76\40\x73\164\x79\x6c\x65\75\x22\146\157\x6e\164\x2d\x66\141\155\151\154\x79\72\103\141\x6c\151\x62\x72\x69\73\x70\x61\x64\x64\151\x6e\x67\x3a\x30\40\x33\x25\x3b\x22\x3e";
        echo "\x3c\144\x69\x76\x20\x73\x74\x79\154\x65\x3d\x22\x63\x6f\x6c\157\x72\x3a\x20\43\x61\71\x34\64\64\x32\x3b\142\x61\x63\153\x67\162\x6f\165\156\144\55\x63\157\154\x6f\x72\72\x20\x23\146\62\x64\x65\144\145\73\x70\x61\x64\144\x69\x6e\x67\x3a\40\x31\65\x70\x78\x3b\155\141\x72\x67\x69\156\x2d\x62\157\x74\x74\157\x6d\72\x20\62\x30\x70\x78\x3b\164\145\170\x74\55\141\x6c\x69\x67\156\x3a\143\145\156\164\145\x72\73\x62\157\162\144\145\162\72\61\x70\x78\40\x73\x6f\154\x69\x64\x20\x23\105\66\x42\x33\102\x32\x3b\146\x6f\x6e\x74\55\163\151\172\x65\72\x31\x38\x70\x74\73\x22\76\40\105\x52\x52\x4f\x52\74\x2f\144\151\x76\x3e\xd\xa\x20\40\x20\40\40\x20\x20\40\40\x20\x20\x20\40\x20\x20\x20\40\40\40\x20\40\x20\x20\x20\74\144\151\166\x20\x73\x74\x79\x6c\x65\75\x22\143\157\x6c\157\x72\72\40\43\x61\x39\x34\x34\64\62\73\x66\157\156\x74\55\163\151\x7a\145\x3a\x31\64\x70\164\x3b\40\155\x61\162\147\151\156\55\x62\157\164\x74\157\155\x3a\x32\x30\160\170\73\x22\x3e\74\x70\x3e\74\x73\x74\162\157\x6e\147\x3e\x45\x72\x72\x6f\x72\x3a\x20\74\57\163\x74\x72\157\156\147\76\x59\x6f\x75\x20\x61\x72\x65\40\156\x6f\x74\x20\154\x6f\147\147\145\x64\40\151\x6e\74\x2f\x70\x3e\15\xa\40\40\x20\40\x20\x20\x20\40\40\40\40\40\40\x20\40\40\40\x20\x20\40\x20\x20\40\40\x20\40\x20\x20\74\160\x3e\120\154\145\x61\x73\x65\40\154\x6f\147\x69\x6e\x20\x66\151\x72\163\x74\40\x74\157\x20\141\x63\164\x69\x76\141\164\x65\x20\163\x69\156\147\154\145\x20\163\151\x67\156\40\157\156\56\x3c\57\x70\x3e\xd\xa\x20\40\x20\x20\40\40\40\40\40\x20\x20\x20\x20\x20\x20\x20\40\40\40\x20\x20\x20\40\x20\40\40\40\40\74\x70\76\74\163\x74\162\x6f\156\x67\x3e\120\157\163\163\151\142\154\x65\x20\x43\141\165\x73\145\x3a\x20\x3c\x2f\163\164\162\x6f\x6e\147\76\115\141\x6b\145\40\x73\x75\x72\145\40\x79\157\x75\x20\x68\x61\166\145\40\154\157\x67\x67\x65\x64\40\151\156\57\x20\122\x65\147\x69\163\x74\x65\x72\40\x69\156\x20\x74\x6f\x20\x70\154\165\x67\151\156\x3c\57\x70\76\15\xa\40\40\x20\x20\x20\40\x20\40\40\40\40\40\40\40\x20\40\40\40\40\x20\40\x20\40\40\74\x2f\x64\151\x76\76\15\12\40\40\40\x20\40\x20\x20\40\40\40\x20\40\40\40\x20\x20\x20\40\x20\x20\74\x64\x69\x76\40\x73\x74\171\x6c\145\75\x22\155\x61\x72\147\x69\x6e\x3a\x33\45\x3b\x64\151\163\x70\x6c\141\171\72\x62\154\157\x63\x6b\73\x74\x65\x78\164\x2d\141\154\x69\x67\x6e\72\x63\145\156\164\145\x72\x3b\x22\x3e";
        $ZY = JURI::root();
        echo "\74\144\x69\x76\x20\x73\x74\171\x6c\145\x3d\x22\x6d\141\162\147\x69\156\x3a\x33\45\x3b\x64\x69\163\160\154\141\171\x3a\142\x6c\157\143\153\73\x74\145\170\x74\x2d\x61\154\x69\x67\156\x3a\x63\145\x6e\164\145\162\x3b\42\x3e\x3c\x61\x20\150\x72\x65\146\75\x22";
        echo $ZY;
        echo "\x20\x22\76\74\151\x6e\x70\165\x74\x20\163\x74\171\154\145\x3d\42\x70\141\x64\x64\151\x6e\x67\x3a\x31\x25\x3b\167\151\x64\164\150\72\x31\x30\x30\x70\x78\73\x62\x61\x63\153\147\x72\157\x75\156\144\72\40\43\60\60\71\x31\103\x44\40\x6e\x6f\x6e\145\40\162\x65\x70\x65\x61\164\x20\163\143\162\157\x6c\x6c\40\x30\x25\40\x30\45\x3b\143\165\162\x73\x6f\x72\72\x20\x70\x6f\151\156\164\x65\x72\x3b\146\157\156\x74\55\x73\151\x7a\x65\72\61\x35\x70\x78\73\142\157\x72\144\145\x72\x2d\x77\x69\144\x74\150\72\x20\x31\x70\x78\x3b\142\157\x72\x64\145\x72\55\163\164\x79\154\x65\x3a\x20\x73\157\154\151\144\73\x62\x6f\x72\144\x65\x72\x2d\x72\141\144\151\x75\x73\72\x20\x33\x70\170\x3b\x77\150\x69\164\145\x2d\x73\160\x61\x63\145\x3a\40\x6e\x6f\x77\162\x61\x70\73\x62\x6f\x78\55\163\151\x7a\x69\156\147\x3a\40\x62\157\x72\144\145\x72\x2d\142\157\x78\73\142\157\x72\x64\145\162\x2d\143\x6f\154\157\162\72\x20\x23\x30\60\67\63\x41\101\x3b\142\157\170\55\x73\x68\141\144\157\x77\72\x20\x30\160\170\40\x31\160\x78\x20\x30\x70\x78\40\x72\147\142\141\x28\61\x32\60\x2c\x20\62\x30\60\54\40\x32\x33\60\x2c\x20\60\x2e\66\51\x20\151\x6e\163\x65\x74\73\x63\157\154\x6f\162\x3a\40\43\106\106\x46\x3b\x22\164\171\x70\145\x3d\42\142\165\164\164\157\156\42\x20\x76\x61\x6c\165\x65\x3d\x22\x44\x6f\156\x65\x22\76\74\57\x61\76\74\57\144\151\x76\x3e";
        exit;
        z5:
        $cw = Utilities_OauthCl::getCustomerDetails();
        $ZQ = $cw["\x73\x74\141\x74\165\x73"];
        if (!(Self::check($ZQ) != "\x74\162\x75\145")) {
            goto Xw;
        }
        echo "\x3c\x64\x69\166\x20\163\164\171\154\145\75\42\146\x6f\156\x74\55\146\x61\x6d\151\x6c\171\72\x43\141\x6c\x69\142\x72\x69\73\x70\x61\x64\x64\x69\156\147\x3a\60\40\x33\x25\x3b\x22\x3e";
        echo "\74\x64\151\x76\x20\x73\164\x79\x6c\x65\x3d\42\143\157\154\157\x72\x3a\x20\43\141\x39\64\x34\64\62\x3b\x62\141\x63\153\x67\x72\x6f\165\x6e\144\55\x63\x6f\x6c\x6f\162\72\x20\43\x66\62\x64\x65\144\x65\x3b\x70\x61\144\x64\151\156\147\x3a\40\61\x35\x70\170\x3b\155\x61\x72\x67\151\156\55\x62\157\164\x74\157\155\72\40\x32\x30\160\170\x3b\x74\x65\170\x74\x2d\141\x6c\151\147\x6e\72\x63\x65\x6e\x74\x65\x72\x3b\x62\157\x72\x64\x65\162\72\x31\160\x78\x20\163\157\x6c\151\x64\x20\x23\105\66\x42\63\x42\x32\x3b\x66\157\x6e\x74\x2d\x73\x69\x7a\145\x3a\61\x38\160\164\73\x22\76\40\105\122\122\x4f\x52\x3c\x2f\144\x69\x76\76\xd\12\x20\40\x20\40\x20\40\40\40\x20\x20\x20\40\x20\40\x20\x20\40\x20\40\40\40\40\x20\40\x3c\x64\151\166\40\x73\x74\171\x6c\x65\x3d\x22\143\157\x6c\x6f\162\x3a\x20\43\x61\x39\64\x34\x34\62\73\146\157\156\x74\x2d\163\151\172\x65\x3a\x31\x34\x70\164\73\40\155\141\x72\x67\x69\x6e\x2d\142\157\x74\x74\x6f\155\x3a\62\60\x70\x78\x3b\x22\76\74\160\x3e\x3c\163\x74\162\x6f\156\147\x3e\105\162\x72\x6f\x72\x3a\x20\x3c\x2f\x73\164\x72\x6f\x6e\147\76\x59\x6f\x75\162\40\154\x69\x63\145\x6e\x73\145\x20\x69\163\40\x6e\x6f\164\40\141\x63\x74\151\166\141\164\145\x64\x3c\x2f\160\x3e\xd\12\40\40\40\x20\40\x20\x20\40\x20\40\40\x20\40\x20\x20\40\x20\40\40\40\40\40\x20\x20\x20\x20\40\40\x3c\160\x3e\120\154\x65\x61\x73\x65\x20\154\157\147\151\156\x20\x74\x6f\x20\141\x63\x74\151\166\x61\x74\145\x20\x74\x68\x65\40\154\x69\x63\145\156\163\x65\56\x3c\x2f\160\76\xd\xa\x20\x20\40\40\40\x20\x20\40\40\x20\40\x20\x20\40\x20\x20\40\x20\x20\x20\40\x20\40\40\x20\40\x20\x20\x3c\160\x3e\74\x73\164\162\x6f\x6e\x67\76\120\x6f\163\x73\151\142\x6c\x65\x20\103\x61\x75\x73\x65\72\40\x3c\x2f\x73\164\x72\x6f\x6e\147\x3e\115\x61\153\x65\40\163\x75\x72\x65\40\x79\157\165\40\x68\x61\166\145\x20\141\143\x74\x69\166\141\x74\145\x64\40\164\x68\145\40\x6c\151\x63\145\156\163\145\40\151\x6e\40\x74\x6f\40\160\x6c\x75\x67\x69\x6e\x3c\57\160\76\15\xa\x20\x20\x20\40\40\x20\x20\40\40\40\40\x20\40\x20\x20\x20\x20\40\x20\40\x20\40\x20\x20\x3c\x2f\144\x69\166\76\xd\xa\x20\40\x20\x20\40\x20\40\40\40\x20\40\x20\x20\40\x20\x20\x20\40\x20\40\x3c\x64\x69\166\x20\x73\164\171\154\x65\x3d\42\155\x61\162\147\x69\156\72\63\45\73\144\x69\163\160\x6c\x61\x79\x3a\142\x6c\157\143\153\73\164\145\170\x74\x2d\x61\154\x69\147\x6e\72\x63\145\156\x74\x65\x72\x3b\42\x3e";
        $ZY = JURI::root();
        echo "\x3c\x64\151\166\x20\x73\164\x79\154\145\75\x22\x6d\141\162\x67\151\156\72\x33\45\x3b\144\151\163\x70\154\x61\x79\72\142\154\x6f\x63\153\73\164\145\170\164\55\x61\x6c\151\x67\156\72\x63\x65\x6e\164\x65\x72\x3b\42\x3e\74\141\x20\150\x72\x65\146\x3d\42";
        echo $ZY;
        echo "\x20\x22\76\74\151\156\x70\x75\164\40\163\x74\171\154\x65\x3d\42\x70\x61\x64\x64\151\156\x67\x3a\61\45\73\167\151\144\164\x68\72\61\60\x30\x70\170\x3b\142\x61\143\153\147\x72\157\x75\x6e\x64\72\x20\x23\60\60\71\61\103\104\x20\156\157\156\x65\40\162\x65\x70\x65\141\164\40\x73\143\x72\157\154\x6c\40\x30\x25\40\x30\x25\73\143\x75\162\163\x6f\x72\72\40\160\x6f\x69\x6e\x74\x65\x72\73\146\x6f\x6e\x74\55\163\151\172\x65\72\61\65\x70\x78\73\x62\x6f\x72\144\x65\162\x2d\167\151\144\164\150\x3a\40\x31\160\x78\73\x62\157\x72\144\x65\x72\x2d\x73\x74\x79\x6c\x65\x3a\x20\163\x6f\x6c\x69\144\73\142\157\162\x64\x65\x72\55\x72\141\x64\x69\x75\x73\x3a\40\63\160\x78\73\x77\150\151\x74\145\55\x73\160\141\x63\x65\x3a\40\x6e\x6f\167\162\x61\x70\73\142\x6f\170\55\163\151\x7a\151\x6e\147\72\40\x62\x6f\x72\144\x65\162\55\142\x6f\x78\73\x62\157\x72\x64\145\162\55\x63\x6f\154\x6f\x72\x3a\x20\43\60\x30\x37\x33\101\101\x3b\x62\157\x78\55\163\150\141\x64\x6f\x77\72\x20\60\160\x78\40\61\160\170\40\60\x70\170\40\x72\x67\x62\141\x28\61\62\60\x2c\40\62\60\x30\x2c\40\62\x33\60\54\40\60\x2e\x36\x29\x20\151\x6e\163\x65\x74\x3b\143\x6f\x6c\x6f\x72\72\40\x23\x46\x46\x46\73\42\x74\171\160\145\x3d\42\142\165\164\x74\157\x6e\42\x20\x76\141\x6c\165\145\75\42\104\x6f\156\145\42\76\74\x2f\141\76\x3c\57\144\x69\x76\76";
        exit;
        Xw:
        $g9 = $qg["\141\x70\x70"];
        $iE = JFactory::getApplication();
        $iE->redirect(JRoute::_(JURI::root() . "\x3f\155\157\162\x65\x71\165\145\x73\x74\x3d\x6f\x61\165\x74\x68\162\145\x64\151\x72\145\x63\164\46\x61\160\x70\137\x6e\x61\x6d\x65\x3d" . urlencode($g9) . "\46\164\x65\x73\x74\x3d\x74\162\x75\145"));
        lA:
    }
    public function onUserLogout()
    {
        $iE = JFactory::getApplication();
        $tO = Utilities_OauthCl::get_oauth_config();
        if (isset($tO["\154\157\x67\x6f\165\164\x5f\x72\x65\x64\x69\x72\x65\143\x74\137\x75\162\x6c"]) && $tO["\x6c\157\147\x6f\x75\164\137\162\x65\x64\151\x72\145\143\x74\137\165\x72\154"] != '') {
            goto ls;
        }
        $Se = JURI::root();
        goto Sm;
        ls:
        $Se = $tO["\x6c\x6f\147\157\165\x74\x5f\x72\x65\144\x69\x72\145\x63\164\x5f\x75\x72\x6c"];
        Sm:
        $Jm = JFactory::getSession();
        $Jm->destroy();
        $iE->redirect($Se);
    }
    public function redirectTheUserAtLogin()
    {
        $iE = JFactory::getApplication();
        $R5 = JFactory::getSession();
        $NR = $R5->get("\x6d\157\x4a\117\x61\165\x74\x68\123\163\157\117\162\151\147\x69\x6e");
        $tO = Utilities_OauthCl::get_oauth_config();
        $pN = JURI::root() . "\x69\x6e\x64\x65\170\56\160\x68\160\x3f";
        if (!empty($tO["\154\157\x67\151\x6e\137\x72\145\144\x69\x72\x65\x63\164\137\165\162\154"])) {
            goto cC;
        }
        if (!(!empty($NR) && strpos($NR, "\x6d\x6f\x72\145\x71\165\x65\163\164\75\157\141\x75\x74\x68\x72\x65\144\x69\162\145\143\x74") === FALSE)) {
            goto AJ;
        }
        $pN = $NR;
        AJ:
        goto kK;
        cC:
        $pN = $tO["\154\157\x67\x69\156\137\162\x65\144\151\162\145\x63\164\x5f\x75\x72\x6c"];
        kK:
        $iE->redirect($pN);
    }
    function test_attr_mapping_config($pa, $pF)
    {
        foreach ($pF as $Iv => $Gy) {
            if (is_array($Gy) || is_object($Gy)) {
                goto Rn;
            }
            echo "\x3c\164\x72\x3e\74\164\144\x20\x3e";
            if (empty($pa)) {
                goto xI;
            }
            echo $pa . "\56";
            xI:
            echo $Iv . "\74\x2f\164\x64\x3e\x3c\164\x64\76" . $Gy . "\x3c\x2f\x74\x64\x3e\x3c\x2f\x74\x72\76";
            goto lj;
            Rn:
            if (empty($pa)) {
                goto V8;
            }
            $pa .= "\56";
            V8:
            $this->test_attr_mapping_config($pa . $Iv, $Gy);
            lj:
            NV:
        }
        TR:
    }
    function getnestedattribute($Gy, $Iv)
    {
        if (!(trim($Iv) == '')) {
            goto L1;
        }
        return '';
        L1:
        $ug = explode("\56", $Iv);
        if (sizeof($ug) > 1) {
            goto fs;
        }
        $tl = $ug[0];
        if (!isset($Gy[$tl])) {
            goto m1;
        }
        if (is_array($Gy[$tl])) {
            goto OL;
        }
        return $Gy[$tl];
        goto qH;
        OL:
        return $Gy[$tl][0];
        qH:
        m1:
        goto kb;
        fs:
        $tl = $ug[0];
        if (!isset($Gy[$tl])) {
            goto VW;
        }
        return $this->getnestedattribute($Gy[$tl], str_replace($tl . "\x2e", '', $Iv));
        VW:
        kb:
        return '';
    }
    function get_user_from_joomla($Yn)
    {
        $Ls = JFactory::getDBO();
        $qW = $Ls->getQuery(true)->select("\151\x64")->from("\x23\137\137\x75\163\145\162\163")->where("\145\x6d\x61\151\x6c\75" . $Ls->quote($Yn));
        $Ls->setQuery($qW);
        $zG = $Ls->loadObject();
        return $zG;
    }
    function loginCurrentUser($zG, $fF, $w2, $Yn)
    {
        $iE = JFactory::getApplication();
        $user = JUser::getInstance($zG->id);
        $tO = Utilities_OauthCl::get_oauth_config();
        $BA = 2;
        if (!isset($tO["\x6d\141\x70\x70\151\156\x67\x5f\166\141\x6c\x75\145\x5f\144\145\x66\x61\x75\x6c\164"])) {
            goto uP;
        }
        $BA = $tO["\x6d\x61\160\160\x69\x6e\x67\x5f\x76\x61\x6c\x75\145\x5f\x64\145\x66\141\x75\154\164"];
        uP:
        $lu = 0;
        if (!isset($tO["\x65\156\141\142\x6c\x65\x5f\x72\157\x6c\145\x5f\x6d\x61\160\160\151\156\x67"])) {
            goto XW;
        }
        $Hi = json_decode($tO["\x65\156\141\142\x6c\x65\x5f\x72\x6f\154\x65\x5f\155\141\x70\160\x69\x6e\x67"]);
        XW:
        jimport("\152\157\x6f\x6d\154\x61\x2e\x75\x73\x65\x72\x2e\x68\x65\154\x70\x65\162");
        if (!($Hi == 1)) {
            goto hj;
        }
        JUserHelper::addUserToGroup($user->id, $BA);
        foreach ($user->groups as $wC) {
            if (!($wC != $BA)) {
                goto UP;
            }
            JUserHelper::removeUserFromGroup($user->id, $wC);
            UP:
            j0:
        }
        Zk:
        hj:
        $this->updateCurrentUserName($user->id, $fF);
        $Jm = JFactory::getSession();
        $Jm->set("\x75\163\145\x72", $user);
        $J1 = $Jm->getId();
        $this->updateUsernameToSessionId($user->id, $user->username, $J1);
        $user->setLastVisit();
        $this->redirectTheUserAtLogin();
    }
    function RegisterCurrentUser($fF, $w2, $Yn)
    {
        $iE = JFactory::getApplication();
        $R7 = Utilities_OauthCl::get_oauth_config();
        $BA = 2;
        if (!isset($R7["\x6d\141\x70\x70\x69\x6e\147\137\166\141\154\x75\145\137\144\145\146\141\x75\x6c\x74"])) {
            goto Ot;
        }
        $BA = $R7["\155\x61\x70\160\151\156\147\x5f\x76\x61\x6c\165\145\137\x64\145\x66\x61\165\154\164"];
        Ot:
        $Hi = 0;
        if (!isset($R7["\x65\x6e\x61\142\x6c\145\137\162\x6f\154\x65\x5f\155\x61\x70\160\x69\x6e\x67"])) {
            goto Ms;
        }
        $Hi = json_decode($R7["\x65\156\x61\x62\154\x65\137\x72\x6f\x6c\x65\137\x6d\x61\160\160\x69\156\x67"]);
        Ms:
        $dR["\x6e\141\x6d\x65"] = isset($fF) && $fF != '' ? $fF : $w2;
        $dR["\x75\x73\145\x72\x6e\141\155\x65"] = $w2;
        $dR["\x65\x6d\x61\x69\x6c"] = $dR["\145\x6d\141\x69\x6c\x31"] = $dR["\x65\155\x61\151\154\62"] = JStringPunycode::emailToPunycode($Yn);
        $dR["\x70\141\163\163\167\x6f\x72\x64"] = $dR["\160\x61\163\163\167\x6f\x72\x64\x31"] = $dR["\x70\x61\x73\x73\x77\x6f\162\144\x32"] = JUserHelper::genRandomPassword();
        $dR["\141\x63\164\x69\x76\x61\164\151\157\x6e"] = "\60";
        $dR["\x62\154\x6f\143\x6b"] = "\x30";
        if (!($Hi == 1)) {
            goto Y8;
        }
        $dR["\x67\x72\x6f\165\x70\x73"][] = $BA;
        Y8:
        jimport("\152\x6f\x6f\155\154\141\56\141\160\160\154\x69\143\x61\164\151\157\156\x2e\143\x6f\x6d\160\x6f\156\145\156\164\56\x6d\x6f\144\145\154");
        if (defined("\112\x50\101\124\110\137\103\117\x4d\x50\x4f\x4e\105\x4e\x54")) {
            goto y_;
        }
        define("\112\x50\101\124\x48\137\x43\x4f\x4d\120\x4f\x4e\x45\x4e\x54", JPATH_BASE . "\x2f\x63\157\x6d\x70\157\x6e\x65\156\x74\163\57");
        y_:
        $user = new JUser();
        if ($user->bind($dR)) {
            goto kX;
        }
        throw new Exception("\x43\157\x75\154\144\x20\x6e\x6f\x74\40\x62\151\x6e\x64\x20\x64\x61\164\141\x2e\40\105\162\x72\x6f\x72\x3a\40" . $user->getError());
        kX:
        if ($user->save()) {
            goto Lb;
        }
        $Wd = "\xd\xa\x20\40\40\x20\40\40\40\40\x20\x20\40\40\40\x20\x20\x20\40\x20\x20\40\x3c\144\151\x76\40\x73\x74\x79\x6c\x65\75\47\x62\x61\143\x6b\x67\162\x6f\x75\x6e\x64\x3a\x23\106\101\101\x30\x41\x30\73\167\151\144\x74\x68\72\x31\x30\x30\45\73\x74\x65\x78\x74\x2d\141\154\151\147\x6e\72\143\145\156\x74\145\162\x3b\x27\76\40\xd\12\x20\40\40\x20\40\40\x20\40\40\x20\40\40\x20\40\40\x20\40\x20\x20\x20\x20\40\40\40\74\150\63\x3e\x45\162\x72\x6f\162\40\41\x3c\57\150\x33\x3e\15\xa\40\40\40\40\x20\40\x20\40\x20\x20\40\40\40\x20\x20\x20\x20\x20\x20\x20\74\x2f\x64\x69\166\76\xd\xa\x20\40\40\40\40\x20\40\x20\x20\x20\x20\40\40\x20\x20\x20\40\40\40\x20\74\144\151\166\40\163\x74\x79\x6c\x65\75\x27\167\x69\x64\x74\x68\72\x31\60\60\45\73\x74\x65\x78\164\x2d\141\x6c\x69\147\156\x3a\143\x65\156\x74\x65\x72\x3b\47\76\x20\15\xa\x20\40\40\40\x20\x20\x20\40\x20\x20\x20\x20\x20\x20\40\x20\40\40\40\x20\x20\x20\40\40\x3c\x70\40\x73\164\x79\x6c\145\x3d\47\x6d\x69\x6e\55\150\x65\151\x67\150\x74\72\x35\60\x70\x78\73\47\x3e\125\x73\x65\x72\x6e\x61\x6d\x65\x20\156\x6f\164\x20\162\x65\x63\x69\x65\x76\x65\x64\x20\157\x72\x20\x61\x6c\162\145\x61\x64\171\40\145\x78\x69\x73\x74\x2e\x20\103\157\x6e\x74\x61\143\x74\x20\x79\x6f\x75\162\40\101\x64\x6d\x69\156\151\163\x74\162\x61\164\x6f\162\x2e\40\74\x2f\x70\x3e\xd\12\40\40\40\40\x20\40\x20\x20\x20\x20\x20\40\40\40\40\x20\40\40\x20\x20\x20\40\40\40\x3c\141\40\150\162\145\x66\75\47" . JURI::root() . "\47\x20\163\164\171\x6c\145\75\47\x70\141\x64\144\151\x6e\147\x3a\x31\60\x70\170\x3b\142\x61\x63\x6b\147\x72\x6f\165\x6e\x64\x3a\43\60\61\60\x31\65\x36\x3b\x3b\142\x6f\x72\144\145\162\x2d\162\x61\144\x69\x75\163\72\65\x70\x78\73\143\x6f\x6c\x6f\x72\x3a\167\150\x69\x74\x65\73\x74\x65\170\x74\55\x64\x65\x63\x6f\x72\141\x74\x69\157\x6e\72\156\157\156\x65\x3b\47\40\76\102\141\x63\153\40\124\157\40\114\x6f\x67\151\156\40\120\x61\147\145\74\57\141\76\xd\xa\40\40\x20\40\x20\40\x20\x20\x20\x20\40\x20\x20\40\40\x20\40\40\40\x20\x3c\x2f\144\151\x76\x3e\15\12\x20\x20\x20\x20\x20\x20\40\x20\40\x20\x20\x20\x20\40\x20\40";
        exit($Wd);
        Lb:
        $zG = $this->get_user_from_joomla($Yn);
        if (!$zG) {
            goto cu;
        }
        $user = JUser::getInstance($zG->id);
        $Jm = JFactory::getSession();
        $Jm->set("\165\x73\x65\162", $user);
        $iE->checkSession();
        $J1 = $Jm->getId();
        $this->updateUsernameToSessionId($user->id, $user->username, $J1);
        $user->setLastVisit();
        $this->redirectTheUserAtLogin();
        cu:
    }
    function updateCurrentUserName($ZK, $fF)
    {
        if (!empty($fF)) {
            goto Nu;
        }
        return;
        Nu:
        $Ls = JFactory::getDbo();
        $qW = $Ls->getQuery(true);
        $tJ = array($Ls->quoteName("\x6e\141\x6d\x65") . "\x20\75\40" . $Ls->quote($fF));
        $HE = array($Ls->quoteName("\x69\x64") . "\40\75\40" . $Ls->quote($ZK));
        $qW->update($Ls->quoteName("\43\137\137\165\x73\x65\x72\x73"))->set($tJ)->where($HE);
        $Ls->setQuery($qW);
        $QM = $Ls->execute();
    }
    function updateUsernameToSessionId($Os, $w2, $J1)
    {
        $Ls = JFactory::getDbo();
        $qW = $Ls->getQuery(true);
        $tJ = array($Ls->quoteName("\x75\x73\x65\x72\x6e\141\x6d\x65") . "\x20\75\x20" . $Ls->quote($w2), $Ls->quoteName("\147\x75\x65\163\164") . "\x20\x3d\40" . $Ls->quote("\60"), $Ls->quoteName("\165\163\x65\x72\151\x64") . "\x20\x3d\x20" . $Ls->quote($Os));
        $HE = array($Ls->quoteName("\163\145\163\163\x69\157\x6e\137\151\144") . "\40\x3d\x20" . $Ls->quote($J1));
        $qW->update($Ls->quoteName("\43\137\x5f\163\x65\163\163\x69\157\x6e"))->set($tJ)->where($HE);
        $Ls->setQuery($qW);
        $QM = $Ls->execute();
    }
    function is_customer_registered()
    {
        $QM = Utilities_OauthCl::getCustomerDetails();
        $Yn = $QM["\x65\155\x61\x69\154"];
        $OC = $QM["\143\165\x73\164\x6f\x6d\x65\x72\137\153\x65\171"];
        $ZQ = $QM["\162\x65\147\151\163\164\162\x61\x74\151\x6f\156\137\163\164\x61\x74\165\x73"];
        if ($Yn && $OC && is_numeric(trim($OC)) && $ZQ == "\x53\x55\x43\x43\105\123\123") {
            goto oT;
        }
        return 0;
        goto xX;
        oT:
        return 1;
        xX:
    }
    function check($Zd)
    {
        if (empty($Zd)) {
            goto Cd;
        }
        return Self::decrypt($Zd);
        goto Ec;
        Cd:
        return '';
        Ec:
    }
    public static function decrypt($A2)
    {
        $QM = Utilities_OauthCl::getCustomerDetails();
        $Iv = $QM["\x63\x75\163\x74\157\x6d\x65\162\x5f\164\x6f\153\145\156"];
        $JV = rtrim(openssl_decrypt(base64_decode($A2), "\x61\145\x73\55\61\x32\x38\55\145\x63\142", $Iv, OPENSSL_RAW_DATA), "\x0");
        return trim($JV, "\x0\56\56\32");
    }
    function getSsoOrigin()
    {
        $qg = JFactory::getApplication()->input->get->getArray();
        if (!(isset($qg["\162\145\144\x69\x72\145\x63\x74"]) && !empty(trim($qg["\x72\145\144\x69\x72\145\143\164"])))) {
            goto vu;
        }
        return $qg["\162\x65\x64\151\162\145\x63\x74"];
        vu:
        if (!(isset($qg["\x6d\157\x5f\x73\x73\x6f\137\x6f\162\151\147\151\156"]) && !empty(trim($qg["\x6d\x6f\137\x73\x73\x6f\137\157\162\151\x67\x69\156"])))) {
            goto Mm;
        }
        return $qg["\x6d\157\x5f\163\x73\157\137\x6f\162\x69\147\x69\x6e"];
        Mm:
        $DG = JFactory::getApplication()->input->server->getArray();
        return isset($DG["\110\124\124\120\137\x52\105\106\105\x52\105\122"]) ? $DG["\x48\x54\x54\x50\x5f\122\105\x46\105\x52\105\122"] : (isset($DG["\110\x54\124\120\x53"]) && $DG["\x48\124\124\120\123"] === "\157\x6e" ? "\x68\x74\x74\160\x73" : "\x68\x74\x74\x70") . "\x3a\x2f\57{$DG["\x48\124\x54\x50\137\110\x4f\x53\x54"]}{$DG["\x52\105\x51\125\x45\x53\124\137\x55\x52\x49"]}";
    }
}

Function Calls

None

Variables

None

Stats

MD5 48b24e6f0c924028107d52bcde7a17c7
Eval Count 0
Decode Time 139 ms