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\105\x58\105\103") or die; use Joomla\CMS\MVC\Controller\Form..
Decoded Output download
<?php
defined("_JEXEC") or die;
use Joomla\CMS\MVC\Controller\FormController;
use Joomla\CMS\Factory;
use Joomla\CMS\Uri\Uri;
class Miniorange_samlControllerMyaccount extends FormController
{
function __construct()
{
$this->view_list = "myaccounts";
parent::__construct();
}
function verifyCustomer()
{
$post = Factory::getApplication()->input->post->getArray();
if (!(count($post) == 0)) {
goto u4;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=account");
return;
u4:
if (Mo_Saml_Local_Util::check_empty_or_null($post["email"]) || Mo_Saml_Local_Util::check_empty_or_null($post["password"])) {
goto id;
}
$fB = $post["email"];
$lH = $post["password"];
goto sv;
id:
$this->setRedirect("index.php?option=com_miniorange_saml&tab=account", "All the fields are required. Please enter valid entries.", "error");
sv:
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("email") . " = " . $R5->quote($fB));
$H1 = array($R5->quoteName("id") . " = 1");
$js->update($R5->quoteName("#__miniorange_saml_customer_details"))->set($Qt)->where($H1);
$R5->setQuery($js);
$R5->execute();
$my = new Mo_saml_Local_Customer();
$Vh = $my->get_customer_key($lH);
$Tz = json_decode($Vh, true);
if (strcasecmp($Tz["apiKey"], "CURL_ERROR") == 0) {
goto rd;
}
if (json_last_error() == JSON_ERROR_NONE) {
goto f3;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=account", "Invalid username or password. Please try again.", "error");
goto ks;
f3:
$this->save_success_customer_config($Tz["id"], $Tz["apiKey"], $Tz["token"], $Tz["phone"], "Your account has been retrieved successfully.");
ks:
goto IR;
rd:
$this->setRedirect("index.php?option=com_miniorange_saml&tab=account", $Tz["token"], "error");
IR:
}
function save_success_customer_config($Rn, $Bu, $HO, $oI, $jM)
{
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("customer_key") . " = " . $R5->quote($Rn), $R5->quoteName("api_key") . " = " . $R5->quote($Bu), $R5->quoteName("customer_token") . " = " . $R5->quote($HO), $R5->quoteName("admin_phone") . " = " . $R5->quote($oI), $R5->quoteName("login_status") . " = " . $R5->quote(0), $R5->quoteName("new_registration") . " = " . $R5->quote(0));
$H1 = array($R5->quoteName("id") . " = 1");
$js->update($R5->quoteName("#__miniorange_saml_customer_details"))->set($Qt)->where($H1);
$R5->setQuery($js);
$U8 = $R5->execute();
$js = $R5->getQuery(true);
$j1 = "Your account has been retrieved successfully.";
$this->setRedirect("index.php?option=com_miniorange_saml&tab=account", $j1);
}
function generateCustomCertificate()
{
$post = Factory::getApplication()->input->post->getArray();
if (!(count($post) == 0)) {
goto z4;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=custom_certificate");
return;
z4:
$eR = UtilitiesSAML::getCustomerDetails();
$Ye = $eR["status"];
if (!(Mo_Saml_Local_Util::is_customer_registered() && Mo_Saml_Local_Util::check($Ye) != "true")) {
goto xE;
}
$this->setRedirect("index.php?option=com_miniorange_saml", "You have not activated your license yet.", "error");
return;
xE:
$q6 = UtilitiesSAML::isIDPConfigured();
$post = Factory::getApplication()->input->post->getArray();
if (!(count($q6) == 0)) {
goto gJ;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=idp", "Please configure Service Provider Setup tab to upload the certificate.", "error");
return;
gJ:
if (!(isset($post["submit"]) && $post["submit"] == "Generate Self-Signed Certs")) {
goto Zi;
}
$KB = $post["mo_saml_country_code_text"];
if (!(strlen($KB) != 2 || ctype_lower($KB))) {
goto UO;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=custom_certificate", "Please enter a valid county code.", "error");
return;
UO:
$ba = isset($post["generate_cust_certificate_option"]) ? $post["generate_cust_certificate_option"] : '';
if (!($ba == "miniorange_saml_generate_custom_certificate")) {
goto lP;
}
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("mo_saml_country_code_text") . " = " . $R5->quote(isset($post["mo_saml_country_code_text"]) ? $post["mo_saml_country_code_text"] : null), $R5->quoteName("mo_saml_certificate_state_name") . " = " . $R5->quote(isset($post["mo_saml_certificate_state_name"]) ? $post["mo_saml_certificate_state_name"] : null), $R5->quoteName("mo_saml_certificate_company_name") . " = " . $R5->quote(isset($post["mo_saml_certificate_company_name"]) ? $post["mo_saml_certificate_company_name"] : null), $R5->quoteName("miniorange_saml_unit_name") . " = " . $R5->quote(isset($post["miniorange_saml_unit_name"]) ? $post["miniorange_saml_unit_name"] : null), $R5->quoteName("mo_saml_certificate_common_name") . " = " . $R5->quote(isset($post["mo_saml_certificate_common_name"]) ? $post["mo_saml_certificate_common_name"] : null), $R5->quoteName("mo_saml_select_digest_algo") . " = " . $R5->quote(isset($post["mo_saml_select_digest_algo"]) ? $post["mo_saml_select_digest_algo"] : 0), $R5->quoteName("mo_saml_select_private_key_bit") . " = " . $R5->quote(isset($post["mo_saml_select_private_key_bit"]) ? $post["mo_saml_select_private_key_bit"] : 0), $R5->quoteName("mo_saml_select_valid_days") . " = " . $R5->quote(isset($post["mo_saml_select_valid_days"]) ? $post["mo_saml_select_valid_days"] : 0));
$H1 = array($R5->quoteName("id") . " = 1");
$js->update($R5->quoteName("#__miniorange_saml_config"))->set($Qt)->where($H1);
$R5->setQuery($js);
$U8 = $R5->execute();
$cP = UtilitiesSAML::getCustomerDetails();
$cP = $cP["email"];
$e1 = isset($cP) ? $cP : '';
$KB = $post["mo_saml_country_code_text"];
$WM = $post["mo_saml_certificate_state_name"];
$xt = $post["mo_saml_certificate_company_name"];
$K6 = $post["miniorange_saml_unit_name"];
$Hk = $post["mo_saml_certificate_common_name"];
$JE = $post["mo_saml_select_digest_algo"];
$iH = $post["mo_saml_select_private_key_bit"];
$tr = $post["mo_saml_select_valid_days"];
$ua = array("countryName" => $KB, "stateOrProvinceName" => $WM, "organizationName" => $xt, "organizationalUnitName" => $K6, "commonName" => $Hk, "emailAddress" => $e1);
UtilitiesSAML::generateCertificate($ua, $JE, $iH, $tr);
$KZ = "Your certificates has been generated successfully. Please update your Identity Provider configuration with new certificate.";
$this->setRedirect("index.php?option=com_miniorange_saml&tab=custom_certificate", $KZ);
lP:
Zi:
}
function check()
{
$post = Factory::getApplication()->input->post->getArray();
if (!(count($post) == 0)) {
goto Dv;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=account");
return;
Dv:
$TL = isset($post["key"]) ? $post["key"] : '';
if ($TL) {
goto JK;
}
$j1 = "Error activating your license. Please try again or contact<a href="mailto:[email protected]"> [email protected]</a>";
$this->setRedirect("index.php?option=com_miniorange_saml&tab=account", $j1, "error");
goto uB;
JK:
$TL = trim(preg_replace("/\s+/", '', $TL));
$my = new Mo_saml_Local_Customer();
$eR = Mo_Saml_Local_Util::getCustomerDetails();
$Bu = isset($eR["api_key"]) ? $eR["api_key"] : '';
$Tz = isset($eR["customer_key"]) ? $eR["customer_key"] : '';
$rp = json_decode($my->ccl($Tz, $Bu), true);
$oJ = 0;
$lv = 0;
$FE = "joomla_saml_sso_enterprise_plan";
$VY = isset($rp["trial"]) ? $rp["trial"] : '';
$VY = Mo_saml_Local_Util::encrypt_value($VY);
$dp = 0;
if (!(!isset($rp["status"]) || empty($rp["status"]))) {
goto fk;
}
$j1 = isset($rp["message"]) && !empty($rp["message"]) ? $rp["message"] : "Your license is not found";
$this->setRedirect("index.php?option=com_miniorange_saml&tab=account", $j1, "error");
return;
fk:
if (!($rp["status"] != "SUCCESS")) {
goto ZQ;
}
$j1 = isset($rp["message"]) ? $rp["message"] : "Invalid license! Please use a valid license key to activate the plugin.";
$this->setRedirect("index.php?option=com_miniorange_saml&tab=account", $j1, "error");
return;
ZQ:
if (!($rp["status"] == "SUCCESS")) {
goto VG;
}
$oJ = isset($rp["licenseExpiry"]) ? $rp["licenseExpiry"] : 0;
$lv = isset($rp["supportExpiry"]) ? $rp["supportExpiry"] : 0;
$FE = isset($rp["licensePlan"]) ? $rp["licensePlan"] : '';
$dp = isset($rp["noOfSP"]) ? $rp["noOfSP"] : 0;
VG:
$ax = $my->check($TL);
if (strcasecmp($ax["status"], "SUCCESS") == 0) {
goto J5;
}
if (strcasecmp($ax["isExpired"], "1") == 0) {
goto UM;
}
$j1 = $ax["message"] . "Please try with different key or contact<a href="mailto:[email protected]"> [email protected]</a>.";
goto TZ;
UM:
$j1 = "Your license key is expired. Please try with different key or contact<a href="mailto:[email protected]"> [email protected] </a>";
TZ:
$this->setRedirect("index.php?option=com_miniorange_saml&tab=account", $j1, "error");
goto pN;
J5:
$Eb = Mo_saml_Local_Util::encrypt($TL);
$TW = URI::root() . $Eb;
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("status") . " = " . $R5->quote(Mo_saml_Local_Util::encrypt("true")), $R5->quoteName("sml_lk") . " = " . $R5->quote(Mo_saml_Local_Util::encrypt($TL)), $R5->quoteName("in_cmp") . " = " . $R5->quote(Mo_saml_Local_Util::encrypt($TW)), $R5->quoteName("licenseExpiry") . " = " . $R5->quote($oJ), $R5->quoteName("supportExpiry") . " = " . $R5->quote($lv), $R5->quoteName("licensePlan") . " = " . $R5->quote($FE), $R5->quoteName("trists") . " = " . $R5->quote($VY), $R5->quoteName("noSP") . " = " . $R5->quote($dp));
$H1 = array($R5->quoteName("id") . " = 1");
$js->update($R5->quoteName("#__miniorange_saml_customer_details"))->set($Qt)->where($H1);
$R5->setQuery($js);
$R5->execute();
UtilitiesSAML::createAndUpdateUpgardeUrl();
$j1 = "Your license has been verified.";
$this->setRedirect("index.php?option=com_miniorange_saml&tab=account", $j1);
pN:
uB:
}
function updateLoginFlow()
{
$post = Factory::getApplication()->input->post->getArray();
if (!(count($post) == 0)) {
goto M_;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=sso_settings");
return;
M_:
$eR = Mo_Saml_Local_Util::getCustomerDetails();
$Ye = isset($eR["status"]) ? $eR["status"] : '';
if (!(!Mo_Saml_Local_Util::is_customer_registered() && Mo_Saml_Local_Util::check($Ye) != "true")) {
goto c2;
}
$this->setRedirect("index.php?option=com_miniorange_saml", "Please register and activate your license to save your configurations.", "error");
return;
c2:
$qO = isset($post["enable_redirect"]) ? $post["enable_redirect"] : 0;
$XZ = isset($post["user_login_for_other_domains"]) ? $post["user_login_for_other_domains"] : "BLOCK";
$Co = isset($post["mo_idp_link_page"]) ? $post["mo_idp_link_page"] : '';
$N3 = isset($post["mo_idp_list_link_page"]) ? $post["mo_idp_list_link_page"] : '';
$f4 = isset($post["ignore_special_characters"]) ? $post["ignore_special_characters"] : 0;
$yZ = isset($post["enable_manager_login"]) ? $post["enable_manager_login"] : 0;
$Lq = isset($post["enable_admin_redirect"]) ? $post["enable_admin_redirect"] : 0;
$ps = isset($post["mo_admin_idp_link_page"]) ? $post["mo_admin_idp_link_page"] : '';
$rf = isset($post["enable_email"]) ? $post["enable_email"] : FALSE;
$s7 = isset($post["enable_admin_child_redirect"]) ? $post["enable_admin_child_redirect"] : 0;
$pT = isset($post["enable_manager_child_login"]) ? $post["enable_manager_child_login"] : 0;
$o2 = isset($post["enable_do_not_auto_creation"]) ? $post["enable_do_not_auto_creation"] : 0;
if (!($qO && empty($Co) && filter_var($Co, FILTER_VALIDATE_URL) === FALSE)) {
goto gt;
}
$KZ = "Please enter valid redirect URL.";
$this->setRedirect("index.php?option=com_miniorange_saml&tab=sso_settings", $KZ, "error");
return;
gt:
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("enable_redirect") . " = " . $R5->quote($qO), $R5->quoteName("user_login_for_other_domains") . " = " . $R5->quote($XZ), $R5->quoteName("idp_link_page") . " = " . $R5->quote($Co), $R5->quoteName("mo_idp_list_link_page") . " = " . $R5->quote($N3), $R5->quoteName("enable_manager_login") . " = " . $R5->quote($yZ), $R5->quoteName("enable_admin_redirect") . " = " . $R5->quote($Lq), $R5->quoteName("mo_admin_idp_list_link_page") . " = " . $R5->quote($ps), $R5->quoteName("ignore_special_characters") . " = " . $R5->quote($f4), $R5->quoteName("enable_email") . " = " . $R5->quote($rf), $R5->quoteName("enable_admin_child_login") . " = " . $R5->quote($s7), $R5->quoteName("enable_manager_child_login") . " = " . $R5->quote($pT), $R5->quoteName("enable_do_not_auto_create_users") . " = " . $R5->quote($o2));
$H1 = array($R5->quoteName("id") . " = 1");
$js->update($R5->quoteName("#__miniorange_saml_customer_details"))->set($Qt)->where($H1);
$R5->setQuery($js);
$U8 = $R5->execute();
$KZ = "Your configuration has been saved successfully.";
$this->setRedirect("index.php?option=com_miniorange_saml&tab=sso_settings", $KZ);
}
function fetchLicense()
{
$eR = Mo_Saml_Local_Util::getCustomerDetails();
$Tz = isset($eR["customer_key"]) ? $eR["customer_key"] : '';
$Bu = isset($eR["api_key"]) ? $eR["api_key"] : '';
$my = new Mo_saml_Local_Customer();
$rp = json_decode($my->ccl($Tz, $Bu), true);
$iF = $rp["licenseExpiry"];
$Wp = $rp["supportExpiry"];
$vx = Mo_saml_Local_Util::encrypt_value($rp["trial"]);
$IJ = $rp["noOfSP"];
$sJ = UtilitiesSAML::getExpiryDate();
$iW = strtotime($sJ["licenseExpiry"]);
$qd = strtotime($sJ["supportExpiry"]);
$eN = $sJ["trists"];
$dp = $sJ["noSP"];
$BJ = isset($eR["miniorange_lexp_notification_sent"]) ? $eR["miniorange_lexp_notification_sent"] : 0;
if (!(strtotime($iF) > $iW && $BJ)) {
goto NY;
}
$a5 = "#__miniorange_saml_customer_details";
$OL = array("miniorange_fifteen_days_before_lexp" => 0, "miniorange_five_days_before_lexp" => 0, "miniorange_after_lexp" => 0, "miniorange_after_five_days_lexp" => 0, "miniorange_lexp_notification_sent" => 0);
UtilitiesSAML::__genDBUpdate($a5, $OL);
NY:
if (!(strtotime($iF) > $iW)) {
goto ug;
}
$a5 = "#__miniorange_saml_customer_details";
$OL = array("licenseExpiry" => $iF);
UtilitiesSAML::__genDBUpdate($a5, $OL);
ug:
if (!(strtotime($Wp) > $qd)) {
goto Jh;
}
$a5 = "#__miniorange_saml_customer_details";
$OL = array("supportExpiry" => $Wp);
UtilitiesSAML::__genDBUpdate($a5, $OL);
Jh:
if (!($vx != $eN)) {
goto RB;
}
$a5 = "#__miniorange_saml_customer_details";
$OL = array("trists" => $vx);
UtilitiesSAML::__genDBUpdate($a5, $OL);
RB:
if (!($IJ != $dp)) {
goto CJ;
}
$a5 = "#__miniorange_saml_customer_details";
$OL = array("noSP" => $IJ);
UtilitiesSAML::__genDBUpdate($a5, $OL);
CJ:
$IN = Factory::getApplication();
$IN->enqueueMessage("Successfully fetched the license.", "success");
$this->setRedirect("index.php?option=com_miniorange_saml&tab=account");
}
function addlicensedetails($TL)
{
$Eb = Mo_saml_Local_Util::encrypt($TL);
$TW = URI::root() . $Eb;
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("status") . " = " . $R5->quote(Mo_saml_Local_Util::encrypt("true")), $R5->quoteName("sml_lk") . " = " . $R5->quote(Mo_saml_Local_Util::encrypt($TL)), $R5->quoteName("in_cmp") . " = " . $R5->quote(Mo_saml_Local_Util::encrypt($TW)), $R5->quoteName("licenseExpiry") . " = " . $R5->quote($oJ), $R5->quoteName("supportExpiry") . " = " . $R5->quote($lv), $R5->quoteName("licensePlan") . " = " . $R5->quote($FE), $R5->quoteName("trists") . " = " . $R5->quote($VY));
$H1 = array($R5->quoteName("id") . " = 1");
$js->update($R5->quoteName("#__miniorange_saml_customer_details"))->set($Qt)->where($H1);
$R5->setQuery($js);
$R5->execute();
UtilitiesSAML::createAndUpdateUpgardeUrl();
$j1 = "Your license has been verified.";
$this->setRedirect("index.php?option=com_miniorange_saml&tab=account", $j1);
}
function getGroupMapping()
{
$post = Factory::getApplication()->input->post->getArray();
if (isset($post["saml_idp_list"])) {
goto MN;
}
$ZT = "index.php?option=com_miniorange_saml&tab=group_mapping";
$this->setRedirect($ZT);
return;
goto w3;
MN:
$ZT = "index.php?option=com_miniorange_saml&tab=group_mapping¤t_idp_id=" . $post["saml_idp_list"];
$this->setRedirect($ZT);
w3:
}
function saveCustomCertificate()
{
$q6 = UtilitiesSAML::isIDPConfigured();
if (!(count($q6) == 0)) {
goto To;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=idp", "Please configure Service Provider Setup tab to upload the certificate.", "error");
return;
To:
$eR = UtilitiesSAML::getCustomerDetails();
$post = Factory::getApplication()->input->post->getArray();
$Ye = $eR["status"];
if (!(Mo_Saml_Local_Util::is_customer_registered() && Mo_Saml_Local_Util::check($Ye) != "true")) {
goto UQ;
}
$this->setRedirect("index.php?option=com_miniorange_saml", "You have not activated your license yet.", "error");
return;
UQ:
if (isset($post["submit"]) && $post["submit"] == "Upload") {
goto yU;
}
if (isset($post["submit"]) && $post["submit"] == "Remove") {
goto sU;
}
goto JU;
yU:
$ba = isset($post["cust_certificate_option"]) ? $post["cust_certificate_option"] : '';
if (!($ba == "miniorange_saml_save_custom_certificate")) {
goto aR;
}
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("public_certificate") . " = " . $R5->quote(isset($post["public_certificate"]) ? $post["public_certificate"] : null), $R5->quoteName("private_certificate") . " = " . $R5->quote(isset($post["private_certificate"]) ? $post["private_certificate"] : null));
$js->update($R5->quoteName("#__miniorange_saml_config"))->set($Qt);
$R5->setQuery($js);
$R5->execute();
$YF = UtilitiesSAML::getCustom_CertificatePath("CustomPublicCertificate.crt");
$mP = fopen($YF, "w");
$vN = $post["public_certificate"];
fwrite($mP, $vN);
$YF = UtilitiesSAML::getCustom_CertificatePath("CustomPrivateCertificate.key");
$mP = fopen($YF, "w");
$vN = $post["private_certificate"];
fwrite($mP, $vN);
$KZ = "Your certificates has been saved successfully.";
$this->setRedirect("index.php?option=com_miniorange_saml&tab=custom_certificate", $KZ);
aR:
goto JU;
sU:
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("public_certificate") . " = " . $R5->quote(''), $R5->quoteName("private_certificate") . " = " . $R5->quote(''));
$js->update($R5->quoteName("#__miniorange_saml_config"))->set($Qt);
$R5->setQuery($js);
$R5->execute();
$KZ = "Your certificates has been removed successfully.";
$this->setRedirect("index.php?option=com_miniorange_saml&tab=custom_certificate", $KZ);
JU:
}
function getIdpAttributes()
{
$post = Factory::getApplication()->input->post->getArray();
if (isset($post["saml_idp_list"])) {
goto cq;
}
$ZT = "index.php?option=com_miniorange_saml&tab=attribute_mapping";
$this->setRedirect($ZT);
return;
goto jn;
cq:
$ZT = "index.php?option=com_miniorange_saml&tab=attribute_mapping&idp_name_attr=" . $post["saml_idp_list"];
$this->setRedirect($ZT);
jn:
}
function saveDomainMapping()
{
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$js->select("COUNT(*)");
$js->from($R5->quoteName("#__miniorange_saml_config"));
$R5->setQuery($js);
$U8 = $R5->loadResult();
$post = Factory::getApplication()->input->post->getArray();
if (isset($U8) && $U8 > 0) {
goto I7;
}
$KZ = "Please add IDP Configuration first.";
$this->setRedirect("index.php?option=com_miniorange_saml&tab=domain_mapping", $KZ, "error");
goto Vm;
I7:
$WG = array();
$WG = $post;
$t5 = array();
foreach ($WG as $vL => $eN) {
$QX = $this->array_has_dupes($WG);
if ($QX) {
goto iv;
}
$zm = str_replace("saml_domain_mapping_", '', $vL);
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("domain_mapping") . " = " . $R5->quote($eN));
$H1 = array($R5->quoteName("idp_name") . " = " . $R5->quote($zm));
$js->update($R5->quoteName("#__miniorange_saml_config"))->set($Qt)->where($H1);
$R5->setQuery($js);
$R5->execute();
goto kf;
iv:
$KZ = "Duplicate entry not allowed.";
$this->setRedirect("index.php?option=com_miniorange_saml&tab=domain_mapping", $KZ, "error");
return;
kf:
G6:
}
VL:
$KZ = "Domain Mapping has been saved successfully.";
$this->setRedirect("index.php?option=com_miniorange_saml&tab=domain_mapping", $KZ);
Vm:
}
function array_has_dupes($Zz)
{
return count($Zz) !== count(array_unique($Zz));
}
function deleteCurrentIdp()
{
$post = Factory::getApplication()->input->post->getArray();
if (!(count($post) == 0)) {
goto Aa;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=idp");
return;
Aa:
if (isset($post["idp_id"]) && $post["idp_id"] > 0) {
goto R7;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=idp", "IDP Configuration could not be deleted. Please try again.");
return;
goto kb;
R7:
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$H1 = array($R5->quoteName("id") . " = " . $R5->quote($post["idp_id"]));
$js->delete($R5->quoteName("#__miniorange_saml_config"));
$js->where($H1);
$R5->setQuery($js);
$U8 = $R5->execute();
$js = $R5->getQuery(true);
$H1 = array($R5->quoteName("idp_id") . " = " . $R5->quote($post["idp_id"]));
$js->delete($R5->quoteName("#__miniorange_saml_role_mapping"));
$js->where($H1);
$R5->setQuery($js);
$U8 = $R5->execute();
if ($U8) {
goto V0;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=idp", "No IDP found. Please try again.");
return;
goto hP;
V0:
$this->setRedirect("index.php?option=com_miniorange_saml&tab=idp", "IDP Configuration deleted successfully.");
return;
hP:
kb:
}
function cancelIdpConfig()
{
$this->setRedirect("index.php?option=com_miniorange_saml&tab=idp");
return;
}
function addNewIDP()
{
$eR = Mo_Saml_Local_Util::getCustomerDetails();
$Ye = $eR["status"];
if (!Mo_Saml_Local_Util::is_customer_registered() || Mo_Saml_Local_Util::check($Ye) != "true") {
goto VJ;
}
$Tz = $eR["customer_key"];
$Bu = $eR["api_key"];
$this->checkCL($Tz, $Bu, 1);
goto yf;
VJ:
$this->setRedirect("index.php?option=com_miniorange_saml", "Please register and activate your license to add IDP.", "error");
return;
yf:
}
function checkCL($Tz, $Bu, $v1)
{
$my = new Mo_saml_Local_Customer();
$ax = json_decode($my->ccl($Tz, $Bu), true);
if (isset($ax["status"]) && $ax["status"] == "SUCCESS") {
goto DR;
}
$this->setRedirect("index.php?option=com_miniorange_saml", "License not found. Please contact at<a href="mailto:[email protected]"> [email protected]</a> to upgrade your license.", "error");
return true;
goto oB;
DR:
if ($ax["noOfSP"] === 0 || empty($ax["noOfSP"])) {
goto qo;
}
$Vz = $ax["noOfSP"];
goto CV;
qo:
$Vz = 1;
CV:
$pZ = Mo_Saml_Local_Util::getSAMLCount();
if ($pZ < $Vz) {
goto LE;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=idp", "You have purchased the license for " . $Vz . " IDPs. Please contact at<a href="mailto:[email protected]"> [email protected]</a> to upgrade the license if you want to add more IDPs.", "error");
return true;
goto Rp;
LE:
if ($v1) {
goto Y6;
}
return false;
goto mh;
Y6:
$this->setRedirect("index.php?option=com_miniorange_saml&tab=idp&id=0", "Please add new IDP details.");
return true;
mh:
Rp:
oB:
}
function insert_new_idp($post)
{
$gI = isset($post["saml_x509_certificate"]) ? $post["saml_x509_certificate"] : '';
if (!is_array($gI)) {
goto vl;
}
$MV = implode(";", $gI);
vl:
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$yb = array("idp_name", "idp_entity_id", "single_signon_service_url", "certificate", "binding", "single_logout_url", "default_relay_state", "mo_saml_select_sign_algo", "saml_request_sign", "name_id_format", "miniorange_saml_idp_slo_binding");
$k8 = array($R5->quote($post["idp_name"]), $R5->quote($post["idp_entity_id"]), $R5->quote($post["single_signon_service_url"]), $R5->quote(Mo_Saml_Local_Util::sanitize_certificate($MV)), $R5->quote($post["miniorange_saml_idp_sso_binding"]), $R5->quote($post["single_logout_url"]), $R5->quote($post["mo_saml_select_sign_algo"]), $R5->quote($post["default_relay_state"]), $R5->quote($post["saml_request_sign"]), $R5->quote($post["name_id_format"]), $R5->quote($post["miniorange_saml_idp_slo_binding"]));
$js->insert($R5->quoteName("#__miniorange_saml_config"))->columns($R5->quoteName($yb))->values(implode(",", $k8));
$R5->setQuery($js);
$R5->execute();
}
function update_existing_idp($post)
{
$gI = isset($post["saml_x509_certificate"]) ? $post["saml_x509_certificate"] : '';
if (!is_array($gI)) {
goto uN;
}
$MV = implode(";", $gI);
uN:
if (!(count($post) == 0)) {
goto DH;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=idp");
return;
DH:
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("idp_name") . " = " . $R5->quote(isset($post["idp_name"]) ? $post["idp_name"] : ''), $R5->quoteName("idp_entity_id") . " = " . $R5->quote(isset($post["idp_entity_id"]) ? $post["idp_entity_id"] : ''), $R5->quoteName("single_signon_service_url") . " = " . $R5->quote(isset($post["single_signon_service_url"]) ? $post["single_signon_service_url"] : ''), $R5->quoteName("certificate") . " = " . $R5->quote($MV), $R5->quoteName("binding") . " = " . $R5->quote(isset($post["miniorange_saml_idp_sso_binding"]) ? $post["miniorange_saml_idp_sso_binding"] : "HTTP-Redirect"), $R5->quoteName("single_logout_url") . " = " . $R5->quote(isset($post["single_logout_url"]) ? $post["single_logout_url"] : ''), $R5->quoteName("default_relay_state") . " = " . $R5->quote(isset($post["default_relay_state"]) ? $post["default_relay_state"] : ''), $R5->quoteName("mo_saml_select_sign_algo") . " = " . $R5->quote(isset($post["mo_saml_select_sign_algo"]) ? $post["mo_saml_select_sign_algo"] : "RSA_SHA256"), $R5->quoteName("saml_request_sign") . " = " . $R5->quote(isset($post["saml_request_sign"]) ? $post["saml_request_sign"] : ''), $R5->quoteName("name_id_format") . " = " . $R5->quote(isset($post["name_id_format"]) ? $post["name_id_format"] : "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"), $R5->quoteName("miniorange_saml_idp_slo_binding") . " = " . $R5->quote(isset($post["miniorange_saml_idp_slo_binding"]) ? $post["miniorange_saml_idp_slo_binding"] : "HTTP-Redirect"), $R5->quoteName("AuthnContextClassRef") . " = " . $R5->quote(isset($post["mo_authn_contex_class"]) ? $post["mo_authn_contex_class"] : "PasswordProtectdTransport"));
$H1 = array($R5->quoteName("id") . " = " . $R5->quote($post["idp_id"]));
$js->update($R5->quoteName("#__miniorange_saml_config"))->set($Qt)->where($H1);
$R5->setQuery($js);
$R5->execute();
}
function importexport($mb = false)
{
$q6 = UtilitiesSAML::isIDPConfigured();
if (!(count($q6) == 0)) {
goto jq;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=idp", "Please configure atleast Service Provider Setup Tab to download the configuration.", "error");
return;
jq:
require_once JPATH_COMPONENT . DIRECTORY_SEPARATOR . "helpers" . DIRECTORY_SEPARATOR . "export.php";
define("Tab_Class_Names", serialize(array("idp_info" => "mo_idp_info", "role_mapping" => "mo_role_mapping", "attribute_mapping" => "mo_attribute_mapping", "login settings" => "mo_login_setting")));
$NE = unserialize(Tab_Class_Names);
$La = array();
$JW = 0;
P8:
if (!(count($q6) > $JW)) {
goto mZ;
}
$La[$JW] = array("id" => $q6[$JW]->id);
foreach ($NE as $vL => $eN) {
$La[$JW][$vL] = $this->mo_get_configuration_array($eN, $La[$JW]["id"]);
Zu:
}
Jk:
P6:
$JW++;
goto P8;
mZ:
if (!$La) {
goto m4;
}
$vz = json_encode($La, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
if (!$mb) {
goto wE;
}
return $vz;
wE:
header("Content-Disposition: attachment; filename=miniorange-saml-sp-config.json");
echo $vz;
exit;
m4:
return;
}
function updateOrganizationDetails()
{
$post = Factory::getApplication()->input->post->getArray();
$E3 = isset($post["organization_name"]) ? $post["organization_name"] : '';
$uY = isset($post["organization_display_name"]) ? $post["organization_display_name"] : '';
$Ip = isset($post["organization_url"]) ? $post["organization_url"] : '';
$tq = isset($post["tech_per_name"]) ? $post["tech_per_name"] : '';
$Aw = isset($post["tech_email_add"]) ? $post["tech_email_add"] : '';
$zS = isset($post["support_per_name"]) ? $post["support_per_name"] : '';
$d_ = isset($post["support_email_add"]) ? $post["support_email_add"] : '';
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$up = array($R5->quoteName("organization_name") . " = " . $R5->quote($E3), $R5->quoteName("organization_display_name") . " = " . $R5->quote($uY), $R5->quoteName("organization_url") . " = " . $R5->quote($Ip), $R5->quoteName("tech_per_name") . " = " . $R5->quote($tq), $R5->quoteName("tech_email_add") . " = " . $R5->quote($Aw), $R5->quoteName("support_per_name") . " = " . $R5->quote($zS), $R5->quoteName("support_email_add") . " = " . $R5->quote($d_));
$H1 = array($R5->quoteName("id") . " = 1");
$js->update($R5->quoteName("#__miniorange_saml_customer_details"))->set($up)->where($H1);
$R5->setQuery($js);
$R5->execute();
$this->setRedirect("index.php?option=com_miniorange_saml&tab=description", "Successfully updated oraganization details");
}
function mo_get_configuration_array($nX, $yt)
{
if (!($nX == "mo_idp_info")) {
goto n_;
}
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$js->select(array("*"));
$js->from($R5->quoteName("#__miniorange_saml_config"));
$js->where($R5->quoteName("id") . " =" . $yt);
$R5->setQuery($js);
$q6 = $R5->loadAssoc();
n_:
if (!($nX == "mo_attribute_mapping")) {
goto TN;
}
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$js->select(array("*"));
$js->from($R5->quoteName("#__miniorange_saml_config"));
$js->where($R5->quoteName("id") . " =" . $this->get_idp_id($yt));
$R5->setQuery($js);
$q6 = $R5->loadAssoc();
TN:
if (!($nX == "mo_role_mapping")) {
goto xl;
}
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$js->select(array("*"));
$js->from($R5->quoteName("#__miniorange_saml_role_mapping"));
$js->where($R5->quoteName("idp_id") . " =" . $this->get_idp_id($yt));
$R5->setQuery($js);
$q6 = $R5->loadAssoc();
xl:
if (!($nX == "mo_login_setting")) {
goto oO;
}
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$js->select(array("*"));
$js->from($R5->quoteName("#__miniorange_saml_customer_details"));
$js->where($R5->quoteName("id") . " =1");
$R5->setQuery($js);
$q6 = $R5->loadAssoc();
oO:
$nw = call_user_func($nX . "::getConstants");
$YA = array();
foreach ($nw as $vL => $eN) {
if (empty($q6)) {
goto MF;
}
if (empty($q6[$eN])) {
goto P_;
}
$YA[$vL] = $q6[$eN];
P_:
MF:
IK:
}
Mc:
return $YA;
}
function get_idp_id($Rn)
{
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$js->select(array("*"));
$js->from($R5->quoteName("#__miniorange_saml_config"));
$js->where($R5->quoteName("id") . " = " . $Rn);
$R5->setQuery($js);
$q6 = $R5->loadAssoc();
return $q6["id"];
}
function import()
{
$Hb = @file_get_contents($_FILES["configuration_file"]["tmp_name"]);
$rQ = json_decode($Hb, true);
if (!empty($rQ)) {
goto qI;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=idp", "Please select/choose the .json file to import the Configuration", "error");
return;
qI:
$JW = 0;
Cs:
if (!($JW < count($rQ))) {
goto fF;
}
$IQ = $this->mo_update_configuration_array($rQ[$JW]);
Mb:
$JW++;
goto Cs;
fF:
if (!empty($IQ) || $IQ != NULL) {
goto rX;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=idp", "Sucessfully Updated the configuration");
goto LK;
rX:
if (!($IQ == false)) {
goto p2;
}
$Vz = UtilitiesSAML::nOfSP();
$this->setRedirect("index.php?option=com_miniorange_saml&tab=idp", "You have purchased the license for " . $Vz . " IDPs. Please contact at<a href="mailto:[email protected]"> [email protected]</a> to upgrade the license if you want to add more IDPs.", "error");
p2:
LK:
}
function mo_update_configuration_array($La)
{
require_once JPATH_COMPONENT . DIRECTORY_SEPARATOR . "helpers" . DIRECTORY_SEPARATOR . "export.php";
define("Tab_Class_Names", serialize(array("idp_info" => "mo_idp_info", "role_mapping" => "mo_role_mapping", "attribute_mapping" => "mo_attribute_mapping", "login settings" => "mo_login_setting")));
$NE = unserialize(Tab_Class_Names);
$Rn = $La["id"];
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$js->select(array("*"));
$js->from($R5->quoteName("#__miniorange_saml_config"));
$R5->setQuery($js);
$q6 = $R5->loadAssocList();
$DZ = count($q6);
$mw = UtilitiesSAML::nOfSP();
if (!($mw === 0)) {
goto oZ;
}
$Vz = 1;
oZ:
$SI = mo_idp_info::getConstants();
$PA = false;
$JW = 0;
cX:
if (!($JW < count($q6))) {
goto vq;
}
$PA = true;
foreach ($SI as $vL => $eN) {
if (!($q6[$JW][$vL] != $La["idp_info"][$vL])) {
goto H9;
}
$PA = false;
H9:
O2:
}
Xe:
if (!$PA) {
goto UV;
}
return;
UV:
h_:
$JW++;
goto cX;
vq:
if (!(count($q6) > $mw)) {
goto Mv;
}
return false;
Mv:
foreach ($NE as $Cv => $nX) {
$Qt = array();
$k8 = array();
$yb = array();
$g4 = 0;
$Rn = Mo_saml_Local_Util::get_last_idp_id();
foreach ($La[$Cv] as $vL => $eN) {
$g4 = 1;
if (!($vL == "idp_id" && $eN != $Rn)) {
goto XC;
}
$eN = $Rn;
XC:
$Qt[] = $R5->quoteName($vL) . " = " . $R5->quote($eN);
$k8[] = $R5->quote($eN);
array_push($yb, $vL);
Dj:
}
lY:
if (!($nX == "mo_idp_info" && $g4 == 1)) {
goto pJ;
}
$js = $R5->getQuery(true);
$js->insert($R5->quoteName("#__miniorange_saml_config"))->columns($R5->quoteName($yb))->values(implode(",", $k8));
$R5->setQuery($js);
$U8 = $R5->execute();
pJ:
if (!($nX == "mo_attribute_mapping" && $g4 == 1)) {
goto K3;
}
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$L7 = array($R5->quoteName("id") . " = " . $Rn);
$js->update($R5->quoteName("#__miniorange_saml_config"))->set($Qt)->where($L7);
$R5->setQuery($js);
$U8 = $R5->execute();
K3:
if (!($nX == "mo_role_mapping" && $g4 == 1)) {
goto bE;
}
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$js->insert($R5->quoteName("#__miniorange_saml_role_mapping"))->columns($R5->quoteName($yb))->values(implode(",", $k8));
$R5->setQuery($js);
$U8 = $R5->execute();
bE:
if (!($nX == "mo_login_setting" && $g4 == 1)) {
goto QY;
}
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$js->update($R5->quoteName("#__miniorange_saml_customer_details"))->set($Qt)->where($R5->quoteName("id") . " = 1");
$R5->setQuery($js);
$U8 = $R5->execute();
QY:
PI:
}
gb:
}
function handle_upload_metadata()
{
$eR = Mo_Saml_Local_Util::getCustomerDetails();
$Ye = isset($eR["status"]) ? $eR["status"] : '';
if (!(Mo_Saml_Local_Util::is_customer_registered() && Mo_Saml_Local_Util::check($Ye) != "true")) {
goto eF;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=idp", "You have not activated your license yet.", "error");
return;
eF:
require_once JPATH_COMPONENT . DIRECTORY_SEPARATOR . "helpers" . DIRECTORY_SEPARATOR . "MetadataReader.php";
$post = Factory::getApplication()->input->post->getArray();
$mP = $_FILES;
if (!(isset($mP["metadata_file"]) || isset($post["metadata_url"]))) {
goto iZ;
}
if (!empty($mP["metadata_file"]["tmp_name"])) {
goto zZ;
}
$ZT = filter_var($post["metadata_url"], FILTER_SANITIZE_URL);
$Sx = array("ssl" => array("verify_peer" => false, "verify_peer_name" => false));
if (empty($ZT)) {
goto Vs;
}
$mP = file_get_contents($ZT, false, stream_context_create($Sx));
goto R8;
Vs:
$this->setRedirect("index.php?option=com_miniorange_saml&tab=idp", "No Metadata File/URL Provided.", "error");
return;
R8:
goto va;
zZ:
$mP = @file_get_contents($mP["metadata_file"]["tmp_name"]);
va:
$this->upload_metadata($mP);
iZ:
}
function upload_metadata($mP)
{
$qJ = 0;
$post = Factory::getApplication()->input->post->getArray();
if (!(count($post) == 0)) {
goto Is;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=idp");
return;
Is:
$B0 = new DOMDocument();
$B0->loadXML($mP);
restore_error_handler();
$oN = $B0->firstChild;
if (!empty($oN)) {
goto X9;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=idp", "Please provide valid metadata.", "error");
return;
goto qy;
X9:
$c0 = new IDPMetadataReader($B0);
$tp = $c0->getIdentityProviders();
if (!empty($tp)) {
goto O1;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=idp", "Please provide valid metadata.", "error");
return;
O1:
foreach ($tp as $vL => $PY) {
$zm = isset($post["idp_name"]) ? $post["idp_name"] : '';
$k4 = $PY->getLoginURL("HTTP-Redirect");
$LV = $PY->getEntityID();
$MV = $PY->getSigningCertificate();
$MV = implode(";", $MV);
$pa = $PY->getLogoutUrl("HTTP-Redirect");
$uT = '';
$XK = "RSA_SHA256";
$Sp = '';
$r2 = "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified";
$d1 = "HTTP-Redirect";
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$k8 = array($R5->quote($zm), $R5->quote(!empty($LV) ? $LV : ''), $R5->quote(!empty($k4) ? $k4 : ''), $R5->quote("HTTP-Redirect"), $R5->quote(!empty($MV) ? $MV : ''), $R5->quote(!empty($pa) ? $pa : ''), $R5->quote($uT), $R5->quote($XK), $R5->quote(isset($post["sync_metadata"]) ? $post["sync_metadata"] : "off"), $R5->quote(isset($post["metadata_url"]) ? $post["metadata_url"] : ''), $R5->quote(isset($post["sync_interval"]) ? $post["sync_interval"] : ''), $R5->quote($qJ), $R5->quote($Sp), $R5->quote($r2), $R5->quote($d1));
$R5->setQuery("SELECT * FROM #__miniorange_saml_config");
$c9 = $R5->loadObjectList();
$ad = array();
foreach ($c9 as $pS => $JT) {
$ad[] = $JT->idp_entity_id;
k9:
}
xJ:
$Qt = array($R5->quoteName("idp_name") . "=" . $R5->quote($zm), $R5->quoteName("idp_entity_id") . " = " . $R5->quote(!empty($LV) ? $LV : ''), $R5->quoteName("single_signon_service_url") . " = " . $R5->quote(!empty($k4) ? $k4 : ''), $R5->quoteName("binding") . " = " . $R5->quote("HTTP-Redirect"), $R5->quoteName("certificate") . " = " . $R5->quote(!empty($MV) ? $MV : ''), $R5->quoteName("single_logout_url") . "=" . $R5->quote(!empty($pa) ? $pa : ''), $R5->quoteName("default_relay_state") . "=" . $R5->quote(''), $R5->quoteName("mo_saml_select_sign_algo") . "=" . $R5->quote($XK), $R5->quoteName("auto_sync_enable") . " = " . $R5->quote(isset($post["sync_metadata"]) ? $post["sync_metadata"] : "off"), $R5->quoteName("metadata_url") . " = " . $R5->quote(isset($post["metadata_url"]) ? $post["metadata_url"] : ''), $R5->quoteName("mdata_sync_interval") . " = " . $R5->quote(isset($post["sync_interval"]) ? $post["sync_interval"] : ''), $R5->quoteName("metadata_check_timestamp") . " = " . $R5->quote($qJ), $R5->quoteName("saml_request_sign") . " = " . $R5->quote($Sp), $R5->quoteName("name_id_format") . " = " . $R5->quote($r2), $R5->quoteName("miniorange_saml_idp_slo_binding") . " = " . $R5->quote($d1));
$Rn = $post["idp_id"];
$H1 = array($R5->quoteName("id") . " =" . $Rn);
if ($Rn == 0) {
goto RW;
}
$js->update($R5->quoteName("#__miniorange_saml_config"))->set($Qt)->where($H1);
goto kH;
RW:
$yb = array("idp_name", "idp_entity_id", "single_signon_service_url", "binding", "certificate", "single_logout_url", "default_relay_state", "mo_saml_select_sign_algo", "auto_sync_enable", "metadata_url", "mdata_sync_interval", "metadata_check_timestamp", "saml_request_sign", "name_id_format", "miniorange_saml_idp_slo_binding");
$js->insert($R5->quoteName("#__miniorange_saml_config"))->columns($R5->quoteName($yb))->values(implode(",", $k8));
kH:
$R5->setQuery($js);
$R5->execute();
goto lu;
TP:
}
lu:
$this->setRedirect("index.php?option=com_miniorange_saml&tab=idp", "Identity Provider details saved successfully.");
return;
qy:
}
function saveConfig()
{
$post = Factory::getApplication()->input->post->getArray();
if (!(count($post) == 0)) {
goto Pb;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=idp");
return;
Pb:
$eR = Mo_Saml_Local_Util::getCustomerDetails();
$Ye = $eR["status"];
if (!(Mo_Saml_Local_Util::is_customer_registered() && Mo_Saml_Local_Util::check($Ye) != "true")) {
goto rv;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=idp", "You have not activated your license yet.", "error");
return;
rv:
$C1 = isset($post["option1"]) ? $post["option1"] : null;
if ($C1 == "mo_saml_save_config") {
goto hR;
}
if ($C1 == "mo_saml_save_attribute") {
goto nD;
}
if (!($C1 == "mo_saml_save_custom_sp_config")) {
goto ne;
}
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("sp_base_url") . " = " . $R5->quote(isset($post["sp_base_url"]) ? $post["sp_base_url"] : ''), $R5->quoteName("sp_entity_id") . " = " . $R5->quote(isset($post["sp_entity_id"]) ? $post["sp_entity_id"] : ''));
$H1 = array($R5->quoteName("id") . " = 1");
$js->update($R5->quoteName("#__miniorange_saml_customer_details"))->set($Qt)->where($H1);
$R5->setQuery($js);
$R5->execute();
$KZ = "Your configuration has been saved successfully.";
$this->setRedirect("index.php?option=com_miniorange_saml&tab=description", $KZ);
ne:
goto z5;
nD:
if (isset($post["saml_idp_name"]) && !empty($post["saml_idp_name"])) {
goto B6;
}
$KZ = "Please select the IDP from the dropdown and click on select button to save the configuration.";
$ZT = "index.php?option=com_miniorange_saml&tab=attribute_mapping";
$this->setRedirect($ZT, $KZ, "error");
goto B0;
B6:
$Gp = array_key_exists("user_profile_attr_name", $post) ? array_unique($post["user_profile_attr_name"]) : array();
$j6 = array_key_exists("user_profile_attr_value", $post) ? $post["user_profile_attr_value"] : array();
$IC = array();
foreach ($Gp as $vL => $eN) {
$M1 = trim($eN);
$M1 = preg_replace("/\s+/", '', $M1);
if (empty($M1)) {
goto ME;
}
$ZA = $j6[$vL];
$Ak = trim($ZA);
if (empty($Ak)) {
goto Uy;
}
$Dv = array();
$Dv["attr_name"] = $M1;
$Dv["attr_value"] = $Ak;
array_push($IC, $Dv);
Uy:
ME:
us:
}
kw:
$IC = json_encode($IC);
$jQ = array_key_exists("user_field_attr_name", $post) ? array_unique($post["user_field_attr_name"]) : '';
$OT = array_key_exists("user_field_attr_value", $post) ? $post["user_field_attr_value"] : '';
$Uv = array();
if (!($jQ != '' && $OT != '')) {
goto nh;
}
foreach ($jQ as $vL => $eN) {
$By = trim($eN);
if (empty($By)) {
goto xQ;
}
$qC = $OT[$vL];
$WT = trim($qC);
if (empty($WT)) {
goto Uw;
}
$cO = array();
$cO["attr_name"] = $By;
$cO["attr_value"] = $WT;
array_push($Uv, $cO);
Uw:
xQ:
L6:
}
GV:
nh:
$Uv = json_encode($Uv);
$GG = array_key_exists("user_contact_attr_name", $post) ? array_unique($post["user_contact_attr_name"]) : '';
$xb = array_key_exists("user_contact_attr_value", $post) ? $post["user_contact_attr_value"] : '';
$oD = array();
if (!($GG != '' && $xb != '')) {
goto y1;
}
foreach ($GG as $vL => $eN) {
$By = trim($eN);
if (empty($By)) {
goto MM;
}
$qC = trim($xb[$vL]);
if (empty($qC)) {
goto Xl;
}
$cO = array();
$cO["attr_name"] = $By;
$cO["attr_value"] = $qC;
array_push($oD, $cO);
Xl:
MM:
YO:
}
GD:
y1:
$oD = json_encode($oD);
$q5 = array_key_exists("user_cw_attr_name", $post) ? array_unique($post["user_cw_attr_name"]) : '';
$nq = array_key_exists("user_cw_attr_value", $post) ? $post["user_cw_attr_value"] : '';
$ng = array();
if (!($q5 != '' && $nq != '')) {
goto cV;
}
foreach ($q5 as $vL => $eN) {
$By = trim($eN);
if (empty($By)) {
goto Zd;
}
$qC = trim($nq[$vL]);
if (empty($qC)) {
goto tU;
}
$cO = array();
$cO["attr_name"] = $By;
$cO["attr_value"] = $qC;
array_push($ng, $cO);
tU:
Zd:
yF:
}
ZR:
cV:
$ng = json_encode($ng);
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("username") . " = " . $R5->quote(isset($post["username"]) ? trim($post["username"]) : ''), $R5->quoteName("email") . " = " . $R5->quote(isset($post["email"]) ? trim($post["email"]) : ''), $R5->quoteName("name") . " = " . $R5->quote(isset($post["name"]) ? trim($post["name"]) : ''), $R5->quoteName("first_name") . " = " . $R5->quote(isset($post["first_name"]) ? trim($post["first_name"]) : ''), $R5->quoteName("last_name") . " = " . $R5->quote(isset($post["last_name"]) ? trim($post["last_name"]) : ''), $R5->quoteName("disable_update_existing_customer_attributes") . " = " . $R5->quote(isset($post["disable_update_existing_customer_attributes"]) ? $post["disable_update_existing_customer_attributes"] : 0), $R5->quoteName("user_profile_attributes") . " = " . $R5->quote($IC), $R5->quoteName("user_field_attributes") . " = " . $R5->quote($Uv), $R5->quoteName("user_contact_attributes") . " = " . $R5->quote($oD), $R5->quoteName("user_cw_attributes") . " = " . $R5->quote($ng));
$H1 = array($R5->quoteName("idp_name") . " = " . $R5->quote($post["saml_idp_name"]));
$js->update($R5->quoteName("#__miniorange_saml_config"))->set($Qt)->where($H1);
$R5->setQuery($js);
$R5->execute();
$KZ = "Attribute Mapping for IDP " . $post["saml_idp_name"] . " has been saved successfully.";
$ZT = "index.php?option=com_miniorange_saml&tab=attribute_mapping&idp_name_attr=" . $post["saml_idp_name"];
$this->setRedirect($ZT, $KZ);
B0:
z5:
goto bw;
hR:
if (isset($post["idp_id"]) && isset($post["idp_name"]) && isset($post["idp_entity_id"]) && isset($post["single_signon_service_url"])) {
goto aW;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=idp&id=" . $post["idp_id"], "Please provide all the required information.", "error");
return;
goto Z_;
aW:
$Rn = $post["idp_id"];
if ($Rn == 0) {
goto YV;
}
$this->update_existing_idp($post);
goto JO;
YV:
$Tz = $eR["customer_key"];
$Bu = $eR["api_key"];
$ZR = $this->checkCL($Tz, $Bu, 0);
if (!$ZR) {
goto sP;
}
return;
goto NW;
sP:
$this->insert_new_idp($post);
NW:
JO:
Z_:
$KZ = "Your configuration has been saved successfully. You can test the idp configurations now.";
$this->setRedirect("index.php?option=com_miniorange_saml&tab=idp", $KZ);
bw:
}
public function saveRolemapping()
{
$post = Factory::getApplication()->input->post->getArray();
if (!(count($post) == 0)) {
goto zj;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=idp");
return;
zj:
$eR = Mo_Saml_Local_Util::getCustomerDetails();
$Ye = isset($eR["status"]) ? $eR["status"] : '';
if (!(Mo_Saml_Local_Util::is_customer_registered() && Mo_Saml_Local_Util::check($Ye) != "true")) {
goto Q5;
}
$this->setRedirect("index.php?option=com_miniorange_saml", "You have not activated your license yet.", "error");
return;
Q5:
if (isset($post["current_idp_id"]) && !empty($post["current_idp_id"])) {
goto E1;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=group_mapping", "Please select the IDP for role mapping.");
goto Wz;
E1:
$hA = 0;
$Rd = array();
$ME = array_key_exists("mapping_key_", $post) ? $post["mapping_key_"] : array();
$Zx = array_key_exists("mapping_value_", $post) ? $post["mapping_value_"] : array();
foreach ($ME as $vL => $eN) {
$Rd[$eN] = $Zx[$vL];
$hA++;
Jg:
}
Oh:
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$js->select("*");
$js->from($R5->quoteName("#__miniorange_saml_role_mapping"));
$js->where($R5->quoteName("idp_id") . " = " . $R5->quote($post["current_idp_id"]));
$R5->setQuery($js);
$U8 = $R5->loadAssoc();
$Vt = isset($post["mapping_value_default"]) ? trim($post["mapping_value_default"]) : '';
$Be = isset($post["mapping_memberof_attribute"]) ? trim($post["mapping_memberof_attribute"]) : '';
$sw = isset($post["enable_role_mapping"]) ? $post["enable_role_mapping"] : 0;
$s2 = isset($post["do_not_auto_create_users"]) ? $post["do_not_auto_create_users"] : 0;
$NN = isset($post["disable_existing_users_role_update"]) ? $post["disable_existing_users_role_update"] : 0;
$If = isset($post["update_existing_users_role_without_removing_current"]) ? $post["update_existing_users_role_without_removing_current"] : 0;
$kd = isset($post["grp"]) ? trim($post["grp"]) : '';
$or = json_encode($Rd);
$sQ = isset($post["group_attr"]) ? $post["group_attr"] : '';
$MN = $post["current_idp_id"];
$js = $R5->getQuery(true);
$js->delete($R5->quoteName("#__miniorange_saml_custom_group_mapping"));
$R5->setQuery($js);
$R5->execute();
$B4 = isset($post["custom_mapping_key"]) ? $post["custom_mapping_key"] : array();
$Vs = isset($post["custom_mapping_value"]) ? $post["custom_mapping_value"] : array();
foreach ($B4 as $vL => $eN) {
if (!(!empty($eN) && !empty($Vs[$vL]))) {
goto zn;
}
$js = $R5->getQuery(true);
$yb = array("custom_key", "custom_value");
$k8 = array($R5->quote($eN), $R5->quote($Vs[$vL]));
$js->insert($R5->quoteName("#__miniorange_saml_custom_group_mapping"))->columns($R5->quoteName($yb))->values(implode(",", $k8));
$R5->setQuery($js);
$R5->execute();
zn:
r5:
}
A0:
$H_ = UtilitiesSAML::loadUserGroups();
$RV = isset($post["enable_role_based_redirection"]) ? $post["enable_role_based_redirection"] : 0;
foreach ($H_ as $A3) {
$be = "role_based_group_attr_values" . $A3[0];
if (!(isset($post[$be]) && !empty($post[$be]))) {
goto yq;
}
$gP[$A3[0]] = $post[$be];
yq:
nX:
}
a6:
$gP = json_encode($gP);
if ($U8) {
goto y3;
}
$js = $R5->getQuery(true);
$yb = array("mapping_value_default", "mapping_memberof_attribute", "enable_saml_role_mapping", "role_mapping_key_value", "role_mapping_count", "idp_id", "do_not_auto_create_users", "disable_existing_users_role_update", "update_existing_users_role_without_removing_current", "grp", "enable_role_based_redirection", "role_based_redirect_key_value", "joomshopping_group");
$k8 = array($R5->quote($Vt), $R5->quote($Be), $R5->quote($sw), $R5->quote($or), $R5->quote($hA), $R5->quote($MN), $R5->quote($s2), $R5->quote($NN), $R5->quote($If), $R5->quote($kd), $R5->quote($RV), $R5->quote($gP), $R5->quote($sQ));
$js->insert($R5->quoteName("#__miniorange_saml_role_mapping"))->columns($R5->quoteName($yb))->values(implode(",", $k8));
$R5->setQuery($js);
$R5->execute();
goto Nx;
y3:
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("mapping_value_default") . " = " . $R5->quote($Vt), $R5->quoteName("mapping_memberof_attribute") . " = " . $R5->quote($Be), $R5->quoteName("enable_saml_role_mapping") . " = " . $R5->quote($sw), $R5->quoteName("role_mapping_key_value") . " = " . $R5->quote($or), $R5->quoteName("role_mapping_count") . " = " . $R5->quote($hA), $R5->quoteName("do_not_auto_create_users") . " = " . $R5->quote($s2), $R5->quoteName("disable_existing_users_role_update") . " = " . $R5->quote($NN), $R5->quoteName("update_existing_users_role_without_removing_current") . " = " . $R5->quote($If), $R5->quoteName("grp") . " = " . $R5->quote($kd), $R5->quoteName("enable_role_based_redirection") . " = " . $R5->quote($RV), $R5->quoteName("role_based_redirect_key_value") . " = " . $R5->quote($gP), $R5->quoteName("joomshopping_group") . " = " . $R5->quote($sQ));
$H1 = array($R5->quoteName("idp_id") . " = " . $R5->quote($post["current_idp_id"]));
$js->update($R5->quoteName("#__miniorange_saml_role_mapping"))->set($Qt)->where($H1);
$R5->setQuery($js);
$R5->execute();
Nx:
$this->setRedirect("index.php?option=com_miniorange_saml&tab=group_mapping¤t_idp_id=" . $post["current_idp_id"], "SAML Group to Joomla role mapping has been updated.");
Wz:
}
function cancelform()
{
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("email") . " = " . $R5->quote(''), $R5->quoteName("login_status") . " = " . $R5->quote(1), $R5->quoteName("email_count") . " = " . $R5->quote(0));
$H1 = array($R5->quoteName("id") . " = 1");
$js->update($R5->quoteName("#__miniorange_saml_customer_details"))->set($Qt)->where($H1);
$R5->setQuery($js);
$U8 = $R5->execute();
$this->setRedirect("index.php?option=com_miniorange_saml&tab=account");
}
function freeLicenseKey()
{
$my = new Mo_saml_Local_Customer();
$ax = json_decode($my->update_status(), true);
if (strcasecmp($ax["status"], "SUCCESS") == 0) {
goto SV;
}
$j1 = "Error removing your license key. Please try again or contact <a href="mailto:[email protected]"> [email protected]</a>";
$this->setRedirect("index.php?option=com_miniorange_saml&tab=account", $j1, "error");
return;
goto YD;
SV:
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("email") . " = " . $R5->quote(''), $R5->quoteName("admin_phone") . " = " . $R5->quote(''), $R5->quoteName("customer_key") . " = " . $R5->quote(''), $R5->quoteName("customer_token") . " = " . $R5->quote(''), $R5->quoteName("api_key") . " = " . $R5->quote(''), $R5->quoteName("login_status") . " = " . $R5->quote(1), $R5->quoteName("status") . " = " . $R5->quote(''), $R5->quoteName("sml_lk") . " = " . $R5->quote(''), $R5->quoteName("new_registration") . " = " . $R5->quote(0), $R5->quoteName("email_count") . " = " . $R5->quote(0), $R5->quoteName("in_cmp") . " = " . $R5->quote(''), $R5->quoteName("trists") . " = " . $R5->quote(''), $R5->quoteName("usrlmt") . " = " . $R5->quote(0), $R5->quoteName("licenseExpiry") . " = " . $R5->quote("0000-00-00 00:00:00"), $R5->quoteName("supportExpiry") . " = " . $R5->quote("0000-00-00 00:00:00"), $R5->quoteName("noSP") . " = " . $R5->quote(0), $R5->quoteName("auto_send_email_time") . " = " . $R5->quote(''));
$H1 = array($R5->quoteName("id") . " = 1");
$js->update($R5->quoteName("#__miniorange_saml_customer_details"))->set($Qt)->where($H1);
$R5->setQuery($js);
$U8 = $R5->execute();
$this->setRedirect("index.php?option=com_miniorange_saml&tab=account");
YD:
}
function new_line()
{
echo "
";
echo "<hr>";
}
function contactUs()
{
$post = Factory::getApplication()->input->post->getArray();
if (!(count($post) == 0)) {
goto XZ;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=account");
return;
XZ:
$B_ = $post["query"];
$fB = $post["query_email"];
$oI = $post["query_phone"];
$HR = isset($post["send_plugin_config"]) ? $post["send_plugin_config"] : 0;
$JH = null;
if ($HR == 1 || $HR == true) {
goto jW;
}
$js = $B_;
goto i4;
jW:
$JH = $this->importexport(true);
if (!empty($JH)) {
goto UF;
}
$js = $B_;
$this->setRedirect("index.php?option=com_miniorange_saml&tab=account", "Please configure the plugin to send the configuration in query.", "error");
return;
goto Xu;
UF:
ob_start();
$this->new_line();
$H0 = ob_get_clean();
$js = $B_ . $H0 . " Plugin Configuration=>" . $JH;
Xu:
i4:
$b0 = new Mo_saml_Local_Customer();
$J0 = $b0->submit_contact_us($fB, $oI, $js);
$DY = strcasecmp($J0, "Query submitted.");
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto BW;
}
if (is_array($J0) && array_key_exists("status", $J0) && $J0["status"] == "ERROR") {
goto Ia;
}
if ($DY == 0) {
goto GF;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=account", "Your query could not be submitted. Please try again.", "error");
goto NZ;
GF:
$this->setRedirect("index.php?option=com_miniorange_saml&tab=account", "Thanks for getting in touch! We shall get back to you shortly.", "success");
NZ:
goto A_;
Ia:
$this->setRedirect("index.php?option=com_miniorange_saml&tab=account", $J0["message"], "error");
A_:
BW:
}
function setupOrUpdateProxy()
{
$post = Factory::getApplication()->input->post->getArray();
if (!(count($post) == 0)) {
goto ms;
}
$this->setRedirect("index.php?option=com_miniorange_saml&tab=account");
return;
ms:
$lH = isset($post["proxyPassword"]) ? $post["proxyPassword"] : '';
$eU = isset($post["proxyHost"]) ? $post["proxyHost"] : '';
$tX = isset($post["proxyPort"]) ? $post["proxyPort"] : '';
$so = isset($post["username"]) ? $post["username"] : '';
$R5 = Factory::getDbo();
$ka = (new Mo_saml_Local_Util())->_load_db_values("#__miniorange_saml_proxy_setup");
if (!$ka) {
goto v6;
}
$js = $R5->getQuery(true)->update($R5->quoteName("#__miniorange_saml_proxy_setup"))->set($R5->quoteName("password") . " = " . $R5->quote(base64_encode($lH)))->set($R5->quoteName("proxy_host_name") . " = " . $R5->quote($eU))->set($R5->quoteName("port_number") . " = " . $R5->quote($tX))->set($R5->quoteName("username") . " = " . $R5->quote($so))->where($R5->quoteName("id") . " = " . 1);
$R5->setQuery($js);
try {
$R5->execute();
Factory::getApplication()->enqueueMessage("Proxy setup updated successfully", "message");
} catch (Exception $aD) {
Factory::getApplication()->enqueueMessage("Failed to update proxy setup: " . $aD->getMessage(), "error");
}
goto cI;
v6:
$js = $R5->getQuery(true)->insert($R5->quoteName("#__miniorange_saml_proxy_setup"))->columns(array($R5->quoteName("id"), $R5->quoteName("password"), $R5->quoteName("proxy_host_name"), $R5->quoteName("port_number"), $R5->quoteName("username")))->values($R5->quote(1) . ", " . $R5->quote(base64_encode($lH)) . ", " . $R5->quote($eU) . ", " . $R5->quote($tX) . ", " . $R5->quote($so));
$R5->setQuery($js);
try {
$R5->execute();
Factory::getApplication()->enqueueMessage("Proxy setup saved successfully", "message");
} catch (Exception $aD) {
Factory::getApplication()->enqueueMessage("Failed to save proxy setup: " . $aD->getMessage(), "error");
}
cI:
$this->setRedirect("index.php?option=com_miniorange_saml&tab=account");
}
function resetProxy()
{
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$js->select("*")->from($R5->quoteName("#__miniorange_saml_proxy_setup"));
$R5->setQuery($js);
$x2 = $R5->loadAssoc();
if ($x2) {
goto iL;
}
Factory::getApplication()->enqueueMessage("No proxy data found to delete.", "warning");
goto zo;
iL:
$kG = $R5->getQuery(true)->delete($R5->quoteName("#__miniorange_saml_proxy_setup"));
$R5->setQuery($kG);
try {
$R5->execute();
Factory::getApplication()->enqueueMessage("Proxy data deleted successfully.", "success");
} catch (Exception $aD) {
Factory::getApplication()->enqueueMessage("Error deleting proxy data: " . $aD->getMessage(), "error");
}
zo:
$this->setRedirect("index.php?option=com_miniorange_saml&tab=account", false);
}
}
?>
Did this file decode correctly?
Original Code
<?php
defined("\x5f\x4a\105\x58\105\103") or die;
use Joomla\CMS\MVC\Controller\FormController;
use Joomla\CMS\Factory;
use Joomla\CMS\Uri\Uri;
class Miniorange_samlControllerMyaccount extends FormController
{
function __construct()
{
$this->view_list = "\155\x79\141\143\143\157\165\x6e\x74\163";
parent::__construct();
}
function verifyCustomer()
{
$post = Factory::getApplication()->input->post->getArray();
if (!(count($post) == 0)) {
goto u4;
}
$this->setRedirect("\151\156\144\x65\x78\56\160\x68\x70\77\x6f\x70\x74\x69\x6f\156\75\143\157\155\137\x6d\151\156\x69\x6f\162\141\156\147\x65\137\163\x61\155\x6c\46\164\x61\x62\x3d\x61\143\x63\x6f\165\x6e\164");
return;
u4:
if (Mo_Saml_Local_Util::check_empty_or_null($post["\x65\x6d\141\x69\x6c"]) || Mo_Saml_Local_Util::check_empty_or_null($post["\160\x61\163\163\167\157\x72\144"])) {
goto id;
}
$fB = $post["\145\155\x61\x69\x6c"];
$lH = $post["\x70\x61\x73\x73\x77\157\162\x64"];
goto sv;
id:
$this->setRedirect("\x69\x6e\x64\145\170\56\160\x68\160\77\x6f\160\164\x69\157\x6e\75\x63\157\155\x5f\x6d\x69\x6e\x69\157\x72\141\x6e\x67\145\x5f\x73\x61\155\154\46\164\x61\x62\75\x61\x63\x63\x6f\x75\156\164", "\x41\154\x6c\x20\164\150\145\x20\146\151\145\154\x64\x73\x20\x61\x72\x65\x20\162\145\x71\x75\x69\x72\x65\144\x2e\x20\120\154\x65\141\163\x65\x20\x65\x6e\x74\145\162\x20\166\x61\x6c\151\x64\x20\x65\x6e\x74\x72\151\x65\163\56", "\145\x72\x72\157\162");
sv:
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("\145\155\x61\151\x6c") . "\x20\75\x20" . $R5->quote($fB));
$H1 = array($R5->quoteName("\x69\x64") . "\x20\75\x20\61");
$js->update($R5->quoteName("\43\137\137\x6d\x69\x6e\x69\157\x72\x61\x6e\x67\x65\137\x73\x61\155\x6c\137\143\165\163\164\x6f\x6d\145\x72\x5f\x64\145\164\141\151\x6c\163"))->set($Qt)->where($H1);
$R5->setQuery($js);
$R5->execute();
$my = new Mo_saml_Local_Customer();
$Vh = $my->get_customer_key($lH);
$Tz = json_decode($Vh, true);
if (strcasecmp($Tz["\141\x70\151\113\x65\x79"], "\103\125\x52\x4c\137\x45\x52\122\x4f\122") == 0) {
goto rd;
}
if (json_last_error() == JSON_ERROR_NONE) {
goto f3;
}
$this->setRedirect("\x69\156\144\x65\170\56\160\150\160\77\x6f\160\x74\x69\x6f\x6e\x3d\x63\157\155\137\155\151\156\x69\x6f\162\x61\156\147\x65\137\163\x61\155\154\x26\x74\x61\x62\75\141\x63\143\x6f\165\x6e\x74", "\111\x6e\166\x61\154\151\144\40\x75\163\145\162\156\141\x6d\145\40\157\x72\x20\x70\x61\163\163\167\x6f\x72\x64\56\x20\120\x6c\x65\141\163\x65\x20\x74\x72\x79\40\141\147\141\x69\x6e\56", "\x65\x72\x72\x6f\x72");
goto ks;
f3:
$this->save_success_customer_config($Tz["\x69\x64"], $Tz["\x61\160\x69\x4b\x65\171"], $Tz["\164\157\x6b\x65\156"], $Tz["\x70\150\157\156\x65"], "\131\x6f\x75\x72\40\x61\143\143\157\x75\x6e\164\40\150\141\163\40\142\145\145\156\x20\x72\145\164\x72\151\145\x76\x65\144\40\163\165\143\143\x65\163\x73\x66\165\x6c\154\x79\x2e");
ks:
goto IR;
rd:
$this->setRedirect("\151\156\x64\x65\x78\56\160\x68\160\x3f\157\160\x74\151\x6f\x6e\75\x63\x6f\x6d\x5f\155\151\156\x69\x6f\162\141\156\147\145\x5f\x73\141\155\x6c\46\x74\x61\x62\75\x61\x63\143\x6f\x75\156\x74", $Tz["\x74\157\153\x65\156"], "\145\x72\162\157\162");
IR:
}
function save_success_customer_config($Rn, $Bu, $HO, $oI, $jM)
{
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("\x63\x75\x73\x74\x6f\x6d\145\x72\x5f\x6b\145\171") . "\x20\75\40" . $R5->quote($Rn), $R5->quoteName("\x61\160\151\x5f\153\x65\x79") . "\x20\75\40" . $R5->quote($Bu), $R5->quoteName("\x63\165\163\164\157\155\145\x72\x5f\x74\157\x6b\145\x6e") . "\40\x3d\x20" . $R5->quote($HO), $R5->quoteName("\141\x64\155\151\156\x5f\x70\x68\x6f\x6e\x65") . "\x20\x3d\40" . $R5->quote($oI), $R5->quoteName("\x6c\x6f\147\151\156\x5f\163\x74\x61\164\x75\163") . "\x20\75\x20" . $R5->quote(0), $R5->quoteName("\x6e\x65\x77\137\162\145\x67\x69\x73\x74\162\141\164\151\157\156") . "\x20\x3d\40" . $R5->quote(0));
$H1 = array($R5->quoteName("\x69\144") . "\40\75\x20\x31");
$js->update($R5->quoteName("\x23\137\x5f\x6d\151\x6e\x69\x6f\x72\141\156\147\145\x5f\163\141\155\x6c\x5f\143\x75\163\x74\x6f\x6d\x65\x72\x5f\144\145\164\141\x69\154\163"))->set($Qt)->where($H1);
$R5->setQuery($js);
$U8 = $R5->execute();
$js = $R5->getQuery(true);
$j1 = "\131\157\x75\162\x20\x61\143\x63\x6f\x75\156\x74\x20\150\141\163\x20\x62\145\x65\156\x20\162\145\164\x72\151\x65\166\x65\144\x20\163\165\x63\x63\x65\163\x73\x66\165\154\x6c\171\x2e";
$this->setRedirect("\x69\x6e\144\145\x78\56\x70\x68\x70\x3f\x6f\160\x74\151\x6f\x6e\x3d\143\157\x6d\137\155\x69\156\151\157\162\x61\156\147\145\137\x73\x61\x6d\154\46\x74\141\x62\x3d\x61\143\143\x6f\165\156\x74", $j1);
}
function generateCustomCertificate()
{
$post = Factory::getApplication()->input->post->getArray();
if (!(count($post) == 0)) {
goto z4;
}
$this->setRedirect("\x69\156\x64\x65\170\56\160\x68\x70\x3f\x6f\160\164\151\x6f\x6e\x3d\x63\157\155\x5f\155\x69\156\x69\x6f\x72\141\156\x67\x65\137\x73\x61\x6d\154\x26\164\141\x62\75\x63\165\163\x74\x6f\155\x5f\x63\x65\162\x74\151\x66\151\143\x61\x74\x65");
return;
z4:
$eR = UtilitiesSAML::getCustomerDetails();
$Ye = $eR["\x73\x74\141\164\x75\x73"];
if (!(Mo_Saml_Local_Util::is_customer_registered() && Mo_Saml_Local_Util::check($Ye) != "\164\x72\165\x65")) {
goto xE;
}
$this->setRedirect("\x69\x6e\144\145\x78\56\160\x68\160\x3f\x6f\x70\164\151\157\156\75\x63\157\155\x5f\x6d\151\x6e\151\x6f\x72\141\156\x67\x65\x5f\x73\x61\x6d\154", "\x59\x6f\165\40\x68\x61\166\145\x20\156\157\164\40\141\143\x74\151\x76\141\164\x65\144\40\x79\x6f\x75\x72\x20\x6c\151\x63\x65\x6e\x73\145\40\x79\145\x74\x2e", "\145\x72\x72\157\x72");
return;
xE:
$q6 = UtilitiesSAML::isIDPConfigured();
$post = Factory::getApplication()->input->post->getArray();
if (!(count($q6) == 0)) {
goto gJ;
}
$this->setRedirect("\151\x6e\x64\145\170\x2e\x70\x68\160\77\x6f\x70\164\151\157\156\x3d\143\157\155\x5f\x6d\x69\x6e\x69\x6f\x72\x61\156\147\145\137\163\x61\x6d\154\x26\x74\x61\142\x3d\x69\144\x70", "\120\x6c\x65\141\x73\145\x20\x63\157\156\x66\x69\147\x75\x72\x65\40\x53\145\162\166\x69\143\145\40\x50\x72\x6f\166\x69\x64\145\x72\x20\123\x65\164\x75\x70\40\164\x61\x62\x20\164\157\x20\165\x70\154\x6f\x61\144\x20\164\150\145\40\143\145\162\164\x69\146\151\x63\141\x74\x65\56", "\145\162\162\x6f\162");
return;
gJ:
if (!(isset($post["\163\x75\142\155\x69\164"]) && $post["\163\165\x62\x6d\151\164"] == "\x47\145\x6e\x65\162\x61\x74\x65\40\123\145\154\146\x2d\x53\151\147\156\145\144\x20\103\145\x72\164\x73")) {
goto Zi;
}
$KB = $post["\155\157\x5f\163\141\155\x6c\137\x63\157\x75\156\164\x72\x79\137\x63\x6f\144\145\x5f\164\x65\170\x74"];
if (!(strlen($KB) != 2 || ctype_lower($KB))) {
goto UO;
}
$this->setRedirect("\151\x6e\144\x65\x78\56\x70\x68\x70\x3f\157\160\164\x69\157\x6e\75\143\157\x6d\x5f\155\x69\156\x69\157\162\141\156\x67\145\x5f\163\141\155\x6c\x26\x74\141\x62\x3d\143\165\x73\x74\157\155\137\x63\x65\x72\x74\x69\146\x69\143\141\164\x65", "\x50\x6c\145\x61\163\x65\x20\x65\156\164\x65\x72\x20\x61\x20\x76\x61\x6c\x69\x64\x20\x63\157\165\156\x74\171\40\143\x6f\144\145\56", "\145\162\162\157\x72");
return;
UO:
$ba = isset($post["\147\145\x6e\145\162\141\x74\x65\137\x63\165\x73\164\x5f\x63\x65\x72\x74\x69\x66\151\x63\141\164\x65\137\157\x70\164\151\x6f\x6e"]) ? $post["\147\145\x6e\145\x72\141\164\145\x5f\143\x75\163\164\x5f\x63\145\x72\x74\151\146\151\143\141\x74\145\137\157\x70\164\x69\x6f\156"] : '';
if (!($ba == "\x6d\151\x6e\x69\x6f\x72\141\x6e\147\x65\137\163\x61\155\154\x5f\147\x65\x6e\145\162\141\164\x65\137\x63\x75\163\164\157\155\x5f\x63\145\x72\x74\x69\x66\151\x63\x61\x74\x65")) {
goto lP;
}
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("\x6d\x6f\137\x73\x61\x6d\154\137\143\x6f\165\x6e\164\x72\171\137\143\x6f\144\145\137\x74\145\x78\x74") . "\40\75\x20" . $R5->quote(isset($post["\x6d\x6f\x5f\163\141\x6d\154\137\143\x6f\x75\156\164\x72\x79\137\x63\x6f\144\x65\x5f\164\145\x78\x74"]) ? $post["\155\x6f\x5f\x73\x61\x6d\154\137\143\x6f\x75\x6e\x74\162\x79\137\x63\x6f\144\145\x5f\164\145\x78\164"] : null), $R5->quoteName("\x6d\157\x5f\x73\x61\155\x6c\137\x63\x65\162\164\151\x66\151\x63\x61\164\x65\137\163\x74\141\164\x65\137\156\141\x6d\x65") . "\x20\75\40" . $R5->quote(isset($post["\155\157\137\x73\x61\155\154\x5f\x63\x65\162\164\151\x66\x69\x63\141\x74\x65\137\x73\164\x61\164\x65\x5f\x6e\141\155\145"]) ? $post["\x6d\x6f\137\163\x61\155\154\x5f\143\145\x72\164\151\146\x69\143\x61\x74\x65\x5f\x73\164\x61\164\x65\x5f\x6e\141\x6d\145"] : null), $R5->quoteName("\x6d\x6f\x5f\163\141\x6d\x6c\x5f\x63\145\162\164\x69\x66\151\143\141\x74\x65\x5f\x63\x6f\155\x70\141\156\171\x5f\x6e\x61\x6d\x65") . "\x20\x3d\x20" . $R5->quote(isset($post["\x6d\157\137\x73\x61\155\x6c\137\143\145\162\x74\x69\146\151\143\141\164\x65\x5f\143\x6f\155\160\141\x6e\x79\137\x6e\x61\155\145"]) ? $post["\x6d\x6f\x5f\x73\141\155\154\x5f\x63\x65\x72\x74\151\x66\151\143\x61\x74\x65\x5f\x63\x6f\x6d\160\x61\156\x79\x5f\156\x61\155\145"] : null), $R5->quoteName("\155\151\156\151\157\162\x61\156\x67\145\137\x73\x61\155\154\x5f\165\156\151\164\137\156\x61\155\145") . "\x20\75\x20" . $R5->quote(isset($post["\155\151\156\151\157\x72\x61\156\x67\145\x5f\x73\x61\155\154\x5f\165\x6e\x69\164\x5f\x6e\x61\x6d\145"]) ? $post["\155\151\156\151\157\162\x61\x6e\147\145\x5f\x73\141\x6d\x6c\x5f\165\x6e\151\164\137\156\141\155\x65"] : null), $R5->quoteName("\x6d\157\x5f\163\x61\x6d\154\x5f\143\x65\162\x74\x69\x66\x69\143\x61\x74\145\x5f\x63\157\x6d\155\157\156\137\x6e\x61\155\145") . "\x20\x3d\40" . $R5->quote(isset($post["\155\x6f\x5f\163\141\x6d\154\137\143\145\x72\164\151\146\x69\x63\x61\x74\145\x5f\x63\157\155\x6d\157\x6e\137\x6e\x61\155\145"]) ? $post["\155\x6f\137\x73\x61\x6d\154\137\143\x65\x72\164\x69\146\x69\x63\x61\x74\145\137\143\157\155\x6d\x6f\156\137\x6e\141\x6d\x65"] : null), $R5->quoteName("\x6d\157\137\163\x61\155\x6c\137\163\x65\x6c\145\x63\x74\137\144\151\x67\x65\163\x74\137\x61\x6c\x67\x6f") . "\x20\75\40" . $R5->quote(isset($post["\x6d\x6f\x5f\x73\x61\x6d\x6c\x5f\x73\145\154\145\143\x74\x5f\144\x69\x67\x65\x73\x74\x5f\141\x6c\x67\x6f"]) ? $post["\x6d\157\137\x73\x61\x6d\x6c\x5f\163\145\154\x65\143\164\137\x64\x69\x67\145\x73\164\x5f\x61\154\x67\x6f"] : 0), $R5->quoteName("\x6d\157\x5f\163\x61\155\154\x5f\x73\x65\x6c\x65\143\x74\x5f\160\x72\151\x76\141\x74\145\137\153\145\171\137\x62\151\x74") . "\x20\x3d\x20" . $R5->quote(isset($post["\x6d\x6f\137\163\141\155\x6c\x5f\x73\145\154\x65\143\164\137\160\162\x69\166\x61\164\145\137\x6b\145\171\x5f\x62\x69\x74"]) ? $post["\155\x6f\137\x73\141\155\x6c\137\x73\145\154\145\x63\x74\137\160\x72\x69\x76\141\x74\145\137\x6b\145\171\x5f\142\x69\x74"] : 0), $R5->quoteName("\155\x6f\137\163\141\x6d\x6c\137\163\x65\x6c\145\x63\164\x5f\166\141\x6c\151\x64\x5f\x64\x61\x79\163") . "\x20\x3d\40" . $R5->quote(isset($post["\155\x6f\137\x73\141\x6d\154\x5f\163\145\x6c\145\143\164\x5f\x76\141\x6c\151\x64\x5f\x64\141\x79\163"]) ? $post["\155\x6f\x5f\x73\141\x6d\x6c\x5f\x73\x65\x6c\145\143\164\x5f\x76\x61\154\x69\x64\x5f\x64\x61\171\163"] : 0));
$H1 = array($R5->quoteName("\151\x64") . "\x20\x3d\x20\61");
$js->update($R5->quoteName("\43\137\x5f\x6d\151\156\151\x6f\x72\141\156\147\145\137\163\x61\x6d\154\x5f\x63\157\x6e\146\151\147"))->set($Qt)->where($H1);
$R5->setQuery($js);
$U8 = $R5->execute();
$cP = UtilitiesSAML::getCustomerDetails();
$cP = $cP["\x65\155\x61\x69\154"];
$e1 = isset($cP) ? $cP : '';
$KB = $post["\x6d\x6f\x5f\163\x61\x6d\154\x5f\x63\157\165\x6e\164\x72\x79\x5f\x63\x6f\144\x65\x5f\x74\145\x78\164"];
$WM = $post["\x6d\157\x5f\x73\141\155\154\x5f\143\x65\162\x74\x69\146\x69\143\141\164\145\137\x73\164\141\x74\145\137\156\x61\155\x65"];
$xt = $post["\155\x6f\x5f\163\141\x6d\154\137\x63\145\162\x74\x69\x66\151\143\x61\x74\x65\x5f\143\157\155\160\141\156\x79\137\x6e\141\x6d\x65"];
$K6 = $post["\x6d\x69\156\151\157\x72\x61\x6e\x67\145\x5f\x73\141\155\154\137\165\156\151\x74\x5f\156\x61\155\145"];
$Hk = $post["\x6d\157\x5f\x73\x61\155\x6c\x5f\143\145\162\164\x69\146\x69\x63\141\x74\x65\x5f\x63\x6f\155\x6d\x6f\x6e\x5f\156\x61\155\145"];
$JE = $post["\155\x6f\x5f\163\x61\155\x6c\x5f\x73\145\x6c\x65\x63\164\137\x64\x69\x67\145\x73\164\x5f\x61\154\147\x6f"];
$iH = $post["\x6d\x6f\137\x73\141\155\x6c\x5f\163\145\x6c\145\x63\164\x5f\x70\162\151\166\x61\x74\x65\x5f\x6b\x65\171\137\142\x69\x74"];
$tr = $post["\155\157\137\163\141\x6d\x6c\x5f\x73\145\154\x65\x63\164\137\166\141\x6c\151\x64\x5f\x64\141\x79\x73"];
$ua = array("\x63\x6f\165\156\164\162\x79\x4e\141\155\x65" => $KB, "\x73\164\x61\164\x65\x4f\162\120\162\x6f\x76\x69\x6e\143\x65\x4e\141\155\x65" => $WM, "\157\x72\x67\x61\156\151\172\141\164\x69\x6f\156\x4e\141\155\145" => $xt, "\x6f\x72\x67\x61\x6e\x69\172\x61\x74\151\x6f\x6e\141\154\125\156\x69\164\116\141\x6d\x65" => $K6, "\x63\157\155\x6d\x6f\x6e\116\x61\155\x65" => $Hk, "\145\x6d\x61\151\x6c\101\144\x64\162\145\x73\163" => $e1);
UtilitiesSAML::generateCertificate($ua, $JE, $iH, $tr);
$KZ = "\131\157\x75\x72\x20\143\x65\x72\x74\x69\146\151\x63\x61\164\145\x73\x20\x68\141\163\40\x62\145\x65\156\x20\147\145\x6e\145\x72\x61\x74\x65\144\x20\x73\x75\x63\x63\x65\163\163\146\165\x6c\154\x79\x2e\40\120\154\145\x61\x73\145\x20\x75\160\x64\x61\x74\x65\x20\x79\157\x75\x72\x20\x49\x64\x65\156\x74\151\x74\171\x20\120\162\157\166\x69\144\145\162\x20\x63\157\156\146\151\147\165\162\x61\164\x69\157\156\40\167\x69\164\x68\x20\x6e\x65\x77\40\x63\145\x72\x74\151\x66\x69\143\141\164\145\56";
$this->setRedirect("\151\x6e\x64\x65\170\x2e\160\x68\160\x3f\157\160\x74\151\157\156\75\x63\157\x6d\137\155\x69\x6e\x69\x6f\162\x61\x6e\x67\x65\137\x73\141\155\x6c\46\164\141\142\75\143\x75\163\164\157\x6d\x5f\x63\x65\x72\164\151\x66\x69\143\x61\x74\x65", $KZ);
lP:
Zi:
}
function check()
{
$post = Factory::getApplication()->input->post->getArray();
if (!(count($post) == 0)) {
goto Dv;
}
$this->setRedirect("\x69\x6e\x64\145\x78\56\x70\x68\160\77\x6f\160\164\151\157\x6e\75\143\x6f\155\x5f\x6d\151\156\151\157\162\x61\x6e\x67\145\x5f\163\x61\x6d\154\x26\164\141\x62\x3d\141\x63\x63\x6f\x75\x6e\164");
return;
Dv:
$TL = isset($post["\x6b\145\171"]) ? $post["\x6b\x65\171"] : '';
if ($TL) {
goto JK;
}
$j1 = "\105\x72\x72\157\x72\x20\141\143\x74\151\166\141\x74\151\x6e\x67\40\x79\157\165\162\40\154\x69\x63\145\156\x73\145\x2e\x20\x50\154\x65\x61\x73\145\40\x74\162\x79\40\x61\147\x61\151\156\x20\157\162\40\143\x6f\x6e\x74\141\143\x74\x3c\141\x20\150\162\x65\x66\x3d\42\155\141\151\x6c\164\157\x3a\152\157\157\155\154\x61\163\x75\160\160\157\162\x74\x40\170\x65\x63\x75\162\151\x66\171\56\143\157\155\x22\76\x20\x6a\x6f\x6f\x6d\154\x61\163\165\x70\160\x6f\x72\164\100\170\145\x63\165\162\x69\x66\171\x2e\x63\x6f\155\74\57\x61\76";
$this->setRedirect("\151\x6e\x64\x65\170\56\x70\150\160\x3f\157\160\x74\151\157\x6e\75\x63\x6f\155\137\x6d\151\x6e\x69\x6f\162\141\156\x67\x65\x5f\163\141\x6d\x6c\46\164\141\142\x3d\141\143\143\157\x75\x6e\x74", $j1, "\x65\162\162\157\x72");
goto uB;
JK:
$TL = trim(preg_replace("\x2f\x5c\x73\53\x2f", '', $TL));
$my = new Mo_saml_Local_Customer();
$eR = Mo_Saml_Local_Util::getCustomerDetails();
$Bu = isset($eR["\x61\160\x69\x5f\x6b\145\171"]) ? $eR["\141\x70\x69\x5f\x6b\x65\171"] : '';
$Tz = isset($eR["\143\x75\x73\x74\x6f\x6d\x65\162\x5f\x6b\x65\x79"]) ? $eR["\143\165\163\164\157\x6d\x65\162\137\153\x65\171"] : '';
$rp = json_decode($my->ccl($Tz, $Bu), true);
$oJ = 0;
$lv = 0;
$FE = "\x6a\157\157\x6d\x6c\x61\x5f\163\x61\x6d\x6c\x5f\163\x73\x6f\137\x65\156\164\x65\x72\160\x72\151\163\x65\137\160\x6c\141\x6e";
$VY = isset($rp["\x74\x72\151\x61\154"]) ? $rp["\164\162\151\141\x6c"] : '';
$VY = Mo_saml_Local_Util::encrypt_value($VY);
$dp = 0;
if (!(!isset($rp["\x73\x74\x61\x74\x75\163"]) || empty($rp["\x73\x74\141\164\x75\x73"]))) {
goto fk;
}
$j1 = isset($rp["\155\145\x73\x73\x61\x67\145"]) && !empty($rp["\155\x65\163\x73\141\x67\145"]) ? $rp["\155\x65\x73\163\141\x67\145"] : "\x59\x6f\165\x72\40\154\151\x63\145\156\x73\145\x20\151\x73\40\x6e\x6f\164\40\146\x6f\165\156\144";
$this->setRedirect("\151\x6e\144\145\x78\56\x70\x68\x70\77\x6f\160\164\x69\157\x6e\x3d\x63\x6f\x6d\x5f\155\151\156\151\157\x72\141\156\147\x65\x5f\x73\141\x6d\154\x26\x74\x61\x62\75\141\x63\x63\x6f\165\156\x74", $j1, "\145\162\162\157\x72");
return;
fk:
if (!($rp["\163\x74\141\164\165\163"] != "\123\x55\x43\103\x45\123\123")) {
goto ZQ;
}
$j1 = isset($rp["\155\x65\x73\163\141\147\x65"]) ? $rp["\155\145\163\163\141\x67\145"] : "\111\156\x76\141\154\x69\144\40\154\x69\143\145\x6e\x73\x65\41\40\x50\154\x65\x61\x73\145\40\x75\x73\145\40\x61\40\x76\x61\x6c\x69\144\x20\154\x69\143\145\x6e\163\145\x20\153\x65\x79\40\164\157\x20\141\143\164\x69\x76\x61\164\145\40\164\150\x65\40\x70\x6c\165\x67\151\x6e\56";
$this->setRedirect("\151\x6e\144\x65\x78\x2e\x70\x68\160\x3f\x6f\160\x74\151\x6f\x6e\x3d\143\157\155\x5f\155\x69\156\151\x6f\162\141\x6e\x67\x65\x5f\163\x61\155\154\x26\164\x61\x62\75\141\143\x63\157\x75\x6e\x74", $j1, "\x65\162\162\x6f\x72");
return;
ZQ:
if (!($rp["\163\x74\x61\164\x75\x73"] == "\x53\x55\x43\103\x45\123\123")) {
goto VG;
}
$oJ = isset($rp["\154\151\143\x65\x6e\x73\145\x45\x78\160\151\x72\171"]) ? $rp["\x6c\x69\x63\x65\x6e\163\x65\x45\170\160\x69\x72\171"] : 0;
$lv = isset($rp["\163\165\x70\160\157\x72\164\x45\170\x70\x69\162\x79"]) ? $rp["\163\x75\x70\160\x6f\x72\164\x45\x78\160\151\162\171"] : 0;
$FE = isset($rp["\x6c\151\x63\x65\156\x73\145\120\154\141\156"]) ? $rp["\154\151\143\x65\156\163\145\x50\x6c\141\x6e"] : '';
$dp = isset($rp["\x6e\157\117\x66\123\120"]) ? $rp["\156\157\117\146\123\x50"] : 0;
VG:
$ax = $my->check($TL);
if (strcasecmp($ax["\x73\x74\x61\164\165\x73"], "\123\x55\103\x43\105\123\x53") == 0) {
goto J5;
}
if (strcasecmp($ax["\x69\163\x45\x78\x70\151\x72\145\x64"], "\x31") == 0) {
goto UM;
}
$j1 = $ax["\155\x65\x73\x73\141\147\x65"] . "\120\x6c\145\141\x73\145\x20\x74\162\171\x20\167\x69\x74\150\40\x64\x69\146\146\145\162\x65\156\164\40\x6b\145\x79\x20\x6f\x72\x20\x63\157\156\164\x61\143\164\74\141\40\x68\162\145\146\75\42\x6d\141\151\x6c\164\157\x3a\x6a\x6f\157\x6d\154\141\163\x75\160\x70\x6f\x72\x74\100\170\x65\143\165\x72\x69\146\171\x2e\x63\157\x6d\x22\x3e\x20\x6a\157\x6f\155\x6c\141\x73\165\x70\x70\157\x72\164\100\x78\x65\143\165\x72\151\x66\171\x2e\143\x6f\155\74\57\x61\76\56";
goto TZ;
UM:
$j1 = "\x59\157\x75\x72\x20\154\151\x63\x65\x6e\163\x65\x20\153\x65\171\40\x69\x73\x20\145\170\160\x69\162\x65\144\56\40\x50\x6c\x65\x61\x73\145\40\x74\162\171\x20\167\x69\x74\150\40\144\x69\x66\146\x65\x72\x65\156\164\x20\x6b\145\171\x20\x6f\x72\40\x63\157\x6e\164\x61\143\164\x3c\x61\40\x68\162\145\146\x3d\42\x6d\141\151\154\164\157\72\x6a\x6f\157\x6d\154\141\163\x75\x70\x70\x6f\162\164\x40\x78\x65\143\x75\162\x69\146\x79\x2e\x63\x6f\x6d\x22\x3e\40\x6a\x6f\x6f\155\154\x61\163\x75\160\160\x6f\x72\164\100\x78\145\143\x75\162\151\146\x79\x2e\143\x6f\x6d\x20\74\x2f\141\x3e";
TZ:
$this->setRedirect("\x69\156\x64\145\170\x2e\160\x68\x70\x3f\x6f\160\x74\151\157\156\75\x63\x6f\155\137\x6d\x69\156\x69\x6f\162\141\156\x67\145\137\x73\x61\155\x6c\46\164\141\x62\75\x61\x63\143\x6f\165\x6e\164", $j1, "\x65\x72\162\x6f\162");
goto pN;
J5:
$Eb = Mo_saml_Local_Util::encrypt($TL);
$TW = URI::root() . $Eb;
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("\x73\164\141\x74\x75\163") . "\40\x3d\x20" . $R5->quote(Mo_saml_Local_Util::encrypt("\164\162\x75\x65")), $R5->quoteName("\163\155\154\137\x6c\153") . "\x20\75\x20" . $R5->quote(Mo_saml_Local_Util::encrypt($TL)), $R5->quoteName("\151\156\x5f\143\x6d\160") . "\x20\x3d\x20" . $R5->quote(Mo_saml_Local_Util::encrypt($TW)), $R5->quoteName("\154\x69\x63\x65\156\x73\x65\x45\170\160\x69\162\171") . "\x20\75\x20" . $R5->quote($oJ), $R5->quoteName("\163\x75\x70\x70\157\162\x74\x45\170\x70\x69\x72\x79") . "\40\x3d\40" . $R5->quote($lv), $R5->quoteName("\154\x69\143\x65\x6e\x73\145\x50\x6c\x61\x6e") . "\x20\x3d\x20" . $R5->quote($FE), $R5->quoteName("\x74\162\151\x73\164\x73") . "\x20\x3d\x20" . $R5->quote($VY), $R5->quoteName("\156\x6f\123\120") . "\40\x3d\x20" . $R5->quote($dp));
$H1 = array($R5->quoteName("\151\x64") . "\x20\75\40\x31");
$js->update($R5->quoteName("\x23\x5f\137\x6d\151\156\151\157\162\x61\x6e\147\145\137\x73\x61\155\154\x5f\x63\x75\163\164\157\155\145\162\x5f\144\145\164\141\x69\x6c\x73"))->set($Qt)->where($H1);
$R5->setQuery($js);
$R5->execute();
UtilitiesSAML::createAndUpdateUpgardeUrl();
$j1 = "\131\157\165\x72\x20\154\x69\x63\x65\x6e\163\145\x20\x68\x61\x73\40\142\x65\x65\156\40\166\x65\162\151\146\151\145\x64\56";
$this->setRedirect("\151\156\144\145\170\56\160\150\x70\x3f\x6f\160\164\151\x6f\x6e\x3d\143\x6f\155\x5f\155\x69\x6e\x69\157\x72\141\156\147\x65\x5f\x73\x61\155\154\46\164\141\x62\x3d\x61\x63\143\x6f\x75\x6e\164", $j1);
pN:
uB:
}
function updateLoginFlow()
{
$post = Factory::getApplication()->input->post->getArray();
if (!(count($post) == 0)) {
goto M_;
}
$this->setRedirect("\151\x6e\144\145\x78\56\160\150\160\x3f\157\160\164\151\x6f\x6e\x3d\x63\x6f\155\x5f\155\151\x6e\151\157\162\x61\156\x67\145\137\163\141\155\154\x26\x74\141\142\75\163\x73\x6f\137\163\x65\x74\164\x69\156\x67\163");
return;
M_:
$eR = Mo_Saml_Local_Util::getCustomerDetails();
$Ye = isset($eR["\163\x74\141\164\165\x73"]) ? $eR["\x73\164\141\x74\165\x73"] : '';
if (!(!Mo_Saml_Local_Util::is_customer_registered() && Mo_Saml_Local_Util::check($Ye) != "\x74\162\x75\x65")) {
goto c2;
}
$this->setRedirect("\x69\156\144\x65\x78\x2e\160\x68\x70\x3f\157\x70\x74\151\157\156\x3d\x63\x6f\x6d\x5f\x6d\151\x6e\x69\x6f\162\x61\x6e\x67\145\x5f\163\x61\x6d\154", "\x50\154\x65\x61\x73\145\x20\x72\x65\147\x69\163\x74\145\162\40\141\x6e\x64\x20\141\x63\x74\x69\166\141\164\x65\40\171\157\165\162\x20\154\x69\143\145\x6e\x73\x65\40\x74\157\40\163\141\x76\x65\x20\x79\x6f\165\162\40\x63\157\156\146\151\147\165\x72\141\x74\x69\x6f\x6e\163\x2e", "\x65\x72\x72\x6f\x72");
return;
c2:
$qO = isset($post["\x65\156\141\142\154\145\x5f\x72\x65\x64\x69\162\145\143\164"]) ? $post["\x65\x6e\141\x62\154\x65\x5f\162\x65\x64\x69\162\145\143\164"] : 0;
$XZ = isset($post["\165\x73\x65\162\x5f\x6c\157\147\151\x6e\137\146\157\162\x5f\157\164\x68\145\x72\x5f\x64\x6f\x6d\141\151\156\x73"]) ? $post["\x75\x73\145\x72\137\x6c\157\x67\x69\156\137\146\157\x72\137\157\x74\150\145\x72\137\144\x6f\x6d\x61\151\x6e\x73"] : "\x42\114\x4f\x43\x4b";
$Co = isset($post["\x6d\157\x5f\x69\144\x70\x5f\154\x69\x6e\153\137\x70\x61\147\x65"]) ? $post["\x6d\x6f\137\x69\x64\x70\x5f\x6c\x69\x6e\x6b\x5f\160\141\x67\x65"] : '';
$N3 = isset($post["\x6d\157\137\x69\x64\160\x5f\154\x69\x73\x74\137\x6c\151\x6e\x6b\x5f\160\x61\x67\x65"]) ? $post["\x6d\x6f\137\x69\144\x70\x5f\x6c\x69\163\164\137\x6c\151\156\x6b\137\x70\x61\x67\145"] : '';
$f4 = isset($post["\x69\x67\x6e\x6f\x72\x65\137\163\160\145\143\x69\141\x6c\137\x63\x68\141\x72\x61\143\x74\x65\162\x73"]) ? $post["\151\x67\156\x6f\x72\x65\137\163\x70\x65\143\x69\x61\x6c\x5f\x63\150\x61\162\x61\x63\x74\x65\162\163"] : 0;
$yZ = isset($post["\145\156\x61\x62\154\145\x5f\155\x61\x6e\141\147\x65\x72\x5f\x6c\x6f\x67\151\x6e"]) ? $post["\x65\x6e\141\142\x6c\x65\x5f\155\x61\156\x61\147\145\162\x5f\154\x6f\x67\151\x6e"] : 0;
$Lq = isset($post["\145\156\141\x62\x6c\x65\x5f\141\x64\155\151\x6e\x5f\162\x65\144\x69\162\x65\143\164"]) ? $post["\145\x6e\x61\142\x6c\145\x5f\x61\x64\x6d\x69\156\x5f\162\x65\144\151\x72\x65\143\164"] : 0;
$ps = isset($post["\x6d\x6f\x5f\141\x64\x6d\151\156\x5f\x69\x64\160\137\154\151\x6e\153\x5f\160\141\x67\145"]) ? $post["\x6d\x6f\x5f\x61\144\155\x69\x6e\x5f\151\x64\x70\137\x6c\x69\x6e\153\x5f\x70\141\147\x65"] : '';
$rf = isset($post["\145\x6e\x61\142\x6c\145\x5f\x65\155\x61\151\x6c"]) ? $post["\145\x6e\141\142\154\145\137\x65\x6d\141\x69\x6c"] : FALSE;
$s7 = isset($post["\145\x6e\141\x62\x6c\145\x5f\x61\x64\x6d\x69\x6e\x5f\143\150\x69\154\x64\x5f\x72\145\144\151\x72\x65\143\x74"]) ? $post["\x65\x6e\141\x62\154\x65\x5f\141\x64\x6d\151\156\137\143\x68\x69\154\144\x5f\x72\x65\x64\151\x72\x65\143\164"] : 0;
$pT = isset($post["\145\x6e\141\142\154\x65\137\x6d\x61\156\x61\147\x65\162\x5f\x63\x68\x69\154\x64\x5f\x6c\x6f\147\x69\156"]) ? $post["\x65\156\141\x62\154\x65\x5f\x6d\141\x6e\141\147\x65\x72\x5f\x63\150\x69\154\x64\137\x6c\x6f\x67\x69\156"] : 0;
$o2 = isset($post["\x65\156\x61\142\x6c\145\x5f\x64\x6f\137\x6e\157\164\137\141\x75\164\x6f\137\x63\x72\x65\x61\x74\151\x6f\x6e"]) ? $post["\145\x6e\x61\x62\154\145\137\x64\157\137\x6e\x6f\x74\x5f\x61\x75\x74\x6f\x5f\143\x72\145\141\x74\x69\157\156"] : 0;
if (!($qO && empty($Co) && filter_var($Co, FILTER_VALIDATE_URL) === FALSE)) {
goto gt;
}
$KZ = "\120\x6c\x65\141\x73\145\x20\x65\156\164\145\162\40\x76\x61\x6c\x69\144\x20\162\145\x64\x69\x72\145\143\x74\x20\125\x52\114\x2e";
$this->setRedirect("\151\x6e\x64\145\x78\x2e\160\x68\x70\77\157\160\x74\151\x6f\x6e\x3d\143\x6f\x6d\x5f\155\x69\156\x69\x6f\162\x61\156\147\145\137\x73\141\x6d\x6c\x26\x74\x61\142\75\x73\x73\x6f\x5f\x73\145\164\164\x69\x6e\x67\x73", $KZ, "\x65\162\162\157\x72");
return;
gt:
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("\x65\156\141\x62\154\x65\x5f\x72\145\x64\x69\x72\x65\x63\x74") . "\x20\x3d\x20" . $R5->quote($qO), $R5->quoteName("\x75\x73\145\162\x5f\154\157\x67\x69\156\137\x66\x6f\x72\x5f\157\164\150\x65\162\x5f\x64\x6f\155\141\151\156\163") . "\x20\x3d\x20" . $R5->quote($XZ), $R5->quoteName("\151\144\x70\137\154\151\x6e\153\x5f\x70\x61\x67\145") . "\x20\75\40" . $R5->quote($Co), $R5->quoteName("\155\x6f\137\x69\x64\160\137\x6c\x69\163\164\137\x6c\151\156\153\137\x70\x61\147\x65") . "\40\x3d\40" . $R5->quote($N3), $R5->quoteName("\x65\156\x61\x62\x6c\145\137\x6d\x61\x6e\x61\147\145\162\x5f\x6c\157\x67\151\156") . "\40\75\40" . $R5->quote($yZ), $R5->quoteName("\145\156\x61\142\154\x65\137\141\x64\155\x69\x6e\x5f\162\145\x64\151\x72\145\x63\164") . "\x20\75\x20" . $R5->quote($Lq), $R5->quoteName("\155\157\x5f\141\144\155\151\156\137\151\x64\x70\x5f\x6c\151\163\164\x5f\154\151\x6e\x6b\x5f\x70\141\x67\145") . "\x20\75\x20" . $R5->quote($ps), $R5->quoteName("\151\147\156\157\x72\145\x5f\x73\x70\145\143\151\141\x6c\x5f\x63\150\x61\x72\141\143\x74\145\162\x73") . "\40\x3d\40" . $R5->quote($f4), $R5->quoteName("\145\x6e\x61\x62\154\145\137\x65\x6d\x61\x69\154") . "\x20\75\40" . $R5->quote($rf), $R5->quoteName("\x65\156\141\142\154\145\x5f\141\144\x6d\151\x6e\x5f\x63\x68\151\x6c\x64\x5f\154\157\x67\151\156") . "\40\75\40" . $R5->quote($s7), $R5->quoteName("\x65\x6e\141\x62\x6c\x65\x5f\x6d\141\156\141\x67\x65\x72\x5f\x63\150\151\x6c\144\137\x6c\157\x67\151\x6e") . "\x20\x3d\x20" . $R5->quote($pT), $R5->quoteName("\145\156\x61\x62\154\145\137\x64\x6f\x5f\156\157\x74\x5f\x61\x75\x74\x6f\x5f\143\162\145\141\x74\145\137\165\163\145\x72\x73") . "\40\75\40" . $R5->quote($o2));
$H1 = array($R5->quoteName("\151\144") . "\x20\75\40\61");
$js->update($R5->quoteName("\43\137\137\x6d\151\x6e\x69\157\x72\141\x6e\147\145\x5f\x73\141\x6d\154\137\143\x75\163\164\157\x6d\145\162\x5f\x64\x65\x74\141\x69\x6c\x73"))->set($Qt)->where($H1);
$R5->setQuery($js);
$U8 = $R5->execute();
$KZ = "\131\x6f\x75\162\40\x63\x6f\x6e\146\151\x67\x75\x72\141\164\151\x6f\156\x20\150\x61\163\40\142\x65\x65\156\x20\163\141\166\145\144\40\163\165\143\143\x65\163\163\x66\165\154\154\x79\x2e";
$this->setRedirect("\x69\156\144\x65\170\56\160\x68\x70\77\157\x70\164\151\x6f\156\x3d\x63\x6f\155\x5f\x6d\x69\156\151\x6f\162\x61\156\147\145\137\163\141\x6d\154\46\164\x61\142\x3d\x73\x73\157\137\x73\145\164\x74\x69\x6e\x67\163", $KZ);
}
function fetchLicense()
{
$eR = Mo_Saml_Local_Util::getCustomerDetails();
$Tz = isset($eR["\x63\165\x73\164\157\x6d\x65\x72\x5f\x6b\x65\x79"]) ? $eR["\143\165\163\164\x6f\155\x65\x72\x5f\x6b\x65\171"] : '';
$Bu = isset($eR["\x61\160\151\x5f\x6b\x65\171"]) ? $eR["\x61\160\x69\x5f\x6b\145\x79"] : '';
$my = new Mo_saml_Local_Customer();
$rp = json_decode($my->ccl($Tz, $Bu), true);
$iF = $rp["\154\x69\143\x65\x6e\x73\145\x45\x78\x70\x69\162\171"];
$Wp = $rp["\163\165\x70\160\157\162\x74\105\x78\160\151\x72\171"];
$vx = Mo_saml_Local_Util::encrypt_value($rp["\164\162\151\141\154"]);
$IJ = $rp["\x6e\x6f\x4f\x66\x53\x50"];
$sJ = UtilitiesSAML::getExpiryDate();
$iW = strtotime($sJ["\x6c\151\x63\145\156\x73\145\105\170\160\151\x72\171"]);
$qd = strtotime($sJ["\163\165\160\160\x6f\x72\x74\x45\x78\160\151\x72\171"]);
$eN = $sJ["\164\x72\x69\x73\x74\x73"];
$dp = $sJ["\x6e\157\123\120"];
$BJ = isset($eR["\x6d\x69\156\151\157\x72\141\156\147\145\x5f\x6c\145\x78\160\137\x6e\x6f\164\151\146\x69\143\141\x74\151\x6f\156\137\163\145\x6e\164"]) ? $eR["\155\151\156\x69\x6f\162\x61\x6e\x67\145\137\x6c\145\x78\160\x5f\156\157\164\151\x66\x69\x63\x61\x74\151\157\x6e\x5f\x73\145\156\x74"] : 0;
if (!(strtotime($iF) > $iW && $BJ)) {
goto NY;
}
$a5 = "\43\x5f\x5f\155\151\x6e\151\157\162\x61\x6e\x67\145\x5f\x73\x61\155\x6c\137\x63\x75\x73\x74\157\x6d\145\162\x5f\144\x65\x74\x61\151\154\x73";
$OL = array("\x6d\151\x6e\151\157\x72\x61\x6e\147\145\137\146\151\x66\164\x65\x65\156\137\x64\x61\x79\163\137\142\145\146\157\162\x65\137\x6c\x65\170\x70" => 0, "\x6d\151\x6e\x69\157\162\141\156\147\x65\137\146\151\166\x65\x5f\144\x61\171\x73\x5f\x62\145\146\157\x72\145\x5f\154\x65\x78\160" => 0, "\155\x69\x6e\151\157\x72\x61\x6e\147\x65\137\x61\146\x74\x65\x72\x5f\154\145\x78\160" => 0, "\155\151\156\151\157\x72\x61\x6e\x67\145\x5f\x61\146\x74\x65\x72\x5f\146\x69\166\x65\x5f\x64\141\x79\x73\137\154\x65\x78\160" => 0, "\x6d\x69\x6e\x69\x6f\x72\x61\x6e\x67\x65\137\x6c\x65\170\160\x5f\156\157\x74\151\x66\x69\x63\x61\x74\151\x6f\156\137\x73\145\156\164" => 0);
UtilitiesSAML::__genDBUpdate($a5, $OL);
NY:
if (!(strtotime($iF) > $iW)) {
goto ug;
}
$a5 = "\x23\x5f\x5f\x6d\151\x6e\151\157\162\x61\x6e\x67\x65\137\x73\x61\155\154\137\143\x75\163\164\157\x6d\x65\162\x5f\x64\x65\164\x61\151\154\163";
$OL = array("\154\x69\x63\145\x6e\x73\145\x45\170\160\x69\x72\171" => $iF);
UtilitiesSAML::__genDBUpdate($a5, $OL);
ug:
if (!(strtotime($Wp) > $qd)) {
goto Jh;
}
$a5 = "\x23\x5f\137\x6d\151\156\x69\x6f\x72\x61\156\x67\x65\x5f\x73\x61\155\x6c\x5f\143\x75\x73\164\x6f\155\x65\x72\x5f\x64\x65\164\x61\151\154\163";
$OL = array("\x73\x75\x70\x70\x6f\162\164\105\170\x70\151\162\x79" => $Wp);
UtilitiesSAML::__genDBUpdate($a5, $OL);
Jh:
if (!($vx != $eN)) {
goto RB;
}
$a5 = "\43\137\137\x6d\x69\x6e\151\157\x72\141\x6e\x67\x65\137\x73\141\155\x6c\137\x63\x75\163\x74\157\x6d\x65\x72\137\144\145\164\141\x69\x6c\163";
$OL = array("\164\x72\x69\163\164\163" => $vx);
UtilitiesSAML::__genDBUpdate($a5, $OL);
RB:
if (!($IJ != $dp)) {
goto CJ;
}
$a5 = "\43\137\137\155\151\156\x69\x6f\x72\141\x6e\x67\145\137\x73\x61\155\x6c\137\143\165\163\164\157\155\x65\162\137\144\x65\x74\x61\151\154\163";
$OL = array("\156\x6f\123\120" => $IJ);
UtilitiesSAML::__genDBUpdate($a5, $OL);
CJ:
$IN = Factory::getApplication();
$IN->enqueueMessage("\123\x75\143\x63\145\163\x73\x66\165\x6c\x6c\171\x20\x66\145\164\143\x68\145\x64\x20\x74\150\x65\40\154\x69\143\x65\x6e\x73\145\56", "\163\165\x63\143\x65\163\x73");
$this->setRedirect("\151\x6e\144\x65\170\x2e\160\150\160\x3f\x6f\x70\x74\x69\157\x6e\75\x63\x6f\x6d\137\155\x69\156\x69\157\x72\141\x6e\x67\145\137\163\141\155\x6c\x26\x74\x61\x62\x3d\141\143\x63\x6f\165\156\x74");
}
function addlicensedetails($TL)
{
$Eb = Mo_saml_Local_Util::encrypt($TL);
$TW = URI::root() . $Eb;
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("\163\x74\141\164\165\x73") . "\x20\75\x20" . $R5->quote(Mo_saml_Local_Util::encrypt("\x74\162\165\x65")), $R5->quoteName("\163\155\x6c\x5f\x6c\x6b") . "\40\75\x20" . $R5->quote(Mo_saml_Local_Util::encrypt($TL)), $R5->quoteName("\x69\x6e\x5f\x63\155\x70") . "\40\75\40" . $R5->quote(Mo_saml_Local_Util::encrypt($TW)), $R5->quoteName("\x6c\151\143\145\x6e\163\x65\x45\170\x70\151\162\x79") . "\40\x3d\x20" . $R5->quote($oJ), $R5->quoteName("\x73\x75\160\160\x6f\162\164\x45\170\160\151\162\x79") . "\40\x3d\x20" . $R5->quote($lv), $R5->quoteName("\154\151\143\x65\x6e\x73\145\x50\x6c\141\156") . "\x20\75\x20" . $R5->quote($FE), $R5->quoteName("\x74\x72\151\163\164\x73") . "\40\75\40" . $R5->quote($VY));
$H1 = array($R5->quoteName("\x69\144") . "\40\x3d\40\61");
$js->update($R5->quoteName("\x23\x5f\x5f\155\151\x6e\151\x6f\162\141\x6e\147\145\x5f\163\x61\x6d\x6c\137\x63\x75\x73\164\157\155\145\x72\x5f\x64\145\x74\x61\151\x6c\163"))->set($Qt)->where($H1);
$R5->setQuery($js);
$R5->execute();
UtilitiesSAML::createAndUpdateUpgardeUrl();
$j1 = "\x59\157\x75\x72\40\x6c\151\143\145\x6e\163\x65\40\150\141\163\x20\x62\x65\x65\156\40\166\145\x72\x69\x66\151\x65\144\56";
$this->setRedirect("\x69\156\144\x65\170\56\x70\150\x70\x3f\157\160\164\x69\157\156\x3d\x63\157\x6d\x5f\x6d\151\x6e\x69\157\x72\x61\156\147\145\x5f\163\141\x6d\154\x26\164\141\142\x3d\x61\x63\x63\157\165\156\164", $j1);
}
function getGroupMapping()
{
$post = Factory::getApplication()->input->post->getArray();
if (isset($post["\163\x61\x6d\x6c\x5f\x69\x64\x70\137\154\151\163\x74"])) {
goto MN;
}
$ZT = "\x69\156\144\145\x78\x2e\160\x68\x70\77\x6f\x70\x74\151\157\156\75\x63\157\x6d\137\x6d\151\156\x69\x6f\x72\141\x6e\x67\x65\137\163\141\155\x6c\46\x74\141\x62\x3d\147\x72\x6f\165\160\x5f\155\x61\160\160\x69\x6e\147";
$this->setRedirect($ZT);
return;
goto w3;
MN:
$ZT = "\151\156\144\x65\x78\x2e\160\150\x70\x3f\x6f\160\164\x69\x6f\156\75\143\157\155\x5f\x6d\151\156\x69\x6f\162\x61\156\x67\145\x5f\x73\x61\x6d\154\46\x74\141\142\75\x67\x72\x6f\165\160\137\155\141\x70\160\x69\156\147\x26\143\165\162\162\x65\x6e\x74\x5f\151\144\160\137\151\144\75" . $post["\163\141\x6d\x6c\137\151\x64\160\137\154\x69\x73\x74"];
$this->setRedirect($ZT);
w3:
}
function saveCustomCertificate()
{
$q6 = UtilitiesSAML::isIDPConfigured();
if (!(count($q6) == 0)) {
goto To;
}
$this->setRedirect("\151\156\x64\x65\170\x2e\x70\x68\x70\x3f\x6f\160\x74\151\x6f\x6e\x3d\x63\x6f\155\x5f\x6d\x69\156\151\x6f\162\141\x6e\x67\145\x5f\163\141\155\x6c\46\x74\141\142\75\x69\144\x70", "\120\x6c\145\141\x73\145\x20\x63\157\x6e\146\x69\147\x75\162\x65\x20\x53\x65\162\166\x69\x63\x65\40\120\162\x6f\166\151\144\145\162\40\123\145\164\x75\x70\40\x74\x61\142\40\x74\x6f\x20\x75\160\x6c\x6f\141\x64\x20\164\150\145\x20\143\145\162\164\x69\x66\x69\x63\x61\x74\145\56", "\x65\162\x72\157\162");
return;
To:
$eR = UtilitiesSAML::getCustomerDetails();
$post = Factory::getApplication()->input->post->getArray();
$Ye = $eR["\163\x74\x61\164\x75\163"];
if (!(Mo_Saml_Local_Util::is_customer_registered() && Mo_Saml_Local_Util::check($Ye) != "\164\x72\165\x65")) {
goto UQ;
}
$this->setRedirect("\x69\x6e\144\x65\170\x2e\x70\x68\160\x3f\157\160\164\151\x6f\156\x3d\143\157\x6d\137\155\x69\x6e\151\x6f\162\x61\x6e\x67\x65\137\163\x61\155\154", "\131\157\165\x20\150\141\x76\145\40\156\157\x74\x20\141\143\164\x69\166\x61\164\145\x64\40\171\x6f\x75\162\40\154\151\143\x65\156\163\x65\40\171\145\x74\56", "\145\162\x72\157\x72");
return;
UQ:
if (isset($post["\x73\x75\142\155\x69\x74"]) && $post["\163\x75\142\155\x69\x74"] == "\125\160\x6c\157\x61\x64") {
goto yU;
}
if (isset($post["\163\x75\142\155\151\164"]) && $post["\163\165\x62\x6d\x69\164"] == "\x52\x65\155\x6f\x76\145") {
goto sU;
}
goto JU;
yU:
$ba = isset($post["\x63\x75\163\164\137\x63\145\162\164\x69\x66\151\143\141\x74\145\137\157\160\x74\x69\157\156"]) ? $post["\x63\x75\163\164\x5f\143\x65\162\x74\151\146\151\x63\141\x74\x65\137\157\x70\164\151\x6f\156"] : '';
if (!($ba == "\155\x69\156\151\x6f\x72\141\x6e\x67\145\137\163\x61\155\x6c\137\163\141\x76\x65\137\x63\165\163\164\157\155\x5f\143\x65\x72\x74\151\146\x69\143\141\164\145")) {
goto aR;
}
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("\x70\165\142\154\151\x63\137\143\145\162\164\151\x66\x69\143\141\x74\x65") . "\40\x3d\40" . $R5->quote(isset($post["\160\165\142\154\151\x63\x5f\x63\145\162\x74\x69\146\x69\x63\x61\164\145"]) ? $post["\160\165\142\154\151\x63\137\143\145\162\164\151\x66\x69\143\x61\164\x65"] : null), $R5->quoteName("\x70\x72\x69\166\x61\x74\x65\x5f\x63\145\162\164\151\x66\x69\143\141\x74\x65") . "\40\x3d\x20" . $R5->quote(isset($post["\x70\162\x69\166\x61\x74\x65\137\143\145\x72\x74\x69\146\151\x63\141\164\145"]) ? $post["\160\x72\x69\x76\x61\164\x65\137\143\145\x72\x74\151\x66\151\x63\x61\164\145"] : null));
$js->update($R5->quoteName("\43\x5f\137\155\151\156\x69\157\162\141\156\x67\x65\137\163\141\155\x6c\x5f\x63\x6f\156\146\x69\x67"))->set($Qt);
$R5->setQuery($js);
$R5->execute();
$YF = UtilitiesSAML::getCustom_CertificatePath("\103\165\163\164\x6f\x6d\120\165\x62\154\x69\143\103\x65\x72\164\151\146\x69\143\x61\x74\x65\x2e\x63\162\164");
$mP = fopen($YF, "\x77");
$vN = $post["\x70\x75\142\x6c\151\x63\137\x63\x65\x72\164\x69\146\x69\x63\141\x74\145"];
fwrite($mP, $vN);
$YF = UtilitiesSAML::getCustom_CertificatePath("\103\x75\163\164\x6f\x6d\120\162\x69\166\x61\164\145\x43\145\162\x74\x69\x66\x69\143\x61\164\x65\x2e\x6b\145\x79");
$mP = fopen($YF, "\167");
$vN = $post["\x70\x72\x69\166\x61\x74\x65\137\143\x65\x72\164\151\146\151\x63\141\164\x65"];
fwrite($mP, $vN);
$KZ = "\x59\x6f\x75\x72\x20\143\145\x72\x74\151\146\x69\143\x61\164\x65\163\x20\x68\141\163\40\142\145\x65\x6e\40\x73\x61\x76\x65\144\40\x73\x75\143\x63\145\163\163\x66\x75\154\x6c\171\56";
$this->setRedirect("\x69\156\x64\145\x78\56\160\x68\160\77\157\x70\x74\x69\157\156\75\143\x6f\x6d\137\x6d\151\x6e\x69\157\162\141\156\x67\145\x5f\x73\141\x6d\x6c\46\164\141\142\x3d\143\x75\163\164\x6f\x6d\x5f\x63\145\x72\164\151\146\151\143\141\x74\145", $KZ);
aR:
goto JU;
sU:
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("\160\x75\142\154\151\x63\x5f\143\145\162\x74\151\x66\x69\x63\141\164\145") . "\40\75\x20" . $R5->quote(''), $R5->quoteName("\x70\162\151\166\141\164\x65\137\x63\x65\162\164\x69\146\151\143\141\164\145") . "\x20\x3d\40" . $R5->quote(''));
$js->update($R5->quoteName("\x23\137\x5f\x6d\151\156\x69\157\162\141\x6e\147\x65\137\x73\141\x6d\x6c\137\143\157\x6e\146\x69\147"))->set($Qt);
$R5->setQuery($js);
$R5->execute();
$KZ = "\131\157\x75\162\40\143\145\162\x74\x69\146\x69\x63\141\164\145\x73\40\x68\141\163\x20\x62\145\145\156\x20\162\x65\155\157\166\145\x64\40\163\165\x63\x63\145\163\x73\x66\x75\x6c\154\171\56";
$this->setRedirect("\151\x6e\x64\145\x78\56\x70\x68\x70\x3f\x6f\x70\164\151\157\x6e\75\143\x6f\155\137\155\x69\x6e\x69\x6f\x72\x61\x6e\x67\x65\137\x73\141\x6d\x6c\46\164\141\142\75\x63\165\x73\x74\157\155\137\x63\145\x72\x74\151\x66\151\143\141\x74\145", $KZ);
JU:
}
function getIdpAttributes()
{
$post = Factory::getApplication()->input->post->getArray();
if (isset($post["\x73\141\x6d\154\137\151\144\160\x5f\x6c\x69\x73\x74"])) {
goto cq;
}
$ZT = "\x69\156\x64\x65\x78\x2e\160\x68\x70\x3f\x6f\160\164\x69\x6f\156\x3d\x63\x6f\x6d\137\155\x69\x6e\x69\x6f\162\141\156\x67\145\137\x73\141\x6d\154\46\164\x61\x62\75\x61\x74\x74\x72\151\x62\165\x74\145\x5f\155\141\x70\x70\x69\x6e\147";
$this->setRedirect($ZT);
return;
goto jn;
cq:
$ZT = "\x69\x6e\144\145\x78\x2e\160\150\160\x3f\x6f\x70\x74\151\157\x6e\x3d\x63\x6f\x6d\x5f\x6d\x69\x6e\151\x6f\x72\x61\156\147\x65\137\163\x61\155\154\46\164\x61\x62\75\141\164\164\x72\151\142\x75\164\x65\x5f\155\141\160\x70\151\156\147\46\x69\x64\160\x5f\x6e\x61\x6d\145\x5f\141\164\x74\x72\75" . $post["\x73\141\x6d\154\137\151\x64\160\x5f\x6c\x69\x73\x74"];
$this->setRedirect($ZT);
jn:
}
function saveDomainMapping()
{
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$js->select("\x43\x4f\x55\x4e\124\50\52\51");
$js->from($R5->quoteName("\43\x5f\x5f\155\151\156\151\x6f\x72\x61\156\x67\x65\137\163\x61\x6d\154\x5f\x63\157\156\146\151\147"));
$R5->setQuery($js);
$U8 = $R5->loadResult();
$post = Factory::getApplication()->input->post->getArray();
if (isset($U8) && $U8 > 0) {
goto I7;
}
$KZ = "\x50\x6c\x65\x61\163\145\x20\x61\144\x64\40\111\x44\120\40\x43\x6f\x6e\x66\151\x67\x75\x72\141\x74\x69\x6f\156\40\x66\x69\x72\163\x74\x2e";
$this->setRedirect("\151\x6e\x64\x65\170\56\160\150\x70\77\x6f\160\x74\x69\x6f\156\75\143\x6f\155\x5f\155\x69\156\x69\x6f\162\141\x6e\147\145\137\163\141\155\154\x26\x74\x61\142\75\x64\157\155\x61\151\x6e\137\155\x61\160\x70\151\156\147", $KZ, "\145\162\x72\x6f\162");
goto Vm;
I7:
$WG = array();
$WG = $post;
$t5 = array();
foreach ($WG as $vL => $eN) {
$QX = $this->array_has_dupes($WG);
if ($QX) {
goto iv;
}
$zm = str_replace("\x73\x61\155\154\x5f\x64\x6f\x6d\x61\x69\x6e\x5f\x6d\x61\x70\160\x69\x6e\147\137", '', $vL);
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("\144\157\x6d\x61\151\156\137\155\x61\x70\x70\151\156\x67") . "\x20\75\x20" . $R5->quote($eN));
$H1 = array($R5->quoteName("\x69\x64\x70\x5f\x6e\x61\x6d\145") . "\40\75\40" . $R5->quote($zm));
$js->update($R5->quoteName("\43\137\137\x6d\x69\156\151\x6f\162\141\x6e\147\x65\137\x73\141\x6d\x6c\x5f\x63\157\x6e\x66\151\147"))->set($Qt)->where($H1);
$R5->setQuery($js);
$R5->execute();
goto kf;
iv:
$KZ = "\x44\165\x70\154\x69\143\141\164\x65\x20\145\156\164\162\171\x20\156\x6f\x74\x20\x61\x6c\x6c\157\x77\145\144\x2e";
$this->setRedirect("\x69\156\x64\x65\170\x2e\160\x68\160\x3f\157\160\x74\x69\157\x6e\x3d\x63\x6f\x6d\x5f\155\x69\x6e\151\157\162\x61\x6e\x67\x65\137\x73\141\x6d\154\46\164\141\142\75\144\157\x6d\141\151\156\137\155\141\160\160\151\156\147", $KZ, "\x65\162\x72\x6f\x72");
return;
kf:
G6:
}
VL:
$KZ = "\x44\x6f\x6d\x61\x69\156\x20\x4d\x61\x70\x70\x69\156\147\x20\x68\x61\x73\x20\x62\145\145\x6e\40\x73\x61\x76\x65\144\x20\x73\x75\143\x63\x65\x73\x73\x66\x75\154\x6c\171\56";
$this->setRedirect("\x69\156\144\x65\170\56\x70\150\x70\77\157\160\x74\x69\x6f\156\75\143\157\155\137\x6d\x69\156\x69\x6f\162\x61\156\x67\145\137\163\141\x6d\x6c\x26\x74\141\142\75\x64\157\x6d\x61\151\x6e\x5f\155\141\x70\160\x69\x6e\147", $KZ);
Vm:
}
function array_has_dupes($Zz)
{
return count($Zz) !== count(array_unique($Zz));
}
function deleteCurrentIdp()
{
$post = Factory::getApplication()->input->post->getArray();
if (!(count($post) == 0)) {
goto Aa;
}
$this->setRedirect("\151\x6e\144\145\x78\x2e\160\x68\x70\x3f\x6f\160\164\151\157\x6e\75\x63\157\155\137\155\151\x6e\151\157\162\x61\x6e\147\145\x5f\x73\x61\155\x6c\46\164\x61\x62\x3d\151\x64\160");
return;
Aa:
if (isset($post["\x69\x64\x70\x5f\151\x64"]) && $post["\x69\x64\160\137\151\x64"] > 0) {
goto R7;
}
$this->setRedirect("\x69\x6e\x64\x65\x78\x2e\160\150\x70\x3f\157\160\164\151\157\156\75\x63\157\155\137\x6d\x69\x6e\151\x6f\x72\141\x6e\147\x65\x5f\163\x61\155\x6c\46\x74\x61\x62\75\x69\x64\x70", "\x49\104\120\40\103\157\x6e\146\x69\147\x75\x72\x61\x74\151\x6f\x6e\40\x63\157\x75\x6c\x64\x20\x6e\x6f\164\40\x62\x65\x20\144\x65\x6c\x65\x74\145\x64\56\x20\x50\x6c\x65\x61\163\x65\x20\x74\162\x79\40\141\x67\x61\151\156\56");
return;
goto kb;
R7:
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$H1 = array($R5->quoteName("\151\x64") . "\40\75\x20" . $R5->quote($post["\151\144\x70\x5f\x69\x64"]));
$js->delete($R5->quoteName("\43\x5f\x5f\x6d\x69\156\x69\157\162\141\x6e\x67\x65\137\163\141\x6d\x6c\x5f\143\157\156\x66\151\147"));
$js->where($H1);
$R5->setQuery($js);
$U8 = $R5->execute();
$js = $R5->getQuery(true);
$H1 = array($R5->quoteName("\151\144\x70\137\151\x64") . "\40\x3d\x20" . $R5->quote($post["\151\x64\160\x5f\x69\144"]));
$js->delete($R5->quoteName("\x23\x5f\x5f\155\151\156\x69\x6f\162\141\156\147\x65\137\163\x61\155\154\x5f\162\x6f\154\145\137\155\x61\x70\160\151\156\147"));
$js->where($H1);
$R5->setQuery($js);
$U8 = $R5->execute();
if ($U8) {
goto V0;
}
$this->setRedirect("\x69\156\x64\x65\170\56\x70\x68\160\77\157\x70\164\151\157\x6e\75\x63\157\155\x5f\x6d\x69\156\151\157\162\141\x6e\147\x65\137\x73\x61\155\x6c\x26\x74\x61\x62\x3d\x69\144\x70", "\x4e\157\40\111\104\120\x20\146\157\165\156\x64\x2e\x20\x50\154\145\x61\163\145\x20\x74\162\171\40\141\x67\x61\151\x6e\x2e");
return;
goto hP;
V0:
$this->setRedirect("\151\x6e\x64\x65\x78\56\160\150\x70\x3f\x6f\x70\164\151\157\x6e\x3d\x63\157\x6d\x5f\x6d\151\156\x69\x6f\x72\141\x6e\147\145\x5f\x73\141\x6d\x6c\x26\x74\141\142\75\151\x64\x70", "\111\104\x50\x20\x43\157\156\146\151\147\165\162\x61\164\x69\157\x6e\40\144\145\154\x65\164\145\x64\x20\163\165\x63\x63\x65\x73\163\x66\165\x6c\x6c\171\56");
return;
hP:
kb:
}
function cancelIdpConfig()
{
$this->setRedirect("\x69\156\x64\x65\x78\56\160\150\160\77\x6f\160\x74\151\157\156\75\x63\x6f\155\x5f\x6d\151\x6e\x69\x6f\x72\141\x6e\147\x65\137\x73\x61\x6d\154\x26\x74\x61\x62\75\x69\144\160");
return;
}
function addNewIDP()
{
$eR = Mo_Saml_Local_Util::getCustomerDetails();
$Ye = $eR["\163\164\x61\x74\165\163"];
if (!Mo_Saml_Local_Util::is_customer_registered() || Mo_Saml_Local_Util::check($Ye) != "\164\162\165\145") {
goto VJ;
}
$Tz = $eR["\x63\x75\163\164\x6f\x6d\145\x72\137\153\145\171"];
$Bu = $eR["\x61\x70\151\137\153\x65\x79"];
$this->checkCL($Tz, $Bu, 1);
goto yf;
VJ:
$this->setRedirect("\151\156\x64\x65\170\x2e\x70\x68\160\x3f\x6f\160\x74\151\x6f\156\75\x63\x6f\155\137\x6d\151\x6e\x69\157\x72\x61\156\147\x65\137\163\x61\155\154", "\x50\x6c\145\141\x73\x65\40\162\145\x67\151\x73\x74\x65\162\40\141\x6e\x64\x20\x61\x63\164\151\166\141\x74\145\x20\171\x6f\x75\x72\x20\x6c\x69\x63\x65\156\163\x65\40\164\157\40\x61\144\x64\x20\111\x44\x50\56", "\145\162\x72\157\162");
return;
yf:
}
function checkCL($Tz, $Bu, $v1)
{
$my = new Mo_saml_Local_Customer();
$ax = json_decode($my->ccl($Tz, $Bu), true);
if (isset($ax["\163\x74\x61\x74\165\x73"]) && $ax["\163\x74\141\x74\x75\163"] == "\123\x55\x43\x43\x45\x53\123") {
goto DR;
}
$this->setRedirect("\x69\156\x64\x65\170\56\x70\x68\160\x3f\157\160\x74\x69\157\156\x3d\x63\157\x6d\x5f\155\x69\x6e\151\157\162\141\156\147\145\137\x73\141\155\154", "\x4c\151\x63\x65\156\x73\x65\40\x6e\157\164\40\146\x6f\x75\156\144\x2e\40\120\154\145\141\163\x65\40\143\x6f\x6e\164\141\143\164\40\141\x74\x3c\141\40\150\x72\145\146\x3d\42\x6d\x61\151\154\164\157\x3a\x6a\x6f\x6f\155\154\x61\163\x75\160\x70\x6f\x72\164\100\170\x65\x63\165\162\151\146\x79\x2e\143\x6f\155\42\76\40\152\x6f\157\x6d\154\141\163\x75\x70\160\157\162\x74\x40\170\145\x63\165\x72\x69\x66\x79\x2e\143\157\x6d\x3c\57\x61\76\40\164\157\x20\165\x70\x67\x72\x61\x64\x65\x20\171\157\x75\162\x20\x6c\151\143\145\x6e\163\x65\x2e", "\145\162\162\157\x72");
return true;
goto oB;
DR:
if ($ax["\x6e\157\117\x66\x53\x50"] === 0 || empty($ax["\156\157\x4f\x66\123\120"])) {
goto qo;
}
$Vz = $ax["\x6e\x6f\x4f\146\123\x50"];
goto CV;
qo:
$Vz = 1;
CV:
$pZ = Mo_Saml_Local_Util::getSAMLCount();
if ($pZ < $Vz) {
goto LE;
}
$this->setRedirect("\151\x6e\144\x65\170\x2e\160\x68\x70\77\x6f\160\x74\x69\x6f\156\x3d\x63\x6f\x6d\137\x6d\151\x6e\x69\157\x72\141\156\147\145\x5f\163\x61\x6d\154\46\164\x61\x62\x3d\x69\144\x70", "\x59\x6f\x75\40\x68\x61\x76\x65\x20\160\165\x72\x63\150\141\163\145\144\x20\x74\150\145\x20\154\151\x63\x65\x6e\163\145\40\146\x6f\x72\40" . $Vz . "\40\x49\x44\x50\163\x2e\40\x50\x6c\x65\141\163\145\40\x63\x6f\156\x74\x61\x63\x74\x20\141\x74\x3c\x61\x20\150\x72\145\x66\75\42\155\141\x69\154\x74\157\x3a\x6a\157\157\155\154\x61\x73\x75\160\160\157\x72\164\x40\x78\x65\x63\165\162\x69\x66\x79\56\x63\157\x6d\x22\76\40\152\x6f\157\x6d\x6c\x61\x73\165\x70\x70\157\x72\164\x40\170\x65\x63\x75\162\x69\146\171\x2e\143\157\155\x3c\57\x61\x3e\x20\x74\x6f\40\x75\160\x67\162\141\x64\x65\x20\x74\150\x65\40\x6c\x69\143\145\156\163\145\40\151\x66\40\171\x6f\165\40\x77\141\x6e\x74\x20\x74\x6f\x20\x61\144\x64\x20\155\x6f\x72\x65\40\x49\x44\x50\x73\x2e", "\145\x72\162\157\x72");
return true;
goto Rp;
LE:
if ($v1) {
goto Y6;
}
return false;
goto mh;
Y6:
$this->setRedirect("\151\156\x64\145\170\56\x70\x68\x70\x3f\157\160\x74\x69\157\156\x3d\143\x6f\155\137\x6d\151\156\151\157\x72\x61\x6e\x67\x65\137\163\x61\155\x6c\46\164\x61\142\x3d\151\x64\x70\x26\151\144\x3d\60", "\120\x6c\145\141\163\x65\40\141\144\144\40\x6e\x65\x77\40\x49\104\x50\x20\x64\145\x74\141\151\154\163\56");
return true;
mh:
Rp:
oB:
}
function insert_new_idp($post)
{
$gI = isset($post["\x73\x61\x6d\154\x5f\170\65\x30\x39\x5f\x63\145\162\x74\x69\x66\151\143\x61\164\145"]) ? $post["\163\141\x6d\154\137\170\x35\x30\x39\137\143\145\x72\164\151\x66\x69\x63\x61\164\x65"] : '';
if (!is_array($gI)) {
goto vl;
}
$MV = implode("\x3b", $gI);
vl:
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$yb = array("\x69\144\x70\137\156\141\155\145", "\151\x64\x70\x5f\145\156\164\151\x74\x79\137\151\x64", "\163\x69\x6e\147\x6c\145\x5f\x73\x69\x67\156\x6f\x6e\137\x73\145\x72\166\151\143\x65\x5f\x75\x72\154", "\143\x65\x72\164\151\146\x69\x63\x61\164\145", "\142\151\x6e\x64\151\x6e\x67", "\163\151\x6e\147\x6c\x65\137\x6c\157\147\x6f\x75\x74\x5f\165\x72\154", "\144\145\x66\141\165\154\164\x5f\x72\145\x6c\141\171\137\x73\164\x61\164\x65", "\155\x6f\x5f\163\141\x6d\154\x5f\163\145\154\x65\x63\164\x5f\163\x69\147\156\137\141\154\x67\157", "\163\x61\155\x6c\137\x72\x65\x71\x75\145\x73\x74\x5f\163\151\x67\x6e", "\156\141\x6d\145\137\x69\x64\137\x66\x6f\162\155\x61\164", "\x6d\x69\156\151\157\162\x61\156\147\x65\x5f\x73\141\x6d\154\x5f\151\144\160\137\x73\x6c\x6f\137\x62\x69\156\x64\151\x6e\147");
$k8 = array($R5->quote($post["\151\x64\160\x5f\156\141\x6d\145"]), $R5->quote($post["\x69\144\160\137\x65\156\164\x69\164\171\137\151\144"]), $R5->quote($post["\x73\x69\x6e\147\154\x65\137\163\151\147\x6e\x6f\156\137\x73\x65\x72\x76\151\143\145\x5f\165\162\x6c"]), $R5->quote(Mo_Saml_Local_Util::sanitize_certificate($MV)), $R5->quote($post["\x6d\x69\x6e\151\157\x72\141\156\147\145\137\163\141\x6d\x6c\x5f\x69\144\160\137\163\x73\x6f\x5f\x62\x69\x6e\144\x69\156\147"]), $R5->quote($post["\x73\151\156\147\x6c\145\137\154\157\147\x6f\x75\164\137\x75\162\x6c"]), $R5->quote($post["\x6d\x6f\x5f\163\141\155\x6c\137\163\x65\x6c\x65\143\164\137\x73\151\147\156\x5f\141\154\147\157"]), $R5->quote($post["\144\x65\146\x61\165\154\x74\137\x72\145\154\141\171\x5f\x73\x74\x61\x74\145"]), $R5->quote($post["\163\141\x6d\x6c\137\162\x65\x71\x75\145\x73\x74\x5f\x73\151\147\x6e"]), $R5->quote($post["\156\x61\x6d\x65\x5f\151\x64\x5f\146\157\162\x6d\141\x74"]), $R5->quote($post["\x6d\151\x6e\151\x6f\162\x61\x6e\147\x65\137\x73\141\155\154\137\x69\144\x70\137\x73\x6c\x6f\x5f\x62\x69\156\144\x69\x6e\147"]));
$js->insert($R5->quoteName("\x23\x5f\x5f\x6d\x69\156\x69\x6f\162\x61\x6e\x67\145\137\x73\x61\x6d\x6c\x5f\143\157\x6e\146\x69\x67"))->columns($R5->quoteName($yb))->values(implode("\54", $k8));
$R5->setQuery($js);
$R5->execute();
}
function update_existing_idp($post)
{
$gI = isset($post["\x73\x61\x6d\x6c\137\x78\x35\60\71\137\x63\145\x72\x74\x69\146\151\143\x61\164\145"]) ? $post["\163\x61\155\154\137\x78\x35\x30\x39\137\143\145\162\164\x69\146\151\x63\x61\x74\x65"] : '';
if (!is_array($gI)) {
goto uN;
}
$MV = implode("\x3b", $gI);
uN:
if (!(count($post) == 0)) {
goto DH;
}
$this->setRedirect("\151\x6e\144\145\170\x2e\x70\x68\x70\x3f\157\x70\164\x69\157\x6e\75\x63\x6f\x6d\x5f\x6d\x69\x6e\x69\x6f\x72\141\x6e\x67\x65\x5f\163\x61\155\x6c\x26\x74\141\x62\75\x69\x64\x70");
return;
DH:
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("\151\144\x70\x5f\x6e\141\155\x65") . "\x20\x3d\40" . $R5->quote(isset($post["\151\144\x70\x5f\156\x61\155\145"]) ? $post["\151\144\x70\x5f\x6e\141\155\x65"] : ''), $R5->quoteName("\151\x64\x70\137\x65\156\164\151\164\171\137\151\x64") . "\x20\x3d\40" . $R5->quote(isset($post["\x69\144\160\137\145\156\164\x69\164\x79\x5f\151\144"]) ? $post["\x69\144\160\137\x65\x6e\x74\151\164\x79\x5f\151\x64"] : ''), $R5->quoteName("\163\x69\x6e\x67\x6c\x65\x5f\x73\x69\147\156\157\x6e\x5f\163\145\162\166\151\143\145\x5f\x75\x72\x6c") . "\40\x3d\x20" . $R5->quote(isset($post["\x73\151\x6e\x67\x6c\x65\x5f\163\151\147\156\x6f\x6e\137\163\145\162\166\x69\143\145\x5f\x75\x72\x6c"]) ? $post["\163\x69\156\x67\154\x65\137\x73\x69\x67\156\157\156\137\163\145\162\x76\151\143\x65\137\165\x72\x6c"] : ''), $R5->quoteName("\x63\x65\x72\164\151\146\151\143\x61\164\x65") . "\40\75\40" . $R5->quote($MV), $R5->quoteName("\142\x69\156\144\151\x6e\x67") . "\40\x3d\40" . $R5->quote(isset($post["\x6d\x69\x6e\x69\x6f\x72\x61\x6e\147\x65\x5f\163\x61\155\x6c\137\151\144\160\x5f\x73\x73\x6f\137\142\x69\x6e\x64\151\x6e\147"]) ? $post["\155\151\156\x69\157\x72\x61\x6e\147\x65\x5f\x73\x61\155\x6c\137\x69\x64\x70\137\x73\x73\157\x5f\142\x69\x6e\144\151\156\147"] : "\x48\x54\124\x50\x2d\x52\145\x64\x69\162\145\x63\x74"), $R5->quoteName("\x73\151\156\x67\154\145\x5f\154\157\x67\157\x75\164\x5f\x75\x72\x6c") . "\x20\x3d\x20" . $R5->quote(isset($post["\x73\151\x6e\147\154\145\137\x6c\157\147\157\165\x74\x5f\x75\162\154"]) ? $post["\163\151\156\x67\x6c\x65\137\154\x6f\x67\157\165\x74\137\x75\x72\154"] : ''), $R5->quoteName("\144\x65\146\x61\165\154\x74\137\x72\145\x6c\141\171\x5f\163\164\141\164\145") . "\x20\x3d\x20" . $R5->quote(isset($post["\144\x65\146\141\165\154\164\137\x72\145\154\x61\171\x5f\163\164\x61\164\145"]) ? $post["\x64\145\x66\141\x75\154\x74\137\162\145\x6c\141\x79\x5f\163\164\x61\164\145"] : ''), $R5->quoteName("\155\x6f\x5f\163\141\x6d\154\x5f\163\x65\x6c\x65\143\x74\x5f\163\x69\x67\x6e\137\x61\154\147\157") . "\40\75\x20" . $R5->quote(isset($post["\155\157\x5f\163\x61\155\x6c\x5f\163\x65\x6c\x65\x63\164\x5f\163\151\147\156\137\x61\154\x67\157"]) ? $post["\x6d\x6f\x5f\x73\x61\x6d\x6c\x5f\163\x65\x6c\145\x63\164\137\x73\151\147\156\137\x61\154\x67\x6f"] : "\x52\123\x41\x5f\x53\110\x41\x32\x35\x36"), $R5->quoteName("\163\141\x6d\x6c\x5f\x72\x65\161\x75\x65\163\164\137\x73\151\x67\156") . "\40\x3d\40" . $R5->quote(isset($post["\x73\141\x6d\154\137\162\x65\161\x75\145\x73\164\x5f\x73\151\x67\156"]) ? $post["\163\x61\155\x6c\137\162\x65\x71\x75\x65\163\164\137\x73\x69\x67\x6e"] : ''), $R5->quoteName("\x6e\x61\x6d\145\137\151\144\137\x66\x6f\162\x6d\x61\x74") . "\40\75\40" . $R5->quote(isset($post["\156\x61\x6d\x65\x5f\151\144\x5f\146\x6f\x72\x6d\141\x74"]) ? $post["\156\x61\x6d\145\137\x69\x64\x5f\146\157\x72\x6d\141\164"] : "\x75\162\x6e\x3a\x6f\x61\163\151\x73\72\156\141\155\145\x73\72\164\143\x3a\x53\101\x4d\114\x3a\x31\56\61\72\x6e\x61\155\145\x69\144\x2d\x66\157\162\x6d\x61\x74\72\165\156\x73\x70\145\x63\151\146\151\145\144"), $R5->quoteName("\155\x69\156\151\x6f\x72\141\156\147\145\137\x73\x61\155\x6c\x5f\x69\144\x70\x5f\163\154\157\x5f\x62\151\156\144\151\156\147") . "\40\75\x20" . $R5->quote(isset($post["\x6d\151\x6e\x69\157\x72\x61\156\147\145\x5f\x73\x61\155\x6c\x5f\151\x64\160\x5f\163\154\157\137\x62\x69\156\x64\151\156\147"]) ? $post["\x6d\151\x6e\151\157\162\x61\156\147\145\137\163\x61\155\154\x5f\x69\144\160\137\163\154\157\x5f\142\151\156\x64\x69\156\x67"] : "\x48\x54\124\120\55\x52\x65\144\x69\162\145\143\164"), $R5->quoteName("\101\x75\x74\x68\x6e\103\157\x6e\164\145\170\x74\103\x6c\x61\x73\163\x52\145\x66") . "\x20\75\40" . $R5->quote(isset($post["\155\157\x5f\x61\165\164\x68\x6e\x5f\x63\157\156\x74\145\x78\137\x63\154\x61\x73\163"]) ? $post["\x6d\x6f\x5f\141\x75\x74\x68\156\137\143\157\x6e\164\145\170\137\143\x6c\x61\x73\x73"] : "\120\141\x73\163\167\157\x72\x64\120\162\157\x74\145\x63\164\x64\124\x72\141\x6e\163\160\x6f\162\x74"));
$H1 = array($R5->quoteName("\x69\x64") . "\40\75\x20" . $R5->quote($post["\x69\144\160\137\x69\144"]));
$js->update($R5->quoteName("\43\137\x5f\155\151\x6e\151\x6f\x72\x61\x6e\147\145\137\163\x61\x6d\154\137\143\157\156\146\x69\x67"))->set($Qt)->where($H1);
$R5->setQuery($js);
$R5->execute();
}
function importexport($mb = false)
{
$q6 = UtilitiesSAML::isIDPConfigured();
if (!(count($q6) == 0)) {
goto jq;
}
$this->setRedirect("\x69\156\144\x65\x78\x2e\x70\150\x70\77\157\x70\164\151\x6f\156\x3d\143\x6f\155\137\155\x69\156\151\157\162\x61\x6e\x67\145\137\x73\x61\155\x6c\x26\x74\x61\x62\x3d\151\144\160", "\120\x6c\x65\141\x73\x65\x20\143\157\156\146\151\x67\165\162\x65\x20\x61\x74\x6c\145\141\x73\164\40\x53\x65\x72\x76\x69\143\145\x20\x50\x72\157\166\151\x64\145\x72\x20\123\x65\x74\165\x70\40\x54\141\x62\x20\x74\157\40\x64\x6f\x77\156\154\157\141\144\x20\x74\x68\145\40\x63\157\156\146\151\147\165\162\x61\x74\151\x6f\156\x2e", "\x65\162\x72\x6f\162");
return;
jq:
require_once JPATH_COMPONENT . DIRECTORY_SEPARATOR . "\150\x65\x6c\160\145\162\x73" . DIRECTORY_SEPARATOR . "\x65\170\160\x6f\x72\164\x2e\160\x68\x70";
define("\x54\x61\x62\x5f\103\x6c\x61\x73\163\x5f\116\x61\x6d\x65\163", serialize(array("\x69\144\x70\x5f\x69\156\x66\x6f" => "\x6d\x6f\x5f\151\144\x70\137\151\156\146\x6f", "\x72\157\x6c\145\137\x6d\141\x70\x70\151\x6e\x67" => "\x6d\157\137\162\157\x6c\145\137\155\x61\160\x70\151\x6e\x67", "\x61\x74\x74\162\151\142\165\x74\x65\137\155\141\x70\x70\x69\156\147" => "\x6d\x6f\x5f\141\x74\x74\162\151\142\165\x74\x65\x5f\x6d\x61\160\160\151\156\147", "\154\x6f\147\151\x6e\x20\163\145\x74\164\x69\x6e\x67\163" => "\155\x6f\137\x6c\157\147\x69\156\x5f\x73\145\x74\x74\151\x6e\x67")));
$NE = unserialize(Tab_Class_Names);
$La = array();
$JW = 0;
P8:
if (!(count($q6) > $JW)) {
goto mZ;
}
$La[$JW] = array("\151\144" => $q6[$JW]->id);
foreach ($NE as $vL => $eN) {
$La[$JW][$vL] = $this->mo_get_configuration_array($eN, $La[$JW]["\x69\x64"]);
Zu:
}
Jk:
P6:
$JW++;
goto P8;
mZ:
if (!$La) {
goto m4;
}
$vz = json_encode($La, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
if (!$mb) {
goto wE;
}
return $vz;
wE:
header("\x43\x6f\x6e\164\145\156\x74\x2d\x44\151\x73\x70\x6f\163\x69\x74\x69\157\156\x3a\40\x61\164\x74\x61\143\x68\x6d\x65\x6e\x74\73\x20\x66\151\154\x65\156\141\155\x65\x3d\x6d\x69\x6e\151\157\x72\141\x6e\x67\x65\55\163\141\155\154\x2d\x73\160\55\143\157\156\146\151\147\x2e\152\163\157\156");
echo $vz;
exit;
m4:
return;
}
function updateOrganizationDetails()
{
$post = Factory::getApplication()->input->post->getArray();
$E3 = isset($post["\x6f\x72\x67\x61\x6e\151\x7a\141\x74\151\x6f\156\137\x6e\x61\155\x65"]) ? $post["\x6f\x72\147\141\156\151\172\x61\x74\x69\157\156\137\x6e\x61\x6d\145"] : '';
$uY = isset($post["\157\x72\x67\141\x6e\x69\x7a\141\x74\151\157\x6e\x5f\144\151\163\x70\154\141\x79\137\156\x61\x6d\145"]) ? $post["\x6f\162\147\141\156\x69\x7a\x61\164\x69\x6f\156\x5f\x64\151\x73\160\x6c\141\x79\137\156\x61\x6d\145"] : '';
$Ip = isset($post["\157\162\x67\141\156\151\x7a\141\x74\151\x6f\156\x5f\x75\162\154"]) ? $post["\157\162\x67\141\x6e\x69\x7a\x61\x74\151\157\156\137\165\x72\154"] : '';
$tq = isset($post["\164\x65\x63\x68\137\x70\x65\x72\137\156\x61\155\x65"]) ? $post["\164\x65\x63\x68\137\160\x65\162\x5f\156\141\155\145"] : '';
$Aw = isset($post["\x74\x65\x63\150\137\145\x6d\141\x69\x6c\x5f\141\x64\144"]) ? $post["\164\145\143\x68\x5f\145\155\141\151\x6c\137\141\144\144"] : '';
$zS = isset($post["\x73\165\x70\160\x6f\162\164\137\160\145\162\137\x6e\141\155\x65"]) ? $post["\163\x75\160\x70\x6f\162\164\137\x70\x65\162\137\156\x61\155\145"] : '';
$d_ = isset($post["\x73\x75\160\160\x6f\x72\x74\x5f\145\x6d\141\x69\x6c\137\x61\x64\144"]) ? $post["\x73\165\x70\160\157\x72\x74\x5f\x65\155\141\151\154\x5f\141\x64\144"] : '';
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$up = array($R5->quoteName("\157\162\147\x61\156\151\172\x61\164\151\x6f\156\137\156\x61\x6d\x65") . "\40\x3d\x20" . $R5->quote($E3), $R5->quoteName("\157\x72\147\x61\x6e\x69\x7a\x61\x74\x69\157\156\137\x64\151\x73\x70\x6c\x61\x79\x5f\156\x61\155\x65") . "\x20\75\40" . $R5->quote($uY), $R5->quoteName("\x6f\162\x67\141\x6e\x69\172\x61\164\x69\x6f\156\137\x75\162\x6c") . "\40\75\x20" . $R5->quote($Ip), $R5->quoteName("\x74\145\143\x68\137\160\145\162\137\x6e\x61\x6d\145") . "\40\75\x20" . $R5->quote($tq), $R5->quoteName("\x74\x65\x63\x68\x5f\x65\x6d\x61\x69\x6c\137\141\x64\144") . "\40\x3d\x20" . $R5->quote($Aw), $R5->quoteName("\163\165\160\160\x6f\162\164\137\x70\x65\162\x5f\x6e\141\x6d\x65") . "\x20\x3d\x20" . $R5->quote($zS), $R5->quoteName("\x73\x75\x70\x70\157\x72\x74\x5f\x65\155\141\151\x6c\137\x61\144\x64") . "\x20\x3d\x20" . $R5->quote($d_));
$H1 = array($R5->quoteName("\151\x64") . "\x20\x3d\40\x31");
$js->update($R5->quoteName("\x23\137\x5f\155\x69\156\151\157\162\x61\x6e\x67\145\x5f\163\141\155\154\137\x63\x75\163\164\x6f\x6d\145\162\x5f\144\x65\164\141\x69\x6c\x73"))->set($up)->where($H1);
$R5->setQuery($js);
$R5->execute();
$this->setRedirect("\x69\156\x64\x65\170\x2e\160\x68\x70\x3f\157\x70\x74\x69\157\x6e\75\143\157\155\137\x6d\151\156\x69\157\x72\x61\156\x67\145\x5f\163\141\155\154\x26\164\x61\142\x3d\144\x65\x73\x63\x72\x69\x70\164\151\157\156", "\x53\x75\x63\x63\145\x73\163\146\x75\x6c\154\171\40\165\160\144\141\x74\x65\x64\40\x6f\x72\x61\147\x61\x6e\151\x7a\141\x74\151\157\156\x20\144\x65\164\x61\151\154\163");
}
function mo_get_configuration_array($nX, $yt)
{
if (!($nX == "\155\x6f\137\151\x64\160\x5f\151\156\x66\157")) {
goto n_;
}
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$js->select(array("\x2a"));
$js->from($R5->quoteName("\x23\137\137\155\151\x6e\x69\157\x72\x61\x6e\147\x65\137\163\141\155\154\x5f\143\157\156\x66\x69\147"));
$js->where($R5->quoteName("\151\x64") . "\40\x3d" . $yt);
$R5->setQuery($js);
$q6 = $R5->loadAssoc();
n_:
if (!($nX == "\155\x6f\x5f\141\x74\x74\162\151\x62\165\164\x65\137\155\x61\160\x70\x69\156\x67")) {
goto TN;
}
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$js->select(array("\52"));
$js->from($R5->quoteName("\43\137\x5f\155\x69\156\x69\x6f\x72\141\156\x67\145\x5f\163\141\155\154\137\143\x6f\x6e\146\151\x67"));
$js->where($R5->quoteName("\151\x64") . "\x20\x3d" . $this->get_idp_id($yt));
$R5->setQuery($js);
$q6 = $R5->loadAssoc();
TN:
if (!($nX == "\155\x6f\137\x72\x6f\x6c\x65\x5f\x6d\141\160\160\x69\x6e\147")) {
goto xl;
}
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$js->select(array("\x2a"));
$js->from($R5->quoteName("\43\137\x5f\155\x69\156\151\x6f\162\141\x6e\147\145\137\163\141\x6d\154\137\x72\x6f\x6c\x65\137\x6d\x61\160\160\x69\x6e\147"));
$js->where($R5->quoteName("\x69\144\160\x5f\x69\x64") . "\x20\75" . $this->get_idp_id($yt));
$R5->setQuery($js);
$q6 = $R5->loadAssoc();
xl:
if (!($nX == "\x6d\157\x5f\x6c\157\147\151\156\x5f\163\x65\x74\x74\x69\156\x67")) {
goto oO;
}
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$js->select(array("\x2a"));
$js->from($R5->quoteName("\x23\137\137\155\x69\x6e\x69\x6f\x72\x61\156\x67\145\137\x73\x61\x6d\154\137\x63\x75\x73\x74\157\x6d\x65\x72\x5f\x64\145\164\141\151\x6c\x73"));
$js->where($R5->quoteName("\151\144") . "\40\75\61");
$R5->setQuery($js);
$q6 = $R5->loadAssoc();
oO:
$nw = call_user_func($nX . "\x3a\72\x67\x65\164\103\x6f\x6e\163\x74\x61\156\164\x73");
$YA = array();
foreach ($nw as $vL => $eN) {
if (empty($q6)) {
goto MF;
}
if (empty($q6[$eN])) {
goto P_;
}
$YA[$vL] = $q6[$eN];
P_:
MF:
IK:
}
Mc:
return $YA;
}
function get_idp_id($Rn)
{
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$js->select(array("\52"));
$js->from($R5->quoteName("\43\137\x5f\155\x69\x6e\x69\157\x72\x61\156\147\145\x5f\163\141\x6d\x6c\x5f\x63\157\x6e\146\x69\x67"));
$js->where($R5->quoteName("\151\x64") . "\x20\75\40" . $Rn);
$R5->setQuery($js);
$q6 = $R5->loadAssoc();
return $q6["\151\x64"];
}
function import()
{
$Hb = @file_get_contents($_FILES["\x63\x6f\156\x66\151\x67\x75\x72\x61\164\151\x6f\156\137\146\151\x6c\145"]["\x74\x6d\x70\137\x6e\x61\155\145"]);
$rQ = json_decode($Hb, true);
if (!empty($rQ)) {
goto qI;
}
$this->setRedirect("\x69\x6e\x64\x65\x78\56\160\150\x70\77\x6f\160\x74\x69\x6f\156\75\x63\x6f\x6d\137\x6d\x69\156\x69\x6f\162\141\156\147\145\137\x73\141\x6d\154\46\x74\141\x62\x3d\151\144\x70", "\120\154\x65\x61\x73\x65\40\x73\145\154\x65\143\x74\57\143\150\157\x6f\163\145\40\x74\150\145\x20\x2e\152\x73\157\156\40\x66\x69\154\x65\x20\164\x6f\x20\151\155\160\x6f\x72\x74\x20\x74\150\145\40\x43\x6f\156\x66\x69\147\x75\x72\x61\x74\x69\157\x6e", "\145\162\162\157\x72");
return;
qI:
$JW = 0;
Cs:
if (!($JW < count($rQ))) {
goto fF;
}
$IQ = $this->mo_update_configuration_array($rQ[$JW]);
Mb:
$JW++;
goto Cs;
fF:
if (!empty($IQ) || $IQ != NULL) {
goto rX;
}
$this->setRedirect("\151\x6e\144\x65\170\x2e\x70\150\x70\77\157\x70\x74\x69\x6f\x6e\75\143\x6f\155\x5f\x6d\x69\x6e\151\157\162\x61\156\147\x65\137\x73\141\x6d\154\46\164\141\x62\x3d\x69\x64\x70", "\123\165\143\145\x73\x73\x66\165\154\154\171\40\125\160\144\141\164\x65\144\40\164\x68\145\x20\x63\157\x6e\x66\151\147\x75\162\x61\x74\151\x6f\156");
goto LK;
rX:
if (!($IQ == false)) {
goto p2;
}
$Vz = UtilitiesSAML::nOfSP();
$this->setRedirect("\x69\x6e\144\145\x78\x2e\x70\150\160\77\157\160\164\151\157\156\x3d\x63\x6f\x6d\137\x6d\x69\156\151\157\162\141\156\x67\145\x5f\x73\x61\155\x6c\x26\x74\141\142\75\151\x64\x70", "\131\x6f\x75\x20\x68\x61\166\x65\40\160\165\x72\143\150\x61\163\x65\x64\40\164\x68\x65\x20\x6c\151\143\x65\156\x73\145\x20\x66\x6f\x72\x20" . $Vz . "\x20\111\x44\x50\x73\56\x20\x50\x6c\x65\x61\163\145\x20\x63\157\x6e\164\141\143\x74\x20\x61\x74\74\141\40\150\x72\x65\146\x3d\42\155\x61\151\154\x74\157\x3a\152\157\157\155\154\141\163\165\x70\160\x6f\x72\x74\100\x78\x65\x63\x75\162\x69\x66\171\x2e\x63\157\155\x22\x3e\40\x6a\157\x6f\x6d\154\x61\163\x75\x70\x70\157\x72\164\x40\x78\145\x63\165\x72\151\x66\171\x2e\x63\x6f\x6d\x3c\57\141\x3e\x20\164\157\x20\165\160\x67\162\x61\144\x65\x20\164\150\145\40\154\151\x63\145\156\x73\x65\x20\151\x66\40\171\157\x75\x20\x77\x61\x6e\x74\40\164\157\40\141\144\x64\40\x6d\x6f\162\145\40\111\104\120\163\x2e", "\145\x72\162\157\x72");
p2:
LK:
}
function mo_update_configuration_array($La)
{
require_once JPATH_COMPONENT . DIRECTORY_SEPARATOR . "\x68\145\x6c\160\x65\162\x73" . DIRECTORY_SEPARATOR . "\x65\170\x70\157\162\x74\56\x70\x68\x70";
define("\x54\x61\142\x5f\103\x6c\x61\163\163\137\116\x61\x6d\x65\x73", serialize(array("\x69\144\x70\x5f\151\156\x66\157" => "\155\157\137\x69\144\x70\137\x69\x6e\146\x6f", "\x72\x6f\154\145\x5f\x6d\141\x70\x70\151\x6e\x67" => "\x6d\157\x5f\x72\157\x6c\x65\x5f\155\141\160\x70\151\x6e\x67", "\141\164\x74\162\151\x62\165\164\145\137\155\141\160\x70\x69\x6e\147" => "\155\x6f\x5f\x61\164\x74\x72\x69\x62\x75\x74\x65\x5f\155\141\160\160\151\x6e\147", "\154\157\x67\x69\156\x20\163\x65\x74\x74\151\x6e\147\x73" => "\x6d\x6f\137\x6c\x6f\147\151\156\137\x73\x65\x74\x74\151\x6e\x67")));
$NE = unserialize(Tab_Class_Names);
$Rn = $La["\151\144"];
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$js->select(array("\52"));
$js->from($R5->quoteName("\43\137\x5f\x6d\x69\x6e\151\157\162\141\156\x67\x65\137\163\141\x6d\154\x5f\x63\x6f\156\x66\151\x67"));
$R5->setQuery($js);
$q6 = $R5->loadAssocList();
$DZ = count($q6);
$mw = UtilitiesSAML::nOfSP();
if (!($mw === 0)) {
goto oZ;
}
$Vz = 1;
oZ:
$SI = mo_idp_info::getConstants();
$PA = false;
$JW = 0;
cX:
if (!($JW < count($q6))) {
goto vq;
}
$PA = true;
foreach ($SI as $vL => $eN) {
if (!($q6[$JW][$vL] != $La["\x69\144\160\137\x69\x6e\x66\157"][$vL])) {
goto H9;
}
$PA = false;
H9:
O2:
}
Xe:
if (!$PA) {
goto UV;
}
return;
UV:
h_:
$JW++;
goto cX;
vq:
if (!(count($q6) > $mw)) {
goto Mv;
}
return false;
Mv:
foreach ($NE as $Cv => $nX) {
$Qt = array();
$k8 = array();
$yb = array();
$g4 = 0;
$Rn = Mo_saml_Local_Util::get_last_idp_id();
foreach ($La[$Cv] as $vL => $eN) {
$g4 = 1;
if (!($vL == "\151\144\160\137\151\144" && $eN != $Rn)) {
goto XC;
}
$eN = $Rn;
XC:
$Qt[] = $R5->quoteName($vL) . "\40\x3d\40" . $R5->quote($eN);
$k8[] = $R5->quote($eN);
array_push($yb, $vL);
Dj:
}
lY:
if (!($nX == "\x6d\157\x5f\x69\144\160\137\x69\156\x66\157" && $g4 == 1)) {
goto pJ;
}
$js = $R5->getQuery(true);
$js->insert($R5->quoteName("\43\137\137\x6d\151\x6e\x69\157\162\141\x6e\x67\x65\x5f\163\141\155\x6c\x5f\143\157\156\x66\151\147"))->columns($R5->quoteName($yb))->values(implode("\54", $k8));
$R5->setQuery($js);
$U8 = $R5->execute();
pJ:
if (!($nX == "\155\x6f\x5f\x61\164\x74\x72\151\142\x75\164\145\137\155\x61\160\160\151\156\147" && $g4 == 1)) {
goto K3;
}
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$L7 = array($R5->quoteName("\151\x64") . "\x20\x3d\40" . $Rn);
$js->update($R5->quoteName("\43\x5f\x5f\x6d\x69\x6e\x69\x6f\x72\141\156\x67\145\x5f\163\x61\x6d\154\x5f\143\x6f\x6e\146\x69\x67"))->set($Qt)->where($L7);
$R5->setQuery($js);
$U8 = $R5->execute();
K3:
if (!($nX == "\155\x6f\137\162\x6f\154\145\137\x6d\141\x70\160\x69\156\x67" && $g4 == 1)) {
goto bE;
}
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$js->insert($R5->quoteName("\x23\x5f\x5f\155\151\x6e\151\x6f\x72\141\156\x67\145\x5f\163\x61\x6d\x6c\137\x72\157\154\145\137\x6d\141\x70\x70\151\x6e\x67"))->columns($R5->quoteName($yb))->values(implode("\54", $k8));
$R5->setQuery($js);
$U8 = $R5->execute();
bE:
if (!($nX == "\x6d\157\137\x6c\x6f\x67\x69\x6e\x5f\163\x65\164\164\151\x6e\x67" && $g4 == 1)) {
goto QY;
}
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$js->update($R5->quoteName("\x23\137\137\155\x69\156\151\x6f\162\141\156\x67\145\x5f\x73\x61\x6d\154\x5f\x63\x75\x73\x74\157\155\145\x72\x5f\x64\x65\164\x61\151\x6c\x73"))->set($Qt)->where($R5->quoteName("\x69\x64") . "\x20\x3d\40\x31");
$R5->setQuery($js);
$U8 = $R5->execute();
QY:
PI:
}
gb:
}
function handle_upload_metadata()
{
$eR = Mo_Saml_Local_Util::getCustomerDetails();
$Ye = isset($eR["\x73\x74\141\x74\x75\163"]) ? $eR["\163\x74\141\x74\165\163"] : '';
if (!(Mo_Saml_Local_Util::is_customer_registered() && Mo_Saml_Local_Util::check($Ye) != "\164\162\x75\x65")) {
goto eF;
}
$this->setRedirect("\151\x6e\x64\x65\170\x2e\160\150\x70\77\157\x70\x74\151\x6f\156\75\x63\x6f\155\x5f\x6d\x69\x6e\151\x6f\162\x61\156\x67\145\137\x73\x61\x6d\154\x26\x74\141\x62\75\151\144\160", "\x59\157\165\40\150\141\166\x65\x20\x6e\x6f\x74\x20\x61\143\x74\x69\166\x61\x74\145\x64\40\171\x6f\x75\x72\40\154\x69\x63\145\x6e\x73\145\40\x79\x65\x74\x2e", "\x65\x72\162\x6f\162");
return;
eF:
require_once JPATH_COMPONENT . DIRECTORY_SEPARATOR . "\x68\145\154\x70\145\162\x73" . DIRECTORY_SEPARATOR . "\x4d\x65\x74\x61\x64\141\x74\141\x52\x65\141\x64\145\x72\56\x70\x68\160";
$post = Factory::getApplication()->input->post->getArray();
$mP = $_FILES;
if (!(isset($mP["\x6d\145\164\141\x64\x61\x74\141\x5f\x66\151\154\145"]) || isset($post["\155\x65\x74\141\x64\x61\x74\x61\137\x75\x72\x6c"]))) {
goto iZ;
}
if (!empty($mP["\x6d\145\x74\x61\x64\141\x74\x61\x5f\x66\x69\154\145"]["\x74\155\160\x5f\x6e\141\155\x65"])) {
goto zZ;
}
$ZT = filter_var($post["\155\145\x74\141\x64\141\x74\141\137\x75\x72\x6c"], FILTER_SANITIZE_URL);
$Sx = array("\163\x73\154" => array("\166\x65\162\x69\x66\x79\137\160\145\x65\x72" => false, "\166\x65\x72\151\146\171\x5f\160\145\145\x72\137\x6e\x61\155\145" => false));
if (empty($ZT)) {
goto Vs;
}
$mP = file_get_contents($ZT, false, stream_context_create($Sx));
goto R8;
Vs:
$this->setRedirect("\151\156\144\x65\x78\x2e\x70\150\x70\x3f\157\160\x74\151\157\156\x3d\x63\x6f\155\x5f\155\x69\156\151\157\x72\x61\x6e\x67\145\x5f\163\141\155\x6c\x26\x74\141\142\x3d\x69\144\160", "\116\x6f\40\115\145\x74\141\x64\141\164\x61\40\106\x69\x6c\145\x2f\125\122\x4c\40\120\162\157\x76\x69\x64\x65\x64\x2e", "\145\x72\x72\x6f\162");
return;
R8:
goto va;
zZ:
$mP = @file_get_contents($mP["\x6d\145\164\141\x64\141\x74\x61\137\x66\x69\x6c\x65"]["\x74\x6d\160\x5f\x6e\141\x6d\x65"]);
va:
$this->upload_metadata($mP);
iZ:
}
function upload_metadata($mP)
{
$qJ = 0;
$post = Factory::getApplication()->input->post->getArray();
if (!(count($post) == 0)) {
goto Is;
}
$this->setRedirect("\x69\x6e\144\x65\x78\x2e\160\150\x70\77\x6f\x70\x74\x69\157\x6e\75\143\x6f\155\x5f\x6d\151\x6e\x69\x6f\x72\141\156\147\145\x5f\x73\x61\x6d\x6c\x26\x74\141\142\75\151\144\160");
return;
Is:
$B0 = new DOMDocument();
$B0->loadXML($mP);
restore_error_handler();
$oN = $B0->firstChild;
if (!empty($oN)) {
goto X9;
}
$this->setRedirect("\x69\156\x64\x65\x78\x2e\x70\150\160\77\x6f\x70\164\x69\157\156\x3d\143\x6f\155\x5f\155\x69\156\x69\x6f\x72\x61\x6e\147\x65\137\x73\x61\x6d\x6c\x26\x74\141\142\x3d\x69\x64\160", "\x50\x6c\145\141\163\145\40\x70\x72\157\x76\151\144\x65\40\x76\141\154\x69\144\40\x6d\x65\x74\x61\x64\141\164\x61\x2e", "\145\162\x72\157\162");
return;
goto qy;
X9:
$c0 = new IDPMetadataReader($B0);
$tp = $c0->getIdentityProviders();
if (!empty($tp)) {
goto O1;
}
$this->setRedirect("\151\x6e\x64\145\170\x2e\160\150\160\77\x6f\x70\164\x69\x6f\156\x3d\x63\157\155\137\x6d\x69\x6e\x69\x6f\x72\x61\x6e\x67\x65\137\163\x61\x6d\154\x26\164\141\x62\75\151\144\160", "\x50\154\x65\141\163\x65\x20\x70\x72\157\x76\151\x64\x65\40\x76\x61\154\151\x64\x20\x6d\145\x74\x61\x64\x61\164\141\56", "\x65\162\162\x6f\162");
return;
O1:
foreach ($tp as $vL => $PY) {
$zm = isset($post["\151\x64\160\x5f\156\x61\x6d\145"]) ? $post["\x69\144\160\x5f\156\x61\155\x65"] : '';
$k4 = $PY->getLoginURL("\110\x54\124\x50\55\x52\145\x64\x69\x72\145\143\x74");
$LV = $PY->getEntityID();
$MV = $PY->getSigningCertificate();
$MV = implode("\73", $MV);
$pa = $PY->getLogoutUrl("\x48\x54\124\x50\55\x52\x65\x64\151\162\145\143\x74");
$uT = '';
$XK = "\122\123\x41\137\123\110\x41\x32\x35\66";
$Sp = '';
$r2 = "\165\162\156\72\157\x61\x73\151\x73\x3a\156\141\155\145\163\72\164\143\72\123\x41\115\114\x3a\61\x2e\x31\72\156\141\155\x65\x69\144\55\x66\157\162\155\x61\x74\72\165\x6e\x73\160\145\143\151\146\x69\x65\144";
$d1 = "\110\124\124\120\55\x52\x65\x64\151\x72\x65\x63\164";
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$k8 = array($R5->quote($zm), $R5->quote(!empty($LV) ? $LV : ''), $R5->quote(!empty($k4) ? $k4 : ''), $R5->quote("\110\x54\x54\120\55\x52\x65\144\151\162\145\143\164"), $R5->quote(!empty($MV) ? $MV : ''), $R5->quote(!empty($pa) ? $pa : ''), $R5->quote($uT), $R5->quote($XK), $R5->quote(isset($post["\163\x79\156\x63\x5f\x6d\x65\x74\x61\x64\141\164\x61"]) ? $post["\163\171\x6e\x63\x5f\x6d\x65\164\141\144\141\164\x61"] : "\x6f\x66\x66"), $R5->quote(isset($post["\155\145\164\141\x64\141\164\141\x5f\165\162\x6c"]) ? $post["\155\145\164\x61\144\x61\164\141\137\x75\162\x6c"] : ''), $R5->quote(isset($post["\163\x79\x6e\x63\137\x69\x6e\164\145\162\x76\141\154"]) ? $post["\163\x79\x6e\x63\137\x69\x6e\164\x65\x72\x76\x61\x6c"] : ''), $R5->quote($qJ), $R5->quote($Sp), $R5->quote($r2), $R5->quote($d1));
$R5->setQuery("\x53\105\x4c\105\103\124\40\52\x20\106\x52\x4f\x4d\x20\x23\x5f\x5f\x6d\151\x6e\x69\x6f\x72\141\156\147\145\x5f\x73\x61\x6d\154\x5f\143\x6f\x6e\x66\x69\x67");
$c9 = $R5->loadObjectList();
$ad = array();
foreach ($c9 as $pS => $JT) {
$ad[] = $JT->idp_entity_id;
k9:
}
xJ:
$Qt = array($R5->quoteName("\151\x64\160\x5f\x6e\x61\155\x65") . "\75" . $R5->quote($zm), $R5->quoteName("\x69\144\160\137\x65\156\x74\x69\x74\171\x5f\151\144") . "\x20\75\x20" . $R5->quote(!empty($LV) ? $LV : ''), $R5->quoteName("\x73\x69\156\147\x6c\x65\x5f\x73\151\x67\156\x6f\x6e\137\x73\145\162\166\151\x63\145\137\x75\x72\x6c") . "\40\75\40" . $R5->quote(!empty($k4) ? $k4 : ''), $R5->quoteName("\x62\151\156\x64\x69\x6e\147") . "\40\75\x20" . $R5->quote("\110\x54\x54\x50\x2d\x52\x65\x64\151\x72\x65\143\164"), $R5->quoteName("\x63\x65\x72\164\x69\146\151\143\x61\164\145") . "\x20\75\x20" . $R5->quote(!empty($MV) ? $MV : ''), $R5->quoteName("\x73\151\156\147\x6c\145\x5f\154\157\147\x6f\x75\164\x5f\x75\162\154") . "\75" . $R5->quote(!empty($pa) ? $pa : ''), $R5->quoteName("\x64\x65\146\141\165\154\x74\x5f\162\x65\154\x61\171\x5f\x73\164\x61\x74\145") . "\75" . $R5->quote(''), $R5->quoteName("\155\x6f\x5f\x73\x61\x6d\x6c\x5f\x73\x65\154\145\143\x74\137\x73\151\x67\156\x5f\x61\x6c\147\157") . "\75" . $R5->quote($XK), $R5->quoteName("\141\165\x74\157\137\x73\171\x6e\143\137\x65\156\x61\x62\x6c\x65") . "\x20\75\x20" . $R5->quote(isset($post["\x73\x79\x6e\143\137\x6d\145\x74\x61\x64\x61\164\141"]) ? $post["\163\x79\x6e\x63\137\155\145\164\x61\x64\141\164\141"] : "\157\146\x66"), $R5->quoteName("\x6d\145\164\141\x64\x61\x74\x61\x5f\165\162\x6c") . "\x20\x3d\x20" . $R5->quote(isset($post["\x6d\145\x74\141\144\141\164\141\x5f\x75\162\154"]) ? $post["\x6d\145\164\141\144\x61\164\x61\137\165\162\154"] : ''), $R5->quoteName("\155\144\x61\164\141\x5f\x73\171\x6e\x63\137\151\156\x74\x65\162\166\x61\154") . "\x20\x3d\x20" . $R5->quote(isset($post["\163\171\x6e\x63\137\151\156\164\145\x72\166\x61\x6c"]) ? $post["\163\x79\x6e\x63\x5f\x69\x6e\x74\145\162\x76\141\154"] : ''), $R5->quoteName("\155\x65\164\141\144\141\164\141\137\143\x68\145\143\x6b\x5f\164\151\x6d\x65\163\164\141\x6d\160") . "\40\75\40" . $R5->quote($qJ), $R5->quoteName("\163\x61\x6d\x6c\137\x72\145\161\165\x65\163\x74\137\163\151\147\x6e") . "\x20\75\40" . $R5->quote($Sp), $R5->quoteName("\156\141\155\x65\137\151\x64\x5f\x66\x6f\x72\x6d\x61\164") . "\40\x3d\x20" . $R5->quote($r2), $R5->quoteName("\x6d\x69\156\x69\x6f\162\x61\156\147\x65\x5f\163\141\x6d\x6c\x5f\151\x64\x70\137\163\x6c\x6f\137\142\x69\x6e\144\151\156\x67") . "\40\x3d\x20" . $R5->quote($d1));
$Rn = $post["\151\x64\x70\137\x69\144"];
$H1 = array($R5->quoteName("\151\144") . "\40\75" . $Rn);
if ($Rn == 0) {
goto RW;
}
$js->update($R5->quoteName("\x23\x5f\x5f\155\x69\x6e\x69\157\162\x61\156\x67\x65\x5f\x73\141\155\154\137\143\157\156\x66\x69\147"))->set($Qt)->where($H1);
goto kH;
RW:
$yb = array("\151\x64\160\137\156\141\155\x65", "\x69\x64\160\x5f\x65\156\x74\151\x74\171\x5f\x69\x64", "\163\x69\156\x67\154\145\137\x73\151\x67\x6e\157\x6e\137\163\145\162\166\151\x63\145\x5f\165\x72\x6c", "\x62\x69\156\x64\x69\156\147", "\143\145\162\x74\151\x66\151\143\x61\x74\x65", "\163\x69\156\x67\154\145\x5f\154\x6f\x67\x6f\x75\164\137\165\162\x6c", "\144\x65\x66\x61\x75\154\x74\137\x72\x65\154\x61\x79\x5f\163\164\141\x74\145", "\155\157\x5f\x73\141\x6d\154\x5f\163\145\x6c\x65\143\164\x5f\163\151\147\156\x5f\141\154\x67\157", "\x61\x75\x74\157\x5f\163\x79\156\143\137\145\156\x61\142\154\145", "\x6d\x65\164\141\x64\141\x74\x61\137\x75\x72\x6c", "\155\x64\x61\x74\x61\x5f\163\171\x6e\x63\137\151\156\164\x65\162\166\x61\154", "\155\x65\164\141\x64\x61\164\141\x5f\x63\150\x65\143\153\137\164\x69\155\x65\x73\164\141\x6d\x70", "\163\141\x6d\x6c\x5f\162\145\161\x75\x65\163\164\137\163\151\x67\x6e", "\x6e\x61\155\145\137\151\x64\137\x66\157\x72\155\x61\164", "\155\x69\x6e\x69\157\x72\x61\156\147\x65\137\x73\x61\155\x6c\x5f\151\144\x70\137\x73\x6c\157\x5f\142\x69\156\x64\151\x6e\x67");
$js->insert($R5->quoteName("\43\x5f\137\x6d\x69\x6e\151\x6f\x72\141\x6e\147\x65\137\163\x61\x6d\154\137\143\x6f\156\146\151\x67"))->columns($R5->quoteName($yb))->values(implode("\x2c", $k8));
kH:
$R5->setQuery($js);
$R5->execute();
goto lu;
TP:
}
lu:
$this->setRedirect("\151\156\x64\x65\170\56\x70\x68\x70\x3f\x6f\160\164\x69\x6f\156\x3d\x63\157\x6d\x5f\x6d\x69\x6e\x69\x6f\x72\x61\156\x67\x65\x5f\163\141\155\x6c\46\164\141\142\x3d\151\144\x70", "\x49\144\145\x6e\x74\x69\x74\171\40\x50\x72\x6f\166\151\x64\145\x72\40\x64\145\x74\x61\x69\154\163\40\x73\x61\166\x65\x64\x20\163\x75\143\x63\145\x73\163\x66\165\154\154\171\x2e");
return;
qy:
}
function saveConfig()
{
$post = Factory::getApplication()->input->post->getArray();
if (!(count($post) == 0)) {
goto Pb;
}
$this->setRedirect("\x69\x6e\144\145\x78\56\160\x68\x70\77\x6f\160\164\x69\x6f\x6e\75\x63\157\x6d\x5f\x6d\151\x6e\151\x6f\162\141\156\x67\145\137\163\141\155\x6c\x26\164\141\142\x3d\151\144\x70");
return;
Pb:
$eR = Mo_Saml_Local_Util::getCustomerDetails();
$Ye = $eR["\x73\x74\x61\x74\165\x73"];
if (!(Mo_Saml_Local_Util::is_customer_registered() && Mo_Saml_Local_Util::check($Ye) != "\x74\162\x75\145")) {
goto rv;
}
$this->setRedirect("\x69\x6e\144\145\x78\56\x70\150\160\77\x6f\160\x74\x69\157\156\x3d\x63\157\x6d\x5f\155\x69\156\x69\x6f\162\x61\x6e\x67\x65\x5f\x73\x61\155\154\46\x74\141\x62\75\x69\144\160", "\x59\x6f\165\x20\150\x61\x76\145\x20\x6e\x6f\164\x20\x61\x63\164\x69\166\x61\x74\x65\x64\x20\x79\157\x75\162\40\154\x69\143\x65\x6e\x73\x65\x20\x79\x65\164\56", "\145\x72\x72\157\162");
return;
rv:
$C1 = isset($post["\157\160\x74\151\157\x6e\61"]) ? $post["\x6f\160\x74\x69\x6f\156\x31"] : null;
if ($C1 == "\155\x6f\x5f\163\141\155\x6c\137\x73\141\166\145\137\x63\157\156\146\151\147") {
goto hR;
}
if ($C1 == "\x6d\157\x5f\x73\141\155\154\137\163\141\x76\145\137\141\x74\164\162\151\142\x75\x74\x65") {
goto nD;
}
if (!($C1 == "\155\x6f\x5f\x73\141\155\x6c\137\163\141\166\x65\137\x63\x75\163\x74\157\155\x5f\163\x70\137\143\157\156\146\151\147")) {
goto ne;
}
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("\163\160\137\142\x61\163\145\137\x75\162\x6c") . "\x20\x3d\40" . $R5->quote(isset($post["\163\x70\137\x62\x61\163\x65\137\165\x72\x6c"]) ? $post["\x73\x70\x5f\x62\x61\x73\x65\137\165\x72\x6c"] : ''), $R5->quoteName("\163\x70\x5f\x65\156\164\151\x74\x79\137\151\144") . "\x20\x3d\40" . $R5->quote(isset($post["\x73\x70\x5f\145\156\164\x69\x74\x79\137\151\144"]) ? $post["\x73\160\137\x65\156\x74\151\164\171\137\151\144"] : ''));
$H1 = array($R5->quoteName("\151\144") . "\40\75\40\61");
$js->update($R5->quoteName("\43\x5f\x5f\155\151\x6e\x69\x6f\x72\x61\156\147\x65\137\x73\x61\x6d\x6c\x5f\x63\165\163\164\157\x6d\145\162\x5f\144\145\x74\x61\x69\x6c\163"))->set($Qt)->where($H1);
$R5->setQuery($js);
$R5->execute();
$KZ = "\131\x6f\x75\162\x20\x63\x6f\x6e\146\151\147\x75\162\x61\164\x69\157\156\40\x68\141\163\x20\142\145\x65\x6e\x20\x73\141\166\145\x64\x20\x73\165\x63\x63\x65\163\x73\x66\165\x6c\x6c\x79\56";
$this->setRedirect("\x69\x6e\x64\x65\x78\x2e\x70\150\160\x3f\157\x70\x74\151\157\156\75\143\x6f\x6d\x5f\155\151\x6e\151\157\162\141\x6e\147\145\137\163\x61\x6d\x6c\46\164\141\x62\x3d\144\145\x73\x63\x72\x69\160\164\151\157\x6e", $KZ);
ne:
goto z5;
nD:
if (isset($post["\163\x61\155\x6c\137\x69\144\x70\137\x6e\141\155\145"]) && !empty($post["\163\141\155\x6c\137\x69\144\160\x5f\x6e\141\x6d\x65"])) {
goto B6;
}
$KZ = "\x50\x6c\x65\141\163\x65\x20\x73\145\x6c\x65\x63\164\40\x74\x68\x65\x20\111\x44\120\40\146\162\157\x6d\40\164\x68\x65\x20\x64\162\157\x70\144\157\x77\x6e\x20\141\x6e\x64\x20\143\154\151\143\153\x20\157\156\40\x73\145\154\x65\143\x74\x20\142\x75\164\x74\x6f\x6e\40\164\157\x20\163\x61\166\x65\40\164\150\145\40\143\x6f\156\x66\151\147\x75\162\141\x74\151\157\x6e\x2e";
$ZT = "\151\x6e\144\x65\x78\x2e\x70\x68\x70\77\x6f\160\x74\x69\157\156\75\x63\x6f\155\137\x6d\x69\156\151\157\x72\141\x6e\147\x65\x5f\x73\141\155\154\x26\x74\x61\x62\x3d\x61\x74\x74\x72\x69\142\x75\164\x65\137\x6d\141\160\x70\x69\156\147";
$this->setRedirect($ZT, $KZ, "\145\162\x72\x6f\162");
goto B0;
B6:
$Gp = array_key_exists("\x75\163\x65\162\137\160\x72\157\x66\151\154\145\x5f\x61\x74\x74\162\x5f\156\141\x6d\145", $post) ? array_unique($post["\x75\x73\145\x72\x5f\x70\x72\x6f\146\x69\x6c\x65\x5f\141\x74\x74\162\x5f\x6e\141\x6d\145"]) : array();
$j6 = array_key_exists("\165\x73\x65\162\137\x70\x72\x6f\146\151\x6c\145\x5f\141\x74\164\x72\137\166\x61\x6c\x75\145", $post) ? $post["\x75\163\145\x72\x5f\x70\x72\157\x66\151\154\145\x5f\x61\164\164\x72\137\166\141\154\x75\145"] : array();
$IC = array();
foreach ($Gp as $vL => $eN) {
$M1 = trim($eN);
$M1 = preg_replace("\57\134\x73\53\57", '', $M1);
if (empty($M1)) {
goto ME;
}
$ZA = $j6[$vL];
$Ak = trim($ZA);
if (empty($Ak)) {
goto Uy;
}
$Dv = array();
$Dv["\141\164\164\162\137\x6e\x61\155\x65"] = $M1;
$Dv["\141\164\x74\162\x5f\x76\141\154\x75\x65"] = $Ak;
array_push($IC, $Dv);
Uy:
ME:
us:
}
kw:
$IC = json_encode($IC);
$jQ = array_key_exists("\165\163\145\x72\x5f\146\x69\x65\x6c\x64\x5f\141\164\x74\x72\137\x6e\141\x6d\x65", $post) ? array_unique($post["\165\x73\145\162\137\146\x69\x65\154\144\137\141\x74\164\162\x5f\156\x61\155\145"]) : '';
$OT = array_key_exists("\165\x73\x65\x72\137\x66\x69\145\154\x64\x5f\x61\164\x74\x72\x5f\166\x61\x6c\165\145", $post) ? $post["\165\x73\145\162\137\x66\x69\145\x6c\144\x5f\141\x74\164\162\x5f\166\141\154\x75\145"] : '';
$Uv = array();
if (!($jQ != '' && $OT != '')) {
goto nh;
}
foreach ($jQ as $vL => $eN) {
$By = trim($eN);
if (empty($By)) {
goto xQ;
}
$qC = $OT[$vL];
$WT = trim($qC);
if (empty($WT)) {
goto Uw;
}
$cO = array();
$cO["\141\164\164\x72\x5f\x6e\141\155\145"] = $By;
$cO["\141\164\x74\x72\x5f\166\x61\154\165\145"] = $WT;
array_push($Uv, $cO);
Uw:
xQ:
L6:
}
GV:
nh:
$Uv = json_encode($Uv);
$GG = array_key_exists("\x75\163\145\162\137\143\x6f\x6e\x74\x61\143\164\x5f\141\164\164\x72\x5f\156\141\155\x65", $post) ? array_unique($post["\x75\163\x65\x72\x5f\x63\x6f\x6e\164\x61\x63\164\137\x61\x74\164\162\x5f\156\141\155\x65"]) : '';
$xb = array_key_exists("\165\163\x65\162\x5f\x63\157\x6e\x74\141\x63\164\137\x61\164\164\162\x5f\166\141\154\x75\x65", $post) ? $post["\x75\163\145\x72\x5f\143\x6f\156\x74\141\x63\x74\x5f\x61\164\x74\x72\137\x76\141\x6c\x75\145"] : '';
$oD = array();
if (!($GG != '' && $xb != '')) {
goto y1;
}
foreach ($GG as $vL => $eN) {
$By = trim($eN);
if (empty($By)) {
goto MM;
}
$qC = trim($xb[$vL]);
if (empty($qC)) {
goto Xl;
}
$cO = array();
$cO["\141\164\x74\x72\x5f\x6e\x61\x6d\145"] = $By;
$cO["\x61\164\164\x72\137\166\x61\154\165\x65"] = $qC;
array_push($oD, $cO);
Xl:
MM:
YO:
}
GD:
y1:
$oD = json_encode($oD);
$q5 = array_key_exists("\x75\x73\145\162\137\143\x77\x5f\141\x74\x74\162\137\156\141\155\x65", $post) ? array_unique($post["\x75\x73\145\x72\137\x63\x77\x5f\141\x74\x74\162\137\156\141\x6d\145"]) : '';
$nq = array_key_exists("\165\163\145\162\x5f\x63\x77\x5f\141\x74\x74\162\x5f\x76\141\154\x75\x65", $post) ? $post["\165\x73\x65\162\x5f\143\x77\137\141\x74\164\162\x5f\166\x61\154\x75\x65"] : '';
$ng = array();
if (!($q5 != '' && $nq != '')) {
goto cV;
}
foreach ($q5 as $vL => $eN) {
$By = trim($eN);
if (empty($By)) {
goto Zd;
}
$qC = trim($nq[$vL]);
if (empty($qC)) {
goto tU;
}
$cO = array();
$cO["\141\x74\164\x72\137\x6e\141\155\x65"] = $By;
$cO["\141\164\x74\x72\137\166\x61\x6c\x75\145"] = $qC;
array_push($ng, $cO);
tU:
Zd:
yF:
}
ZR:
cV:
$ng = json_encode($ng);
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("\x75\163\145\x72\x6e\x61\x6d\x65") . "\40\75\x20" . $R5->quote(isset($post["\x75\x73\145\x72\156\141\155\x65"]) ? trim($post["\x75\163\x65\162\x6e\141\155\x65"]) : ''), $R5->quoteName("\145\155\141\x69\154") . "\40\x3d\40" . $R5->quote(isset($post["\145\155\x61\x69\154"]) ? trim($post["\145\x6d\141\151\154"]) : ''), $R5->quoteName("\156\141\155\x65") . "\x20\75\40" . $R5->quote(isset($post["\156\x61\x6d\145"]) ? trim($post["\156\141\x6d\145"]) : ''), $R5->quoteName("\146\151\162\163\164\x5f\156\x61\155\145") . "\40\75\40" . $R5->quote(isset($post["\146\x69\162\x73\164\x5f\x6e\x61\155\145"]) ? trim($post["\146\151\x72\163\164\x5f\x6e\141\155\x65"]) : ''), $R5->quoteName("\154\x61\x73\164\x5f\156\x61\155\x65") . "\40\75\x20" . $R5->quote(isset($post["\x6c\x61\163\164\x5f\x6e\141\155\145"]) ? trim($post["\x6c\141\x73\x74\x5f\156\141\x6d\x65"]) : ''), $R5->quoteName("\x64\151\x73\x61\142\x6c\x65\137\165\x70\144\141\x74\145\137\x65\x78\x69\x73\x74\151\156\x67\x5f\x63\165\163\164\x6f\x6d\145\x72\137\x61\x74\164\x72\151\x62\165\164\145\163") . "\x20\75\40" . $R5->quote(isset($post["\144\151\163\x61\142\x6c\x65\137\165\x70\144\x61\164\145\137\145\x78\x69\163\x74\x69\156\x67\137\143\x75\x73\164\x6f\155\145\162\137\x61\164\x74\162\x69\142\165\164\x65\163"]) ? $post["\144\151\x73\141\142\x6c\x65\137\165\x70\x64\x61\x74\145\137\x65\170\151\x73\x74\151\x6e\147\137\x63\165\163\164\x6f\155\145\x72\x5f\141\164\164\162\x69\x62\x75\164\x65\163"] : 0), $R5->quoteName("\165\x73\x65\x72\x5f\160\162\157\146\x69\x6c\x65\137\141\164\x74\162\151\x62\165\164\x65\163") . "\40\x3d\x20" . $R5->quote($IC), $R5->quoteName("\165\x73\x65\x72\137\146\x69\145\154\144\x5f\141\x74\x74\162\151\142\165\x74\x65\163") . "\x20\75\x20" . $R5->quote($Uv), $R5->quoteName("\165\163\145\x72\137\x63\x6f\x6e\x74\x61\143\164\137\x61\x74\x74\162\151\142\x75\164\145\x73") . "\40\75\x20" . $R5->quote($oD), $R5->quoteName("\165\x73\145\162\x5f\143\x77\x5f\x61\x74\164\x72\x69\142\165\x74\145\x73") . "\40\x3d\x20" . $R5->quote($ng));
$H1 = array($R5->quoteName("\151\144\x70\137\156\141\155\145") . "\x20\x3d\x20" . $R5->quote($post["\163\141\x6d\154\x5f\x69\144\160\x5f\x6e\141\155\145"]));
$js->update($R5->quoteName("\43\137\x5f\155\151\x6e\151\157\x72\x61\156\147\145\x5f\163\141\155\x6c\x5f\x63\x6f\x6e\146\x69\x67"))->set($Qt)->where($H1);
$R5->setQuery($js);
$R5->execute();
$KZ = "\101\x74\164\x72\x69\x62\x75\x74\145\40\115\141\160\160\151\156\x67\x20\146\x6f\162\40\111\x44\120\x20" . $post["\163\x61\155\154\137\x69\x64\160\x5f\156\141\155\x65"] . "\40\150\141\x73\40\x62\x65\x65\x6e\x20\x73\x61\x76\x65\x64\40\x73\165\x63\143\145\163\x73\146\165\x6c\154\x79\56";
$ZT = "\151\x6e\x64\x65\170\x2e\160\x68\x70\x3f\157\x70\164\151\x6f\156\75\x63\157\x6d\137\x6d\x69\156\151\157\x72\141\x6e\x67\x65\137\x73\141\155\x6c\46\164\141\142\75\141\164\x74\162\x69\142\x75\x74\x65\x5f\155\x61\160\160\151\156\147\46\151\144\x70\x5f\x6e\x61\155\145\x5f\141\164\164\x72\75" . $post["\163\141\x6d\x6c\137\x69\x64\x70\x5f\156\x61\155\x65"];
$this->setRedirect($ZT, $KZ);
B0:
z5:
goto bw;
hR:
if (isset($post["\151\144\160\137\x69\144"]) && isset($post["\x69\144\x70\137\x6e\141\155\145"]) && isset($post["\x69\x64\160\137\145\x6e\x74\x69\164\x79\x5f\x69\144"]) && isset($post["\163\x69\156\147\x6c\x65\x5f\x73\x69\x67\x6e\x6f\156\x5f\163\145\x72\x76\151\143\x65\x5f\x75\162\154"])) {
goto aW;
}
$this->setRedirect("\151\x6e\x64\x65\x78\x2e\160\x68\x70\77\157\x70\164\x69\157\156\x3d\x63\x6f\x6d\137\155\x69\x6e\x69\x6f\x72\141\156\x67\x65\x5f\163\141\x6d\x6c\x26\164\141\x62\75\151\x64\x70\x26\151\x64\x3d" . $post["\x69\x64\x70\137\x69\x64"], "\x50\154\x65\141\163\145\40\x70\x72\157\166\x69\x64\x65\x20\x61\x6c\x6c\x20\164\x68\x65\x20\162\145\161\165\151\x72\x65\144\40\151\x6e\146\157\162\x6d\x61\164\x69\x6f\x6e\x2e", "\145\162\x72\x6f\x72");
return;
goto Z_;
aW:
$Rn = $post["\151\x64\x70\137\x69\x64"];
if ($Rn == 0) {
goto YV;
}
$this->update_existing_idp($post);
goto JO;
YV:
$Tz = $eR["\x63\165\x73\164\x6f\155\145\162\x5f\x6b\x65\x79"];
$Bu = $eR["\141\160\x69\137\x6b\145\x79"];
$ZR = $this->checkCL($Tz, $Bu, 0);
if (!$ZR) {
goto sP;
}
return;
goto NW;
sP:
$this->insert_new_idp($post);
NW:
JO:
Z_:
$KZ = "\131\x6f\165\x72\40\x63\157\x6e\x66\x69\147\x75\162\141\x74\x69\x6f\156\x20\150\141\163\x20\x62\145\145\156\x20\x73\141\166\x65\x64\40\163\165\143\x63\x65\163\163\x66\165\154\154\171\56\x20\131\157\165\x20\143\141\x6e\x20\164\x65\163\x74\x20\x74\x68\x65\40\x69\x64\x70\x20\x63\x6f\x6e\146\151\147\x75\x72\x61\x74\x69\x6f\x6e\x73\x20\156\157\167\x2e";
$this->setRedirect("\x69\x6e\x64\145\x78\56\160\150\x70\77\157\160\x74\151\157\x6e\75\143\x6f\155\x5f\155\x69\156\151\157\x72\141\156\147\145\x5f\x73\141\155\154\46\164\141\142\75\151\144\160", $KZ);
bw:
}
public function saveRolemapping()
{
$post = Factory::getApplication()->input->post->getArray();
if (!(count($post) == 0)) {
goto zj;
}
$this->setRedirect("\x69\156\144\x65\x78\56\x70\150\160\77\x6f\x70\x74\151\157\x6e\75\143\x6f\x6d\137\155\151\156\151\157\x72\141\x6e\x67\145\137\163\141\155\154\46\164\x61\142\x3d\151\x64\160");
return;
zj:
$eR = Mo_Saml_Local_Util::getCustomerDetails();
$Ye = isset($eR["\x73\x74\x61\x74\x75\163"]) ? $eR["\x73\164\141\x74\165\x73"] : '';
if (!(Mo_Saml_Local_Util::is_customer_registered() && Mo_Saml_Local_Util::check($Ye) != "\164\162\x75\x65")) {
goto Q5;
}
$this->setRedirect("\151\x6e\x64\x65\x78\x2e\x70\x68\160\x3f\x6f\x70\164\x69\157\x6e\75\x63\157\x6d\137\x6d\x69\156\x69\x6f\162\141\156\x67\x65\x5f\163\x61\155\x6c", "\131\x6f\x75\x20\x68\141\166\145\x20\156\157\164\x20\x61\x63\x74\151\166\141\164\145\144\x20\x79\x6f\x75\x72\40\x6c\151\x63\145\x6e\x73\145\x20\171\145\164\x2e", "\x65\x72\x72\x6f\x72");
return;
Q5:
if (isset($post["\143\165\162\162\x65\x6e\164\x5f\x69\144\x70\137\x69\144"]) && !empty($post["\x63\165\x72\162\145\156\x74\137\151\x64\160\x5f\151\144"])) {
goto E1;
}
$this->setRedirect("\x69\156\x64\145\170\x2e\160\x68\160\x3f\157\160\x74\x69\157\156\x3d\x63\x6f\x6d\137\155\151\x6e\151\x6f\x72\141\x6e\x67\145\x5f\163\x61\155\x6c\46\164\141\x62\75\x67\x72\x6f\x75\x70\137\155\x61\160\x70\x69\x6e\x67", "\x50\x6c\x65\x61\163\x65\x20\x73\145\154\145\143\x74\x20\x74\150\145\x20\111\x44\120\x20\146\157\x72\40\162\x6f\154\145\40\x6d\x61\160\x70\x69\156\147\56");
goto Wz;
E1:
$hA = 0;
$Rd = array();
$ME = array_key_exists("\155\141\160\x70\151\x6e\147\x5f\x6b\x65\x79\x5f", $post) ? $post["\x6d\x61\160\160\151\x6e\147\137\153\x65\171\137"] : array();
$Zx = array_key_exists("\x6d\x61\160\160\151\x6e\147\x5f\x76\x61\154\165\x65\x5f", $post) ? $post["\155\141\160\x70\151\156\x67\137\x76\141\154\x75\145\x5f"] : array();
foreach ($ME as $vL => $eN) {
$Rd[$eN] = $Zx[$vL];
$hA++;
Jg:
}
Oh:
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$js->select("\x2a");
$js->from($R5->quoteName("\43\137\137\x6d\151\x6e\x69\x6f\162\x61\156\147\x65\x5f\x73\141\x6d\154\137\162\157\154\x65\137\155\x61\x70\x70\x69\156\x67"));
$js->where($R5->quoteName("\x69\x64\x70\x5f\151\x64") . "\40\x3d\40" . $R5->quote($post["\x63\x75\x72\162\145\156\164\137\151\144\160\x5f\x69\144"]));
$R5->setQuery($js);
$U8 = $R5->loadAssoc();
$Vt = isset($post["\x6d\x61\160\160\x69\x6e\x67\x5f\x76\141\154\x75\x65\137\144\145\x66\141\x75\154\x74"]) ? trim($post["\155\141\160\x70\151\x6e\x67\x5f\x76\141\154\x75\145\137\x64\145\146\x61\x75\154\x74"]) : '';
$Be = isset($post["\x6d\x61\160\x70\151\156\x67\137\x6d\145\x6d\142\145\162\157\146\x5f\141\x74\164\162\151\x62\x75\164\145"]) ? trim($post["\x6d\x61\x70\160\151\156\147\137\x6d\x65\155\x62\145\x72\157\x66\137\141\164\164\162\x69\x62\x75\164\x65"]) : '';
$sw = isset($post["\x65\x6e\141\x62\154\x65\x5f\162\x6f\x6c\x65\x5f\155\x61\160\160\151\x6e\x67"]) ? $post["\x65\x6e\141\142\x6c\145\137\162\x6f\x6c\x65\x5f\x6d\141\160\160\151\156\147"] : 0;
$s2 = isset($post["\x64\157\137\156\157\164\137\141\x75\164\157\137\143\x72\145\141\164\145\137\x75\163\x65\x72\x73"]) ? $post["\x64\157\x5f\156\157\x74\137\x61\165\x74\157\x5f\x63\162\x65\x61\x74\145\x5f\165\x73\145\x72\x73"] : 0;
$NN = isset($post["\x64\x69\163\x61\x62\154\145\137\x65\x78\151\x73\x74\x69\x6e\x67\x5f\165\163\145\162\x73\x5f\162\157\x6c\x65\x5f\x75\160\x64\141\x74\145"]) ? $post["\144\151\163\141\142\x6c\145\x5f\145\170\151\x73\x74\151\156\x67\137\165\x73\x65\162\163\x5f\162\157\154\145\x5f\165\x70\x64\141\x74\145"] : 0;
$If = isset($post["\165\x70\x64\x61\164\x65\x5f\x65\x78\151\163\164\151\x6e\x67\x5f\x75\x73\145\x72\x73\x5f\x72\x6f\154\145\137\x77\151\164\150\157\x75\164\137\x72\x65\155\157\166\151\x6e\147\137\x63\165\x72\x72\145\156\164"]) ? $post["\x75\160\144\x61\x74\x65\137\x65\x78\151\x73\x74\x69\156\147\x5f\165\163\x65\162\163\137\162\157\154\145\x5f\167\x69\164\150\x6f\165\164\x5f\162\145\155\157\x76\151\156\147\137\143\x75\162\162\145\156\164"] : 0;
$kd = isset($post["\147\x72\160"]) ? trim($post["\x67\162\x70"]) : '';
$or = json_encode($Rd);
$sQ = isset($post["\x67\x72\157\x75\x70\x5f\141\164\x74\x72"]) ? $post["\x67\162\157\165\160\x5f\141\x74\164\x72"] : '';
$MN = $post["\143\165\162\162\145\x6e\x74\137\151\144\x70\x5f\151\x64"];
$js = $R5->getQuery(true);
$js->delete($R5->quoteName("\x23\137\137\x6d\151\156\x69\157\x72\141\x6e\x67\x65\x5f\x73\141\x6d\x6c\137\x63\165\x73\x74\157\x6d\x5f\147\162\157\165\x70\x5f\155\x61\x70\160\151\156\147"));
$R5->setQuery($js);
$R5->execute();
$B4 = isset($post["\143\x75\x73\x74\x6f\x6d\137\155\141\160\160\x69\x6e\147\x5f\153\145\171"]) ? $post["\143\x75\163\164\x6f\155\x5f\x6d\x61\x70\160\151\x6e\x67\137\x6b\145\171"] : array();
$Vs = isset($post["\143\x75\163\164\x6f\155\137\155\x61\160\160\x69\x6e\147\x5f\x76\141\154\165\145"]) ? $post["\x63\x75\x73\x74\157\x6d\137\x6d\141\x70\160\151\156\x67\x5f\x76\x61\x6c\x75\145"] : array();
foreach ($B4 as $vL => $eN) {
if (!(!empty($eN) && !empty($Vs[$vL]))) {
goto zn;
}
$js = $R5->getQuery(true);
$yb = array("\143\x75\163\x74\x6f\155\137\x6b\x65\x79", "\x63\165\163\x74\x6f\x6d\x5f\x76\x61\x6c\x75\x65");
$k8 = array($R5->quote($eN), $R5->quote($Vs[$vL]));
$js->insert($R5->quoteName("\x23\x5f\137\155\x69\156\151\157\x72\x61\156\147\x65\137\x73\141\155\154\137\143\165\163\x74\x6f\x6d\x5f\x67\x72\x6f\165\x70\137\155\141\x70\160\151\x6e\147"))->columns($R5->quoteName($yb))->values(implode("\x2c", $k8));
$R5->setQuery($js);
$R5->execute();
zn:
r5:
}
A0:
$H_ = UtilitiesSAML::loadUserGroups();
$RV = isset($post["\145\156\141\x62\x6c\145\x5f\162\157\154\x65\137\x62\x61\163\x65\x64\x5f\x72\145\x64\151\162\x65\x63\164\151\157\156"]) ? $post["\145\156\x61\142\154\145\137\162\157\154\145\x5f\142\x61\163\x65\x64\x5f\x72\145\x64\x69\x72\x65\143\x74\x69\157\x6e"] : 0;
foreach ($H_ as $A3) {
$be = "\162\x6f\154\x65\x5f\x62\141\x73\145\x64\x5f\147\162\x6f\165\160\137\141\164\164\x72\x5f\166\x61\154\x75\x65\163" . $A3[0];
if (!(isset($post[$be]) && !empty($post[$be]))) {
goto yq;
}
$gP[$A3[0]] = $post[$be];
yq:
nX:
}
a6:
$gP = json_encode($gP);
if ($U8) {
goto y3;
}
$js = $R5->getQuery(true);
$yb = array("\x6d\x61\x70\160\151\x6e\147\137\166\141\x6c\x75\x65\137\144\x65\146\141\x75\x6c\164", "\x6d\x61\x70\160\151\x6e\x67\137\155\145\x6d\142\145\x72\157\x66\x5f\141\x74\164\x72\151\142\165\x74\145", "\x65\156\x61\142\154\x65\137\163\x61\x6d\154\137\x72\x6f\x6c\x65\137\155\141\x70\160\x69\156\147", "\x72\157\x6c\145\137\x6d\x61\x70\160\151\x6e\x67\x5f\x6b\x65\x79\x5f\x76\141\x6c\165\145", "\162\157\154\x65\137\155\x61\x70\x70\151\x6e\x67\137\x63\157\x75\x6e\x74", "\x69\144\160\137\151\x64", "\x64\x6f\x5f\x6e\157\x74\137\141\165\x74\157\137\143\162\145\141\164\x65\x5f\165\x73\145\162\163", "\x64\x69\163\x61\142\x6c\145\137\x65\170\151\163\164\151\156\147\x5f\165\x73\145\x72\x73\137\162\x6f\x6c\145\137\x75\160\x64\x61\x74\145", "\165\x70\144\141\164\145\137\x65\x78\151\x73\164\x69\156\x67\137\165\x73\x65\x72\163\137\162\x6f\x6c\145\137\x77\x69\x74\x68\x6f\x75\164\x5f\x72\x65\x6d\157\x76\151\x6e\x67\x5f\x63\x75\162\x72\x65\156\164", "\147\162\x70", "\145\x6e\141\142\154\x65\x5f\x72\157\154\145\137\x62\141\x73\x65\x64\x5f\x72\x65\x64\x69\x72\x65\143\x74\151\157\x6e", "\x72\157\154\145\x5f\x62\x61\163\145\x64\137\x72\145\x64\151\x72\145\x63\x74\137\153\145\171\137\166\x61\x6c\165\145", "\152\157\157\x6d\x73\x68\x6f\x70\x70\151\x6e\147\137\x67\162\157\165\x70");
$k8 = array($R5->quote($Vt), $R5->quote($Be), $R5->quote($sw), $R5->quote($or), $R5->quote($hA), $R5->quote($MN), $R5->quote($s2), $R5->quote($NN), $R5->quote($If), $R5->quote($kd), $R5->quote($RV), $R5->quote($gP), $R5->quote($sQ));
$js->insert($R5->quoteName("\x23\x5f\137\x6d\x69\156\151\x6f\162\141\x6e\x67\145\137\163\141\x6d\x6c\137\x72\x6f\154\x65\x5f\155\x61\160\160\151\x6e\147"))->columns($R5->quoteName($yb))->values(implode("\54", $k8));
$R5->setQuery($js);
$R5->execute();
goto Nx;
y3:
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("\155\141\160\160\x69\x6e\x67\x5f\x76\141\154\165\145\137\144\x65\146\141\x75\154\164") . "\40\x3d\x20" . $R5->quote($Vt), $R5->quoteName("\x6d\x61\x70\160\x69\x6e\x67\x5f\155\145\x6d\142\145\162\x6f\146\137\x61\x74\x74\x72\x69\142\x75\x74\145") . "\x20\75\40" . $R5->quote($Be), $R5->quoteName("\145\156\141\142\x6c\x65\x5f\163\141\155\154\137\162\x6f\154\x65\x5f\155\141\x70\x70\151\156\147") . "\40\75\x20" . $R5->quote($sw), $R5->quoteName("\x72\157\154\x65\137\x6d\x61\x70\160\151\156\147\137\x6b\145\x79\137\x76\x61\x6c\165\145") . "\40\75\40" . $R5->quote($or), $R5->quoteName("\x72\157\154\145\137\x6d\x61\160\x70\x69\x6e\x67\x5f\x63\157\x75\156\164") . "\x20\x3d\40" . $R5->quote($hA), $R5->quoteName("\x64\x6f\137\156\x6f\164\x5f\x61\x75\164\157\137\143\162\145\141\164\x65\137\165\163\x65\x72\163") . "\40\x3d\40" . $R5->quote($s2), $R5->quoteName("\144\151\x73\141\142\154\145\x5f\x65\170\151\163\164\x69\156\x67\x5f\x75\x73\x65\162\163\137\x72\x6f\x6c\x65\x5f\x75\160\x64\x61\x74\x65") . "\40\x3d\x20" . $R5->quote($NN), $R5->quoteName("\x75\x70\x64\141\164\x65\x5f\145\x78\151\x73\164\x69\x6e\147\137\165\163\x65\x72\x73\x5f\x72\x6f\x6c\x65\137\167\151\164\150\157\165\x74\137\x72\145\155\157\x76\151\x6e\147\137\x63\165\x72\x72\x65\156\x74") . "\x20\x3d\x20" . $R5->quote($If), $R5->quoteName("\147\162\160") . "\40\75\x20" . $R5->quote($kd), $R5->quoteName("\145\x6e\x61\142\154\x65\x5f\x72\157\154\x65\x5f\x62\x61\163\x65\x64\x5f\162\x65\x64\x69\162\x65\x63\164\x69\x6f\x6e") . "\x20\75\x20" . $R5->quote($RV), $R5->quoteName("\162\157\x6c\x65\137\x62\x61\x73\x65\x64\137\162\145\x64\x69\162\x65\143\x74\x5f\x6b\145\x79\x5f\166\141\154\165\x65") . "\40\75\40" . $R5->quote($gP), $R5->quoteName("\152\x6f\157\155\163\x68\x6f\160\x70\151\x6e\x67\137\147\x72\157\x75\160") . "\40\x3d\40" . $R5->quote($sQ));
$H1 = array($R5->quoteName("\x69\144\x70\137\151\144") . "\x20\75\x20" . $R5->quote($post["\x63\165\x72\x72\x65\156\x74\137\151\144\160\x5f\151\x64"]));
$js->update($R5->quoteName("\43\x5f\137\155\151\156\x69\x6f\x72\x61\x6e\x67\x65\137\163\x61\x6d\154\x5f\x72\x6f\x6c\x65\x5f\x6d\x61\160\x70\151\156\x67"))->set($Qt)->where($H1);
$R5->setQuery($js);
$R5->execute();
Nx:
$this->setRedirect("\x69\x6e\144\145\x78\56\x70\x68\160\77\x6f\x70\x74\x69\x6f\x6e\75\143\x6f\155\137\155\x69\x6e\151\157\x72\141\156\147\145\x5f\x73\141\x6d\154\46\164\x61\x62\75\147\x72\157\165\160\x5f\x6d\141\160\160\x69\x6e\147\x26\x63\x75\162\x72\x65\156\164\x5f\151\144\x70\x5f\x69\144\75" . $post["\143\165\162\x72\145\x6e\164\x5f\x69\x64\x70\137\x69\x64"], "\x53\x41\115\x4c\40\x47\162\157\165\x70\40\x74\157\x20\112\x6f\157\x6d\154\141\x20\x72\x6f\x6c\x65\x20\155\x61\x70\160\x69\x6e\x67\x20\150\x61\163\x20\x62\x65\145\156\40\x75\x70\x64\x61\164\145\x64\56");
Wz:
}
function cancelform()
{
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("\145\155\x61\151\x6c") . "\40\x3d\x20" . $R5->quote(''), $R5->quoteName("\154\157\x67\151\156\137\163\164\141\164\165\163") . "\40\x3d\x20" . $R5->quote(1), $R5->quoteName("\145\x6d\141\151\154\137\143\157\165\x6e\x74") . "\x20\x3d\x20" . $R5->quote(0));
$H1 = array($R5->quoteName("\151\x64") . "\x20\x3d\40\x31");
$js->update($R5->quoteName("\43\137\x5f\155\151\156\151\x6f\162\141\x6e\147\x65\x5f\163\141\155\x6c\137\143\165\163\x74\157\x6d\x65\162\x5f\144\x65\x74\141\151\x6c\163"))->set($Qt)->where($H1);
$R5->setQuery($js);
$U8 = $R5->execute();
$this->setRedirect("\151\156\144\x65\x78\x2e\160\x68\160\x3f\157\x70\x74\x69\x6f\x6e\x3d\143\x6f\155\137\x6d\x69\x6e\x69\x6f\162\141\156\147\x65\137\163\141\155\x6c\46\164\x61\x62\x3d\x61\x63\x63\x6f\x75\x6e\x74");
}
function freeLicenseKey()
{
$my = new Mo_saml_Local_Customer();
$ax = json_decode($my->update_status(), true);
if (strcasecmp($ax["\163\x74\x61\x74\165\163"], "\x53\125\x43\x43\x45\x53\x53") == 0) {
goto SV;
}
$j1 = "\105\162\162\x6f\x72\40\162\145\x6d\157\x76\151\x6e\x67\40\x79\x6f\165\162\40\154\x69\x63\145\156\163\145\40\153\x65\x79\56\40\120\x6c\145\x61\x73\x65\40\164\162\171\40\x61\x67\141\151\x6e\40\x6f\162\40\x63\x6f\156\x74\x61\x63\x74\x20\74\x61\x20\150\162\x65\146\x3d\42\155\x61\x69\x6c\164\157\72\152\x6f\157\155\154\x61\x73\165\160\x70\157\162\164\x40\x78\145\143\x75\162\151\x66\x79\56\x63\157\x6d\42\76\x20\152\157\157\155\154\141\163\165\x70\x70\x6f\x72\164\100\x78\145\143\x75\162\151\x66\171\x2e\x63\157\x6d\x3c\57\x61\76";
$this->setRedirect("\151\x6e\144\x65\170\56\160\x68\160\77\157\160\164\x69\157\156\75\143\157\x6d\x5f\155\x69\x6e\151\157\x72\x61\156\147\145\x5f\x73\x61\x6d\x6c\46\x74\141\x62\75\x61\143\x63\157\165\156\164", $j1, "\x65\162\x72\x6f\162");
return;
goto YD;
SV:
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$Qt = array($R5->quoteName("\145\x6d\141\x69\x6c") . "\40\75\40" . $R5->quote(''), $R5->quoteName("\x61\144\x6d\151\156\x5f\160\x68\157\156\x65") . "\x20\75\40" . $R5->quote(''), $R5->quoteName("\x63\165\163\164\157\155\x65\162\137\x6b\x65\x79") . "\40\x3d\40" . $R5->quote(''), $R5->quoteName("\143\x75\x73\164\x6f\x6d\145\x72\x5f\164\x6f\x6b\x65\156") . "\40\75\40" . $R5->quote(''), $R5->quoteName("\x61\x70\x69\x5f\153\x65\x79") . "\x20\75\40" . $R5->quote(''), $R5->quoteName("\154\157\x67\151\156\x5f\163\x74\x61\x74\x75\163") . "\40\x3d\40" . $R5->quote(1), $R5->quoteName("\163\164\141\164\x75\163") . "\x20\75\x20" . $R5->quote(''), $R5->quoteName("\163\x6d\154\x5f\x6c\153") . "\40\x3d\x20" . $R5->quote(''), $R5->quoteName("\x6e\145\x77\137\x72\145\147\151\163\x74\162\141\x74\151\x6f\156") . "\40\x3d\40" . $R5->quote(0), $R5->quoteName("\x65\x6d\141\x69\x6c\137\x63\157\165\x6e\164") . "\40\x3d\x20" . $R5->quote(0), $R5->quoteName("\x69\x6e\x5f\143\x6d\160") . "\x20\75\x20" . $R5->quote(''), $R5->quoteName("\164\162\x69\163\164\x73") . "\40\75\40" . $R5->quote(''), $R5->quoteName("\x75\163\x72\154\x6d\x74") . "\40\75\x20" . $R5->quote(0), $R5->quoteName("\154\x69\143\145\156\163\x65\105\170\160\151\x72\x79") . "\x20\75\40" . $R5->quote("\60\60\x30\x30\55\60\60\55\x30\60\40\60\x30\x3a\60\x30\x3a\x30\x30"), $R5->quoteName("\163\165\x70\x70\x6f\162\x74\x45\170\x70\x69\x72\x79") . "\x20\75\x20" . $R5->quote("\x30\x30\x30\x30\x2d\60\60\55\60\60\40\60\x30\x3a\60\x30\72\x30\x30"), $R5->quoteName("\156\x6f\x53\x50") . "\40\75\40" . $R5->quote(0), $R5->quoteName("\x61\165\164\157\x5f\163\145\156\144\137\145\x6d\x61\151\154\x5f\164\151\155\145") . "\x20\x3d\40" . $R5->quote(''));
$H1 = array($R5->quoteName("\x69\x64") . "\x20\75\x20\61");
$js->update($R5->quoteName("\x23\x5f\x5f\155\x69\x6e\151\157\x72\x61\156\x67\145\137\x73\x61\155\154\137\143\x75\x73\x74\157\x6d\x65\162\137\144\145\x74\x61\151\154\x73"))->set($Qt)->where($H1);
$R5->setQuery($js);
$U8 = $R5->execute();
$this->setRedirect("\x69\156\x64\x65\x78\x2e\160\x68\x70\77\x6f\160\x74\151\157\156\x3d\x63\x6f\155\x5f\x6d\151\x6e\151\157\162\141\156\147\x65\x5f\x73\x61\155\x6c\x26\164\x61\x62\75\141\x63\143\x6f\165\x6e\164");
YD:
}
function new_line()
{
echo "\12";
echo "\74\150\162\x3e";
}
function contactUs()
{
$post = Factory::getApplication()->input->post->getArray();
if (!(count($post) == 0)) {
goto XZ;
}
$this->setRedirect("\x69\156\144\x65\170\56\x70\x68\160\77\x6f\160\164\151\x6f\x6e\x3d\143\x6f\x6d\x5f\x6d\x69\x6e\151\157\x72\141\156\x67\x65\x5f\x73\x61\x6d\x6c\46\x74\141\142\75\141\x63\x63\157\x75\x6e\164");
return;
XZ:
$B_ = $post["\161\x75\x65\162\171"];
$fB = $post["\161\x75\x65\x72\171\137\145\155\x61\151\x6c"];
$oI = $post["\161\x75\145\x72\x79\x5f\160\150\157\x6e\x65"];
$HR = isset($post["\163\x65\x6e\144\137\x70\x6c\x75\x67\x69\x6e\x5f\143\157\x6e\146\151\x67"]) ? $post["\163\x65\x6e\x64\x5f\x70\x6c\x75\x67\151\x6e\137\x63\x6f\x6e\x66\151\147"] : 0;
$JH = null;
if ($HR == 1 || $HR == true) {
goto jW;
}
$js = $B_;
goto i4;
jW:
$JH = $this->importexport(true);
if (!empty($JH)) {
goto UF;
}
$js = $B_;
$this->setRedirect("\151\156\144\x65\x78\56\x70\x68\160\x3f\x6f\160\164\151\157\156\x3d\143\x6f\155\x5f\x6d\151\156\x69\157\x72\141\156\x67\145\x5f\163\x61\x6d\x6c\46\164\141\x62\75\141\143\143\x6f\x75\x6e\164", "\x50\154\145\141\163\x65\x20\x63\x6f\156\x66\151\147\x75\x72\145\x20\164\x68\145\40\x70\x6c\165\x67\151\156\x20\x74\157\x20\163\145\x6e\144\x20\x74\x68\145\40\x63\157\x6e\146\x69\147\165\x72\x61\164\x69\x6f\156\x20\151\156\40\161\x75\145\x72\171\x2e", "\x65\162\x72\x6f\162");
return;
goto Xu;
UF:
ob_start();
$this->new_line();
$H0 = ob_get_clean();
$js = $B_ . $H0 . "\x20\120\154\165\x67\x69\156\40\103\x6f\x6e\x66\x69\x67\x75\x72\141\164\x69\x6f\156\75\x3e" . $JH;
Xu:
i4:
$b0 = new Mo_saml_Local_Customer();
$J0 = $b0->submit_contact_us($fB, $oI, $js);
$DY = strcasecmp($J0, "\121\x75\145\x72\171\x20\x73\165\x62\155\151\164\164\x65\x64\x2e");
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto BW;
}
if (is_array($J0) && array_key_exists("\x73\164\x61\164\x75\x73", $J0) && $J0["\163\x74\141\164\165\163"] == "\105\122\x52\x4f\x52") {
goto Ia;
}
if ($DY == 0) {
goto GF;
}
$this->setRedirect("\151\156\x64\x65\170\x2e\160\150\160\x3f\x6f\160\x74\151\157\156\x3d\x63\x6f\x6d\x5f\155\x69\x6e\151\157\x72\x61\x6e\147\x65\137\163\x61\x6d\154\x26\x74\141\142\x3d\141\x63\143\157\x75\x6e\x74", "\131\x6f\x75\162\x20\x71\x75\x65\162\171\x20\143\157\x75\x6c\144\x20\156\x6f\x74\40\142\145\40\163\x75\x62\x6d\151\x74\164\x65\144\x2e\x20\x50\x6c\145\x61\x73\x65\40\164\162\171\x20\x61\147\x61\x69\x6e\56", "\x65\x72\x72\157\x72");
goto NZ;
GF:
$this->setRedirect("\x69\x6e\144\x65\170\56\160\150\160\x3f\157\160\164\x69\x6f\x6e\75\x63\157\x6d\137\x6d\151\156\x69\x6f\x72\x61\156\147\145\137\x73\141\155\x6c\46\164\x61\x62\75\x61\x63\143\157\165\x6e\x74", "\124\x68\141\156\153\x73\x20\x66\157\162\40\147\145\x74\x74\151\156\x67\x20\151\156\40\164\x6f\x75\x63\150\41\x20\x57\145\x20\163\150\x61\154\x6c\40\147\x65\x74\40\142\x61\x63\x6b\40\164\157\40\171\x6f\165\x20\163\x68\157\x72\164\154\171\56", "\163\x75\143\143\x65\x73\x73");
NZ:
goto A_;
Ia:
$this->setRedirect("\151\x6e\144\145\170\56\x70\150\160\77\x6f\x70\x74\151\157\x6e\75\143\157\155\137\155\x69\156\151\157\162\x61\x6e\x67\x65\x5f\163\141\155\x6c\46\164\x61\x62\75\141\x63\143\157\165\156\164", $J0["\x6d\145\163\163\x61\147\x65"], "\x65\x72\x72\x6f\x72");
A_:
BW:
}
function setupOrUpdateProxy()
{
$post = Factory::getApplication()->input->post->getArray();
if (!(count($post) == 0)) {
goto ms;
}
$this->setRedirect("\x69\x6e\x64\145\x78\56\x70\150\160\77\x6f\x70\164\x69\157\156\x3d\x63\157\x6d\137\155\x69\x6e\x69\x6f\x72\x61\x6e\147\x65\137\x73\x61\155\x6c\x26\164\x61\x62\75\x61\143\143\x6f\165\x6e\x74");
return;
ms:
$lH = isset($post["\160\162\157\x78\x79\120\141\163\x73\x77\x6f\x72\x64"]) ? $post["\160\162\x6f\170\x79\x50\x61\163\x73\167\157\x72\x64"] : '';
$eU = isset($post["\x70\x72\x6f\170\x79\x48\157\x73\164"]) ? $post["\160\162\157\170\171\110\x6f\x73\164"] : '';
$tX = isset($post["\160\162\x6f\170\x79\120\157\x72\x74"]) ? $post["\160\162\x6f\170\171\120\x6f\162\x74"] : '';
$so = isset($post["\x75\x73\145\162\156\141\155\145"]) ? $post["\165\x73\145\162\156\141\155\x65"] : '';
$R5 = Factory::getDbo();
$ka = (new Mo_saml_Local_Util())->_load_db_values("\x23\137\137\155\151\x6e\151\x6f\x72\x61\156\147\145\137\x73\141\155\x6c\137\160\162\x6f\170\171\137\x73\x65\164\x75\160");
if (!$ka) {
goto v6;
}
$js = $R5->getQuery(true)->update($R5->quoteName("\x23\x5f\x5f\x6d\x69\x6e\x69\157\162\141\156\147\145\137\x73\x61\x6d\154\x5f\x70\x72\x6f\x78\x79\x5f\163\x65\x74\x75\x70"))->set($R5->quoteName("\x70\141\x73\163\167\157\162\x64") . "\40\x3d\x20" . $R5->quote(base64_encode($lH)))->set($R5->quoteName("\160\x72\x6f\170\171\x5f\150\x6f\163\x74\137\x6e\x61\155\x65") . "\40\75\40" . $R5->quote($eU))->set($R5->quoteName("\160\157\x72\164\x5f\156\x75\155\x62\x65\x72") . "\x20\x3d\x20" . $R5->quote($tX))->set($R5->quoteName("\165\x73\x65\x72\156\141\x6d\145") . "\x20\x3d\40" . $R5->quote($so))->where($R5->quoteName("\151\144") . "\x20\x3d\40" . 1);
$R5->setQuery($js);
try {
$R5->execute();
Factory::getApplication()->enqueueMessage("\120\x72\157\x78\x79\x20\163\x65\x74\165\160\40\165\x70\x64\141\164\145\144\40\x73\165\143\143\145\163\163\146\165\x6c\154\171", "\x6d\x65\163\x73\x61\147\145");
} catch (Exception $aD) {
Factory::getApplication()->enqueueMessage("\x46\x61\151\x6c\x65\x64\x20\164\157\x20\x75\x70\x64\x61\164\x65\40\160\x72\x6f\170\171\40\163\145\x74\x75\x70\x3a\x20" . $aD->getMessage(), "\145\x72\162\x6f\162");
}
goto cI;
v6:
$js = $R5->getQuery(true)->insert($R5->quoteName("\x23\x5f\137\155\x69\156\151\x6f\x72\x61\x6e\x67\145\x5f\163\x61\x6d\x6c\137\x70\162\x6f\x78\171\x5f\163\x65\x74\165\160"))->columns(array($R5->quoteName("\x69\144"), $R5->quoteName("\160\x61\x73\x73\167\x6f\162\144"), $R5->quoteName("\x70\x72\x6f\x78\171\137\x68\x6f\x73\164\x5f\x6e\x61\155\x65"), $R5->quoteName("\x70\157\162\164\137\156\x75\155\142\x65\162"), $R5->quoteName("\165\x73\x65\162\x6e\x61\x6d\145")))->values($R5->quote(1) . "\54\x20" . $R5->quote(base64_encode($lH)) . "\x2c\x20" . $R5->quote($eU) . "\54\x20" . $R5->quote($tX) . "\x2c\40" . $R5->quote($so));
$R5->setQuery($js);
try {
$R5->execute();
Factory::getApplication()->enqueueMessage("\x50\162\x6f\x78\171\x20\163\x65\164\165\160\x20\x73\141\166\145\x64\40\x73\x75\x63\143\x65\163\163\x66\165\154\x6c\171", "\x6d\x65\x73\163\x61\147\x65");
} catch (Exception $aD) {
Factory::getApplication()->enqueueMessage("\106\x61\x69\x6c\145\x64\40\164\157\x20\x73\141\x76\145\40\160\162\x6f\x78\x79\x20\163\x65\164\x75\x70\72\x20" . $aD->getMessage(), "\145\162\162\157\x72");
}
cI:
$this->setRedirect("\151\156\x64\145\x78\x2e\160\150\160\77\x6f\160\x74\x69\157\156\75\143\157\x6d\x5f\155\x69\x6e\x69\x6f\162\x61\156\x67\x65\137\163\x61\x6d\154\46\164\x61\142\75\x61\x63\143\x6f\165\x6e\x74");
}
function resetProxy()
{
$R5 = Factory::getDbo();
$js = $R5->getQuery(true);
$js->select("\52")->from($R5->quoteName("\43\x5f\x5f\155\151\x6e\151\157\x72\x61\x6e\x67\x65\137\163\x61\x6d\154\137\x70\x72\x6f\170\x79\137\x73\x65\164\165\160"));
$R5->setQuery($js);
$x2 = $R5->loadAssoc();
if ($x2) {
goto iL;
}
Factory::getApplication()->enqueueMessage("\116\157\40\160\162\157\170\x79\40\144\x61\164\x61\40\x66\157\165\x6e\144\x20\164\x6f\40\144\145\x6c\x65\164\x65\x2e", "\167\141\x72\156\x69\156\147");
goto zo;
iL:
$kG = $R5->getQuery(true)->delete($R5->quoteName("\x23\137\137\x6d\x69\156\151\x6f\x72\141\156\x67\x65\x5f\x73\x61\x6d\154\x5f\160\x72\x6f\170\x79\137\163\145\164\165\x70"));
$R5->setQuery($kG);
try {
$R5->execute();
Factory::getApplication()->enqueueMessage("\120\162\x6f\170\x79\x20\144\x61\164\x61\40\144\x65\154\x65\164\145\x64\x20\x73\165\143\143\145\163\163\x66\x75\154\x6c\x79\x2e", "\163\x75\x63\143\145\x73\163");
} catch (Exception $aD) {
Factory::getApplication()->enqueueMessage("\105\162\x72\x6f\162\40\144\x65\x6c\x65\x74\x69\156\147\x20\x70\x72\157\170\171\x20\x64\x61\164\141\x3a\x20" . $aD->getMessage(), "\145\162\x72\157\162");
}
zo:
$this->setRedirect("\151\x6e\144\x65\170\56\160\x68\x70\x3f\157\160\164\151\x6f\x6e\x3d\x63\x6f\155\x5f\x6d\x69\x6e\151\157\x72\x61\x6e\147\x65\137\x73\141\x6d\x6c\x26\x74\141\142\75\141\143\143\157\165\156\164", false);
}
}
Function Calls
None |
Stats
MD5 | cc04da7060c848e72226b591c778effc |
Eval Count | 0 |
Decode Time | 154 ms |