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 /* Plugin Name: miniOrange SSO using SAML 2.0 Plugin URI: https://miniorange.com/..
Decoded Output download
<?php
/*
Plugin Name: miniOrange SSO using SAML 2.0
Plugin URI: https://miniorange.com/
Description: (Multi-Site)miniOrange SAML 2.0 SSO enables user to perform Single Sign On with any SAML 2.0 enabled Identity Provider.
Version: 20.1.0
Author: miniOrange
Author URI: https://miniorange.com/
*/
include_once dirname( __FILE__ ) . '/mo_login_saml_sso_widget.php';
require('mo-saml-class-customer.php');
require('mo_saml_settings_page.php');
require('MetadataReader.php');
require('certificate_utility.php');
require('mo-saml-subsite-access-denied-page.php');
require_once('mo-saml-plugin-version-update.php');
include_once 'xmlseclibs.php';
include_once 'MO_Sites_List.php';
use \RobRichards\XMLSecLibs\XMLSecurityKey;
use \RobRichards\XMLSecLibs\XMLSecurityDSig;
use \RobRichards\XMLSecLibs\XMLSecEnc;
class saml_mo_login {
private $widgetObj;
function __construct()
{
add_site_option("mo_apply_role_mapping_for_sites", 0);
add_action("network_admin_menu", array($this, "miniorange_sso_menu"));
add_action("admin_init", array($this, "miniorange_login_widget_saml_save_settings"));
add_action("admin_enqueue_scripts", array($this, "plugin_settings_style"));
register_deactivation_hook(__FILE__, array($this, "mo_sso_saml_deactivate"));
register_activation_hook(__FILE__, array($this, "mo_sso_saml_activate"));
add_action("admin_enqueue_scripts", array($this, "plugin_settings_script"));
add_action("login_enqueue_scripts", array($this, "mo_saml_login_enqueue_scripts"));
remove_action("network_admin_notices", array($this, "mo_saml_success_message"));
remove_action("network_admin_notices", array($this, "mo_saml_error_message"));
add_action("wp_authenticate", array($this, "mo_saml_authenticate"));
add_action("wp", array($this, "mo_saml_auto_redirect"));
$this->widgetObj = new mo_login_wid();
add_action("login_form", array($this, "mo_saml_modify_login_form"));
add_shortcode("MO_SAML_FORM", array($this, "mo_get_saml_shortcode"));
add_filter("cron_schedules", array($this, "myprefix_add_cron_schedule"));
add_action("metadata_sync_cron_action", array($this, "metadata_sync_cron_action"));
add_action("admin_init", array($this, "default_certificate"));
add_action("network_admin_plugin_action_links_" . plugin_basename(__FILE__), array($this, "mo_saml_plugin_action_links"));
add_filter("wpmu_users_columns", array($this, "mo_saml_custom_attr_column"));
add_filter("manage_users_custom_column", array($this, "mo_saml_attr_column_content"), 10, 3);
add_action("admin_init", "mo_saml_download");
add_action("mo_saml_flush_cache", array($this, "mo_saml_flush_cache"), 9999);
add_action("delete_user_form", array($this, "mo_delete_users"), 10, 2);
global $eS;
if ((float) $eS < 5.5 && (float) $eS > 5.2) {
goto UJ;
}
add_action("wp_logout", array($this->widgetObj, "mo_saml_logout"), 1, 1);
goto Cs;
UJ:
add_filter("logout_redirect", array($this, "mo_saml_logout_broker_with_filter"), 10, 3);
Cs:
add_action("init", array($this->widgetObj, "mo_saml_logout_init"));
}
function mo_saml_logout_broker_with_filter($vx, $RW, $user)
{
$this->widgetObj->mo_saml_logout($user->ID);
}
function mo_delete_users($current_user, $KI)
{
if (count($KI) > 1) {
goto Rd;
}
$aI = false;
goto kb;
Rd:
$aI = true;
kb:
foreach ($KI as $Zq) {
$user = get_user_by("id", $Zq);
$this->mo_delete_user($user, $KI, $aI);
HH:
}
ty:
}
function mo_delete_user($gX, $KI, $aI)
{
$Cp = get_users();
$D5 = $gX->ID;
$w2 = "<label for="reassign_user" class="screen-reader-text">" . __("Select a user") . "</label>";
$w2 .= "<select name="all_blogs" id="reassign_user_all" onchange="reAssignToUser(this, " . $D5 . ")">";
$Cl = '';
foreach ($Cp as $user) {
if (Utilities::mo_saml_in_array($user->ID, $KI)) {
goto hP;
}
$Cl .= "<option value='{$user->ID}'>{$user->user_login}</option>";
hP:
jb:
}
F1:
$w2 .= $Cl;
$w2 .= "</select>\xa";
echo " <table class="form-table" role="presentation">\xd\xa
\xa <tr><th scope="row">";
if (!$aI) {
goto MY;
}
echo $gX->user_login;
MY:
echo " </th><td>
\xa <ul style="list-style:none;">\xd
<li>
\xa ";
printf(__("<b>Site: %s</b>"), "All Sites");
echo " </li>\xd
<li><label><input type="radio" id="delete_option0All" name="deleteAll";
echo $D5;
echo "" value="delete" checked="checked" onchange="deleteAlldata('";
echo $D5;
echo "')" />
";
_e("Delete all content.");
echo "</label></li>
<li><label><input type="radio" id="delete_option1All" name="deleteAll";
echo $D5;
echo "" value="reassign" onchange="assignAlldata('";
echo $D5;
echo "')"/>\xd
";
_e("Attribute all content to:");
echo "</label>\xd\xa ";
echo $w2;
echo "</li>
\xa <li><span id="mo_delete_user_notice";
echo $D5;
echo "" style="visibility: hidden"><br/><b>NOTE: </b>The selected user doesn't exist in the following subsites. Kindly attribute the content for the following subsites manually or select a different user.</span></li>\xd\xa <ol id="mo_subsite_list";
echo $D5;
echo "" style="visibility: hidden">\xd\xa </ol>
</ul>
</td></tr>\xd\xa </table>\xd\xa\xd\xa <script>\xd\xa
function deleteAlldata(id){\xd
var elems = document.querySelectorAll("[name^='delete'][name$='[" + id + "]']");
for(elem of elems) {\xd\xa if(elem.value == "delete")
elem.checked = true;
\xa }\xd\xa }\xd
\xd\xa function assignAlldata(id){\xd\xa var elems = document.querySelectorAll("[name^='delete'][name$='[" + id + "]']");
for(elem of elems) {\xd
if(elem.value == "reassign")\xd
elem.checked = true;
\xa }
}
\xa\xd\xa function reAssignToUser(userSelect, userid){\xd\xa flushExistingSubsiteList(userid);
var elems = document.querySelectorAll("[name^='blog[" + userid + "]']");
var allSites = true;
\xa for(elem of elems) {
if(isOptionExist(elem, userSelect.value))\xd
elem.value = userSelect.value;
else {
showMoDeleteNotice(elem, userid);\xd\xa allSites = false;
\xa }\xd\xa
}
if(allSites) {
document.getElementById("mo_delete_user_notice" + userid).style.visibility = "hidden";
\xa document.getElementById("mo_subsite_list" + userid).style.visibility = "hidden";\xd
}
\xa }\xd
function isOptionExist(select, value){\xd
for(i = 0; i < select.length; i++){\xd\xa if(select.options[i].value == value)\xd\xa return true;\xd\xa }
\xa return false;\xd\xa }
\xa\xd
function showMoDeleteNotice(elem, userid){
document.getElementById("mo_delete_user_notice" + userid).style.visibility = "visible";\xd\xa document.getElementById("mo_subsite_list" + userid).style.visibility = "visible";\xd
url = getSubsiteWhereUserDoesNotExist(elem);
\xa name = getSubsiteNameWhereUserDoesNotExist(elem);\xd\xa addUrlToList(url, name, userid);\xd
}\xd\xa
function getSubsiteWhereUserDoesNotExist(element){\xd
subsiteUrl = element.parentElement.parentElement.firstElementChild.firstElementChild.getAttribute("href");
\xa return subsiteUrl;\xd
}\xd\xa
\xa function getSubsiteNameWhereUserDoesNotExist(element){\xd\xa subsiteName = element.parentElement.parentElement.firstElementChild.firstElementChild.innerText;
return subsiteName;\xd
}
function addUrlToList(url, name, userid){\xd\xa var olElem = document.getElementById("mo_subsite_list" + userid);
var li = document.createElement("li");
\xa li.appendChild(document.createTextNode(url + " - " + name));
li.setAttribute("id", url);\xd\xa olElem.appendChild(li);\xd
}
\xd
function flushExistingSubsiteList(userid){
\xa var olElem = document.getElementById("mo_subsite_list" + userid);
\xa olElem.innerHTML = "";
\xa }
\xa
</script>
\xd\xa ";
}
function mo_saml_flush_cache()
{
if (!(mo_saml_is_customer_registered_saml() && get_site_option("sml_lk"))) {
goto vy;
}
$xb = new Customersaml();
$xb->mo_saml_update_status($this);
vy:
}
function default_certificate()
{
$wh = file_get_contents(plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Public_Certificate);
$uc = file_get_contents(plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Private_Key);
if (!(!get_site_option("mo_saml_current_cert") && !get_site_option("mo_saml_current_cert_private_key"))) {
goto sr;
}
if (get_site_option("mo_saml_cert") && get_site_option("mo_saml_cert_private_key")) {
goto CF;
}
update_site_option("mo_saml_current_cert", $wh);
update_site_option("mo_saml_current_cert_private_key", $uc);
goto TW;
CF:
update_site_option("mo_saml_current_cert", get_site_option("mo_saml_cert"));
update_site_option("mo_saml_current_cert_private_key", get_site_option("mo_saml_cert_private_key"));
TW:
sr:
}
function myprefix_add_cron_schedule($ED)
{
$ED["weekly"] = array("interval" => 604800, "display" => __("Once Weekly"));
$ED["monthly"] = array("interval" => 2635200, "display" => __("Once Monthly"));
return $ED;
}
function metadata_sync_cron_action()
{
$SL = get_site_option("saml_identity_name");
$this->upload_metadata(@file_get_contents(get_site_option("saml_metadata_url_for_sync")));
update_site_option("saml_identity_name", $SL);
}
function mo_login_widget_saml_options()
{
global $wpdb;
update_site_option("mo_saml_host_name", "https://login.xecurify.com");
mo_register_saml_sso();
}
function mo_saml_success_message()
{
$qj = "error";
$o6 = get_site_option("mo_saml_message");
echo "<div class='" . $qj . "'> <p>" . $o6 . "</p></div>";
}
function mo_saml_error_message()
{
$qj = "updated";
$o6 = get_site_option("mo_saml_message");
echo "<div class='" . $qj . "'> <p>" . $o6 . "</p></div>";
}
public function mo_sso_saml_deactivate()
{
do_action("mo_saml_flush_cache");
delete_site_option("mo_saml_host_name");
delete_site_option("mo_saml_new_registration");
delete_site_option("mo_saml_admin_phone");
delete_site_option("mo_saml_admin_password");
delete_site_option("mo_saml_verify_customer");
delete_site_option("mo_saml_admin_customer_key");
delete_site_option("mo_saml_admin_api_key");
delete_site_option("mo_saml_customer_token");
delete_site_option("mo_saml_message");
delete_site_option("mo_saml_registration_status");
delete_site_option("mo_saml_idp_config_complete");
delete_site_option("mo_saml_transactionId");
delete_site_option("mo_saml_enable_cloud_broker");
}
public function mo_sso_saml_activate()
{
if (is_multisite()) {
goto Gx;
}
echo "Unable to activate the plugin. It seems like you are trying to install the <b>multisite plugin</b> in the single-site environment. Please contact <b>[email protected]</b> for more details";
exit;
Gx:
if (mo_saml_is_extension_installed("openssl")) {
goto RJ;
}
wp_die("PHP openssl extension is not installed or disabled,please enable it to activate the plugin.");
RJ:
add_option("Activated_Plugin", "Plugin-Slug");
$this->mo_saml_migrate_configuration();
}
function mo_saml_migrate_configuration()
{
$wa = maybe_unserialize(get_site_option("saml_sso_settings"));
if (empty($wa)) {
goto m7;
}
return;
m7:
$wa["DEFAULT"] = array();
$wa["DEFAULT"]["mo_saml_relay_state"] = !empty(get_site_option("mo_saml_relay_state")) ? get_site_option("mo_saml_relay_state") : '';
$wa["DEFAULT"]["mo_saml_registered_only_access"] = !empty(get_site_option("mo_saml_registered_only_access")) ? get_site_option("mo_saml_registered_only_access") : '';
$wa["DEFAULT"]["mo_saml_force_authentication"] = !empty(get_site_option("mo_saml_force_authentication")) ? get_site_option("mo_saml_force_authentication") : '';
$wa["DEFAULT"]["mo_saml_enable_login_redirect"] = !empty(get_site_option("mo_saml_enable_login_redirect")) ? get_site_option("mo_saml_enable_login_redirect") : '';
$wa["DEFAULT"]["mo_saml_allow_wp_signin"] = !empty(get_site_option("mo_saml_allow_wp_signin")) ? get_site_option("mo_saml_allow_wp_signin") : '';
delete_site_option("saml_request_signed");
update_site_option("saml_sso_settings", $wa);
}
function mo_saml_show_success_message()
{
remove_action("network_admin_notices", array($this, "mo_saml_success_message"));
add_action("network_admin_notices", array($this, "mo_saml_error_message"));
}
function mo_saml_show_error_message()
{
remove_action("network_admin_notices", array($this, "mo_saml_error_message"));
add_action("network_admin_notices", array($this, "mo_saml_success_message"));
}
function plugin_settings_style($vv)
{
if (!("toplevel_page_mo_saml_settings" != $vv)) {
goto Gl;
}
return;
Gl:
if (!empty($_REQUEST["tab"]) && $_REQUEST["tab"] == "licensing") {
goto FK;
}
wp_enqueue_style("mo_saml_admin_settings_style", plugins_url("includes/css/style_settings.min.css", __FILE__), array(), mo_options_plugin_constants::Version, "all");
wp_enqueue_style("mo_saml_admin_settings_style_tracker", plugins_url("includes/css/progress-tracker.css", __FILE__), array(), mo_options_plugin_constants::Version, "all");
wp_enqueue_style("mo_saml_admin_settings_phone_style", plugins_url("includes/css/phone.css", __FILE__), array(), mo_options_plugin_constants::Version, "all");
wp_enqueue_style("mo_saml_wpb-fa", plugins_url("includes/css/font-awesome.min.css", __FILE__), array(), mo_options_plugin_constants::Version, "all");
wp_enqueue_style("mo_saml_admin_settings_style", plugins_url("includes/css/jquery.ui.css", __FILE__), array(), mo_options_plugin_constants::Version, "all");
goto yF;
FK:
wp_enqueue_style("mo_saml_bootstrap_css", plugins_url("includes/css/bootstrap/bootstrap.min.css", __FILE__), array(), mo_options_plugin_constants::Version, "all");
wp_enqueue_style("mo_saml_admin_settings_style", plugins_url("includes/css/style_settings.min.css", __FILE__), array(), mo_options_plugin_constants::Version, "all");
yF:
}
function plugin_settings_script($vv)
{
if (!("toplevel_page_mo_saml_settings" != $vv)) {
goto tw;
}
return;
tw:
if (!empty($_REQUEST["tab"]) && $_REQUEST["tab"] == "licensing") {
goto IC;
}
wp_enqueue_script("jquery");
wp_enqueue_script("mo_saml_admin_settings_color_script", plugins_url("includes/js/jscolor/jscolor.js", __FILE__), array(), mo_options_plugin_constants::Version, false);
wp_enqueue_script("mo_saml_admin_settings_phone_script", plugins_url("includes/js/phone.js", __FILE__), array(), mo_options_plugin_constants::Version, false);
wp_enqueue_script("mo_saml_admin_bootstrap_script", plugins_url("includes/js/bootstrap/bootstrap.min.js", __FILE__), array(), mo_options_plugin_constants::Version, false);
goto kZ;
IC:
wp_enqueue_script("mo_saml_modernizr_script", plugins_url("includes/js/modernizr.js", __FILE__), array(), mo_options_plugin_constants::Version, false);
wp_enqueue_script("mo_saml_popover_script", plugins_url("includes/js/bootstrap/popper.min.js", __FILE__), array(), mo_options_plugin_constants::Version, false);
wp_enqueue_script("mo_saml_bootstrap_script", plugins_url("includes/js/bootstrap/bootstrap.min.js", __FILE__), array(), mo_options_plugin_constants::Version, false);
kZ:
wp_enqueue_script("mo_saml_admin_settings_script", plugins_url("includes/js/settings.min.js", __FILE__), array(), mo_options_plugin_constants::Version, false);
}
function mo_saml_login_enqueue_scripts()
{
wp_enqueue_script("jquery");
}
function mo_saml_activation_message()
{
$qj = "updated";
$o6 = get_site_option("mo_saml_message");
echo "<div class='" . $qj . "'> <p>" . $o6 . "</p></div>";
}
function mo_saml_custom_attr_column($cM)
{
$pd = maybe_unserialize(get_site_option("mo_saml_custom_attrs_mapping"));
$M0 = maybe_unserialize(get_site_option("saml_show_user_attribute"));
$fN = 0;
if (!(is_array($M0) && is_array($pd))) {
goto mV;
}
foreach ($pd as $tK => $Cd) {
if (empty($tK)) {
goto US;
}
if (!Utilities::mo_saml_in_array($fN, $M0)) {
goto vM;
}
$cM[$tK] = $tK;
vM:
US:
$fN++;
Fo:
}
Fg:
mV:
return $cM;
}
function mo_saml_attr_column_content($YS, $U4, $Q3)
{
$pd = maybe_unserialize(get_site_option("mo_saml_custom_attrs_mapping"));
if (!is_array($pd)) {
goto bY;
}
foreach ($pd as $tK => $Cd) {
if (!($tK === $U4)) {
goto Pp;
}
$t5 = get_user_meta($Q3, $U4, false);
if (empty($t5)) {
goto mJ;
}
if (!is_array($t5[0])) {
goto og;
}
$um = '';
foreach ($t5[0] as $zD) {
$um = $um . $zD;
if (!next($t5[0])) {
goto Pk;
}
$um = $um . " | ";
Pk:
qx:
}
a_:
return $um;
goto Ho;
og:
return $t5[0];
Ho:
mJ:
Pp:
W8:
}
FL:
bY:
return $YS;
}
static function mo_check_option_admin_referer($BQ)
{
return !empty($_POST["option"]) and $_POST["option"] == $BQ and check_admin_referer($BQ);
}
function miniorange_login_widget_saml_save_settings()
{
if (!current_user_can("manage_options")) {
goto QI;
}
if (!(is_admin() && get_option("Activated_Plugin") == "Plugin-Slug")) {
goto QV;
}
delete_option("Activated_Plugin");
update_site_option("mo_saml_message", "Go to plugin <b><a href="admin.php?page=mo_saml_settings">settings</a></b> to configure SAML Single Sign On by miniOrange.");
add_action("network_admin_notices", array($this, "mo_saml_activation_message"));
QV:
if (!self::mo_check_option_admin_referer("login_widget_saml_save_settings")) {
goto Of;
}
if (mo_saml_is_extension_installed("curl")) {
goto yk;
}
update_site_option("mo_saml_message", "ERROR: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP cURL extension</a> is not installed or disabled. Save Identity Provider Configuration failed.");
$this->mo_saml_show_error_message();
return;
yk:
$SL = '';
$Ta = '';
$Qm = '';
$Gg = '';
$cd = '';
$y1 = '';
$On = '';
$u7 = '';
$vl = '';
if (empty($_POST["saml_identity_name"]) || empty($_POST["saml_login_url"]) || empty($_POST["saml_issuer"])) {
goto Z1;
}
if (!preg_match("/^\w*$/", $_POST["saml_identity_name"])) {
goto rI;
}
$SL = htmlspecialchars(trim($_POST["saml_identity_name"]));
$Qm = htmlspecialchars(trim($_POST["saml_login_url"]));
if (!array_key_exists("saml_login_binding_type", $_POST)) {
goto yh;
}
$Ta = htmlspecialchars($_POST["saml_login_binding_type"]);
yh:
if (!array_key_exists("saml_logout_binding_type", $_POST)) {
goto B6;
}
$Gg = htmlspecialchars($_POST["saml_logout_binding_type"]);
B6:
if (!array_key_exists("saml_logout_url", $_POST)) {
goto ke;
}
$cd = htmlspecialchars(trim($_POST["saml_logout_url"]));
ke:
$y1 = htmlspecialchars(trim($_POST["saml_issuer"]));
$f1 = htmlspecialchars(trim($_POST["mo_saml_identity_provider_identifier_name"]));
$On = maybe_unserialize($_POST["saml_x509_certificate"]);
$vl = htmlspecialchars($_POST["saml_nameid_format"]);
goto pJ;
rI:
update_site_option("mo_saml_message", "Please match the requested format for Identity Provider Name. Only alphabets, numbers and underscore is allowed.");
$this->mo_saml_show_error_message();
return;
pJ:
goto X7;
Z1:
update_site_option("mo_saml_message", "All the fields are required. Please enter valid entries.");
$this->mo_saml_show_error_message();
return;
X7:
update_site_option("saml_identity_name", $SL);
update_site_option("saml_login_binding_type", $Ta);
update_site_option("saml_login_url", $Qm);
update_site_option("saml_logout_binding_type", $Gg);
update_site_option("saml_logout_url", $cd);
update_site_option("saml_issuer", $y1);
update_site_option("saml_nameid_format", $vl);
update_site_option("mo_saml_identity_provider_identifier_name", $f1);
if (!empty($_POST["saml_request_signed"])) {
goto K4;
}
update_site_option("saml_request_signed", "unchecked");
goto Jf;
K4:
update_site_option("saml_request_signed", "checked");
Jf:
foreach ($On as $tK => $Cd) {
if (empty($Cd)) {
goto eQ;
}
$On[$tK] = Utilities::sanitize_certificate($Cd);
if (@openssl_x509_read($On[$tK])) {
goto Bt;
}
update_site_option("mo_saml_message", "Invalid certificate format:Please provide a valid certificate");
$this->mo_saml_show_error_message();
delete_site_option("saml_x509_certificate");
return;
Bt:
goto JX;
eQ:
unset($On[$tK]);
JX:
h1:
}
Xh:
if (!empty($On)) {
goto Qt;
}
update_site_option("mo_saml_message", "Invalid certificate format : Please provide a certificate");
$this->mo_saml_show_error_message();
return;
Qt:
if (!empty($_POST["saml_assertion_signed"])) {
goto Be;
}
update_site_option("saml_assertion_signed", "Yes");
goto B8;
Be:
update_site_option("saml_assertion_signed", "checked");
B8:
update_site_option("saml_x509_certificate", $On);
if (array_key_exists("enable_iconv", $_POST)) {
goto ey;
}
update_site_option("mo_saml_encoding_enabled", '');
goto CH;
ey:
update_site_option("mo_saml_encoding_enabled", "checked");
CH:
update_site_option("mo_saml_message", "Identity Provider details saved successfully.");
$this->mo_saml_show_success_message();
Of:
if (!self::mo_check_option_admin_referer("login_widget_saml_attribute_mapping")) {
goto Un;
}
if (mo_saml_is_extension_installed("curl")) {
goto Ls;
}
update_site_option("mo_saml_message", "ERROR: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP cURL extension</a> is not installed or disabled. Save Attribute Mapping failed.");
$this->mo_saml_show_error_message();
return;
Ls:
update_site_option("saml_am_username", htmlspecialchars(stripslashes($_POST["saml_am_username"])));
update_site_option("saml_am_email", htmlspecialchars(stripslashes($_POST["saml_am_email"])));
update_site_option("saml_am_first_name", htmlspecialchars(stripslashes($_POST["saml_am_first_name"])));
update_site_option("saml_am_last_name", htmlspecialchars(stripslashes($_POST["saml_am_last_name"])));
update_site_option("saml_am_group_name", htmlspecialchars(stripslashes($_POST["saml_am_group_name"])));
update_site_option("saml_am_display_name", htmlspecialchars(stripslashes($_POST["saml_am_display_name"])));
$pd = array();
$KL = array();
$El = array();
$cb = array();
if (empty($_POST["mo_saml_custom_attribute_keys"])) {
goto tm;
}
$KL = $_POST["mo_saml_custom_attribute_keys"];
tm:
if (empty($_POST["mo_saml_custom_attribute_values"])) {
goto YF;
}
$El = $_POST["mo_saml_custom_attribute_values"];
YF:
$xB = count($KL);
if (!($xB > 0)) {
goto tn;
}
$KL = array_map("htmlspecialchars", $KL);
$El = array_map("htmlspecialchars", $El);
$Vd = 0;
Yv:
if (!($Vd < $xB)) {
goto hk;
}
if (empty($_POST["mo_saml_display_attribute_" . $Vd])) {
goto aq;
}
array_push($cb, $Vd);
aq:
$Vd++;
goto Yv;
hk:
tn:
update_site_option("saml_show_user_attribute", $cb);
$pd = array_combine($KL, $El);
$pd = array_filter($pd);
if (!empty($pd)) {
goto r6;
}
$pd = get_site_option("mo_saml_custom_attrs_mapping");
if (empty($pd)) {
goto lA;
}
delete_site_option("mo_saml_custom_attrs_mapping");
lA:
goto ko;
r6:
update_site_option("mo_saml_custom_attrs_mapping", $pd);
ko:
update_site_option("mo_saml_message", "Attribute Mapping details saved successfully");
$this->mo_saml_show_success_message();
Un:
if (!self::mo_check_option_admin_referer("clear_attrs_list")) {
goto f8;
}
delete_site_option("mo_saml_test_config_attrs");
update_site_option("mo_saml_message", "Attributes list removed successfully");
$this->mo_saml_show_success_message();
f8:
if (!self::mo_check_option_admin_referer("mo_saml_addons_message")) {
goto hh;
}
update_option("mo_saml_show_addons_notice", 1);
hh:
if (!self::mo_check_option_admin_referer("saml_form_domain_restriction_option")) {
goto VL;
}
$Wu = !empty($_POST["mo_saml_enable_domain_restriction_login"]) ? htmlspecialchars($_POST["mo_saml_enable_domain_restriction_login"]) : '';
$yp = !empty($_POST["mo_saml_allow_deny_user_with_domain"]) ? htmlspecialchars($_POST["mo_saml_allow_deny_user_with_domain"]) : "allow";
$Yi = !empty($_POST["saml_am_email_domains"]) ? htmlspecialchars($_POST["saml_am_email_domains"]) : '';
update_site_option("mo_saml_enable_domain_restriction_login", $Wu);
update_site_option("mo_saml_allow_deny_user_with_domain", $yp);
update_site_option("saml_am_email_domains", $Yi);
update_site_option("mo_saml_message", "Domain Restriction has been saved successfully.");
$this->mo_saml_show_success_message();
VL:
if (!self::mo_check_option_admin_referer("login_widget_saml_role_mapping")) {
goto cO;
}
if (mo_saml_is_extension_installed("curl")) {
goto GM;
}
update_site_option("mo_saml_message", "ERROR: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP cURL extension</a> is not installed or disabled. Save Role Mapping failed.");
$this->mo_saml_show_error_message();
return;
GM:
if (isset($_POST["mo_apply_role_mapping_for_sites"]) && $_POST["mo_apply_role_mapping_for_sites"] == 0) {
goto ky;
}
if (!(isset($_POST["mo_apply_role_mapping_for_sites"]) && $_POST["mo_apply_role_mapping_for_sites"] == 1)) {
goto pC;
}
update_site_option("mo_apply_role_mapping_for_sites", 1);
$Ui = 0;
$H2 = array();
update_site_option("saml_am_role_mapping", $H2);
pC:
goto jw;
ky:
if (!empty($_POST["role_mapping_site"])) {
goto o2;
}
update_site_option("mo_saml_message", "Please select a site to save role mapping");
$this->mo_saml_show_error_message();
return;
o2:
update_site_option("mo_apply_role_mapping_for_sites", 0);
$Ui = htmlspecialchars($_POST["role_mapping_site"]);
jw:
if (empty($_POST["saml_am_default_user_role"])) {
goto C2;
}
$Ow = htmlspecialchars($_POST["saml_am_default_user_role"]);
C2:
if (!empty($_POST["saml_am_dont_allow_unlisted_user_role"])) {
goto UY;
}
$c9 = "unchecked";
goto Kd;
UY:
$c9 = "checked";
$Ow = false;
Kd:
if (!empty($_POST["mo_saml_dont_create_user_if_role_not_mapped"])) {
goto n9;
}
$ig = "unchecked";
$zB = "false";
goto xf;
n9:
$ig = "checked";
$c9 = "unchecked";
$Ow = false;
xf:
if (!empty($_POST["mo_saml_keep_existing_users_role"])) {
goto rq;
}
$bb = "unchecked";
goto E6;
rq:
$bb = "checked";
E6:
if (!empty($_POST["mo_saml_dont_allow_user_tologin_create_with_given_groups"])) {
goto Ya;
}
$CW = "unchecked";
goto Mo;
Ya:
$CW = "checked";
Mo:
$Z9 = '';
$XP = '';
if (empty($_POST["mo_saml_restrict_users_with_groups"])) {
goto Wf;
}
$Z9 = htmlspecialchars($_POST["mo_saml_restrict_users_with_groups"]);
Wf:
if (empty($_POST["saml_am_group_attr_values_superadmin"])) {
goto NK;
}
$XP = htmlspecialchars($_POST["saml_am_group_attr_values_superadmin"]);
NK:
$wp_roles = new WP_Roles($Ui);
$JM = $wp_roles->get_names();
$H2 = maybe_unserialize(get_site_option("saml_am_role_mapping"));
foreach ($JM as $Lk => $Un) {
$f7 = "saml_am_group_attr_values_" . $Lk;
$H2[$Ui][$Lk] = stripslashes($_POST[$f7]);
aj:
}
Wi:
$H2[$Ui]["default_role"] = $Ow;
$H2[$Ui]["dont_create_user"] = $ig;
$H2[$Ui]["dont_allow_unlisted_user"] = $c9;
$H2[$Ui]["keep_existing_users_role"] = $bb;
$H2[$Ui]["mo_saml_dont_allow_user_tologin_create_with_given_groups"] = $CW;
$H2[$Ui]["mo_saml_restrict_users_with_groups"] = $Z9;
$H2 = array_filter($H2, "filter_empty_values");
$js = false;
if (!(!empty($_POST["mo_saml_disable_role_mapping"]) and $_POST["mo_saml_disable_role_mapping"] == "true")) {
goto OL;
}
$js = true;
OL:
update_site_option("mo_saml_disable_role_mapping", $js);
update_site_option("saml_am_role_mapping", $H2);
update_site_option("mo_saml_message", "Role Mapping details saved successfully.");
update_site_option("mo_saml_super_admin_role_mapping", $XP);
$wa = maybe_unserialize(get_site_option("saml_sso_settings"));
if (!empty($wa)) {
goto pX;
}
$wa = array();
pX:
$Qu = "DEFAULT";
if (empty($_POST["role_mapping_site"])) {
goto DU;
}
$Qu = sanitize_text_field($_POST["role_mapping_site"]);
DU:
if (!(empty($wa[$Qu]) && !empty($wa["DEFAULT"]))) {
goto Yi;
}
$wa[$Qu] = $wa["DEFAULT"];
Yi:
if (array_key_exists("mo_saml_subsite_access_denied", $_POST)) {
goto Fe;
}
$uU = "false";
goto I5;
Fe:
$uU = sanitize_text_field($_POST["mo_saml_subsite_access_denied"]);
I5:
if ($uU == "true") {
goto Yn;
}
$wa[$Qu]["mo_saml_subsite_access_denied"] = '';
goto rK;
Yn:
$wa[$Qu]["mo_saml_subsite_access_denied"] = "true";
rK:
update_site_option("saml_sso_settings", $wa);
$this->mo_saml_show_success_message();
cO:
if (!self::mo_check_option_admin_referer("mo_saml_subsite_selection_for_role_mapping")) {
goto X1;
}
$WL = !empty($_POST["mo_apply_role_mapping_for_sites"]) ? htmlspecialchars($_POST["mo_apply_role_mapping_for_sites"]) : 0;
$pr = !empty($_POST["role_mapping_site"]) ? htmlspecialchars($_POST["role_mapping_site"]) : false;
update_site_option("role_mapping_site", $pr);
update_site_option("mo_apply_role_mapping_for_sites", $WL);
X1:
if (!self::mo_check_option_admin_referer("mo_saml_reset_role_mapping_attributes")) {
goto Oh;
}
update_site_option("mo_apply_role_mapping_for_sites", 0);
$H2 = array();
update_site_option("saml_am_role_mapping", $H2);
update_site_option("mo_saml_super_admin_role_mapping", '');
update_site_option("mo_saml_message", "Role Mapping has been reset successfully.");
$this->mo_saml_show_success_message();
Oh:
if (!self::mo_check_option_admin_referer("mo_saml_reset_sso_settings_option")) {
goto ay;
}
$wa = array();
update_site_option("saml_sso_settings", $wa);
update_site_option("mo_saml_message", "SSO Settings has been reset successfully for all your sub-sites.");
$this->mo_saml_show_success_message();
ay:
if (!(!empty($_POST["option"]) and $_POST["option"] == "mo_saml_update_sp_base_url_option")) {
goto xq;
}
if (!(!empty($_POST["mo_saml_sp_base_url"]) && !empty($_POST["mo_saml_sp_entity_id"]))) {
goto w2;
}
$Eq = sanitize_text_field($_POST["mo_saml_sp_base_url"]);
$yo = sanitize_text_field($_POST["mo_saml_sp_entity_id"]);
if (!(substr($Eq, -1) == "/")) {
goto wd;
}
$Eq = substr($Eq, 0, -1);
wd:
update_site_option("mo_saml_sp_base_url", $Eq);
update_site_option("mo_saml_sp_entity_id", $yo);
w2:
update_site_option("mo_saml_message", "SP Base URL updated successfully.");
$this->mo_saml_show_success_message();
xq:
if (!self::mo_check_option_admin_referer("saml_upload_metadata")) {
goto kx;
}
if (!function_exists("wp_handle_upload")) {
require_once ABSPATH . "wp-admin/includes/file.php";
}
$this->upload_metadata();
kx:
if (!self::mo_check_option_admin_referer("mo_saml_update_idp_settings_option")) {
goto rX;
}
if (!(!empty($_POST["mo_saml_sp_base_url"]) && !empty($_POST["mo_saml_sp_entity_id"]))) {
goto OM;
}
$Eq = sanitize_text_field($_POST["mo_saml_sp_base_url"]);
$yo = sanitize_text_field($_POST["mo_saml_sp_entity_id"]);
if (!(substr($Eq, -1) == "/")) {
goto CU;
}
$Eq = substr($Eq, 0, -1);
CU:
update_site_option("mo_saml_sp_base_url", $Eq);
update_site_option("mo_saml_sp_entity_id", $yo);
OM:
update_site_option("mo_saml_message", "Settings updated successfully.");
$this->mo_saml_show_success_message();
rX:
if (!self::mo_check_option_admin_referer("enable_sso_new_site_option")) {
goto CB;
}
if (!empty($_POST["enable_sso_new_site"]) and $_POST["enable_sso_new_site"] == "true") {
goto hf;
}
$df = "false";
goto l5;
hf:
$df = "true";
l5:
update_site_option("mo_saml_enable_sso_new_site", $df);
update_site_option("mo_saml_message", "Settings updated successfully.");
$this->mo_saml_show_success_message();
CB:
if (!self::mo_check_option_admin_referer("upgrade_cert")) {
goto MD;
}
$wh = file_get_contents(plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Public_Certificate);
$uc = file_get_contents(plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Private_Key);
update_site_option("mo_saml_current_cert", $wh);
update_site_option("mo_saml_current_cert_private_key", $uc);
update_site_option("mo_saml_certificate_roll_back_available", true);
update_site_option("mo_saml_message", "Certificate Upgraded successfully");
$this->mo_saml_show_success_message();
MD:
if (!self::mo_check_option_admin_referer("rollback_cert")) {
goto PT;
}
$wh = file_get_contents(plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Rollback_Public_Cert);
$uc = file_get_contents(plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Rollback_Public_Key);
update_site_option("mo_saml_current_cert", $wh);
update_site_option("mo_saml_current_cert_private_key", $uc);
update_site_option("mo_saml_message", "Certificate Roll-backed successfully");
delete_option("mo_saml_certificate_roll_back_available");
$this->mo_saml_show_success_message();
PT:
if (self::mo_check_option_admin_referer("add_custom_certificate")) {
goto CQ;
}
if (self::mo_check_option_admin_referer("mo_saml_remove_account")) {
goto qe;
}
if (!self::mo_check_option_admin_referer("add_custom_messages")) {
goto CN;
}
update_site_option("mo_saml_account_creation_disabled_msg", sanitize_text_field($_POST["mo_saml_account_creation_disabled_msg"]));
update_site_option("mo_saml_restricted_domain_error_msg", sanitize_text_field($_POST["mo_saml_restricted_domain_error_msg"]));
update_site_option("mo_saml_message", "Configuration has been saved successfully.");
$this->mo_saml_show_success_message();
CN:
goto TH;
qe:
$this->mo_sso_saml_deactivate();
add_site_option("mo_saml_registration_status", "removed_account");
$tX = add_query_arg(array("tab" => "login"), $_SERVER["REQUEST_URI"]);
header("Location: " . $tX);
TH:
goto uH;
CQ:
$wh = file_get_contents(plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Public_Certificate);
$uc = file_get_contents(plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Private_Key);
if (!empty($_POST["submit"]) and $_POST["submit"] == "Upload") {
goto pG;
}
if (!(!empty($_POST["submit"]) and $_POST["submit"] == "Reset")) {
goto Ny;
}
delete_site_option("mo_saml_custom_cert");
delete_site_option("mo_saml_custom_cert_private_key");
update_site_option("mo_saml_current_cert", $wh);
update_site_option("mo_saml_current_cert_private_key", $uc);
update_site_option("mo_saml_message", "Reset Certificate successfully.");
$this->mo_saml_show_success_message();
Ny:
goto y7;
pG:
if (!@openssl_x509_read($_POST["saml_public_x509_certificate"])) {
goto P8;
}
if (!@openssl_x509_check_private_key($_POST["saml_public_x509_certificate"], $_POST["saml_private_x509_certificate"])) {
goto S0;
}
if (openssl_x509_read($_POST["saml_public_x509_certificate"]) && openssl_x509_check_private_key($_POST["saml_public_x509_certificate"], $_POST["saml_private_x509_certificate"])) {
goto g9;
}
goto g0;
P8:
update_site_option("mo_saml_message", "Invalid Certificate format. Please enter a valid certificate.");
$this->mo_saml_show_error_message();
return;
goto g0;
S0:
update_site_option("mo_saml_message", "Invalid Private Key.");
$this->mo_saml_show_error_message();
return;
goto g0;
g9:
$Mg = $_POST["saml_public_x509_certificate"];
$J9 = $_POST["saml_private_x509_certificate"];
update_site_option("mo_saml_custom_cert", $Mg);
update_site_option("mo_saml_custom_cert_private_key", $J9);
update_site_option("mo_saml_current_cert", $Mg);
update_site_option("mo_saml_current_cert_private_key", $J9);
update_site_option("mo_saml_message", "Custom Certificate updated successfully.");
$this->mo_saml_show_success_message();
g0:
y7:
uH:
if (!self::mo_check_option_admin_referer("manage_sso_sites")) {
goto n0;
}
$oL = Utilities::get_sites();
$na = Utilities::get_active_sites();
$YL = false;
$lT = false;
if (!empty($_POST["enableAll"]) and $_POST["enableAll"] == "true") {
goto ig;
}
if (!(!empty($_POST["disableAll"]) and $_POST["disableAll"] == "true")) {
goto k0;
}
$lT = true;
k0:
goto oh;
ig:
$YL = true;
oh:
foreach ($oL as $Qu) {
$Ui = $Qu->blog_id;
if ($YL) {
goto T_;
}
if ($lT) {
goto tW;
}
if (empty($_POST[$Ui])) {
goto zd;
}
if ($_POST[$Ui] == "false") {
goto Tp;
}
if ($_POST[$Ui] == "true") {
goto sv;
}
goto yD;
Tp:
$tK = array_search($Ui, $na);
if (!($tK !== false)) {
goto t6;
}
unset($na[$tK]);
t6:
goto yD;
sv:
if (Utilities::mo_saml_in_array($Ui, $na)) {
goto OC;
}
array_push($na, $Ui);
OC:
yD:
zd:
goto T5;
T_:
if (Utilities::mo_saml_in_array($Ui, $na)) {
goto of;
}
array_push($na, $Ui);
of:
goto T5;
tW:
$tK = array_search($Ui, $na);
if (!($tK !== false)) {
goto bf;
}
unset($na[$tK]);
bf:
T5:
T4:
}
mu:
$xA = Utilities::get_main_subsite_id();
if (Utilities::mo_saml_in_array($xA, $na)) {
goto C6;
}
array_push($na, $xA);
C6:
update_site_option("mo_enable_sso_sites", $na);
n0:
if (!self::mo_check_option_admin_referer("mo_saml_relay_state_option")) {
goto oI;
}
$Xn = esc_url_raw(filter_var($_POST["mo_saml_relay_state"], FILTER_SANITIZE_URL));
$wa = maybe_unserialize(get_site_option("saml_sso_settings"));
if ($wa) {
goto cj;
}
$wa = array();
cj:
$Qu = "DEFAULT";
if (empty($_POST["site"])) {
goto Mn;
}
$Qu = htmlspecialchars($_POST["site"]);
Mn:
if (!(empty($wa[$Qu]) && !empty($wa["DEFAULT"]))) {
goto va;
}
$wa[$Qu] = $wa["DEFAULT"];
va:
$wa[$Qu]["mo_saml_relay_state"] = $Xn;
update_site_option("saml_sso_settings", $wa);
update_site_option("mo_saml_message", "Relay State updated successfully.");
$this->mo_saml_show_success_message();
oI:
if (!self::mo_check_option_admin_referer("mo_saml_widget_option")) {
goto K1;
}
$wa = maybe_unserialize(get_site_option("saml_sso_settings"));
if ($wa) {
goto OG;
}
$wa = array();
OG:
$Qu = "DEFAULT";
if (empty($_POST["site"])) {
goto jT;
}
$Qu = htmlspecialchars($_POST["site"]);
jT:
if (!(empty($wa[$Qu]) && !empty($wa["DEFAULT"]))) {
goto aa;
}
$wa[$Qu] = $wa["DEFAULT"];
aa:
$NI = sanitize_text_field($_POST["mo_saml_custom_login_text"]);
$wa[$Qu]["mo_saml_custom_login_text"] = stripcslashes($NI);
$TN = sanitize_text_field($_POST["mo_saml_custom_greeting_text"]);
$wa[$Qu]["mo_saml_custom_greeting_text"] = stripcslashes($TN);
$pz = htmlspecialchars(stripslashes($_POST["mo_saml_greeting_name"]));
$wa[$Qu]["mo_saml_greeting_name"] = $pz;
$Eu = sanitize_text_field($_POST["mo_saml_custom_logout_text"]);
$wa[$Qu]["mo_saml_custom_logout_text"] = stripcslashes($Eu);
update_site_option("saml_sso_settings", $wa);
update_site_option("mo_saml_message", "Widget Settings updated successfully.");
$this->mo_saml_show_success_message();
K1:
if (!self::mo_check_option_admin_referer("sso_settings_site_option")) {
goto eG;
}
if (empty($_POST["sso_settings_site"])) {
goto ly;
}
update_site_option("sso_settings_site", htmlspecialchars($_POST["sso_settings_site"]));
ly:
eG:
if (!self::mo_check_option_admin_referer("mo_saml_register_customer")) {
goto SB;
}
if (mo_saml_is_extension_installed("curl")) {
goto jv;
}
update_site_option("mo_saml_message", "ERROR: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP cURL extension</a> is not installed or disabled. Registration failed.");
$this->mo_saml_show_error_message();
return;
jv:
$ni = '';
$g1 = '';
$o7 = '';
$Dg = '';
if (empty($_POST["email"]) || empty($_POST["password"]) || empty($_POST["confirmPassword"])) {
goto eE;
}
if (strlen($_POST["password"]) < 6 || strlen($_POST["confirmPassword"]) < 6) {
goto Q3;
}
if ($this->checkPasswordPattern(strip_tags($_POST["password"]))) {
goto xx;
}
$ni = sanitize_email($_POST["email"]);
if (!array_key_exists("phone", $_POST)) {
goto BD;
}
$g1 = sanitize_text_field($_POST["phone"]);
BD:
$o7 = stripslashes(strip_tags($_POST["password"]));
$Dg = stripslashes(strip_tags($_POST["confirmPassword"]));
goto Bi;
xx:
update_site_option("mo_saml_message", "Minimum 6 characters should be present. Maximum 15 characters should be present. Only following symbols (!@#.$%^&*-_) should be present.");
$this->mo_saml_show_error_message();
return;
Bi:
goto mP;
Q3:
update_site_option("mo_saml_message", "Choose a password with minimum length 6.");
$this->mo_saml_show_error_message();
return;
mP:
goto qT;
eE:
update_site_option("mo_saml_message", "All the fields are required. Please enter valid entries.");
$this->mo_saml_show_error_message();
return;
qT:
update_site_option("mo_saml_admin_email", $ni);
update_site_option("mo_saml_admin_phone", $g1);
if (strcmp($o7, $Dg) == 0) {
goto gR;
}
update_site_option("mo_saml_message", "Passwords do not match.");
delete_site_option("mo_saml_verify_customer");
$this->mo_saml_show_error_message();
goto qA;
gR:
update_site_option("mo_saml_admin_password", $o7);
$ni = get_site_option("mo_saml_admin_email");
$xb = new CustomerSaml();
$qF = $xb->check_customer($this);
if ($qF) {
goto bQ;
}
return;
bQ:
$t5 = json_decode($qF, true);
if (strcasecmp($t5["status"], "CUSTOMER_NOT_FOUND") == 0) {
goto I6;
}
$this->get_current_customer();
goto vT;
I6:
$t5 = json_decode($xb->send_otp_token($ni, '', $this), true);
if (strcasecmp($t5["status"], "SUCCESS") == 0) {
goto eN;
}
update_site_option("mo_saml_message", "There was an error in sending email. Please verify your email and try again.");
update_site_option("mo_saml_registration_status", "MO_OTP_DELIVERED_FAILURE_EMAIL");
$this->mo_saml_show_error_message();
goto EE;
eN:
update_site_option("mo_saml_message", " A one time passcode is sent to " . get_site_option("mo_saml_admin_email") . ". Please enter the otp here to verify your email.");
update_site_option("mo_saml_transactionId", $t5["txId"]);
update_site_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_EMAIL");
$this->mo_saml_show_success_message();
EE:
vT:
qA:
SB:
if (!self::mo_check_option_admin_referer("mo_saml_validate_otp")) {
goto N0;
}
if (mo_saml_is_extension_installed("curl")) {
goto VK;
}
update_site_option("mo_saml_message", "ERROR: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP cURL extension</a> is not installed or disabled. Validate OTP failed.");
$this->mo_saml_show_error_message();
return;
VK:
$Pp = '';
if (empty($_POST["otp_token"])) {
goto J0;
}
$Pp = sanitize_text_field($_POST["otp_token"]);
goto rT;
J0:
update_site_option("mo_saml_message", "Please enter a value in otp field.");
$this->mo_saml_show_error_message();
return;
rT:
$xb = new CustomerSaml();
$t5 = json_decode($xb->validate_otp_token(get_site_option("mo_saml_transactionId"), $Pp, $this), true);
if (strcasecmp($t5["status"], "SUCCESS") == 0) {
goto wi;
}
update_site_option("mo_saml_message", "Invalid one time passcode. Please enter a valid otp.");
$this->mo_saml_show_error_message();
goto PX;
wi:
$this->create_customer();
PX:
N0:
if (self::mo_check_option_admin_referer("mo_saml_verify_customer")) {
goto aV;
}
if (self::mo_check_option_admin_referer("mo_saml_contact_us_query_option")) {
goto H0;
}
if (self::mo_check_option_admin_referer("mo_saml_resend_otp_email")) {
goto Dj;
}
if (self::mo_check_option_admin_referer("mo_saml_resend_otp_phone")) {
goto kj;
}
if (self::mo_check_option_admin_referer("mo_saml_go_back")) {
goto gg;
}
if (self::mo_check_option_admin_referer("mo_saml_register_with_phone_option")) {
goto Dz;
}
if (self::mo_check_option_admin_referer("mo_saml_registered_only_access_option")) {
goto YR;
}
if (self::mo_check_option_admin_referer("mo_saml_force_authentication_option")) {
goto TV;
}
if (self::mo_check_option_admin_referer("mo_saml_enable_login_redirect_option")) {
goto GP;
}
if (self::mo_check_option_admin_referer("mo_saml_redirect_to_wp_login_option")) {
goto HX;
}
if (self::mo_check_option_admin_referer("mo_saml_add_sso_button_wp_option")) {
goto u1;
}
if (self::mo_check_option_admin_referer("mo_saml_use_button_as_shortcode_option")) {
goto y2;
}
if (self::mo_check_option_admin_referer("mo_saml_use_button_as_widget_option")) {
goto fh;
}
if (self::mo_check_option_admin_referer("mo_saml_custom_button_option")) {
goto sH;
}
if (self::mo_check_option_admin_referer("mo_saml_allow_wp_signin_option")) {
goto ra;
}
if (!self::mo_check_option_admin_referer("mo_saml_forgot_password_form_option")) {
goto se;
}
if (mo_saml_is_extension_installed("curl")) {
goto Cu;
}
update_site_option("mo_saml_message", "ERROR: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP cURL extension</a> is not installed or disabled. Resend OTP failed.");
$this->mo_saml_show_error_message();
return;
Cu:
$ni = get_site_option("mo_saml_admin_email");
$xb = new Customersaml();
$t5 = json_decode($xb->mo_saml_forgot_password($ni, $this), true);
if (strcasecmp($t5["status"], "SUCCESS") == 0) {
goto k3;
}
update_site_option("mo_saml_message", "An error occured while processing your request. Please Try again.");
$this->mo_saml_show_error_message();
goto gI;
k3:
update_site_option("mo_saml_message", "Your password has been reset successfully. Please enter the new password sent to " . $ni . ".");
$this->mo_saml_show_success_message();
gI:
se:
goto R8;
ra:
$wa = maybe_unserialize(get_site_option("saml_sso_settings"));
if (!empty($wa)) {
goto F9;
}
$wa = array();
F9:
$Qu = "DEFAULT";
if (empty($_POST["site"])) {
goto Gw;
}
$Qu = htmlspecialchars($_POST["site"]);
Gw:
if (!(empty($wa[$Qu]) && !empty($wa["DEFAULT"]))) {
goto Sl;
}
$wa[$Qu] = $wa["DEFAULT"];
Sl:
$mY = "false";
if (array_key_exists("mo_saml_allow_wp_signin", $_POST)) {
goto yY;
}
$HG = "false";
goto ta;
yY:
$HG = htmlspecialchars($_POST["mo_saml_allow_wp_signin"]);
ta:
if ($HG == "true") {
goto oZ;
}
$wa[$Qu]["mo_saml_allow_wp_signin"] = '';
goto DK;
oZ:
$wa[$Qu]["mo_saml_allow_wp_signin"] = "true";
if (!array_key_exists("mo_saml_backdoor_url", $_POST)) {
goto en;
}
$mY = htmlspecialchars(trim($_POST["mo_saml_backdoor_url"]));
en:
DK:
$wa[$Qu]["mo_saml_backdoor_url"] = $mY;
update_site_option("saml_sso_settings", $wa);
update_site_option("mo_saml_message", "Sign In settings updated.");
$this->mo_saml_show_success_message();
R8:
goto ai;
sH:
$wa = maybe_unserialize(get_site_option("saml_sso_settings"));
if ($wa) {
goto xa;
}
$wa = array();
xa:
$Qu = "DEFAULT";
if (empty($_POST["site"])) {
goto Kx;
}
$Qu = htmlspecialchars($_POST["site"]);
Kx:
if (!(empty($wa[$Qu]) && !empty($wa["DEFAULT"]))) {
goto yL;
}
$wa[$Qu] = $wa["DEFAULT"];
yL:
$ux = '';
$Bv = '';
$kj = '';
$Jg = '';
$Di = '';
$PS = '';
$kZ = '';
$Rj = '';
$XY = '';
$yc = '';
$MV = "above";
if (!(array_key_exists("mo_saml_button_size", $_POST) && !empty($_POST["mo_saml_button_size"]))) {
goto Vz;
}
$kj = htmlspecialchars($_POST["mo_saml_button_size"]);
Vz:
if (!(array_key_exists("mo_saml_button_width", $_POST) && !empty($_POST["mo_saml_button_width"]))) {
goto fd;
}
$Jg = htmlspecialchars($_POST["mo_saml_button_width"]);
fd:
if (!(array_key_exists("mo_saml_button_height", $_POST) && !empty($_POST["mo_saml_button_height"]))) {
goto RO;
}
$Di = htmlspecialchars($_POST["mo_saml_button_height"]);
RO:
if (!(array_key_exists("mo_saml_button_curve", $_POST) && !empty($_POST["mo_saml_button_curve"]))) {
goto sc;
}
$PS = htmlspecialchars($_POST["mo_saml_button_curve"]);
sc:
if (!array_key_exists("mo_saml_button_color", $_POST)) {
goto de;
}
$kZ = htmlspecialchars($_POST["mo_saml_button_color"]);
de:
if (!array_key_exists("mo_saml_button_theme", $_POST)) {
goto md;
}
$ux = htmlspecialchars($_POST["mo_saml_button_theme"]);
md:
if (!array_key_exists("mo_saml_button_text", $_POST)) {
goto Lv;
}
$Rj = htmlspecialchars($_POST["mo_saml_button_text"]);
if (!(empty($Rj) || $Rj == "##IDP##")) {
goto qg;
}
$Rj = "##IDP##";
qg:
$BM = get_site_option("saml_identity_name");
$Rj = str_replace("##IDP##", $BM, $Rj);
Lv:
if (!array_key_exists("mo_saml_font_color", $_POST)) {
goto s0;
}
$XY = htmlspecialchars($_POST["mo_saml_font_color"]);
s0:
if (!array_key_exists("mo_saml_font_size", $_POST)) {
goto et;
}
$yc = htmlspecialchars($_POST["mo_saml_font_size"]);
et:
if (!array_key_exists("sso_button_login_form_position", $_POST)) {
goto KI;
}
$MV = htmlspecialchars($_POST["sso_button_login_form_position"]);
KI:
$wa[$Qu]["mo_saml_button_theme"] = $ux;
$wa[$Qu]["mo_saml_button_size"] = $kj;
$wa[$Qu]["mo_saml_button_width"] = $Jg;
$wa[$Qu]["mo_saml_button_height"] = $Di;
$wa[$Qu]["mo_saml_button_curve"] = $PS;
$wa[$Qu]["mo_saml_button_color"] = $kZ;
$wa[$Qu]["mo_saml_button_text"] = $Rj;
$wa[$Qu]["mo_saml_font_color"] = $XY;
$wa[$Qu]["mo_saml_font_size"] = $yc;
$wa[$Qu]["sso_button_login_form_position"] = $MV;
update_site_option("saml_sso_settings", $wa);
update_site_option("mo_saml_message", "Sign In settings updated.");
$this->mo_saml_show_success_message();
ai:
goto eR;
fh:
if (mo_saml_is_sp_configured()) {
goto VJ;
}
update_site_option("mo_saml_message", "Please complete " . addLink("Service Provider", add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"])) . " configuration first.");
$this->mo_saml_show_error_message();
goto su;
VJ:
$wa = maybe_unserialize(get_site_option("saml_sso_settings"));
if ($wa) {
goto Y3;
}
$wa = array();
Y3:
$Qu = "DEFAULT";
if (empty($_POST["site"])) {
goto kh;
}
$Qu = htmlspecialchars($_POST["site"]);
kh:
if (!(empty($wa[$Qu]) && !empty($wa["DEFAULT"]))) {
goto Es;
}
$wa[$Qu] = $wa["DEFAULT"];
Es:
if (array_key_exists("mo_saml_use_button_as_widget", $_POST)) {
goto Dw;
}
$ST = "false";
goto nU;
Dw:
$ST = htmlspecialchars($_POST["mo_saml_use_button_as_widget"]);
nU:
$wa[$Qu]["mo_saml_use_button_as_widget"] = $ST;
update_site_option("saml_sso_settings", $wa);
update_site_option("mo_saml_message", "Sign in options updated.");
$this->mo_saml_show_success_message();
su:
eR:
goto Ii;
y2:
if (mo_saml_is_sp_configured()) {
goto dX;
}
update_site_option("mo_saml_message", "Please complete " . addLink("Service Provider", add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"])) . " configuration first.");
$this->mo_saml_show_error_message();
goto Ts;
dX:
$wa = maybe_unserialize(get_site_option("saml_sso_settings"));
if ($wa) {
goto ZQ;
}
$wa = array();
ZQ:
$Qu = "DEFAULT";
if (empty($_POST["site"])) {
goto HM;
}
$Qu = htmlspecialchars($_POST["site"]);
HM:
if (!(empty($wa[$Qu]) && !empty($wa["DEFAULT"]))) {
goto EV;
}
$wa[$Qu] = $wa["DEFAULT"];
EV:
if (array_key_exists("mo_saml_use_button_as_shortcode", $_POST)) {
goto UA;
}
$ST = "false";
goto a2;
UA:
$ST = htmlspecialchars($_POST["mo_saml_use_button_as_shortcode"]);
a2:
$wa[$Qu]["mo_saml_use_button_as_shortcode"] = $ST;
update_site_option("saml_sso_settings", $wa);
update_site_option("mo_saml_message", "Sign in options updated.");
$this->mo_saml_show_success_message();
Ts:
Ii:
goto Bw;
u1:
if (mo_saml_is_sp_configured()) {
goto Nx;
}
update_site_option("mo_saml_message", "Please complete " . addLink("Service Provider", add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"])) . " configuration first.");
$this->mo_saml_show_error_message();
goto Od;
Nx:
$wa = maybe_unserialize(get_site_option("saml_sso_settings"));
if ($wa) {
goto Mu;
}
$wa = array();
Mu:
$Qu = "DEFAULT";
if (empty($_POST["site"])) {
goto eH;
}
$Qu = htmlspecialchars($_POST["site"]);
eH:
if (!(empty($wa[$Qu]) && !empty($wa["DEFAULT"]))) {
goto bk;
}
$wa[$Qu] = $wa["DEFAULT"];
bk:
if (array_key_exists("mo_saml_add_sso_button_wp", $_POST)) {
goto Q7;
}
$vF = "false";
goto ZI;
Q7:
$vF = htmlspecialchars($_POST["mo_saml_add_sso_button_wp"]);
ZI:
$wa[$Qu]["mo_saml_add_sso_button_wp"] = $vF;
update_site_option("saml_sso_settings", $wa);
update_site_option("mo_saml_message", "Sign in options updated.");
$this->mo_saml_show_success_message();
Od:
Bw:
goto DE;
HX:
if (!mo_saml_is_sp_configured()) {
goto p9;
}
$wa = maybe_unserialize(get_site_option("saml_sso_settings"));
if ($wa) {
goto Sa;
}
$wa = array();
Sa:
$Qu = "DEFAULT";
if (empty($_POST["site"])) {
goto qa;
}
$Qu = htmlspecialchars($_POST["site"]);
qa:
if (!(empty($wa[$Qu]) && !empty($wa["DEFAULT"]))) {
goto kk;
}
$wa[$Qu] = $wa["DEFAULT"];
kk:
if (array_key_exists("mo_saml_redirect_to_wp_login", $_POST)) {
goto ks;
}
$Hl = "false";
goto bJ;
ks:
$Hl = htmlspecialchars($_POST["mo_saml_redirect_to_wp_login"]);
bJ:
$wa[$Qu]["mo_saml_redirect_to_wp_login"] = $Hl;
update_site_option("saml_sso_settings", $wa);
update_site_option("mo_saml_message", "Sign in options updated.");
$this->mo_saml_show_success_message();
p9:
DE:
goto fM;
GP:
if (mo_saml_is_sp_configured()) {
goto BN;
}
update_site_option("mo_saml_message", "Please complete <a href="" . add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"]) . "" />Service Provider</a> configuration first.");
$this->mo_saml_show_error_message();
goto vG;
BN:
$wa = maybe_unserialize(get_site_option("saml_sso_settings"));
if (!empty($wa)) {
goto XL;
}
$wa = array();
XL:
$Qu = "DEFAULT";
if (empty($_POST["site"])) {
goto G_;
}
$Qu = htmlspecialchars($_POST["site"]);
G_:
if (!(empty($wa[$Qu]) && !empty($wa["DEFAULT"]))) {
goto s6;
}
$wa[$Qu] = $wa["DEFAULT"];
s6:
if (array_key_exists("mo_saml_enable_login_redirect", $_POST)) {
goto Mz;
}
$KK = "false";
goto mS;
Mz:
$KK = htmlspecialchars($_POST["mo_saml_enable_login_redirect"]);
mS:
if ($KK == "true") {
goto BA;
}
$wa[$Qu]["mo_saml_enable_login_redirect"] = '';
$wa[$Qu]["mo_saml_allow_wp_signin"] = '';
goto dv;
BA:
$wa[$Qu]["mo_saml_enable_login_redirect"] = "true";
$wa[$Qu]["mo_saml_allow_wp_signin"] = "true";
dv:
update_site_option("saml_sso_settings", $wa);
update_site_option("mo_saml_message", "Sign in options updated.");
$this->mo_saml_show_success_message();
vG:
fM:
goto wc;
TV:
if (mo_saml_is_sp_configured()) {
goto ct;
}
update_site_option("mo_saml_message", "Please complete <a href="" . add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"]) . "" />Service Provider</a> configuration first.");
$this->mo_saml_show_error_message();
goto c5;
ct:
$wa = maybe_unserialize(get_site_option("saml_sso_settings"));
if (!empty($wa)) {
goto Ri;
}
$wa = array();
Ri:
$Qu = "DEFAULT";
if (empty($_POST["site"])) {
goto GT;
}
$Qu = htmlspecialchars($_POST["site"]);
GT:
if (!(empty($wa[$Qu]) && !empty($wa["DEFAULT"]))) {
goto tN;
}
$wa[$Qu] = $wa["DEFAULT"];
tN:
if (array_key_exists("mo_saml_force_authentication", $_POST)) {
goto J3;
}
$KK = "false";
goto hV;
J3:
$KK = htmlspecialchars($_POST["mo_saml_force_authentication"]);
hV:
if ($KK == "true") {
goto PI;
}
$wa[$Qu]["mo_saml_force_authentication"] = '';
goto Ha;
PI:
$wa[$Qu]["mo_saml_force_authentication"] = "true";
Ha:
update_site_option("saml_sso_settings", $wa);
update_site_option("mo_saml_message", "Sign in options updated.");
$this->mo_saml_show_success_message();
c5:
wc:
goto yx;
YR:
if (mo_saml_is_sp_configured()) {
goto SR;
}
update_site_option("mo_saml_message", "Please complete <a href="" . add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"]) . "" />Service Provider</a> configuration first.");
$this->mo_saml_show_error_message();
goto jQ;
SR:
if (array_key_exists("mo_saml_registered_only_access", $_POST)) {
goto m9;
}
$KK = "false";
goto EX;
m9:
$KK = htmlspecialchars($_POST["mo_saml_registered_only_access"]);
EX:
$wa = maybe_unserialize(get_site_option("saml_sso_settings"));
if (!empty($wa)) {
goto fa;
}
$wa = array();
fa:
$Qu = "DEFAULT";
if (empty($_POST["site"])) {
goto vY;
}
$Qu = htmlspecialchars($_POST["site"]);
vY:
if (!(empty($wa[$Qu]) && !empty($wa["DEFAULT"]))) {
goto l4;
}
$wa[$Qu] = $wa["DEFAULT"];
l4:
if ($KK == "true") {
goto tF;
}
$wa[$Qu]["mo_saml_registered_only_access"] = '';
goto XF;
tF:
$wa[$Qu]["mo_saml_registered_only_access"] = "true";
XF:
update_site_option("saml_sso_settings", $wa);
update_site_option("mo_saml_message", "Sign in options updated.");
$this->mo_saml_show_success_message();
jQ:
yx:
goto LN;
Dz:
if (mo_saml_is_extension_installed("curl")) {
goto G8;
}
update_site_option("mo_saml_message", "ERROR: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP cURL extension</a> is not installed or disabled. Resend OTP failed.");
$this->mo_saml_show_error_message();
return;
G8:
$g1 = sanitize_text_field($_POST["phone"]);
$g1 = str_replace(" ", '', $g1);
$g1 = str_replace("-", '', $g1);
update_site_option("mo_saml_admin_phone", $g1);
$xb = new CustomerSaml();
$t5 = json_decode($xb->send_otp_token('', $g1, $this, FALSE, TRUE), true);
if (strcasecmp($t5["status"], "SUCCESS") == 0) {
goto Jj;
}
update_site_option("mo_saml_message", "There was an error in sending SMS. Please click on Resend OTP to try again.");
update_site_option("mo_saml_registration_status", "MO_OTP_DELIVERED_FAILURE_PHONE");
$this->mo_saml_show_error_message();
goto NI;
Jj:
update_site_option("mo_saml_message", " A one time passcode is sent to " . get_site_option("mo_saml_admin_phone") . ". Please enter the otp here to verify your email.");
update_site_option("mo_saml_transactionId", $t5["txId"]);
update_site_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_PHONE");
$this->mo_saml_show_success_message();
NI:
LN:
goto Tx;
gg:
update_site_option("mo_saml_registration_status", '');
update_site_option("mo_saml_verify_customer", '');
delete_site_option("mo_saml_admin_customer_key");
delete_site_option("mo_saml_admin_api_key");
delete_site_option("mo_saml_customer_token");
delete_site_option("mo_saml_new_registration");
delete_site_option("mo_saml_admin_email");
delete_site_option("mo_saml_admin_phone");
delete_site_option("sml_lk");
delete_site_option("t_site_status");
delete_site_option("site_ck_l");
delete_site_option("no_sbs");
delete_site_option("user_alert_email_sent");
delete_site_option("license_alert_email_sent");
delete_site_option("mo_saml_alert_sent_for_one");
delete_site_option("mo_saml_alert_sent_for_two");
delete_site_option("mo_saml_usr_lmt");
Tx:
goto fK;
kj:
if (mo_saml_is_extension_installed("curl")) {
goto Pq;
}
update_site_option("mo_saml_message", "ERROR: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP cURL extension</a> is not installed or disabled. Resend OTP failed.");
$this->mo_saml_show_error_message();
return;
Pq:
$g1 = get_site_option("mo_saml_admin_phone");
$xb = new CustomerSaml();
$t5 = json_decode($xb->send_otp_token('', $g1, $this, FALSE, TRUE), true);
if (strcasecmp($t5["status"], "SUCCESS") == 0) {
goto Eg;
}
update_site_option("mo_saml_message", "There was an error in sending email. Please click on Resend OTP to try again.");
update_site_option("mo_saml_registration_status", "MO_OTP_DELIVERED_FAILURE_PHONE");
$this->mo_saml_show_error_message();
goto By;
Eg:
update_site_option("mo_saml_message", " A one time passcode is sent to " . $g1 . " again. Please check if you got the otp and enter it here.");
update_site_option("mo_saml_transactionId", $t5["txId"]);
update_site_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_PHONE");
$this->mo_saml_show_success_message();
By:
fK:
goto w_;
Dj:
if (mo_saml_is_extension_installed("curl")) {
goto F8;
}
update_site_option("mo_saml_message", "ERROR: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP cURL extension</a> is not installed or disabled. Resend OTP failed.");
$this->mo_saml_show_error_message();
return;
F8:
$ni = get_site_option("mo_saml_admin_email");
$xb = new CustomerSaml();
$t5 = json_decode($xb->send_otp_token($ni, '', $this), true);
if (strcasecmp($t5["status"], "SUCCESS") == 0) {
goto Ko;
}
update_site_option("mo_saml_message", "There was an error in sending email. Please click on Resend OTP to try again.");
update_site_option("mo_saml_registration_status", "MO_OTP_DELIVERED_FAILURE_EMAIL");
$this->mo_saml_show_error_message();
goto HK;
Ko:
update_site_option("mo_saml_message", " A one time passcode is sent to " . get_site_option("mo_saml_admin_email") . " again. Please check if you got the otp and enter it here.");
update_site_option("mo_saml_transactionId", $t5["txId"]);
update_site_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_EMAIL");
$this->mo_saml_show_success_message();
HK:
w_:
goto Qh;
H0:
if (mo_saml_is_extension_installed("curl")) {
goto Xe;
}
update_site_option("mo_saml_message", "ERROR: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP cURL extension</a> is not installed or disabled. Query submit failed.");
$this->mo_saml_show_error_message();
return;
Xe:
$ni = htmlspecialchars($_POST["mo_saml_contact_us_email"]);
$g1 = htmlspecialchars($_POST["mo_saml_contact_us_phone"]);
$HQ = htmlspecialchars($_POST["mo_saml_contact_us_query"]);
if (array_key_exists("send_plugin_config", $_POST) === true) {
goto Hf;
}
update_site_option("send_plugin_config", "off");
goto d6;
Hf:
$Mj = miniorange_import_export(true, true);
$HQ .= $Mj;
delete_site_option("send_plugin_config");
d6:
$xb = new CustomerSaml();
if (empty($ni) || empty($HQ)) {
goto LE;
}
$aT = $xb->submit_contact_us($ni, $g1, $HQ, $this);
if ($aT == false) {
goto uy;
}
update_site_option("mo_saml_message", "Thanks for getting in touch! We shall get back to you shortly.");
$this->mo_saml_show_success_message();
goto jl;
uy:
update_site_option("mo_saml_message", "Your query could not be submitted. Please try again.");
$this->mo_saml_show_error_message();
jl:
goto Oc;
LE:
update_site_option("mo_saml_message", "Please fill up Email and Query fields to submit your query.");
$this->mo_saml_show_error_message();
Oc:
Qh:
goto pV;
aV:
if (mo_saml_is_extension_installed("curl")) {
goto Pb;
}
update_site_option("mo_saml_message", "ERROR: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP cURL extension</a> is not installed or disabled. Login failed.");
$this->mo_saml_show_error_message();
return;
Pb:
$ni = '';
$o7 = '';
if (empty($_POST["email"]) || empty($_POST["password"])) {
goto fS;
}
if ($this->checkPasswordPattern(strip_tags($_POST["password"]))) {
goto Pd;
}
$ni = sanitize_email($_POST["email"]);
$o7 = stripslashes(strip_tags($_POST["password"]));
goto R5;
Pd:
update_site_option("mo_saml_message", "Minimum 6 characters should be present. Maximum 15 characters should be present. Only following symbols (!@#.$%^&*-_) should be present.");
$this->mo_saml_show_error_message();
return;
R5:
goto rQ;
fS:
update_site_option("mo_saml_message", "All the fields are required. Please enter valid entries.");
$this->mo_saml_show_error_message();
return;
rQ:
update_site_option("mo_saml_admin_email", $ni);
update_site_option("mo_saml_admin_password", $o7);
$xb = new Customersaml();
$t5 = $xb->get_customer_key($this);
if ($t5) {
goto ps;
}
return;
ps:
$LV = json_decode($t5, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto ib;
}
update_site_option("mo_saml_message", "Invalid username or password. Please try again.");
$this->mo_saml_show_error_message();
goto Wa;
ib:
update_site_option("mo_saml_admin_customer_key", $LV["id"]);
update_site_option("mo_saml_admin_api_key", $LV["apiKey"]);
update_site_option("mo_saml_customer_token", $LV["token"]);
update_site_option("mo_saml_admin_password", '');
update_site_option("mo_saml_message", "Customer retrieved successfully");
update_site_option("mo_saml_registration_status", "Existing User");
delete_site_option("mo_saml_verify_customer");
if (get_site_option("sml_lk")) {
goto Zc;
}
$this->mo_saml_show_success_message();
goto Wm;
Zc:
$tK = get_site_option("mo_saml_customer_token");
$Vy = AESEncryption::decrypt_data(get_site_option("sml_lk"), $tK);
$tX = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]);
$qF = $xb->mo_saml_verify_license($Vy, $this);
if ($qF) {
goto Ag;
}
return;
Ag:
$t5 = json_decode($qF, true);
if (is_array($t5) and strcasecmp($t5["status"], "SUCCESS") == 0) {
goto VT;
}
update_site_option("mo_saml_message", "License key for this instance is incorrect. Make sure you have not tampered with it at all. Please enter a valid license key.");
delete_site_option("sml_lk");
$this->mo_saml_show_error_message();
goto gZ;
VT:
$this->mo_saml_show_success_message();
gZ:
Wm:
Wa:
update_site_option("mo_saml_admin_password", '');
pV:
if (!get_site_option("no_sbs")) {
goto H1;
}
$tK = get_site_option("mo_saml_customer_token");
$gt = AESEncryption::decrypt_data(get_site_option("no_sbs"), $tK);
$vX = count(Utilities::get_sites());
if (!($gt < $vX)) {
goto Kp;
}
if (get_site_option("license_alert_email_sent")) {
goto AW;
}
$xb = new Customersaml();
$xb->mo_saml_send_alert_email_for_license($gt, $this);
AW:
Kp:
H1:
if (self::mo_check_option_admin_referer("mo_saml_verify_license")) {
goto I4;
}
if (!self::mo_check_option_admin_referer("mo_saml_check_license")) {
goto l_;
}
$xb = new Customersaml();
$qF = $xb->check_customer_ln($this);
if ($qF) {
goto Xk;
}
return;
Xk:
$t5 = json_decode($qF, true);
if (strcasecmp($t5["status"], "SUCCESS") == 0) {
goto xU;
}
$tK = get_site_option("mo_saml_customer_token");
$tX = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]);
update_site_option("mo_saml_message", "You have not upgraded yet. <a href="" . $tX . "">Click here</a> to upgrade to premium version.");
$this->mo_saml_show_error_message();
goto U3;
xU:
if (empty($t5["isMultiSitePluginRequested"])) {
goto ID;
}
$Jn = $t5["isMultiSitePluginRequested"];
ID:
$vX = count(Utilities::get_sites());
if ($Jn && !empty($t5["noOfSubSites"]) && $vX <= $t5["noOfSubSites"]) {
goto Kb;
}
$tK = get_site_option("mo_saml_customer_token");
if (empty($zf)) {
goto zp;
}
update_site_option("no_sbs", AESEncryption::encrypt_data($zf, $tK));
zp:
update_site_option("site_ck_l", AESEncryption::encrypt_data("false", $tK));
$tX = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]);
update_site_option("mo_saml_message", "You have not upgraded to the correct license plan. Either you have purchased for incorrect no. of sites or you have not selected multisite option while purchasing. <a href="#" onclick="getupgradelicensesform()">Click here</a> to upgrade to premium version.");
$this->mo_saml_show_error_message();
goto vR;
Kb:
$tK = get_site_option("mo_saml_customer_token");
$zf = $t5["noOfSubSites"];
if (empty($t5["licenseExpiry"])) {
goto Ov;
}
$WF = $this->mo_saml_parse_expiry_date($t5["licenseExpiry"]);
update_site_option("mo_saml_license_expiry_date", $WF);
update_site_option("mo_saml_sle", $this->is_license_expired($t5["licenseExpiry"]));
Ov:
update_site_option("site_ck_l", AESEncryption::encrypt_data("true", $tK));
update_site_option("no_sbs", AESEncryption::encrypt_data($zf, $tK));
$tX = add_query_arg(array("tab" => "login"), $_SERVER["REQUEST_URI"]);
update_site_option("mo_saml_message", "You have successfully upgraded to premium version.");
$this->mo_saml_show_success_message();
vR:
U3:
l_:
goto f6;
I4:
if (!empty($_POST["saml_license_key"])) {
goto oz;
}
update_site_option("mo_saml_message", "All the fields are required. Please enter valid license key.");
$this->mo_saml_show_error_message();
return;
oz:
$Vy = trim($_POST["saml_license_key"]);
$xb = new Customersaml();
$qF = $xb->check_customer_ln($this);
if ($qF) {
goto Cf;
}
return;
Cf:
$t5 = json_decode($qF, true);
$tX = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]);
if (strcasecmp($t5["status"], "SUCCESS") == 0) {
goto Wj;
}
$tK = get_site_option("mo_saml_customer_token");
$tX = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]);
update_site_option("mo_saml_message", "You have not upgraded yet. <a href="" . $tX . "">Click here</a> to upgrade to premium version.");
$this->mo_saml_show_error_message();
goto m0;
Wj:
if (empty($t5["isMultiSitePluginRequested"])) {
goto iB;
}
$Jn = $t5["isMultiSitePluginRequested"];
iB:
$vX = count(Utilities::get_sites());
if ($Jn && !empty($t5["noOfSubSites"]) && $vX <= $t5["noOfSubSites"]) {
goto Jt;
}
$gt = $t5["noOfSubSites"];
$tK = get_site_option("mo_saml_customer_token");
update_site_option("no_sbs", AESEncryption::encrypt_data($gt, $tK));
update_site_option("sml_lk", AESEncryption::encrypt_data($Vy, $tK));
update_site_option("site_ck_l", AESEncryption::encrypt_data("true", $tK));
update_site_option("mo_saml_message", "You have purchased the license for <b>" . $t5["noOfSubSites"] . " sites</b>. But you have <b>" . $vX . " </b>sites in your multisite network. <a href="#" onclick="getupgradelicensesform()">Click here</a> to buy license for more sites.");
$this->mo_saml_show_error_message();
goto uM;
Jt:
$gt = $t5["noOfSubSites"];
$tK = get_site_option("mo_saml_customer_token");
if (empty($t5["noOfUsers"])) {
goto No;
}
$UA = $t5["noOfUsers"];
No:
$qF = $xb->mo_saml_verify_license($Vy, $this);
if ($qF) {
goto BX;
}
return;
BX:
$t5 = json_decode($qF, true);
if (is_array($t5) && !empty($t5["status"]) && strcasecmp($t5["status"], "SUCCESS") == 0) {
goto VN;
}
if (is_array($t5) && !empty($t5["status"]) && strcasecmp($t5["status"], "FAILED") == 0) {
goto eD;
}
update_site_option("mo_saml_message", "An error occured while processing your request. Please Try again.");
$this->mo_saml_show_error_message();
goto qo;
eD:
if (strcasecmp($t5["message"], "Code has Expired") == 0) {
goto xb;
}
update_site_option("mo_saml_message", "You have entered an invalid license key. Please enter a valid license key.");
goto uA;
xb:
update_site_option("mo_saml_message", "License key you have entered has already been used. Please enter a key which has not been used before on any other instance or if you have exausted all your keys then <a href="#" onclick="getupgradelicensesform()" >Click here</a> to buy more.");
uA:
$this->mo_saml_show_error_message();
qo:
goto la;
VN:
if (empty($t5["noOfUsers"])) {
goto Y7;
}
update_site_option("mo_saml_usr_lmt", AESEncryption::encrypt_data($UA, $tK));
Y7:
update_site_option("sml_lk", AESEncryption::encrypt_data($Vy, $tK));
update_site_option("no_sbs", AESEncryption::encrypt_data($gt, $tK));
update_site_option("site_ck_l", AESEncryption::encrypt_data("true", $tK));
update_site_option("t_site_status", AESEncryption::encrypt_data("false", $tK));
update_site_option("mo_saml_message", "Your license is verified. You can now setup the plugin.");
$tK = get_site_option("mo_saml_customer_token");
update_site_option("t_site_status", AESEncryption::encrypt_data("false", $tK));
$this->mo_saml_show_success_message();
la:
uM:
m0:
f6:
if (!(!empty($_REQUEST["update"]) && "added" == $_REQUEST["update"] && get_site_option("mo_saml_enable_sso_new_site") == "true")) {
goto r4;
}
$xn = !empty($_REQUEST["blog[domain]"]) ? $_REQUEST["blog[domain]"] : '';
if (empty($_REQUEST["id"])) {
goto Bo;
}
$Ui = $_REQUEST["id"];
Bo:
if (empty($Ui)) {
goto u0;
}
$na = Utilities::get_active_sites();
if (Utilities::mo_saml_in_array($Ui, $na)) {
goto yn;
}
array_push($na, $Ui);
yn:
update_site_option("mo_enable_sso_sites", $na);
u0:
r4:
QI:
}
function create_customer()
{
$xb = new CustomerSaml();
$LV = json_decode($xb->create_customer($this), true);
if (strcasecmp($LV["status"], "CUSTOMER_USERNAME_ALREADY_EXISTS") == 0) {
goto P_;
}
if (!(strcasecmp($LV["status"], "SUCCESS") == 0)) {
goto O2;
}
update_site_option("mo_saml_admin_customer_key", $LV["id"]);
update_site_option("mo_saml_admin_api_key", $LV["apiKey"]);
update_site_option("mo_saml_customer_token", $LV["token"]);
update_site_option("mo_saml_admin_password", '');
update_site_option("mo_saml_message", "Thank you for registering with miniorange.");
update_site_option("mo_saml_registration_status", '');
delete_site_option("mo_saml_verify_customer");
delete_site_option("mo_saml_new_registration");
$this->mo_saml_show_success_message();
O2:
goto jJ;
P_:
$this->get_current_customer();
jJ:
update_site_option("mo_saml_admin_password", '');
}
function get_current_customer()
{
$xb = new CustomerSaml();
$t5 = $xb->get_customer_key($this);
if ($t5) {
goto DR;
}
return;
DR:
$LV = json_decode($t5, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto fE;
}
update_site_option("mo_saml_message", "You already have an account with miniOrange. Please enter a valid password.");
update_site_option("mo_saml_verify_customer", "true");
delete_site_option("mo_saml_new_registration");
$this->mo_saml_show_error_message();
goto Vu;
fE:
update_site_option("mo_saml_admin_customer_key", $LV["id"]);
update_site_option("mo_saml_admin_api_key", $LV["apiKey"]);
update_site_option("mo_saml_customer_token", $LV["token"]);
update_site_option("mo_saml_admin_password", '');
update_site_option("mo_saml_message", "Your account has been retrieved successfully.");
delete_site_option("mo_saml_verify_customer");
delete_site_option("mo_saml_new_registration");
$this->mo_saml_show_success_message();
Vu:
}
function miniorange_sso_menu()
{
$vv = add_menu_page("MO SAML Settings " . __("Configure SAML Identity Provider for SSO", "mo_saml_settings"), "miniOrange SAML 2.0 SSO", "administrator", "mo_saml_settings", array($this, "mo_login_widget_saml_options"), plugin_dir_url(__FILE__) . "images/miniorange.png");
if (!mo_saml_is_customer_license_key_verified()) {
goto Hr;
}
add_submenu_page("mo_saml_settings", "miniOrange SAML 2.0 SSO", __("<div id="mo_saml_addons_submenu">Add-Ons</div>", "miniorange-saml-20-single-sign-on"), "manage_options", "mo_saml_settings&tab=add-ons", array($this, "mo_login_widget_saml_options"));
Hr:
}
function mo_saml_redirect_for_authentication($Xn)
{
if (!mo_saml_is_customer_license_key_verified()) {
goto a3;
}
$wa = maybe_unserialize(get_site_option("saml_sso_settings"));
$oR = Utilities::get_active_sites();
$Qu = get_current_blog_id();
if (Utilities::mo_saml_in_array($Qu, $oR)) {
goto rF;
}
return;
rF:
if (!(empty($wa[$Qu]) && !empty($wa["DEFAULT"]))) {
goto S6;
}
$wa[$Qu] = $wa["DEFAULT"];
S6:
if (!empty($wa[$Qu]["mo_saml_registered_only_access"]) && $wa[$Qu]["mo_saml_registered_only_access"] == "true" || !empty($wa[$Qu]["mo_saml_enable_login_redirect"]) && $wa[$Qu]["mo_saml_enable_login_redirect"] == "true") {
goto Tu;
}
if (!(!empty($wa[$Qu]["mo_saml_redirect_to_wp_login"]) and $wa[$Qu]["mo_saml_redirect_to_wp_login"] == "true")) {
goto jW;
}
if (!(mo_saml_is_sp_configured() && !is_user_logged_in())) {
goto oF;
}
$tX = get_site_url($Qu) . "/wp-login.php";
if (empty($Xn)) {
goto qO;
}
$tX = $tX . "?redirect_to=" . urlencode($Xn) . "&reauth=1";
qO:
header("Location: " . $tX);
exit;
oF:
jW:
goto oK;
Tu:
if (!(mo_saml_is_sp_configured() && !is_user_logged_in())) {
goto qB;
}
$Eq = get_site_option("mo_saml_sp_base_url");
if (!empty($Eq)) {
goto Zk;
}
$Eq = get_network_site_url();
Zk:
if (empty($wa[$Qu]["mo_saml_relay_state"])) {
goto HE;
}
$Xn = $wa[$Qu]["mo_saml_relay_state"];
HE:
$u2 = $Xn;
$Yr = get_site_option("saml_login_url");
$rj = !empty(get_site_option("saml_login_binding_type")) ? get_site_option("saml_login_binding_type") : "HttpPost";
$wa = maybe_unserialize(get_site_option("saml_sso_settings"));
$Qu = get_current_blog_id();
if (!(empty($wa[$Qu]) && !empty($wa["DEFAULT"]))) {
goto XE;
}
$wa[$Qu] = $wa["DEFAULT"];
XE:
if (!empty($wa[$Qu]["mo_saml_force_authentication"])) {
goto To;
}
$X5 = '';
goto W5;
To:
$X5 = $wa[$Qu]["mo_saml_force_authentication"];
W5:
$F5 = $Eq . "/";
$yo = get_site_option("mo_saml_sp_entity_id");
$vl = get_site_option("saml_nameid_format");
if (!empty($vl)) {
goto xm;
}
$vl = "1.1:nameid-format:unspecified";
xm:
if (!empty($yo)) {
goto D0;
}
$yo = $Eq . "/wp-content/plugins/miniorange-saml-20-single-sign-on/";
D0:
$a_ = Utilities::createAuthnRequest($F5, $yo, $Yr, $X5, $rj, $vl);
$u2 = mo_saml_relaystate_url($u2);
if ($rj == "HttpRedirect") {
goto kB;
}
if (!(get_site_option("saml_request_signed") == "unchecked")) {
goto lD;
}
$RL = base64_encode($a_);
Utilities::postSAMLRequest($Yr, $RL, $u2);
exit;
lD:
$pH = '';
$VG = '';
$RL = Utilities::signXML($a_, "NameIDPolicy");
Utilities::postSAMLRequest($Yr, $RL, $u2);
goto Ro;
kB:
$f2 = htmlspecialchars_decode($Yr);
if (strpos($Yr, "?") !== false) {
goto NH;
}
$f2 .= "?";
goto IN;
NH:
$f2 .= "&";
IN:
if (!(get_site_option("saml_request_signed") == "unchecked")) {
goto Z_;
}
$f2 .= "SAMLRequest=" . $a_ . "&RelayState=" . urlencode($u2);
header("Location: " . $f2);
exit;
Z_:
$a_ = "SAMLRequest=" . $a_ . "&RelayState=" . urlencode($u2) . "&SigAlg=" . urlencode(XMLSecurityKey::RSA_SHA256);
$Cv = array("type" => "private");
$tK = new XMLSecurityKey(XMLSecurityKey::RSA_SHA256, $Cv);
$RZ = get_site_option("mo_saml_current_cert_private_key");
$tK->loadKey($RZ, FALSE);
$vo = new XMLSecurityDSig();
$yP = $tK->signData($a_);
$yP = base64_encode($yP);
$f2 .= $a_ . "&Signature=" . urlencode($yP);
header("Location: " . $f2);
exit;
Ro:
qB:
oK:
a3:
}
function mo_saml_authenticate()
{
$vx = '';
if (empty($_REQUEST["redirect_to"])) {
goto XT;
}
$vx = $_REQUEST["redirect_to"];
XT:
if (!is_user_logged_in()) {
goto O8;
}
if (!empty($vx)) {
goto iU;
}
$tX = saml_get_current_page_url();
if (!(strpos($tX, "wp-login.php") !== false)) {
goto P3;
}
$tX = str_replace("wp-login.php", '', $tX);
if (!filter_var($tX, FILTER_VALIDATE_URL)) {
goto Ta;
}
header("Location: " . $tX);
exit;
Ta:
P3:
goto P2;
iU:
header("Location: " . $vx);
exit;
P2:
O8:
global $blog_id;
$wa = maybe_unserialize(get_site_option("saml_sso_settings"));
$Qu = get_current_blog_id();
$oR = Utilities::get_active_sites();
if (Utilities::mo_saml_in_array($Qu, $oR)) {
goto GB;
}
return;
GB:
if (!(empty($wa[$Qu]) && !empty($wa["DEFAULT"]))) {
goto CL;
}
$wa[$Qu] = $wa["DEFAULT"];
CL:
if (!(!empty($wa[$Qu]["mo_saml_enable_login_redirect"]) and $wa[$Qu]["mo_saml_enable_login_redirect"] == "true")) {
goto Ej;
}
$ZU = !empty($wa[$Qu]["mo_saml_backdoor_url"]) ? trim($wa[$Qu]["mo_saml_backdoor_url"]) : "false";
if (!empty($_GET["loggedout"]) && $_GET["loggedout"] == "true") {
goto EP;
}
if (!empty($wa[$Qu]["mo_saml_allow_wp_signin"]) and $wa[$Qu]["mo_saml_allow_wp_signin"] == "true") {
goto OI;
}
goto EY;
EP:
header("Location: " . get_network_site_url());
exit;
goto EY;
OI:
if (!empty($_GET["saml_sso"]) && $_GET["saml_sso"] == $ZU || !empty($_POST["saml_sso"]) && $_POST["saml_sso"] == $ZU) {
goto hv;
}
if (!empty($_REQUEST["redirect_to"])) {
goto LR;
}
goto zT;
hv:
return;
goto zT;
LR:
$vx = $_REQUEST["redirect_to"];
if (!(strpos($vx, "wp-admin") !== false && strpos($vx, "saml_sso=" . $ZU) !== false)) {
goto lQ;
}
return;
lQ:
zT:
EY:
if (!empty($vx)) {
goto q9;
}
$vx = saml_get_current_page_url();
q9:
$this->mo_saml_redirect_for_authentication($vx);
Ej:
}
function mo_saml_auto_redirect()
{
if (!current_user_can("read")) {
goto ar;
}
return;
ar:
global $blog_id;
$wa = maybe_unserialize(get_site_option("saml_sso_settings"));
$Qu = get_current_blog_id();
$oR = Utilities::get_active_sites();
if (Utilities::mo_saml_in_array($Qu, $oR)) {
goto EM;
}
return;
EM:
if (!(empty($wa[$Qu]) && !empty($wa["DEFAULT"]))) {
goto r9;
}
$wa[$Qu] = $wa["DEFAULT"];
r9:
if (is_user_logged_in() && !empty($wa[$Qu]["mo_saml_subsite_access_denied"])) {
goto kA;
}
if (!((!empty($wa[$Qu]["mo_saml_registered_only_access"]) and $wa[$Qu]["mo_saml_registered_only_access"] == "true") || (!empty($wa[$Qu]["mo_saml_redirect_to_wp_login"]) and $wa[$Qu]["mo_saml_redirect_to_wp_login"] == "true"))) {
goto ce;
}
$Oy = $_SERVER["HTTP_HOST"];
if (!(substr($Oy, -1) == "/")) {
goto n_;
}
$Oy = substr($Oy, 0, -1);
n_:
$fz = $_SERVER["REQUEST_URI"];
if (!(substr($fz, 0, 1) == "/")) {
goto pf;
}
$fz = substr($fz, 1);
pf:
$Xn = "http" . (!empty($_SERVER["HTTPS"]) ? "s" : '') . "://" . $Oy . "/" . $fz;
$this->mo_saml_redirect_for_authentication($Xn);
ce:
goto JU;
kA:
global $current_user;
if (is_user_member_of_blog($current_user->ID)) {
goto DB;
}
$this->mo_saml_admin_page_access_denied();
DB:
JU:
}
function mo_saml_modify_login_form()
{
$wa = maybe_unserialize(get_site_option("saml_sso_settings"));
$Qu = get_current_blog_id();
$oR = Utilities::get_active_sites();
if (Utilities::mo_saml_in_array($Qu, $oR)) {
goto WR;
}
return;
WR:
if (!(empty($wa[$Qu]) && !empty($wa["DEFAULT"]))) {
goto Ck;
}
$wa[$Qu] = $wa["DEFAULT"];
Ck:
$ZU = !empty($wa[$Qu]["mo_saml_backdoor_url"]) ? trim($wa[$Qu]["mo_saml_backdoor_url"]) : "false";
echo "<input type="hidden" name="saml_sso" value="" . $ZU . "">" . "\xa";
if (!(!empty($wa[$Qu]["mo_saml_add_sso_button_wp"]) and $wa[$Qu]["mo_saml_add_sso_button_wp"] == "true")) {
goto w9;
}
$this->mo_saml_add_sso_button();
w9:
}
function mo_saml_add_sso_button()
{
$wa = maybe_unserialize(get_site_option("saml_sso_settings"));
$Qu = get_current_blog_id();
$oR = Utilities::get_active_sites();
if (Utilities::mo_saml_in_array($Qu, $oR)) {
goto lt;
}
return;
lt:
if (!(empty($wa[$Qu]) && !empty($wa["DEFAULT"]))) {
goto Pe;
}
$wa[$Qu] = $wa["DEFAULT"];
Pe:
if (is_user_logged_in()) {
goto GW;
}
$Eq = home_url();
$O5 = !empty($wa[$Qu]["mo_saml_button_width"]) ? $wa[$Qu]["mo_saml_button_width"] : "100";
$W2 = !empty($wa[$Qu]["mo_saml_button_height"]) ? $wa[$Qu]["mo_saml_button_height"] : "50";
$vi = !empty($wa[$Qu]["mo_saml_button_size"]) ? $wa[$Qu]["mo_saml_button_size"] : "50";
$Vi = !empty($wa[$Qu]["mo_saml_button_curve"]) ? $wa[$Qu]["mo_saml_button_curve"] : "5";
$Zd = !empty($wa[$Qu]["mo_saml_button_color"]) ? $wa[$Qu]["mo_saml_button_color"] : "0085ba";
$C6 = !empty($wa[$Qu]["mo_saml_button_theme"]) ? $wa[$Qu]["mo_saml_button_theme"] : "longbutton";
$bk = !empty($wa[$Qu]["mo_saml_button_text"]) ? $wa[$Qu]["mo_saml_button_text"] : (get_site_option("saml_identity_name") ? get_site_option("saml_identity_name") : "Login");
$op = !empty($wa[$Qu]["mo_saml_font_color"]) ? $wa[$Qu]["mo_saml_font_color"] : "ffffff";
$SN = !empty($wa[$Qu]["mo_saml_font_size"]) ? $wa[$Qu]["mo_saml_font_size"] : "20";
$MV = !empty($wa[$Qu]["sso_button_login_form_position"]) ? $wa[$Qu]["sso_button_login_form_position"] : "above";
$Jw = "<input type="button" name="mo_saml_wp_sso_button" value="" . $bk . "" style="";
$n4 = "cursor:pointer;";
if ($C6 == "longbutton") {
goto N1;
}
if ($C6 == "circle") {
goto D2;
}
if ($C6 == "oval") {
goto LX;
}
if ($C6 == "square") {
goto j5;
}
goto Xj;
D2:
$n4 = $n4 . "width:" . $vi . "px;";
$n4 = $n4 . "height:" . $vi . "px;";
$n4 = $n4 . "border-radius:999px;";
goto Xj;
LX:
$n4 = $n4 . "width:" . $vi . "px;";
$n4 = $n4 . "height:" . $vi . "px;";
$n4 = $n4 . "border-radius:5px;";
goto Xj;
j5:
$n4 = $n4 . "width:" . $vi . "px;";
$n4 = $n4 . "height:" . $vi . "px;";
$n4 = $n4 . "border-radius:0px;";
$n4 = $n4 . "padding:0px;";
Xj:
goto l1;
N1:
$n4 = $n4 . "width:" . $O5 . "px;";
$n4 = $n4 . "height:" . $W2 . "px;";
$n4 = $n4 . "border-radius:" . $Vi . "px;";
l1:
$n4 = $n4 . "background-color:#" . $Zd . ";";
$n4 = $n4 . "border-color:transparent;";
$n4 = $n4 . "color:#" . $op . ";";
$n4 = $n4 . "font-size:" . $SN . "px;";
$Jw = $Jw . $n4 . ""/>";
$vx = urlencode(saml_get_current_page_url());
if (empty($_GET["redirect_to"])) {
goto ap;
}
$vx = urlencode($_GET["redirect_to"]);
ap:
$YY = "<a href="" . $Eq . "/?option=saml_user_login&redirect_to=" . $vx . "" style="text-decoration:none">" . $Jw . "</a>";
$YY = "<div style="padding-bottom:10px;">" . $YY . "</div>";
if ($MV == "above") {
goto Sr;
}
$YY = "<div id="sso_button" style="text-align:center"><div style="padding:5px;font-size:14px;"><b>OR</b></div>" . $YY . "</div><br/>";
goto ZH;
Sr:
$YY = "<div id="sso_button" style="text-align:center">" . $YY . "<div style="padding:5px;font-size:14px;"><b>OR</b></div></div><br/>";
$YY = $YY . "<script>
\xa\x9 \x9\x9var $element = jQuery("#user_login");
\xa\x9 \x9 jQuery("#sso_button").insertBefore(jQuery("label[for='"+$element.attr('id')+"']"));\xd\xa \x9\x9</script>";
ZH:
echo $YY;
GW:
}
function mo_get_saml_shortcode()
{
$wa = maybe_unserialize(get_site_option("saml_sso_settings"));
$Qu = get_current_blog_id();
$oR = Utilities::get_active_sites();
if (Utilities::mo_saml_in_array($Qu, $oR)) {
goto O5;
}
return;
O5:
if (!(empty($wa[$Qu]) && !empty($wa["DEFAULT"]))) {
goto Cg;
}
$wa[$Qu] = $wa["DEFAULT"];
Cg:
if (!is_user_logged_in()) {
goto IJ;
}
$current_user = wp_get_current_user();
$TN = "Hello,";
if (empty($wa[$Qu]["mo_saml_custom_greeting_text"])) {
goto XO;
}
$TN = $wa[$Qu]["mo_saml_custom_greeting_text"];
XO:
$pz = '';
if (empty($wa[$Qu]["mo_saml_greeting_name"])) {
goto LY;
}
switch ($wa[$Qu]["mo_saml_greeting_name"]) {
case "USERNAME":
$pz = $current_user->user_login;
goto Yz;
case "EMAIL":
$pz = $current_user->user_email;
goto Yz;
case "FNAME":
$pz = $current_user->user_firstname;
goto Yz;
case "LNAME":
$pz = $current_user->user_lastname;
goto Yz;
case "FNAME_LNAME":
$pz = $current_user->user_firstname . " " . $current_user->user_lastname;
goto Yz;
case "LNAME_FNAME":
$pz = $current_user->user_lastname . " " . $current_user->user_firstname;
goto Yz;
default:
$pz = $current_user->user_login;
}
WU:
Yz:
LY:
if (!empty(trim($pz))) {
goto XP;
}
$pz = $current_user->user_login;
XP:
$Py = $TN . " " . $pz;
$mM = "Logout";
if (empty($wa[$Qu]["mo_saml_custom_logout_text"])) {
goto MA;
}
$mM = $wa[$Qu]["mo_saml_custom_logout_text"];
MA:
$YY = $Py . " | <a href="" . wp_logout_url(home_url()) . "" title="logout" >" . $mM . "</a></li>";
goto u_;
IJ:
$Eq = get_site_option("mo_saml_sp_base_url");
if (!empty($Eq)) {
goto gJ;
}
$Eq = home_url();
gJ:
if (mo_saml_is_sp_configured() && mo_saml_is_customer_license_key_verified()) {
goto GU;
}
$YY = "SP is not configured.";
goto qk;
GU:
$eB = "Login with " . get_site_option("saml_identity_name");
if (empty($wa[$Qu]["mo_saml_custom_login_text"])) {
goto Dr;
}
$eB = $wa[$Qu]["mo_saml_custom_login_text"];
Dr:
$BM = get_site_option("saml_identity_name");
$eB = str_replace("##IDP##", $BM, $eB);
$ST = false;
if (!(!empty($wa[$Qu]["mo_saml_use_button_as_shortcode"]) and $wa[$Qu]["mo_saml_use_button_as_shortcode"] == "true")) {
goto JP;
}
$ST = true;
JP:
if (!$ST) {
goto hU;
}
$O5 = !empty($wa[$Qu]["mo_saml_button_width"]) ? $wa[$Qu]["mo_saml_button_width"] : "100";
$W2 = !empty($wa[$Qu]["mo_saml_button_height"]) ? $wa[$Qu]["mo_saml_button_height"] : "50";
$vi = !empty($wa[$Qu]["mo_saml_button_size"]) ? $wa[$Qu]["mo_saml_button_size"] : "50";
$Vi = !empty($wa[$Qu]["mo_saml_button_curve"]) ? $wa[$Qu]["mo_saml_button_curve"] : "5";
$Zd = !empty($wa[$Qu]["mo_saml_button_color"]) ? $wa[$Qu]["mo_saml_button_color"] : "0085ba";
$C6 = !empty($wa[$Qu]["mo_saml_button_theme"]) ? $wa[$Qu]["mo_saml_button_theme"] : "longbutton";
$bk = !empty($wa[$Qu]["mo_saml_button_text"]) ? $wa[$Qu]["mo_saml_button_text"] : (get_site_option("saml_identity_name") ? get_site_option("saml_identity_name") : "Login");
$op = !empty($wa[$Qu]["mo_saml_font_color"]) ? $wa[$Qu]["mo_saml_font_color"] : "ffffff";
$Tc = !empty($wa[$Qu]["mo_saml_font_size"]) ? $wa[$Qu]["mo_saml_font_size"] : "20";
$eB = "<input type="button" name="mo_saml_wp_sso_button" value="" . $bk . "" style="";
$n4 = '';
if ($C6 == "longbutton") {
goto jA;
}
if ($C6 == "circle") {
goto W3;
}
if ($C6 == "oval") {
goto cD;
}
if ($C6 == "square") {
goto Rl;
}
goto qq;
W3:
$n4 = $n4 . "width:" . $vi . "px;";
$n4 = $n4 . "height:" . $vi . "px;";
$n4 = $n4 . "border-radius:999px;";
goto qq;
cD:
$n4 = $n4 . "width:" . $vi . "px;";
$n4 = $n4 . "height:" . $vi . "px;";
$n4 = $n4 . "border-radius:5px;";
goto qq;
Rl:
$n4 = $n4 . "width:" . $vi . "px;";
$n4 = $n4 . "height:" . $vi . "px;";
$n4 = $n4 . "border-radius:0px;";
qq:
goto Hl;
jA:
$n4 = $n4 . "width:" . $O5 . "px;";
$n4 = $n4 . "height:" . $W2 . "px;";
$n4 = $n4 . "border-radius:" . $Vi . "px;";
Hl:
$n4 = $n4 . "background-color:#" . $Zd . ";";
$n4 = $n4 . "border-color:transparent;";
$n4 = $n4 . "color:#" . $op . ";";
$n4 = $n4 . "font-size:" . $Tc . "px;";
$n4 = $n4 . "padding:0px;";
$eB = $eB . $n4 . ""/>";
hU:
$vx = urlencode(saml_get_current_page_url());
$YY = "<a href="" . $Eq . "/?option=saml_user_login&redirect_to=" . $vx . """;
if (!$ST) {
goto JT;
}
$YY = $YY . "style="text-decoration:none;"";
JT:
$YY = $YY . ">" . $eB . "</a>";
qk:
u_:
return $YY;
}
function upload_metadata()
{
if (!(!empty($_FILES["metadata_file"]) || !empty($_POST["metadata_url"]))) {
goto FD;
}
if (!empty($_FILES["metadata_file"]["tmp_name"])) {
goto yG;
}
if (mo_saml_is_extension_installed("curl")) {
goto pP;
}
update_option("mo_saml_message", "PHP cURL extension is not installed or disabled. Cannot fetch metadata from URL.");
$this->mo_saml_show_error_message();
return;
pP:
$tX = filter_var(htmlspecialchars($_POST["metadata_url"]), FILTER_SANITIZE_URL);
$ZT = Utilities::mo_saml_wp_remote_call($tX, $this, array("sslverify" => false), true);
if ($ZT) {
goto Yo;
}
update_site_option("mo_saml_message", "Please provide a valid metadata URL.");
return;
Yo:
if (!is_null($ZT)) {
goto z7;
}
$xL = null;
goto Nd;
z7:
$xL = $ZT;
Nd:
if (!empty($_POST["sync_metadata"])) {
goto JQ;
}
delete_site_option("saml_metadata_url_for_sync");
delete_site_option("saml_metadata_sync_interval");
wp_unschedule_event(wp_next_scheduled("metadata_sync_cron_action"), "metadata_sync_cron_action");
goto Bs;
JQ:
update_site_option("saml_metadata_url_for_sync", htmlspecialchars($_POST["metadata_url"]));
update_site_option("saml_metadata_sync_interval", htmlspecialchars($_POST["sync_interval"]));
if (wp_next_scheduled("metadata_sync_cron_action")) {
goto QA;
}
wp_schedule_event(time(), htmlspecialchars($_POST["sync_interval"]), "metadata_sync_cron_action");
QA:
Bs:
goto dD;
yG:
$xL = @file_get_contents($_FILES["metadata_file"]["tmp_name"]);
dD:
$tb = set_error_handler(array($this, "handleXmlError"));
$Hr = new DOMDocument();
$Hr->loadXML($xL);
restore_error_handler();
if (!empty($Hr->firstChild)) {
goto Xu;
}
if (!empty($_POST["upload_metadata"])) {
goto v0;
}
update_site_option("mo_saml_message", "Please provide a valid metadata URL.");
goto c1;
v0:
update_site_option("mo_saml_message", "Please provide a valid metadata file.");
c1:
$this->mo_saml_show_error_message();
goto E3;
Xu:
$Nk = new MetadataReader($Hr);
foreach ($Nk->getIdentityProviders() as $tK => $p4) {
$SL = $_POST["saml_identity_provider_name"];
if (!("0" === $SL)) {
goto Lm;
}
update_site_option("mo_saml_message", "'0' is not allowed as <b>Identity Provider Name</b>. Enter a valid name.");
$this->mo_saml_show_error_message();
return;
Lm:
$Ta = "HttpRedirect";
$Qm = '';
$t1 = $p4->getLoginDetails();
if (!empty($t1["HTTP-Redirect"])) {
goto vg;
}
if (empty($t1["HTTP-POST"])) {
goto Gb;
}
$Ta = "HttpPost";
$Qm = $p4->getLoginURL("HTTP-POST");
Gb:
goto VM;
vg:
$Qm = $p4->getLoginURL("HTTP-Redirect");
VM:
$Gg = "HttpRedirect";
$cd = '';
$LX = $p4->getLogoutDetails();
if (!empty($LX["HTTP-Redirect"])) {
goto BO;
}
if (empty($LX["HTTP-POST"])) {
goto Wg;
}
$Gg = "HttpPost";
$cd = $p4->getLogoutURL("HTTP-POST");
Wg:
goto lY;
BO:
$cd = $p4->getLogoutURL("HTTP-Redirect");
lY:
$y1 = $p4->getEntityID();
$On = $p4->getSigningCertificate();
update_site_option("saml_identity_name", $SL);
update_site_option("saml_login_binding_type", $Ta);
update_site_option("saml_login_url", $Qm);
update_site_option("saml_logout_binding_type", $Gg);
update_site_option("saml_logout_url", $cd);
update_site_option("saml_issuer", $y1);
update_site_option("saml_nameid_format", "1.1:nameid-format:unspecified");
$On = is_array($On) ? $On : array(0 => $On);
$On;
foreach ($On as $tK => $Cd) {
$On[$tK] = Utilities::sanitize_certificate($Cd);
vk:
}
E9:
update_site_option("saml_x509_certificate", $On);
goto Jw;
Il:
}
Jw:
update_site_option("mo_saml_message", "Identity Provider details saved successfully.");
$this->mo_saml_show_success_message();
E3:
FD:
}
function handleXmlError($cW, $j4, $e7, $jj)
{
if ($cW == E_WARNING && substr_count($j4, "DOMDocument::loadXML()") > 0) {
goto kF;
}
return false;
goto X8L;
kF:
return;
X8L:
}
function mo_saml_admin_page_access_denied()
{
$K9 = get_blogs_of_user(get_current_user_id());
if (!wp_list_filter($K9, array("userblog_id" => get_current_blog_id()))) {
goto mM0;
}
return;
mM0:
$UI = get_bloginfo("name");
if (!empty($K9)) {
goto G0g;
}
$YS = "You attempted to access the " . $UI . " site, but you do not currently have privileges on this site. If you believe you should be able to access the " . $UI . " site, please contact your network administrator.";
mo_saml_subsite_access_denied_page($YS);
exit;
G0g:
$YS = "<p>You attempted to access the " . $UI . " site, but you do not currently have privileges on this site. If you believe you should be able to access the " . $UI . " site, please contact your network administrator.</p>";
$YS .= "<p>If you reached this screen by accident and meant to visit one of your own sites, here are some shortcuts to help you find your way.</p>";
$YS .= "<h3>Your Sites</h3>";
$YS .= "<table>";
foreach ($K9 as $ui) {
$YS .= "<tr>";
$YS .= "<td>" . $ui->blogname . "</td>";
$YS .= "<td><a href="" . esc_url(get_admin_url($ui->userblog_id)) . "">Visit Dashboard</a> | <a href="" . esc_url(get_home_url($ui->userblog_id)) . "">View Site</a></td>";
$YS .= "</tr>";
pdY:
}
jOw:
$YS .= "</table>";
mo_saml_subsite_access_denied_page($YS);
exit;
}
function mo_saml_plugin_action_links($Vq)
{
$Vq = array_merge(array("<a href="" . esc_url(network_admin_url("admin.php?page=mo_saml_settings")) . "">" . __("Settings", "textdomain") . "</a>"), $Vq);
return $Vq;
}
function mo_saml_parse_expiry_date($Lb)
{
$kv = new DateTime($Lb);
$NA = $kv->getTimestamp();
return date("F j, Y", $NA);
}
function is_license_expired($h1)
{
$kv = new DateTime($h1);
$Kd = new DateTime();
if ($Kd > $kv) {
goto KHf;
}
return false;
goto bGf;
KHf:
return true;
bGf:
}
function checkPasswordPattern($o7)
{
$ks = "/^[(\w)*(\!\@\#\$\%\^\&\*\.\-\_)*]+$/";
return !preg_match($ks, $o7);
}
}
new saml_mo_login();
?>
Did this file decode correctly?
Original Code
<?php
/*
Plugin Name: miniOrange SSO using SAML 2.0
Plugin URI: https://miniorange.com/
Description: (Multi-Site)miniOrange SAML 2.0 SSO enables user to perform Single Sign On with any SAML 2.0 enabled Identity Provider.
Version: 20.1.0
Author: miniOrange
Author URI: https://miniorange.com/
*/
include_once dirname( __FILE__ ) . '/mo_login_saml_sso_widget.php';
require('mo-saml-class-customer.php');
require('mo_saml_settings_page.php');
require('MetadataReader.php');
require('certificate_utility.php');
require('mo-saml-subsite-access-denied-page.php');
require_once('mo-saml-plugin-version-update.php');
include_once 'xmlseclibs.php';
include_once 'MO_Sites_List.php';
use \RobRichards\XMLSecLibs\XMLSecurityKey;
use \RobRichards\XMLSecLibs\XMLSecurityDSig;
use \RobRichards\XMLSecLibs\XMLSecEnc;
class saml_mo_login {
private $widgetObj;
function __construct()
{
add_site_option("\155\x6f\x5f\141\x70\160\154\x79\137\162\x6f\x6c\145\137\x6d\x61\160\x70\151\x6e\147\137\146\157\162\137\x73\x69\164\145\163", 0);
add_action("\x6e\x65\x74\x77\157\x72\x6b\137\141\144\155\151\156\137\x6d\x65\156\x75", array($this, "\x6d\151\x6e\x69\157\162\x61\x6e\x67\x65\x5f\x73\x73\157\x5f\155\x65\x6e\165"));
add_action("\x61\144\x6d\x69\x6e\137\151\x6e\151\x74", array($this, "\155\151\156\x69\x6f\162\x61\156\x67\x65\137\154\x6f\x67\151\x6e\137\167\151\144\x67\x65\164\x5f\163\141\155\x6c\137\x73\141\166\145\137\x73\x65\x74\x74\151\x6e\147\163"));
add_action("\141\x64\155\x69\156\x5f\145\156\161\x75\x65\x75\145\x5f\163\143\x72\x69\160\x74\163", array($this, "\x70\x6c\x75\x67\151\x6e\137\x73\x65\164\x74\x69\156\147\x73\137\163\x74\x79\x6c\x65"));
register_deactivation_hook(__FILE__, array($this, "\x6d\157\x5f\163\163\157\137\x73\x61\x6d\154\137\144\145\141\x63\164\151\166\141\164\x65"));
register_activation_hook(__FILE__, array($this, "\x6d\x6f\137\163\163\x6f\x5f\163\141\155\154\x5f\141\x63\164\151\166\141\x74\145"));
add_action("\141\x64\155\151\x6e\137\x65\x6e\161\165\x65\165\x65\137\x73\x63\x72\x69\160\164\x73", array($this, "\160\154\165\147\151\x6e\x5f\x73\145\x74\164\151\x6e\x67\x73\137\x73\143\x72\151\x70\164"));
add_action("\154\x6f\x67\151\x6e\x5f\x65\156\x71\x75\145\x75\145\137\x73\x63\162\x69\x70\x74\x73", array($this, "\x6d\x6f\x5f\163\x61\155\154\137\154\157\147\x69\156\x5f\x65\156\161\165\145\x75\x65\137\163\143\x72\151\160\164\163"));
remove_action("\156\x65\164\167\157\x72\x6b\137\141\144\155\x69\x6e\137\x6e\x6f\x74\x69\x63\145\163", array($this, "\155\157\x5f\x73\x61\155\x6c\x5f\x73\165\143\x63\x65\x73\x73\x5f\x6d\x65\x73\x73\x61\147\x65"));
remove_action("\x6e\x65\164\167\x6f\x72\x6b\x5f\x61\144\155\x69\156\137\x6e\x6f\x74\151\143\145\163", array($this, "\x6d\157\137\163\x61\155\x6c\x5f\145\x72\162\x6f\162\x5f\x6d\x65\163\163\141\x67\x65"));
add_action("\167\160\x5f\x61\165\164\150\x65\156\164\x69\x63\141\x74\145", array($this, "\155\x6f\x5f\x73\141\155\154\137\141\165\x74\150\x65\156\x74\151\143\x61\164\x65"));
add_action("\x77\x70", array($this, "\x6d\157\x5f\x73\141\x6d\x6c\x5f\141\165\x74\157\x5f\x72\145\144\151\x72\x65\x63\164"));
$this->widgetObj = new mo_login_wid();
add_action("\154\x6f\147\x69\x6e\137\146\x6f\162\x6d", array($this, "\x6d\x6f\137\x73\141\x6d\154\137\x6d\x6f\x64\151\x66\171\137\x6c\157\x67\151\156\x5f\146\x6f\162\x6d"));
add_shortcode("\115\x4f\x5f\x53\x41\x4d\114\137\106\x4f\122\x4d", array($this, "\155\x6f\137\x67\x65\164\x5f\163\x61\x6d\x6c\137\163\150\x6f\x72\164\x63\157\x64\x65"));
add_filter("\143\162\x6f\x6e\137\x73\x63\150\x65\x64\x75\154\x65\163", array($this, "\155\171\160\162\x65\146\x69\x78\137\x61\144\x64\x5f\x63\x72\157\x6e\137\163\143\x68\145\144\x75\x6c\x65"));
add_action("\155\145\x74\141\x64\x61\x74\x61\x5f\163\171\156\x63\x5f\143\x72\x6f\x6e\x5f\141\143\x74\x69\x6f\x6e", array($this, "\x6d\x65\x74\x61\144\x61\164\x61\137\x73\x79\156\143\x5f\143\x72\x6f\x6e\x5f\x61\143\164\x69\x6f\x6e"));
add_action("\x61\x64\155\x69\x6e\137\x69\156\151\x74", array($this, "\x64\145\x66\141\x75\154\164\x5f\x63\x65\162\x74\151\146\151\x63\141\x74\145"));
add_action("\x6e\x65\x74\x77\157\x72\x6b\x5f\141\x64\x6d\x69\x6e\x5f\160\154\x75\147\151\x6e\x5f\141\x63\164\151\157\156\x5f\x6c\x69\156\x6b\x73\x5f" . plugin_basename(__FILE__), array($this, "\155\157\x5f\x73\141\155\154\137\160\154\x75\147\151\156\x5f\141\x63\164\x69\157\156\x5f\x6c\151\156\153\x73"));
add_filter("\x77\x70\155\165\137\165\x73\x65\x72\163\137\143\157\154\165\x6d\156\163", array($this, "\x6d\x6f\x5f\163\x61\155\154\x5f\x63\x75\163\164\x6f\155\x5f\x61\164\164\162\137\143\x6f\x6c\x75\x6d\156"));
add_filter("\155\141\x6e\141\x67\145\137\165\163\x65\x72\163\137\143\165\163\x74\157\x6d\137\x63\157\x6c\x75\155\x6e", array($this, "\x6d\157\x5f\163\141\x6d\x6c\x5f\x61\164\164\x72\137\x63\157\x6c\x75\155\x6e\x5f\x63\x6f\x6e\164\145\156\x74"), 10, 3);
add_action("\x61\x64\155\151\x6e\137\x69\x6e\x69\164", "\155\x6f\x5f\163\141\155\154\137\x64\x6f\x77\x6e\154\157\x61\x64");
add_action("\155\x6f\x5f\163\x61\x6d\x6c\137\146\154\x75\163\150\x5f\x63\141\143\x68\145", array($this, "\x6d\157\137\163\141\x6d\154\x5f\x66\x6c\x75\163\x68\x5f\x63\141\143\x68\x65"), 9999);
add_action("\144\145\154\145\x74\x65\137\x75\x73\145\x72\x5f\146\157\162\x6d", array($this, "\155\157\x5f\144\x65\x6c\x65\x74\x65\x5f\x75\x73\x65\x72\163"), 10, 2);
global $eS;
if ((float) $eS < 5.5 && (float) $eS > 5.2) {
goto UJ;
}
add_action("\x77\160\137\154\157\x67\x6f\x75\164", array($this->widgetObj, "\x6d\157\137\x73\x61\x6d\154\x5f\154\157\x67\x6f\x75\164"), 1, 1);
goto Cs;
UJ:
add_filter("\x6c\157\147\157\x75\164\x5f\x72\x65\x64\151\162\x65\143\x74", array($this, "\x6d\157\137\163\141\155\154\137\154\157\147\157\165\164\x5f\x62\162\x6f\x6b\145\162\137\x77\x69\x74\x68\x5f\146\x69\154\x74\145\x72"), 10, 3);
Cs:
add_action("\151\x6e\x69\164", array($this->widgetObj, "\x6d\x6f\x5f\x73\x61\x6d\x6c\137\154\x6f\x67\157\x75\x74\x5f\151\156\x69\164"));
}
function mo_saml_logout_broker_with_filter($vx, $RW, $user)
{
$this->widgetObj->mo_saml_logout($user->ID);
}
function mo_delete_users($current_user, $KI)
{
if (count($KI) > 1) {
goto Rd;
}
$aI = false;
goto kb;
Rd:
$aI = true;
kb:
foreach ($KI as $Zq) {
$user = get_user_by("\x69\x64", $Zq);
$this->mo_delete_user($user, $KI, $aI);
HH:
}
ty:
}
function mo_delete_user($gX, $KI, $aI)
{
$Cp = get_users();
$D5 = $gX->ID;
$w2 = "\x3c\154\141\142\145\x6c\40\146\157\162\x3d\42\162\x65\141\x73\163\151\147\156\x5f\165\x73\145\162\42\40\x63\x6c\141\x73\x73\x3d\x22\163\x63\x72\145\145\156\x2d\162\145\x61\144\145\x72\55\x74\x65\x78\164\x22\x3e" . __("\x53\145\x6c\x65\143\164\x20\x61\40\165\x73\x65\162") . "\x3c\57\154\141\142\145\x6c\x3e";
$w2 .= "\x3c\x73\x65\154\145\143\x74\40\x6e\x61\155\x65\75\x22\x61\x6c\x6c\x5f\x62\x6c\157\147\163\42\x20\x69\144\75\x22\x72\x65\141\163\x73\x69\147\156\x5f\165\x73\145\x72\137\x61\154\x6c\42\40\x6f\156\x63\x68\141\x6e\x67\145\75\x22\162\145\x41\163\x73\x69\x67\x6e\124\x6f\x55\x73\145\x72\50\x74\150\151\163\54\x20" . $D5 . "\x29\42\x3e";
$Cl = '';
foreach ($Cp as $user) {
if (Utilities::mo_saml_in_array($user->ID, $KI)) {
goto hP;
}
$Cl .= "\74\x6f\160\164\x69\157\x6e\x20\x76\x61\x6c\x75\x65\75\x27{$user->ID}\47\76{$user->user_login}\x3c\x2f\157\160\164\x69\157\156\76";
hP:
jb:
}
F1:
$w2 .= $Cl;
$w2 .= "\74\x2f\x73\145\x6c\x65\143\x74\76\xa";
echo "\x20\x20\40\x20\x20\x20\x20\x20\x3c\x74\141\x62\154\x65\40\143\154\141\163\163\x3d\42\146\157\x72\x6d\x2d\164\141\142\x6c\x65\x22\40\x72\157\154\x65\x3d\42\x70\x72\x65\x73\x65\156\x74\141\x74\151\157\156\42\76\xd\xa\15\xa\40\40\40\x20\40\40\x20\40\x20\x20\40\40\x3c\x74\162\x3e\74\x74\150\40\163\x63\x6f\x70\145\75\x22\162\x6f\167\x22\x3e";
if (!$aI) {
goto MY;
}
echo $gX->user_login;
MY:
echo "\40\74\57\x74\150\76\x3c\x74\144\x3e\15\xa\x20\x20\40\40\40\x20\40\x20\x20\40\40\x20\40\40\x20\x20\40\x20\x20\x20\74\165\154\x20\x73\x74\x79\x6c\145\75\x22\154\151\163\164\55\x73\164\171\x6c\x65\72\156\x6f\x6e\145\x3b\42\76\xd\12\40\x20\x20\x20\40\40\x20\40\40\x20\x20\40\40\x20\x20\40\40\x20\40\x20\x20\x20\40\40\x3c\154\151\76\15\xa\x20\40\x20\40\40\40\x20\40\x20\40\40\40\40\40\x20\x20\40\40\40\40\x20\40\x20\x20\x20\x20\x20\40";
printf(__("\74\142\76\123\x69\164\x65\x3a\x20\45\x73\74\x2f\142\x3e"), "\101\x6c\154\x20\x53\x69\164\145\x73");
echo "\x20\x20\40\40\40\40\x20\40\40\x20\x20\40\40\40\x20\40\x20\40\x20\x20\40\40\40\40\74\x2f\x6c\151\76\xd\12\40\x20\40\40\40\x20\x20\40\x20\40\x20\40\x20\x20\x20\40\40\40\x20\40\40\x20\40\x20\74\x6c\151\76\74\154\141\x62\x65\154\76\x3c\x69\156\160\x75\x74\40\x74\x79\160\x65\75\x22\x72\141\x64\151\x6f\x22\40\x69\x64\x3d\x22\144\145\154\x65\164\x65\137\x6f\160\164\151\x6f\156\x30\101\x6c\154\42\40\x6e\x61\155\x65\x3d\42\x64\x65\x6c\x65\164\145\101\154\154";
echo $D5;
echo "\42\x20\166\141\154\165\145\75\42\144\145\x6c\x65\164\x65\42\x20\143\x68\145\x63\x6b\x65\144\75\x22\143\x68\145\143\153\x65\x64\42\40\157\156\x63\150\x61\156\x67\x65\x3d\x22\x64\x65\x6c\145\164\145\101\x6c\154\x64\141\164\141\x28\47";
echo $D5;
echo "\47\51\x22\x20\57\x3e\15\12\x20\x20\40\40\x20\40\40\40\40\40\x20\40\x20\x20\40\40\40\40\x20\x20\x20\40\x20\x20\x20\x20\40\40\40\x20\40\40";
_e("\104\x65\x6c\145\x74\145\x20\x61\154\154\40\x63\x6f\156\x74\x65\156\164\56");
echo "\74\57\154\141\142\x65\x6c\x3e\74\57\154\151\76\15\12\x20\x20\40\x20\x20\40\x20\40\40\x20\x20\40\x20\40\x20\40\x20\x20\x20\40\x20\40\40\x20\x3c\154\151\76\74\154\141\142\145\154\76\74\151\x6e\x70\165\x74\x20\164\x79\x70\145\x3d\x22\162\141\144\x69\x6f\42\x20\x69\x64\75\x22\144\145\x6c\145\x74\145\137\157\160\x74\151\157\156\x31\x41\x6c\x6c\x22\x20\x6e\x61\155\x65\75\42\x64\145\x6c\145\164\x65\101\154\x6c";
echo $D5;
echo "\x22\40\166\141\154\165\145\x3d\42\x72\x65\x61\x73\x73\x69\x67\156\x22\x20\x6f\x6e\143\x68\141\156\x67\x65\75\x22\141\x73\x73\x69\x67\x6e\101\x6c\x6c\144\141\x74\141\x28\47";
echo $D5;
echo "\47\x29\42\57\76\xd\12\x20\x20\x20\40\40\40\40\40\x20\x20\x20\40\x20\x20\40\x20\40\x20\x20\x20\40\x20\x20\40\x20\40\40\40\x20\40\40\x20";
_e("\101\x74\x74\162\x69\142\165\164\145\40\x61\154\x6c\x20\143\157\x6e\x74\x65\x6e\164\x20\164\157\72");
echo "\x3c\x2f\x6c\141\x62\x65\154\76\xd\xa\x20\x20\40\x20\40\40\40\x20\40\40\40\40\x20\x20\x20\40\40\x20\40\x20\40\40\40\40\40\40\x20\40";
echo $w2;
echo "\x3c\57\154\151\x3e\15\xa\40\40\40\x20\x20\40\x20\40\40\x20\40\x20\x20\x20\x20\x20\x20\40\40\x20\40\40\x20\x20\x3c\x6c\151\76\74\x73\x70\141\x6e\40\151\x64\x3d\42\x6d\157\x5f\x64\145\x6c\x65\x74\145\x5f\165\163\145\x72\x5f\x6e\157\x74\x69\143\x65";
echo $D5;
echo "\x22\x20\163\164\171\154\145\x3d\x22\166\x69\163\x69\142\x69\x6c\151\x74\171\72\40\150\151\144\x64\145\x6e\x22\76\x3c\142\162\x2f\x3e\74\x62\76\x4e\117\124\105\72\40\74\57\142\76\124\150\145\x20\x73\145\x6c\x65\143\x74\x65\144\40\165\163\x65\162\40\144\x6f\x65\x73\156\47\164\x20\x65\170\x69\x73\x74\40\x69\x6e\40\164\150\x65\x20\146\x6f\x6c\154\157\167\151\x6e\147\40\x73\x75\142\x73\x69\164\145\x73\56\40\113\151\x6e\144\x6c\x79\x20\141\164\164\x72\x69\142\165\x74\x65\x20\x74\x68\x65\x20\143\x6f\x6e\164\145\x6e\164\40\x66\x6f\162\x20\x74\x68\145\x20\146\x6f\x6c\x6c\157\x77\x69\156\x67\40\163\x75\x62\x73\151\x74\145\x73\x20\155\141\156\165\x61\x6c\154\x79\x20\157\x72\40\x73\x65\154\145\143\164\x20\x61\40\x64\x69\146\x66\x65\162\x65\156\x74\40\165\x73\x65\162\x2e\x3c\57\163\x70\141\156\x3e\74\x2f\x6c\x69\x3e\xd\xa\40\x20\40\x20\x20\40\40\x20\40\40\40\x20\40\x20\40\40\40\40\40\x20\x20\40\x20\x20\74\157\x6c\40\151\144\75\42\155\157\x5f\x73\165\142\163\151\x74\x65\137\154\x69\x73\164";
echo $D5;
echo "\42\40\x73\164\x79\154\x65\x3d\x22\x76\x69\163\x69\x62\151\x6c\x69\x74\171\72\x20\150\x69\x64\144\x65\156\42\x3e\xd\xa\x20\x20\x20\40\x20\40\40\40\40\40\x20\x20\x20\x20\40\40\40\x20\x20\40\x20\40\x20\40\74\x2f\x6f\x6c\76\15\12\x20\x20\x20\x20\40\40\x20\x20\x20\40\x20\x20\40\40\40\x20\x20\x20\x20\40\74\x2f\165\154\x3e\15\12\x20\40\x20\40\x20\40\x20\40\x20\40\x20\40\40\40\x20\40\74\57\164\144\x3e\74\x2f\164\x72\x3e\xd\xa\x20\40\40\x20\40\x20\40\x20\x3c\57\x74\141\x62\154\x65\76\xd\xa\xd\xa\40\40\x20\x20\x20\40\40\40\74\163\143\162\151\160\x74\76\xd\xa\15\12\x20\40\x20\40\40\x20\40\40\x20\x20\40\x20\x66\x75\156\x63\x74\x69\x6f\156\40\144\x65\154\x65\164\x65\101\154\x6c\x64\141\164\141\x28\151\x64\51\173\xd\12\40\x20\40\x20\40\x20\40\x20\x20\x20\x20\40\x20\40\40\x20\x76\141\x72\x20\x65\154\x65\x6d\x73\40\75\x20\144\x6f\143\x75\155\145\x6e\164\x2e\161\165\x65\162\x79\123\x65\154\145\x63\164\157\x72\101\154\154\50\x22\133\156\x61\155\x65\136\75\x27\x64\x65\x6c\145\x74\x65\x27\135\133\x6e\141\x6d\145\44\75\47\133\x22\x20\x2b\40\151\144\40\53\40\42\135\x27\135\x22\51\73\15\12\40\x20\40\40\x20\x20\40\x20\40\x20\x20\x20\x20\40\40\x20\x66\x6f\162\x28\145\x6c\145\155\x20\x6f\x66\x20\145\154\145\x6d\163\x29\40\173\xd\xa\x20\x20\40\x20\x20\40\40\40\x20\x20\x20\x20\40\40\x20\40\40\x20\x20\40\x69\x66\x28\x65\154\x65\155\56\166\141\154\165\x65\x20\75\75\x20\x22\144\145\154\x65\164\x65\x22\x29\15\12\x20\x20\x20\x20\40\40\40\x20\x20\x20\40\40\40\x20\x20\40\40\x20\x20\40\40\x20\x20\x20\x65\x6c\145\x6d\56\x63\x68\x65\143\153\x65\144\40\x3d\40\164\162\165\145\73\15\xa\x20\x20\x20\40\40\40\40\40\40\x20\x20\40\x20\40\x20\40\175\xd\xa\40\40\40\40\x20\x20\x20\40\x20\40\x20\40\x7d\xd\12\xd\xa\x20\40\x20\40\40\40\x20\40\x20\40\x20\x20\146\165\156\143\164\x69\157\156\40\x61\x73\163\151\147\156\101\154\x6c\x64\x61\164\x61\x28\x69\144\x29\173\xd\xa\x20\x20\40\40\40\x20\x20\40\x20\x20\x20\40\40\x20\40\40\x76\141\x72\x20\x65\x6c\x65\155\x73\40\x3d\x20\144\x6f\x63\x75\x6d\145\156\164\56\161\165\145\x72\x79\123\x65\154\x65\x63\x74\x6f\162\101\x6c\x6c\x28\42\133\x6e\141\155\x65\x5e\75\47\x64\145\x6c\145\x74\x65\x27\x5d\133\156\141\x6d\x65\x24\x3d\47\133\42\40\x2b\x20\151\x64\x20\53\x20\42\135\x27\x5d\42\51\73\15\12\40\40\40\x20\40\x20\40\x20\x20\40\x20\x20\40\x20\x20\x20\x66\x6f\162\50\145\154\x65\155\40\157\x66\x20\x65\x6c\x65\155\163\51\40\173\xd\12\x20\40\40\40\40\x20\x20\x20\x20\x20\40\x20\x20\x20\40\x20\x20\x20\x20\40\151\146\x28\x65\154\x65\155\x2e\166\141\x6c\165\145\40\75\x3d\x20\42\162\145\x61\163\x73\x69\147\156\42\51\xd\12\40\40\40\x20\40\x20\40\40\x20\40\40\40\x20\x20\40\x20\40\40\40\x20\40\40\40\40\145\x6c\145\x6d\x2e\143\x68\145\143\x6b\x65\144\40\x3d\x20\164\x72\165\145\x3b\15\xa\x20\40\40\40\40\40\x20\40\40\x20\40\40\40\x20\40\x20\x7d\15\12\x20\40\x20\x20\40\40\x20\40\x20\x20\40\40\175\15\xa\xd\xa\x20\x20\40\40\x20\x20\x20\x20\x20\40\40\40\x66\x75\x6e\x63\x74\151\x6f\156\40\x72\x65\101\163\163\151\x67\x6e\x54\157\125\x73\x65\x72\x28\165\x73\145\162\x53\x65\154\145\x63\x74\x2c\x20\165\x73\x65\x72\151\144\51\173\xd\xa\x20\x20\x20\40\40\40\40\40\40\40\x20\40\40\40\40\40\146\x6c\165\x73\150\105\170\x69\163\164\x69\x6e\x67\123\x75\142\x73\151\x74\x65\114\151\x73\164\x28\165\163\145\x72\151\x64\51\x3b\15\12\40\40\x20\40\x20\x20\x20\40\40\x20\40\40\x20\x20\x20\x20\x76\x61\x72\40\x65\x6c\145\155\163\40\75\x20\144\157\x63\x75\x6d\x65\156\x74\56\x71\x75\145\162\x79\123\145\154\145\143\164\157\162\101\x6c\154\x28\x22\x5b\x6e\141\155\x65\x5e\x3d\47\142\x6c\157\147\133\42\40\53\40\x75\x73\x65\x72\151\x64\40\53\40\x22\135\x27\x5d\42\51\x3b\15\12\x20\40\40\x20\40\x20\x20\40\x20\40\x20\40\x20\x20\40\x20\x76\x61\x72\x20\141\x6c\154\x53\x69\164\145\163\x20\75\x20\164\162\x75\145\x3b\15\xa\40\40\x20\40\40\x20\x20\x20\40\x20\40\x20\x20\x20\40\x20\x66\157\x72\50\x65\154\145\x6d\x20\157\146\x20\x65\154\x65\155\x73\51\x20\x7b\15\12\40\x20\40\x20\x20\x20\40\x20\40\40\x20\x20\40\x20\40\x20\x20\x20\x20\x20\151\146\x28\151\163\x4f\x70\164\x69\x6f\156\x45\x78\151\163\x74\x28\145\154\145\x6d\x2c\40\x75\163\145\x72\x53\145\x6c\x65\x63\164\x2e\x76\141\154\x75\145\x29\x29\xd\12\x20\40\40\40\40\40\x20\40\40\x20\40\40\40\x20\x20\40\40\40\x20\x20\40\x20\40\x20\x65\x6c\x65\x6d\x2e\x76\141\154\x75\x65\40\x3d\x20\x75\x73\x65\x72\123\145\x6c\145\143\x74\56\x76\141\154\x75\x65\x3b\15\12\40\40\40\x20\40\40\40\x20\40\x20\x20\40\x20\40\x20\x20\x20\x20\40\40\x65\x6c\163\x65\x20\173\15\12\x20\40\40\x20\x20\x20\40\x20\x20\x20\40\x20\40\x20\x20\40\40\x20\40\40\40\x20\x20\x20\163\x68\157\167\x4d\157\104\145\x6c\145\x74\145\116\157\164\151\143\x65\50\145\x6c\145\155\x2c\40\x75\x73\145\x72\151\x64\x29\x3b\xd\xa\x20\40\x20\x20\40\x20\x20\x20\x20\x20\x20\40\40\40\40\x20\x20\40\x20\40\x20\40\x20\40\x61\154\x6c\x53\151\164\x65\x73\40\x3d\x20\146\x61\x6c\x73\x65\73\15\xa\40\40\40\x20\x20\40\40\x20\x20\40\40\40\40\x20\x20\x20\x20\x20\40\40\175\xd\xa\15\12\x20\x20\x20\40\x20\40\40\40\x20\40\x20\x20\40\x20\x20\x20\175\15\12\15\12\x20\x20\40\x20\40\x20\40\x20\x20\x20\40\x20\x20\40\x20\x20\x69\146\50\x61\154\154\x53\x69\164\x65\x73\51\x20\x7b\15\12\x20\40\x20\x20\40\x20\x20\x20\x20\x20\x20\40\x20\40\x20\40\40\x20\x20\x20\144\x6f\x63\165\x6d\x65\156\164\56\147\x65\164\105\154\145\x6d\x65\x6e\164\102\171\111\144\50\42\x6d\157\137\x64\145\154\145\164\145\137\165\163\145\x72\x5f\156\157\x74\x69\x63\x65\x22\40\x2b\x20\x75\163\x65\162\151\144\51\x2e\163\164\x79\154\x65\56\166\x69\x73\x69\142\x69\x6c\x69\x74\171\40\75\x20\x22\x68\x69\144\144\145\x6e\x22\x3b\15\xa\40\x20\40\x20\x20\x20\40\x20\40\40\40\x20\40\40\40\x20\x20\x20\40\x20\x64\x6f\x63\x75\x6d\x65\156\x74\x2e\x67\x65\x74\105\154\x65\x6d\x65\x6e\x74\102\171\x49\x64\50\42\x6d\157\x5f\x73\165\x62\163\151\x74\x65\137\x6c\x69\x73\x74\x22\x20\53\40\x75\x73\x65\x72\151\144\x29\x2e\x73\164\x79\154\145\56\x76\151\163\151\x62\151\154\151\x74\171\40\75\40\42\150\151\144\x64\145\x6e\42\x3b\xd\12\40\40\x20\40\40\x20\40\40\x20\x20\x20\40\x20\40\x20\x20\175\15\xa\x20\40\x20\x20\x20\x20\40\x20\40\x20\x20\x20\175\xd\12\15\12\40\40\40\40\40\40\40\40\40\40\40\x20\x66\x75\x6e\143\164\151\x6f\x6e\x20\x69\163\117\160\164\151\157\156\105\x78\x69\163\164\50\163\145\154\x65\x63\x74\x2c\x20\x76\x61\x6c\165\145\x29\173\xd\12\15\12\x20\40\x20\40\x20\40\x20\x20\40\40\40\40\x20\x20\x20\40\146\157\162\x28\151\x20\x3d\x20\60\73\40\x69\40\74\40\163\x65\154\145\x63\164\56\154\145\x6e\x67\164\x68\73\x20\151\x2b\x2b\x29\173\xd\xa\40\40\40\40\x20\40\40\x20\x20\x20\40\x20\x20\x20\x20\40\40\40\x20\40\151\x66\x28\163\145\x6c\x65\143\x74\56\x6f\160\x74\151\x6f\x6e\x73\133\x69\x5d\56\166\x61\154\165\145\x20\75\75\40\166\x61\154\x75\x65\51\xd\xa\x20\40\40\x20\x20\x20\40\40\x20\40\40\40\x20\x20\40\x20\x20\x20\x20\40\x20\x20\x20\x20\162\x65\x74\x75\x72\x6e\40\x74\162\x75\145\x3b\xd\xa\x20\40\x20\40\40\40\x20\x20\x20\x20\x20\x20\40\x20\x20\x20\x7d\15\xa\40\x20\x20\x20\40\x20\40\x20\40\x20\x20\x20\x20\x20\x20\x20\162\x65\x74\165\162\156\x20\x66\x61\154\163\x65\73\xd\xa\x20\40\x20\x20\40\x20\x20\40\x20\40\40\40\x7d\15\xa\xd\12\40\x20\x20\40\x20\x20\x20\x20\x20\40\x20\x20\x66\165\x6e\x63\164\x69\157\156\x20\163\x68\157\167\115\157\x44\x65\x6c\x65\164\x65\116\x6f\x74\151\143\x65\x28\x65\x6c\x65\155\54\x20\165\163\x65\x72\x69\144\51\x7b\15\12\x20\x20\x20\x20\40\x20\x20\x20\x20\40\40\40\40\40\40\x20\144\x6f\x63\x75\155\145\x6e\x74\56\147\145\x74\105\154\x65\155\145\x6e\164\x42\x79\x49\144\x28\x22\155\x6f\137\x64\145\154\x65\x74\x65\137\165\163\x65\x72\x5f\x6e\x6f\164\x69\x63\145\x22\40\53\x20\x75\163\x65\x72\x69\x64\51\x2e\163\164\x79\154\145\x2e\x76\151\163\x69\x62\x69\154\151\x74\171\x20\75\40\42\166\151\163\151\x62\154\145\x22\73\xd\xa\x20\40\40\40\40\x20\x20\40\x20\40\40\x20\40\x20\x20\x20\x64\x6f\x63\165\155\145\156\164\56\147\x65\x74\105\x6c\x65\155\145\x6e\164\x42\x79\111\144\x28\x22\155\157\x5f\163\x75\x62\x73\x69\x74\145\137\154\151\x73\x74\42\x20\53\40\165\163\145\x72\151\144\51\56\163\164\171\x6c\145\x2e\x76\x69\163\151\142\151\x6c\151\x74\171\x20\75\x20\42\166\151\163\151\x62\x6c\x65\42\73\xd\12\x20\40\x20\x20\x20\40\x20\x20\x20\40\40\x20\40\x20\x20\x20\x75\162\x6c\40\75\x20\147\145\164\123\165\142\163\151\x74\145\x57\150\145\x72\145\x55\x73\145\x72\x44\157\145\163\116\157\164\105\x78\151\163\x74\x28\x65\x6c\145\x6d\x29\73\15\xa\40\x20\40\x20\40\40\x20\40\x20\x20\40\x20\40\40\40\x20\x6e\141\x6d\145\40\x3d\x20\147\145\164\123\x75\x62\163\151\x74\145\x4e\x61\155\x65\x57\150\145\x72\x65\125\163\x65\x72\x44\157\145\163\x4e\x6f\164\x45\170\151\163\x74\x28\x65\x6c\145\x6d\51\73\xd\xa\x20\x20\40\x20\x20\40\40\x20\40\40\40\x20\40\40\40\40\x61\x64\144\x55\162\x6c\124\x6f\x4c\x69\163\164\50\x75\162\x6c\54\x20\156\141\155\x65\x2c\40\165\x73\x65\162\x69\144\x29\x3b\xd\12\x20\40\40\x20\40\x20\x20\x20\40\40\40\x20\x7d\xd\xa\15\12\40\40\40\40\x20\40\40\x20\40\x20\x20\40\146\x75\156\143\164\x69\x6f\x6e\40\147\145\164\123\165\142\x73\151\164\x65\127\x68\145\x72\145\x55\163\x65\x72\x44\x6f\145\163\116\x6f\164\105\x78\151\163\x74\x28\x65\154\145\x6d\145\x6e\164\51\x7b\xd\12\40\40\40\x20\40\40\x20\40\40\40\x20\40\x20\x20\x20\40\163\165\142\163\151\x74\x65\x55\x72\x6c\40\75\40\x65\154\x65\x6d\145\156\x74\56\x70\141\x72\145\x6e\164\105\154\x65\155\145\156\x74\x2e\160\x61\x72\x65\156\164\x45\x6c\x65\x6d\145\x6e\164\x2e\x66\151\162\163\164\x45\154\x65\155\x65\156\x74\103\150\151\154\144\x2e\x66\x69\162\163\x74\x45\154\x65\x6d\145\156\164\103\150\151\154\x64\56\x67\x65\164\x41\164\x74\x72\x69\x62\165\164\x65\50\x22\x68\162\x65\x66\42\51\x3b\15\xa\x20\x20\x20\x20\x20\40\40\x20\x20\40\x20\x20\x20\40\40\x20\x72\145\x74\165\x72\x6e\x20\163\165\142\x73\x69\164\145\x55\162\x6c\73\xd\12\40\40\x20\x20\40\40\x20\x20\40\40\x20\40\x7d\xd\xa\15\xa\x20\40\x20\40\40\x20\x20\x20\x20\x20\x20\40\x66\x75\156\x63\164\x69\x6f\156\40\x67\x65\x74\x53\165\x62\x73\x69\x74\145\x4e\x61\x6d\x65\127\x68\145\x72\x65\125\163\x65\x72\x44\x6f\145\163\116\x6f\164\105\x78\x69\163\x74\x28\x65\154\x65\155\x65\156\x74\51\173\xd\xa\40\40\40\40\x20\40\40\40\x20\40\x20\x20\x20\40\x20\40\x73\165\142\163\151\164\145\116\x61\155\145\x20\x3d\x20\x65\x6c\x65\x6d\x65\x6e\164\x2e\x70\x61\162\145\x6e\164\x45\154\145\x6d\145\x6e\164\x2e\160\141\x72\x65\x6e\x74\x45\154\145\155\145\156\164\56\146\x69\x72\x73\164\105\x6c\x65\x6d\145\156\x74\103\150\x69\154\144\56\x66\x69\162\x73\164\105\154\145\x6d\x65\x6e\x74\103\x68\x69\154\x64\56\x69\156\x6e\145\162\124\x65\x78\164\x3b\15\12\x20\x20\x20\x20\40\x20\40\x20\x20\40\40\40\40\40\40\x20\x72\x65\164\165\x72\156\40\163\x75\x62\x73\x69\x74\x65\x4e\141\155\x65\73\xd\12\40\40\x20\x20\x20\x20\40\x20\x20\40\40\40\175\15\12\15\12\40\x20\x20\x20\40\40\40\40\40\40\40\40\146\165\x6e\143\164\x69\157\x6e\x20\x61\144\144\125\x72\x6c\x54\157\x4c\151\163\x74\x28\165\162\154\54\40\x6e\x61\155\x65\x2c\40\x75\163\145\162\151\144\51\173\xd\xa\x20\40\40\x20\40\40\x20\x20\40\x20\40\x20\40\x20\x20\40\x76\x61\x72\40\157\x6c\105\154\x65\155\x20\75\40\144\157\x63\x75\155\x65\x6e\164\56\x67\145\x74\105\x6c\145\x6d\145\x6e\x74\x42\x79\111\x64\50\x22\155\157\x5f\x73\165\142\163\151\164\x65\137\x6c\x69\x73\x74\42\40\x2b\40\x75\163\145\162\x69\x64\x29\x3b\15\12\40\40\x20\x20\40\x20\40\x20\40\x20\x20\x20\x20\40\40\40\x76\141\x72\x20\154\151\x20\x3d\40\x64\157\143\165\x6d\x65\x6e\x74\56\x63\x72\x65\x61\x74\145\105\x6c\145\x6d\145\x6e\164\50\42\x6c\x69\x22\x29\73\15\xa\40\x20\x20\x20\40\x20\40\x20\x20\40\40\40\x20\x20\40\40\x6c\151\x2e\x61\160\160\x65\x6e\144\x43\x68\x69\x6c\x64\x28\144\157\x63\165\x6d\145\156\x74\56\x63\x72\x65\x61\164\145\x54\x65\170\x74\x4e\x6f\144\145\50\165\x72\154\x20\53\x20\40\x22\x20\40\40\55\x20\40\40\42\x20\x2b\40\156\x61\x6d\145\51\51\73\15\12\x20\x20\40\40\40\x20\40\40\x20\x20\40\40\40\x20\x20\x20\154\x69\56\x73\x65\164\x41\164\164\x72\x69\x62\165\164\x65\50\42\x69\x64\x22\x2c\40\165\162\x6c\51\x3b\xd\xa\40\40\40\40\40\x20\x20\40\40\40\40\40\40\40\40\40\x6f\x6c\x45\x6c\145\x6d\56\141\160\x70\145\156\x64\103\x68\151\154\x64\x28\x6c\x69\x29\73\xd\12\x20\x20\x20\40\40\x20\40\40\x20\x20\40\40\x7d\15\12\xd\12\x20\40\x20\40\x20\40\40\x20\x20\x20\40\x20\146\165\x6e\x63\x74\151\157\156\40\146\x6c\x75\163\150\x45\x78\151\x73\x74\151\156\147\x53\165\x62\x73\151\164\145\114\151\163\164\x28\x75\163\x65\x72\151\144\x29\x7b\15\xa\x20\x20\x20\40\40\x20\40\40\40\40\40\x20\40\x20\x20\x20\166\141\x72\40\157\154\105\x6c\145\x6d\x20\75\x20\144\x6f\x63\165\x6d\x65\x6e\164\56\x67\145\164\105\154\145\x6d\145\x6e\164\102\x79\111\x64\x28\x22\155\x6f\137\163\x75\142\x73\x69\164\145\137\x6c\x69\x73\164\42\40\x2b\x20\165\163\145\x72\x69\144\x29\73\15\xa\40\40\40\40\x20\x20\x20\x20\x20\x20\x20\40\x20\x20\40\x20\x6f\154\x45\154\x65\155\x2e\x69\156\x6e\145\162\x48\124\115\x4c\40\75\40\x22\42\73\15\xa\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\40\x20\175\15\12\15\xa\15\12\x20\x20\40\x20\x20\x20\x20\x20\74\57\163\x63\162\x69\160\x74\76\15\12\xd\xa\x20\x20\40\x20\40\40\x20\40";
}
function mo_saml_flush_cache()
{
if (!(mo_saml_is_customer_registered_saml() && get_site_option("\163\155\154\137\x6c\153"))) {
goto vy;
}
$xb = new Customersaml();
$xb->mo_saml_update_status($this);
vy:
}
function default_certificate()
{
$wh = file_get_contents(plugin_dir_path(__FILE__) . "\162\145\163\x6f\165\162\143\145\163" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Public_Certificate);
$uc = file_get_contents(plugin_dir_path(__FILE__) . "\x72\145\x73\x6f\165\162\x63\x65\x73" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Private_Key);
if (!(!get_site_option("\x6d\157\137\163\141\x6d\x6c\137\143\x75\x72\162\x65\x6e\x74\x5f\x63\x65\162\x74") && !get_site_option("\155\157\137\x73\141\x6d\x6c\x5f\143\165\x72\162\x65\x6e\164\x5f\x63\x65\x72\x74\x5f\x70\162\151\166\x61\x74\x65\x5f\x6b\145\x79"))) {
goto sr;
}
if (get_site_option("\x6d\x6f\x5f\163\x61\x6d\154\137\143\145\x72\164") && get_site_option("\155\157\137\163\141\x6d\154\x5f\x63\x65\x72\x74\x5f\160\162\x69\166\x61\164\145\137\x6b\x65\x79")) {
goto CF;
}
update_site_option("\x6d\x6f\137\x73\141\155\154\x5f\143\165\x72\x72\145\x6e\164\137\143\x65\162\x74", $wh);
update_site_option("\x6d\x6f\x5f\163\141\155\154\x5f\x63\x75\x72\x72\145\x6e\164\137\x63\x65\x72\x74\x5f\160\162\151\166\x61\x74\145\x5f\153\145\x79", $uc);
goto TW;
CF:
update_site_option("\x6d\x6f\x5f\163\x61\x6d\x6c\x5f\143\165\162\162\145\156\x74\137\x63\x65\162\164", get_site_option("\x6d\157\137\163\x61\155\x6c\x5f\143\145\162\x74"));
update_site_option("\x6d\157\137\163\141\x6d\x6c\137\143\165\x72\x72\x65\156\x74\x5f\143\x65\x72\164\x5f\160\162\151\166\141\164\x65\137\x6b\145\x79", get_site_option("\155\157\x5f\x73\141\155\x6c\137\x63\145\x72\x74\x5f\x70\x72\x69\166\141\164\145\x5f\153\145\171"));
TW:
sr:
}
function myprefix_add_cron_schedule($ED)
{
$ED["\x77\x65\145\153\x6c\x79"] = array("\151\x6e\164\x65\162\x76\141\x6c" => 604800, "\144\151\x73\160\x6c\x61\x79" => __("\117\x6e\x63\145\x20\x57\145\x65\x6b\x6c\x79"));
$ED["\x6d\157\156\164\x68\154\x79"] = array("\x69\x6e\164\145\x72\166\x61\154" => 2635200, "\144\151\163\160\154\x61\x79" => __("\x4f\156\143\145\x20\x4d\x6f\156\x74\150\x6c\x79"));
return $ED;
}
function metadata_sync_cron_action()
{
$SL = get_site_option("\x73\x61\x6d\x6c\x5f\151\x64\145\156\x74\x69\164\171\x5f\156\141\x6d\145");
$this->upload_metadata(@file_get_contents(get_site_option("\163\x61\x6d\154\x5f\x6d\x65\x74\x61\144\x61\164\x61\x5f\165\x72\x6c\137\x66\x6f\162\137\163\x79\x6e\x63")));
update_site_option("\x73\x61\155\154\137\x69\x64\145\156\164\151\164\171\x5f\156\x61\x6d\x65", $SL);
}
function mo_login_widget_saml_options()
{
global $wpdb;
update_site_option("\155\x6f\x5f\163\x61\155\154\137\150\157\163\164\x5f\x6e\141\155\x65", "\x68\164\164\x70\x73\x3a\57\57\154\157\147\x69\x6e\56\x78\x65\143\x75\162\151\146\x79\x2e\x63\157\x6d");
mo_register_saml_sso();
}
function mo_saml_success_message()
{
$qj = "\x65\x72\162\x6f\162";
$o6 = get_site_option("\x6d\x6f\x5f\163\x61\x6d\154\137\x6d\x65\x73\x73\141\147\x65");
echo "\x3c\x64\x69\x76\40\x63\x6c\141\x73\x73\75\47" . $qj . "\x27\76\x20\x3c\x70\x3e" . $o6 . "\74\x2f\160\76\x3c\x2f\144\x69\x76\x3e";
}
function mo_saml_error_message()
{
$qj = "\x75\x70\144\x61\164\x65\144";
$o6 = get_site_option("\x6d\x6f\x5f\x73\141\x6d\154\x5f\155\x65\x73\163\141\x67\x65");
echo "\x3c\144\x69\166\x20\143\154\141\163\x73\x3d\47" . $qj . "\x27\76\x20\x3c\x70\76" . $o6 . "\x3c\57\x70\x3e\74\57\x64\x69\x76\x3e";
}
public function mo_sso_saml_deactivate()
{
do_action("\x6d\x6f\137\163\x61\x6d\154\137\146\x6c\165\x73\x68\x5f\x63\x61\x63\150\145");
delete_site_option("\155\x6f\x5f\163\141\155\154\x5f\x68\157\x73\164\137\156\x61\155\145");
delete_site_option("\x6d\x6f\x5f\x73\x61\x6d\x6c\137\x6e\145\167\137\162\145\147\x69\x73\x74\x72\141\164\x69\157\x6e");
delete_site_option("\x6d\x6f\137\x73\x61\155\154\x5f\x61\144\x6d\151\x6e\137\x70\x68\x6f\x6e\145");
delete_site_option("\155\x6f\137\x73\x61\x6d\154\137\141\144\155\151\156\137\160\x61\x73\x73\x77\x6f\x72\144");
delete_site_option("\155\157\137\x73\141\x6d\154\x5f\x76\x65\x72\151\146\171\137\x63\165\163\x74\157\x6d\145\x72");
delete_site_option("\155\157\137\163\x61\x6d\x6c\137\141\x64\x6d\151\156\137\x63\x75\x73\164\x6f\x6d\145\x72\137\x6b\145\x79");
delete_site_option("\x6d\157\x5f\x73\141\155\154\137\141\144\155\151\x6e\137\x61\160\151\137\153\x65\x79");
delete_site_option("\155\157\137\163\x61\155\x6c\137\x63\x75\x73\x74\157\x6d\145\x72\x5f\164\157\x6b\145\x6e");
delete_site_option("\x6d\157\137\x73\141\x6d\x6c\x5f\155\145\x73\163\x61\x67\x65");
delete_site_option("\155\x6f\x5f\x73\x61\155\x6c\x5f\x72\x65\x67\x69\163\164\162\x61\x74\151\x6f\156\137\163\x74\x61\x74\x75\x73");
delete_site_option("\155\157\x5f\x73\141\x6d\x6c\x5f\151\x64\160\x5f\143\157\156\x66\151\147\137\143\157\x6d\160\154\145\164\145");
delete_site_option("\x6d\x6f\x5f\163\x61\x6d\x6c\137\164\162\141\x6e\163\141\143\164\151\157\156\x49\x64");
delete_site_option("\155\x6f\x5f\163\141\155\154\137\x65\156\141\x62\154\145\x5f\x63\x6c\x6f\x75\x64\137\142\x72\x6f\x6b\145\162");
}
public function mo_sso_saml_activate()
{
if (is_multisite()) {
goto Gx;
}
echo "\125\156\141\142\154\x65\40\x74\x6f\40\x61\143\x74\151\x76\x61\x74\x65\x20\x74\150\145\40\x70\x6c\165\x67\151\156\x2e\x20\111\164\40\163\x65\145\x6d\x73\x20\154\151\x6b\145\40\171\x6f\165\x20\x61\x72\145\40\164\x72\171\151\x6e\x67\x20\x74\x6f\x20\151\156\163\x74\x61\154\x6c\40\164\150\145\x20\74\142\x3e\x6d\x75\x6c\x74\151\163\x69\x74\145\x20\x70\154\x75\147\x69\x6e\74\57\142\76\x20\151\156\40\164\x68\145\x20\x73\x69\x6e\x67\154\x65\55\x73\x69\x74\x65\40\x65\156\166\x69\162\157\x6e\155\x65\x6e\164\56\x20\120\x6c\x65\141\163\x65\40\143\x6f\x6e\x74\141\143\164\x20\x3c\x62\76\x73\141\155\x6c\163\x75\x70\160\157\162\164\100\170\145\143\x75\162\x69\x66\x79\x2e\143\x6f\x6d\x3c\x2f\142\x3e\40\146\x6f\x72\x20\155\157\162\145\40\144\145\164\x61\x69\154\x73";
exit;
Gx:
if (mo_saml_is_extension_installed("\x6f\160\x65\x6e\163\x73\154")) {
goto RJ;
}
wp_die("\x50\x48\120\40\157\x70\x65\156\163\x73\x6c\40\x65\170\x74\x65\156\163\151\157\x6e\40\151\x73\40\x6e\157\x74\x20\151\156\163\164\x61\x6c\154\145\x64\40\x6f\162\40\x64\x69\163\x61\142\154\145\x64\x2c\x70\154\x65\x61\x73\145\40\x65\x6e\141\142\154\x65\40\x69\x74\40\164\x6f\x20\x61\x63\164\151\x76\x61\x74\x65\40\x74\150\x65\40\x70\154\165\x67\x69\x6e\56");
RJ:
add_option("\x41\143\164\x69\166\x61\x74\145\144\x5f\120\154\x75\x67\151\156", "\x50\x6c\x75\147\x69\156\x2d\123\x6c\x75\x67");
$this->mo_saml_migrate_configuration();
}
function mo_saml_migrate_configuration()
{
$wa = maybe_unserialize(get_site_option("\163\141\155\154\137\x73\163\157\137\163\x65\x74\x74\151\x6e\147\163"));
if (empty($wa)) {
goto m7;
}
return;
m7:
$wa["\104\x45\x46\x41\x55\x4c\124"] = array();
$wa["\x44\105\x46\x41\x55\114\124"]["\x6d\157\137\x73\x61\x6d\x6c\137\162\x65\x6c\x61\x79\x5f\x73\164\141\164\145"] = !empty(get_site_option("\155\x6f\x5f\x73\141\155\154\x5f\x72\x65\x6c\141\171\x5f\x73\x74\141\x74\145")) ? get_site_option("\x6d\157\137\x73\x61\x6d\x6c\x5f\x72\145\154\141\171\x5f\x73\x74\141\x74\x65") : '';
$wa["\104\x45\x46\101\x55\x4c\x54"]["\155\x6f\x5f\x73\x61\155\154\137\x72\145\x67\x69\x73\x74\x65\x72\x65\144\137\x6f\156\154\171\x5f\141\143\x63\145\x73\x73"] = !empty(get_site_option("\x6d\x6f\x5f\x73\141\x6d\x6c\x5f\162\x65\147\x69\x73\164\145\162\x65\144\x5f\x6f\156\154\x79\x5f\x61\143\143\x65\x73\x73")) ? get_site_option("\x6d\x6f\137\x73\x61\155\154\137\x72\145\147\151\x73\x74\x65\162\x65\x64\137\x6f\156\x6c\x79\137\141\x63\143\x65\x73\163") : '';
$wa["\x44\105\x46\101\x55\114\124"]["\x6d\157\x5f\163\141\155\x6c\x5f\x66\157\x72\x63\x65\x5f\x61\165\164\x68\x65\156\x74\151\143\x61\x74\151\157\x6e"] = !empty(get_site_option("\x6d\157\137\163\141\x6d\154\137\146\157\162\x63\145\137\141\165\x74\150\x65\x6e\x74\x69\x63\141\164\151\157\x6e")) ? get_site_option("\x6d\x6f\137\x73\x61\x6d\154\x5f\146\x6f\x72\143\x65\x5f\x61\165\164\150\x65\x6e\x74\151\x63\141\x74\151\157\156") : '';
$wa["\104\x45\106\101\x55\114\124"]["\155\157\137\163\x61\x6d\x6c\x5f\x65\156\141\142\x6c\x65\137\154\x6f\x67\151\156\x5f\x72\145\x64\151\162\x65\143\x74"] = !empty(get_site_option("\x6d\x6f\137\163\x61\x6d\x6c\137\x65\156\x61\142\x6c\145\137\154\157\147\x69\x6e\137\x72\x65\x64\151\x72\145\x63\164")) ? get_site_option("\155\157\x5f\163\x61\155\154\x5f\145\156\141\x62\154\145\x5f\154\x6f\147\x69\156\x5f\162\145\x64\x69\x72\x65\x63\x74") : '';
$wa["\104\105\x46\101\x55\x4c\x54"]["\155\157\137\x73\x61\155\x6c\137\x61\154\x6c\157\167\x5f\167\160\x5f\x73\x69\x67\x6e\x69\x6e"] = !empty(get_site_option("\155\157\137\x73\141\155\x6c\x5f\141\154\154\157\167\x5f\167\x70\137\163\151\147\x6e\x69\x6e")) ? get_site_option("\x6d\x6f\x5f\x73\141\x6d\154\x5f\x61\154\x6c\x6f\167\x5f\x77\160\x5f\163\151\147\156\151\x6e") : '';
delete_site_option("\x73\x61\x6d\154\x5f\x72\x65\161\165\x65\x73\x74\137\x73\151\x67\x6e\x65\x64");
update_site_option("\163\x61\x6d\154\x5f\x73\163\157\137\163\145\164\164\151\x6e\x67\x73", $wa);
}
function mo_saml_show_success_message()
{
remove_action("\x6e\145\x74\167\x6f\x72\153\137\141\144\x6d\x69\x6e\137\156\x6f\x74\151\x63\145\163", array($this, "\155\x6f\137\163\x61\x6d\154\x5f\x73\x75\x63\x63\145\x73\163\137\155\x65\x73\163\141\147\x65"));
add_action("\156\145\164\x77\157\162\x6b\x5f\x61\144\x6d\x69\x6e\137\156\157\164\x69\x63\x65\163", array($this, "\x6d\x6f\137\163\141\155\154\137\x65\162\162\x6f\162\x5f\155\145\163\163\x61\147\x65"));
}
function mo_saml_show_error_message()
{
remove_action("\x6e\145\164\167\x6f\162\x6b\137\x61\x64\155\x69\x6e\137\156\157\164\151\x63\145\x73", array($this, "\155\157\x5f\x73\141\x6d\x6c\x5f\x65\162\x72\x6f\162\x5f\155\145\163\x73\x61\147\x65"));
add_action("\x6e\x65\x74\x77\157\162\153\137\141\x64\x6d\151\156\137\156\157\164\151\x63\x65\163", array($this, "\x6d\x6f\x5f\163\x61\155\x6c\137\x73\x75\143\x63\x65\163\x73\x5f\x6d\x65\x73\x73\x61\x67\145"));
}
function plugin_settings_style($vv)
{
if (!("\164\157\160\154\145\x76\x65\x6c\137\160\x61\147\x65\x5f\x6d\x6f\137\163\141\155\x6c\x5f\163\145\x74\x74\151\x6e\147\163" != $vv)) {
goto Gl;
}
return;
Gl:
if (!empty($_REQUEST["\x74\x61\142"]) && $_REQUEST["\x74\x61\x62"] == "\154\x69\x63\145\156\163\151\x6e\x67") {
goto FK;
}
wp_enqueue_style("\x6d\157\x5f\x73\141\155\154\x5f\x61\144\x6d\151\x6e\137\163\145\164\x74\151\156\147\x73\x5f\163\x74\x79\154\145", plugins_url("\151\156\x63\x6c\165\x64\145\163\57\x63\163\163\x2f\163\164\171\154\x65\x5f\x73\x65\164\x74\x69\156\x67\163\56\x6d\151\156\x2e\143\163\x73", __FILE__), array(), mo_options_plugin_constants::Version, "\141\154\154");
wp_enqueue_style("\155\157\x5f\x73\x61\x6d\x6c\137\x61\x64\x6d\x69\156\x5f\163\x65\164\x74\151\156\x67\163\x5f\163\164\x79\x6c\145\137\164\162\141\143\x6b\145\x72", plugins_url("\x69\156\x63\x6c\165\144\145\163\x2f\143\163\x73\x2f\x70\162\157\147\162\145\x73\x73\55\164\162\x61\x63\153\x65\x72\x2e\x63\163\163", __FILE__), array(), mo_options_plugin_constants::Version, "\x61\x6c\x6c");
wp_enqueue_style("\x6d\157\137\x73\x61\x6d\x6c\137\141\144\x6d\151\x6e\137\163\145\164\x74\151\x6e\147\163\137\x70\x68\157\156\x65\137\163\164\171\154\x65", plugins_url("\151\156\x63\x6c\x75\x64\x65\163\57\x63\x73\x73\x2f\x70\150\157\156\145\x2e\x63\163\x73", __FILE__), array(), mo_options_plugin_constants::Version, "\141\154\154");
wp_enqueue_style("\155\x6f\x5f\163\141\x6d\154\137\167\160\x62\55\x66\x61", plugins_url("\x69\x6e\143\154\165\x64\x65\x73\57\x63\163\163\57\x66\157\156\x74\55\x61\x77\145\163\157\155\145\x2e\x6d\151\156\56\x63\x73\x73", __FILE__), array(), mo_options_plugin_constants::Version, "\141\154\x6c");
wp_enqueue_style("\155\x6f\137\163\141\x6d\154\137\141\x64\155\x69\x6e\x5f\x73\x65\x74\164\x69\156\x67\163\x5f\x73\x74\171\154\x65", plugins_url("\x69\156\x63\x6c\165\144\x65\163\57\x63\x73\163\57\x6a\161\x75\x65\x72\171\x2e\x75\151\56\x63\x73\x73", __FILE__), array(), mo_options_plugin_constants::Version, "\x61\x6c\x6c");
goto yF;
FK:
wp_enqueue_style("\x6d\x6f\137\x73\x61\x6d\154\137\x62\x6f\x6f\x74\163\164\x72\141\x70\x5f\143\163\163", plugins_url("\x69\x6e\143\154\x75\x64\x65\163\57\143\163\x73\57\142\157\x6f\x74\163\x74\162\141\160\57\x62\x6f\x6f\164\x73\164\162\141\x70\56\155\x69\156\x2e\x63\x73\x73", __FILE__), array(), mo_options_plugin_constants::Version, "\x61\x6c\x6c");
wp_enqueue_style("\x6d\x6f\137\163\x61\x6d\x6c\137\x61\144\x6d\151\156\x5f\x73\145\164\164\x69\x6e\x67\163\x5f\x73\164\171\154\x65", plugins_url("\151\x6e\x63\154\165\144\x65\x73\x2f\x63\163\163\57\x73\x74\x79\x6c\x65\x5f\163\145\164\164\x69\x6e\x67\x73\56\x6d\151\156\56\x63\163\163", __FILE__), array(), mo_options_plugin_constants::Version, "\141\154\154");
yF:
}
function plugin_settings_script($vv)
{
if (!("\x74\157\160\154\145\x76\145\154\137\160\141\147\x65\x5f\155\157\x5f\163\x61\x6d\x6c\137\163\x65\x74\x74\x69\156\147\x73" != $vv)) {
goto tw;
}
return;
tw:
if (!empty($_REQUEST["\x74\141\142"]) && $_REQUEST["\164\x61\142"] == "\x6c\151\143\x65\156\163\x69\x6e\x67") {
goto IC;
}
wp_enqueue_script("\x6a\x71\x75\145\162\171");
wp_enqueue_script("\x6d\157\x5f\163\x61\155\x6c\x5f\141\x64\155\151\156\137\x73\x65\x74\x74\x69\x6e\x67\x73\x5f\143\x6f\154\157\162\x5f\163\x63\x72\x69\x70\x74", plugins_url("\x69\156\x63\154\165\144\145\x73\x2f\x6a\163\x2f\x6a\x73\143\157\154\x6f\162\57\152\163\143\x6f\154\x6f\x72\x2e\152\x73", __FILE__), array(), mo_options_plugin_constants::Version, false);
wp_enqueue_script("\x6d\157\137\163\x61\x6d\x6c\x5f\141\144\x6d\151\156\137\163\x65\x74\x74\x69\x6e\x67\163\137\x70\x68\x6f\156\145\x5f\x73\143\x72\x69\160\x74", plugins_url("\x69\156\143\154\165\x64\x65\x73\57\x6a\163\x2f\160\x68\157\156\145\x2e\152\163", __FILE__), array(), mo_options_plugin_constants::Version, false);
wp_enqueue_script("\x6d\x6f\137\x73\141\155\x6c\137\141\x64\x6d\151\156\x5f\142\x6f\x6f\x74\x73\164\x72\x61\160\x5f\163\x63\x72\151\160\164", plugins_url("\x69\156\143\x6c\165\144\x65\163\x2f\152\163\57\142\157\157\164\x73\164\162\x61\x70\x2f\x62\157\x6f\x74\x73\x74\162\141\160\56\155\x69\156\56\x6a\163", __FILE__), array(), mo_options_plugin_constants::Version, false);
goto kZ;
IC:
wp_enqueue_script("\155\157\137\163\x61\155\154\137\155\157\x64\x65\162\x6e\x69\172\x72\137\x73\143\162\x69\160\164", plugins_url("\151\x6e\x63\154\165\144\145\163\57\152\x73\x2f\155\157\x64\145\162\156\151\172\x72\x2e\x6a\163", __FILE__), array(), mo_options_plugin_constants::Version, false);
wp_enqueue_script("\155\x6f\137\x73\x61\x6d\x6c\137\160\157\160\x6f\166\x65\x72\x5f\x73\143\x72\x69\x70\x74", plugins_url("\151\156\x63\154\x75\x64\x65\163\57\152\163\57\x62\x6f\157\x74\163\164\162\x61\160\x2f\160\x6f\x70\x70\145\x72\56\x6d\151\x6e\x2e\152\x73", __FILE__), array(), mo_options_plugin_constants::Version, false);
wp_enqueue_script("\155\x6f\x5f\163\141\x6d\x6c\x5f\142\157\157\164\163\x74\x72\x61\x70\x5f\163\143\162\151\160\164", plugins_url("\x69\x6e\143\x6c\x75\x64\145\x73\x2f\152\x73\x2f\x62\x6f\157\x74\163\164\162\x61\160\x2f\142\x6f\157\x74\x73\164\x72\x61\160\56\x6d\x69\x6e\x2e\152\163", __FILE__), array(), mo_options_plugin_constants::Version, false);
kZ:
wp_enqueue_script("\155\157\137\x73\141\155\x6c\137\141\144\155\151\x6e\x5f\x73\145\x74\164\x69\156\147\163\137\163\x63\x72\151\x70\x74", plugins_url("\151\156\x63\154\165\144\145\x73\57\x6a\163\57\163\x65\x74\164\x69\x6e\x67\163\56\155\151\x6e\x2e\152\x73", __FILE__), array(), mo_options_plugin_constants::Version, false);
}
function mo_saml_login_enqueue_scripts()
{
wp_enqueue_script("\152\161\165\145\x72\x79");
}
function mo_saml_activation_message()
{
$qj = "\x75\160\144\141\x74\x65\144";
$o6 = get_site_option("\x6d\157\137\163\x61\155\154\137\155\x65\163\163\x61\x67\145");
echo "\x3c\144\151\x76\x20\143\x6c\x61\163\163\75\47" . $qj . "\x27\76\40\x3c\x70\76" . $o6 . "\74\x2f\160\76\74\57\144\x69\166\76";
}
function mo_saml_custom_attr_column($cM)
{
$pd = maybe_unserialize(get_site_option("\155\157\137\x73\141\x6d\x6c\137\143\x75\163\164\x6f\155\137\141\164\164\x72\x73\137\x6d\141\160\x70\151\x6e\x67"));
$M0 = maybe_unserialize(get_site_option("\x73\141\155\154\x5f\163\x68\157\167\137\165\x73\x65\x72\137\x61\x74\x74\x72\x69\x62\165\x74\145"));
$fN = 0;
if (!(is_array($M0) && is_array($pd))) {
goto mV;
}
foreach ($pd as $tK => $Cd) {
if (empty($tK)) {
goto US;
}
if (!Utilities::mo_saml_in_array($fN, $M0)) {
goto vM;
}
$cM[$tK] = $tK;
vM:
US:
$fN++;
Fo:
}
Fg:
mV:
return $cM;
}
function mo_saml_attr_column_content($YS, $U4, $Q3)
{
$pd = maybe_unserialize(get_site_option("\x6d\x6f\137\163\x61\x6d\x6c\137\x63\165\x73\x74\x6f\x6d\x5f\x61\164\x74\162\163\137\155\x61\x70\x70\151\x6e\x67"));
if (!is_array($pd)) {
goto bY;
}
foreach ($pd as $tK => $Cd) {
if (!($tK === $U4)) {
goto Pp;
}
$t5 = get_user_meta($Q3, $U4, false);
if (empty($t5)) {
goto mJ;
}
if (!is_array($t5[0])) {
goto og;
}
$um = '';
foreach ($t5[0] as $zD) {
$um = $um . $zD;
if (!next($t5[0])) {
goto Pk;
}
$um = $um . "\x20\x7c\40";
Pk:
qx:
}
a_:
return $um;
goto Ho;
og:
return $t5[0];
Ho:
mJ:
Pp:
W8:
}
FL:
bY:
return $YS;
}
static function mo_check_option_admin_referer($BQ)
{
return !empty($_POST["\x6f\x70\x74\x69\157\x6e"]) and $_POST["\x6f\160\x74\x69\157\x6e"] == $BQ and check_admin_referer($BQ);
}
function miniorange_login_widget_saml_save_settings()
{
if (!current_user_can("\155\x61\x6e\x61\x67\x65\x5f\x6f\160\x74\151\157\x6e\163")) {
goto QI;
}
if (!(is_admin() && get_option("\101\x63\x74\151\x76\141\164\145\144\137\x50\154\x75\x67\x69\156") == "\x50\x6c\165\x67\x69\x6e\x2d\x53\x6c\x75\x67")) {
goto QV;
}
delete_option("\101\x63\x74\x69\x76\141\x74\145\x64\137\120\154\x75\x67\151\x6e");
update_site_option("\155\157\137\163\141\155\x6c\x5f\x6d\145\x73\163\141\x67\x65", "\107\x6f\x20\164\x6f\40\160\154\165\x67\x69\x6e\x20\74\x62\76\74\x61\40\x68\162\145\x66\x3d\x22\141\144\155\151\x6e\56\x70\150\160\77\x70\141\147\145\75\155\x6f\137\163\x61\155\154\137\163\x65\164\x74\x69\156\147\x73\x22\76\x73\145\x74\x74\151\156\147\163\x3c\57\141\x3e\74\x2f\142\x3e\x20\x74\157\40\x63\157\x6e\x66\x69\147\x75\x72\145\x20\x53\x41\x4d\x4c\x20\x53\151\156\x67\x6c\145\40\x53\151\x67\x6e\40\x4f\156\40\142\171\x20\155\x69\x6e\x69\117\x72\x61\x6e\147\145\56");
add_action("\156\145\164\167\x6f\162\x6b\x5f\x61\x64\x6d\151\156\x5f\156\157\x74\151\x63\145\163", array($this, "\155\157\x5f\163\x61\x6d\x6c\137\x61\143\164\151\x76\x61\164\151\x6f\156\x5f\x6d\x65\x73\163\141\147\145"));
QV:
if (!self::mo_check_option_admin_referer("\154\x6f\x67\151\156\x5f\x77\x69\144\147\145\x74\x5f\163\x61\x6d\154\137\x73\x61\x76\145\x5f\x73\145\164\164\151\156\147\163")) {
goto Of;
}
if (mo_saml_is_extension_installed("\143\165\162\x6c")) {
goto yk;
}
update_site_option("\x6d\x6f\x5f\x73\x61\155\154\137\x6d\145\x73\x73\x61\x67\x65", "\105\122\122\x4f\122\x3a\40\74\x61\x20\x68\x72\145\x66\75\42\150\x74\x74\160\x3a\x2f\x2f\160\150\x70\x2e\x6e\x65\x74\57\155\141\156\165\141\154\x2f\145\x6e\57\x63\165\162\x6c\56\151\156\163\164\x61\x6c\x6c\x61\x74\x69\157\156\x2e\x70\150\x70\x22\x20\x74\141\x72\x67\x65\x74\75\42\x5f\x62\154\x61\156\153\42\76\120\x48\x50\40\143\x55\x52\x4c\x20\x65\x78\x74\x65\x6e\x73\151\x6f\156\x3c\x2f\141\76\40\x69\x73\x20\x6e\x6f\x74\x20\x69\156\x73\164\141\154\x6c\x65\x64\x20\x6f\x72\x20\x64\x69\x73\x61\142\x6c\x65\144\x2e\x20\123\141\166\x65\40\x49\144\x65\156\x74\151\164\171\40\120\162\157\x76\x69\144\145\162\x20\x43\x6f\156\146\x69\x67\165\x72\x61\164\151\x6f\156\40\x66\141\151\x6c\145\144\56");
$this->mo_saml_show_error_message();
return;
yk:
$SL = '';
$Ta = '';
$Qm = '';
$Gg = '';
$cd = '';
$y1 = '';
$On = '';
$u7 = '';
$vl = '';
if (empty($_POST["\x73\x61\155\154\137\151\x64\145\x6e\x74\151\x74\171\137\x6e\141\155\x65"]) || empty($_POST["\x73\x61\155\154\x5f\154\157\x67\x69\x6e\137\x75\x72\154"]) || empty($_POST["\163\x61\155\x6c\x5f\151\163\163\x75\x65\162"])) {
goto Z1;
}
if (!preg_match("\x2f\x5e\x5c\167\52\44\x2f", $_POST["\x73\141\x6d\154\137\x69\x64\145\156\x74\x69\164\x79\137\x6e\x61\x6d\145"])) {
goto rI;
}
$SL = htmlspecialchars(trim($_POST["\163\x61\x6d\154\137\151\144\x65\x6e\x74\x69\x74\171\137\156\x61\155\x65"]));
$Qm = htmlspecialchars(trim($_POST["\163\x61\x6d\154\137\154\x6f\147\x69\156\137\x75\162\154"]));
if (!array_key_exists("\x73\141\155\x6c\x5f\154\157\x67\x69\156\x5f\142\x69\x6e\x64\x69\156\147\137\x74\x79\160\145", $_POST)) {
goto yh;
}
$Ta = htmlspecialchars($_POST["\x73\x61\155\x6c\x5f\154\x6f\x67\x69\x6e\x5f\142\x69\156\x64\151\x6e\147\x5f\x74\x79\160\x65"]);
yh:
if (!array_key_exists("\163\x61\155\154\137\154\x6f\x67\x6f\x75\x74\137\142\x69\x6e\x64\151\156\147\x5f\x74\171\160\145", $_POST)) {
goto B6;
}
$Gg = htmlspecialchars($_POST["\x73\x61\x6d\x6c\137\154\x6f\x67\x6f\165\x74\137\142\151\x6e\x64\151\156\147\137\x74\x79\x70\x65"]);
B6:
if (!array_key_exists("\163\x61\155\154\x5f\x6c\157\x67\157\165\x74\137\165\162\x6c", $_POST)) {
goto ke;
}
$cd = htmlspecialchars(trim($_POST["\x73\141\155\154\137\154\x6f\147\157\x75\164\137\x75\x72\154"]));
ke:
$y1 = htmlspecialchars(trim($_POST["\163\x61\x6d\x6c\137\151\x73\163\165\145\162"]));
$f1 = htmlspecialchars(trim($_POST["\x6d\157\137\x73\141\155\154\x5f\x69\x64\x65\156\164\x69\164\x79\137\x70\x72\x6f\x76\151\144\x65\x72\137\x69\x64\145\156\164\x69\146\x69\145\x72\x5f\x6e\141\155\145"]));
$On = maybe_unserialize($_POST["\163\x61\x6d\154\137\170\x35\60\x39\137\143\145\x72\164\x69\x66\151\x63\x61\x74\145"]);
$vl = htmlspecialchars($_POST["\x73\x61\155\154\x5f\156\141\155\145\x69\144\x5f\146\157\x72\155\141\164"]);
goto pJ;
rI:
update_site_option("\155\157\x5f\163\141\155\x6c\x5f\x6d\x65\163\163\141\x67\145", "\x50\154\x65\141\x73\145\x20\x6d\141\164\x63\x68\40\164\150\145\x20\162\x65\x71\x75\145\x73\x74\145\x64\40\x66\x6f\162\x6d\141\164\40\x66\x6f\162\x20\x49\x64\145\156\164\x69\x74\171\x20\x50\162\157\166\151\144\145\x72\x20\116\x61\155\x65\56\40\x4f\x6e\154\171\40\x61\x6c\x70\150\x61\x62\x65\x74\163\54\x20\x6e\x75\x6d\142\x65\162\163\40\x61\156\x64\40\165\156\x64\145\x72\163\143\x6f\162\x65\x20\x69\163\x20\x61\x6c\154\x6f\x77\145\144\56");
$this->mo_saml_show_error_message();
return;
pJ:
goto X7;
Z1:
update_site_option("\155\157\137\x73\141\155\x6c\x5f\155\x65\x73\x73\141\x67\145", "\x41\x6c\x6c\x20\x74\150\x65\x20\146\151\145\x6c\144\x73\x20\141\162\145\40\162\145\x71\x75\151\162\x65\x64\56\x20\120\154\145\141\x73\x65\40\145\x6e\164\145\162\40\166\x61\154\151\x64\40\x65\x6e\x74\162\x69\x65\163\56");
$this->mo_saml_show_error_message();
return;
X7:
update_site_option("\163\x61\155\x6c\137\151\144\145\156\x74\x69\x74\171\137\x6e\x61\155\x65", $SL);
update_site_option("\163\x61\155\x6c\x5f\154\x6f\x67\x69\x6e\x5f\x62\151\156\x64\x69\x6e\147\x5f\x74\171\x70\x65", $Ta);
update_site_option("\163\141\155\x6c\x5f\x6c\x6f\147\151\x6e\x5f\165\162\154", $Qm);
update_site_option("\163\141\x6d\x6c\137\154\x6f\147\157\x75\x74\137\x62\151\x6e\144\151\x6e\147\x5f\164\x79\x70\x65", $Gg);
update_site_option("\x73\141\155\154\137\154\157\x67\x6f\x75\164\x5f\x75\162\154", $cd);
update_site_option("\163\x61\155\x6c\137\151\x73\x73\x75\145\162", $y1);
update_site_option("\163\141\x6d\154\137\156\x61\x6d\x65\151\x64\137\x66\x6f\x72\x6d\x61\x74", $vl);
update_site_option("\155\x6f\137\163\141\x6d\x6c\137\151\x64\145\x6e\164\151\x74\171\x5f\160\162\157\x76\x69\x64\145\162\x5f\151\144\145\156\x74\151\146\x69\x65\x72\137\156\141\155\145", $f1);
if (!empty($_POST["\163\141\155\x6c\137\x72\x65\x71\165\x65\x73\x74\x5f\x73\151\x67\x6e\145\x64"])) {
goto K4;
}
update_site_option("\163\x61\x6d\x6c\137\162\x65\161\x75\x65\x73\164\137\163\151\147\x6e\145\x64", "\165\x6e\x63\x68\145\143\x6b\x65\x64");
goto Jf;
K4:
update_site_option("\x73\x61\x6d\154\137\x72\145\x71\x75\145\163\x74\x5f\163\x69\x67\156\145\144", "\x63\150\x65\x63\x6b\x65\144");
Jf:
foreach ($On as $tK => $Cd) {
if (empty($Cd)) {
goto eQ;
}
$On[$tK] = Utilities::sanitize_certificate($Cd);
if (@openssl_x509_read($On[$tK])) {
goto Bt;
}
update_site_option("\x6d\x6f\137\x73\141\155\154\x5f\x6d\x65\163\163\141\147\145", "\x49\x6e\x76\x61\154\x69\144\40\x63\145\x72\x74\x69\146\x69\143\x61\164\145\40\146\157\x72\x6d\141\164\72\x50\x6c\145\141\163\x65\40\x70\162\157\x76\151\x64\x65\x20\141\40\x76\141\154\x69\x64\40\x63\x65\x72\164\x69\146\x69\143\x61\164\x65");
$this->mo_saml_show_error_message();
delete_site_option("\x73\x61\x6d\x6c\x5f\170\65\60\71\137\x63\x65\162\164\151\x66\151\x63\141\164\x65");
return;
Bt:
goto JX;
eQ:
unset($On[$tK]);
JX:
h1:
}
Xh:
if (!empty($On)) {
goto Qt;
}
update_site_option("\155\x6f\137\163\141\155\x6c\x5f\155\x65\x73\163\141\x67\x65", "\111\156\x76\141\x6c\151\144\x20\143\x65\x72\164\151\146\x69\x63\141\x74\145\40\146\157\x72\155\x61\164\40\72\40\120\154\145\141\163\x65\40\160\x72\x6f\166\x69\x64\x65\x20\141\40\143\x65\162\x74\151\x66\151\x63\141\164\145");
$this->mo_saml_show_error_message();
return;
Qt:
if (!empty($_POST["\x73\x61\155\x6c\137\x61\x73\x73\x65\162\x74\151\157\156\x5f\163\x69\147\x6e\x65\144"])) {
goto Be;
}
update_site_option("\163\141\x6d\154\x5f\141\x73\163\x65\162\164\151\x6f\156\137\163\x69\x67\156\x65\x64", "\x59\145\x73");
goto B8;
Be:
update_site_option("\163\x61\x6d\154\x5f\141\x73\163\x65\162\x74\x69\x6f\156\x5f\x73\x69\147\156\x65\x64", "\x63\x68\x65\x63\x6b\x65\144");
B8:
update_site_option("\x73\x61\155\154\137\170\x35\60\x39\x5f\x63\x65\162\164\x69\146\151\x63\141\x74\x65", $On);
if (array_key_exists("\x65\156\x61\142\154\x65\137\x69\143\157\156\166", $_POST)) {
goto ey;
}
update_site_option("\155\157\x5f\163\141\x6d\154\x5f\145\x6e\x63\x6f\x64\x69\156\147\x5f\x65\156\141\x62\x6c\x65\x64", '');
goto CH;
ey:
update_site_option("\x6d\x6f\x5f\x73\x61\155\154\137\145\156\143\157\x64\x69\x6e\147\x5f\x65\x6e\141\x62\x6c\145\144", "\143\x68\x65\143\153\x65\x64");
CH:
update_site_option("\155\x6f\x5f\163\141\x6d\x6c\137\x6d\145\x73\x73\141\147\x65", "\x49\x64\145\x6e\164\151\x74\x79\x20\x50\x72\x6f\166\x69\144\x65\162\40\144\x65\x74\x61\x69\x6c\x73\x20\x73\141\166\145\x64\x20\x73\x75\x63\x63\x65\163\x73\x66\165\x6c\x6c\171\56");
$this->mo_saml_show_success_message();
Of:
if (!self::mo_check_option_admin_referer("\154\157\x67\151\x6e\137\167\151\x64\147\145\x74\x5f\x73\141\x6d\x6c\x5f\141\164\x74\162\151\x62\x75\x74\x65\x5f\155\x61\x70\x70\x69\x6e\x67")) {
goto Un;
}
if (mo_saml_is_extension_installed("\x63\x75\162\154")) {
goto Ls;
}
update_site_option("\155\157\x5f\163\141\155\154\137\155\145\163\163\x61\147\145", "\x45\122\122\x4f\x52\x3a\40\x3c\141\x20\x68\162\x65\146\75\42\x68\x74\164\160\72\57\x2f\x70\150\x70\56\x6e\145\x74\x2f\x6d\141\x6e\x75\x61\154\57\145\156\57\143\165\162\154\x2e\151\x6e\x73\x74\141\x6c\154\x61\164\x69\x6f\x6e\56\x70\150\160\42\40\x74\x61\x72\x67\x65\164\75\42\137\x62\x6c\x61\x6e\153\x22\x3e\x50\110\x50\x20\x63\125\122\114\40\x65\170\x74\x65\156\163\x69\x6f\156\x3c\x2f\141\x3e\40\x69\x73\40\156\x6f\x74\x20\151\x6e\x73\164\x61\154\154\145\144\x20\x6f\x72\40\x64\x69\163\x61\x62\x6c\145\144\56\40\123\x61\166\145\40\101\164\x74\162\x69\x62\165\x74\145\x20\x4d\141\160\x70\151\x6e\147\x20\x66\x61\151\x6c\145\x64\56");
$this->mo_saml_show_error_message();
return;
Ls:
update_site_option("\x73\x61\x6d\154\137\x61\x6d\x5f\165\163\x65\162\156\x61\x6d\x65", htmlspecialchars(stripslashes($_POST["\163\x61\x6d\x6c\x5f\141\x6d\x5f\165\163\x65\162\156\141\x6d\x65"])));
update_site_option("\163\x61\155\154\137\x61\155\x5f\145\155\141\151\x6c", htmlspecialchars(stripslashes($_POST["\x73\x61\155\x6c\x5f\x61\x6d\x5f\x65\155\x61\151\154"])));
update_site_option("\x73\141\x6d\x6c\x5f\x61\x6d\137\x66\151\x72\163\164\137\156\x61\155\145", htmlspecialchars(stripslashes($_POST["\x73\141\155\154\x5f\x61\155\x5f\146\151\162\x73\164\137\x6e\x61\x6d\x65"])));
update_site_option("\x73\x61\x6d\x6c\137\x61\x6d\x5f\x6c\141\x73\164\137\156\141\x6d\145", htmlspecialchars(stripslashes($_POST["\163\x61\155\154\137\141\x6d\137\x6c\141\x73\x74\137\156\x61\155\x65"])));
update_site_option("\163\141\155\x6c\137\141\x6d\x5f\x67\162\x6f\x75\x70\137\156\x61\x6d\145", htmlspecialchars(stripslashes($_POST["\x73\141\x6d\x6c\x5f\x61\x6d\137\147\162\157\165\x70\x5f\x6e\x61\155\145"])));
update_site_option("\x73\x61\x6d\x6c\137\141\x6d\137\144\151\163\160\154\141\171\x5f\x6e\141\x6d\145", htmlspecialchars(stripslashes($_POST["\163\141\x6d\x6c\137\x61\155\x5f\x64\x69\163\x70\154\x61\171\137\156\141\155\145"])));
$pd = array();
$KL = array();
$El = array();
$cb = array();
if (empty($_POST["\x6d\x6f\137\x73\x61\155\x6c\137\143\x75\x73\x74\157\155\x5f\x61\x74\164\x72\151\x62\165\164\145\x5f\x6b\x65\171\163"])) {
goto tm;
}
$KL = $_POST["\155\157\x5f\163\x61\155\x6c\137\143\165\163\164\x6f\155\x5f\x61\164\164\162\x69\x62\x75\164\x65\x5f\x6b\x65\171\163"];
tm:
if (empty($_POST["\x6d\x6f\x5f\x73\x61\155\x6c\137\143\165\x73\x74\x6f\x6d\137\x61\x74\x74\162\x69\142\165\164\145\x5f\166\141\x6c\x75\x65\163"])) {
goto YF;
}
$El = $_POST["\x6d\x6f\137\163\x61\155\x6c\137\143\x75\x73\164\157\x6d\137\x61\164\x74\x72\x69\x62\165\164\145\137\166\x61\x6c\x75\x65\163"];
YF:
$xB = count($KL);
if (!($xB > 0)) {
goto tn;
}
$KL = array_map("\150\164\155\x6c\163\x70\145\x63\x69\x61\154\x63\x68\x61\x72\x73", $KL);
$El = array_map("\x68\x74\x6d\154\163\x70\x65\143\x69\141\154\x63\x68\141\x72\163", $El);
$Vd = 0;
Yv:
if (!($Vd < $xB)) {
goto hk;
}
if (empty($_POST["\155\157\x5f\163\141\155\x6c\137\144\x69\163\160\154\141\x79\137\x61\x74\x74\162\x69\142\x75\x74\145\x5f" . $Vd])) {
goto aq;
}
array_push($cb, $Vd);
aq:
$Vd++;
goto Yv;
hk:
tn:
update_site_option("\x73\x61\x6d\154\x5f\163\x68\x6f\x77\137\x75\x73\x65\x72\x5f\141\x74\164\x72\x69\142\x75\164\145", $cb);
$pd = array_combine($KL, $El);
$pd = array_filter($pd);
if (!empty($pd)) {
goto r6;
}
$pd = get_site_option("\155\x6f\137\x73\x61\155\154\x5f\143\x75\163\x74\x6f\x6d\x5f\141\x74\164\162\163\137\155\141\x70\160\151\156\x67");
if (empty($pd)) {
goto lA;
}
delete_site_option("\x6d\x6f\137\163\x61\155\154\x5f\143\165\163\x74\157\155\x5f\x61\x74\164\x72\163\137\x6d\x61\160\160\x69\x6e\147");
lA:
goto ko;
r6:
update_site_option("\155\x6f\137\163\141\155\154\137\x63\x75\x73\164\157\x6d\137\x61\x74\x74\x72\163\x5f\155\141\160\160\151\x6e\147", $pd);
ko:
update_site_option("\155\157\137\163\141\155\x6c\x5f\155\145\x73\163\x61\147\x65", "\x41\x74\164\x72\151\x62\x75\x74\x65\40\115\x61\x70\160\151\x6e\x67\x20\144\x65\x74\141\x69\x6c\x73\x20\163\141\166\x65\144\x20\x73\165\143\x63\145\x73\x73\x66\x75\x6c\x6c\x79");
$this->mo_saml_show_success_message();
Un:
if (!self::mo_check_option_admin_referer("\x63\x6c\145\141\x72\137\x61\164\164\x72\x73\137\x6c\151\x73\x74")) {
goto f8;
}
delete_site_option("\155\157\x5f\x73\x61\155\x6c\137\x74\x65\163\164\137\143\157\x6e\146\x69\x67\137\x61\x74\164\162\x73");
update_site_option("\155\157\x5f\163\x61\x6d\154\x5f\155\145\163\163\141\147\x65", "\x41\x74\x74\162\x69\142\165\x74\x65\x73\x20\x6c\151\163\164\40\162\x65\x6d\157\x76\145\144\40\x73\x75\143\143\145\x73\x73\146\165\x6c\x6c\x79");
$this->mo_saml_show_success_message();
f8:
if (!self::mo_check_option_admin_referer("\x6d\x6f\137\x73\141\155\x6c\137\x61\144\144\x6f\x6e\163\137\155\145\x73\163\141\147\145")) {
goto hh;
}
update_option("\x6d\x6f\137\x73\x61\x6d\154\x5f\x73\x68\157\x77\x5f\x61\144\x64\x6f\156\x73\x5f\156\157\x74\x69\x63\x65", 1);
hh:
if (!self::mo_check_option_admin_referer("\x73\x61\x6d\x6c\x5f\x66\157\162\x6d\x5f\144\x6f\x6d\141\151\x6e\x5f\162\145\163\164\162\x69\143\164\151\x6f\x6e\x5f\157\160\x74\151\157\156")) {
goto VL;
}
$Wu = !empty($_POST["\155\157\x5f\x73\141\x6d\154\137\145\x6e\141\x62\154\x65\137\x64\157\155\x61\151\156\x5f\162\x65\163\x74\x72\x69\143\164\151\157\x6e\x5f\154\x6f\x67\x69\156"]) ? htmlspecialchars($_POST["\155\x6f\137\x73\141\155\x6c\x5f\145\156\141\x62\x6c\145\x5f\144\x6f\x6d\x61\151\156\137\162\x65\163\164\x72\x69\x63\164\x69\x6f\x6e\137\154\x6f\x67\x69\x6e"]) : '';
$yp = !empty($_POST["\x6d\157\137\163\141\x6d\x6c\x5f\x61\154\x6c\x6f\167\137\x64\x65\156\x79\137\x75\163\145\x72\137\x77\151\164\150\x5f\144\x6f\x6d\x61\151\156"]) ? htmlspecialchars($_POST["\x6d\157\x5f\x73\x61\155\x6c\137\x61\x6c\154\x6f\x77\137\144\145\x6e\x79\137\x75\x73\x65\x72\x5f\167\x69\164\150\137\x64\x6f\155\x61\151\156"]) : "\141\x6c\154\157\x77";
$Yi = !empty($_POST["\x73\141\155\x6c\137\x61\155\137\x65\155\141\x69\154\x5f\144\157\155\x61\151\x6e\163"]) ? htmlspecialchars($_POST["\x73\141\x6d\x6c\137\x61\155\137\145\155\x61\x69\154\x5f\144\157\155\141\x69\x6e\163"]) : '';
update_site_option("\155\x6f\137\x73\141\155\x6c\x5f\x65\x6e\141\x62\x6c\x65\137\144\x6f\x6d\141\151\x6e\137\162\x65\x73\164\x72\x69\x63\x74\x69\x6f\156\x5f\x6c\157\x67\151\x6e", $Wu);
update_site_option("\155\x6f\x5f\163\x61\x6d\x6c\137\141\154\154\157\x77\x5f\144\x65\x6e\171\x5f\165\163\x65\x72\137\x77\151\x74\150\x5f\x64\x6f\155\x61\151\x6e", $yp);
update_site_option("\x73\x61\155\x6c\x5f\141\155\x5f\145\155\x61\x69\154\137\144\157\x6d\141\151\156\x73", $Yi);
update_site_option("\x6d\157\x5f\x73\x61\155\154\x5f\x6d\x65\x73\x73\x61\147\145", "\x44\157\155\141\x69\x6e\x20\122\x65\163\x74\162\151\143\x74\x69\x6f\156\x20\x68\141\163\x20\142\145\x65\x6e\40\x73\141\166\145\144\x20\x73\x75\x63\x63\x65\x73\163\146\165\154\x6c\171\56");
$this->mo_saml_show_success_message();
VL:
if (!self::mo_check_option_admin_referer("\x6c\x6f\x67\151\156\x5f\x77\x69\x64\147\145\164\x5f\x73\x61\155\154\x5f\162\x6f\x6c\145\137\x6d\141\160\160\x69\x6e\x67")) {
goto cO;
}
if (mo_saml_is_extension_installed("\143\165\x72\154")) {
goto GM;
}
update_site_option("\x6d\x6f\137\x73\x61\155\154\137\155\145\163\163\x61\147\x65", "\105\122\x52\x4f\x52\72\40\x3c\141\x20\150\162\145\x66\x3d\x22\150\x74\164\x70\72\x2f\x2f\160\x68\160\x2e\156\x65\x74\57\x6d\141\156\165\x61\154\x2f\145\x6e\57\143\165\x72\x6c\56\151\x6e\163\x74\x61\x6c\154\141\164\151\157\x6e\56\x70\150\x70\42\40\164\141\162\147\145\164\75\42\137\142\x6c\141\x6e\x6b\x22\76\120\x48\120\40\143\x55\122\114\40\x65\170\x74\x65\x6e\x73\151\157\156\74\x2f\x61\x3e\x20\x69\163\x20\156\157\x74\x20\x69\x6e\163\x74\141\154\154\145\144\40\157\x72\40\x64\x69\x73\141\x62\154\x65\x64\x2e\x20\123\x61\166\x65\x20\122\x6f\x6c\x65\x20\x4d\x61\160\x70\x69\x6e\x67\x20\146\x61\x69\x6c\x65\x64\56");
$this->mo_saml_show_error_message();
return;
GM:
if (isset($_POST["\x6d\157\137\141\x70\x70\x6c\171\137\162\157\x6c\145\137\155\141\x70\x70\151\x6e\x67\137\146\157\162\137\x73\151\164\x65\x73"]) && $_POST["\155\157\x5f\141\160\x70\x6c\171\x5f\x72\157\x6c\x65\x5f\x6d\141\x70\x70\x69\x6e\147\137\146\157\x72\137\x73\x69\x74\x65\163"] == 0) {
goto ky;
}
if (!(isset($_POST["\x6d\157\137\141\x70\x70\x6c\x79\137\x72\x6f\x6c\145\137\155\141\x70\160\x69\156\x67\137\146\x6f\x72\x5f\163\x69\x74\145\163"]) && $_POST["\155\157\x5f\141\160\x70\154\171\x5f\162\x6f\x6c\145\x5f\155\x61\160\x70\151\x6e\147\x5f\146\157\x72\x5f\163\x69\164\x65\163"] == 1)) {
goto pC;
}
update_site_option("\x6d\x6f\x5f\x61\x70\x70\x6c\171\137\162\x6f\x6c\145\137\x6d\141\x70\160\x69\x6e\x67\137\x66\157\x72\x5f\x73\x69\164\x65\163", 1);
$Ui = 0;
$H2 = array();
update_site_option("\x73\x61\155\x6c\137\x61\x6d\x5f\162\x6f\154\145\x5f\x6d\141\160\x70\151\x6e\x67", $H2);
pC:
goto jw;
ky:
if (!empty($_POST["\x72\157\x6c\x65\137\x6d\141\160\160\151\156\x67\x5f\163\151\x74\x65"])) {
goto o2;
}
update_site_option("\155\x6f\137\x73\x61\x6d\154\137\x6d\145\163\163\x61\147\145", "\x50\x6c\145\141\163\145\x20\163\145\x6c\145\x63\x74\40\141\x20\x73\x69\164\x65\x20\x74\157\x20\x73\x61\x76\x65\40\x72\157\x6c\x65\40\x6d\141\x70\x70\151\x6e\x67");
$this->mo_saml_show_error_message();
return;
o2:
update_site_option("\155\x6f\x5f\141\160\x70\x6c\171\x5f\162\157\154\145\137\155\141\160\160\151\156\147\137\x66\157\162\x5f\163\151\164\x65\163", 0);
$Ui = htmlspecialchars($_POST["\162\157\154\x65\x5f\155\x61\160\x70\151\156\x67\x5f\163\151\164\x65"]);
jw:
if (empty($_POST["\163\x61\155\x6c\x5f\141\x6d\x5f\x64\145\x66\141\165\x6c\x74\137\x75\x73\145\162\x5f\x72\x6f\x6c\145"])) {
goto C2;
}
$Ow = htmlspecialchars($_POST["\x73\x61\x6d\154\137\141\x6d\137\x64\145\146\141\165\x6c\164\137\x75\163\145\x72\x5f\x72\157\154\x65"]);
C2:
if (!empty($_POST["\x73\x61\155\154\x5f\141\x6d\x5f\144\x6f\156\x74\x5f\141\154\154\157\x77\x5f\165\x6e\x6c\151\x73\x74\x65\144\x5f\165\163\x65\x72\137\162\x6f\154\145"])) {
goto UY;
}
$c9 = "\x75\156\x63\x68\145\143\153\145\x64";
goto Kd;
UY:
$c9 = "\143\x68\x65\143\x6b\145\x64";
$Ow = false;
Kd:
if (!empty($_POST["\155\x6f\137\x73\x61\x6d\x6c\x5f\x64\157\156\x74\137\143\x72\x65\141\164\x65\137\165\x73\145\162\x5f\x69\146\137\162\x6f\154\x65\137\x6e\157\164\137\x6d\141\160\160\x65\x64"])) {
goto n9;
}
$ig = "\x75\x6e\x63\150\145\x63\x6b\x65\144";
$zB = "\146\x61\154\163\145";
goto xf;
n9:
$ig = "\143\x68\145\x63\153\145\144";
$c9 = "\x75\156\143\x68\145\x63\153\x65\x64";
$Ow = false;
xf:
if (!empty($_POST["\155\x6f\x5f\x73\141\x6d\154\137\153\145\145\x70\x5f\145\x78\x69\x73\164\x69\x6e\147\137\165\163\x65\x72\163\x5f\x72\157\154\145"])) {
goto rq;
}
$bb = "\x75\x6e\x63\150\x65\143\153\x65\x64";
goto E6;
rq:
$bb = "\x63\x68\145\143\153\145\144";
E6:
if (!empty($_POST["\155\x6f\137\163\x61\x6d\154\x5f\144\157\156\x74\x5f\141\154\x6c\x6f\167\x5f\165\x73\145\162\137\164\157\154\x6f\147\x69\x6e\137\x63\x72\x65\x61\x74\x65\137\x77\x69\164\x68\137\x67\x69\166\x65\x6e\137\x67\x72\157\165\160\x73"])) {
goto Ya;
}
$CW = "\165\156\x63\x68\x65\x63\x6b\x65\144";
goto Mo;
Ya:
$CW = "\143\150\x65\x63\153\145\144";
Mo:
$Z9 = '';
$XP = '';
if (empty($_POST["\x6d\x6f\x5f\163\x61\x6d\154\137\x72\x65\163\164\x72\x69\x63\x74\137\165\x73\145\x72\x73\137\167\x69\x74\x68\x5f\147\x72\157\x75\x70\x73"])) {
goto Wf;
}
$Z9 = htmlspecialchars($_POST["\x6d\x6f\137\163\x61\155\154\x5f\x72\x65\x73\x74\x72\151\x63\164\x5f\165\163\145\x72\x73\137\167\x69\164\x68\137\147\x72\157\165\160\163"]);
Wf:
if (empty($_POST["\x73\x61\155\x6c\137\141\x6d\x5f\x67\162\x6f\165\x70\x5f\x61\164\164\x72\x5f\166\x61\154\165\x65\163\137\163\x75\160\145\x72\141\144\x6d\151\x6e"])) {
goto NK;
}
$XP = htmlspecialchars($_POST["\x73\x61\155\154\x5f\141\x6d\x5f\147\162\157\x75\x70\137\x61\x74\x74\x72\x5f\166\x61\154\x75\x65\163\x5f\163\x75\160\145\162\141\144\x6d\151\156"]);
NK:
$wp_roles = new WP_Roles($Ui);
$JM = $wp_roles->get_names();
$H2 = maybe_unserialize(get_site_option("\x73\141\155\x6c\137\141\155\137\162\157\x6c\x65\x5f\x6d\141\160\x70\151\156\147"));
foreach ($JM as $Lk => $Un) {
$f7 = "\x73\141\155\154\x5f\x61\155\x5f\147\162\157\x75\160\x5f\141\x74\164\x72\137\x76\x61\154\x75\x65\x73\137" . $Lk;
$H2[$Ui][$Lk] = stripslashes($_POST[$f7]);
aj:
}
Wi:
$H2[$Ui]["\x64\145\x66\x61\x75\x6c\x74\x5f\162\157\x6c\145"] = $Ow;
$H2[$Ui]["\x64\157\156\x74\x5f\x63\162\x65\141\164\145\x5f\x75\x73\145\x72"] = $ig;
$H2[$Ui]["\x64\157\x6e\164\x5f\x61\x6c\x6c\157\167\137\165\156\x6c\x69\163\164\145\x64\x5f\x75\163\145\x72"] = $c9;
$H2[$Ui]["\x6b\x65\145\x70\x5f\x65\170\151\163\164\x69\x6e\x67\x5f\x75\x73\145\162\x73\137\162\157\154\x65"] = $bb;
$H2[$Ui]["\x6d\157\137\x73\141\x6d\x6c\x5f\x64\x6f\x6e\x74\x5f\x61\x6c\x6c\x6f\x77\137\165\x73\145\162\x5f\x74\157\x6c\157\147\151\156\x5f\143\x72\145\141\164\145\x5f\167\151\x74\x68\137\x67\151\166\145\156\137\x67\x72\157\165\160\163"] = $CW;
$H2[$Ui]["\x6d\x6f\x5f\x73\x61\155\154\137\162\x65\163\x74\x72\x69\x63\x74\137\165\x73\x65\162\163\137\x77\x69\x74\x68\x5f\x67\x72\x6f\165\x70\163"] = $Z9;
$H2 = array_filter($H2, "\146\x69\154\164\x65\x72\x5f\145\155\160\x74\x79\x5f\166\141\154\x75\x65\163");
$js = false;
if (!(!empty($_POST["\x6d\157\137\163\x61\x6d\154\x5f\x64\x69\163\141\x62\x6c\145\137\162\157\154\x65\137\x6d\141\160\x70\x69\156\147"]) and $_POST["\x6d\x6f\137\x73\141\155\x6c\137\144\x69\163\141\142\x6c\x65\x5f\162\157\x6c\145\137\x6d\141\160\160\x69\x6e\147"] == "\x74\x72\165\x65")) {
goto OL;
}
$js = true;
OL:
update_site_option("\155\157\x5f\x73\141\155\x6c\137\144\151\163\141\142\x6c\x65\137\x72\x6f\154\145\137\x6d\141\160\160\x69\156\x67", $js);
update_site_option("\163\141\x6d\x6c\137\x61\x6d\137\162\x6f\x6c\145\x5f\x6d\x61\160\x70\151\x6e\x67", $H2);
update_site_option("\155\x6f\137\163\141\155\154\137\155\x65\163\163\141\x67\145", "\122\x6f\154\145\x20\x4d\x61\x70\x70\x69\x6e\x67\x20\144\145\164\141\151\154\x73\40\x73\x61\x76\x65\144\40\163\x75\x63\x63\145\x73\163\x66\165\x6c\x6c\x79\x2e");
update_site_option("\x6d\157\137\x73\x61\155\x6c\x5f\163\165\x70\145\x72\x5f\141\144\155\x69\156\137\x72\x6f\154\145\x5f\155\141\x70\x70\151\156\147", $XP);
$wa = maybe_unserialize(get_site_option("\163\141\x6d\154\137\163\x73\157\137\x73\x65\164\164\151\x6e\147\163"));
if (!empty($wa)) {
goto pX;
}
$wa = array();
pX:
$Qu = "\x44\105\x46\x41\125\x4c\x54";
if (empty($_POST["\x72\157\x6c\x65\x5f\x6d\141\x70\x70\151\x6e\x67\137\163\151\164\x65"])) {
goto DU;
}
$Qu = sanitize_text_field($_POST["\x72\157\x6c\x65\x5f\x6d\x61\x70\x70\x69\156\147\137\x73\x69\164\x65"]);
DU:
if (!(empty($wa[$Qu]) && !empty($wa["\x44\x45\x46\101\125\x4c\x54"]))) {
goto Yi;
}
$wa[$Qu] = $wa["\x44\x45\106\x41\125\114\124"];
Yi:
if (array_key_exists("\x6d\x6f\137\163\x61\x6d\154\x5f\x73\x75\x62\163\151\164\145\137\141\143\x63\x65\x73\x73\x5f\144\145\156\x69\145\144", $_POST)) {
goto Fe;
}
$uU = "\146\141\x6c\163\x65";
goto I5;
Fe:
$uU = sanitize_text_field($_POST["\x6d\157\137\x73\x61\x6d\x6c\x5f\163\x75\x62\x73\x69\x74\145\137\x61\143\143\145\x73\163\x5f\144\145\156\151\145\x64"]);
I5:
if ($uU == "\164\x72\x75\145") {
goto Yn;
}
$wa[$Qu]["\x6d\157\x5f\x73\x61\x6d\154\137\163\165\142\x73\151\164\145\137\141\143\x63\x65\x73\x73\x5f\144\x65\x6e\151\145\144"] = '';
goto rK;
Yn:
$wa[$Qu]["\x6d\157\137\163\141\x6d\154\137\x73\165\142\x73\151\164\145\x5f\141\x63\x63\145\x73\163\137\x64\145\156\x69\x65\x64"] = "\x74\162\x75\145";
rK:
update_site_option("\163\141\x6d\x6c\x5f\163\163\157\x5f\x73\x65\164\164\151\156\147\x73", $wa);
$this->mo_saml_show_success_message();
cO:
if (!self::mo_check_option_admin_referer("\155\x6f\137\163\x61\155\x6c\x5f\x73\165\x62\x73\x69\x74\145\x5f\x73\145\x6c\145\x63\x74\151\157\x6e\137\x66\x6f\x72\137\x72\157\x6c\x65\x5f\155\141\x70\160\x69\x6e\147")) {
goto X1;
}
$WL = !empty($_POST["\155\157\137\x61\x70\160\154\x79\x5f\x72\x6f\x6c\x65\137\155\141\x70\160\x69\x6e\147\x5f\146\157\162\x5f\163\151\x74\x65\163"]) ? htmlspecialchars($_POST["\155\157\x5f\141\160\160\154\171\x5f\162\157\154\145\137\x6d\141\160\x70\x69\x6e\x67\137\x66\157\x72\x5f\x73\151\164\145\x73"]) : 0;
$pr = !empty($_POST["\162\x6f\154\145\137\x6d\141\x70\x70\x69\x6e\147\x5f\163\x69\x74\145"]) ? htmlspecialchars($_POST["\x72\157\154\x65\x5f\155\x61\x70\x70\x69\156\147\x5f\x73\151\164\x65"]) : false;
update_site_option("\x72\157\154\x65\137\155\141\x70\x70\x69\x6e\147\x5f\163\x69\164\x65", $pr);
update_site_option("\155\x6f\x5f\x61\160\160\x6c\x79\137\x72\157\154\145\x5f\155\x61\160\x70\151\156\147\137\x66\157\162\x5f\163\x69\x74\145\x73", $WL);
X1:
if (!self::mo_check_option_admin_referer("\155\x6f\137\x73\141\155\x6c\x5f\x72\145\163\x65\x74\137\x72\157\x6c\145\137\155\141\160\160\151\156\x67\x5f\141\164\x74\162\151\142\165\x74\x65\163")) {
goto Oh;
}
update_site_option("\155\x6f\137\141\x70\x70\x6c\x79\x5f\x72\157\154\x65\x5f\155\x61\x70\x70\x69\x6e\x67\x5f\x66\x6f\162\x5f\x73\x69\164\145\x73", 0);
$H2 = array();
update_site_option("\x73\x61\155\154\x5f\141\x6d\137\162\157\x6c\x65\x5f\155\141\x70\x70\x69\x6e\x67", $H2);
update_site_option("\x6d\x6f\x5f\163\141\x6d\154\x5f\x73\x75\160\x65\162\137\141\144\x6d\x69\156\137\x72\157\154\x65\x5f\155\141\160\160\151\x6e\147", '');
update_site_option("\155\x6f\x5f\163\x61\155\154\x5f\155\145\x73\x73\141\x67\145", "\x52\157\154\x65\x20\115\x61\160\160\x69\x6e\147\40\150\x61\163\40\x62\145\145\156\40\x72\x65\163\x65\x74\x20\x73\x75\143\143\x65\x73\163\x66\165\154\154\171\56");
$this->mo_saml_show_success_message();
Oh:
if (!self::mo_check_option_admin_referer("\155\x6f\137\x73\141\x6d\x6c\x5f\162\145\x73\145\164\137\163\x73\x6f\137\163\x65\164\x74\x69\156\147\163\x5f\x6f\160\164\x69\x6f\156")) {
goto ay;
}
$wa = array();
update_site_option("\163\141\x6d\x6c\x5f\x73\x73\x6f\137\x73\x65\x74\x74\x69\156\x67\x73", $wa);
update_site_option("\155\157\x5f\x73\x61\155\154\x5f\155\145\163\163\x61\147\145", "\x53\x53\117\x20\x53\x65\x74\164\x69\156\x67\163\x20\150\x61\x73\40\142\x65\x65\156\40\x72\145\x73\145\x74\40\x73\x75\x63\143\x65\x73\163\x66\x75\x6c\154\171\x20\146\x6f\x72\40\141\x6c\x6c\x20\x79\x6f\x75\162\40\x73\x75\x62\55\x73\x69\x74\145\x73\56");
$this->mo_saml_show_success_message();
ay:
if (!(!empty($_POST["\x6f\x70\164\x69\x6f\x6e"]) and $_POST["\x6f\x70\164\151\x6f\156"] == "\155\x6f\137\x73\x61\155\154\x5f\165\x70\144\x61\164\145\x5f\x73\160\x5f\x62\141\163\x65\137\165\162\x6c\x5f\157\x70\x74\x69\157\x6e")) {
goto xq;
}
if (!(!empty($_POST["\155\157\x5f\163\141\x6d\x6c\x5f\163\x70\137\142\141\163\x65\137\165\162\154"]) && !empty($_POST["\155\x6f\x5f\x73\141\x6d\x6c\x5f\163\x70\x5f\145\x6e\164\151\x74\171\x5f\151\x64"]))) {
goto w2;
}
$Eq = sanitize_text_field($_POST["\x6d\x6f\x5f\x73\x61\x6d\x6c\137\x73\x70\137\142\x61\x73\x65\x5f\x75\162\x6c"]);
$yo = sanitize_text_field($_POST["\x6d\x6f\x5f\x73\x61\155\154\137\163\160\137\x65\x6e\x74\151\164\171\x5f\x69\144"]);
if (!(substr($Eq, -1) == "\x2f")) {
goto wd;
}
$Eq = substr($Eq, 0, -1);
wd:
update_site_option("\x6d\157\137\x73\x61\155\x6c\137\x73\x70\137\142\x61\163\x65\137\165\162\x6c", $Eq);
update_site_option("\x6d\x6f\137\163\141\155\154\137\163\160\x5f\145\x6e\164\151\x74\171\x5f\x69\x64", $yo);
w2:
update_site_option("\x6d\157\137\x73\x61\x6d\154\137\155\x65\x73\x73\141\147\145", "\123\120\x20\x42\141\163\x65\40\125\122\x4c\x20\x75\160\144\x61\164\x65\144\40\x73\x75\143\143\145\163\x73\x66\165\154\154\x79\56");
$this->mo_saml_show_success_message();
xq:
if (!self::mo_check_option_admin_referer("\x73\141\x6d\x6c\137\165\x70\x6c\x6f\x61\144\x5f\x6d\x65\x74\x61\x64\x61\x74\x61")) {
goto kx;
}
if (!function_exists("\167\160\x5f\x68\141\x6e\x64\x6c\x65\137\165\x70\154\157\x61\144")) {
require_once ABSPATH . "\167\160\x2d\141\x64\155\x69\156\57\x69\x6e\143\154\x75\144\x65\x73\x2f\146\x69\154\145\x2e\x70\150\x70";
}
$this->upload_metadata();
kx:
if (!self::mo_check_option_admin_referer("\155\x6f\137\163\141\155\154\x5f\x75\160\144\141\x74\x65\137\151\144\160\137\x73\145\x74\x74\x69\x6e\x67\163\137\157\x70\x74\151\157\x6e")) {
goto rX;
}
if (!(!empty($_POST["\x6d\x6f\x5f\x73\141\155\x6c\x5f\x73\160\137\x62\x61\x73\145\137\x75\162\x6c"]) && !empty($_POST["\x6d\157\137\x73\141\155\154\x5f\x73\x70\x5f\145\156\x74\151\164\x79\x5f\151\x64"]))) {
goto OM;
}
$Eq = sanitize_text_field($_POST["\x6d\157\x5f\x73\x61\x6d\154\137\x73\x70\x5f\142\x61\163\x65\x5f\x75\162\154"]);
$yo = sanitize_text_field($_POST["\x6d\157\x5f\x73\141\x6d\x6c\137\x73\160\137\x65\156\x74\x69\x74\x79\137\151\144"]);
if (!(substr($Eq, -1) == "\x2f")) {
goto CU;
}
$Eq = substr($Eq, 0, -1);
CU:
update_site_option("\x6d\x6f\x5f\163\x61\155\x6c\x5f\163\160\x5f\x62\x61\163\x65\137\165\x72\x6c", $Eq);
update_site_option("\155\x6f\x5f\x73\141\x6d\x6c\x5f\x73\x70\137\x65\156\x74\151\x74\171\x5f\151\x64", $yo);
OM:
update_site_option("\155\157\137\163\x61\155\154\137\x6d\x65\x73\163\x61\147\x65", "\123\145\164\164\x69\x6e\147\x73\x20\x75\x70\144\141\x74\145\x64\x20\163\x75\x63\143\145\163\163\x66\x75\x6c\154\171\x2e");
$this->mo_saml_show_success_message();
rX:
if (!self::mo_check_option_admin_referer("\145\x6e\x61\x62\154\x65\137\163\x73\x6f\137\156\145\167\x5f\x73\151\164\145\x5f\157\x70\164\151\157\156")) {
goto CB;
}
if (!empty($_POST["\x65\156\x61\142\x6c\x65\x5f\163\163\x6f\x5f\x6e\x65\167\x5f\163\151\x74\x65"]) and $_POST["\145\x6e\x61\x62\x6c\x65\x5f\163\163\157\137\156\x65\x77\137\x73\x69\164\145"] == "\x74\162\165\145") {
goto hf;
}
$df = "\x66\x61\x6c\163\145";
goto l5;
hf:
$df = "\x74\x72\x75\x65";
l5:
update_site_option("\155\x6f\x5f\163\141\155\154\137\145\156\x61\x62\154\145\137\x73\x73\x6f\137\x6e\x65\167\137\163\151\x74\x65", $df);
update_site_option("\155\x6f\137\x73\x61\155\x6c\x5f\x6d\x65\x73\163\x61\x67\x65", "\123\x65\164\164\151\x6e\x67\163\40\x75\160\144\141\x74\145\x64\40\163\x75\x63\143\145\x73\163\x66\x75\x6c\x6c\171\x2e");
$this->mo_saml_show_success_message();
CB:
if (!self::mo_check_option_admin_referer("\x75\160\x67\x72\141\144\x65\x5f\143\x65\x72\164")) {
goto MD;
}
$wh = file_get_contents(plugin_dir_path(__FILE__) . "\162\x65\x73\x6f\x75\162\x63\x65\163" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Public_Certificate);
$uc = file_get_contents(plugin_dir_path(__FILE__) . "\162\x65\x73\x6f\x75\162\143\x65\163" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Private_Key);
update_site_option("\155\x6f\137\x73\x61\x6d\x6c\x5f\143\165\162\x72\145\156\164\x5f\143\x65\x72\x74", $wh);
update_site_option("\x6d\x6f\x5f\163\141\x6d\x6c\137\143\165\162\162\x65\156\x74\x5f\143\145\162\x74\x5f\x70\x72\151\166\141\164\145\137\x6b\x65\x79", $uc);
update_site_option("\155\x6f\x5f\163\141\155\x6c\137\143\145\x72\x74\151\146\151\x63\x61\164\x65\137\162\157\154\x6c\x5f\x62\141\143\153\x5f\141\166\x61\x69\154\x61\x62\x6c\x65", true);
update_site_option("\x6d\x6f\x5f\163\x61\155\154\137\155\x65\163\x73\x61\x67\x65", "\x43\x65\162\x74\151\146\151\143\141\164\x65\40\x55\160\147\162\x61\144\145\x64\40\163\165\143\143\145\x73\163\146\x75\x6c\x6c\x79");
$this->mo_saml_show_success_message();
MD:
if (!self::mo_check_option_admin_referer("\x72\157\x6c\154\x62\141\143\153\x5f\143\x65\162\164")) {
goto PT;
}
$wh = file_get_contents(plugin_dir_path(__FILE__) . "\x72\145\x73\157\x75\x72\x63\145\x73" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Rollback_Public_Cert);
$uc = file_get_contents(plugin_dir_path(__FILE__) . "\x72\x65\163\157\165\162\143\x65\163" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Rollback_Public_Key);
update_site_option("\155\x6f\x5f\163\141\x6d\154\x5f\x63\165\x72\162\145\x6e\164\x5f\x63\x65\162\x74", $wh);
update_site_option("\x6d\x6f\137\163\141\x6d\154\x5f\143\x75\162\x72\145\156\x74\x5f\143\145\162\x74\x5f\160\x72\x69\166\141\164\145\x5f\153\145\171", $uc);
update_site_option("\x6d\x6f\137\163\x61\x6d\x6c\x5f\x6d\145\163\x73\x61\147\145", "\x43\145\x72\164\151\x66\151\x63\x61\x74\145\x20\x52\x6f\154\x6c\55\x62\141\x63\153\x65\x64\40\x73\165\x63\143\x65\163\x73\146\x75\154\x6c\x79");
delete_option("\x6d\x6f\x5f\163\141\x6d\x6c\137\x63\145\x72\x74\x69\146\151\x63\x61\x74\145\x5f\162\157\154\x6c\x5f\142\x61\143\x6b\x5f\141\x76\x61\151\154\x61\x62\x6c\x65");
$this->mo_saml_show_success_message();
PT:
if (self::mo_check_option_admin_referer("\141\x64\144\137\143\165\x73\164\x6f\155\137\x63\145\x72\x74\151\x66\151\x63\141\x74\145")) {
goto CQ;
}
if (self::mo_check_option_admin_referer("\155\x6f\x5f\x73\x61\x6d\154\137\162\145\155\157\x76\x65\137\x61\143\x63\157\165\156\164")) {
goto qe;
}
if (!self::mo_check_option_admin_referer("\141\x64\144\x5f\143\x75\163\164\157\x6d\137\x6d\x65\x73\163\x61\147\x65\163")) {
goto CN;
}
update_site_option("\x6d\x6f\x5f\x73\x61\x6d\154\137\x61\x63\x63\157\x75\156\164\x5f\x63\x72\x65\x61\164\x69\x6f\156\x5f\x64\151\163\141\x62\x6c\x65\144\x5f\155\163\x67", sanitize_text_field($_POST["\x6d\157\137\x73\x61\x6d\x6c\137\x61\x63\143\x6f\x75\156\x74\137\x63\162\x65\x61\x74\x69\157\x6e\x5f\x64\151\x73\x61\x62\154\145\144\x5f\155\163\147"]));
update_site_option("\155\x6f\137\163\x61\155\154\x5f\162\145\x73\x74\x72\x69\143\164\145\x64\x5f\x64\157\155\141\x69\156\x5f\x65\x72\x72\x6f\162\x5f\x6d\x73\x67", sanitize_text_field($_POST["\155\157\137\x73\141\x6d\x6c\x5f\x72\145\x73\164\162\151\x63\x74\145\x64\137\x64\x6f\155\x61\151\x6e\137\145\162\162\x6f\x72\x5f\155\x73\147"]));
update_site_option("\155\x6f\137\163\141\155\x6c\137\x6d\145\x73\163\x61\147\145", "\x43\157\156\x66\151\147\x75\162\141\x74\151\157\x6e\x20\150\x61\163\x20\x62\x65\145\156\x20\163\141\166\x65\x64\x20\x73\x75\x63\143\145\163\163\146\x75\154\x6c\x79\x2e");
$this->mo_saml_show_success_message();
CN:
goto TH;
qe:
$this->mo_sso_saml_deactivate();
add_site_option("\155\x6f\137\163\x61\155\x6c\137\x72\145\x67\151\x73\x74\x72\141\x74\x69\x6f\156\137\x73\164\141\164\x75\x73", "\162\145\x6d\x6f\x76\x65\x64\137\141\143\x63\157\165\156\164");
$tX = add_query_arg(array("\164\141\142" => "\154\x6f\147\x69\x6e"), $_SERVER["\x52\x45\121\x55\x45\123\x54\x5f\125\x52\x49"]);
header("\x4c\157\x63\141\x74\151\x6f\156\72\x20" . $tX);
TH:
goto uH;
CQ:
$wh = file_get_contents(plugin_dir_path(__FILE__) . "\162\145\x73\x6f\165\162\143\145\163" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Public_Certificate);
$uc = file_get_contents(plugin_dir_path(__FILE__) . "\162\145\x73\157\x75\x72\143\x65\163" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Private_Key);
if (!empty($_POST["\163\x75\142\155\x69\164"]) and $_POST["\163\165\142\x6d\x69\x74"] == "\125\x70\154\157\141\144") {
goto pG;
}
if (!(!empty($_POST["\163\165\142\155\151\x74"]) and $_POST["\163\165\142\x6d\x69\x74"] == "\x52\145\163\145\164")) {
goto Ny;
}
delete_site_option("\155\x6f\x5f\x73\141\155\154\x5f\x63\165\x73\164\157\155\x5f\x63\x65\162\x74");
delete_site_option("\155\157\x5f\x73\x61\155\x6c\x5f\x63\165\163\164\157\x6d\x5f\x63\x65\x72\164\x5f\x70\x72\151\166\x61\164\145\137\x6b\x65\171");
update_site_option("\x6d\157\137\163\141\x6d\154\x5f\143\x75\162\162\x65\x6e\x74\x5f\x63\145\162\x74", $wh);
update_site_option("\x6d\157\x5f\x73\x61\155\x6c\x5f\x63\x75\x72\x72\x65\x6e\x74\137\x63\x65\x72\164\137\160\x72\x69\166\141\x74\145\x5f\153\x65\171", $uc);
update_site_option("\x6d\x6f\x5f\163\x61\155\154\x5f\x6d\145\163\163\141\147\x65", "\122\145\x73\145\x74\40\103\x65\x72\164\x69\x66\x69\x63\141\x74\x65\40\163\165\x63\x63\x65\163\x73\x66\165\x6c\154\x79\56");
$this->mo_saml_show_success_message();
Ny:
goto y7;
pG:
if (!@openssl_x509_read($_POST["\163\141\x6d\154\137\160\x75\142\x6c\151\x63\137\x78\x35\x30\71\137\143\x65\162\164\151\x66\151\143\x61\164\x65"])) {
goto P8;
}
if (!@openssl_x509_check_private_key($_POST["\x73\141\x6d\x6c\137\160\165\142\154\x69\143\137\170\x35\60\x39\137\143\x65\162\x74\x69\x66\x69\143\141\x74\145"], $_POST["\163\141\155\x6c\137\160\x72\x69\x76\141\164\145\x5f\x78\65\60\x39\x5f\143\x65\162\x74\x69\146\151\x63\x61\x74\145"])) {
goto S0;
}
if (openssl_x509_read($_POST["\x73\x61\155\x6c\137\x70\x75\x62\154\x69\143\x5f\x78\65\60\x39\x5f\x63\145\x72\x74\x69\146\151\143\x61\164\x65"]) && openssl_x509_check_private_key($_POST["\x73\x61\x6d\x6c\137\x70\165\142\154\151\143\x5f\x78\x35\60\71\137\143\x65\x72\x74\x69\x66\151\x63\141\x74\145"], $_POST["\163\x61\x6d\x6c\137\160\x72\x69\x76\x61\x74\145\137\170\x35\60\71\137\x63\145\x72\x74\x69\x66\151\143\141\164\x65"])) {
goto g9;
}
goto g0;
P8:
update_site_option("\x6d\x6f\137\x73\x61\155\154\137\x6d\145\x73\163\x61\x67\x65", "\x49\x6e\x76\x61\x6c\x69\144\x20\103\145\162\x74\151\x66\151\x63\141\x74\145\40\146\157\162\155\x61\164\x2e\x20\x50\154\145\141\x73\x65\x20\145\156\x74\145\x72\40\x61\40\x76\x61\154\x69\144\40\143\145\x72\164\151\x66\151\143\141\x74\145\56");
$this->mo_saml_show_error_message();
return;
goto g0;
S0:
update_site_option("\155\157\137\163\x61\155\154\137\155\145\x73\163\x61\147\x65", "\x49\156\x76\141\154\151\144\x20\120\x72\151\x76\141\x74\x65\x20\113\145\171\56");
$this->mo_saml_show_error_message();
return;
goto g0;
g9:
$Mg = $_POST["\163\141\155\154\x5f\160\x75\142\x6c\151\143\x5f\170\65\60\x39\137\x63\x65\162\164\151\146\151\x63\x61\x74\x65"];
$J9 = $_POST["\x73\141\155\154\137\x70\162\x69\x76\141\x74\145\137\x78\65\60\71\x5f\143\145\x72\164\151\x66\151\143\141\x74\145"];
update_site_option("\155\x6f\x5f\163\x61\155\x6c\137\x63\x75\163\x74\x6f\155\137\143\x65\162\x74", $Mg);
update_site_option("\x6d\x6f\x5f\x73\x61\x6d\154\137\x63\165\163\164\x6f\155\x5f\143\x65\x72\x74\137\160\x72\x69\166\x61\x74\x65\137\x6b\145\171", $J9);
update_site_option("\155\157\137\x73\x61\x6d\154\137\143\x75\x72\162\x65\x6e\164\137\143\x65\x72\164", $Mg);
update_site_option("\155\157\x5f\x73\x61\155\x6c\137\143\x75\x72\162\x65\156\x74\137\143\145\162\164\137\160\162\x69\x76\x61\164\145\137\x6b\145\171", $J9);
update_site_option("\155\x6f\x5f\163\141\x6d\x6c\137\155\x65\x73\x73\x61\x67\145", "\103\x75\163\x74\x6f\x6d\x20\x43\x65\x72\164\151\x66\x69\x63\x61\164\145\x20\x75\160\144\141\164\145\x64\40\163\165\143\x63\x65\x73\x73\146\165\154\154\x79\56");
$this->mo_saml_show_success_message();
g0:
y7:
uH:
if (!self::mo_check_option_admin_referer("\155\141\156\141\x67\x65\137\x73\163\157\137\163\x69\x74\145\x73")) {
goto n0;
}
$oL = Utilities::get_sites();
$na = Utilities::get_active_sites();
$YL = false;
$lT = false;
if (!empty($_POST["\x65\x6e\x61\x62\154\x65\101\x6c\154"]) and $_POST["\145\156\x61\x62\154\145\x41\x6c\154"] == "\164\x72\x75\145") {
goto ig;
}
if (!(!empty($_POST["\144\151\163\x61\142\x6c\x65\x41\154\x6c"]) and $_POST["\144\x69\163\141\142\154\145\x41\x6c\x6c"] == "\164\162\165\x65")) {
goto k0;
}
$lT = true;
k0:
goto oh;
ig:
$YL = true;
oh:
foreach ($oL as $Qu) {
$Ui = $Qu->blog_id;
if ($YL) {
goto T_;
}
if ($lT) {
goto tW;
}
if (empty($_POST[$Ui])) {
goto zd;
}
if ($_POST[$Ui] == "\146\141\x6c\x73\145") {
goto Tp;
}
if ($_POST[$Ui] == "\164\162\165\145") {
goto sv;
}
goto yD;
Tp:
$tK = array_search($Ui, $na);
if (!($tK !== false)) {
goto t6;
}
unset($na[$tK]);
t6:
goto yD;
sv:
if (Utilities::mo_saml_in_array($Ui, $na)) {
goto OC;
}
array_push($na, $Ui);
OC:
yD:
zd:
goto T5;
T_:
if (Utilities::mo_saml_in_array($Ui, $na)) {
goto of;
}
array_push($na, $Ui);
of:
goto T5;
tW:
$tK = array_search($Ui, $na);
if (!($tK !== false)) {
goto bf;
}
unset($na[$tK]);
bf:
T5:
T4:
}
mu:
$xA = Utilities::get_main_subsite_id();
if (Utilities::mo_saml_in_array($xA, $na)) {
goto C6;
}
array_push($na, $xA);
C6:
update_site_option("\155\x6f\137\x65\156\141\x62\x6c\145\x5f\x73\163\x6f\x5f\163\151\x74\x65\x73", $na);
n0:
if (!self::mo_check_option_admin_referer("\x6d\157\x5f\x73\141\155\x6c\137\162\x65\154\141\x79\137\163\x74\x61\164\x65\137\157\160\x74\151\x6f\x6e")) {
goto oI;
}
$Xn = esc_url_raw(filter_var($_POST["\x6d\157\137\163\141\155\154\x5f\162\145\x6c\x61\171\x5f\x73\x74\x61\x74\145"], FILTER_SANITIZE_URL));
$wa = maybe_unserialize(get_site_option("\x73\141\155\154\x5f\x73\x73\x6f\137\163\145\x74\164\151\156\147\x73"));
if ($wa) {
goto cj;
}
$wa = array();
cj:
$Qu = "\104\105\106\x41\x55\x4c\124";
if (empty($_POST["\163\x69\x74\145"])) {
goto Mn;
}
$Qu = htmlspecialchars($_POST["\x73\x69\x74\x65"]);
Mn:
if (!(empty($wa[$Qu]) && !empty($wa["\104\x45\106\101\x55\114\124"]))) {
goto va;
}
$wa[$Qu] = $wa["\x44\105\x46\101\125\114\x54"];
va:
$wa[$Qu]["\x6d\x6f\137\163\x61\x6d\x6c\137\x72\145\154\x61\x79\137\x73\164\141\x74\145"] = $Xn;
update_site_option("\163\141\x6d\154\x5f\163\163\157\x5f\x73\145\x74\x74\x69\x6e\x67\163", $wa);
update_site_option("\155\x6f\137\x73\x61\x6d\x6c\137\155\x65\x73\163\141\x67\x65", "\x52\145\154\141\171\x20\123\x74\141\x74\x65\40\x75\160\144\141\x74\145\144\x20\x73\x75\x63\143\145\163\163\x66\165\x6c\154\171\x2e");
$this->mo_saml_show_success_message();
oI:
if (!self::mo_check_option_admin_referer("\155\x6f\x5f\163\x61\155\x6c\137\167\151\x64\x67\145\x74\x5f\157\160\x74\x69\157\x6e")) {
goto K1;
}
$wa = maybe_unserialize(get_site_option("\163\141\x6d\154\137\163\163\x6f\137\163\x65\x74\x74\x69\156\x67\163"));
if ($wa) {
goto OG;
}
$wa = array();
OG:
$Qu = "\104\105\106\101\x55\x4c\x54";
if (empty($_POST["\x73\x69\164\145"])) {
goto jT;
}
$Qu = htmlspecialchars($_POST["\163\x69\164\145"]);
jT:
if (!(empty($wa[$Qu]) && !empty($wa["\104\105\106\x41\x55\114\x54"]))) {
goto aa;
}
$wa[$Qu] = $wa["\104\105\x46\x41\x55\x4c\124"];
aa:
$NI = sanitize_text_field($_POST["\x6d\157\137\x73\x61\x6d\x6c\137\143\x75\163\164\x6f\155\137\x6c\157\x67\151\156\137\x74\145\170\164"]);
$wa[$Qu]["\x6d\x6f\x5f\x73\141\x6d\x6c\x5f\x63\165\x73\x74\157\x6d\137\154\x6f\x67\x69\x6e\x5f\x74\x65\170\164"] = stripcslashes($NI);
$TN = sanitize_text_field($_POST["\155\x6f\x5f\163\x61\155\x6c\x5f\x63\x75\163\164\157\x6d\x5f\147\x72\x65\x65\x74\151\x6e\x67\137\x74\145\170\x74"]);
$wa[$Qu]["\155\157\137\163\141\x6d\x6c\x5f\143\x75\x73\x74\157\155\x5f\147\x72\145\x65\164\x69\156\x67\137\x74\x65\x78\164"] = stripcslashes($TN);
$pz = htmlspecialchars(stripslashes($_POST["\x6d\157\137\163\141\155\154\137\x67\x72\145\145\x74\151\156\x67\x5f\x6e\141\155\x65"]));
$wa[$Qu]["\155\x6f\x5f\163\141\155\x6c\x5f\147\162\145\x65\164\151\x6e\147\x5f\x6e\141\x6d\x65"] = $pz;
$Eu = sanitize_text_field($_POST["\155\x6f\x5f\163\141\155\x6c\137\143\165\163\x74\157\155\137\154\157\147\x6f\x75\x74\x5f\x74\145\x78\x74"]);
$wa[$Qu]["\155\157\137\163\141\x6d\x6c\x5f\143\x75\x73\164\157\x6d\x5f\154\157\147\157\x75\x74\137\x74\x65\170\164"] = stripcslashes($Eu);
update_site_option("\163\141\x6d\154\137\x73\163\x6f\137\x73\x65\x74\x74\151\156\x67\x73", $wa);
update_site_option("\x6d\x6f\x5f\x73\x61\x6d\154\x5f\155\145\163\x73\141\147\145", "\x57\x69\144\147\145\164\x20\x53\x65\x74\x74\151\156\x67\x73\x20\165\160\144\141\x74\x65\x64\40\163\165\x63\143\x65\163\163\x66\165\154\154\171\56");
$this->mo_saml_show_success_message();
K1:
if (!self::mo_check_option_admin_referer("\x73\x73\x6f\x5f\x73\145\164\x74\151\x6e\x67\x73\137\x73\151\x74\x65\137\157\x70\164\x69\157\156")) {
goto eG;
}
if (empty($_POST["\x73\x73\157\137\163\145\x74\x74\151\x6e\147\x73\x5f\x73\151\164\x65"])) {
goto ly;
}
update_site_option("\163\x73\x6f\137\163\145\x74\x74\151\x6e\147\163\137\163\151\x74\145", htmlspecialchars($_POST["\163\163\157\x5f\163\x65\x74\x74\151\x6e\x67\x73\137\163\x69\x74\145"]));
ly:
eG:
if (!self::mo_check_option_admin_referer("\155\x6f\137\x73\141\x6d\154\137\162\x65\x67\151\163\x74\x65\x72\137\143\x75\x73\164\x6f\x6d\x65\162")) {
goto SB;
}
if (mo_saml_is_extension_installed("\143\x75\x72\154")) {
goto jv;
}
update_site_option("\155\157\x5f\163\x61\155\154\137\x6d\145\x73\163\141\147\x65", "\x45\122\x52\x4f\122\x3a\x20\x3c\x61\x20\150\x72\145\146\75\x22\150\164\164\160\72\x2f\57\160\150\x70\56\x6e\x65\164\x2f\x6d\x61\156\x75\x61\154\57\x65\x6e\x2f\x63\x75\x72\x6c\x2e\x69\x6e\163\x74\141\154\154\x61\x74\151\157\156\56\x70\x68\160\x22\x20\164\x61\x72\x67\x65\164\75\x22\137\142\154\141\x6e\153\x22\76\120\x48\120\x20\143\125\122\114\x20\x65\170\164\145\x6e\x73\x69\157\156\x3c\x2f\x61\x3e\x20\151\163\x20\x6e\x6f\164\x20\151\156\163\x74\141\154\x6c\x65\144\40\157\x72\x20\144\151\163\141\142\x6c\x65\144\56\x20\x52\x65\x67\151\163\164\162\x61\x74\151\x6f\156\x20\x66\x61\151\x6c\145\144\x2e");
$this->mo_saml_show_error_message();
return;
jv:
$ni = '';
$g1 = '';
$o7 = '';
$Dg = '';
if (empty($_POST["\x65\155\x61\151\x6c"]) || empty($_POST["\x70\x61\163\x73\x77\157\x72\144"]) || empty($_POST["\x63\157\156\146\x69\162\155\120\x61\x73\x73\167\x6f\x72\144"])) {
goto eE;
}
if (strlen($_POST["\160\x61\x73\x73\x77\x6f\162\x64"]) < 6 || strlen($_POST["\x63\157\x6e\x66\151\162\x6d\120\x61\163\x73\167\x6f\162\x64"]) < 6) {
goto Q3;
}
if ($this->checkPasswordPattern(strip_tags($_POST["\160\141\x73\x73\167\157\x72\x64"]))) {
goto xx;
}
$ni = sanitize_email($_POST["\145\155\141\151\154"]);
if (!array_key_exists("\x70\x68\157\156\145", $_POST)) {
goto BD;
}
$g1 = sanitize_text_field($_POST["\x70\150\x6f\x6e\145"]);
BD:
$o7 = stripslashes(strip_tags($_POST["\x70\x61\x73\163\167\157\162\144"]));
$Dg = stripslashes(strip_tags($_POST["\143\157\156\x66\151\162\155\120\141\163\163\167\157\162\x64"]));
goto Bi;
xx:
update_site_option("\155\157\x5f\x73\x61\155\154\137\155\x65\163\x73\141\x67\145", "\x4d\x69\x6e\x69\x6d\x75\155\40\66\x20\143\x68\141\162\x61\x63\x74\x65\x72\x73\x20\163\x68\x6f\165\154\144\x20\x62\x65\40\x70\162\x65\x73\145\x6e\x74\x2e\40\x4d\141\170\151\155\165\155\x20\x31\x35\x20\143\x68\x61\x72\141\x63\164\x65\162\x73\40\163\150\x6f\165\154\x64\40\142\145\x20\160\x72\x65\163\x65\x6e\164\x2e\x20\117\x6e\x6c\x79\40\146\x6f\x6c\x6c\157\x77\151\x6e\147\x20\163\x79\x6d\x62\x6f\x6c\163\40\50\41\x40\43\x2e\44\x25\x5e\46\52\x2d\x5f\51\40\163\x68\x6f\165\154\x64\x20\x62\x65\x20\160\162\x65\x73\x65\x6e\164\x2e");
$this->mo_saml_show_error_message();
return;
Bi:
goto mP;
Q3:
update_site_option("\x6d\x6f\x5f\163\x61\x6d\x6c\x5f\x6d\x65\163\163\141\147\x65", "\x43\x68\157\x6f\163\145\x20\141\40\x70\x61\x73\163\167\157\162\x64\40\167\151\164\x68\x20\155\151\156\x69\155\x75\155\40\x6c\145\156\147\x74\x68\40\x36\56");
$this->mo_saml_show_error_message();
return;
mP:
goto qT;
eE:
update_site_option("\x6d\157\x5f\163\141\155\x6c\x5f\155\x65\163\x73\141\x67\145", "\101\154\x6c\40\x74\x68\x65\40\x66\151\145\x6c\144\163\40\x61\162\x65\40\x72\145\x71\165\151\162\x65\x64\56\40\x50\154\145\x61\x73\x65\40\x65\x6e\x74\x65\x72\40\x76\x61\x6c\151\144\x20\x65\x6e\164\162\151\x65\x73\x2e");
$this->mo_saml_show_error_message();
return;
qT:
update_site_option("\155\157\137\x73\x61\x6d\x6c\137\x61\x64\155\x69\x6e\137\145\x6d\x61\151\x6c", $ni);
update_site_option("\155\x6f\x5f\x73\141\155\x6c\x5f\x61\x64\x6d\x69\x6e\x5f\160\150\157\x6e\145", $g1);
if (strcmp($o7, $Dg) == 0) {
goto gR;
}
update_site_option("\x6d\157\x5f\x73\141\155\x6c\137\155\145\x73\163\x61\x67\145", "\120\x61\x73\163\167\x6f\162\x64\x73\40\x64\157\x20\x6e\157\164\x20\x6d\141\164\x63\150\56");
delete_site_option("\x6d\x6f\137\163\141\x6d\154\137\166\145\162\x69\x66\x79\x5f\143\165\163\x74\x6f\155\145\162");
$this->mo_saml_show_error_message();
goto qA;
gR:
update_site_option("\x6d\157\137\x73\x61\x6d\154\137\141\x64\155\151\156\137\160\x61\x73\x73\x77\x6f\162\144", $o7);
$ni = get_site_option("\155\157\137\x73\141\x6d\154\137\141\x64\x6d\x69\156\137\145\x6d\x61\151\x6c");
$xb = new CustomerSaml();
$qF = $xb->check_customer($this);
if ($qF) {
goto bQ;
}
return;
bQ:
$t5 = json_decode($qF, true);
if (strcasecmp($t5["\x73\164\x61\164\165\x73"], "\x43\125\x53\x54\117\115\105\x52\137\116\x4f\x54\137\106\117\125\x4e\104") == 0) {
goto I6;
}
$this->get_current_customer();
goto vT;
I6:
$t5 = json_decode($xb->send_otp_token($ni, '', $this), true);
if (strcasecmp($t5["\x73\164\141\164\165\x73"], "\123\x55\103\x43\x45\x53\123") == 0) {
goto eN;
}
update_site_option("\x6d\157\x5f\x73\141\155\x6c\x5f\155\x65\163\x73\x61\x67\x65", "\124\150\145\x72\145\40\x77\x61\x73\40\141\156\40\x65\x72\x72\x6f\162\x20\x69\156\40\163\x65\156\x64\x69\x6e\x67\x20\x65\155\141\x69\154\56\x20\x50\154\145\x61\x73\145\x20\x76\x65\162\151\x66\x79\40\x79\157\x75\162\40\x65\155\x61\151\x6c\40\141\156\144\40\164\x72\x79\x20\141\147\141\151\156\56");
update_site_option("\155\x6f\137\163\141\155\x6c\137\162\x65\x67\x69\x73\x74\x72\141\164\151\157\156\x5f\x73\x74\x61\x74\x75\x73", "\x4d\117\x5f\x4f\124\x50\x5f\x44\105\114\111\126\x45\x52\x45\104\137\106\x41\111\x4c\125\122\x45\x5f\x45\115\101\111\x4c");
$this->mo_saml_show_error_message();
goto EE;
eN:
update_site_option("\x6d\x6f\137\163\141\155\x6c\x5f\x6d\x65\x73\x73\141\x67\145", "\x20\x41\40\x6f\156\x65\x20\x74\x69\155\145\40\x70\x61\x73\163\x63\x6f\x64\145\40\151\163\x20\163\x65\x6e\164\x20\x74\x6f\x20" . get_site_option("\155\157\x5f\163\141\155\x6c\x5f\141\144\155\151\156\137\x65\x6d\141\151\154") . "\x2e\x20\x50\x6c\x65\141\x73\x65\x20\x65\156\164\x65\162\40\164\x68\x65\40\x6f\x74\x70\40\150\x65\162\145\x20\164\x6f\x20\166\x65\x72\x69\146\x79\40\x79\157\165\x72\x20\145\155\141\x69\154\56");
update_site_option("\155\157\x5f\163\x61\x6d\x6c\137\164\162\141\x6e\x73\141\143\x74\151\157\x6e\111\144", $t5["\164\170\x49\144"]);
update_site_option("\x6d\x6f\137\x73\141\155\x6c\x5f\162\145\147\x69\x73\x74\x72\141\x74\x69\157\156\137\163\x74\141\164\165\163", "\x4d\x4f\x5f\x4f\124\120\137\104\105\x4c\x49\126\105\122\105\x44\x5f\123\125\103\103\105\x53\x53\137\x45\115\x41\111\x4c");
$this->mo_saml_show_success_message();
EE:
vT:
qA:
SB:
if (!self::mo_check_option_admin_referer("\155\157\x5f\163\141\155\x6c\137\x76\141\154\x69\x64\141\x74\145\x5f\157\x74\x70")) {
goto N0;
}
if (mo_saml_is_extension_installed("\143\165\162\154")) {
goto VK;
}
update_site_option("\155\157\137\x73\141\155\154\137\x6d\145\x73\163\x61\147\145", "\105\122\x52\117\x52\x3a\x20\x3c\x61\x20\x68\162\x65\x66\75\42\150\x74\164\160\72\57\57\x70\x68\x70\x2e\x6e\145\164\x2f\x6d\x61\x6e\x75\x61\154\57\x65\x6e\x2f\143\165\x72\154\x2e\x69\x6e\x73\x74\x61\x6c\154\x61\x74\151\157\x6e\56\160\x68\160\42\x20\164\x61\162\x67\145\x74\75\x22\x5f\142\154\x61\x6e\x6b\42\76\x50\x48\x50\40\x63\125\122\114\40\x65\x78\164\x65\156\163\151\x6f\x6e\74\57\x61\76\40\x69\x73\x20\156\x6f\164\40\x69\156\163\x74\x61\x6c\x6c\x65\x64\x20\x6f\x72\x20\x64\x69\163\141\142\x6c\x65\x64\x2e\x20\126\141\154\151\144\141\x74\x65\x20\x4f\x54\120\x20\146\141\x69\x6c\145\x64\56");
$this->mo_saml_show_error_message();
return;
VK:
$Pp = '';
if (empty($_POST["\157\164\160\x5f\164\157\x6b\x65\156"])) {
goto J0;
}
$Pp = sanitize_text_field($_POST["\157\164\x70\137\164\x6f\x6b\x65\156"]);
goto rT;
J0:
update_site_option("\155\157\x5f\x73\141\155\154\137\x6d\145\x73\x73\x61\147\145", "\x50\x6c\x65\x61\x73\x65\x20\x65\156\x74\x65\x72\40\141\40\x76\x61\154\165\145\40\151\156\40\x6f\164\160\40\x66\x69\x65\154\x64\x2e");
$this->mo_saml_show_error_message();
return;
rT:
$xb = new CustomerSaml();
$t5 = json_decode($xb->validate_otp_token(get_site_option("\x6d\157\137\x73\141\x6d\154\137\164\162\141\156\x73\141\x63\x74\x69\x6f\x6e\x49\x64"), $Pp, $this), true);
if (strcasecmp($t5["\163\164\x61\164\165\x73"], "\123\125\103\x43\105\x53\123") == 0) {
goto wi;
}
update_site_option("\155\157\x5f\163\141\x6d\154\137\155\x65\163\163\x61\147\x65", "\x49\x6e\166\141\154\151\144\40\x6f\x6e\145\40\164\151\x6d\145\x20\160\141\x73\163\x63\x6f\144\x65\x2e\40\x50\x6c\x65\141\x73\x65\x20\145\x6e\x74\x65\x72\x20\141\x20\x76\x61\x6c\x69\x64\40\x6f\x74\x70\56");
$this->mo_saml_show_error_message();
goto PX;
wi:
$this->create_customer();
PX:
N0:
if (self::mo_check_option_admin_referer("\x6d\x6f\x5f\163\141\155\154\137\x76\x65\162\x69\146\171\x5f\x63\x75\163\164\157\155\x65\x72")) {
goto aV;
}
if (self::mo_check_option_admin_referer("\x6d\x6f\x5f\163\x61\x6d\154\137\x63\x6f\156\164\141\x63\x74\137\x75\163\137\x71\x75\145\162\171\x5f\157\x70\x74\x69\157\x6e")) {
goto H0;
}
if (self::mo_check_option_admin_referer("\x6d\x6f\x5f\163\x61\x6d\154\137\x72\145\163\x65\156\144\137\x6f\x74\160\x5f\x65\x6d\141\x69\154")) {
goto Dj;
}
if (self::mo_check_option_admin_referer("\155\157\137\163\141\155\x6c\137\x72\x65\x73\x65\156\x64\137\157\x74\160\137\x70\150\157\156\145")) {
goto kj;
}
if (self::mo_check_option_admin_referer("\155\157\x5f\x73\x61\x6d\154\x5f\x67\157\137\142\x61\143\153")) {
goto gg;
}
if (self::mo_check_option_admin_referer("\155\x6f\x5f\x73\x61\x6d\x6c\137\162\145\147\x69\163\x74\x65\x72\x5f\167\x69\x74\x68\x5f\160\x68\x6f\156\145\x5f\x6f\160\x74\151\x6f\x6e")) {
goto Dz;
}
if (self::mo_check_option_admin_referer("\x6d\157\x5f\x73\141\x6d\154\137\x72\x65\x67\x69\163\x74\145\162\145\x64\x5f\157\x6e\x6c\171\137\x61\143\143\145\163\x73\x5f\x6f\x70\164\151\157\156")) {
goto YR;
}
if (self::mo_check_option_admin_referer("\x6d\157\x5f\x73\x61\155\154\137\x66\157\x72\x63\x65\x5f\141\165\164\150\145\x6e\x74\x69\143\141\164\151\157\x6e\x5f\157\160\x74\x69\x6f\x6e")) {
goto TV;
}
if (self::mo_check_option_admin_referer("\155\157\137\x73\141\x6d\x6c\x5f\x65\x6e\141\x62\x6c\145\x5f\154\157\x67\x69\156\137\x72\145\x64\151\x72\x65\143\164\137\x6f\x70\x74\151\x6f\156")) {
goto GP;
}
if (self::mo_check_option_admin_referer("\x6d\157\x5f\163\x61\x6d\x6c\137\x72\145\144\151\x72\x65\x63\164\137\164\x6f\137\x77\x70\137\x6c\x6f\147\x69\156\137\157\x70\164\x69\x6f\x6e")) {
goto HX;
}
if (self::mo_check_option_admin_referer("\x6d\x6f\137\163\x61\155\154\137\x61\144\x64\137\163\163\x6f\x5f\x62\165\164\164\157\156\x5f\x77\160\x5f\x6f\x70\164\151\x6f\156")) {
goto u1;
}
if (self::mo_check_option_admin_referer("\155\x6f\x5f\x73\141\155\154\137\x75\163\x65\137\142\165\164\x74\x6f\x6e\x5f\141\x73\x5f\x73\150\x6f\x72\164\x63\157\x64\x65\x5f\x6f\160\164\151\157\x6e")) {
goto y2;
}
if (self::mo_check_option_admin_referer("\x6d\x6f\137\x73\141\155\x6c\137\x75\163\x65\x5f\x62\165\x74\x74\x6f\x6e\x5f\141\163\x5f\167\151\x64\147\x65\164\x5f\x6f\x70\164\151\157\156")) {
goto fh;
}
if (self::mo_check_option_admin_referer("\x6d\157\137\x73\141\x6d\x6c\137\x63\165\x73\x74\x6f\x6d\x5f\142\x75\x74\x74\x6f\156\137\x6f\160\164\x69\x6f\156")) {
goto sH;
}
if (self::mo_check_option_admin_referer("\155\157\137\x73\x61\x6d\x6c\137\141\154\x6c\x6f\x77\137\x77\160\x5f\x73\151\147\x6e\151\156\x5f\x6f\160\164\x69\157\x6e")) {
goto ra;
}
if (!self::mo_check_option_admin_referer("\155\157\x5f\163\x61\155\154\x5f\x66\x6f\162\x67\x6f\x74\137\160\141\163\163\x77\157\162\144\137\146\157\x72\155\x5f\x6f\x70\x74\x69\157\x6e")) {
goto se;
}
if (mo_saml_is_extension_installed("\143\x75\162\x6c")) {
goto Cu;
}
update_site_option("\155\157\137\x73\141\155\154\137\x6d\x65\x73\x73\x61\x67\x65", "\x45\x52\122\x4f\122\72\x20\74\141\x20\x68\162\x65\x66\75\42\150\x74\164\160\x3a\x2f\57\x70\x68\x70\x2e\x6e\x65\x74\57\x6d\x61\156\x75\x61\x6c\57\x65\x6e\57\x63\x75\x72\x6c\x2e\151\x6e\x73\x74\x61\x6c\x6c\x61\164\x69\157\156\56\160\x68\160\x22\40\x74\x61\162\x67\145\x74\x3d\42\x5f\x62\154\x61\156\x6b\42\76\x50\x48\120\40\143\x55\x52\x4c\x20\145\170\164\145\x6e\x73\x69\x6f\x6e\x3c\x2f\141\x3e\x20\x69\163\40\156\157\164\x20\151\156\163\164\141\154\x6c\x65\x64\x20\157\162\x20\144\x69\x73\141\142\154\145\x64\x2e\40\x52\x65\x73\x65\x6e\144\x20\117\124\120\x20\x66\x61\x69\x6c\x65\144\x2e");
$this->mo_saml_show_error_message();
return;
Cu:
$ni = get_site_option("\x6d\x6f\x5f\x73\141\x6d\154\x5f\x61\144\x6d\x69\x6e\x5f\x65\x6d\141\x69\x6c");
$xb = new Customersaml();
$t5 = json_decode($xb->mo_saml_forgot_password($ni, $this), true);
if (strcasecmp($t5["\163\164\141\164\x75\x73"], "\x53\x55\x43\103\x45\123\x53") == 0) {
goto k3;
}
update_site_option("\x6d\157\137\x73\141\x6d\154\137\x6d\x65\x73\x73\141\x67\145", "\x41\x6e\x20\x65\162\162\x6f\162\x20\157\143\x63\x75\162\145\144\x20\x77\150\x69\154\145\40\160\x72\x6f\x63\145\163\163\x69\156\x67\40\171\157\x75\162\x20\162\145\x71\165\145\x73\164\56\x20\x50\154\145\x61\163\145\x20\x54\x72\x79\x20\x61\x67\141\151\x6e\56");
$this->mo_saml_show_error_message();
goto gI;
k3:
update_site_option("\x6d\x6f\x5f\163\x61\155\x6c\x5f\155\x65\x73\163\x61\147\x65", "\x59\x6f\x75\x72\x20\x70\141\163\163\167\x6f\x72\144\x20\150\x61\x73\40\142\145\145\156\40\162\145\x73\145\164\40\163\x75\143\143\x65\x73\163\146\x75\x6c\154\x79\56\x20\x50\154\x65\x61\x73\x65\40\x65\156\164\x65\162\x20\164\x68\x65\40\x6e\x65\167\40\160\x61\x73\x73\167\157\162\144\40\163\145\x6e\164\x20\164\x6f\x20" . $ni . "\x2e");
$this->mo_saml_show_success_message();
gI:
se:
goto R8;
ra:
$wa = maybe_unserialize(get_site_option("\x73\x61\155\x6c\x5f\163\163\x6f\137\163\145\x74\164\x69\156\147\x73"));
if (!empty($wa)) {
goto F9;
}
$wa = array();
F9:
$Qu = "\104\105\106\x41\x55\114\x54";
if (empty($_POST["\x73\151\x74\145"])) {
goto Gw;
}
$Qu = htmlspecialchars($_POST["\163\x69\164\x65"]);
Gw:
if (!(empty($wa[$Qu]) && !empty($wa["\x44\x45\x46\x41\x55\114\x54"]))) {
goto Sl;
}
$wa[$Qu] = $wa["\104\x45\x46\101\125\114\124"];
Sl:
$mY = "\146\x61\154\x73\145";
if (array_key_exists("\x6d\x6f\137\163\x61\155\154\x5f\141\x6c\154\157\167\137\167\160\x5f\163\x69\x67\156\151\156", $_POST)) {
goto yY;
}
$HG = "\x66\141\x6c\x73\145";
goto ta;
yY:
$HG = htmlspecialchars($_POST["\x6d\157\x5f\x73\x61\x6d\x6c\137\141\154\x6c\157\167\x5f\x77\160\x5f\x73\151\x67\156\151\156"]);
ta:
if ($HG == "\x74\x72\x75\x65") {
goto oZ;
}
$wa[$Qu]["\155\157\x5f\163\141\x6d\154\137\141\154\x6c\x6f\x77\137\x77\160\137\163\x69\147\x6e\151\156"] = '';
goto DK;
oZ:
$wa[$Qu]["\155\x6f\x5f\163\141\155\154\137\141\x6c\154\x6f\x77\x5f\167\x70\137\x73\x69\x67\x6e\151\x6e"] = "\164\x72\165\145";
if (!array_key_exists("\155\x6f\137\x73\x61\155\154\137\x62\x61\x63\153\144\157\x6f\162\x5f\x75\162\154", $_POST)) {
goto en;
}
$mY = htmlspecialchars(trim($_POST["\x6d\x6f\137\163\x61\x6d\x6c\137\142\141\x63\153\x64\x6f\x6f\x72\137\x75\x72\x6c"]));
en:
DK:
$wa[$Qu]["\155\x6f\x5f\x73\141\155\x6c\x5f\142\141\x63\153\x64\157\x6f\x72\x5f\165\x72\154"] = $mY;
update_site_option("\x73\141\155\154\137\x73\163\157\x5f\x73\145\x74\x74\151\156\147\163", $wa);
update_site_option("\155\157\137\x73\141\155\x6c\137\155\x65\163\x73\x61\147\145", "\123\151\147\156\40\111\x6e\x20\163\x65\164\164\151\156\147\163\x20\x75\x70\x64\141\x74\145\144\56");
$this->mo_saml_show_success_message();
R8:
goto ai;
sH:
$wa = maybe_unserialize(get_site_option("\163\141\155\154\x5f\x73\x73\157\x5f\x73\x65\x74\164\151\x6e\x67\x73"));
if ($wa) {
goto xa;
}
$wa = array();
xa:
$Qu = "\x44\x45\x46\101\x55\x4c\x54";
if (empty($_POST["\x73\151\164\x65"])) {
goto Kx;
}
$Qu = htmlspecialchars($_POST["\163\151\164\x65"]);
Kx:
if (!(empty($wa[$Qu]) && !empty($wa["\104\105\x46\101\125\114\124"]))) {
goto yL;
}
$wa[$Qu] = $wa["\104\x45\x46\101\125\114\124"];
yL:
$ux = '';
$Bv = '';
$kj = '';
$Jg = '';
$Di = '';
$PS = '';
$kZ = '';
$Rj = '';
$XY = '';
$yc = '';
$MV = "\x61\142\x6f\x76\145";
if (!(array_key_exists("\x6d\x6f\x5f\x73\x61\155\x6c\137\x62\165\x74\x74\x6f\x6e\137\x73\x69\172\145", $_POST) && !empty($_POST["\x6d\x6f\137\x73\141\155\x6c\x5f\142\x75\x74\x74\157\x6e\137\163\x69\x7a\145"]))) {
goto Vz;
}
$kj = htmlspecialchars($_POST["\x6d\157\x5f\163\141\x6d\x6c\x5f\142\x75\x74\164\x6f\156\137\x73\x69\172\145"]);
Vz:
if (!(array_key_exists("\x6d\157\x5f\163\x61\x6d\x6c\137\142\x75\164\164\x6f\156\137\x77\x69\144\164\x68", $_POST) && !empty($_POST["\155\x6f\137\163\141\155\154\137\142\x75\164\x74\x6f\x6e\x5f\x77\151\x64\164\x68"]))) {
goto fd;
}
$Jg = htmlspecialchars($_POST["\155\157\x5f\163\141\155\x6c\x5f\142\x75\164\x74\x6f\156\x5f\167\151\144\x74\150"]);
fd:
if (!(array_key_exists("\x6d\x6f\137\x73\141\155\154\x5f\142\x75\164\x74\157\156\x5f\150\145\151\147\150\164", $_POST) && !empty($_POST["\x6d\157\x5f\x73\141\155\x6c\x5f\142\x75\x74\164\157\x6e\x5f\x68\x65\x69\147\x68\x74"]))) {
goto RO;
}
$Di = htmlspecialchars($_POST["\x6d\157\x5f\x73\x61\155\x6c\137\x62\165\x74\x74\157\156\137\150\x65\151\147\x68\x74"]);
RO:
if (!(array_key_exists("\155\x6f\137\x73\141\x6d\x6c\x5f\142\165\164\x74\x6f\156\137\x63\x75\x72\166\x65", $_POST) && !empty($_POST["\x6d\157\x5f\163\141\155\x6c\x5f\142\x75\164\x74\157\156\x5f\143\165\x72\x76\x65"]))) {
goto sc;
}
$PS = htmlspecialchars($_POST["\155\x6f\137\x73\141\x6d\x6c\137\142\x75\x74\x74\x6f\156\137\143\165\x72\166\145"]);
sc:
if (!array_key_exists("\155\x6f\x5f\163\x61\x6d\154\137\x62\165\x74\164\157\x6e\137\143\x6f\154\x6f\x72", $_POST)) {
goto de;
}
$kZ = htmlspecialchars($_POST["\155\x6f\137\163\x61\155\x6c\x5f\142\165\164\164\157\156\x5f\x63\157\154\x6f\162"]);
de:
if (!array_key_exists("\x6d\157\x5f\x73\141\155\x6c\x5f\x62\165\x74\x74\x6f\156\x5f\x74\150\145\155\145", $_POST)) {
goto md;
}
$ux = htmlspecialchars($_POST["\x6d\157\x5f\163\141\155\x6c\137\142\165\x74\x74\157\x6e\x5f\164\x68\x65\x6d\x65"]);
md:
if (!array_key_exists("\155\x6f\137\163\141\x6d\x6c\137\x62\x75\x74\x74\x6f\156\137\164\x65\x78\164", $_POST)) {
goto Lv;
}
$Rj = htmlspecialchars($_POST["\155\157\137\163\141\x6d\154\137\x62\x75\x74\x74\x6f\156\x5f\164\x65\170\x74"]);
if (!(empty($Rj) || $Rj == "\43\x23\x49\104\120\43\43")) {
goto qg;
}
$Rj = "\43\43\x49\x44\120\43\43";
qg:
$BM = get_site_option("\163\x61\155\154\x5f\x69\144\145\x6e\x74\x69\x74\171\x5f\x6e\x61\x6d\x65");
$Rj = str_replace("\x23\43\111\x44\120\x23\x23", $BM, $Rj);
Lv:
if (!array_key_exists("\155\157\137\x73\x61\x6d\x6c\137\x66\x6f\x6e\x74\x5f\143\x6f\x6c\157\162", $_POST)) {
goto s0;
}
$XY = htmlspecialchars($_POST["\x6d\157\137\x73\x61\155\x6c\x5f\146\x6f\156\x74\x5f\143\x6f\154\157\162"]);
s0:
if (!array_key_exists("\155\x6f\137\163\141\155\154\x5f\x66\157\x6e\164\x5f\163\151\x7a\145", $_POST)) {
goto et;
}
$yc = htmlspecialchars($_POST["\x6d\157\137\x73\141\x6d\154\x5f\x66\x6f\x6e\164\x5f\163\151\x7a\x65"]);
et:
if (!array_key_exists("\163\163\x6f\137\x62\165\x74\x74\x6f\156\x5f\x6c\157\x67\x69\156\x5f\146\x6f\162\x6d\x5f\x70\x6f\163\x69\164\x69\x6f\x6e", $_POST)) {
goto KI;
}
$MV = htmlspecialchars($_POST["\163\x73\157\137\x62\x75\164\164\157\x6e\x5f\x6c\157\147\151\x6e\x5f\x66\x6f\162\x6d\137\160\x6f\163\x69\164\x69\157\x6e"]);
KI:
$wa[$Qu]["\x6d\157\137\163\141\155\x6c\x5f\142\165\164\164\157\156\137\164\x68\x65\155\145"] = $ux;
$wa[$Qu]["\155\x6f\x5f\x73\141\155\x6c\x5f\142\165\x74\164\157\x6e\x5f\x73\151\x7a\145"] = $kj;
$wa[$Qu]["\x6d\157\x5f\x73\x61\x6d\154\x5f\142\165\x74\164\157\x6e\x5f\167\x69\144\164\x68"] = $Jg;
$wa[$Qu]["\155\157\x5f\x73\141\155\154\137\142\x75\164\164\x6f\156\x5f\150\145\151\147\x68\164"] = $Di;
$wa[$Qu]["\x6d\x6f\x5f\163\x61\x6d\154\x5f\142\x75\164\164\157\156\137\x63\x75\x72\166\x65"] = $PS;
$wa[$Qu]["\x6d\157\137\163\141\x6d\154\x5f\142\x75\x74\164\x6f\156\x5f\x63\x6f\154\157\x72"] = $kZ;
$wa[$Qu]["\x6d\157\x5f\163\x61\155\154\137\x62\165\164\x74\157\156\137\164\x65\170\x74"] = $Rj;
$wa[$Qu]["\155\157\x5f\x73\141\155\x6c\x5f\x66\x6f\x6e\x74\137\143\157\154\157\x72"] = $XY;
$wa[$Qu]["\x6d\x6f\x5f\163\141\155\154\x5f\x66\157\x6e\164\x5f\163\x69\172\145"] = $yc;
$wa[$Qu]["\163\163\x6f\137\142\x75\164\x74\157\x6e\137\x6c\157\147\x69\x6e\x5f\x66\157\162\x6d\137\160\x6f\163\151\x74\x69\x6f\156"] = $MV;
update_site_option("\x73\x61\x6d\x6c\137\x73\163\157\x5f\x73\x65\x74\x74\151\156\x67\163", $wa);
update_site_option("\x6d\157\x5f\x73\x61\155\154\137\155\145\163\x73\x61\147\x65", "\123\x69\147\156\x20\x49\x6e\x20\163\x65\x74\164\151\156\x67\x73\40\x75\x70\x64\141\164\145\x64\56");
$this->mo_saml_show_success_message();
ai:
goto eR;
fh:
if (mo_saml_is_sp_configured()) {
goto VJ;
}
update_site_option("\x6d\x6f\137\x73\141\x6d\x6c\137\x6d\x65\163\x73\141\x67\x65", "\120\x6c\x65\141\x73\145\40\143\157\155\x70\154\x65\x74\x65\x20" . addLink("\123\x65\x72\166\x69\143\145\40\120\x72\x6f\x76\151\x64\x65\162", add_query_arg(array("\x74\141\x62" => "\x73\141\166\x65"), $_SERVER["\122\105\x51\x55\105\123\124\x5f\125\x52\x49"])) . "\x20\x63\157\x6e\146\151\147\165\162\x61\164\x69\157\156\40\x66\151\x72\x73\x74\56");
$this->mo_saml_show_error_message();
goto su;
VJ:
$wa = maybe_unserialize(get_site_option("\x73\x61\155\154\137\x73\x73\x6f\137\163\145\164\x74\151\x6e\x67\x73"));
if ($wa) {
goto Y3;
}
$wa = array();
Y3:
$Qu = "\x44\x45\x46\101\125\x4c\x54";
if (empty($_POST["\x73\x69\x74\145"])) {
goto kh;
}
$Qu = htmlspecialchars($_POST["\x73\x69\164\x65"]);
kh:
if (!(empty($wa[$Qu]) && !empty($wa["\104\105\106\101\125\114\x54"]))) {
goto Es;
}
$wa[$Qu] = $wa["\x44\105\106\x41\x55\x4c\x54"];
Es:
if (array_key_exists("\x6d\x6f\x5f\163\x61\x6d\x6c\x5f\x75\x73\x65\137\142\x75\x74\x74\157\156\137\141\x73\x5f\x77\151\144\147\145\164", $_POST)) {
goto Dw;
}
$ST = "\146\141\154\163\145";
goto nU;
Dw:
$ST = htmlspecialchars($_POST["\x6d\x6f\137\x73\x61\155\154\x5f\165\x73\x65\137\x62\165\x74\164\x6f\156\x5f\x61\163\x5f\x77\x69\x64\x67\145\164"]);
nU:
$wa[$Qu]["\155\x6f\137\163\141\x6d\154\137\165\x73\x65\137\142\x75\x74\x74\157\156\137\x61\x73\137\167\151\144\147\x65\164"] = $ST;
update_site_option("\x73\141\x6d\x6c\x5f\163\163\157\137\163\145\164\164\151\156\147\x73", $wa);
update_site_option("\x6d\x6f\137\x73\x61\155\x6c\x5f\x6d\x65\163\163\x61\x67\x65", "\x53\151\147\156\40\151\x6e\x20\157\x70\x74\151\x6f\x6e\x73\40\165\x70\x64\x61\x74\x65\x64\56");
$this->mo_saml_show_success_message();
su:
eR:
goto Ii;
y2:
if (mo_saml_is_sp_configured()) {
goto dX;
}
update_site_option("\155\157\137\163\x61\155\154\137\x6d\145\x73\163\x61\x67\145", "\x50\154\145\x61\163\x65\x20\143\157\x6d\x70\x6c\145\x74\145\x20" . addLink("\x53\145\x72\x76\151\x63\x65\x20\120\162\157\x76\x69\144\145\x72", add_query_arg(array("\164\x61\x62" => "\x73\x61\166\x65"), $_SERVER["\122\105\x51\x55\x45\123\124\137\125\x52\x49"])) . "\40\x63\157\x6e\146\x69\147\165\x72\141\x74\151\157\156\x20\146\x69\x72\163\164\56");
$this->mo_saml_show_error_message();
goto Ts;
dX:
$wa = maybe_unserialize(get_site_option("\163\x61\155\154\137\x73\163\x6f\x5f\x73\145\164\x74\151\156\147\x73"));
if ($wa) {
goto ZQ;
}
$wa = array();
ZQ:
$Qu = "\104\105\106\101\125\114\124";
if (empty($_POST["\163\151\x74\x65"])) {
goto HM;
}
$Qu = htmlspecialchars($_POST["\163\x69\164\145"]);
HM:
if (!(empty($wa[$Qu]) && !empty($wa["\x44\x45\106\x41\125\114\124"]))) {
goto EV;
}
$wa[$Qu] = $wa["\104\105\106\x41\x55\x4c\124"];
EV:
if (array_key_exists("\155\157\x5f\x73\141\x6d\x6c\x5f\165\163\145\x5f\142\165\164\164\x6f\156\137\x61\163\137\163\150\x6f\162\x74\143\x6f\x64\x65", $_POST)) {
goto UA;
}
$ST = "\146\x61\x6c\163\x65";
goto a2;
UA:
$ST = htmlspecialchars($_POST["\155\157\x5f\x73\x61\155\154\x5f\165\x73\145\x5f\x62\x75\164\x74\157\156\x5f\141\x73\137\163\x68\x6f\x72\x74\x63\x6f\x64\x65"]);
a2:
$wa[$Qu]["\155\x6f\137\163\x61\155\154\x5f\x75\x73\x65\x5f\x62\165\164\164\157\x6e\137\141\163\x5f\163\x68\x6f\x72\164\143\157\x64\x65"] = $ST;
update_site_option("\x73\141\x6d\x6c\x5f\163\163\157\x5f\x73\x65\x74\x74\151\156\147\163", $wa);
update_site_option("\155\x6f\137\x73\141\x6d\x6c\137\x6d\x65\x73\x73\x61\x67\145", "\123\x69\x67\x6e\x20\151\x6e\40\157\x70\164\x69\x6f\x6e\x73\x20\x75\160\x64\141\164\x65\144\x2e");
$this->mo_saml_show_success_message();
Ts:
Ii:
goto Bw;
u1:
if (mo_saml_is_sp_configured()) {
goto Nx;
}
update_site_option("\x6d\x6f\137\x73\141\x6d\154\137\x6d\145\163\x73\x61\x67\145", "\120\x6c\145\141\163\x65\x20\143\157\155\x70\x6c\x65\164\145\x20" . addLink("\x53\145\162\166\x69\x63\x65\x20\120\162\157\x76\151\x64\145\x72", add_query_arg(array("\164\x61\x62" => "\x73\141\x76\145"), $_SERVER["\122\x45\121\125\105\x53\124\137\125\x52\x49"])) . "\40\143\157\x6e\146\x69\147\x75\x72\141\164\x69\x6f\x6e\40\x66\151\162\x73\x74\56");
$this->mo_saml_show_error_message();
goto Od;
Nx:
$wa = maybe_unserialize(get_site_option("\x73\141\155\x6c\137\x73\163\157\x5f\x73\x65\164\x74\151\156\x67\x73"));
if ($wa) {
goto Mu;
}
$wa = array();
Mu:
$Qu = "\104\105\x46\x41\125\114\124";
if (empty($_POST["\163\151\164\145"])) {
goto eH;
}
$Qu = htmlspecialchars($_POST["\x73\151\x74\x65"]);
eH:
if (!(empty($wa[$Qu]) && !empty($wa["\x44\105\106\x41\125\x4c\x54"]))) {
goto bk;
}
$wa[$Qu] = $wa["\104\x45\x46\101\x55\x4c\x54"];
bk:
if (array_key_exists("\x6d\157\x5f\x73\x61\x6d\x6c\x5f\141\x64\144\x5f\163\163\x6f\137\x62\165\x74\x74\157\x6e\x5f\x77\160", $_POST)) {
goto Q7;
}
$vF = "\146\x61\154\x73\145";
goto ZI;
Q7:
$vF = htmlspecialchars($_POST["\155\x6f\137\x73\141\x6d\x6c\x5f\141\x64\x64\137\x73\163\157\137\142\x75\x74\x74\157\156\x5f\x77\x70"]);
ZI:
$wa[$Qu]["\x6d\x6f\x5f\x73\x61\x6d\154\137\141\x64\x64\137\x73\x73\157\137\142\x75\164\x74\x6f\x6e\x5f\167\x70"] = $vF;
update_site_option("\163\141\x6d\x6c\x5f\163\x73\157\137\x73\145\x74\164\151\156\147\163", $wa);
update_site_option("\x6d\x6f\x5f\163\141\155\154\137\x6d\145\x73\163\141\147\x65", "\x53\151\147\156\x20\x69\x6e\40\x6f\160\164\151\x6f\156\x73\x20\165\x70\x64\x61\x74\x65\x64\x2e");
$this->mo_saml_show_success_message();
Od:
Bw:
goto DE;
HX:
if (!mo_saml_is_sp_configured()) {
goto p9;
}
$wa = maybe_unserialize(get_site_option("\163\x61\x6d\154\x5f\x73\163\157\137\x73\x65\x74\164\x69\x6e\147\x73"));
if ($wa) {
goto Sa;
}
$wa = array();
Sa:
$Qu = "\104\105\106\x41\125\114\124";
if (empty($_POST["\163\151\164\145"])) {
goto qa;
}
$Qu = htmlspecialchars($_POST["\163\x69\164\x65"]);
qa:
if (!(empty($wa[$Qu]) && !empty($wa["\104\105\106\101\x55\x4c\124"]))) {
goto kk;
}
$wa[$Qu] = $wa["\x44\x45\x46\x41\125\114\124"];
kk:
if (array_key_exists("\155\157\x5f\x73\141\155\154\x5f\162\145\x64\x69\x72\x65\143\164\137\164\157\x5f\167\x70\x5f\x6c\157\147\x69\156", $_POST)) {
goto ks;
}
$Hl = "\x66\141\x6c\163\145";
goto bJ;
ks:
$Hl = htmlspecialchars($_POST["\x6d\157\x5f\163\141\x6d\154\137\162\145\x64\x69\x72\145\x63\164\137\164\x6f\x5f\167\x70\x5f\x6c\x6f\147\151\156"]);
bJ:
$wa[$Qu]["\x6d\157\137\163\x61\x6d\x6c\x5f\162\145\x64\151\x72\145\143\164\137\164\157\x5f\x77\160\x5f\x6c\157\x67\x69\156"] = $Hl;
update_site_option("\x73\141\155\x6c\137\163\163\x6f\x5f\163\x65\x74\164\151\156\147\163", $wa);
update_site_option("\x6d\x6f\x5f\163\x61\x6d\x6c\x5f\x6d\x65\x73\163\x61\x67\x65", "\123\151\147\156\40\151\156\x20\157\160\164\151\157\x6e\x73\40\165\x70\144\x61\x74\x65\144\x2e");
$this->mo_saml_show_success_message();
p9:
DE:
goto fM;
GP:
if (mo_saml_is_sp_configured()) {
goto BN;
}
update_site_option("\x6d\x6f\x5f\x73\x61\x6d\x6c\137\155\145\x73\x73\141\147\145", "\120\x6c\145\x61\x73\145\40\x63\157\155\x70\x6c\x65\x74\145\40\74\x61\x20\x68\x72\x65\x66\75\x22" . add_query_arg(array("\164\141\x62" => "\x73\141\x76\145"), $_SERVER["\122\x45\121\125\105\x53\x54\137\125\122\111"]) . "\x22\40\x2f\76\123\145\162\x76\x69\143\145\40\x50\162\157\166\x69\x64\x65\162\x3c\x2f\141\76\x20\x63\157\x6e\146\151\x67\165\162\141\164\x69\x6f\x6e\x20\x66\x69\162\163\164\56");
$this->mo_saml_show_error_message();
goto vG;
BN:
$wa = maybe_unserialize(get_site_option("\x73\141\155\154\x5f\163\x73\157\x5f\163\x65\164\x74\x69\156\147\163"));
if (!empty($wa)) {
goto XL;
}
$wa = array();
XL:
$Qu = "\x44\105\106\x41\125\x4c\124";
if (empty($_POST["\x73\x69\x74\145"])) {
goto G_;
}
$Qu = htmlspecialchars($_POST["\163\151\x74\x65"]);
G_:
if (!(empty($wa[$Qu]) && !empty($wa["\104\x45\106\x41\x55\x4c\x54"]))) {
goto s6;
}
$wa[$Qu] = $wa["\x44\105\106\101\x55\x4c\x54"];
s6:
if (array_key_exists("\x6d\157\x5f\x73\x61\155\154\x5f\145\x6e\x61\x62\154\145\x5f\154\157\x67\x69\x6e\x5f\162\145\144\151\x72\145\143\164", $_POST)) {
goto Mz;
}
$KK = "\146\x61\154\163\x65";
goto mS;
Mz:
$KK = htmlspecialchars($_POST["\x6d\157\x5f\163\x61\x6d\154\137\x65\x6e\141\x62\154\x65\x5f\154\157\x67\x69\x6e\x5f\162\x65\144\151\162\145\x63\164"]);
mS:
if ($KK == "\164\x72\x75\145") {
goto BA;
}
$wa[$Qu]["\155\157\x5f\163\x61\155\154\137\x65\156\x61\142\x6c\145\x5f\x6c\x6f\147\151\156\x5f\x72\x65\144\x69\x72\145\x63\164"] = '';
$wa[$Qu]["\155\157\x5f\163\141\155\154\137\x61\x6c\154\x6f\x77\x5f\167\160\137\163\151\147\156\151\156"] = '';
goto dv;
BA:
$wa[$Qu]["\155\157\137\163\x61\155\154\137\145\x6e\141\x62\x6c\x65\137\154\x6f\147\x69\x6e\x5f\162\145\144\x69\x72\145\x63\164"] = "\x74\162\165\145";
$wa[$Qu]["\155\x6f\137\x73\x61\x6d\x6c\137\x61\x6c\x6c\157\167\137\x77\x70\137\x73\x69\x67\x6e\x69\156"] = "\x74\162\x75\145";
dv:
update_site_option("\163\x61\x6d\x6c\x5f\x73\x73\157\137\x73\145\164\x74\151\156\147\163", $wa);
update_site_option("\x6d\157\x5f\x73\x61\x6d\x6c\137\155\x65\163\163\x61\147\145", "\x53\x69\147\x6e\40\151\x6e\40\x6f\x70\x74\151\157\156\x73\40\x75\160\144\x61\x74\x65\x64\56");
$this->mo_saml_show_success_message();
vG:
fM:
goto wc;
TV:
if (mo_saml_is_sp_configured()) {
goto ct;
}
update_site_option("\155\157\137\x73\x61\155\154\x5f\155\x65\163\x73\141\147\145", "\120\x6c\145\141\163\145\40\143\x6f\155\160\154\x65\x74\x65\x20\74\x61\x20\150\x72\x65\x66\75\42" . add_query_arg(array("\x74\x61\x62" => "\163\141\x76\145"), $_SERVER["\x52\x45\121\x55\x45\123\124\137\125\x52\x49"]) . "\x22\40\57\x3e\123\145\162\x76\x69\143\x65\40\120\162\157\x76\151\144\145\x72\74\x2f\141\x3e\40\143\157\x6e\x66\x69\147\x75\162\141\x74\151\157\156\x20\146\151\162\x73\x74\x2e");
$this->mo_saml_show_error_message();
goto c5;
ct:
$wa = maybe_unserialize(get_site_option("\163\x61\x6d\x6c\137\x73\x73\x6f\137\x73\145\x74\x74\151\156\x67\x73"));
if (!empty($wa)) {
goto Ri;
}
$wa = array();
Ri:
$Qu = "\104\x45\106\x41\125\114\124";
if (empty($_POST["\163\151\x74\x65"])) {
goto GT;
}
$Qu = htmlspecialchars($_POST["\163\151\164\145"]);
GT:
if (!(empty($wa[$Qu]) && !empty($wa["\x44\x45\x46\x41\x55\x4c\x54"]))) {
goto tN;
}
$wa[$Qu] = $wa["\104\x45\106\101\x55\114\x54"];
tN:
if (array_key_exists("\x6d\157\x5f\x73\x61\155\154\137\x66\x6f\162\143\145\137\x61\165\x74\150\x65\x6e\x74\151\x63\x61\x74\151\x6f\x6e", $_POST)) {
goto J3;
}
$KK = "\x66\x61\x6c\x73\x65";
goto hV;
J3:
$KK = htmlspecialchars($_POST["\x6d\x6f\x5f\163\x61\x6d\x6c\x5f\146\157\162\143\145\x5f\x61\165\x74\x68\145\156\164\151\143\141\x74\151\x6f\x6e"]);
hV:
if ($KK == "\164\x72\x75\x65") {
goto PI;
}
$wa[$Qu]["\155\x6f\x5f\163\141\x6d\154\137\x66\157\162\143\x65\x5f\x61\x75\x74\150\x65\156\x74\x69\143\x61\x74\x69\x6f\x6e"] = '';
goto Ha;
PI:
$wa[$Qu]["\x6d\x6f\137\x73\x61\x6d\x6c\137\146\157\162\143\145\137\141\x75\x74\150\x65\x6e\164\151\143\x61\164\151\x6f\156"] = "\x74\x72\165\x65";
Ha:
update_site_option("\x73\x61\x6d\154\137\x73\163\x6f\x5f\x73\x65\164\x74\x69\156\x67\x73", $wa);
update_site_option("\155\x6f\137\x73\x61\x6d\x6c\x5f\155\145\163\x73\141\147\145", "\x53\151\x67\x6e\40\151\156\40\157\x70\x74\x69\x6f\156\x73\x20\x75\x70\x64\x61\164\x65\x64\x2e");
$this->mo_saml_show_success_message();
c5:
wc:
goto yx;
YR:
if (mo_saml_is_sp_configured()) {
goto SR;
}
update_site_option("\x6d\x6f\x5f\163\x61\155\x6c\137\x6d\x65\x73\163\x61\147\x65", "\120\x6c\x65\141\x73\145\40\x63\157\x6d\160\x6c\x65\164\x65\x20\x3c\141\x20\150\x72\x65\146\x3d\x22" . add_query_arg(array("\x74\141\x62" => "\163\x61\x76\145"), $_SERVER["\122\105\121\125\105\123\x54\x5f\125\122\111"]) . "\x22\40\57\76\x53\145\162\166\151\143\x65\40\120\x72\157\166\151\144\x65\x72\x3c\x2f\141\76\x20\143\x6f\156\x66\x69\147\165\x72\141\x74\x69\157\156\x20\x66\x69\x72\x73\164\56");
$this->mo_saml_show_error_message();
goto jQ;
SR:
if (array_key_exists("\155\157\137\x73\x61\x6d\x6c\x5f\162\145\x67\151\x73\x74\x65\162\x65\x64\137\x6f\156\154\171\x5f\x61\x63\143\x65\163\x73", $_POST)) {
goto m9;
}
$KK = "\x66\141\x6c\163\145";
goto EX;
m9:
$KK = htmlspecialchars($_POST["\x6d\157\137\x73\x61\x6d\154\137\x72\145\x67\x69\x73\164\x65\162\145\144\137\x6f\x6e\x6c\171\137\141\143\143\145\x73\163"]);
EX:
$wa = maybe_unserialize(get_site_option("\163\141\155\x6c\137\x73\x73\157\x5f\x73\x65\164\x74\151\156\147\163"));
if (!empty($wa)) {
goto fa;
}
$wa = array();
fa:
$Qu = "\104\105\106\x41\125\114\x54";
if (empty($_POST["\x73\x69\x74\145"])) {
goto vY;
}
$Qu = htmlspecialchars($_POST["\163\151\x74\145"]);
vY:
if (!(empty($wa[$Qu]) && !empty($wa["\104\105\x46\x41\125\x4c\124"]))) {
goto l4;
}
$wa[$Qu] = $wa["\104\x45\x46\x41\x55\114\x54"];
l4:
if ($KK == "\x74\x72\165\145") {
goto tF;
}
$wa[$Qu]["\155\157\x5f\x73\141\x6d\154\x5f\x72\145\x67\x69\163\x74\145\x72\x65\144\x5f\157\x6e\154\x79\137\141\x63\143\145\163\163"] = '';
goto XF;
tF:
$wa[$Qu]["\x6d\x6f\x5f\163\x61\155\x6c\137\162\145\x67\x69\x73\164\145\x72\145\144\x5f\x6f\x6e\x6c\171\x5f\141\x63\x63\x65\163\163"] = "\x74\162\x75\145";
XF:
update_site_option("\163\141\x6d\154\137\x73\163\x6f\137\x73\x65\x74\164\x69\156\147\x73", $wa);
update_site_option("\155\x6f\137\163\x61\x6d\x6c\137\155\x65\163\163\141\147\x65", "\x53\151\147\156\x20\x69\156\40\x6f\160\164\x69\x6f\156\x73\x20\165\160\144\141\164\x65\144\56");
$this->mo_saml_show_success_message();
jQ:
yx:
goto LN;
Dz:
if (mo_saml_is_extension_installed("\143\165\x72\154")) {
goto G8;
}
update_site_option("\x6d\x6f\137\x73\x61\x6d\x6c\137\x6d\145\163\163\x61\x67\x65", "\x45\x52\122\x4f\122\x3a\40\74\141\40\x68\x72\x65\146\x3d\x22\150\x74\x74\160\72\57\x2f\160\150\160\x2e\x6e\x65\164\x2f\155\141\x6e\x75\x61\x6c\x2f\x65\x6e\x2f\143\x75\162\x6c\x2e\x69\x6e\x73\164\x61\154\154\x61\x74\x69\x6f\x6e\56\160\x68\x70\42\x20\x74\141\x72\x67\145\164\75\42\137\x62\154\x61\x6e\x6b\x22\x3e\x50\110\120\40\143\125\122\x4c\x20\x65\170\x74\x65\156\x73\x69\157\156\74\x2f\x61\x3e\40\151\x73\40\156\x6f\164\x20\x69\156\x73\164\141\154\x6c\x65\144\x20\x6f\x72\40\x64\151\163\141\142\154\x65\144\56\x20\x52\x65\163\x65\156\144\40\117\x54\x50\x20\x66\x61\x69\154\145\x64\x2e");
$this->mo_saml_show_error_message();
return;
G8:
$g1 = sanitize_text_field($_POST["\160\150\x6f\x6e\x65"]);
$g1 = str_replace("\x20", '', $g1);
$g1 = str_replace("\x2d", '', $g1);
update_site_option("\155\x6f\137\163\141\155\x6c\x5f\141\144\155\151\156\137\x70\150\157\156\145", $g1);
$xb = new CustomerSaml();
$t5 = json_decode($xb->send_otp_token('', $g1, $this, FALSE, TRUE), true);
if (strcasecmp($t5["\163\x74\x61\164\x75\x73"], "\x53\125\x43\x43\x45\123\x53") == 0) {
goto Jj;
}
update_site_option("\x6d\157\137\163\141\155\x6c\137\x6d\x65\163\163\x61\147\145", "\x54\150\145\162\x65\x20\x77\141\x73\x20\141\156\x20\145\x72\162\x6f\162\x20\151\156\40\x73\145\156\144\x69\156\147\x20\123\x4d\x53\x2e\x20\x50\x6c\145\141\x73\145\x20\143\154\x69\x63\153\x20\x6f\156\x20\122\145\163\x65\156\x64\x20\117\124\120\x20\x74\157\40\x74\162\171\x20\141\147\x61\151\x6e\x2e");
update_site_option("\155\157\137\163\x61\x6d\x6c\x5f\x72\x65\x67\151\x73\164\x72\141\x74\151\157\x6e\137\x73\x74\141\x74\165\163", "\x4d\117\x5f\117\x54\x50\x5f\104\x45\x4c\111\126\x45\x52\x45\104\x5f\106\x41\111\114\125\122\105\137\120\110\x4f\116\x45");
$this->mo_saml_show_error_message();
goto NI;
Jj:
update_site_option("\x6d\157\x5f\x73\x61\x6d\154\137\x6d\x65\163\163\141\147\145", "\x20\x41\40\x6f\156\x65\40\164\151\x6d\145\40\x70\x61\163\x73\143\157\x64\x65\40\151\x73\40\163\145\x6e\x74\x20\x74\157\40" . get_site_option("\155\157\x5f\163\141\x6d\x6c\x5f\x61\x64\155\x69\x6e\137\x70\x68\x6f\156\145") . "\56\40\x50\154\145\141\163\145\x20\x65\x6e\164\145\162\x20\164\x68\x65\40\157\x74\x70\40\150\145\162\145\x20\x74\157\x20\x76\x65\x72\151\146\x79\40\171\157\165\x72\x20\x65\155\141\x69\x6c\56");
update_site_option("\x6d\157\137\163\x61\x6d\154\137\164\162\141\x6e\x73\x61\x63\164\x69\x6f\156\111\x64", $t5["\x74\x78\111\144"]);
update_site_option("\x6d\x6f\x5f\163\141\155\x6c\x5f\x72\145\x67\151\163\x74\x72\x61\164\x69\157\156\x5f\x73\164\141\x74\x75\163", "\115\117\x5f\x4f\124\120\x5f\104\105\114\x49\126\x45\122\x45\x44\137\123\125\103\103\105\x53\123\137\x50\x48\x4f\x4e\105");
$this->mo_saml_show_success_message();
NI:
LN:
goto Tx;
gg:
update_site_option("\x6d\x6f\137\x73\x61\x6d\x6c\x5f\162\145\147\151\163\164\162\x61\164\151\157\x6e\137\163\x74\141\164\x75\163", '');
update_site_option("\155\157\137\x73\x61\155\x6c\x5f\166\145\162\x69\146\171\x5f\x63\x75\x73\x74\x6f\x6d\145\162", '');
delete_site_option("\155\157\x5f\x73\x61\155\154\x5f\141\144\x6d\x69\x6e\137\x63\x75\x73\x74\x6f\155\x65\x72\137\x6b\x65\x79");
delete_site_option("\x6d\157\137\x73\141\x6d\x6c\137\x61\x64\155\x69\x6e\x5f\x61\x70\151\137\153\145\171");
delete_site_option("\155\157\x5f\163\x61\x6d\154\x5f\143\x75\163\164\157\x6d\x65\162\x5f\x74\x6f\153\145\x6e");
delete_site_option("\x6d\157\137\x73\x61\155\154\137\x6e\x65\x77\x5f\x72\x65\147\151\163\x74\162\x61\x74\x69\x6f\x6e");
delete_site_option("\155\x6f\137\163\141\155\154\x5f\141\x64\155\151\x6e\x5f\145\155\x61\151\154");
delete_site_option("\x6d\x6f\137\x73\141\x6d\154\x5f\x61\144\155\151\156\x5f\x70\150\157\156\x65");
delete_site_option("\x73\x6d\x6c\x5f\x6c\153");
delete_site_option("\164\137\x73\151\x74\145\x5f\163\x74\141\164\x75\x73");
delete_site_option("\163\151\164\x65\x5f\x63\x6b\x5f\x6c");
delete_site_option("\x6e\157\x5f\x73\142\163");
delete_site_option("\x75\163\145\x72\x5f\x61\x6c\x65\x72\164\x5f\145\155\x61\151\x6c\137\163\145\156\x74");
delete_site_option("\154\151\x63\x65\156\x73\145\x5f\141\154\145\162\x74\137\x65\155\141\151\x6c\x5f\163\145\156\x74");
delete_site_option("\155\x6f\137\163\141\155\x6c\x5f\x61\x6c\x65\162\x74\137\163\x65\x6e\164\137\146\x6f\x72\137\x6f\156\145");
delete_site_option("\155\x6f\137\163\x61\155\x6c\x5f\141\154\145\162\x74\x5f\163\x65\156\x74\x5f\x66\x6f\162\137\x74\167\x6f");
delete_site_option("\x6d\157\x5f\163\x61\x6d\154\137\x75\163\162\x5f\154\x6d\x74");
Tx:
goto fK;
kj:
if (mo_saml_is_extension_installed("\143\x75\x72\x6c")) {
goto Pq;
}
update_site_option("\x6d\157\137\163\x61\155\154\137\x6d\x65\163\x73\141\147\145", "\x45\x52\122\x4f\x52\72\40\x3c\x61\x20\150\x72\145\x66\x3d\x22\150\164\x74\160\x3a\x2f\57\160\150\x70\56\x6e\145\164\x2f\155\141\156\165\141\154\x2f\x65\156\x2f\x63\x75\x72\154\x2e\151\x6e\x73\164\141\x6c\x6c\141\x74\151\x6f\156\x2e\x70\150\x70\x22\x20\164\x61\162\147\x65\x74\x3d\x22\x5f\142\154\141\x6e\153\42\x3e\120\110\120\x20\x63\125\122\x4c\x20\145\x78\x74\x65\156\x73\x69\157\x6e\x3c\x2f\141\76\x20\151\x73\x20\x6e\x6f\164\x20\151\x6e\163\164\141\154\154\145\144\40\x6f\x72\x20\144\151\163\141\142\x6c\x65\x64\56\x20\122\145\163\x65\156\144\x20\x4f\x54\x50\x20\146\x61\x69\154\145\x64\x2e");
$this->mo_saml_show_error_message();
return;
Pq:
$g1 = get_site_option("\155\157\137\x73\x61\x6d\154\x5f\141\144\x6d\x69\x6e\137\160\x68\x6f\156\145");
$xb = new CustomerSaml();
$t5 = json_decode($xb->send_otp_token('', $g1, $this, FALSE, TRUE), true);
if (strcasecmp($t5["\x73\x74\141\x74\x75\163"], "\x53\x55\103\103\x45\x53\123") == 0) {
goto Eg;
}
update_site_option("\x6d\x6f\x5f\x73\141\x6d\154\137\155\x65\x73\163\141\x67\145", "\x54\150\x65\x72\145\40\167\141\163\x20\x61\156\x20\145\x72\162\x6f\162\40\x69\156\40\x73\x65\156\x64\151\156\147\40\145\155\141\x69\x6c\56\x20\x50\154\x65\141\x73\x65\40\x63\x6c\x69\x63\x6b\x20\x6f\x6e\40\x52\x65\x73\x65\x6e\x64\x20\x4f\124\x50\x20\164\x6f\40\x74\162\171\x20\x61\147\141\x69\x6e\x2e");
update_site_option("\155\x6f\137\x73\x61\155\x6c\x5f\x72\145\x67\151\x73\x74\x72\141\164\151\x6f\156\137\x73\x74\x61\x74\x75\163", "\x4d\x4f\x5f\x4f\124\120\137\x44\105\114\x49\126\105\x52\x45\x44\x5f\106\x41\x49\114\x55\x52\x45\x5f\120\110\x4f\116\105");
$this->mo_saml_show_error_message();
goto By;
Eg:
update_site_option("\x6d\x6f\137\x73\141\x6d\154\137\155\x65\163\163\x61\x67\x65", "\40\x41\x20\x6f\156\x65\x20\164\151\155\x65\40\x70\141\163\x73\x63\157\x64\145\40\x69\x73\x20\x73\145\156\x74\x20\x74\157\x20" . $g1 . "\40\x61\x67\x61\x69\x6e\x2e\x20\x50\154\x65\x61\x73\x65\x20\x63\x68\x65\143\153\40\x69\146\x20\171\x6f\x75\40\147\157\x74\x20\x74\x68\x65\40\x6f\164\x70\40\141\156\x64\40\x65\156\164\145\x72\40\151\x74\x20\150\145\x72\x65\x2e");
update_site_option("\155\x6f\137\163\x61\x6d\154\137\x74\162\141\156\163\x61\143\164\151\157\x6e\111\x64", $t5["\164\x78\x49\144"]);
update_site_option("\x6d\157\137\x73\x61\x6d\154\x5f\162\145\147\x69\x73\164\x72\x61\x74\x69\x6f\156\x5f\163\x74\141\164\165\163", "\x4d\117\x5f\117\124\x50\x5f\x44\x45\x4c\x49\126\x45\122\x45\104\137\123\125\x43\x43\x45\x53\x53\x5f\120\x48\117\116\x45");
$this->mo_saml_show_success_message();
By:
fK:
goto w_;
Dj:
if (mo_saml_is_extension_installed("\x63\165\162\x6c")) {
goto F8;
}
update_site_option("\x6d\x6f\x5f\163\141\x6d\154\137\x6d\x65\x73\163\141\x67\x65", "\x45\x52\x52\117\122\72\40\74\141\40\150\162\x65\x66\75\42\150\164\164\x70\72\57\57\x70\150\160\56\156\145\x74\x2f\155\141\156\x75\x61\x6c\x2f\145\x6e\x2f\143\165\162\154\56\x69\x6e\x73\164\141\x6c\154\x61\164\151\x6f\156\x2e\x70\150\160\42\40\x74\x61\162\x67\x65\x74\x3d\42\x5f\x62\154\x61\x6e\x6b\x22\76\120\110\x50\40\x63\125\122\114\x20\145\x78\x74\x65\x6e\x73\x69\x6f\156\x3c\x2f\141\x3e\x20\151\x73\40\156\157\x74\x20\x69\x6e\163\x74\141\154\154\x65\144\x20\157\x72\40\x64\x69\x73\141\142\x6c\145\x64\x2e\x20\122\145\x73\145\x6e\x64\x20\x4f\x54\120\40\146\x61\151\154\145\144\56");
$this->mo_saml_show_error_message();
return;
F8:
$ni = get_site_option("\x6d\x6f\x5f\163\141\x6d\154\x5f\x61\x64\155\x69\156\x5f\145\x6d\141\x69\154");
$xb = new CustomerSaml();
$t5 = json_decode($xb->send_otp_token($ni, '', $this), true);
if (strcasecmp($t5["\163\x74\x61\x74\x75\163"], "\x53\x55\103\x43\x45\123\123") == 0) {
goto Ko;
}
update_site_option("\x6d\x6f\x5f\163\141\x6d\x6c\x5f\155\145\163\163\141\147\x65", "\124\x68\x65\162\145\x20\167\x61\163\40\x61\156\40\x65\x72\x72\157\x72\40\x69\x6e\40\x73\x65\x6e\x64\151\x6e\x67\40\145\155\141\151\x6c\56\40\x50\154\145\x61\x73\x65\40\x63\154\x69\x63\x6b\40\x6f\x6e\40\x52\x65\x73\x65\156\144\40\x4f\124\120\40\x74\157\40\164\x72\x79\x20\x61\x67\x61\151\x6e\x2e");
update_site_option("\155\157\x5f\163\x61\155\154\137\x72\x65\x67\x69\x73\x74\x72\x61\164\x69\x6f\156\x5f\163\x74\141\x74\165\163", "\x4d\117\x5f\x4f\124\120\x5f\x44\105\x4c\x49\x56\105\122\105\104\x5f\x46\101\x49\114\x55\x52\105\137\105\115\x41\111\114");
$this->mo_saml_show_error_message();
goto HK;
Ko:
update_site_option("\x6d\157\137\163\141\155\x6c\137\x6d\x65\x73\163\x61\147\x65", "\40\x41\x20\x6f\156\145\40\x74\x69\x6d\145\40\x70\x61\x73\163\x63\157\144\x65\40\x69\163\x20\x73\145\x6e\x74\40\x74\157\40" . get_site_option("\155\x6f\137\163\141\x6d\x6c\137\x61\144\x6d\151\156\x5f\x65\155\141\151\x6c") . "\40\141\147\141\151\x6e\56\40\120\154\145\141\x73\145\x20\x63\x68\x65\x63\x6b\x20\x69\146\x20\x79\x6f\165\x20\147\157\164\x20\164\x68\x65\x20\x6f\164\x70\40\x61\x6e\x64\40\145\156\164\x65\162\x20\151\164\40\150\145\x72\x65\56");
update_site_option("\x6d\157\137\163\141\x6d\154\x5f\164\x72\x61\156\163\141\143\x74\151\157\156\x49\144", $t5["\164\170\x49\144"]);
update_site_option("\155\x6f\137\163\x61\155\x6c\x5f\x72\145\x67\151\163\164\x72\141\164\151\157\156\137\x73\164\x61\x74\x75\163", "\115\117\137\x4f\x54\x50\137\104\105\114\x49\x56\x45\122\x45\104\x5f\123\125\x43\x43\105\123\123\137\x45\x4d\101\x49\114");
$this->mo_saml_show_success_message();
HK:
w_:
goto Qh;
H0:
if (mo_saml_is_extension_installed("\143\165\x72\154")) {
goto Xe;
}
update_site_option("\x6d\157\x5f\163\141\155\x6c\137\x6d\145\163\163\141\x67\145", "\105\122\x52\x4f\x52\72\40\x3c\x61\40\x68\x72\145\x66\x3d\42\150\x74\164\x70\72\57\57\x70\150\x70\56\156\x65\164\57\x6d\141\156\x75\141\154\x2f\x65\156\x2f\x63\x75\x72\154\x2e\x69\x6e\163\164\x61\154\154\141\x74\x69\157\156\56\x70\x68\x70\x22\40\x74\141\x72\x67\x65\x74\x3d\x22\137\x62\154\141\156\x6b\42\76\120\110\120\x20\143\125\122\x4c\x20\x65\x78\x74\145\156\163\x69\157\x6e\74\57\141\x3e\40\x69\163\40\156\x6f\164\40\151\156\163\164\x61\x6c\154\145\144\40\x6f\162\40\x64\x69\x73\141\x62\x6c\145\144\56\x20\121\x75\145\x72\171\40\x73\165\x62\x6d\x69\164\x20\x66\141\151\x6c\x65\x64\56");
$this->mo_saml_show_error_message();
return;
Xe:
$ni = htmlspecialchars($_POST["\x6d\157\x5f\163\141\155\154\x5f\143\x6f\x6e\x74\x61\143\164\x5f\165\163\x5f\145\155\x61\x69\154"]);
$g1 = htmlspecialchars($_POST["\x6d\157\x5f\x73\141\x6d\154\x5f\143\157\x6e\164\141\143\164\x5f\x75\x73\137\160\150\157\156\145"]);
$HQ = htmlspecialchars($_POST["\x6d\157\x5f\x73\x61\x6d\154\137\143\x6f\x6e\164\x61\143\164\137\x75\x73\x5f\x71\165\x65\x72\171"]);
if (array_key_exists("\163\x65\x6e\x64\x5f\160\x6c\x75\147\x69\156\137\x63\x6f\x6e\146\151\x67", $_POST) === true) {
goto Hf;
}
update_site_option("\163\x65\x6e\x64\137\x70\154\165\147\151\x6e\x5f\143\157\156\x66\151\x67", "\157\x66\146");
goto d6;
Hf:
$Mj = miniorange_import_export(true, true);
$HQ .= $Mj;
delete_site_option("\x73\145\156\x64\137\160\x6c\165\147\151\x6e\x5f\143\x6f\x6e\146\151\x67");
d6:
$xb = new CustomerSaml();
if (empty($ni) || empty($HQ)) {
goto LE;
}
$aT = $xb->submit_contact_us($ni, $g1, $HQ, $this);
if ($aT == false) {
goto uy;
}
update_site_option("\155\157\x5f\163\x61\155\154\137\155\x65\163\163\141\147\145", "\124\150\141\156\153\x73\x20\146\157\x72\x20\147\x65\x74\164\x69\x6e\x67\x20\x69\156\40\164\157\x75\143\150\x21\x20\127\145\x20\163\150\141\154\154\x20\x67\x65\164\x20\142\141\x63\x6b\x20\x74\157\x20\171\157\165\x20\x73\x68\157\x72\x74\x6c\171\56");
$this->mo_saml_show_success_message();
goto jl;
uy:
update_site_option("\x6d\157\137\x73\141\155\154\x5f\x6d\145\163\163\x61\x67\145", "\131\x6f\x75\162\x20\x71\x75\145\x72\x79\x20\143\157\x75\154\x64\40\156\x6f\x74\x20\x62\x65\40\163\x75\142\x6d\151\164\164\x65\x64\56\40\x50\x6c\x65\141\163\145\x20\164\162\x79\x20\141\147\x61\151\x6e\x2e");
$this->mo_saml_show_error_message();
jl:
goto Oc;
LE:
update_site_option("\x6d\157\137\x73\x61\155\154\x5f\155\x65\163\x73\141\x67\145", "\x50\x6c\x65\x61\x73\145\40\146\151\154\x6c\x20\165\160\x20\105\155\141\151\154\40\x61\x6e\144\x20\x51\165\145\x72\171\40\x66\x69\145\154\144\x73\40\164\x6f\x20\x73\165\x62\155\x69\x74\x20\x79\x6f\x75\x72\x20\161\165\x65\162\x79\56");
$this->mo_saml_show_error_message();
Oc:
Qh:
goto pV;
aV:
if (mo_saml_is_extension_installed("\x63\165\x72\x6c")) {
goto Pb;
}
update_site_option("\155\157\137\x73\x61\155\154\137\155\x65\x73\163\x61\x67\x65", "\x45\122\122\x4f\x52\72\40\74\141\40\x68\162\x65\146\x3d\x22\150\164\164\x70\x3a\57\57\x70\x68\x70\56\156\145\164\57\x6d\141\156\165\141\x6c\x2f\145\x6e\57\143\165\162\x6c\56\x69\x6e\163\x74\141\154\154\141\x74\151\157\156\56\160\x68\x70\42\40\x74\x61\x72\147\x65\164\x3d\x22\x5f\142\154\x61\156\153\42\76\120\x48\120\40\x63\125\122\114\40\x65\x78\164\x65\x6e\163\151\x6f\156\74\57\141\76\x20\x69\163\40\x6e\x6f\164\x20\x69\156\x73\x74\141\x6c\x6c\145\144\40\x6f\162\40\x64\x69\x73\x61\x62\154\x65\144\56\x20\x4c\x6f\147\151\156\40\146\x61\151\x6c\x65\x64\x2e");
$this->mo_saml_show_error_message();
return;
Pb:
$ni = '';
$o7 = '';
if (empty($_POST["\x65\x6d\141\x69\154"]) || empty($_POST["\x70\141\163\x73\x77\157\x72\144"])) {
goto fS;
}
if ($this->checkPasswordPattern(strip_tags($_POST["\x70\x61\163\x73\x77\x6f\162\x64"]))) {
goto Pd;
}
$ni = sanitize_email($_POST["\145\x6d\x61\151\x6c"]);
$o7 = stripslashes(strip_tags($_POST["\x70\x61\163\x73\x77\157\x72\x64"]));
goto R5;
Pd:
update_site_option("\155\x6f\x5f\163\141\x6d\x6c\x5f\155\x65\163\163\x61\147\x65", "\x4d\x69\x6e\151\155\x75\x6d\40\66\40\143\x68\x61\x72\141\x63\x74\x65\162\163\x20\163\150\x6f\x75\x6c\144\x20\x62\145\x20\160\x72\145\163\145\156\x74\56\x20\115\141\170\x69\155\165\x6d\40\x31\65\40\143\150\x61\x72\141\x63\164\145\162\163\40\163\150\157\165\154\144\40\142\145\40\160\x72\145\x73\145\156\x74\56\40\x4f\x6e\154\x79\40\x66\157\x6c\x6c\x6f\167\x69\156\147\40\x73\x79\x6d\x62\157\154\163\x20\50\x21\100\x23\x2e\x24\x25\x5e\x26\52\x2d\137\x29\x20\x73\x68\x6f\x75\x6c\144\x20\x62\x65\x20\160\162\x65\163\x65\156\164\x2e");
$this->mo_saml_show_error_message();
return;
R5:
goto rQ;
fS:
update_site_option("\155\157\137\x73\141\155\x6c\137\155\145\163\x73\x61\x67\x65", "\101\154\154\40\164\x68\145\40\146\x69\145\x6c\144\x73\x20\141\x72\145\40\x72\145\161\x75\x69\162\145\144\56\40\120\154\x65\141\x73\x65\x20\145\x6e\164\145\x72\40\166\x61\x6c\151\144\40\145\x6e\x74\162\x69\x65\163\x2e");
$this->mo_saml_show_error_message();
return;
rQ:
update_site_option("\155\157\x5f\163\141\x6d\154\x5f\141\x64\x6d\x69\x6e\x5f\x65\x6d\x61\x69\154", $ni);
update_site_option("\x6d\157\x5f\x73\141\155\154\x5f\141\144\x6d\x69\156\137\x70\x61\x73\x73\167\x6f\162\x64", $o7);
$xb = new Customersaml();
$t5 = $xb->get_customer_key($this);
if ($t5) {
goto ps;
}
return;
ps:
$LV = json_decode($t5, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto ib;
}
update_site_option("\155\157\x5f\163\141\155\154\x5f\155\145\x73\163\x61\x67\x65", "\111\156\x76\x61\154\151\x64\x20\x75\163\145\x72\x6e\x61\155\145\x20\157\162\40\160\141\163\163\x77\157\x72\x64\x2e\x20\x50\154\x65\x61\x73\145\x20\164\162\171\x20\141\147\x61\151\x6e\56");
$this->mo_saml_show_error_message();
goto Wa;
ib:
update_site_option("\155\x6f\137\x73\141\155\x6c\x5f\141\x64\x6d\x69\156\137\x63\165\x73\164\157\155\145\162\137\153\145\x79", $LV["\x69\x64"]);
update_site_option("\155\157\x5f\163\x61\155\x6c\x5f\x61\x64\155\151\156\x5f\x61\x70\151\137\x6b\145\171", $LV["\x61\x70\151\113\x65\x79"]);
update_site_option("\x6d\157\x5f\x73\141\x6d\154\137\143\165\x73\164\x6f\155\145\x72\x5f\x74\157\153\145\x6e", $LV["\x74\x6f\153\x65\x6e"]);
update_site_option("\155\157\137\163\x61\155\x6c\137\141\144\155\151\x6e\137\x70\141\x73\163\167\157\162\x64", '');
update_site_option("\x6d\157\137\x73\x61\x6d\154\137\155\145\x73\x73\x61\147\x65", "\x43\x75\163\164\x6f\x6d\145\162\x20\162\145\164\162\x69\x65\x76\x65\x64\x20\163\x75\x63\x63\x65\163\x73\x66\165\x6c\x6c\171");
update_site_option("\x6d\x6f\137\163\141\x6d\x6c\x5f\x72\x65\x67\151\163\x74\162\141\164\151\x6f\x6e\x5f\x73\x74\141\x74\165\163", "\105\170\151\x73\164\x69\156\147\x20\125\x73\145\x72");
delete_site_option("\155\x6f\x5f\x73\x61\155\154\137\x76\x65\162\x69\146\171\x5f\143\x75\163\164\157\x6d\x65\162");
if (get_site_option("\x73\155\154\x5f\x6c\x6b")) {
goto Zc;
}
$this->mo_saml_show_success_message();
goto Wm;
Zc:
$tK = get_site_option("\x6d\x6f\137\163\141\x6d\x6c\137\x63\x75\163\164\157\x6d\x65\x72\137\164\x6f\x6b\x65\156");
$Vy = AESEncryption::decrypt_data(get_site_option("\x73\155\154\x5f\154\153"), $tK);
$tX = add_query_arg(array("\164\x61\x62" => "\154\x69\143\145\156\163\x69\x6e\147"), $_SERVER["\x52\105\x51\125\x45\x53\124\x5f\x55\122\111"]);
$qF = $xb->mo_saml_verify_license($Vy, $this);
if ($qF) {
goto Ag;
}
return;
Ag:
$t5 = json_decode($qF, true);
if (is_array($t5) and strcasecmp($t5["\x73\x74\141\x74\165\163"], "\x53\125\103\x43\105\x53\x53") == 0) {
goto VT;
}
update_site_option("\x6d\x6f\137\163\141\155\154\x5f\155\x65\163\163\x61\x67\x65", "\114\x69\x63\145\156\163\x65\x20\153\x65\x79\x20\x66\x6f\x72\x20\x74\x68\x69\x73\40\151\156\x73\164\141\156\143\x65\x20\x69\163\x20\151\156\x63\157\162\162\145\x63\164\x2e\x20\115\x61\153\145\x20\163\165\162\145\x20\x79\157\165\40\x68\141\166\x65\x20\x6e\x6f\x74\x20\x74\141\x6d\x70\x65\162\x65\x64\x20\167\151\x74\x68\40\151\x74\40\x61\x74\40\141\154\x6c\x2e\40\120\x6c\145\141\163\x65\40\x65\156\164\145\x72\x20\x61\x20\166\141\x6c\x69\x64\x20\154\151\x63\x65\x6e\163\145\x20\x6b\x65\171\56");
delete_site_option("\163\x6d\154\x5f\x6c\153");
$this->mo_saml_show_error_message();
goto gZ;
VT:
$this->mo_saml_show_success_message();
gZ:
Wm:
Wa:
update_site_option("\155\157\x5f\163\x61\x6d\x6c\137\141\144\155\x69\x6e\137\x70\x61\163\163\167\157\x72\144", '');
pV:
if (!get_site_option("\x6e\157\x5f\163\x62\163")) {
goto H1;
}
$tK = get_site_option("\155\x6f\137\x73\141\155\x6c\137\x63\x75\x73\x74\157\155\x65\x72\x5f\164\157\x6b\145\156");
$gt = AESEncryption::decrypt_data(get_site_option("\x6e\157\137\163\x62\x73"), $tK);
$vX = count(Utilities::get_sites());
if (!($gt < $vX)) {
goto Kp;
}
if (get_site_option("\154\151\143\145\x6e\163\x65\137\141\x6c\145\162\164\x5f\145\x6d\x61\151\154\137\163\x65\156\x74")) {
goto AW;
}
$xb = new Customersaml();
$xb->mo_saml_send_alert_email_for_license($gt, $this);
AW:
Kp:
H1:
if (self::mo_check_option_admin_referer("\155\x6f\137\163\x61\x6d\154\137\166\145\162\151\146\171\137\x6c\x69\x63\x65\156\x73\145")) {
goto I4;
}
if (!self::mo_check_option_admin_referer("\x6d\x6f\x5f\163\141\155\x6c\x5f\143\150\x65\143\153\x5f\x6c\x69\x63\x65\156\x73\145")) {
goto l_;
}
$xb = new Customersaml();
$qF = $xb->check_customer_ln($this);
if ($qF) {
goto Xk;
}
return;
Xk:
$t5 = json_decode($qF, true);
if (strcasecmp($t5["\163\x74\x61\x74\165\163"], "\123\125\x43\x43\x45\x53\123") == 0) {
goto xU;
}
$tK = get_site_option("\155\157\137\163\x61\x6d\x6c\x5f\x63\165\163\x74\157\x6d\145\162\137\x74\x6f\x6b\x65\156");
$tX = add_query_arg(array("\164\141\142" => "\x6c\x69\x63\145\x6e\163\151\156\147"), $_SERVER["\x52\x45\x51\x55\x45\x53\124\137\125\x52\x49"]);
update_site_option("\155\x6f\x5f\x73\x61\x6d\x6c\x5f\x6d\x65\163\163\141\147\x65", "\x59\157\x75\x20\x68\141\166\x65\x20\x6e\x6f\164\x20\165\x70\x67\162\x61\144\145\144\40\x79\145\164\x2e\40\x3c\x61\x20\x68\x72\x65\x66\x3d\x22" . $tX . "\x22\x3e\x43\154\x69\143\153\40\150\145\x72\x65\74\x2f\x61\76\x20\164\157\40\165\x70\147\x72\141\144\145\x20\164\x6f\x20\160\x72\145\155\151\x75\x6d\x20\x76\145\x72\163\151\157\x6e\x2e");
$this->mo_saml_show_error_message();
goto U3;
xU:
if (empty($t5["\x69\x73\115\x75\154\164\x69\x53\151\x74\145\120\x6c\x75\147\151\x6e\122\145\x71\165\145\163\164\145\144"])) {
goto ID;
}
$Jn = $t5["\151\x73\115\165\154\x74\x69\123\x69\164\145\x50\154\165\147\x69\x6e\122\x65\161\165\x65\x73\x74\x65\x64"];
ID:
$vX = count(Utilities::get_sites());
if ($Jn && !empty($t5["\156\x6f\117\146\123\165\142\x53\x69\x74\x65\x73"]) && $vX <= $t5["\156\x6f\117\x66\123\x75\x62\123\x69\x74\x65\x73"]) {
goto Kb;
}
$tK = get_site_option("\x6d\157\137\163\141\x6d\154\x5f\x63\x75\x73\x74\x6f\155\x65\162\137\x74\157\x6b\x65\156");
if (empty($zf)) {
goto zp;
}
update_site_option("\156\157\137\163\x62\163", AESEncryption::encrypt_data($zf, $tK));
zp:
update_site_option("\163\151\164\145\137\143\153\137\154", AESEncryption::encrypt_data("\146\x61\154\x73\145", $tK));
$tX = add_query_arg(array("\x74\x61\142" => "\x6c\x69\143\x65\156\163\151\x6e\x67"), $_SERVER["\x52\x45\x51\125\105\x53\124\x5f\x55\122\111"]);
update_site_option("\x6d\157\x5f\163\x61\155\x6c\x5f\155\x65\163\163\141\147\145", "\131\157\165\40\x68\x61\x76\x65\40\156\x6f\164\40\165\x70\x67\162\141\x64\145\144\40\164\x6f\40\164\150\145\x20\x63\157\x72\x72\x65\x63\x74\40\154\151\x63\145\156\163\x65\x20\160\154\141\x6e\56\x20\x45\151\x74\x68\x65\x72\x20\171\x6f\x75\40\x68\x61\166\145\x20\x70\x75\162\143\150\141\163\145\x64\x20\x66\157\x72\40\151\156\x63\x6f\162\162\145\x63\x74\x20\x6e\x6f\x2e\40\157\146\40\x73\x69\164\145\x73\x20\x6f\x72\x20\171\x6f\165\40\150\x61\166\x65\x20\x6e\157\164\x20\x73\x65\154\145\x63\x74\145\x64\40\155\165\x6c\164\151\x73\151\164\145\40\x6f\x70\x74\x69\x6f\x6e\40\x77\150\151\154\145\40\x70\x75\x72\x63\x68\141\x73\151\x6e\147\56\x20\x3c\x61\40\x68\x72\x65\x66\75\42\x23\42\40\157\156\x63\x6c\151\143\153\x3d\42\x67\x65\x74\165\x70\x67\x72\x61\144\145\x6c\x69\143\145\156\x73\x65\163\146\x6f\162\x6d\50\51\42\x3e\x43\154\151\143\153\40\x68\x65\x72\x65\x3c\57\x61\76\x20\x74\157\40\165\160\147\162\141\x64\145\x20\164\x6f\x20\160\x72\145\x6d\x69\x75\x6d\x20\166\145\162\x73\151\157\x6e\x2e");
$this->mo_saml_show_error_message();
goto vR;
Kb:
$tK = get_site_option("\155\157\137\163\141\x6d\154\137\x63\165\163\x74\x6f\155\145\x72\x5f\164\x6f\x6b\x65\x6e");
$zf = $t5["\x6e\x6f\117\x66\123\x75\x62\x53\151\x74\x65\163"];
if (empty($t5["\154\151\x63\x65\156\x73\145\105\x78\x70\151\162\171"])) {
goto Ov;
}
$WF = $this->mo_saml_parse_expiry_date($t5["\x6c\151\143\145\x6e\x73\145\x45\x78\160\151\x72\171"]);
update_site_option("\155\x6f\x5f\163\141\155\154\137\154\x69\x63\145\x6e\x73\x65\x5f\145\170\x70\151\x72\x79\137\144\x61\x74\x65", $WF);
update_site_option("\x6d\x6f\x5f\163\141\x6d\154\137\x73\154\x65", $this->is_license_expired($t5["\x6c\151\x63\145\x6e\x73\145\105\x78\x70\151\x72\171"]));
Ov:
update_site_option("\163\151\x74\145\137\x63\x6b\137\154", AESEncryption::encrypt_data("\x74\x72\165\145", $tK));
update_site_option("\156\x6f\137\163\142\163", AESEncryption::encrypt_data($zf, $tK));
$tX = add_query_arg(array("\164\141\142" => "\x6c\x6f\x67\151\x6e"), $_SERVER["\x52\x45\x51\x55\x45\123\x54\137\x55\122\111"]);
update_site_option("\x6d\x6f\137\x73\x61\155\x6c\137\x6d\x65\x73\x73\141\x67\145", "\131\157\165\x20\x68\141\166\145\x20\163\x75\143\x63\145\x73\x73\x66\165\x6c\154\x79\x20\x75\160\147\x72\x61\x64\x65\144\x20\x74\x6f\40\x70\162\x65\155\151\165\x6d\40\166\x65\x72\x73\x69\x6f\156\x2e");
$this->mo_saml_show_success_message();
vR:
U3:
l_:
goto f6;
I4:
if (!empty($_POST["\x73\141\x6d\154\x5f\x6c\151\143\145\x6e\x73\145\137\153\x65\x79"])) {
goto oz;
}
update_site_option("\x6d\157\x5f\x73\x61\x6d\154\x5f\155\145\x73\163\x61\147\145", "\x41\x6c\x6c\x20\164\x68\145\40\146\151\145\x6c\x64\163\40\141\x72\x65\x20\162\x65\161\165\x69\162\145\x64\56\40\x50\154\x65\x61\x73\x65\40\x65\x6e\164\x65\162\x20\166\141\154\151\x64\x20\154\151\x63\145\156\x73\x65\40\153\x65\x79\x2e");
$this->mo_saml_show_error_message();
return;
oz:
$Vy = trim($_POST["\x73\x61\x6d\x6c\x5f\x6c\151\x63\145\156\163\145\137\153\145\x79"]);
$xb = new Customersaml();
$qF = $xb->check_customer_ln($this);
if ($qF) {
goto Cf;
}
return;
Cf:
$t5 = json_decode($qF, true);
$tX = add_query_arg(array("\164\141\x62" => "\x6c\151\x63\145\156\x73\151\156\x67"), $_SERVER["\x52\105\121\x55\105\123\x54\137\125\x52\111"]);
if (strcasecmp($t5["\163\x74\x61\164\x75\163"], "\123\x55\x43\103\x45\x53\123") == 0) {
goto Wj;
}
$tK = get_site_option("\x6d\157\137\x73\x61\x6d\x6c\x5f\x63\x75\163\x74\x6f\x6d\x65\162\137\x74\x6f\153\145\156");
$tX = add_query_arg(array("\164\141\x62" => "\154\151\143\145\x6e\163\151\x6e\x67"), $_SERVER["\122\105\x51\x55\x45\x53\124\137\x55\122\111"]);
update_site_option("\155\x6f\x5f\x73\x61\155\x6c\x5f\x6d\x65\x73\x73\x61\x67\145", "\x59\157\x75\x20\x68\x61\166\x65\40\156\157\x74\40\x75\x70\147\162\141\144\145\x64\x20\x79\x65\164\56\x20\74\141\x20\150\x72\x65\x66\75\x22" . $tX . "\x22\76\103\154\x69\x63\x6b\40\150\145\162\145\74\57\x61\x3e\40\164\157\40\165\x70\147\x72\x61\144\x65\x20\164\157\40\160\162\145\x6d\x69\x75\x6d\x20\166\145\162\163\151\x6f\x6e\56");
$this->mo_saml_show_error_message();
goto m0;
Wj:
if (empty($t5["\x69\x73\115\165\x6c\164\151\123\x69\x74\x65\x50\x6c\165\147\151\156\x52\145\161\165\x65\x73\164\x65\x64"])) {
goto iB;
}
$Jn = $t5["\151\x73\x4d\165\154\x74\151\123\x69\x74\x65\x50\x6c\165\x67\x69\x6e\122\145\161\165\x65\x73\x74\x65\144"];
iB:
$vX = count(Utilities::get_sites());
if ($Jn && !empty($t5["\156\157\117\146\x53\165\142\123\151\x74\x65\x73"]) && $vX <= $t5["\156\x6f\x4f\146\123\x75\x62\123\x69\164\145\x73"]) {
goto Jt;
}
$gt = $t5["\x6e\157\x4f\x66\123\x75\142\123\151\x74\145\x73"];
$tK = get_site_option("\x6d\157\x5f\163\x61\x6d\154\137\143\x75\163\x74\157\155\145\162\x5f\x74\x6f\153\145\156");
update_site_option("\156\x6f\137\x73\142\163", AESEncryption::encrypt_data($gt, $tK));
update_site_option("\x73\x6d\154\137\154\153", AESEncryption::encrypt_data($Vy, $tK));
update_site_option("\x73\151\x74\x65\x5f\x63\153\137\x6c", AESEncryption::encrypt_data("\164\162\x75\145", $tK));
update_site_option("\x6d\x6f\x5f\163\141\155\x6c\x5f\155\145\163\x73\x61\147\145", "\131\x6f\165\x20\x68\141\166\145\40\160\x75\162\x63\x68\x61\x73\145\144\40\x74\x68\145\40\x6c\151\143\145\156\163\x65\40\x66\157\162\x20\74\x62\76" . $t5["\156\157\117\x66\123\x75\x62\123\x69\164\145\x73"] . "\x20\x73\x69\x74\x65\x73\74\57\x62\x3e\56\x20\x42\165\164\40\x79\157\165\40\x68\x61\x76\x65\x20\x3c\142\x3e" . $vX . "\40\x3c\x2f\142\76\x73\x69\x74\x65\163\40\151\156\40\x79\157\165\x72\40\155\x75\154\x74\x69\x73\151\164\x65\40\x6e\x65\164\167\157\162\x6b\x2e\x20\74\141\x20\x68\162\x65\146\75\x22\43\x22\40\157\156\143\x6c\x69\x63\x6b\x3d\42\x67\x65\x74\x75\160\x67\x72\141\144\x65\x6c\151\x63\145\x6e\163\145\x73\146\x6f\162\155\x28\x29\x22\76\x43\154\151\143\x6b\40\x68\x65\x72\145\x3c\x2f\141\76\40\x74\157\40\x62\165\171\x20\154\x69\x63\x65\156\163\145\x20\146\x6f\162\x20\155\157\162\145\40\163\151\x74\x65\163\56");
$this->mo_saml_show_error_message();
goto uM;
Jt:
$gt = $t5["\x6e\157\x4f\x66\x53\x75\x62\x53\x69\164\145\x73"];
$tK = get_site_option("\155\157\x5f\163\x61\155\x6c\x5f\x63\x75\x73\164\x6f\x6d\145\x72\x5f\x74\x6f\x6b\x65\156");
if (empty($t5["\156\x6f\x4f\x66\x55\x73\x65\x72\163"])) {
goto No;
}
$UA = $t5["\x6e\157\117\146\x55\163\145\162\163"];
No:
$qF = $xb->mo_saml_verify_license($Vy, $this);
if ($qF) {
goto BX;
}
return;
BX:
$t5 = json_decode($qF, true);
if (is_array($t5) && !empty($t5["\163\164\141\x74\165\163"]) && strcasecmp($t5["\163\164\x61\x74\165\x73"], "\123\x55\103\103\105\123\123") == 0) {
goto VN;
}
if (is_array($t5) && !empty($t5["\163\x74\141\x74\x75\x73"]) && strcasecmp($t5["\x73\164\x61\x74\x75\x73"], "\x46\x41\x49\114\x45\x44") == 0) {
goto eD;
}
update_site_option("\x6d\157\x5f\163\x61\155\154\x5f\155\145\x73\x73\141\147\x65", "\101\156\40\145\162\x72\157\162\40\157\x63\143\165\x72\x65\144\40\x77\150\151\x6c\x65\40\x70\x72\157\143\145\163\x73\x69\156\x67\40\171\157\165\162\40\x72\145\x71\x75\x65\x73\164\56\x20\120\x6c\x65\x61\163\x65\x20\x54\162\x79\40\x61\x67\141\151\x6e\56");
$this->mo_saml_show_error_message();
goto qo;
eD:
if (strcasecmp($t5["\x6d\145\163\x73\141\147\145"], "\x43\157\x64\x65\40\x68\x61\163\x20\x45\170\160\151\x72\x65\x64") == 0) {
goto xb;
}
update_site_option("\155\157\x5f\163\x61\x6d\154\x5f\x6d\145\163\x73\141\147\x65", "\131\x6f\x75\40\x68\141\166\145\x20\x65\x6e\x74\x65\162\x65\x64\x20\x61\x6e\40\x69\x6e\x76\x61\x6c\x69\x64\40\x6c\x69\x63\x65\x6e\x73\145\x20\x6b\x65\x79\x2e\40\120\154\145\x61\163\x65\x20\x65\x6e\x74\145\x72\x20\x61\40\x76\141\154\151\144\x20\x6c\151\143\145\x6e\163\x65\40\x6b\145\171\56");
goto uA;
xb:
update_site_option("\x6d\x6f\x5f\x73\141\x6d\154\x5f\x6d\145\x73\x73\141\x67\145", "\114\151\x63\145\156\x73\x65\40\x6b\x65\171\40\171\157\165\x20\150\x61\166\145\40\145\156\x74\x65\x72\x65\x64\x20\150\x61\x73\x20\141\154\162\x65\141\144\171\40\x62\145\145\x6e\40\x75\163\145\x64\56\40\120\154\x65\141\x73\x65\40\x65\x6e\164\x65\162\x20\x61\x20\153\x65\171\40\x77\150\x69\x63\150\x20\x68\x61\x73\x20\x6e\x6f\x74\x20\142\145\145\x6e\x20\x75\x73\x65\144\x20\142\x65\146\157\162\145\40\x6f\x6e\40\x61\x6e\171\40\157\x74\x68\145\x72\x20\151\156\x73\x74\141\x6e\143\x65\40\157\162\x20\x69\x66\x20\x79\157\x75\40\x68\141\x76\145\40\145\x78\141\165\163\164\x65\x64\40\141\154\154\x20\171\157\x75\162\x20\153\x65\x79\x73\x20\164\x68\x65\156\x20\74\x61\40\150\x72\x65\146\75\x22\43\42\x20\x6f\156\x63\x6c\151\143\x6b\x3d\x22\x67\145\x74\165\160\x67\162\141\144\145\x6c\151\143\145\x6e\x73\x65\x73\x66\x6f\x72\x6d\x28\51\x22\40\x3e\103\154\151\143\153\40\x68\x65\162\x65\74\57\141\x3e\x20\x74\157\x20\x62\165\x79\x20\155\x6f\162\145\x2e");
uA:
$this->mo_saml_show_error_message();
qo:
goto la;
VN:
if (empty($t5["\x6e\157\117\146\x55\x73\145\162\x73"])) {
goto Y7;
}
update_site_option("\155\x6f\137\163\141\155\x6c\137\165\x73\x72\137\154\155\x74", AESEncryption::encrypt_data($UA, $tK));
Y7:
update_site_option("\163\155\154\x5f\154\153", AESEncryption::encrypt_data($Vy, $tK));
update_site_option("\156\157\137\x73\142\163", AESEncryption::encrypt_data($gt, $tK));
update_site_option("\x73\151\164\x65\x5f\143\153\x5f\x6c", AESEncryption::encrypt_data("\164\162\165\x65", $tK));
update_site_option("\x74\137\x73\x69\x74\145\137\x73\x74\141\x74\165\x73", AESEncryption::encrypt_data("\x66\141\x6c\x73\x65", $tK));
update_site_option("\155\157\137\x73\141\155\x6c\x5f\x6d\145\x73\163\141\147\x65", "\131\157\x75\x72\40\154\x69\x63\145\156\x73\x65\40\151\x73\40\166\x65\x72\x69\x66\151\x65\144\x2e\40\131\157\165\x20\x63\141\156\x20\x6e\x6f\x77\x20\x73\x65\x74\x75\160\x20\164\150\x65\x20\160\154\165\147\151\x6e\56");
$tK = get_site_option("\x6d\157\137\163\141\155\x6c\137\143\165\x73\164\157\x6d\145\x72\x5f\x74\157\153\145\x6e");
update_site_option("\164\137\x73\x69\164\x65\x5f\163\x74\x61\x74\x75\163", AESEncryption::encrypt_data("\146\141\154\x73\145", $tK));
$this->mo_saml_show_success_message();
la:
uM:
m0:
f6:
if (!(!empty($_REQUEST["\165\x70\x64\141\x74\145"]) && "\141\x64\x64\145\x64" == $_REQUEST["\165\160\x64\141\164\x65"] && get_site_option("\x6d\x6f\x5f\163\141\x6d\154\137\x65\156\x61\x62\x6c\145\137\163\163\x6f\137\x6e\x65\167\x5f\163\151\164\x65") == "\x74\162\165\x65")) {
goto r4;
}
$xn = !empty($_REQUEST["\x62\154\x6f\147\x5b\x64\157\x6d\141\151\156\135"]) ? $_REQUEST["\142\154\157\147\133\144\157\155\x61\151\156\135"] : '';
if (empty($_REQUEST["\151\x64"])) {
goto Bo;
}
$Ui = $_REQUEST["\151\x64"];
Bo:
if (empty($Ui)) {
goto u0;
}
$na = Utilities::get_active_sites();
if (Utilities::mo_saml_in_array($Ui, $na)) {
goto yn;
}
array_push($na, $Ui);
yn:
update_site_option("\x6d\x6f\x5f\x65\156\141\x62\154\145\x5f\x73\x73\x6f\x5f\163\x69\164\x65\x73", $na);
u0:
r4:
QI:
}
function create_customer()
{
$xb = new CustomerSaml();
$LV = json_decode($xb->create_customer($this), true);
if (strcasecmp($LV["\163\164\141\164\x75\x73"], "\103\125\123\124\x4f\x4d\x45\x52\x5f\x55\123\105\x52\116\x41\x4d\x45\x5f\101\x4c\x52\105\x41\x44\x59\x5f\105\x58\x49\123\124\123") == 0) {
goto P_;
}
if (!(strcasecmp($LV["\163\x74\141\x74\x75\163"], "\123\125\103\x43\105\123\123") == 0)) {
goto O2;
}
update_site_option("\155\157\137\163\141\x6d\x6c\137\x61\144\155\151\156\137\143\x75\163\x74\157\155\x65\x72\137\x6b\x65\x79", $LV["\151\144"]);
update_site_option("\x6d\x6f\137\x73\141\155\x6c\x5f\141\x64\x6d\151\x6e\137\x61\x70\x69\137\x6b\145\171", $LV["\141\x70\151\x4b\145\x79"]);
update_site_option("\155\x6f\x5f\x73\x61\155\x6c\137\143\x75\x73\164\x6f\x6d\x65\162\137\x74\x6f\x6b\145\x6e", $LV["\x74\x6f\153\x65\156"]);
update_site_option("\155\x6f\137\x73\x61\x6d\154\x5f\141\x64\155\151\156\x5f\x70\141\x73\x73\167\x6f\162\x64", '');
update_site_option("\155\157\x5f\x73\x61\x6d\x6c\137\x6d\145\163\x73\x61\147\x65", "\x54\150\x61\156\153\40\x79\157\x75\40\146\x6f\x72\40\162\145\x67\151\x73\164\145\x72\x69\156\x67\x20\x77\151\x74\x68\x20\155\151\x6e\151\157\x72\x61\x6e\x67\x65\56");
update_site_option("\x6d\x6f\x5f\x73\141\155\154\137\x72\x65\x67\x69\163\164\162\x61\164\151\157\x6e\137\x73\164\141\164\165\163", '');
delete_site_option("\x6d\x6f\137\x73\141\x6d\x6c\x5f\x76\x65\162\x69\x66\x79\x5f\x63\x75\163\164\x6f\x6d\145\162");
delete_site_option("\155\x6f\137\163\141\x6d\154\x5f\156\145\167\137\x72\x65\x67\x69\163\x74\x72\x61\164\x69\x6f\156");
$this->mo_saml_show_success_message();
O2:
goto jJ;
P_:
$this->get_current_customer();
jJ:
update_site_option("\155\157\x5f\163\x61\x6d\154\137\x61\x64\155\x69\x6e\137\160\141\163\x73\167\157\x72\144", '');
}
function get_current_customer()
{
$xb = new CustomerSaml();
$t5 = $xb->get_customer_key($this);
if ($t5) {
goto DR;
}
return;
DR:
$LV = json_decode($t5, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto fE;
}
update_site_option("\x6d\157\x5f\x73\141\x6d\x6c\x5f\155\x65\x73\163\141\147\x65", "\x59\157\x75\40\x61\154\162\145\x61\x64\171\x20\150\x61\x76\145\x20\x61\x6e\40\x61\143\x63\157\165\x6e\164\x20\x77\x69\164\x68\40\x6d\x69\156\x69\117\162\x61\x6e\x67\x65\56\40\x50\x6c\x65\x61\x73\x65\x20\145\156\x74\145\x72\40\141\40\166\x61\x6c\151\144\x20\x70\x61\163\163\167\x6f\162\x64\56");
update_site_option("\155\x6f\137\163\141\155\x6c\137\x76\x65\x72\x69\146\171\137\x63\x75\163\164\x6f\x6d\x65\x72", "\164\x72\x75\145");
delete_site_option("\x6d\x6f\137\163\141\155\x6c\x5f\156\145\167\137\162\x65\x67\151\x73\x74\x72\x61\164\151\x6f\156");
$this->mo_saml_show_error_message();
goto Vu;
fE:
update_site_option("\x6d\x6f\x5f\163\141\155\154\137\141\144\155\151\x6e\x5f\143\165\163\164\x6f\155\145\162\137\x6b\145\x79", $LV["\151\144"]);
update_site_option("\x6d\157\137\163\x61\155\x6c\137\x61\x64\x6d\151\156\137\x61\x70\151\x5f\x6b\x65\171", $LV["\x61\160\x69\x4b\x65\171"]);
update_site_option("\155\157\137\163\x61\x6d\154\x5f\x63\165\x73\x74\157\x6d\145\x72\137\164\157\x6b\x65\156", $LV["\164\x6f\153\145\156"]);
update_site_option("\155\157\137\x73\141\155\154\x5f\141\x64\x6d\151\x6e\137\x70\141\x73\163\x77\157\162\x64", '');
update_site_option("\155\157\137\163\141\x6d\154\x5f\x6d\x65\163\x73\x61\x67\x65", "\x59\x6f\165\162\x20\141\x63\x63\x6f\x75\x6e\x74\40\x68\x61\163\40\x62\x65\145\x6e\x20\x72\x65\164\x72\x69\145\x76\145\144\40\x73\x75\x63\143\145\x73\163\x66\165\x6c\x6c\171\x2e");
delete_site_option("\155\157\x5f\x73\141\x6d\154\x5f\x76\145\x72\151\x66\x79\x5f\x63\x75\x73\164\157\x6d\145\162");
delete_site_option("\x6d\x6f\x5f\163\x61\x6d\154\137\156\x65\167\137\x72\145\x67\x69\x73\x74\162\141\164\x69\x6f\156");
$this->mo_saml_show_success_message();
Vu:
}
function miniorange_sso_menu()
{
$vv = add_menu_page("\x4d\x4f\40\x53\101\x4d\x4c\40\123\145\164\164\x69\156\147\x73\x20" . __("\x43\157\156\x66\x69\147\165\162\145\40\123\x41\x4d\114\x20\111\x64\145\156\x74\x69\164\171\40\x50\x72\157\x76\151\144\x65\162\40\146\157\162\40\123\x53\x4f", "\155\157\137\x73\141\x6d\154\x5f\x73\x65\164\164\x69\x6e\x67\x73"), "\155\x69\156\151\117\x72\x61\156\x67\145\x20\x53\x41\x4d\114\x20\x32\56\x30\40\x53\x53\117", "\141\144\x6d\151\156\x69\x73\164\162\x61\164\x6f\162", "\155\x6f\x5f\x73\141\x6d\x6c\x5f\163\145\164\164\151\x6e\147\x73", array($this, "\155\157\x5f\x6c\x6f\x67\x69\156\x5f\x77\x69\144\x67\x65\x74\x5f\163\x61\155\154\137\157\x70\164\x69\x6f\x6e\x73"), plugin_dir_url(__FILE__) . "\151\155\x61\x67\145\163\57\155\x69\x6e\151\157\x72\141\x6e\147\x65\56\160\x6e\147");
if (!mo_saml_is_customer_license_key_verified()) {
goto Hr;
}
add_submenu_page("\155\157\137\163\x61\x6d\x6c\x5f\x73\x65\164\164\x69\156\147\x73", "\155\x69\x6e\x69\x4f\x72\x61\x6e\x67\145\x20\123\101\115\x4c\x20\62\x2e\60\40\123\123\117", __("\x3c\144\x69\x76\x20\x69\144\x3d\x22\x6d\x6f\x5f\163\141\155\154\x5f\141\144\144\x6f\x6e\x73\x5f\x73\165\x62\155\x65\x6e\x75\42\x3e\x41\144\x64\x2d\117\x6e\163\x3c\57\144\151\x76\x3e", "\x6d\151\x6e\151\157\x72\141\x6e\x67\145\x2d\x73\141\x6d\154\x2d\x32\60\55\x73\x69\x6e\x67\x6c\145\x2d\163\151\147\x6e\55\157\x6e"), "\x6d\141\156\141\x67\x65\x5f\157\x70\x74\151\x6f\x6e\x73", "\x6d\157\x5f\163\x61\x6d\x6c\x5f\x73\145\x74\x74\x69\x6e\x67\x73\46\x74\141\x62\x3d\x61\x64\144\55\x6f\x6e\x73", array($this, "\155\x6f\x5f\154\157\147\x69\x6e\137\x77\151\x64\147\145\164\137\163\x61\155\154\137\x6f\160\x74\x69\x6f\156\163"));
Hr:
}
function mo_saml_redirect_for_authentication($Xn)
{
if (!mo_saml_is_customer_license_key_verified()) {
goto a3;
}
$wa = maybe_unserialize(get_site_option("\x73\x61\x6d\x6c\x5f\x73\x73\157\x5f\x73\x65\x74\164\x69\156\x67\x73"));
$oR = Utilities::get_active_sites();
$Qu = get_current_blog_id();
if (Utilities::mo_saml_in_array($Qu, $oR)) {
goto rF;
}
return;
rF:
if (!(empty($wa[$Qu]) && !empty($wa["\104\x45\x46\x41\x55\x4c\124"]))) {
goto S6;
}
$wa[$Qu] = $wa["\104\105\106\x41\125\114\124"];
S6:
if (!empty($wa[$Qu]["\155\157\137\x73\141\x6d\154\137\x72\145\x67\151\x73\164\145\x72\145\x64\x5f\157\156\x6c\171\137\x61\x63\143\145\163\x73"]) && $wa[$Qu]["\x6d\x6f\x5f\163\141\155\154\x5f\162\x65\147\x69\x73\164\145\x72\145\144\137\157\x6e\x6c\x79\x5f\x61\x63\143\x65\163\163"] == "\x74\162\165\x65" || !empty($wa[$Qu]["\x6d\x6f\x5f\x73\x61\x6d\154\x5f\145\x6e\141\x62\x6c\x65\x5f\154\x6f\x67\x69\156\137\162\x65\144\151\x72\145\143\164"]) && $wa[$Qu]["\x6d\x6f\x5f\163\x61\x6d\x6c\x5f\x65\156\141\x62\154\x65\x5f\154\157\147\x69\156\137\x72\145\x64\x69\x72\145\x63\164"] == "\164\162\165\x65") {
goto Tu;
}
if (!(!empty($wa[$Qu]["\155\x6f\x5f\163\141\x6d\x6c\137\x72\x65\144\151\x72\x65\x63\x74\137\x74\157\x5f\x77\160\x5f\154\x6f\x67\x69\156"]) and $wa[$Qu]["\155\x6f\137\163\141\155\154\137\162\x65\144\x69\162\145\x63\164\137\164\157\137\x77\x70\137\154\x6f\147\151\x6e"] == "\164\162\165\x65")) {
goto jW;
}
if (!(mo_saml_is_sp_configured() && !is_user_logged_in())) {
goto oF;
}
$tX = get_site_url($Qu) . "\57\167\160\55\154\157\x67\x69\x6e\x2e\x70\150\160";
if (empty($Xn)) {
goto qO;
}
$tX = $tX . "\x3f\x72\x65\x64\151\x72\x65\143\164\x5f\x74\157\x3d" . urlencode($Xn) . "\46\162\x65\141\x75\x74\150\x3d\x31";
qO:
header("\x4c\157\x63\141\164\x69\157\156\x3a\40" . $tX);
exit;
oF:
jW:
goto oK;
Tu:
if (!(mo_saml_is_sp_configured() && !is_user_logged_in())) {
goto qB;
}
$Eq = get_site_option("\x6d\157\x5f\x73\141\x6d\154\x5f\x73\160\137\142\141\163\145\137\x75\x72\154");
if (!empty($Eq)) {
goto Zk;
}
$Eq = get_network_site_url();
Zk:
if (empty($wa[$Qu]["\x6d\x6f\x5f\x73\x61\155\x6c\x5f\x72\145\154\x61\x79\x5f\x73\x74\141\164\x65"])) {
goto HE;
}
$Xn = $wa[$Qu]["\x6d\x6f\x5f\163\x61\155\154\x5f\x72\145\x6c\141\x79\x5f\163\x74\141\164\145"];
HE:
$u2 = $Xn;
$Yr = get_site_option("\x73\141\155\x6c\137\x6c\157\147\x69\156\x5f\165\162\x6c");
$rj = !empty(get_site_option("\x73\141\x6d\x6c\137\x6c\157\x67\x69\156\x5f\x62\151\x6e\144\151\156\147\137\164\x79\160\145")) ? get_site_option("\x73\141\155\154\137\x6c\157\147\151\156\137\x62\151\x6e\144\x69\x6e\147\137\x74\171\160\145") : "\x48\x74\164\x70\120\x6f\x73\164";
$wa = maybe_unserialize(get_site_option("\163\x61\155\x6c\137\x73\x73\x6f\137\x73\145\x74\164\x69\156\x67\x73"));
$Qu = get_current_blog_id();
if (!(empty($wa[$Qu]) && !empty($wa["\104\105\x46\101\125\114\124"]))) {
goto XE;
}
$wa[$Qu] = $wa["\104\x45\106\x41\x55\x4c\124"];
XE:
if (!empty($wa[$Qu]["\155\x6f\x5f\x73\141\x6d\154\x5f\146\x6f\162\143\145\x5f\x61\x75\164\150\x65\156\164\151\143\141\x74\x69\x6f\156"])) {
goto To;
}
$X5 = '';
goto W5;
To:
$X5 = $wa[$Qu]["\155\x6f\x5f\163\141\155\x6c\x5f\146\157\162\143\145\137\141\165\x74\x68\145\x6e\x74\151\x63\x61\164\x69\x6f\x6e"];
W5:
$F5 = $Eq . "\57";
$yo = get_site_option("\155\x6f\137\163\141\155\x6c\x5f\x73\160\137\145\156\x74\151\x74\x79\137\151\x64");
$vl = get_site_option("\163\141\x6d\x6c\137\156\141\155\145\151\x64\x5f\x66\157\162\x6d\141\164");
if (!empty($vl)) {
goto xm;
}
$vl = "\x31\56\61\72\156\141\155\145\151\x64\x2d\x66\157\162\x6d\141\x74\x3a\165\x6e\x73\x70\145\x63\151\146\151\145\x64";
xm:
if (!empty($yo)) {
goto D0;
}
$yo = $Eq . "\57\167\x70\55\143\x6f\x6e\164\145\x6e\x74\x2f\x70\154\165\x67\x69\156\163\x2f\x6d\x69\x6e\x69\x6f\162\141\x6e\147\145\55\x73\x61\155\154\x2d\x32\60\x2d\x73\x69\x6e\x67\154\145\55\163\x69\x67\156\55\x6f\x6e\x2f";
D0:
$a_ = Utilities::createAuthnRequest($F5, $yo, $Yr, $X5, $rj, $vl);
$u2 = mo_saml_relaystate_url($u2);
if ($rj == "\x48\x74\164\160\x52\145\144\x69\162\145\x63\x74") {
goto kB;
}
if (!(get_site_option("\163\x61\x6d\154\137\x72\x65\x71\x75\145\x73\164\137\x73\x69\147\x6e\145\144") == "\165\x6e\x63\150\145\143\x6b\x65\x64")) {
goto lD;
}
$RL = base64_encode($a_);
Utilities::postSAMLRequest($Yr, $RL, $u2);
exit;
lD:
$pH = '';
$VG = '';
$RL = Utilities::signXML($a_, "\116\x61\155\145\x49\104\120\157\x6c\151\x63\x79");
Utilities::postSAMLRequest($Yr, $RL, $u2);
goto Ro;
kB:
$f2 = htmlspecialchars_decode($Yr);
if (strpos($Yr, "\x3f") !== false) {
goto NH;
}
$f2 .= "\x3f";
goto IN;
NH:
$f2 .= "\46";
IN:
if (!(get_site_option("\163\141\x6d\x6c\137\x72\145\161\x75\x65\x73\164\x5f\163\x69\x67\156\x65\144") == "\165\x6e\143\150\145\143\153\x65\x64")) {
goto Z_;
}
$f2 .= "\x53\101\x4d\114\x52\x65\161\165\145\x73\x74\x3d" . $a_ . "\46\122\145\154\141\x79\x53\164\141\x74\x65\x3d" . urlencode($u2);
header("\114\x6f\x63\141\164\x69\157\x6e\72\40" . $f2);
exit;
Z_:
$a_ = "\x53\x41\115\114\x52\x65\161\x75\145\x73\x74\x3d" . $a_ . "\x26\122\145\154\141\x79\x53\x74\141\x74\145\75" . urlencode($u2) . "\46\123\151\x67\101\154\x67\x3d" . urlencode(XMLSecurityKey::RSA_SHA256);
$Cv = array("\x74\171\160\x65" => "\160\162\x69\166\x61\164\x65");
$tK = new XMLSecurityKey(XMLSecurityKey::RSA_SHA256, $Cv);
$RZ = get_site_option("\155\x6f\137\x73\x61\155\x6c\x5f\143\165\162\162\x65\x6e\164\x5f\x63\145\162\164\137\x70\x72\x69\x76\141\164\x65\x5f\x6b\145\171");
$tK->loadKey($RZ, FALSE);
$vo = new XMLSecurityDSig();
$yP = $tK->signData($a_);
$yP = base64_encode($yP);
$f2 .= $a_ . "\46\x53\x69\x67\x6e\x61\x74\x75\x72\x65\x3d" . urlencode($yP);
header("\114\x6f\x63\x61\x74\x69\x6f\156\72\40" . $f2);
exit;
Ro:
qB:
oK:
a3:
}
function mo_saml_authenticate()
{
$vx = '';
if (empty($_REQUEST["\x72\x65\x64\151\162\145\143\164\x5f\x74\157"])) {
goto XT;
}
$vx = $_REQUEST["\162\x65\144\151\x72\x65\143\164\x5f\x74\157"];
XT:
if (!is_user_logged_in()) {
goto O8;
}
if (!empty($vx)) {
goto iU;
}
$tX = saml_get_current_page_url();
if (!(strpos($tX, "\167\160\x2d\154\157\x67\x69\156\x2e\160\150\160") !== false)) {
goto P3;
}
$tX = str_replace("\x77\160\x2d\x6c\x6f\x67\x69\x6e\x2e\160\x68\x70", '', $tX);
if (!filter_var($tX, FILTER_VALIDATE_URL)) {
goto Ta;
}
header("\x4c\157\x63\x61\x74\151\157\x6e\x3a\40" . $tX);
exit;
Ta:
P3:
goto P2;
iU:
header("\114\157\143\x61\x74\x69\157\x6e\x3a\40" . $vx);
exit;
P2:
O8:
global $blog_id;
$wa = maybe_unserialize(get_site_option("\x73\141\x6d\x6c\x5f\163\x73\x6f\137\x73\x65\x74\x74\151\x6e\x67\x73"));
$Qu = get_current_blog_id();
$oR = Utilities::get_active_sites();
if (Utilities::mo_saml_in_array($Qu, $oR)) {
goto GB;
}
return;
GB:
if (!(empty($wa[$Qu]) && !empty($wa["\104\105\106\101\x55\114\124"]))) {
goto CL;
}
$wa[$Qu] = $wa["\104\x45\106\x41\x55\114\124"];
CL:
if (!(!empty($wa[$Qu]["\155\x6f\137\x73\141\155\154\137\x65\156\141\142\154\145\x5f\x6c\157\147\151\x6e\137\x72\145\144\151\162\x65\143\164"]) and $wa[$Qu]["\x6d\x6f\x5f\163\x61\155\x6c\x5f\145\156\141\x62\154\145\137\x6c\x6f\147\x69\156\x5f\162\145\x64\151\x72\145\x63\x74"] == "\164\x72\165\145")) {
goto Ej;
}
$ZU = !empty($wa[$Qu]["\155\x6f\137\x73\x61\155\x6c\137\142\x61\143\x6b\144\157\157\x72\x5f\x75\x72\154"]) ? trim($wa[$Qu]["\155\157\x5f\163\141\x6d\x6c\137\142\141\x63\x6b\144\x6f\x6f\x72\137\x75\162\154"]) : "\146\141\154\163\x65";
if (!empty($_GET["\x6c\x6f\x67\147\145\144\157\x75\164"]) && $_GET["\x6c\157\147\x67\145\144\157\x75\164"] == "\164\x72\x75\145") {
goto EP;
}
if (!empty($wa[$Qu]["\155\157\x5f\163\141\155\x6c\137\141\x6c\154\x6f\x77\137\167\x70\137\163\x69\147\x6e\x69\x6e"]) and $wa[$Qu]["\x6d\157\137\x73\141\x6d\154\137\141\x6c\x6c\x6f\167\x5f\167\160\137\163\x69\x67\156\151\156"] == "\x74\162\x75\x65") {
goto OI;
}
goto EY;
EP:
header("\x4c\157\143\x61\x74\x69\x6f\156\x3a\x20" . get_network_site_url());
exit;
goto EY;
OI:
if (!empty($_GET["\x73\141\155\x6c\x5f\x73\x73\157"]) && $_GET["\163\141\x6d\x6c\137\x73\163\157"] == $ZU || !empty($_POST["\163\141\155\x6c\137\x73\163\157"]) && $_POST["\163\x61\x6d\154\137\x73\x73\x6f"] == $ZU) {
goto hv;
}
if (!empty($_REQUEST["\162\145\144\151\x72\145\143\164\137\164\157"])) {
goto LR;
}
goto zT;
hv:
return;
goto zT;
LR:
$vx = $_REQUEST["\x72\x65\x64\151\162\x65\x63\x74\x5f\x74\157"];
if (!(strpos($vx, "\167\x70\x2d\x61\144\x6d\x69\156") !== false && strpos($vx, "\163\x61\x6d\154\x5f\x73\163\157\75" . $ZU) !== false)) {
goto lQ;
}
return;
lQ:
zT:
EY:
if (!empty($vx)) {
goto q9;
}
$vx = saml_get_current_page_url();
q9:
$this->mo_saml_redirect_for_authentication($vx);
Ej:
}
function mo_saml_auto_redirect()
{
if (!current_user_can("\x72\x65\141\x64")) {
goto ar;
}
return;
ar:
global $blog_id;
$wa = maybe_unserialize(get_site_option("\x73\141\x6d\x6c\x5f\x73\163\x6f\x5f\163\145\x74\164\151\x6e\147\163"));
$Qu = get_current_blog_id();
$oR = Utilities::get_active_sites();
if (Utilities::mo_saml_in_array($Qu, $oR)) {
goto EM;
}
return;
EM:
if (!(empty($wa[$Qu]) && !empty($wa["\104\105\x46\x41\x55\x4c\124"]))) {
goto r9;
}
$wa[$Qu] = $wa["\x44\105\106\x41\x55\114\x54"];
r9:
if (is_user_logged_in() && !empty($wa[$Qu]["\x6d\157\137\163\141\x6d\154\137\163\x75\142\x73\151\x74\x65\x5f\141\x63\x63\145\x73\163\137\x64\145\156\151\x65\x64"])) {
goto kA;
}
if (!((!empty($wa[$Qu]["\x6d\157\x5f\x73\141\155\x6c\x5f\162\x65\147\x69\163\164\x65\x72\145\x64\137\x6f\x6e\154\x79\137\x61\x63\x63\x65\x73\163"]) and $wa[$Qu]["\155\x6f\x5f\x73\x61\155\x6c\137\x72\x65\x67\x69\x73\x74\x65\162\x65\x64\137\x6f\156\x6c\x79\x5f\141\x63\x63\145\163\x73"] == "\164\162\x75\145") || (!empty($wa[$Qu]["\x6d\x6f\137\x73\141\x6d\154\x5f\x72\145\x64\x69\x72\145\x63\x74\137\x74\x6f\137\167\x70\x5f\154\157\147\x69\156"]) and $wa[$Qu]["\x6d\x6f\x5f\163\141\155\x6c\137\x72\145\144\x69\162\145\x63\x74\137\x74\157\137\167\x70\x5f\154\157\x67\151\156"] == "\164\x72\x75\x65"))) {
goto ce;
}
$Oy = $_SERVER["\110\124\124\120\x5f\x48\117\123\x54"];
if (!(substr($Oy, -1) == "\x2f")) {
goto n_;
}
$Oy = substr($Oy, 0, -1);
n_:
$fz = $_SERVER["\x52\x45\121\125\105\x53\124\x5f\x55\x52\111"];
if (!(substr($fz, 0, 1) == "\57")) {
goto pf;
}
$fz = substr($fz, 1);
pf:
$Xn = "\150\164\x74\x70" . (!empty($_SERVER["\110\x54\124\x50\x53"]) ? "\163" : '') . "\x3a\x2f\x2f" . $Oy . "\x2f" . $fz;
$this->mo_saml_redirect_for_authentication($Xn);
ce:
goto JU;
kA:
global $current_user;
if (is_user_member_of_blog($current_user->ID)) {
goto DB;
}
$this->mo_saml_admin_page_access_denied();
DB:
JU:
}
function mo_saml_modify_login_form()
{
$wa = maybe_unserialize(get_site_option("\x73\141\155\154\x5f\x73\163\157\137\163\145\x74\x74\151\x6e\x67\163"));
$Qu = get_current_blog_id();
$oR = Utilities::get_active_sites();
if (Utilities::mo_saml_in_array($Qu, $oR)) {
goto WR;
}
return;
WR:
if (!(empty($wa[$Qu]) && !empty($wa["\104\x45\106\101\125\114\124"]))) {
goto Ck;
}
$wa[$Qu] = $wa["\104\x45\106\x41\125\x4c\x54"];
Ck:
$ZU = !empty($wa[$Qu]["\x6d\157\137\x73\141\155\154\137\x62\x61\x63\x6b\x64\x6f\x6f\162\137\x75\x72\154"]) ? trim($wa[$Qu]["\x6d\x6f\x5f\163\x61\155\154\137\x62\141\143\x6b\144\157\x6f\162\137\165\162\154"]) : "\146\x61\154\x73\x65";
echo "\x3c\x69\156\160\165\x74\40\164\171\160\145\75\42\150\x69\144\144\145\x6e\x22\40\x6e\141\155\145\x3d\x22\x73\141\155\154\137\x73\x73\157\42\40\x76\141\154\165\x65\x3d\42" . $ZU . "\x22\x3e" . "\xa";
if (!(!empty($wa[$Qu]["\x6d\x6f\x5f\x73\x61\155\x6c\137\x61\144\x64\x5f\163\x73\157\x5f\x62\x75\x74\164\157\x6e\x5f\x77\x70"]) and $wa[$Qu]["\155\x6f\137\163\141\x6d\x6c\137\x61\x64\x64\x5f\x73\163\x6f\x5f\142\x75\x74\164\x6f\156\x5f\167\160"] == "\x74\162\165\145")) {
goto w9;
}
$this->mo_saml_add_sso_button();
w9:
}
function mo_saml_add_sso_button()
{
$wa = maybe_unserialize(get_site_option("\x73\x61\155\x6c\x5f\163\163\x6f\x5f\163\145\x74\164\x69\156\147\163"));
$Qu = get_current_blog_id();
$oR = Utilities::get_active_sites();
if (Utilities::mo_saml_in_array($Qu, $oR)) {
goto lt;
}
return;
lt:
if (!(empty($wa[$Qu]) && !empty($wa["\104\105\x46\x41\125\114\124"]))) {
goto Pe;
}
$wa[$Qu] = $wa["\x44\105\106\101\125\114\x54"];
Pe:
if (is_user_logged_in()) {
goto GW;
}
$Eq = home_url();
$O5 = !empty($wa[$Qu]["\x6d\157\137\163\141\x6d\x6c\137\x62\165\164\x74\x6f\156\x5f\x77\x69\x64\x74\x68"]) ? $wa[$Qu]["\155\157\x5f\x73\141\155\x6c\137\x62\165\164\164\157\x6e\137\x77\x69\x64\164\x68"] : "\61\x30\60";
$W2 = !empty($wa[$Qu]["\155\157\x5f\163\141\x6d\x6c\137\x62\x75\164\164\157\156\x5f\x68\x65\151\x67\150\164"]) ? $wa[$Qu]["\155\157\x5f\x73\141\155\x6c\x5f\142\165\x74\164\x6f\x6e\137\x68\x65\151\147\x68\x74"] : "\x35\60";
$vi = !empty($wa[$Qu]["\155\x6f\x5f\163\x61\155\x6c\137\142\x75\x74\164\157\x6e\x5f\x73\151\172\x65"]) ? $wa[$Qu]["\x6d\x6f\x5f\163\141\155\x6c\x5f\142\165\164\x74\x6f\156\x5f\163\151\x7a\145"] : "\65\60";
$Vi = !empty($wa[$Qu]["\155\157\x5f\163\141\155\x6c\137\142\165\164\164\x6f\x6e\137\143\x75\x72\x76\x65"]) ? $wa[$Qu]["\x6d\157\137\x73\x61\x6d\x6c\x5f\x62\165\164\164\157\x6e\x5f\x63\165\x72\x76\x65"] : "\x35";
$Zd = !empty($wa[$Qu]["\155\x6f\x5f\163\x61\x6d\x6c\x5f\142\165\x74\x74\157\156\137\143\157\x6c\x6f\162"]) ? $wa[$Qu]["\x6d\157\x5f\x73\x61\155\x6c\x5f\142\x75\x74\164\x6f\156\137\143\157\154\x6f\x72"] : "\60\x30\x38\65\x62\x61";
$C6 = !empty($wa[$Qu]["\x6d\157\x5f\163\141\155\x6c\x5f\x62\x75\x74\164\157\x6e\137\164\150\x65\x6d\145"]) ? $wa[$Qu]["\155\157\x5f\163\141\155\154\x5f\x62\165\164\164\x6f\156\x5f\164\x68\145\x6d\x65"] : "\154\x6f\156\x67\x62\x75\x74\x74\157\156";
$bk = !empty($wa[$Qu]["\x6d\x6f\137\x73\x61\x6d\x6c\x5f\x62\x75\164\164\157\x6e\137\x74\145\x78\x74"]) ? $wa[$Qu]["\155\x6f\137\163\x61\x6d\154\137\142\165\x74\164\x6f\x6e\x5f\x74\145\x78\164"] : (get_site_option("\x73\x61\155\x6c\137\151\144\x65\x6e\x74\x69\x74\171\137\156\x61\155\145") ? get_site_option("\x73\141\x6d\154\x5f\151\144\145\156\x74\x69\164\x79\137\x6e\x61\x6d\145") : "\x4c\157\x67\151\x6e");
$op = !empty($wa[$Qu]["\155\x6f\137\163\141\x6d\154\x5f\146\x6f\x6e\164\x5f\x63\x6f\154\x6f\162"]) ? $wa[$Qu]["\x6d\x6f\137\x73\141\155\154\x5f\x66\157\156\164\137\143\x6f\x6c\157\x72"] : "\146\x66\x66\146\146\x66";
$SN = !empty($wa[$Qu]["\x6d\x6f\x5f\x73\141\x6d\154\137\x66\x6f\x6e\164\137\163\151\x7a\x65"]) ? $wa[$Qu]["\x6d\x6f\x5f\x73\x61\x6d\154\x5f\x66\x6f\x6e\x74\x5f\163\x69\x7a\x65"] : "\x32\60";
$MV = !empty($wa[$Qu]["\x73\163\157\x5f\x62\x75\x74\164\x6f\156\x5f\154\x6f\147\x69\x6e\137\146\157\162\x6d\x5f\x70\157\x73\x69\x74\x69\157\156"]) ? $wa[$Qu]["\x73\163\157\x5f\x62\x75\x74\164\157\156\x5f\154\x6f\147\151\x6e\137\x66\x6f\x72\x6d\x5f\x70\x6f\x73\151\x74\x69\157\x6e"] : "\x61\x62\157\x76\x65";
$Jw = "\74\151\x6e\160\x75\164\x20\164\x79\x70\x65\x3d\42\142\x75\164\164\157\x6e\42\40\x6e\x61\x6d\x65\75\42\x6d\157\137\163\141\155\154\x5f\x77\x70\x5f\163\163\x6f\x5f\x62\165\x74\164\157\x6e\42\x20\x76\x61\x6c\x75\x65\75\x22" . $bk . "\42\x20\163\164\171\154\145\75\42";
$n4 = "\x63\x75\162\x73\x6f\x72\72\160\x6f\x69\x6e\164\x65\x72\73";
if ($C6 == "\154\157\x6e\x67\x62\165\164\x74\x6f\156") {
goto N1;
}
if ($C6 == "\143\x69\x72\143\154\x65") {
goto D2;
}
if ($C6 == "\x6f\x76\x61\154") {
goto LX;
}
if ($C6 == "\x73\161\x75\141\x72\x65") {
goto j5;
}
goto Xj;
D2:
$n4 = $n4 . "\x77\x69\x64\164\150\x3a" . $vi . "\x70\170\x3b";
$n4 = $n4 . "\x68\145\x69\x67\x68\164\72" . $vi . "\160\170\x3b";
$n4 = $n4 . "\x62\157\162\x64\x65\x72\x2d\162\141\x64\x69\x75\163\x3a\x39\71\71\x70\170\x3b";
goto Xj;
LX:
$n4 = $n4 . "\x77\151\144\164\150\x3a" . $vi . "\x70\x78\x3b";
$n4 = $n4 . "\150\x65\151\147\x68\164\72" . $vi . "\x70\x78\x3b";
$n4 = $n4 . "\142\x6f\162\144\x65\162\x2d\x72\141\x64\151\x75\x73\x3a\x35\160\170\73";
goto Xj;
j5:
$n4 = $n4 . "\x77\151\144\x74\x68\72" . $vi . "\x70\x78\73";
$n4 = $n4 . "\150\x65\151\147\150\x74\72" . $vi . "\160\170\x3b";
$n4 = $n4 . "\142\x6f\162\x64\145\162\55\x72\141\144\x69\165\x73\72\60\160\170\73";
$n4 = $n4 . "\x70\141\144\x64\x69\156\x67\x3a\x30\160\x78\x3b";
Xj:
goto l1;
N1:
$n4 = $n4 . "\x77\x69\x64\x74\150\72" . $O5 . "\x70\x78\73";
$n4 = $n4 . "\150\145\151\x67\x68\x74\72" . $W2 . "\160\x78\x3b";
$n4 = $n4 . "\142\x6f\x72\x64\x65\x72\x2d\162\x61\x64\x69\x75\163\72" . $Vi . "\160\170\x3b";
l1:
$n4 = $n4 . "\142\x61\143\x6b\147\162\157\x75\156\144\x2d\143\157\154\x6f\162\x3a\43" . $Zd . "\x3b";
$n4 = $n4 . "\142\x6f\x72\x64\145\162\55\143\157\154\x6f\162\72\x74\x72\x61\x6e\163\160\141\x72\x65\156\164\x3b";
$n4 = $n4 . "\143\157\154\x6f\x72\x3a\x23" . $op . "\73";
$n4 = $n4 . "\x66\157\x6e\x74\x2d\163\x69\172\145\72" . $SN . "\x70\170\73";
$Jw = $Jw . $n4 . "\x22\57\76";
$vx = urlencode(saml_get_current_page_url());
if (empty($_GET["\162\145\144\x69\162\x65\143\x74\137\164\x6f"])) {
goto ap;
}
$vx = urlencode($_GET["\162\x65\144\151\x72\145\x63\164\137\x74\157"]);
ap:
$YY = "\x3c\141\40\150\162\x65\x66\x3d\42" . $Eq . "\57\x3f\x6f\x70\x74\x69\157\x6e\x3d\x73\141\155\154\137\165\163\x65\x72\x5f\154\157\x67\x69\156\x26\x72\145\144\151\x72\x65\x63\164\x5f\164\157\x3d" . $vx . "\x22\x20\163\x74\x79\x6c\x65\75\42\x74\x65\x78\x74\55\144\145\x63\157\162\x61\x74\151\x6f\x6e\72\x6e\x6f\156\145\x22\x3e" . $Jw . "\74\x2f\141\76";
$YY = "\74\144\x69\x76\x20\163\164\x79\x6c\145\75\42\x70\x61\144\x64\151\156\147\x2d\142\x6f\164\x74\157\155\72\61\x30\x70\170\x3b\42\x3e" . $YY . "\74\57\x64\x69\x76\76";
if ($MV == "\x61\x62\x6f\x76\145") {
goto Sr;
}
$YY = "\x3c\144\151\166\40\151\x64\75\x22\x73\163\157\137\x62\x75\x74\164\x6f\x6e\x22\x20\x73\x74\x79\154\145\75\x22\164\x65\170\164\55\141\x6c\x69\x67\156\72\143\x65\156\x74\x65\x72\42\76\x3c\144\x69\166\x20\163\164\171\x6c\145\75\x22\160\141\144\x64\x69\156\147\x3a\65\160\x78\x3b\146\x6f\x6e\164\55\163\x69\x7a\x65\x3a\61\x34\160\x78\x3b\x22\76\74\x62\x3e\x4f\122\74\57\x62\x3e\74\57\144\x69\x76\x3e" . $YY . "\74\57\144\151\166\x3e\x3c\142\162\x2f\76";
goto ZH;
Sr:
$YY = "\74\144\x69\x76\40\151\x64\x3d\x22\x73\163\x6f\x5f\142\x75\x74\x74\x6f\156\x22\40\x73\164\x79\154\145\75\42\164\x65\x78\164\55\141\x6c\x69\147\x6e\72\x63\x65\156\x74\x65\162\42\x3e" . $YY . "\74\x64\151\x76\40\x73\x74\x79\x6c\145\x3d\x22\x70\x61\x64\144\151\156\147\72\65\x70\170\73\x66\157\x6e\164\55\163\151\x7a\145\x3a\x31\x34\160\x78\x3b\42\x3e\x3c\142\76\117\x52\x3c\x2f\142\x3e\74\x2f\x64\x69\x76\x3e\74\57\x64\x69\166\x3e\x3c\x62\x72\x2f\76";
$YY = $YY . "\x3c\x73\x63\x72\151\x70\164\x3e\15\xa\x9\11\x9\x9\x76\x61\162\x20\44\x65\154\145\155\145\156\164\x20\x3d\40\152\x51\x75\x65\x72\x79\x28\x22\43\165\163\145\x72\x5f\154\157\x67\151\x6e\x22\51\x3b\15\xa\x9\11\x9\11\x6a\121\x75\145\x72\171\50\42\x23\x73\163\x6f\x5f\142\x75\164\x74\x6f\156\x22\51\56\x69\156\x73\145\x72\164\102\145\x66\x6f\x72\145\x28\x6a\x51\165\x65\162\x79\50\x22\154\x61\x62\x65\x6c\x5b\146\x6f\162\x3d\x27\x22\x2b\x24\x65\x6c\145\155\x65\156\x74\x2e\141\x74\164\162\50\x27\x69\144\x27\51\x2b\x22\47\x5d\x22\51\51\73\xd\xa\11\11\x9\x9\74\x2f\x73\x63\x72\151\x70\x74\x3e";
ZH:
echo $YY;
GW:
}
function mo_get_saml_shortcode()
{
$wa = maybe_unserialize(get_site_option("\x73\x61\x6d\x6c\137\163\x73\x6f\137\163\x65\164\164\151\156\147\x73"));
$Qu = get_current_blog_id();
$oR = Utilities::get_active_sites();
if (Utilities::mo_saml_in_array($Qu, $oR)) {
goto O5;
}
return;
O5:
if (!(empty($wa[$Qu]) && !empty($wa["\104\x45\106\x41\125\114\x54"]))) {
goto Cg;
}
$wa[$Qu] = $wa["\104\x45\106\x41\125\114\x54"];
Cg:
if (!is_user_logged_in()) {
goto IJ;
}
$current_user = wp_get_current_user();
$TN = "\110\x65\x6c\x6c\157\54";
if (empty($wa[$Qu]["\x6d\x6f\137\x73\x61\x6d\x6c\x5f\x63\x75\x73\x74\x6f\155\137\x67\x72\x65\145\164\x69\x6e\x67\x5f\x74\145\x78\164"])) {
goto XO;
}
$TN = $wa[$Qu]["\x6d\x6f\137\163\x61\x6d\x6c\x5f\143\x75\x73\x74\157\155\x5f\x67\162\x65\145\x74\151\x6e\x67\x5f\164\x65\170\164"];
XO:
$pz = '';
if (empty($wa[$Qu]["\155\x6f\x5f\163\141\x6d\154\137\147\x72\145\145\x74\151\156\x67\137\156\x61\x6d\145"])) {
goto LY;
}
switch ($wa[$Qu]["\155\157\137\163\141\155\154\x5f\147\162\x65\145\x74\x69\x6e\147\x5f\x6e\141\x6d\145"]) {
case "\x55\123\x45\122\116\x41\x4d\x45":
$pz = $current_user->user_login;
goto Yz;
case "\x45\115\101\111\114":
$pz = $current_user->user_email;
goto Yz;
case "\x46\116\101\x4d\105":
$pz = $current_user->user_firstname;
goto Yz;
case "\x4c\116\x41\x4d\x45":
$pz = $current_user->user_lastname;
goto Yz;
case "\106\x4e\x41\115\105\x5f\x4c\x4e\101\x4d\x45":
$pz = $current_user->user_firstname . "\40" . $current_user->user_lastname;
goto Yz;
case "\114\x4e\x41\115\105\137\106\116\x41\x4d\x45":
$pz = $current_user->user_lastname . "\x20" . $current_user->user_firstname;
goto Yz;
default:
$pz = $current_user->user_login;
}
WU:
Yz:
LY:
if (!empty(trim($pz))) {
goto XP;
}
$pz = $current_user->user_login;
XP:
$Py = $TN . "\x20" . $pz;
$mM = "\114\x6f\x67\x6f\165\164";
if (empty($wa[$Qu]["\155\x6f\137\x73\141\x6d\154\137\143\x75\x73\x74\x6f\155\x5f\x6c\157\147\157\165\x74\137\164\145\x78\164"])) {
goto MA;
}
$mM = $wa[$Qu]["\155\157\137\163\141\155\x6c\x5f\143\x75\x73\164\x6f\155\137\154\157\x67\157\x75\x74\137\x74\145\x78\164"];
MA:
$YY = $Py . "\x20\x7c\40\74\x61\x20\x68\x72\x65\146\x3d\x22" . wp_logout_url(home_url()) . "\42\x20\164\151\x74\x6c\x65\x3d\42\x6c\x6f\147\x6f\165\x74\42\x20\x3e" . $mM . "\74\x2f\141\76\x3c\x2f\154\151\x3e";
goto u_;
IJ:
$Eq = get_site_option("\x6d\x6f\x5f\x73\x61\x6d\x6c\x5f\x73\x70\137\142\141\x73\145\x5f\165\162\154");
if (!empty($Eq)) {
goto gJ;
}
$Eq = home_url();
gJ:
if (mo_saml_is_sp_configured() && mo_saml_is_customer_license_key_verified()) {
goto GU;
}
$YY = "\x53\x50\40\x69\163\x20\156\x6f\x74\40\143\x6f\156\x66\151\x67\165\x72\x65\x64\56";
goto qk;
GU:
$eB = "\x4c\157\x67\151\x6e\x20\x77\x69\164\x68\40" . get_site_option("\163\x61\x6d\x6c\x5f\x69\x64\x65\x6e\164\x69\164\x79\137\156\x61\x6d\145");
if (empty($wa[$Qu]["\x6d\x6f\137\163\141\x6d\154\137\143\x75\163\164\157\155\x5f\x6c\157\x67\151\156\137\x74\145\x78\x74"])) {
goto Dr;
}
$eB = $wa[$Qu]["\155\x6f\137\x73\141\155\154\x5f\x63\x75\x73\164\x6f\x6d\x5f\x6c\157\x67\151\x6e\137\x74\145\170\164"];
Dr:
$BM = get_site_option("\163\x61\155\x6c\137\x69\x64\x65\156\164\151\x74\171\137\x6e\x61\x6d\145");
$eB = str_replace("\x23\x23\x49\104\x50\x23\43", $BM, $eB);
$ST = false;
if (!(!empty($wa[$Qu]["\155\x6f\x5f\163\x61\x6d\154\137\165\163\x65\137\x62\x75\x74\x74\157\156\137\x61\x73\x5f\163\150\x6f\162\x74\143\x6f\x64\145"]) and $wa[$Qu]["\x6d\157\137\163\141\155\154\137\x75\x73\145\137\142\x75\x74\164\x6f\x6e\x5f\141\163\137\x73\x68\157\x72\164\x63\x6f\144\145"] == "\164\x72\x75\145")) {
goto JP;
}
$ST = true;
JP:
if (!$ST) {
goto hU;
}
$O5 = !empty($wa[$Qu]["\x6d\157\x5f\163\x61\155\154\137\142\x75\x74\x74\157\x6e\137\x77\x69\x64\164\150"]) ? $wa[$Qu]["\155\x6f\137\x73\141\x6d\154\x5f\x62\x75\164\164\x6f\x6e\137\x77\151\144\x74\x68"] : "\61\60\x30";
$W2 = !empty($wa[$Qu]["\155\x6f\x5f\x73\x61\x6d\x6c\137\142\165\164\x74\x6f\x6e\137\x68\x65\151\x67\150\x74"]) ? $wa[$Qu]["\155\x6f\x5f\x73\x61\155\x6c\137\x62\165\x74\164\157\156\x5f\x68\145\151\147\x68\164"] : "\x35\x30";
$vi = !empty($wa[$Qu]["\x6d\x6f\x5f\163\141\x6d\154\x5f\142\165\x74\x74\x6f\156\137\163\x69\x7a\145"]) ? $wa[$Qu]["\x6d\x6f\x5f\x73\x61\155\x6c\x5f\x62\165\164\164\x6f\x6e\x5f\163\x69\x7a\145"] : "\x35\x30";
$Vi = !empty($wa[$Qu]["\x6d\x6f\x5f\x73\141\155\154\x5f\142\x75\164\x74\x6f\156\137\x63\x75\162\166\145"]) ? $wa[$Qu]["\x6d\157\137\x73\141\x6d\x6c\137\142\x75\x74\164\x6f\x6e\x5f\x63\x75\x72\166\x65"] : "\x35";
$Zd = !empty($wa[$Qu]["\155\157\137\163\x61\x6d\x6c\137\x62\x75\164\x74\x6f\156\137\143\x6f\154\157\x72"]) ? $wa[$Qu]["\x6d\x6f\x5f\x73\141\x6d\154\137\x62\165\164\x74\x6f\x6e\137\x63\157\x6c\x6f\162"] : "\x30\60\70\x35\x62\x61";
$C6 = !empty($wa[$Qu]["\155\x6f\137\x73\141\x6d\x6c\x5f\142\x75\164\x74\157\156\x5f\164\x68\145\x6d\145"]) ? $wa[$Qu]["\x6d\157\x5f\x73\141\x6d\x6c\x5f\x62\x75\x74\164\157\156\x5f\164\150\x65\x6d\145"] : "\x6c\x6f\156\x67\x62\x75\x74\164\157\x6e";
$bk = !empty($wa[$Qu]["\155\157\137\163\141\155\154\137\142\165\164\164\x6f\156\x5f\164\x65\170\164"]) ? $wa[$Qu]["\x6d\x6f\137\163\141\x6d\154\137\142\165\x74\x74\157\x6e\137\x74\145\170\164"] : (get_site_option("\x73\x61\x6d\x6c\137\151\144\145\156\164\151\164\171\x5f\x6e\x61\x6d\x65") ? get_site_option("\x73\x61\x6d\154\137\151\144\x65\x6e\x74\x69\164\x79\x5f\x6e\141\155\145") : "\x4c\x6f\x67\151\x6e");
$op = !empty($wa[$Qu]["\155\x6f\137\x73\141\155\154\137\146\157\156\164\137\x63\157\154\157\x72"]) ? $wa[$Qu]["\155\157\x5f\x73\141\155\154\x5f\x66\x6f\156\x74\x5f\143\157\154\x6f\x72"] : "\146\146\146\146\146\146";
$Tc = !empty($wa[$Qu]["\155\x6f\x5f\163\141\155\154\x5f\146\157\x6e\164\137\163\x69\x7a\145"]) ? $wa[$Qu]["\x6d\x6f\137\x73\x61\x6d\x6c\137\x66\157\156\x74\137\x73\x69\172\145"] : "\62\60";
$eB = "\x3c\x69\156\160\x75\164\40\x74\x79\160\145\75\x22\x62\165\164\164\x6f\156\x22\x20\156\x61\x6d\145\x3d\x22\155\157\137\x73\141\x6d\154\137\x77\x70\x5f\x73\163\157\137\x62\165\x74\x74\157\156\42\40\x76\141\154\x75\145\75\x22" . $bk . "\x22\x20\x73\164\x79\154\145\75\x22";
$n4 = '';
if ($C6 == "\154\157\x6e\147\142\x75\x74\x74\157\x6e") {
goto jA;
}
if ($C6 == "\143\151\162\143\154\x65") {
goto W3;
}
if ($C6 == "\157\166\x61\154") {
goto cD;
}
if ($C6 == "\x73\161\x75\x61\162\145") {
goto Rl;
}
goto qq;
W3:
$n4 = $n4 . "\167\x69\144\164\150\72" . $vi . "\x70\x78\x3b";
$n4 = $n4 . "\150\x65\x69\x67\x68\x74\72" . $vi . "\160\170\73";
$n4 = $n4 . "\142\x6f\162\x64\145\x72\x2d\162\141\x64\x69\x75\x73\x3a\71\71\x39\x70\x78\x3b";
goto qq;
cD:
$n4 = $n4 . "\x77\x69\x64\x74\150\x3a" . $vi . "\160\x78\x3b";
$n4 = $n4 . "\x68\145\x69\147\x68\x74\x3a" . $vi . "\160\170\73";
$n4 = $n4 . "\x62\157\x72\144\145\162\55\x72\x61\x64\x69\x75\x73\72\x35\x70\170\x3b";
goto qq;
Rl:
$n4 = $n4 . "\167\151\144\x74\150\72" . $vi . "\160\170\73";
$n4 = $n4 . "\x68\145\151\147\x68\x74\72" . $vi . "\x70\170\73";
$n4 = $n4 . "\142\x6f\162\144\x65\x72\x2d\x72\141\x64\x69\x75\x73\72\60\160\170\73";
qq:
goto Hl;
jA:
$n4 = $n4 . "\x77\151\x64\x74\150\72" . $O5 . "\x70\x78\73";
$n4 = $n4 . "\x68\145\151\x67\150\x74\x3a" . $W2 . "\160\x78\x3b";
$n4 = $n4 . "\x62\x6f\162\144\x65\162\x2d\x72\x61\144\151\x75\163\x3a" . $Vi . "\x70\x78\x3b";
Hl:
$n4 = $n4 . "\x62\x61\x63\x6b\x67\x72\x6f\165\156\144\55\x63\x6f\x6c\157\162\72\43" . $Zd . "\x3b";
$n4 = $n4 . "\142\x6f\162\144\145\x72\x2d\143\x6f\154\x6f\162\72\164\162\141\x6e\x73\x70\x61\162\145\156\164\73";
$n4 = $n4 . "\143\x6f\154\x6f\162\x3a\x23" . $op . "\73";
$n4 = $n4 . "\146\157\x6e\164\x2d\163\x69\172\145\72" . $Tc . "\160\x78\x3b";
$n4 = $n4 . "\160\x61\x64\144\x69\156\x67\x3a\x30\160\170\73";
$eB = $eB . $n4 . "\x22\57\76";
hU:
$vx = urlencode(saml_get_current_page_url());
$YY = "\x3c\141\x20\x68\162\x65\x66\75\42" . $Eq . "\x2f\x3f\157\x70\x74\x69\x6f\x6e\75\x73\141\155\x6c\137\x75\163\x65\162\137\154\x6f\147\x69\x6e\46\162\x65\144\x69\x72\x65\x63\x74\137\164\157\x3d" . $vx . "\42";
if (!$ST) {
goto JT;
}
$YY = $YY . "\163\164\171\x6c\145\75\x22\x74\145\x78\x74\55\144\145\143\157\162\x61\x74\151\x6f\x6e\x3a\156\157\156\x65\73\42";
JT:
$YY = $YY . "\76" . $eB . "\74\57\141\x3e";
qk:
u_:
return $YY;
}
function upload_metadata()
{
if (!(!empty($_FILES["\x6d\145\164\141\x64\x61\164\141\x5f\x66\x69\154\x65"]) || !empty($_POST["\155\x65\x74\141\x64\141\164\x61\137\x75\x72\x6c"]))) {
goto FD;
}
if (!empty($_FILES["\155\145\164\141\x64\x61\164\141\137\x66\x69\154\x65"]["\164\155\160\x5f\156\141\155\145"])) {
goto yG;
}
if (mo_saml_is_extension_installed("\143\x75\x72\154")) {
goto pP;
}
update_option("\x6d\x6f\137\x73\141\155\154\x5f\x6d\x65\163\163\141\x67\x65", "\120\x48\x50\x20\x63\125\x52\114\40\x65\170\164\145\x6e\x73\x69\x6f\x6e\x20\151\163\40\156\x6f\x74\40\x69\x6e\163\x74\x61\x6c\x6c\145\x64\x20\x6f\162\x20\144\151\x73\141\142\x6c\x65\144\x2e\x20\x43\141\156\156\x6f\x74\x20\x66\x65\x74\x63\150\40\x6d\x65\x74\x61\x64\141\x74\x61\x20\x66\x72\x6f\x6d\40\x55\122\114\x2e");
$this->mo_saml_show_error_message();
return;
pP:
$tX = filter_var(htmlspecialchars($_POST["\155\145\x74\x61\x64\141\164\x61\137\x75\162\x6c"]), FILTER_SANITIZE_URL);
$ZT = Utilities::mo_saml_wp_remote_call($tX, $this, array("\x73\163\x6c\166\x65\x72\x69\146\171" => false), true);
if ($ZT) {
goto Yo;
}
update_site_option("\155\157\137\163\141\x6d\154\x5f\x6d\x65\163\163\x61\147\x65", "\120\154\145\141\163\x65\40\x70\x72\x6f\x76\151\144\145\40\141\x20\166\141\x6c\151\x64\40\155\145\x74\x61\x64\x61\164\141\x20\125\122\114\x2e");
return;
Yo:
if (!is_null($ZT)) {
goto z7;
}
$xL = null;
goto Nd;
z7:
$xL = $ZT;
Nd:
if (!empty($_POST["\163\171\x6e\143\137\x6d\x65\x74\x61\144\141\x74\x61"])) {
goto JQ;
}
delete_site_option("\163\x61\155\x6c\x5f\x6d\145\164\x61\x64\141\164\141\x5f\x75\162\154\x5f\x66\157\162\x5f\x73\x79\x6e\143");
delete_site_option("\x73\x61\x6d\x6c\137\x6d\145\x74\x61\x64\141\164\x61\137\163\x79\156\143\x5f\151\x6e\x74\145\x72\x76\x61\x6c");
wp_unschedule_event(wp_next_scheduled("\x6d\x65\x74\x61\x64\x61\x74\141\x5f\163\x79\x6e\x63\x5f\143\162\x6f\156\137\x61\143\x74\151\x6f\156"), "\x6d\x65\x74\x61\x64\141\x74\141\137\163\x79\x6e\143\x5f\x63\162\157\156\x5f\x61\143\x74\x69\157\x6e");
goto Bs;
JQ:
update_site_option("\x73\x61\x6d\x6c\137\155\145\164\x61\x64\141\164\141\137\x75\162\x6c\137\x66\157\162\x5f\x73\x79\x6e\143", htmlspecialchars($_POST["\x6d\145\164\141\144\x61\x74\141\137\x75\162\154"]));
update_site_option("\x73\x61\x6d\x6c\x5f\155\145\x74\141\144\141\x74\141\137\163\x79\156\x63\137\x69\156\164\145\162\166\x61\154", htmlspecialchars($_POST["\163\171\156\x63\137\151\156\x74\x65\162\x76\141\x6c"]));
if (wp_next_scheduled("\x6d\x65\164\141\x64\141\x74\x61\137\163\x79\x6e\x63\x5f\143\162\157\156\137\141\x63\164\151\157\156")) {
goto QA;
}
wp_schedule_event(time(), htmlspecialchars($_POST["\163\x79\156\143\137\x69\156\x74\x65\x72\x76\x61\154"]), "\155\x65\x74\x61\x64\x61\x74\141\x5f\163\171\156\143\x5f\x63\x72\x6f\x6e\x5f\141\x63\x74\151\x6f\156");
QA:
Bs:
goto dD;
yG:
$xL = @file_get_contents($_FILES["\x6d\145\164\x61\x64\x61\x74\141\137\x66\x69\x6c\145"]["\164\155\x70\x5f\x6e\141\155\x65"]);
dD:
$tb = set_error_handler(array($this, "\150\x61\156\x64\154\145\x58\155\154\105\x72\162\x6f\162"));
$Hr = new DOMDocument();
$Hr->loadXML($xL);
restore_error_handler();
if (!empty($Hr->firstChild)) {
goto Xu;
}
if (!empty($_POST["\x75\160\x6c\x6f\141\x64\x5f\x6d\x65\x74\x61\144\x61\164\141"])) {
goto v0;
}
update_site_option("\x6d\157\137\x73\x61\155\x6c\x5f\x6d\x65\x73\163\x61\x67\x65", "\x50\154\145\141\x73\x65\x20\160\x72\x6f\166\x69\144\145\40\x61\x20\x76\x61\154\x69\x64\40\155\145\x74\x61\144\x61\164\141\x20\125\x52\x4c\56");
goto c1;
v0:
update_site_option("\x6d\x6f\x5f\x73\x61\155\x6c\137\x6d\145\163\163\141\147\x65", "\x50\x6c\x65\141\x73\145\40\160\x72\157\x76\x69\144\145\40\x61\40\x76\141\154\151\144\40\x6d\145\x74\141\144\141\164\x61\40\x66\x69\x6c\145\56");
c1:
$this->mo_saml_show_error_message();
goto E3;
Xu:
$Nk = new MetadataReader($Hr);
foreach ($Nk->getIdentityProviders() as $tK => $p4) {
$SL = $_POST["\x73\141\x6d\154\x5f\151\144\x65\x6e\x74\151\x74\x79\x5f\x70\162\x6f\x76\x69\x64\x65\162\137\x6e\141\x6d\145"];
if (!("\60" === $SL)) {
goto Lm;
}
update_site_option("\x6d\157\x5f\x73\141\155\154\x5f\x6d\145\163\163\141\x67\x65", "\x27\60\x27\40\x69\x73\x20\x6e\157\x74\x20\x61\x6c\154\157\x77\145\x64\x20\141\163\x20\74\142\x3e\x49\x64\x65\156\164\x69\164\171\x20\x50\x72\x6f\x76\x69\x64\x65\x72\40\116\x61\x6d\x65\x3c\x2f\x62\x3e\56\40\x45\x6e\x74\145\162\40\x61\x20\x76\x61\x6c\151\144\x20\156\x61\155\145\x2e");
$this->mo_saml_show_error_message();
return;
Lm:
$Ta = "\x48\164\164\x70\x52\x65\144\151\x72\x65\143\164";
$Qm = '';
$t1 = $p4->getLoginDetails();
if (!empty($t1["\110\x54\x54\x50\55\x52\145\x64\151\x72\x65\x63\164"])) {
goto vg;
}
if (empty($t1["\110\x54\124\x50\x2d\x50\117\x53\x54"])) {
goto Gb;
}
$Ta = "\x48\164\x74\x70\120\x6f\163\164";
$Qm = $p4->getLoginURL("\x48\124\x54\120\55\x50\117\x53\x54");
Gb:
goto VM;
vg:
$Qm = $p4->getLoginURL("\x48\x54\124\x50\x2d\x52\145\144\x69\162\x65\143\x74");
VM:
$Gg = "\x48\164\164\x70\x52\x65\144\x69\x72\145\143\x74";
$cd = '';
$LX = $p4->getLogoutDetails();
if (!empty($LX["\110\x54\x54\120\x2d\x52\x65\144\x69\162\145\x63\x74"])) {
goto BO;
}
if (empty($LX["\x48\x54\x54\x50\x2d\x50\117\123\x54"])) {
goto Wg;
}
$Gg = "\x48\x74\x74\x70\x50\x6f\x73\x74";
$cd = $p4->getLogoutURL("\x48\x54\x54\120\x2d\120\x4f\x53\x54");
Wg:
goto lY;
BO:
$cd = $p4->getLogoutURL("\110\124\124\x50\x2d\x52\x65\144\151\x72\145\143\164");
lY:
$y1 = $p4->getEntityID();
$On = $p4->getSigningCertificate();
update_site_option("\163\141\155\x6c\x5f\x69\144\x65\x6e\x74\x69\x74\x79\137\156\x61\155\x65", $SL);
update_site_option("\163\x61\155\154\x5f\154\x6f\x67\x69\x6e\x5f\142\151\x6e\144\151\x6e\147\137\164\x79\x70\x65", $Ta);
update_site_option("\163\141\x6d\154\x5f\154\157\x67\x69\x6e\x5f\165\x72\154", $Qm);
update_site_option("\163\x61\155\x6c\x5f\154\x6f\x67\x6f\x75\x74\137\x62\x69\156\144\151\x6e\147\137\164\x79\x70\145", $Gg);
update_site_option("\163\141\x6d\x6c\x5f\154\157\147\x6f\165\164\x5f\165\162\154", $cd);
update_site_option("\163\x61\155\154\x5f\x69\163\163\165\145\x72", $y1);
update_site_option("\x73\x61\155\x6c\137\156\141\x6d\145\x69\x64\137\x66\x6f\x72\x6d\141\164", "\61\56\x31\x3a\x6e\x61\155\145\151\x64\x2d\x66\x6f\x72\155\141\x74\72\165\156\163\x70\x65\x63\151\146\151\145\144");
$On = is_array($On) ? $On : array(0 => $On);
$On;
foreach ($On as $tK => $Cd) {
$On[$tK] = Utilities::sanitize_certificate($Cd);
vk:
}
E9:
update_site_option("\163\x61\155\x6c\x5f\170\x35\60\71\x5f\143\145\162\x74\151\x66\151\x63\x61\x74\x65", $On);
goto Jw;
Il:
}
Jw:
update_site_option("\155\157\137\163\141\155\x6c\x5f\x6d\145\x73\163\141\147\145", "\111\144\x65\156\x74\151\x74\x79\40\x50\x72\157\166\x69\x64\x65\x72\40\144\145\164\x61\151\x6c\x73\x20\x73\141\166\x65\144\x20\x73\165\x63\143\x65\163\x73\x66\x75\x6c\154\171\56");
$this->mo_saml_show_success_message();
E3:
FD:
}
function handleXmlError($cW, $j4, $e7, $jj)
{
if ($cW == E_WARNING && substr_count($j4, "\x44\x4f\x4d\x44\x6f\143\x75\155\x65\x6e\164\72\72\x6c\157\x61\144\130\x4d\x4c\50\x29") > 0) {
goto kF;
}
return false;
goto X8L;
kF:
return;
X8L:
}
function mo_saml_admin_page_access_denied()
{
$K9 = get_blogs_of_user(get_current_user_id());
if (!wp_list_filter($K9, array("\165\x73\145\162\x62\154\x6f\x67\137\x69\x64" => get_current_blog_id()))) {
goto mM0;
}
return;
mM0:
$UI = get_bloginfo("\156\x61\x6d\x65");
if (!empty($K9)) {
goto G0g;
}
$YS = "\131\x6f\x75\x20\x61\x74\x74\x65\x6d\x70\164\145\x64\40\x74\x6f\40\141\143\143\145\x73\x73\x20\x74\150\x65\40" . $UI . "\40\163\151\x74\x65\54\40\142\165\164\40\171\157\165\x20\144\x6f\40\156\157\164\40\x63\165\x72\x72\x65\156\x74\154\171\40\150\x61\x76\x65\x20\160\x72\x69\166\151\x6c\145\x67\x65\163\x20\157\156\40\164\150\x69\163\40\x73\x69\x74\x65\x2e\x20\x49\x66\40\171\157\x75\40\x62\145\154\x69\x65\x76\x65\x20\x79\157\x75\x20\163\150\157\165\x6c\144\40\142\145\40\141\142\154\145\x20\x74\157\x20\141\143\x63\x65\163\x73\x20\x74\x68\x65\40" . $UI . "\40\163\x69\164\x65\54\x20\160\154\145\141\163\x65\40\143\x6f\x6e\164\141\143\164\x20\x79\157\x75\162\x20\x6e\x65\x74\x77\157\162\153\40\141\144\155\x69\x6e\151\x73\x74\x72\x61\164\x6f\x72\56";
mo_saml_subsite_access_denied_page($YS);
exit;
G0g:
$YS = "\x3c\160\x3e\x59\x6f\165\40\141\164\x74\x65\155\160\164\145\144\40\x74\157\x20\x61\143\143\145\x73\x73\x20\x74\x68\145\40" . $UI . "\40\163\151\x74\x65\54\40\142\165\x74\x20\x79\x6f\165\x20\x64\157\x20\x6e\157\164\40\143\x75\162\x72\x65\156\x74\154\171\40\150\141\166\x65\40\160\x72\151\166\151\154\145\147\145\x73\40\x6f\156\x20\x74\150\x69\x73\x20\163\151\x74\x65\x2e\40\x49\146\40\x79\157\x75\x20\x62\145\154\x69\145\x76\145\40\x79\x6f\x75\40\163\150\157\x75\154\x64\x20\142\x65\x20\x61\142\x6c\x65\x20\164\x6f\40\x61\143\143\145\163\163\x20\x74\x68\145\40" . $UI . "\40\163\151\164\x65\x2c\x20\160\154\145\141\163\x65\x20\143\157\x6e\164\x61\143\x74\x20\171\157\x75\x72\40\x6e\145\x74\x77\x6f\162\x6b\x20\141\x64\155\151\x6e\x69\x73\164\162\x61\x74\x6f\162\56\x3c\57\x70\76";
$YS .= "\74\x70\76\111\146\40\171\x6f\165\40\162\x65\141\143\150\x65\x64\40\164\150\x69\x73\40\x73\x63\162\x65\x65\156\x20\142\x79\x20\141\x63\x63\x69\x64\145\156\x74\x20\141\156\144\x20\155\145\141\x6e\164\x20\x74\157\40\x76\x69\163\x69\x74\x20\x6f\156\x65\x20\157\146\40\x79\x6f\165\x72\x20\157\x77\x6e\x20\x73\x69\164\x65\x73\x2c\40\150\x65\x72\x65\40\x61\162\x65\x20\x73\157\155\145\40\163\x68\157\162\164\x63\x75\x74\x73\x20\164\x6f\x20\150\x65\154\x70\x20\171\157\165\x20\x66\151\156\x64\x20\x79\157\165\162\x20\x77\x61\x79\x2e\x3c\x2f\160\76";
$YS .= "\x3c\x68\x33\x3e\x59\x6f\x75\x72\40\123\x69\x74\145\163\74\57\x68\x33\x3e";
$YS .= "\74\164\x61\142\x6c\x65\76";
foreach ($K9 as $ui) {
$YS .= "\74\164\162\76";
$YS .= "\x3c\164\x64\x3e" . $ui->blogname . "\74\x2f\x74\144\76";
$YS .= "\74\x74\x64\x3e\74\x61\40\x68\162\145\x66\75\x22" . esc_url(get_admin_url($ui->userblog_id)) . "\42\76\126\x69\163\151\x74\x20\x44\x61\x73\150\142\x6f\141\x72\x64\x3c\57\141\76\40\174\40\74\141\x20\x68\x72\x65\146\75\x22" . esc_url(get_home_url($ui->userblog_id)) . "\x22\76\126\x69\145\x77\x20\123\151\x74\145\74\x2f\141\x3e\x3c\x2f\164\x64\76";
$YS .= "\x3c\57\x74\162\76";
pdY:
}
jOw:
$YS .= "\x3c\x2f\164\x61\142\x6c\145\x3e";
mo_saml_subsite_access_denied_page($YS);
exit;
}
function mo_saml_plugin_action_links($Vq)
{
$Vq = array_merge(array("\x3c\x61\40\x68\162\145\146\75\x22" . esc_url(network_admin_url("\141\144\155\x69\x6e\56\160\150\160\x3f\x70\141\147\145\75\x6d\x6f\137\x73\141\155\x6c\x5f\x73\x65\x74\x74\x69\x6e\147\163")) . "\42\76" . __("\123\145\164\164\x69\156\147\x73", "\x74\x65\170\164\144\x6f\x6d\x61\151\x6e") . "\74\x2f\x61\76"), $Vq);
return $Vq;
}
function mo_saml_parse_expiry_date($Lb)
{
$kv = new DateTime($Lb);
$NA = $kv->getTimestamp();
return date("\x46\x20\152\x2c\x20\131", $NA);
}
function is_license_expired($h1)
{
$kv = new DateTime($h1);
$Kd = new DateTime();
if ($Kd > $kv) {
goto KHf;
}
return false;
goto bGf;
KHf:
return true;
bGf:
}
function checkPasswordPattern($o7)
{
$ks = "\57\x5e\x5b\x28\x5c\x77\x29\52\x28\134\41\134\x40\x5c\43\x5c\44\x5c\x25\x5c\x5e\134\x26\x5c\52\134\56\x5c\x2d\134\x5f\51\52\135\x2b\x24\57";
return !preg_match($ks, $o7);
}
}
new saml_mo_login();
Function Calls
None |
Stats
MD5 | 850a640aa083989182b87473bc01ba4d |
Eval Count | 0 |
Decode Time | 203 ms |