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: http://miniorange.com/ ..
Decoded Output download
<?php
/*
Plugin Name: miniOrange SSO using SAML 2.0
Plugin URI: http://miniorange.com/
Description: (Premium Multi-Site)miniOrange SAML 2.0 SSO enables user to perform Single Sign On with any SAML 2.0 enabled Identity Provider.
Version: 12.18.2
Author: miniOrange
Author URI: http://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";
class saml_mo_login
{
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"));
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"));
$Y0 = new mo_login_wid();
add_action("wp_logout", array($Y0, "mo_saml_logout"));
add_action("login_form", array($this, "mo_saml_modify_login_form"));
add_shortcode("MO_SAML_FORM", array($this, "mo_get_saml_shortcode"));
add_action("network_admin_plugin_action_links_" . plugin_basename(__FILE__), array($this, "mo_saml_plugin_action_links"));
}
function mo_login_widget_saml_options()
{
global $wpdb;
update_site_option("mo_saml_host_name", "https://login.xecurify.com");
$Ev = get_site_option("mo_saml_host_name");
$Vw = get_site_option("mo_saml_enable_cloud_broker");
$dj = get_site_option("saml_x509_certificate");
if (empty($Vw) && !empty($dj)) {
goto dA;
}
if (!empty($Vw)) {
goto uH;
}
update_site_option("mo_saml_enable_cloud_broker", "false");
uH:
goto Uv;
dA:
update_site_option("mo_saml_enable_cloud_broker", "true");
Uv:
mo_register_saml_sso();
}
function mo_saml_success_message()
{
$un = "error";
$Q0 = get_site_option("mo_saml_message");
echo "<div class='" . $un . "'> <p>" . $Q0 . "</p></div>";
}
function mo_saml_error_message()
{
$un = "updated";
$Q0 = get_site_option("mo_saml_message");
echo "<div class='" . $un . "'> <p>" . $Q0 . "</p></div>";
}
public function mo_sso_saml_deactivate()
{
global $wpdb;
$nP = $wpdb->get_col("SELECT blog_id FROM {$wpdb->blogs}");
$w1 = get_current_blog_id();
do_action("flush_cache");
foreach ($nP as $blog_id) {
switch_to_blog($blog_id);
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");
ry:
}
wO:
switch_to_blog($w1);
}
public function mo_sso_saml_activate()
{
if (is_multisite()) {
goto ss;
}
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";
die;
ss:
if (mo_saml_is_openssl_installed()) {
goto zk;
}
wp_die("PHP openssl extension is not installed or disabled,please enable it to activate the plugin.");
zk:
add_option("Activated_Plugin", "Plugin-Slug");
}
private 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()
{
wp_enqueue_style("mo_saml_admin_settings_style", plugins_url("includes/css/style_settings.css?ver=3.6.2", __FILE__));
wp_enqueue_style("mo_saml_admin_settings_phone_style", plugins_url("includes/css/phone.css", __FILE__));
wp_enqueue_style("mo_saml_wpb-fa", plugins_url("includes/css/font-awesome.min.css", __FILE__));
}
function plugin_settings_script()
{
wp_enqueue_script("mo_saml_admin_settings_script", plugins_url("includes/js/settings.js", __FILE__));
wp_enqueue_script("mo_saml_admin_settings_phone_script", plugins_url("includes/js/phone.js", __FILE__));
}
function mo_saml_activation_message()
{
$un = "updated";
$Q0 = get_option("mo_saml_message");
echo "<div class='" . $un . "'> <p>" . $Q0 . "</p></div>";
}
function miniorange_login_widget_saml_save_settings()
{
if (!current_user_can("manage_options")) {
goto xR;
}
if (!(is_admin() && get_option("Activated_Plugin") == "Plugin-Slug")) {
goto Kv;
}
delete_option("Activated_Plugin");
update_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"));
Kv:
if (!(isset($_POST["option"]) and $_POST["option"] == "login_widget_saml_save_settings")) {
goto oN;
}
if (mo_saml_is_curl_installed()) {
goto lx;
}
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;
lx:
$fY = '';
$Xu = '';
$rG = '';
$z_ = '';
$bd = '';
$XU = '';
$RC = '';
$QJ = '';
if ($this->mo_saml_check_empty_or_null($_POST["saml_identity_name"]) || $this->mo_saml_check_empty_or_null($_POST["saml_login_url"]) || $this->mo_saml_check_empty_or_null($_POST["saml_issuer"])) {
goto rY;
}
if (!preg_match("/^\w*$/", $_POST["saml_identity_name"])) {
goto YE;
}
$fY = trim($_POST["saml_identity_name"]);
$rG = trim($_POST["saml_login_url"]);
$Xu = $_POST["saml_login_binding_type"];
$z_ = $_POST["saml_logout_binding_type"];
if (!array_key_exists("saml_logout_url", $_POST)) {
goto u9;
}
$bd = trim($_POST["saml_logout_url"]);
u9:
$XU = trim($_POST["saml_issuer"]);
$RC = maybe_unserialize($_POST["saml_x509_certificate"]);
goto pT;
YE:
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;
pT:
goto qQ;
rY:
update_site_option("mo_saml_message", "All the fields are required. Please enter valid entries.");
$this->mo_saml_show_error_message();
return;
qQ:
update_site_option("saml_identity_name", $fY);
update_site_option("saml_login_binding_type", $Xu);
update_site_option("saml_login_url", $rG);
update_site_option("saml_logout_binding_type", $z_);
update_site_option("saml_logout_url", $bd);
update_site_option("saml_issuer", $XU);
if (isset($_POST["saml_request_signed"])) {
goto Vo;
}
update_site_option("saml_request_signed", "unchecked");
goto nf;
Vo:
update_site_option("saml_request_signed", "checked");
nf:
foreach ($RC as $M3 => $Vz) {
if (empty($Vz)) {
goto ZU;
}
$RC[$M3] = Utilities::sanitize_certificate($Vz);
if (@openssl_x509_read($RC[$M3])) {
goto fa;
}
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;
fa:
goto AO;
ZU:
unset($RC[$M3]);
AO:
F8:
}
vZ:
if (!empty($RC)) {
goto gn;
}
update_site_option("mo_saml_message", "Invalid certificate format : Please provide a certificate");
$this->mo_saml_show_error_message();
return;
gn:
if (isset($_POST["saml_response_signed"])) {
goto Ls;
}
update_option("saml_response_signed", "Yes");
goto KC;
Ls:
update_option("saml_response_signed", "checked");
KC:
if (isset($_POST["saml_assertion_signed"])) {
goto Aa;
}
update_option("saml_assertion_signed", "Yes");
goto qw;
Aa:
update_option("saml_assertion_signed", "checked");
qw:
update_site_option("saml_x509_certificate", $RC);
if (get_site_option("mo_saml_enable_cloud_broker") == "true") {
goto sF;
}
update_site_option("mo_saml_message", "Identity Provider details saved successfully.");
$this->mo_saml_show_success_message();
goto Tb;
sF:
$sL = new Customersaml();
$xQ = json_decode($sL->save_external_idp_config(), true);
if (isset($xQ["customerId"])) {
goto cW;
}
update_site_option("mo_saml_message", "Identity Provider details could not be saved. Please try again.");
$this->mo_saml_show_error_message();
goto Sz;
cW:
update_site_option("saml_x509_certificate", maybe_serialize(array($xQ["samlX509Certificate"])));
update_site_option("mo_saml_message", "Identity Provider details saved successfully.");
$this->mo_saml_show_success_message();
Sz:
Tb:
oN:
if (!(isset($_POST["option"]) and $_POST["option"] == "login_widget_saml_attribute_mapping")) {
goto fr;
}
if (mo_saml_is_curl_installed()) {
goto G3;
}
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;
G3:
update_site_option("saml_am_username", stripslashes($_POST["saml_am_username"]));
update_site_option("saml_am_email", stripslashes($_POST["saml_am_email"]));
update_site_option("saml_am_first_name", stripslashes($_POST["saml_am_first_name"]));
update_site_option("saml_am_last_name", stripslashes($_POST["saml_am_last_name"]));
update_site_option("saml_am_group_name", stripslashes($_POST["saml_am_group_name"]));
update_site_option("saml_am_account_matcher", stripslashes($_POST["saml_am_account_matcher"]));
update_site_option("saml_am_display_name", stripslashes($_POST["saml_am_display_name"]));
$qa = array();
$am = 0;
foreach ($_POST as $M3 => $Vz) {
if (!(strpos($M3, "mo_saml_custom_attribute_key") !== false && !empty($_POST[$M3]))) {
goto Qq;
}
$am++;
$OP = "mo_saml_custom_attribute_value_" . $am;
$qa[$Vz] = $_POST[$OP];
Qq:
oP:
}
QK:
if (empty($qa)) {
goto PB;
}
update_site_option("mo_saml_custom_attrs_mapping", $qa);
PB:
update_site_option("mo_saml_message", "Attribute Mapping details saved successfully");
$this->mo_saml_show_success_message();
fr:
if (!(isset($_POST["option"]) and $_POST["option"] == "login_widget_saml_role_mapping")) {
goto k_;
}
if (mo_saml_is_curl_installed()) {
goto xi;
}
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;
xi:
$y6 = 0;
if (isset($_POST["mo_apply_role_mapping_for_sites"]) && $_POST["mo_apply_role_mapping_for_sites"] == 0) {
goto w0;
}
if (!(isset($_POST["mo_apply_role_mapping_for_sites"]) && $_POST["mo_apply_role_mapping_for_sites"] == 1)) {
goto kG;
}
update_site_option("mo_apply_role_mapping_for_sites", 1);
$y6 = 0;
$ci = array();
update_site_option("saml_am_role_mapping", $ci);
kG:
goto Jq;
w0:
if (!$this->mo_saml_check_empty_or_null($_POST["role_mapping_site"])) {
goto Dz;
}
update_site_option("mo_saml_message", "Please select a site to save role mapping");
$this->mo_saml_show_error_message();
return;
Dz:
update_site_option("mo_apply_role_mapping_for_sites", 0);
$y6 = $_POST["role_mapping_site"];
Jq:
if (!isset($_POST["saml_am_default_user_role"])) {
goto Hd;
}
$Pj = $_POST["saml_am_default_user_role"];
Hd:
if (isset($_POST["saml_am_dont_allow_unlisted_user_role"])) {
goto gO;
}
$vk = "unchecked";
goto Nd;
gO:
$vk = "checked";
$Pj = "false";
Nd:
if (isset($_POST["mo_saml_dont_create_user_if_role_not_mapped"])) {
goto Ap;
}
$WM = "unchecked";
goto ZL;
Ap:
$WM = "checked";
$vk = "unchecked";
$Pj = "false";
ZL:
if (isset($_POST["mo_saml_keep_existing_users_role"])) {
goto Ml;
}
$uM = "unchecked";
goto bR;
Ml:
$uM = "checked";
bR:
if (!isset($_POST["saml_am_group_attr_values_superadmin"])) {
goto JI;
}
$fA = $_POST["saml_am_group_attr_values_superadmin"];
JI:
$hE = new WP_Roles();
$n5 = $hE->get_names();
$ci = get_site_option("saml_am_role_mapping");
foreach ($n5 as $ag => $v7) {
$S_ = "saml_am_group_attr_values_" . $ag;
$ci[$y6][$ag] = stripslashes($_POST[$S_]);
OC:
}
WB:
$ci[$y6]["default_role"] = $Pj;
$ci[$y6]["dont_create_user"] = $WM;
$ci[$y6]["dont_allow_unlisted_user"] = $vk;
$ci[$y6]["keep_existing_users_role"] = $uM;
update_site_option("saml_am_role_mapping", $ci);
update_site_option("mo_saml_message", "Role Mapping details saved successfully.");
update_site_option("mo_saml_super_admin_role_mapping", $fA);
$this->mo_saml_show_success_message();
k_:
if (!(isset($_POST["option"]) and $_POST["option"] == "mo_saml_subsite_selection_for_role_mapping")) {
goto t2;
}
$MA = isset($_POST["mo_apply_role_mapping_for_sites"]) ? $_POST["mo_apply_role_mapping_for_sites"] : 0;
update_site_option("mo_apply_role_mapping_for_sites", $MA);
t2:
if (!(isset($_POST["option"]) and $_POST["option"] == "mo_saml_reset_role_mapping_attributes")) {
goto vT;
}
update_site_option("mo_apply_role_mapping_for_sites", 0);
$ci = array();
update_site_option("saml_am_role_mapping", $ci);
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();
vT:
if (!(isset($_POST["option"]) and $_POST["option"] == "mo_saml_update_sp_base_url_option")) {
goto uF;
}
if (!(isset($_POST["mo_saml_sp_base_url"]) && isset($_POST["mo_saml_sp_entity_id"]))) {
goto il;
}
$tT = sanitize_text_field($_POST["mo_saml_sp_base_url"]);
$FF = sanitize_text_field($_POST["mo_saml_sp_entity_id"]);
if (!(substr($tT, -1) == "/")) {
goto nb;
}
$tT = substr($tT, 0, -1);
nb:
update_site_option("mo_saml_sp_base_url", $tT);
update_site_option("mo_saml_sp_entity_id", $FF);
il:
update_site_option("mo_saml_message", "SP Base URL updated successfully.");
$this->mo_saml_show_success_message();
uF:
if (!(isset($_POST["option"]) and $_POST["option"] == "saml_upload_metadata")) {
goto eK;
}
if (function_exists("wp_handle_upload")) {
goto Ya;
}
require_once ABSPATH . "wp-admin/includes/file.php";
Ya:
$this->upload_metadata();
eK:
if (!(isset($_POST["option"]) and $_POST["option"] == "mo_saml_relay_state_option")) {
goto DB;
}
$us = sanitize_text_field($_POST["mo_saml_relay_state"]);
update_site_option("mo_saml_relay_state", $us);
update_site_option("mo_saml_message", "Relay State updated successfully.");
$this->mo_saml_show_success_message();
DB:
if (!(isset($_POST["option"]) and $_POST["option"] == "enable_sso_for_sites_option")) {
goto Cf;
}
$dD = array();
if (!array_key_exists("enable_for_sites", $_POST)) {
goto yg;
}
$dD = $_POST["enable_for_sites"];
yg:
update_site_option("enable_saml_sso_for_sites", $dD);
update_site_option("mo_saml_message", "Sites SSO updated successfully.");
$this->mo_saml_show_success_message();
Cf:
if (!(isset($_POST["option"]) and $_POST["option"] == "saml_generate_certificate")) {
goto UB;
}
$VB = array("countryName" => $_POST["country"], "stateOrProvinceName" => $_POST["state"], "localityName" => $_POST["locality"], "organizationName" => $_POST["org"], "organizationalUnitName" => $_POST["org_unit"], "commonName" => $_POST["cn"], "emailAddress" => $_POST["email"]);
$Wq = array("digest_alg" => $_POST["hash_algorithm"], "x509_extensions" => "v3_ca", "private_key_bits" => 2048, "private_key_type" => OPENSSL_KEYTYPE_RSA, "encrypt_key" => false);
$da = CertificateUtility::generate_certificate($VB, $Wq, (int) $_POST["expiry_days"]);
$Xn = plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . "sp-certificate.crt";
$FN = plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . "sp-key.key";
$El = plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . "sp-certificate.crt.backup";
if (file_exists($El)) {
goto kg;
}
$ka = plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . "sp-key.key.backup";
copy($Xn, $El);
copy($FN, $ka);
kg:
$Ct = file_put_contents($Xn, $da["public_key"]);
$Ct = $Ct && file_put_contents($FN, $da["private_key"]);
if ($Ct) {
goto Ei;
}
update_site_option("mo_saml_message", "Error occured while generating the certificates. See PHP error logs and make sure have set write permission.");
$this->mo_saml_show_error_message();
goto nl;
Ei:
update_site_option("mo_saml_message", "New certificates generated successfully.");
$this->mo_saml_show_success_message();
nl:
UB:
if (!(isset($_POST["option"]) and $_POST["option"] == "mo_saml_register_customer")) {
goto W6;
}
if (mo_saml_is_curl_installed()) {
goto Xi;
}
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;
Xi:
$y9 = '';
$bN = '';
$VG = '';
$nb = '';
if ($this->mo_saml_check_empty_or_null($_POST["email"]) || $this->mo_saml_check_empty_or_null($_POST["password"]) || $this->mo_saml_check_empty_or_null($_POST["confirmPassword"])) {
goto KJ;
}
if (strlen($_POST["password"]) < 6 || strlen($_POST["confirmPassword"]) < 6) {
goto cz;
}
$y9 = sanitize_email($_POST["email"]);
$bN = sanitize_text_field($_POST["phone"]);
$VG = sanitize_text_field($_POST["password"]);
$nb = sanitize_text_field($_POST["confirmPassword"]);
goto kZ;
cz:
update_site_option("mo_saml_message", "Choose a password with minimum length 6.");
$this->mo_saml_show_error_message();
return;
kZ:
goto Th;
KJ:
update_site_option("mo_saml_message", "All the fields are required. Please enter valid entries.");
$this->mo_saml_show_error_message();
return;
Th:
update_site_option("mo_saml_admin_email", $y9);
update_site_option("mo_saml_admin_phone", $bN);
if (strcmp($VG, $nb) == 0) {
goto wp;
}
update_site_option("mo_saml_message", "Passwords do not match.");
delete_site_option("mo_saml_verify_customer");
$this->mo_saml_show_error_message();
goto pO;
wp:
update_site_option("mo_saml_admin_password", $VG);
$y9 = get_site_option("mo_saml_admin_email");
$kh = new CustomerSaml();
$KK = json_decode($kh->check_customer(), true);
if (strcasecmp($KK["status"], "CUSTOMER_NOT_FOUND") == 0) {
goto Mz;
}
$this->get_current_customer();
goto gR;
Mz:
$KK = json_decode($kh->send_otp_token($y9, ''), true);
if (strcasecmp($KK["status"], "SUCCESS") == 0) {
goto Le;
}
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 Dm;
Le:
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", $KK["txId"]);
update_site_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_EMAIL");
$this->mo_saml_show_success_message();
Dm:
gR:
pO:
W6:
if (!(isset($_POST["option"]) and $_POST["option"] == "mo_saml_validate_otp")) {
goto ov;
}
if (mo_saml_is_curl_installed()) {
goto iV;
}
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;
iV:
$tQ = '';
if ($this->mo_saml_check_empty_or_null($_POST["otp_token"])) {
goto OT;
}
$tQ = sanitize_text_field($_POST["otp_token"]);
goto te;
OT:
update_site_option("mo_saml_message", "Please enter a value in otp field.");
$this->mo_saml_show_error_message();
return;
te:
$kh = new CustomerSaml();
$KK = json_decode($kh->validate_otp_token(get_site_option("mo_saml_transactionId"), $tQ), true);
if (strcasecmp($KK["status"], "SUCCESS") == 0) {
goto BL;
}
update_site_option("mo_saml_message", "Invalid one time passcode. Please enter a valid otp.");
$this->mo_saml_show_error_message();
goto ce;
BL:
$this->create_customer();
ce:
ov:
if (isset($_POST["option"]) and $_POST["option"] == "mo_saml_verify_customer") {
goto Bl;
}
if (isset($_POST["option"]) and $_POST["option"] == "mo_saml_contact_us_query_option") {
goto Pq;
}
if (isset($_POST["option"]) and $_POST["option"] == "mo_saml_resend_otp_email") {
goto Mb;
}
if (isset($_POST["option"]) and $_POST["option"] == "mo_saml_resend_otp_phone") {
goto Vs;
}
if (isset($_POST["option"]) and $_POST["option"] == "mo_saml_go_back") {
goto aq;
}
if (isset($_POST["option"]) and $_POST["option"] == "mo_saml_register_with_phone_option") {
goto dK;
}
if (isset($_POST["option"]) and $_POST["option"] == "mo_saml_registered_only_access_option") {
goto tV;
}
if (isset($_POST["option"]) and $_POST["option"] == "mo_saml_subsite_access_denied_option") {
goto bZ;
}
if (isset($_POST["option"]) and $_POST["option"] == "mo_saml_force_authentication_option") {
goto kz;
}
if (isset($_POST["option"]) and $_POST["option"] == "mo_saml_enable_login_redirect_option") {
goto R6;
}
if (isset($_POST["option"]) and $_POST["option"] == "mo_saml_enable_cloud_broker") {
goto jq;
}
if (isset($_POST["option"]) and $_POST["option"] == "mo_saml_allow_wp_signin_option") {
goto KG;
}
if (!(isset($_POST["option"]) && $_POST["option"] == "mo_saml_forgot_password_form_option")) {
goto a4;
}
if (mo_saml_is_curl_installed()) {
goto Rw;
}
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;
Rw:
$y9 = get_site_option("mo_saml_admin_email");
$kh = new Customersaml();
$KK = json_decode($kh->mo_saml_forgot_password($y9), true);
if (strcasecmp($KK["status"], "SUCCESS") == 0) {
goto sh;
}
update_site_option("mo_saml_message", "An error occured while processing your request. Please Try again.");
$this->mo_saml_show_error_message();
goto on;
sh:
update_site_option("mo_saml_message", "Your password has been reset successfully. Please enter the new password sent to " . $y9 . ".");
$this->mo_saml_show_success_message();
on:
a4:
goto Zy;
KG:
if (array_key_exists("mo_saml_allow_wp_signin", $_POST)) {
goto DV;
}
$zP = "false";
goto Cc;
DV:
$zP = $_POST["mo_saml_allow_wp_signin"];
Cc:
if ($zP == "true") {
goto zI;
}
update_site_option("mo_saml_allow_wp_signin", '');
goto Ez;
zI:
update_site_option("mo_saml_allow_wp_signin", "true");
Ez:
update_site_option("mo_saml_message", "Sign In settings updated.");
$this->mo_saml_show_success_message();
Zy:
goto AR;
jq:
if (array_key_exists("mo_saml_enable_cloud_broker", $_POST)) {
goto Y_;
}
$rY = "false";
goto xI;
Y_:
$rY = $_POST["mo_saml_enable_cloud_broker"];
xI:
if ($rY == "true") {
goto Hw;
}
update_site_option("mo_saml_enable_cloud_broker", "false");
goto E5;
Hw:
update_site_option("mo_saml_enable_cloud_broker", "true");
E5:
update_site_option("mo_saml_message", "Sign in options updated.");
$this->mo_saml_show_success_message();
AR:
goto FL;
R6:
if (mo_saml_is_sp_configured()) {
goto eX;
}
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 MU;
eX:
if (array_key_exists("mo_saml_enable_login_redirect", $_POST)) {
goto Q_;
}
$rY = "false";
goto gw;
Q_:
$rY = $_POST["mo_saml_enable_login_redirect"];
gw:
if ($rY == "true") {
goto B4;
}
update_site_option("mo_saml_enable_login_redirect", '');
update_site_option("mo_saml_allow_wp_signin", '');
goto iG;
B4:
update_site_option("mo_saml_enable_login_redirect", "true");
update_site_option("mo_saml_allow_wp_signin", "true");
iG:
update_site_option("mo_saml_message", "Sign in options updated.");
$this->mo_saml_show_success_message();
MU:
FL:
goto iZ;
kz:
if (mo_saml_is_sp_configured()) {
goto Aj;
}
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 ZF;
Aj:
if (array_key_exists("mo_saml_force_authentication", $_POST)) {
goto Ib;
}
$rY = "false";
goto kB;
Ib:
$rY = $_POST["mo_saml_force_authentication"];
kB:
if ($rY == "true") {
goto UK;
}
update_site_option("mo_saml_force_authentication", '');
goto gP;
UK:
update_site_option("mo_saml_force_authentication", "true");
gP:
update_site_option("mo_saml_message", "Sign in options updated.");
$this->mo_saml_show_success_message();
ZF:
iZ:
goto uK;
bZ:
if (mo_saml_is_sp_configured()) {
goto Hs;
}
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 DC;
Hs:
if (array_key_exists("mo_saml_subsite_access_denied", $_POST)) {
goto XE;
}
$xJ = "false";
goto JM;
XE:
$xJ = $_POST["mo_saml_subsite_access_denied"];
JM:
if ($xJ == "true") {
goto JP;
}
update_site_option("mo_saml_subsite_access_denied", '');
goto BQ;
JP:
update_site_option("mo_saml_subsite_access_denied", "true");
BQ:
update_site_option("mo_saml_message", "Sign in options updated.");
$this->mo_saml_show_success_message();
DC:
uK:
goto pe;
tV:
if (mo_saml_is_sp_configured()) {
goto HO;
}
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 sz;
HO:
if (array_key_exists("mo_saml_registered_only_access", $_POST)) {
goto W4;
}
$rY = "false";
goto bE;
W4:
$rY = $_POST["mo_saml_registered_only_access"];
bE:
if ($rY == "true") {
goto oY;
}
update_site_option("mo_saml_registered_only_access", '');
goto rE;
oY:
update_site_option("mo_saml_registered_only_access", "true");
rE:
update_site_option("mo_saml_message", "Sign in options updated.");
$this->mo_saml_show_success_message();
sz:
pe:
goto Np;
dK:
if (mo_saml_is_curl_installed()) {
goto jW;
}
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;
jW:
$bN = sanitize_text_field($_POST["phone"]);
$bN = str_replace(" ", '', $bN);
$bN = str_replace("-", '', $bN);
update_site_option("mo_saml_admin_phone", $bN);
$kh = new CustomerSaml();
$KK = json_decode($kh->send_otp_token('', $bN, FALSE, TRUE), true);
if (strcasecmp($KK["status"], "SUCCESS") == 0) {
goto kr;
}
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 ym;
kr:
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", $KK["txId"]);
update_site_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_PHONE");
$this->mo_saml_show_success_message();
ym:
Np:
goto Xf;
aq:
update_site_option("mo_saml_registration_status", '');
update_site_option("mo_saml_verify_customer", '');
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");
Xf:
goto tO;
Vs:
if (mo_saml_is_curl_installed()) {
goto fC;
}
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;
fC:
$bN = get_site_option("mo_saml_admin_phone");
$kh = new CustomerSaml();
$KK = json_decode($kh->send_otp_token('', $bN, FALSE, TRUE), true);
if (strcasecmp($KK["status"], "SUCCESS") == 0) {
goto kK;
}
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 yF;
kK:
update_site_option("mo_saml_message", " A one time passcode is sent to " . $bN . " again. Please check if you got the otp and enter it here.");
update_site_option("mo_saml_transactionId", $KK["txId"]);
update_site_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_PHONE");
$this->mo_saml_show_success_message();
yF:
tO:
goto yS;
Mb:
if (mo_saml_is_curl_installed()) {
goto VJ;
}
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;
VJ:
$y9 = get_site_option("mo_saml_admin_email");
$kh = new CustomerSaml();
$KK = json_decode($kh->send_otp_token($y9, ''), true);
if (strcasecmp($KK["status"], "SUCCESS") == 0) {
goto P5;
}
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 X1;
P5:
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", $KK["txId"]);
update_site_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_EMAIL");
$this->mo_saml_show_success_message();
X1:
yS:
goto eV;
Pq:
if (mo_saml_is_curl_installed()) {
goto ft;
}
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;
ft:
$y9 = $_POST["mo_saml_contact_us_email"];
$bN = $_POST["mo_saml_contact_us_phone"];
$lm = $_POST["mo_saml_contact_us_query"];
$kh = new CustomerSaml();
if ($this->mo_saml_check_empty_or_null($y9) || $this->mo_saml_check_empty_or_null($lm)) {
goto ca;
}
$cV = $kh->submit_contact_us($y9, $bN, $lm);
if ($cV == false) {
goto N9;
}
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 ON;
N9:
update_site_option("mo_saml_message", "Your query could not be submitted. Please try again.");
$this->mo_saml_show_error_message();
ON:
goto Mx;
ca:
update_site_option("mo_saml_message", "Please fill up Email and Query fields to submit your query.");
$this->mo_saml_show_error_message();
Mx:
eV:
goto KT;
Bl:
if (mo_saml_is_curl_installed()) {
goto da;
}
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;
da:
$y9 = '';
$VG = '';
if ($this->mo_saml_check_empty_or_null($_POST["email"]) || $this->mo_saml_check_empty_or_null($_POST["password"])) {
goto sX;
}
$y9 = sanitize_email($_POST["email"]);
$VG = sanitize_text_field($_POST["password"]);
goto Z8;
sX:
update_site_option("mo_saml_message", "All the fields are required. Please enter valid entries.");
$this->mo_saml_show_error_message();
return;
Z8:
update_site_option("mo_saml_admin_email", $y9);
update_site_option("mo_saml_admin_password", $VG);
$kh = new Customersaml();
$KK = $kh->get_customer_key();
$Tm = json_decode($KK, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto Zh;
}
update_site_option("mo_saml_message", "Invalid username or password. Please try again.");
$this->mo_saml_show_error_message();
goto iq;
Zh:
update_site_option("mo_saml_admin_customer_key", $Tm["id"]);
update_site_option("mo_saml_admin_api_key", $Tm["apiKey"]);
update_site_option("mo_saml_customer_token", $Tm["token"]);
update_site_option("mo_saml_admin_phone", $Tm["phone"]);
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 Fv;
}
$this->mo_saml_show_success_message();
goto Rq;
Fv:
$M3 = get_site_option("mo_saml_customer_token");
$yJ = AESEncryption::decrypt_data(get_site_option("sml_lk"), $M3);
$tZ = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]);
$KK = json_decode($kh->mo_saml_verify_license($yJ), true);
if (strcasecmp($KK["status"], "SUCCESS") == 0) {
goto t0;
}
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 L3;
t0:
$this->mo_saml_show_success_message();
L3:
Rq:
iq:
update_site_option("mo_saml_admin_password", '');
KT:
if (!get_site_option("no_sbs")) {
goto bO;
}
$M3 = get_site_option("mo_saml_customer_token");
$Bx = AESEncryption::decrypt_data(get_site_option("no_sbs"), $M3);
if (function_exists("get_sites") && class_exists("WP_Site_Query")) {
goto fc;
}
$ON = count(wp_get_sites());
goto On;
fc:
$ON = count(get_sites());
On:
if (!($Bx < $ON)) {
goto bs;
}
if (get_site_option("license_alert_email_sent")) {
goto ch;
}
$kh = new Customersaml();
$kh->mo_saml_send_alert_email_for_license($Bx);
ch:
bs:
bO:
if (isset($_POST["option"]) && $_POST["option"] == "mo_saml_verify_license") {
goto dk;
}
if (isset($_POST["option"]) && $_POST["option"] == "mo_saml_free_trial") {
goto cE;
}
if (!(isset($_POST["option"]) && $_POST["option"] == "mo_saml_check_license")) {
goto DR;
}
$kh = new Customersaml();
$KK = json_decode($kh->check_customer_ln(), true);
if (strcasecmp($KK["status"], "SUCCESS") == 0) {
goto jh;
}
$M3 = get_site_option("mo_saml_customer_token");
$tZ = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]);
update_site_option("mo_saml_message", "You have not upgraded yet. <a href="" . $tZ . "">Click here</a> to upgrade to premium version.");
$this->mo_saml_show_error_message();
goto vY;
jh:
if (!array_key_exists("isMultiSitePluginRequested", $KK)) {
goto nF;
}
$zK = $KK["isMultiSitePluginRequested"];
nF:
if (function_exists("get_sites") && class_exists("WP_Site_Query")) {
goto MJ;
}
$ON = count(wp_get_sites());
goto mG;
MJ:
$ON = count(get_sites());
mG:
if ($zK && array_key_exists("noOfSubSites", $KK) && $ON <= $KK["noOfSubSites"]) {
goto i9;
}
$M3 = get_site_option("mo_saml_customer_token");
if (empty($Rs)) {
goto hx;
}
update_site_option("no_sbs", AESEncryption::encrypt_data($Rs, $M3));
hx:
update_site_option("site_ck_l", AESEncryption::encrypt_data("false", $M3));
$tZ = 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 nI;
i9:
$M3 = get_site_option("mo_saml_customer_token");
$Rs = $KK["noOfSubSites"];
update_site_option("site_ck_l", AESEncryption::encrypt_data("true", $M3));
update_site_option("no_sbs", AESEncryption::encrypt_data($Rs, $M3));
$tZ = 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();
nI:
vY:
DR:
goto mc;
cE:
if (decryptSamlElement()) {
goto Ew;
}
$yJ = postResponse();
$kh = new Customersaml();
$KK = json_decode($kh->mo_saml_verify_license($yJ), true);
if (strcasecmp($KK["status"], "SUCCESS") == 0) {
goto Wz;
}
if (strcasecmp($KK["status"], "FAILED") == 0) {
goto Dt;
}
update_site_option("mo_saml_message", "An error occured while processing your request. Please Try again.");
$this->mo_saml_show_error_message();
goto Lc;
Dt:
update_site_option("mo_saml_message", "There was an error activating your TRIAL version. Please contact [email protected] for getting new license for trial version.");
$this->mo_saml_show_error_message();
Lc:
goto Gm;
Wz:
$M3 = get_site_option("mo_saml_customer_token");
$M3 = get_site_option("mo_saml_customer_token");
update_site_option("t_site_status", AESEncryption::encrypt_data("true", $M3));
update_site_option("mo_saml_message", "Your 5 days TRIAL is activated. You can now setup the plugin.");
$this->mo_saml_show_success_message();
Gm:
goto H9;
Ew:
update_site_option("mo_saml_message", "There was an error activating your TRIAL version. Either your trial period is expired or you are using wrong trial version. Please contact [email protected] for getting new license for trial version.");
$this->mo_saml_show_error_message();
H9:
mc:
goto of;
dk:
if (!$this->mo_saml_check_empty_or_null($_POST["saml_license_key"])) {
goto bQ;
}
update_site_option("mo_saml_message", "All the fields are required. Please enter valid license key.");
$this->mo_saml_show_error_message();
return;
bQ:
$yJ = trim($_POST["saml_license_key"]);
$kh = new Customersaml();
$KK = json_decode($kh->check_customer_ln(), true);
$tZ = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]);
if (strcasecmp($KK["status"], "SUCCESS") == 0) {
goto Qj;
}
$M3 = get_site_option("mo_saml_customer_token");
$tZ = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]);
update_site_option("mo_saml_message", "You have not upgraded yet. <a href="" . $tZ . "">Click here</a> to upgrade to premium version.");
$this->mo_saml_show_error_message();
goto U6;
Qj:
if (!array_key_exists("isMultiSitePluginRequested", $KK)) {
goto yi;
}
$zK = $KK["isMultiSitePluginRequested"];
yi:
if (function_exists("get_sites") && class_exists("WP_Site_Query")) {
goto Lw;
}
$ON = count(wp_get_sites());
goto Mj;
Lw:
$ON = count(get_sites());
Mj:
if ($zK && array_key_exists("noOfSubSites", $KK) && $ON <= $KK["noOfSubSites"]) {
goto MZ;
}
$Bx = $KK["noOfSubSites"];
$M3 = get_site_option("mo_saml_customer_token");
update_site_option("no_sbs", AESEncryption::encrypt_data($Bx, $M3));
update_site_option("sml_lk", AESEncryption::encrypt_data($yJ, $M3));
update_site_option("site_ck_l", AESEncryption::encrypt_data("true", $M3));
update_site_option("mo_saml_message", "You have purchased the license for <b>" . $KK["noOfSubSites"] . " sites</b>. But you have <b>" . $ON . " </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 JW;
MZ:
$Bx = $KK["noOfSubSites"];
$M3 = get_site_option("mo_saml_customer_token");
if (!array_key_exists("noOfUsers", $KK)) {
goto sA;
}
$RU = $KK["noOfUsers"];
sA:
$KK = json_decode($kh->mo_saml_verify_license($yJ), true);
if (strcasecmp($KK["status"], "SUCCESS") == 0) {
goto xn;
}
if (strcasecmp($KK["status"], "FAILED") == 0) {
goto bu;
}
update_site_option("mo_saml_message", "An error occured while processing your request. Please Try again.");
$this->mo_saml_show_error_message();
goto qH;
bu:
if (strcasecmp($KK["message"], "Code has Expired") == 0) {
goto si;
}
update_site_option("mo_saml_message", "You have entered an invalid license key. Please enter a valid license key.");
goto Q5;
si:
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.");
Q5:
$this->mo_saml_show_error_message();
qH:
goto mU;
xn:
if (!array_key_exists("noOfUsers", $KK)) {
goto It;
}
update_site_option("mo_saml_usr_lmt", AESEncryption::encrypt_data($RU, $M3));
It:
update_site_option("sml_lk", AESEncryption::encrypt_data($yJ, $M3));
update_site_option("no_sbs", AESEncryption::encrypt_data($Bx, $M3));
update_site_option("site_ck_l", AESEncryption::encrypt_data("true", $M3));
update_site_option("t_site_status", AESEncryption::encrypt_data("false", $M3));
update_site_option("mo_saml_message", "Your license is verified. You can now setup the plugin.");
$M3 = get_site_option("mo_saml_customer_token");
update_site_option("t_site_status", AESEncryption::encrypt_data("false", $M3));
$this->mo_saml_show_success_message();
mU:
JW:
U6:
of:
xR:
if (mo_saml_is_trial_active()) {
goto Na;
}
if (!site_check()) {
goto Ry;
}
goto Vt;
Na:
if (!decryptSamlElement()) {
goto cN;
}
$M3 = get_site_option("mo_saml_customer_token");
update_site_option("t_site_status", AESEncryption::encrypt_data("false", $M3));
cN:
goto Vt;
Ry:
delete_site_option("mo_saml_enable_login_redirect");
delete_site_option("mo_saml_allow_wp_signin");
delete_site_option("mo_saml_registered_only_access");
delete_site_option("mo_saml_force_authentication");
Vt:
}
function create_customer()
{
$kh = new CustomerSaml();
$Tm = json_decode($kh->create_customer(), true);
if (strcasecmp($Tm["status"], "CUSTOMER_USERNAME_ALREADY_EXISTS") == 0) {
goto Vb;
}
if (!(strcasecmp($Tm["status"], "SUCCESS") == 0)) {
goto Rt;
}
update_site_option("mo_saml_admin_customer_key", $Tm["id"]);
update_site_option("mo_saml_admin_api_key", $Tm["apiKey"]);
update_site_option("mo_saml_customer_token", $Tm["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();
Rt:
goto jL;
Vb:
$this->get_current_customer();
jL:
update_site_option("mo_saml_admin_password", '');
}
function get_current_customer()
{
$kh = new CustomerSaml();
$KK = $kh->get_customer_key();
$Tm = json_decode($KK, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto MW;
}
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 tf;
MW:
update_site_option("mo_saml_admin_customer_key", $Tm["id"]);
update_site_option("mo_saml_admin_api_key", $Tm["apiKey"]);
update_site_option("mo_saml_customer_token", $Tm["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();
tf:
}
public function mo_saml_check_empty_or_null($Vz)
{
if (!(!isset($Vz) || empty($Vz))) {
goto KU;
}
return true;
KU:
return false;
}
function miniorange_sso_menu()
{
$eJ = 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");
}
function mo_saml_redirect_for_authentication($us)
{
if (!mo_saml_is_customer_license_key_verified()) {
goto xZ;
}
if (get_site_option("mo_saml_enable_cloud_broker") == "false") {
goto Lj;
}
$T0 = get_site_option("mo_saml_host_name") . "/moas/rest/saml/request?id=" . get_site_option("mo_saml_admin_customer_key") . "&returnurl=" . urlencode(network_site_url() . "/?option=readsamllogin&redirect_to=" . urlencode($us));
header("Location: " . $T0);
die;
goto FO;
Lj:
if (!(mo_saml_is_sp_configured() && !is_user_logged_in())) {
goto PD;
}
$tT = get_site_option("mo_saml_sp_base_url");
if (!empty($tT)) {
goto VH;
}
$tT = network_site_url();
VH:
if (!(substr($tT, -1) == "/")) {
goto xl;
}
$tT = substr($tT, 0, -1);
xl:
$uW = $us;
if (!empty($uW)) {
goto zj;
}
$uW = site_url() . "/";
zj:
$mb = get_site_option("saml_login_url");
$U4 = get_site_option("saml_login_binding_type");
$k2 = get_site_option("mo_saml_force_authentication");
$iS = $tT . "/";
$FF = get_site_option("mo_saml_sp_entity_id");
if (!empty($FF)) {
goto cy;
}
$FF = $tT . "/wp-content/plugins/miniorange-saml-20-single-sign-on/";
cy:
$Dg = Utilities::createAuthnRequest($iS, $FF, $mb, $k2, $U4);
if (empty($U4) || $U4 == "HTTP-Redirect") {
goto QO;
}
$sB = plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . "sp-key.key";
$oM = plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . "sp-certificate.crt";
$NK = Utilities::signXML($Dg, $oM, $sB, "NameIDPolicy");
Utilities::postSAMLRequest($mb, $NK, $uW);
goto Rd;
QO:
$Dg = "SAMLRequest=" . $Dg . "&RelayState=" . urlencode($uW) . "&SigAlg=" . urlencode(XMLSecurityKey::RSA_SHA256);
$jk = array("type" => "private");
$M3 = new XMLSecurityKey(XMLSecurityKey::RSA_SHA256, $jk);
$t3 = plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . "sp-key.key";
$M3->loadKey($t3, TRUE);
$eT = new XMLSecurityDSig();
$Gw = $M3->signData($Dg);
$Gw = base64_encode($Gw);
$p9 = $mb;
if (strpos($mb, "?") !== false) {
goto cn;
}
$p9 .= "?";
goto sn;
cn:
$p9 .= "&";
sn:
$p9 .= $Dg . "&Signature=" . urlencode($Gw);
header("Location: " . $p9);
die;
Rd:
PD:
FO:
xZ:
}
function mo_saml_authenticate()
{
$Ni = '';
if (!isset($_REQUEST["redirect_to"])) {
goto r7;
}
$Ni = $_REQUEST["redirect_to"];
r7:
if (!is_user_logged_in()) {
goto SG;
}
if (!empty($Ni)) {
goto I0;
}
header("Location: " . network_site_url());
goto R8;
I0:
header("Location: " . $Ni);
R8:
die;
SG:
global $blog_id;
$UF = get_site_option("enable_saml_sso_for_sites");
if (!(get_site_option("mo_saml_enable_login_redirect") == "true" && (empty($UF) || !empty($UF) && in_array($blog_id, $UF)))) {
goto DU;
}
if (isset($_GET["loggedout"]) && $_GET["loggedout"] == "true") {
goto dX;
}
if (get_site_option("mo_saml_allow_wp_signin") == "true") {
goto JA;
}
goto Ph;
dX:
header("Location: " . network_site_url());
die;
goto Ph;
JA:
if (isset($_GET["saml_sso"]) && $_GET["saml_sso"] == "false" || isset($_POST["saml_sso"]) && $_POST["saml_sso"] == "false") {
goto RT;
}
if (isset($_REQUEST["redirect_to"])) {
goto o0;
}
goto YG;
RT:
return;
goto YG;
o0:
$Ni = $_REQUEST["redirect_to"];
if (!(strpos($Ni, "wp-admin") !== false && strpos($Ni, "saml_sso=false") !== false)) {
goto w5;
}
return;
w5:
YG:
Ph:
$this->mo_saml_redirect_for_authentication($Ni);
DU:
}
function mo_saml_auto_redirect()
{
if (!current_user_can("read")) {
goto Nf;
}
return;
Nf:
global $blog_id;
$UF = get_site_option("enable_saml_sso_for_sites");
if (is_user_logged_in() && get_site_option("mo_saml_subsite_access_denied")) {
goto y7;
}
if (!(get_site_option("mo_saml_registered_only_access") == "true" && (empty($UF) || !empty($UF) && in_array($blog_id, $UF)))) {
goto Y6;
}
$Mx = $_SERVER["HTTP_HOST"];
if (!(substr($Mx, -1) == "/")) {
goto Eu;
}
$Mx = substr($Mx, 0, -1);
Eu:
$lw = $_SERVER["REQUEST_URI"];
if (!(substr($lw, 0, 1) == "/")) {
goto vW;
}
$lw = substr($lw, 1);
vW:
$us = "http" . (isset($_SERVER["HTTPS"]) ? "s" : '') . "://" . $Mx . "/" . $lw;
$this->mo_saml_redirect_for_authentication($us);
Y6:
goto Jn;
y7:
global $current_user;
if (is_user_member_of_blog($current_user->ID)) {
goto nC;
}
$this->mo_saml_admin_page_access_denied();
nC:
Jn:
}
function mo_saml_modify_login_form()
{
echo "<input type="hidden" name="saml_sso" value="false">" . "
";
}
function mo_get_saml_shortcode()
{
if (!is_user_logged_in()) {
goto HX;
}
$Wk = "Hello, " . wp_get_current_user()->display_name . " | <a href=" . wp_logout_url(saml_get_current_page_url()) . ">Logout</a>";
goto Rs;
HX:
if (mo_saml_is_sp_configured() && mo_saml_is_customer_license_key_verified()) {
goto dj;
}
$Wk = "Please configure the miniOrange SAML Plugin first.";
goto LJ;
dj:
$Ni = urlencode(saml_get_current_page_url());
if (get_site_option("mo_saml_enable_cloud_broker") == "false") {
goto Kr;
}
$Wk = "<a href=" . get_site_option("mo_saml_host_name") . "/moas/rest/saml/request?id=" . get_site_option("mo_saml_admin_customer_key") . "&returnurl=" . urlencode(site_url() . "/?option=readsamllogin") . " />Login with " . get_site_option("saml_identity_name") . "</a>";
goto vL;
Kr:
$Wk = "<a href='" . site_url() . "/?option=saml_user_login&redirect_to={$Ni}' >Login with " . get_site_option("saml_identity_name") . ".</a>";
vL:
LJ:
Rs:
return $Wk;
}
function upload_metadata()
{
if (!(isset($_FILES["metadata_file"]) || isset($_POST["metadata_url"]))) {
goto jt;
}
if (!empty($_FILES["metadata_file"]["tmp_name"])) {
goto n5;
}
$tZ = $_POST["metadata_url"];
$oU = curl_init();
curl_setopt($oU, CURLOPT_URL, $tZ);
curl_setopt($oU, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($oU, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($oU, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($oU, CURLOPT_SSL_VERIFYHOST, false);
$i5 = curl_exec($oU);
curl_close($oU);
goto D2;
n5:
$i5 = @file_get_contents($_FILES["metadata_file"]["tmp_name"]);
D2:
$CZ = set_error_handler(array($this, "handleXmlError"));
$UO = new DOMDocument();
$UO->loadXML($i5);
restore_error_handler();
if (!empty($UO->firstChild)) {
goto dL;
}
if (isset($_POST["upload_metadata"])) {
goto Ps;
}
update_site_option("mo_saml_message", "Please provide a valid metadata URL.");
goto pt;
Ps:
update_site_option("mo_saml_message", "Please provide a valid metadata file.");
pt:
$this->mo_saml_show_error_message();
goto iy;
dL:
$D_ = new MetadataReader($UO);
foreach ($D_->getIdentityProviders() as $M3 => $Kb) {
$fY = $_POST["saml_identity_provider_name"];
$Xu = $Kb->getBindingLogin();
if ($Xu == "HttpRedirect") {
goto kT;
}
$rG = $Kb->getLoginURL("HTTP-POST");
goto gX;
kT:
$rG = $Kb->getLoginURL("HTTP-Redirect");
gX:
$z_ = $Kb->getBindingLogout();
if ($z_ == "HttpRedirect") {
goto lp;
}
$bd = $Kb->getLogoutURL("HTTP-POST");
goto AG;
lp:
$bd = $Kb->getLogoutURL("HTTP-Redirect");
AG:
$XU = $Kb->getEntityID();
$RC = $Kb->getSigningCertificate();
update_site_option("saml_identity_name", $fY);
update_site_option("saml_login_binding_type", $Xu);
update_site_option("saml_login_url", $rG);
update_site_option("saml_logout_binding_type", $z_);
update_site_option("saml_logout_url", $bd);
update_site_option("saml_issuer", $XU);
$RC = is_array($RC) ? $RC : array(0 => $RC);
$RC;
foreach ($RC as $M3 => $Vz) {
$RC[$M3] = Utilities::sanitize_certificate($Vz);
E2:
}
sW:
update_site_option("saml_x509_certificate", $RC);
goto vV;
yQ:
}
vV:
update_site_option("mo_saml_message", "Identity Provider details saved successfully.");
$this->mo_saml_show_success_message();
iy:
jt:
}
function handleXmlError($B5, $hq, $Gr, $Sn)
{
if ($B5 == E_WARNING && substr_count($hq, "DOMDocument::loadXML()") > 0) {
goto Eh;
}
return false;
goto ME;
Eh:
return;
ME:
}
function mo_saml_admin_page_access_denied()
{
$BK = get_blogs_of_user(get_current_user_id());
if (!wp_list_filter($BK, array("userblog_id" => get_current_blog_id()))) {
goto Of;
}
return;
Of:
$YP = get_bloginfo("name");
if (!empty($BK)) {
goto jd;
}
$yo = "You attempted to access the " . $YP . " site, but you do not currently have privileges on this site. If you believe you should be able to access the " . $YP . " site, please contact your network administrator.";
mo_saml_subsite_access_denied_page($yo);
die;
jd:
$yo = "<p>You attempted to access the " . $YP . " site, but you do not currently have privileges on this site. If you believe you should be able to access the " . $YP . " site, please contact your network administrator.</p>";
$yo .= "<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>";
$yo .= "<h3>Your Sites</h3>";
$yo .= "<table>";
foreach ($BK as $hH) {
$yo .= "<tr>";
$yo .= "<td>" . $hH->blogname . "</td>";
$yo .= "<td><a href="" . esc_url(get_admin_url($hH->userblog_id)) . "">Visit Dashboard</a> | <a href="" . esc_url(get_home_url($hH->userblog_id)) . "">View Site</a></td>";
$yo .= "</tr>";
Hf:
}
I6:
$yo .= "</table>";
mo_saml_subsite_access_denied_page($yo);
die;
}
function mo_saml_plugin_action_links($m3)
{
$m3 = array_merge(array("<a href="" . esc_url(network_admin_url("admin.php?page=mo_saml_settings")) . "">" . __("Settings", "textdomain") . "</a>"), $m3);
return $m3;
}
}
new saml_mo_login();
?>
Did this file decode correctly?
Original Code
<?php
/*
Plugin Name: miniOrange SSO using SAML 2.0
Plugin URI: http://miniorange.com/
Description: (Premium Multi-Site)miniOrange SAML 2.0 SSO enables user to perform Single Sign On with any SAML 2.0 enabled Identity Provider.
Version: 12.18.2
Author: miniOrange
Author URI: http://miniorange.com/
*/
include_once dirname(__FILE__) . "\x2f\155\157\137\x6c\x6f\x67\x69\156\x5f\x73\141\x6d\154\x5f\163\x73\x6f\x5f\167\151\144\x67\145\x74\56\160\150\x70";
require "\x6d\x6f\55\x73\x61\155\x6c\x2d\143\x6c\141\x73\x73\55\x63\x75\x73\x74\157\155\x65\162\56\x70\x68\x70";
require "\x6d\157\137\x73\x61\155\154\137\x73\145\164\164\151\156\147\163\137\x70\x61\147\x65\56\x70\x68\x70";
require "\x4d\x65\164\x61\144\141\164\x61\122\x65\141\x64\x65\162\x2e\x70\x68\160";
require "\143\145\x72\x74\x69\146\x69\143\x61\164\x65\x5f\165\164\x69\x6c\x69\164\171\x2e\160\x68\x70";
require "\155\x6f\x2d\x73\141\155\x6c\x2d\163\x75\x62\x73\151\164\145\x2d\141\x63\143\145\163\163\x2d\144\x65\156\x69\x65\x64\x2d\x70\x61\x67\x65\x2e\x70\x68\x70";
class saml_mo_login
{
function __construct()
{
add_site_option("\155\157\x5f\141\x70\160\x6c\171\x5f\162\x6f\x6c\145\137\x6d\x61\x70\160\151\x6e\x67\x5f\146\157\162\x5f\163\x69\164\145\163", 0);
add_action("\x6e\145\x74\x77\157\162\153\x5f\x61\x64\x6d\151\156\x5f\155\145\156\x75", array($this, "\155\x69\x6e\x69\157\162\141\156\147\x65\137\x73\163\157\x5f\155\145\156\165"));
add_action("\x61\144\155\151\x6e\x5f\x69\156\x69\164", array($this, "\x6d\x69\x6e\151\x6f\x72\x61\156\x67\x65\x5f\x6c\x6f\147\x69\x6e\137\167\151\x64\147\x65\x74\x5f\x73\141\155\154\137\163\141\166\145\137\x73\145\x74\164\151\156\x67\163"));
add_action("\x61\x64\x6d\151\156\137\145\156\161\165\x65\165\x65\x5f\x73\143\x72\151\x70\x74\163", array($this, "\160\154\x75\x67\x69\x6e\137\163\x65\x74\x74\151\156\147\x73\137\x73\164\171\154\145"));
register_deactivation_hook(__FILE__, array($this, "\x6d\157\x5f\x73\163\x6f\137\163\141\x6d\154\x5f\x64\145\x61\x63\164\151\x76\x61\x74\145"));
register_activation_hook(__FILE__, array($this, "\155\157\137\163\x73\157\137\163\x61\x6d\x6c\137\x61\x63\164\x69\x76\x61\164\x65"));
add_action("\141\x64\x6d\151\x6e\x5f\x65\x6e\x71\x75\145\x75\x65\137\x73\x63\162\151\160\x74\x73", array($this, "\x70\154\x75\x67\151\156\x5f\x73\x65\164\x74\151\156\x67\163\x5f\x73\143\x72\x69\x70\164"));
remove_action("\156\145\x74\x77\157\x72\153\137\x61\x64\x6d\x69\x6e\x5f\x6e\x6f\x74\x69\143\145\163", array($this, "\155\x6f\137\x73\x61\x6d\x6c\137\x73\x75\143\x63\x65\x73\x73\137\x6d\x65\x73\163\x61\147\145"));
remove_action("\156\x65\164\167\157\x72\153\x5f\x61\144\x6d\x69\156\x5f\x6e\x6f\164\x69\143\145\x73", array($this, "\x6d\157\x5f\163\141\x6d\154\x5f\145\162\x72\157\x72\137\155\x65\x73\x73\141\147\x65"));
add_action("\167\x70\x5f\x61\165\x74\x68\x65\156\x74\x69\143\x61\x74\x65", array($this, "\155\157\x5f\163\x61\x6d\x6c\137\141\165\x74\150\x65\156\x74\x69\143\x61\164\145"));
add_action("\167\x70", array($this, "\x6d\157\x5f\163\141\155\154\x5f\x61\165\x74\157\x5f\x72\x65\144\151\x72\145\x63\x74"));
$Y0 = new mo_login_wid();
add_action("\167\160\137\154\157\x67\x6f\x75\164", array($Y0, "\155\x6f\x5f\163\141\x6d\x6c\137\x6c\157\147\157\165\x74"));
add_action("\154\157\x67\151\x6e\x5f\x66\157\x72\155", array($this, "\x6d\157\x5f\x73\141\155\x6c\x5f\x6d\157\144\151\146\x79\x5f\x6c\157\147\151\156\x5f\146\157\162\155"));
add_shortcode("\115\117\137\123\101\115\x4c\x5f\106\x4f\122\x4d", array($this, "\155\x6f\x5f\x67\x65\164\137\x73\x61\155\x6c\x5f\x73\x68\x6f\x72\164\x63\157\144\145"));
add_action("\156\145\x74\x77\x6f\162\153\137\x61\x64\x6d\x69\x6e\137\160\x6c\165\147\x69\x6e\137\x61\x63\164\151\x6f\x6e\137\x6c\151\156\153\163\137" . plugin_basename(__FILE__), array($this, "\x6d\x6f\137\163\141\x6d\154\x5f\160\154\165\x67\x69\156\137\x61\143\x74\x69\157\x6e\137\x6c\151\156\x6b\x73"));
}
function mo_login_widget_saml_options()
{
global $wpdb;
update_site_option("\x6d\x6f\137\x73\x61\x6d\154\137\x68\x6f\x73\164\x5f\156\141\x6d\x65", "https://login.xecurify.com");
$Ev = get_site_option("\155\157\137\163\141\x6d\x6c\137\x68\x6f\x73\x74\x5f\156\141\x6d\145");
$Vw = get_site_option("\x6d\x6f\137\x73\x61\155\x6c\x5f\145\x6e\141\x62\154\x65\x5f\143\x6c\x6f\165\x64\x5f\x62\162\x6f\153\x65\x72");
$dj = get_site_option("\x73\141\155\154\x5f\170\x35\60\71\x5f\x63\145\162\164\151\146\151\143\x61\x74\145");
if (empty($Vw) && !empty($dj)) {
goto dA;
}
if (!empty($Vw)) {
goto uH;
}
update_site_option("\x6d\x6f\137\x73\141\155\154\x5f\x65\x6e\141\x62\x6c\x65\137\x63\x6c\x6f\x75\x64\x5f\142\x72\157\x6b\x65\162", "\x66\x61\x6c\x73\145");
uH:
goto Uv;
dA:
update_site_option("\x6d\157\137\163\141\x6d\x6c\x5f\x65\156\141\x62\x6c\x65\x5f\x63\x6c\x6f\165\144\137\x62\x72\x6f\153\145\x72", "\x74\162\x75\x65");
Uv:
mo_register_saml_sso();
}
function mo_saml_success_message()
{
$un = "\x65\x72\x72\157\162";
$Q0 = get_site_option("\155\157\137\x73\x61\155\154\x5f\x6d\145\x73\163\x61\147\145");
echo "\74\144\x69\166\40\x63\154\x61\x73\x73\75\x27" . $un . "\x27\76\x20\x3c\x70\x3e" . $Q0 . "\x3c\57\160\76\74\x2f\144\x69\166\76";
}
function mo_saml_error_message()
{
$un = "\165\x70\x64\x61\x74\x65\144";
$Q0 = get_site_option("\x6d\x6f\x5f\x73\141\x6d\154\137\x6d\x65\163\x73\141\147\x65");
echo "\x3c\144\x69\x76\x20\x63\154\x61\163\x73\x3d\47" . $un . "\47\76\x20\74\160\76" . $Q0 . "\74\x2f\x70\x3e\74\x2f\x64\x69\x76\76";
}
public function mo_sso_saml_deactivate()
{
global $wpdb;
$nP = $wpdb->get_col("\x53\105\x4c\105\x43\x54\x20\x62\154\157\147\137\151\144\x20\106\x52\x4f\x4d\40{$wpdb->blogs}");
$w1 = get_current_blog_id();
do_action("\146\x6c\165\x73\150\137\143\141\x63\x68\x65");
foreach ($nP as $blog_id) {
switch_to_blog($blog_id);
delete_site_option("\x6d\157\x5f\x73\141\x6d\x6c\x5f\x68\157\163\x74\x5f\156\x61\155\x65");
delete_site_option("\155\157\x5f\x73\141\x6d\x6c\x5f\156\145\x77\x5f\x72\145\147\x69\x73\164\x72\x61\164\x69\x6f\x6e");
delete_site_option("\x6d\157\137\163\x61\x6d\x6c\x5f\x61\144\155\151\156\137\x70\x68\x6f\156\x65");
delete_site_option("\x6d\157\x5f\163\141\x6d\154\x5f\141\144\x6d\x69\156\137\x70\x61\x73\x73\x77\x6f\x72\144");
delete_site_option("\x6d\157\137\163\141\155\x6c\137\x76\145\162\151\146\171\x5f\x63\x75\x73\164\x6f\155\x65\162");
delete_site_option("\155\x6f\137\x73\x61\x6d\x6c\x5f\x61\144\155\x69\x6e\137\x63\x75\163\x74\x6f\x6d\145\x72\x5f\x6b\145\x79");
delete_site_option("\x6d\x6f\x5f\163\141\155\154\137\141\144\155\151\x6e\137\x61\160\151\137\153\x65\171");
delete_site_option("\x6d\x6f\x5f\x73\141\155\154\137\143\x75\163\x74\x6f\x6d\145\162\137\x74\157\x6b\145\x6e");
delete_site_option("\x6d\157\137\x73\x61\x6d\x6c\137\x6d\x65\163\x73\141\147\145");
delete_site_option("\x6d\x6f\137\x73\x61\155\154\x5f\x72\x65\147\151\163\164\162\x61\x74\151\x6f\156\137\x73\x74\141\x74\x75\x73");
delete_site_option("\155\157\137\x73\x61\155\x6c\x5f\x69\x64\x70\137\x63\157\156\x66\151\147\137\143\x6f\155\160\154\145\x74\145");
delete_site_option("\155\x6f\x5f\163\x61\155\154\137\x74\162\x61\156\163\x61\143\164\x69\157\156\111\144");
ry:
}
wO:
switch_to_blog($w1);
}
public function mo_sso_saml_activate()
{
if (is_multisite()) {
goto ss;
}
echo "\125\156\141\x62\x6c\x65\40\x74\x6f\40\141\143\164\x69\x76\141\164\x65\x20\x74\x68\145\x20\x70\x6c\165\x67\x69\156\56\x20\111\x74\40\163\145\x65\155\163\x20\154\151\153\145\40\x79\x6f\x75\40\141\162\x65\x20\164\x72\171\x69\156\147\40\164\x6f\40\151\156\x73\x74\x61\154\154\x20\164\x68\145\x20\x3c\x62\x3e\155\165\x6c\164\151\x73\151\x74\145\40\160\154\x75\x67\x69\x6e\x3c\x2f\142\x3e\x20\x69\156\x20\x74\x68\145\40\x73\151\156\x67\x6c\145\55\x73\151\164\145\x20\x65\156\166\x69\162\x6f\156\155\145\156\x74\x2e\x20\120\x6c\x65\141\x73\145\40\x63\157\156\x74\x61\143\164\x20\74\x62\x3e\x69\x6e\x66\157\x40\x6d\151\x6e\x69\x6f\x72\x61\x6e\147\145\x2e\x63\x6f\155\74\57\142\x3e\40\146\157\162\40\155\x6f\162\145\40\x64\x65\x74\141\x69\x6c\163";
die;
ss:
if (mo_saml_is_openssl_installed()) {
goto zk;
}
wp_die("\x50\110\120\x20\157\160\x65\156\x73\x73\154\x20\145\x78\164\145\x6e\163\151\x6f\x6e\40\x69\x73\x20\156\157\164\x20\151\x6e\x73\164\x61\x6c\154\145\x64\40\x6f\x72\x20\x64\151\x73\x61\142\154\145\144\x2c\x70\x6c\x65\141\x73\x65\40\145\156\141\142\x6c\145\40\x69\x74\40\164\x6f\x20\141\x63\164\151\x76\141\x74\145\x20\x74\150\x65\x20\160\x6c\165\147\x69\x6e\x2e");
zk:
add_option("\x41\143\x74\151\166\141\x74\x65\144\137\x50\x6c\x75\x67\151\156", "\120\154\x75\x67\151\x6e\55\123\x6c\x75\x67");
}
private function mo_saml_show_success_message()
{
remove_action("\156\x65\164\x77\x6f\162\153\137\x61\144\155\151\156\137\156\157\x74\151\143\145\163", array($this, "\155\157\137\163\141\155\x6c\137\x73\x75\143\143\x65\x73\x73\137\155\145\163\x73\x61\147\145"));
add_action("\x6e\x65\x74\x77\157\162\x6b\137\x61\144\x6d\151\x6e\137\156\x6f\164\x69\143\x65\x73", array($this, "\x6d\x6f\x5f\x73\141\155\154\137\145\x72\x72\157\x72\x5f\155\145\163\x73\x61\x67\145"));
}
function mo_saml_show_error_message()
{
remove_action("\x6e\145\x74\x77\157\162\x6b\x5f\141\144\155\151\156\137\x6e\x6f\x74\x69\143\145\163", array($this, "\x6d\157\137\x73\141\x6d\154\137\x65\x72\162\x6f\x72\137\x6d\x65\163\x73\x61\x67\x65"));
add_action("\156\x65\x74\167\157\x72\153\137\141\144\155\x69\156\x5f\x6e\157\x74\x69\x63\x65\x73", array($this, "\x6d\157\137\163\141\155\154\x5f\x73\165\x63\143\145\x73\x73\x5f\155\145\163\163\141\147\x65"));
}
function plugin_settings_style()
{
wp_enqueue_style("\155\157\137\163\x61\155\x6c\137\141\144\155\x69\x6e\x5f\163\145\164\x74\x69\x6e\147\x73\x5f\163\164\171\154\x65", plugins_url("\x69\156\x63\154\x75\x64\x65\163\57\143\163\163\x2f\163\164\x79\x6c\145\x5f\163\145\164\x74\151\x6e\147\x73\x2e\x63\x73\x73\77\x76\x65\x72\75\x33\x2e\x36\56\x32", __FILE__));
wp_enqueue_style("\x6d\157\137\163\x61\155\154\x5f\x61\x64\155\x69\x6e\x5f\163\145\x74\164\x69\156\147\x73\137\160\x68\157\x6e\145\137\163\164\x79\154\x65", plugins_url("\x69\156\143\x6c\x75\x64\x65\163\57\143\x73\163\x2f\x70\150\x6f\x6e\145\x2e\x63\x73\163", __FILE__));
wp_enqueue_style("\155\157\x5f\x73\141\155\x6c\137\167\x70\x62\x2d\x66\x61", plugins_url("\151\156\x63\154\165\x64\145\x73\x2f\x63\163\163\57\x66\157\x6e\164\55\x61\167\x65\x73\157\155\145\56\x6d\x69\156\56\143\163\163", __FILE__));
}
function plugin_settings_script()
{
wp_enqueue_script("\155\157\x5f\163\141\x6d\x6c\x5f\x61\144\155\x69\156\x5f\x73\145\164\x74\151\x6e\147\x73\137\163\143\162\x69\160\164", plugins_url("\x69\156\143\154\165\144\x65\x73\57\x6a\163\57\x73\145\164\x74\151\x6e\x67\x73\56\152\x73", __FILE__));
wp_enqueue_script("\155\x6f\137\163\x61\x6d\x6c\x5f\x61\144\x6d\x69\156\x5f\163\x65\x74\x74\x69\156\x67\x73\137\160\x68\x6f\156\145\x5f\x73\143\x72\x69\x70\164", plugins_url("\151\x6e\143\154\165\x64\x65\x73\57\152\x73\x2f\160\x68\x6f\x6e\145\x2e\152\x73", __FILE__));
}
function mo_saml_activation_message()
{
$un = "\x75\160\x64\141\x74\x65\x64";
$Q0 = get_option("\155\x6f\x5f\163\141\x6d\154\137\x6d\x65\x73\163\141\x67\145");
echo "\x3c\x64\151\166\40\143\154\x61\163\x73\75\x27" . $un . "\47\x3e\40\x3c\160\x3e" . $Q0 . "\74\57\x70\76\x3c\57\144\151\166\x3e";
}
function miniorange_login_widget_saml_save_settings()
{
if (!current_user_can("\155\141\156\x61\x67\x65\x5f\x6f\x70\x74\151\157\x6e\x73")) {
goto xR;
}
if (!(is_admin() && get_option("\x41\143\x74\x69\x76\141\164\x65\x64\x5f\x50\x6c\x75\147\151\156") == "\x50\x6c\165\147\151\156\x2d\123\x6c\x75\x67")) {
goto Kv;
}
delete_option("\101\143\x74\151\166\141\x74\145\x64\137\x50\x6c\x75\x67\151\156");
update_option("\155\x6f\x5f\163\141\155\x6c\137\155\x65\x73\163\141\x67\x65", "\107\x6f\40\x74\x6f\40\x70\x6c\x75\x67\151\x6e\40\74\142\x3e\74\x61\40\150\162\x65\146\75\x22\141\x64\x6d\151\156\56\160\x68\x70\77\160\x61\x67\x65\x3d\x6d\x6f\137\163\x61\155\154\137\x73\145\x74\164\x69\156\x67\163\x22\76\163\x65\x74\164\151\x6e\147\163\74\x2f\141\76\74\x2f\x62\x3e\40\x74\x6f\x20\143\157\156\146\x69\x67\165\x72\145\40\x53\101\x4d\x4c\x20\x53\x69\156\147\154\145\x20\x53\151\147\156\40\117\156\40\x62\x79\x20\x6d\151\x6e\x69\117\162\x61\156\147\x65\x2e");
add_action("\156\x65\x74\167\157\162\153\x5f\x61\x64\155\151\156\x5f\x6e\157\164\151\143\x65\x73", array($this, "\x6d\157\137\x73\x61\x6d\x6c\137\x61\143\164\151\x76\141\x74\151\x6f\x6e\137\x6d\x65\163\x73\141\x67\145"));
Kv:
if (!(isset($_POST["\x6f\160\164\151\157\156"]) and $_POST["\x6f\160\x74\151\x6f\x6e"] == "\x6c\x6f\147\151\x6e\137\167\151\x64\147\145\x74\137\163\141\155\x6c\x5f\x73\x61\x76\x65\x5f\163\x65\x74\164\x69\156\x67\x73")) {
goto oN;
}
if (mo_saml_is_curl_installed()) {
goto lx;
}
update_site_option("\155\x6f\137\x73\x61\x6d\154\137\155\145\163\163\x61\x67\145", "\105\122\122\x4f\x52\72\x20\x3c\x61\x20\x68\x72\145\146\75\42\x68\x74\x74\x70\72\57\x2f\160\x68\160\56\156\145\x74\x2f\155\141\x6e\x75\141\154\x2f\145\156\x2f\x63\x75\x72\x6c\x2e\x69\x6e\x73\x74\x61\x6c\154\x61\164\151\x6f\x6e\x2e\160\x68\160\42\40\x74\141\162\147\145\164\75\42\137\142\x6c\141\156\153\42\x3e\120\x48\120\x20\x63\x55\x52\x4c\40\x65\x78\164\145\156\x73\x69\x6f\156\74\57\x61\76\40\x69\163\x20\156\x6f\x74\x20\151\156\x73\164\141\x6c\154\x65\144\x20\157\162\40\x64\x69\x73\x61\142\x6c\x65\x64\x2e\40\x53\141\x76\x65\40\111\144\x65\156\164\x69\164\171\x20\x50\x72\157\166\x69\144\145\162\40\x43\157\156\x66\x69\147\x75\x72\141\164\x69\157\x6e\x20\146\141\151\154\145\144\56");
$this->mo_saml_show_error_message();
return;
lx:
$fY = '';
$Xu = '';
$rG = '';
$z_ = '';
$bd = '';
$XU = '';
$RC = '';
$QJ = '';
if ($this->mo_saml_check_empty_or_null($_POST["\x73\141\x6d\154\x5f\x69\x64\x65\x6e\164\x69\164\x79\137\156\141\x6d\x65"]) || $this->mo_saml_check_empty_or_null($_POST["\163\141\155\154\137\154\157\147\x69\x6e\137\165\x72\154"]) || $this->mo_saml_check_empty_or_null($_POST["\x73\x61\155\x6c\x5f\x69\163\163\165\x65\162"])) {
goto rY;
}
if (!preg_match("\x2f\136\134\167\x2a\x24\x2f", $_POST["\x73\141\x6d\x6c\x5f\x69\144\145\x6e\x74\151\164\171\x5f\156\141\x6d\145"])) {
goto YE;
}
$fY = trim($_POST["\x73\x61\155\154\x5f\151\x64\x65\156\x74\151\x74\171\x5f\x6e\141\x6d\145"]);
$rG = trim($_POST["\x73\141\155\x6c\x5f\x6c\157\x67\151\156\x5f\165\162\x6c"]);
$Xu = $_POST["\x73\141\x6d\x6c\137\x6c\x6f\x67\151\156\137\x62\x69\x6e\144\x69\x6e\147\x5f\x74\171\x70\x65"];
$z_ = $_POST["\x73\x61\155\x6c\137\x6c\x6f\x67\x6f\x75\x74\137\x62\x69\156\144\151\x6e\147\137\164\x79\x70\x65"];
if (!array_key_exists("\x73\141\x6d\x6c\137\154\x6f\147\157\x75\164\137\165\162\154", $_POST)) {
goto u9;
}
$bd = trim($_POST["\163\141\155\x6c\137\154\157\x67\157\165\164\137\165\162\x6c"]);
u9:
$XU = trim($_POST["\163\141\x6d\154\137\x69\163\163\165\x65\x72"]);
$RC = maybe_unserialize($_POST["\x73\141\155\x6c\137\170\65\60\x39\x5f\143\145\x72\x74\x69\x66\151\143\x61\164\x65"]);
goto pT;
YE:
update_site_option("\155\x6f\137\x73\x61\x6d\154\137\x6d\x65\x73\163\x61\x67\145", "\120\154\145\141\163\x65\x20\x6d\141\164\143\150\x20\x74\x68\x65\40\162\x65\161\x75\x65\x73\164\x65\144\x20\x66\x6f\162\155\x61\x74\x20\x66\157\162\40\x49\x64\145\156\164\151\x74\171\x20\120\162\157\x76\151\144\x65\x72\x20\116\141\x6d\145\x2e\x20\117\x6e\x6c\171\40\x61\154\160\x68\x61\x62\x65\x74\x73\54\40\x6e\x75\155\x62\x65\x72\163\x20\x61\156\144\x20\x75\x6e\x64\x65\x72\x73\143\x6f\162\x65\x20\x69\x73\40\x61\x6c\x6c\157\x77\145\144\56");
$this->mo_saml_show_error_message();
return;
pT:
goto qQ;
rY:
update_site_option("\155\157\137\x73\x61\x6d\x6c\137\x6d\x65\x73\163\141\x67\145", "\101\154\x6c\40\164\x68\145\40\146\x69\145\154\144\x73\x20\141\162\145\x20\x72\x65\x71\165\x69\162\x65\144\56\x20\x50\x6c\145\x61\163\145\40\x65\x6e\164\x65\162\x20\166\141\154\x69\144\40\x65\x6e\x74\162\x69\145\163\56");
$this->mo_saml_show_error_message();
return;
qQ:
update_site_option("\x73\x61\155\154\x5f\x69\144\145\156\164\151\164\171\137\156\141\155\145", $fY);
update_site_option("\163\x61\x6d\154\137\154\x6f\147\x69\x6e\x5f\x62\x69\x6e\x64\x69\156\x67\137\164\171\160\x65", $Xu);
update_site_option("\x73\x61\x6d\154\x5f\x6c\x6f\x67\x69\156\x5f\x75\162\154", $rG);
update_site_option("\x73\141\155\x6c\137\154\157\x67\157\165\x74\x5f\142\151\x6e\144\151\x6e\x67\137\x74\x79\x70\x65", $z_);
update_site_option("\x73\141\155\x6c\137\154\157\x67\157\x75\x74\x5f\x75\162\154", $bd);
update_site_option("\x73\141\x6d\154\137\x69\x73\x73\x75\x65\x72", $XU);
if (isset($_POST["\x73\x61\155\x6c\x5f\162\x65\161\165\145\x73\x74\137\163\x69\147\x6e\x65\x64"])) {
goto Vo;
}
update_site_option("\x73\x61\x6d\154\137\x72\145\161\x75\x65\x73\x74\x5f\163\x69\x67\x6e\x65\x64", "\165\x6e\143\150\145\x63\x6b\145\x64");
goto nf;
Vo:
update_site_option("\163\141\x6d\x6c\x5f\x72\145\161\x75\145\x73\164\x5f\163\x69\x67\156\145\144", "\143\150\x65\143\153\x65\x64");
nf:
foreach ($RC as $M3 => $Vz) {
if (empty($Vz)) {
goto ZU;
}
$RC[$M3] = Utilities::sanitize_certificate($Vz);
if (@openssl_x509_read($RC[$M3])) {
goto fa;
}
update_site_option("\x6d\157\137\x73\141\x6d\x6c\137\155\x65\x73\x73\141\x67\145", "\x49\156\x76\x61\154\151\x64\x20\143\145\162\x74\151\146\151\143\141\164\x65\40\x66\x6f\x72\x6d\x61\x74\x3a\120\x6c\145\141\x73\145\x20\160\x72\157\x76\151\144\145\40\x61\40\x76\141\x6c\x69\144\40\143\145\x72\164\151\146\x69\x63\x61\164\145");
$this->mo_saml_show_error_message();
delete_site_option("\163\x61\x6d\x6c\137\170\x35\x30\71\137\143\x65\162\164\151\146\x69\143\x61\x74\145");
return;
fa:
goto AO;
ZU:
unset($RC[$M3]);
AO:
F8:
}
vZ:
if (!empty($RC)) {
goto gn;
}
update_site_option("\x6d\157\137\163\x61\155\154\137\155\x65\163\x73\141\x67\145", "\x49\x6e\x76\x61\154\151\x64\x20\x63\145\162\x74\151\146\x69\143\x61\164\145\x20\x66\x6f\x72\155\x61\164\x20\x3a\40\x50\x6c\145\x61\x73\x65\x20\160\x72\157\x76\151\x64\145\40\x61\40\x63\145\x72\164\x69\146\151\143\x61\x74\145");
$this->mo_saml_show_error_message();
return;
gn:
if (isset($_POST["\x73\141\155\154\x5f\x72\145\163\x70\157\x6e\x73\145\x5f\163\151\x67\x6e\x65\x64"])) {
goto Ls;
}
update_option("\163\141\x6d\x6c\137\162\145\x73\x70\157\x6e\x73\145\x5f\163\151\x67\x6e\145\x64", "\131\x65\163");
goto KC;
Ls:
update_option("\163\x61\x6d\154\137\162\x65\x73\x70\157\156\163\145\x5f\x73\x69\147\156\145\144", "\x63\x68\145\x63\x6b\x65\x64");
KC:
if (isset($_POST["\163\141\155\x6c\x5f\x61\163\x73\145\162\164\x69\x6f\x6e\137\x73\151\x67\156\145\144"])) {
goto Aa;
}
update_option("\x73\x61\x6d\154\x5f\x61\x73\163\x65\162\x74\x69\x6f\x6e\137\x73\151\x67\x6e\145\144", "\x59\x65\163");
goto qw;
Aa:
update_option("\163\x61\x6d\x6c\x5f\x61\163\163\x65\162\x74\x69\x6f\x6e\137\x73\x69\147\x6e\x65\x64", "\143\x68\x65\x63\153\145\x64");
qw:
update_site_option("\163\141\155\154\137\x78\65\60\71\137\143\x65\162\x74\x69\x66\x69\x63\141\164\x65", $RC);
if (get_site_option("\x6d\157\137\163\x61\155\x6c\137\x65\x6e\x61\142\154\x65\137\143\154\157\x75\144\137\x62\162\157\x6b\145\162") == "\x74\x72\x75\x65") {
goto sF;
}
update_site_option("\155\x6f\137\163\141\155\x6c\x5f\x6d\x65\x73\x73\141\x67\145", "\111\x64\x65\x6e\164\151\x74\x79\40\x50\x72\157\x76\151\144\145\x72\x20\144\x65\x74\141\151\x6c\x73\x20\163\141\x76\145\144\x20\x73\x75\143\x63\145\x73\x73\146\x75\x6c\x6c\x79\56");
$this->mo_saml_show_success_message();
goto Tb;
sF:
$sL = new Customersaml();
$xQ = json_decode($sL->save_external_idp_config(), true);
if (isset($xQ["\143\165\x73\164\157\155\145\x72\111\144"])) {
goto cW;
}
update_site_option("\155\157\x5f\163\x61\155\x6c\137\155\x65\163\x73\141\147\x65", "\x49\144\x65\156\164\x69\x74\x79\x20\x50\x72\x6f\x76\x69\144\145\x72\x20\144\145\x74\141\151\154\x73\x20\x63\x6f\x75\154\x64\x20\x6e\157\164\40\x62\x65\40\163\141\x76\145\144\56\x20\x50\x6c\145\x61\163\x65\x20\164\162\171\40\x61\147\x61\x69\x6e\56");
$this->mo_saml_show_error_message();
goto Sz;
cW:
update_site_option("\163\x61\155\154\x5f\170\x35\x30\x39\x5f\x63\145\x72\164\151\146\x69\143\x61\x74\145", maybe_serialize(array($xQ["\x73\x61\155\x6c\130\x35\60\x39\x43\145\x72\x74\151\x66\x69\x63\141\x74\x65"])));
update_site_option("\155\x6f\137\x73\x61\x6d\154\137\x6d\145\163\163\141\147\145", "\x49\144\145\156\164\151\x74\171\40\x50\x72\157\x76\x69\x64\x65\162\40\x64\x65\164\141\x69\154\x73\40\x73\141\x76\x65\x64\40\163\165\143\143\145\163\163\x66\x75\x6c\x6c\171\56");
$this->mo_saml_show_success_message();
Sz:
Tb:
oN:
if (!(isset($_POST["\157\160\164\151\157\x6e"]) and $_POST["\x6f\x70\164\x69\x6f\156"] == "\x6c\x6f\147\151\156\137\167\x69\144\147\x65\164\137\x73\141\155\x6c\x5f\141\164\164\x72\151\142\165\x74\145\137\x6d\141\160\160\151\x6e\147")) {
goto fr;
}
if (mo_saml_is_curl_installed()) {
goto G3;
}
update_site_option("\x6d\157\137\163\x61\155\154\x5f\155\x65\x73\x73\x61\x67\x65", "\x45\122\x52\117\x52\72\40\74\141\x20\x68\162\145\146\x3d\42\150\164\164\x70\x3a\57\57\x70\x68\160\x2e\x6e\145\164\x2f\155\141\156\x75\141\x6c\x2f\x65\x6e\x2f\143\x75\x72\154\56\x69\x6e\163\x74\141\154\x6c\x61\x74\x69\157\156\56\160\x68\x70\x22\40\x74\x61\162\147\145\164\75\x22\x5f\142\x6c\141\156\153\42\x3e\120\110\x50\40\143\125\x52\114\x20\x65\x78\x74\145\x6e\163\x69\157\x6e\74\x2f\141\76\40\151\163\x20\156\x6f\x74\40\x69\156\163\164\x61\154\154\145\144\40\x6f\x72\x20\144\151\163\141\x62\x6c\x65\144\56\x20\x53\x61\x76\x65\x20\101\x74\x74\162\151\x62\x75\164\145\40\115\x61\160\160\x69\x6e\147\x20\x66\x61\151\154\x65\144\56");
$this->mo_saml_show_error_message();
return;
G3:
update_site_option("\x73\x61\155\x6c\137\x61\155\137\x75\x73\x65\x72\x6e\141\x6d\145", stripslashes($_POST["\x73\141\155\154\x5f\x61\x6d\137\x75\163\x65\x72\156\x61\155\x65"]));
update_site_option("\x73\x61\155\x6c\137\x61\x6d\x5f\x65\x6d\x61\151\x6c", stripslashes($_POST["\x73\141\155\x6c\137\141\x6d\x5f\145\155\141\x69\x6c"]));
update_site_option("\163\141\155\154\x5f\141\155\137\x66\x69\x72\163\x74\137\x6e\141\x6d\x65", stripslashes($_POST["\163\x61\x6d\154\137\141\155\137\146\151\x72\x73\164\x5f\156\x61\x6d\x65"]));
update_site_option("\x73\141\155\154\137\x61\x6d\x5f\154\x61\163\164\x5f\x6e\141\x6d\x65", stripslashes($_POST["\x73\141\155\154\137\141\155\x5f\154\x61\163\x74\137\x6e\141\155\x65"]));
update_site_option("\163\x61\x6d\x6c\137\141\x6d\x5f\147\162\x6f\165\x70\x5f\x6e\x61\155\x65", stripslashes($_POST["\163\x61\x6d\154\137\x61\155\137\147\162\x6f\x75\160\137\156\141\x6d\145"]));
update_site_option("\x73\141\155\154\x5f\x61\x6d\137\x61\x63\143\157\165\x6e\164\137\x6d\x61\164\x63\x68\145\x72", stripslashes($_POST["\163\141\155\x6c\137\141\155\x5f\x61\143\143\x6f\x75\x6e\164\x5f\x6d\x61\x74\x63\150\x65\x72"]));
update_site_option("\163\x61\155\154\x5f\141\x6d\137\x64\151\163\x70\x6c\x61\x79\x5f\156\x61\x6d\x65", stripslashes($_POST["\x73\x61\155\154\137\x61\155\137\x64\x69\163\160\154\141\x79\x5f\x6e\141\155\145"]));
$qa = array();
$am = 0;
foreach ($_POST as $M3 => $Vz) {
if (!(strpos($M3, "\155\157\x5f\163\141\x6d\154\137\x63\x75\x73\x74\157\x6d\x5f\x61\164\x74\x72\151\x62\165\x74\x65\x5f\x6b\145\x79") !== false && !empty($_POST[$M3]))) {
goto Qq;
}
$am++;
$OP = "\x6d\157\x5f\x73\x61\x6d\154\x5f\x63\x75\x73\164\157\155\x5f\x61\164\164\x72\151\142\x75\164\145\x5f\x76\x61\154\165\x65\137" . $am;
$qa[$Vz] = $_POST[$OP];
Qq:
oP:
}
QK:
if (empty($qa)) {
goto PB;
}
update_site_option("\x6d\x6f\x5f\163\141\155\154\137\x63\x75\x73\x74\157\x6d\x5f\x61\x74\164\x72\x73\137\x6d\141\x70\x70\x69\x6e\147", $qa);
PB:
update_site_option("\x6d\157\137\x73\x61\155\x6c\x5f\155\145\x73\x73\x61\147\x65", "\101\164\164\162\x69\142\165\164\145\x20\115\141\160\x70\x69\156\x67\40\x64\x65\x74\141\151\x6c\163\x20\163\141\x76\x65\144\x20\163\165\143\143\x65\x73\163\x66\165\x6c\154\x79");
$this->mo_saml_show_success_message();
fr:
if (!(isset($_POST["\x6f\160\164\x69\157\156"]) and $_POST["\x6f\x70\x74\x69\x6f\x6e"] == "\154\157\147\151\x6e\x5f\167\x69\144\x67\145\x74\137\163\141\x6d\x6c\x5f\162\x6f\x6c\x65\x5f\155\141\x70\x70\151\156\147")) {
goto k_;
}
if (mo_saml_is_curl_installed()) {
goto xi;
}
update_site_option("\155\157\x5f\x73\x61\155\x6c\137\x6d\x65\163\x73\141\x67\145", "\105\x52\x52\117\x52\72\40\x3c\141\40\x68\x72\x65\146\75\x22\x68\164\x74\x70\72\57\57\160\x68\160\x2e\x6e\145\164\x2f\155\x61\156\x75\x61\154\x2f\x65\156\x2f\x63\165\162\154\x2e\x69\156\163\x74\x61\x6c\x6c\141\x74\x69\157\x6e\56\x70\150\160\x22\x20\164\141\x72\147\x65\x74\75\x22\137\x62\x6c\141\x6e\153\x22\x3e\120\x48\120\x20\143\125\x52\114\40\x65\x78\x74\145\x6e\x73\151\x6f\156\74\x2f\141\x3e\40\151\x73\40\x6e\157\x74\x20\151\156\x73\164\x61\154\x6c\145\x64\40\157\162\x20\x64\x69\163\141\142\x6c\x65\x64\x2e\40\123\141\x76\145\x20\x52\x6f\154\x65\x20\115\141\160\x70\151\x6e\147\x20\146\141\x69\x6c\145\x64\56");
$this->mo_saml_show_error_message();
return;
xi:
$y6 = 0;
if (isset($_POST["\155\x6f\137\x61\160\160\154\x79\137\x72\x6f\x6c\145\x5f\155\x61\160\160\151\156\x67\x5f\146\157\x72\137\x73\151\x74\145\163"]) && $_POST["\x6d\157\137\x61\x70\160\154\171\137\162\157\x6c\145\x5f\155\141\160\x70\x69\156\x67\x5f\x66\157\x72\137\163\x69\x74\x65\x73"] == 0) {
goto w0;
}
if (!(isset($_POST["\155\157\137\141\160\x70\x6c\x79\137\x72\157\x6c\x65\x5f\155\x61\x70\x70\x69\x6e\147\x5f\x66\x6f\x72\x5f\x73\151\x74\145\x73"]) && $_POST["\x6d\x6f\x5f\141\160\x70\154\171\137\162\x6f\154\x65\x5f\x6d\x61\x70\160\151\156\147\137\x66\157\x72\x5f\x73\151\x74\145\x73"] == 1)) {
goto kG;
}
update_site_option("\155\x6f\x5f\141\x70\x70\154\x79\x5f\x72\157\154\x65\137\155\x61\160\x70\x69\x6e\x67\137\x66\x6f\162\137\x73\x69\x74\145\x73", 1);
$y6 = 0;
$ci = array();
update_site_option("\x73\141\155\x6c\137\141\155\x5f\x72\x6f\154\145\x5f\x6d\141\x70\160\151\x6e\147", $ci);
kG:
goto Jq;
w0:
if (!$this->mo_saml_check_empty_or_null($_POST["\162\157\x6c\145\x5f\155\x61\x70\160\151\156\147\137\x73\151\x74\x65"])) {
goto Dz;
}
update_site_option("\155\157\137\x73\x61\x6d\x6c\x5f\x6d\145\163\163\x61\147\x65", "\120\154\145\141\163\145\40\163\x65\154\x65\x63\164\x20\141\40\163\x69\x74\145\40\164\157\40\163\x61\x76\x65\40\x72\157\154\145\40\155\141\160\x70\151\156\147");
$this->mo_saml_show_error_message();
return;
Dz:
update_site_option("\155\157\137\141\160\160\154\x79\x5f\162\157\154\145\137\155\x61\x70\x70\151\x6e\x67\137\x66\157\162\x5f\163\151\x74\x65\x73", 0);
$y6 = $_POST["\x72\157\154\145\x5f\155\141\x70\x70\151\x6e\147\137\x73\x69\x74\145"];
Jq:
if (!isset($_POST["\x73\x61\x6d\x6c\137\x61\155\x5f\x64\x65\146\x61\x75\154\x74\x5f\x75\163\145\162\137\x72\157\x6c\x65"])) {
goto Hd;
}
$Pj = $_POST["\163\141\x6d\x6c\x5f\141\x6d\137\x64\145\146\141\165\x6c\164\137\x75\x73\145\162\x5f\x72\x6f\154\x65"];
Hd:
if (isset($_POST["\163\x61\155\x6c\137\141\x6d\x5f\144\x6f\x6e\x74\x5f\x61\x6c\154\157\x77\x5f\165\156\154\151\x73\x74\145\144\137\x75\163\145\x72\x5f\x72\157\154\x65"])) {
goto gO;
}
$vk = "\x75\x6e\143\150\x65\143\153\x65\x64";
goto Nd;
gO:
$vk = "\143\150\x65\143\x6b\x65\144";
$Pj = "\x66\141\154\163\145";
Nd:
if (isset($_POST["\155\x6f\137\x73\x61\x6d\154\x5f\x64\157\x6e\164\x5f\x63\162\x65\141\x74\145\x5f\165\163\145\x72\x5f\x69\146\137\162\157\x6c\x65\x5f\x6e\x6f\x74\137\155\141\x70\160\145\x64"])) {
goto Ap;
}
$WM = "\165\x6e\143\x68\145\x63\x6b\145\144";
goto ZL;
Ap:
$WM = "\143\x68\x65\x63\153\145\x64";
$vk = "\165\x6e\143\x68\x65\143\153\145\144";
$Pj = "\146\141\x6c\163\x65";
ZL:
if (isset($_POST["\x6d\157\137\x73\x61\x6d\x6c\137\153\x65\x65\x70\x5f\145\x78\151\163\164\151\x6e\147\x5f\x75\x73\x65\162\163\x5f\162\157\x6c\x65"])) {
goto Ml;
}
$uM = "\x75\x6e\x63\150\x65\143\153\145\x64";
goto bR;
Ml:
$uM = "\143\x68\x65\x63\153\x65\x64";
bR:
if (!isset($_POST["\x73\x61\x6d\x6c\137\x61\155\137\x67\x72\x6f\165\160\x5f\141\164\164\162\137\166\141\154\165\x65\163\137\163\165\x70\145\x72\141\144\x6d\x69\156"])) {
goto JI;
}
$fA = $_POST["\x73\141\155\154\137\x61\155\137\147\x72\157\x75\160\137\x61\164\x74\162\x5f\166\141\x6c\165\145\x73\x5f\x73\165\160\145\162\141\144\155\151\x6e"];
JI:
$hE = new WP_Roles();
$n5 = $hE->get_names();
$ci = get_site_option("\163\x61\x6d\x6c\x5f\x61\x6d\x5f\x72\157\x6c\x65\x5f\x6d\x61\x70\160\x69\156\147");
foreach ($n5 as $ag => $v7) {
$S_ = "\x73\141\155\x6c\x5f\x61\x6d\137\147\162\x6f\165\x70\137\x61\164\164\162\x5f\x76\x61\x6c\165\x65\163\x5f" . $ag;
$ci[$y6][$ag] = stripslashes($_POST[$S_]);
OC:
}
WB:
$ci[$y6]["\144\x65\x66\x61\165\154\164\x5f\162\157\154\145"] = $Pj;
$ci[$y6]["\x64\157\x6e\164\137\x63\x72\145\141\164\145\137\x75\x73\145\x72"] = $WM;
$ci[$y6]["\144\157\x6e\164\x5f\141\x6c\154\157\167\137\x75\x6e\154\151\x73\x74\145\x64\137\165\163\x65\x72"] = $vk;
$ci[$y6]["\153\x65\145\160\x5f\145\x78\x69\x73\x74\151\156\147\x5f\x75\163\x65\162\163\137\x72\x6f\x6c\x65"] = $uM;
update_site_option("\163\x61\155\154\137\141\155\137\x72\x6f\154\x65\x5f\155\141\x70\160\151\156\147", $ci);
update_site_option("\x6d\x6f\x5f\163\x61\x6d\x6c\137\x6d\x65\x73\163\x61\x67\x65", "\122\x6f\154\145\x20\x4d\141\160\x70\x69\156\147\x20\x64\x65\164\141\151\x6c\163\x20\x73\x61\166\145\144\40\x73\165\x63\x63\x65\163\163\x66\x75\x6c\154\171\56");
update_site_option("\155\x6f\137\163\x61\155\x6c\137\x73\x75\160\145\x72\137\141\144\155\151\156\137\162\157\154\145\x5f\x6d\x61\160\160\x69\156\x67", $fA);
$this->mo_saml_show_success_message();
k_:
if (!(isset($_POST["\x6f\160\164\151\x6f\x6e"]) and $_POST["\157\x70\164\151\x6f\156"] == "\x6d\157\137\x73\x61\155\154\x5f\x73\x75\142\163\x69\x74\145\137\163\x65\x6c\x65\x63\x74\151\x6f\156\137\x66\x6f\162\x5f\162\157\x6c\145\x5f\155\x61\x70\160\151\156\x67")) {
goto t2;
}
$MA = isset($_POST["\x6d\x6f\137\x61\160\x70\x6c\171\137\x72\157\154\x65\x5f\x6d\x61\160\160\151\156\x67\x5f\x66\157\162\137\163\x69\x74\145\x73"]) ? $_POST["\x6d\157\x5f\x61\x70\160\154\x79\137\162\x6f\x6c\145\137\155\141\x70\160\x69\156\147\x5f\146\157\162\137\163\151\x74\x65\163"] : 0;
update_site_option("\x6d\x6f\137\x61\x70\x70\x6c\171\137\162\x6f\154\x65\137\155\x61\x70\x70\151\156\147\x5f\146\x6f\162\x5f\163\x69\164\145\163", $MA);
t2:
if (!(isset($_POST["\x6f\160\x74\151\157\156"]) and $_POST["\x6f\x70\x74\x69\x6f\x6e"] == "\x6d\x6f\x5f\163\x61\155\154\x5f\162\145\163\145\164\137\162\x6f\x6c\145\x5f\155\141\x70\x70\151\156\147\x5f\x61\x74\164\162\151\142\x75\164\145\x73")) {
goto vT;
}
update_site_option("\x6d\157\x5f\x61\160\160\x6c\171\x5f\162\x6f\x6c\x65\x5f\155\141\x70\160\151\156\x67\x5f\x66\x6f\162\x5f\x73\x69\164\x65\163", 0);
$ci = array();
update_site_option("\x73\x61\x6d\154\x5f\141\155\x5f\162\157\x6c\145\x5f\155\x61\160\x70\x69\x6e\x67", $ci);
update_site_option("\155\157\x5f\163\141\155\x6c\137\x73\x75\160\x65\x72\137\141\x64\x6d\151\x6e\x5f\x72\157\x6c\145\137\x6d\x61\160\x70\151\156\x67", '');
update_site_option("\x6d\157\137\163\x61\155\154\137\x6d\x65\x73\163\x61\147\145", "\122\157\x6c\x65\x20\x4d\x61\160\x70\151\x6e\147\40\x68\141\x73\40\142\145\x65\156\x20\162\145\163\x65\164\x20\163\165\143\x63\145\163\163\x66\x75\154\154\171\56");
$this->mo_saml_show_success_message();
vT:
if (!(isset($_POST["\x6f\160\x74\151\x6f\x6e"]) and $_POST["\157\160\164\x69\157\156"] == "\x6d\157\x5f\163\141\155\154\137\165\160\x64\141\164\145\x5f\163\x70\137\x62\141\x73\x65\x5f\x75\162\x6c\x5f\x6f\x70\x74\x69\157\156")) {
goto uF;
}
if (!(isset($_POST["\155\157\137\163\141\155\x6c\x5f\163\x70\137\x62\x61\163\145\137\x75\162\154"]) && isset($_POST["\x6d\x6f\137\x73\x61\155\154\x5f\163\160\137\145\x6e\x74\x69\164\x79\x5f\x69\144"]))) {
goto il;
}
$tT = sanitize_text_field($_POST["\x6d\157\x5f\163\141\155\x6c\x5f\163\x70\x5f\x62\x61\163\x65\x5f\x75\162\154"]);
$FF = sanitize_text_field($_POST["\x6d\157\x5f\163\x61\155\154\137\x73\160\137\145\x6e\164\x69\164\171\137\151\x64"]);
if (!(substr($tT, -1) == "\x2f")) {
goto nb;
}
$tT = substr($tT, 0, -1);
nb:
update_site_option("\155\157\x5f\x73\141\155\x6c\137\163\x70\x5f\142\x61\x73\x65\137\x75\x72\x6c", $tT);
update_site_option("\155\x6f\x5f\163\141\x6d\x6c\x5f\x73\x70\137\145\156\x74\151\164\x79\x5f\151\x64", $FF);
il:
update_site_option("\155\x6f\137\163\141\155\154\137\x6d\145\163\x73\x61\147\145", "\x53\x50\x20\102\141\x73\x65\x20\x55\x52\x4c\40\x75\160\x64\141\164\x65\144\40\x73\165\143\143\145\x73\x73\146\x75\x6c\154\171\x2e");
$this->mo_saml_show_success_message();
uF:
if (!(isset($_POST["\x6f\160\x74\x69\157\156"]) and $_POST["\x6f\160\x74\x69\157\156"] == "\x73\x61\155\154\x5f\x75\160\154\x6f\x61\144\137\x6d\145\164\x61\x64\x61\164\x61")) {
goto eK;
}
if (function_exists("\x77\x70\137\150\141\x6e\x64\x6c\x65\x5f\x75\x70\154\x6f\141\x64")) {
goto Ya;
}
require_once ABSPATH . "\x77\x70\55\x61\x64\155\x69\x6e\57\151\x6e\143\x6c\165\144\145\163\57\146\151\154\145\x2e\160\x68\160";
Ya:
$this->upload_metadata();
eK:
if (!(isset($_POST["\x6f\160\164\x69\157\156"]) and $_POST["\157\x70\164\151\x6f\x6e"] == "\155\x6f\x5f\163\141\x6d\154\137\162\145\154\141\171\x5f\163\164\141\164\145\137\157\160\164\151\x6f\156")) {
goto DB;
}
$us = sanitize_text_field($_POST["\155\157\x5f\163\141\155\154\137\162\x65\x6c\141\x79\137\163\x74\x61\x74\145"]);
update_site_option("\155\x6f\x5f\163\x61\155\x6c\137\x72\x65\x6c\x61\171\x5f\x73\164\x61\x74\x65", $us);
update_site_option("\155\157\x5f\163\x61\x6d\154\137\x6d\145\163\x73\x61\147\x65", "\x52\145\154\x61\171\40\x53\x74\x61\164\x65\40\x75\x70\x64\x61\x74\x65\144\40\163\165\x63\143\145\x73\163\x66\x75\x6c\154\x79\x2e");
$this->mo_saml_show_success_message();
DB:
if (!(isset($_POST["\157\160\x74\151\x6f\x6e"]) and $_POST["\x6f\160\164\x69\157\x6e"] == "\145\156\141\x62\154\x65\137\x73\163\x6f\137\x66\x6f\x72\137\163\151\x74\x65\163\137\x6f\x70\x74\151\x6f\156")) {
goto Cf;
}
$dD = array();
if (!array_key_exists("\145\x6e\x61\x62\x6c\145\x5f\x66\157\162\x5f\163\x69\164\145\163", $_POST)) {
goto yg;
}
$dD = $_POST["\x65\156\x61\x62\154\145\137\x66\x6f\162\137\x73\151\164\145\x73"];
yg:
update_site_option("\x65\156\x61\x62\x6c\145\137\x73\x61\155\x6c\137\163\163\157\137\146\157\x72\137\163\151\x74\x65\163", $dD);
update_site_option("\155\157\x5f\x73\141\155\x6c\x5f\155\145\x73\163\141\147\145", "\x53\x69\164\145\163\40\x53\x53\117\x20\165\160\x64\x61\164\x65\x64\40\x73\165\143\x63\145\x73\163\146\x75\x6c\154\171\56");
$this->mo_saml_show_success_message();
Cf:
if (!(isset($_POST["\157\x70\164\x69\157\156"]) and $_POST["\x6f\x70\164\x69\157\x6e"] == "\163\141\x6d\x6c\137\147\145\x6e\x65\162\141\164\x65\x5f\x63\x65\162\164\151\x66\151\143\x61\164\145")) {
goto UB;
}
$VB = array("\143\157\165\x6e\164\x72\x79\x4e\141\155\145" => $_POST["\143\157\x75\156\164\x72\x79"], "\163\x74\141\x74\x65\x4f\162\x50\x72\157\166\151\156\x63\145\116\141\x6d\145" => $_POST["\163\x74\x61\x74\145"], "\154\x6f\143\141\x6c\x69\x74\171\x4e\x61\155\145" => $_POST["\154\x6f\x63\141\x6c\x69\x74\171"], "\157\x72\147\141\156\x69\x7a\141\164\x69\157\x6e\x4e\x61\x6d\x65" => $_POST["\x6f\x72\x67"], "\x6f\162\147\141\156\151\172\141\164\x69\x6f\x6e\141\154\x55\x6e\151\x74\x4e\141\x6d\145" => $_POST["\157\162\147\137\165\156\x69\x74"], "\143\157\155\x6d\157\156\x4e\x61\155\x65" => $_POST["\143\x6e"], "\x65\x6d\x61\151\x6c\101\x64\x64\162\145\163\x73" => $_POST["\x65\155\x61\151\x6c"]);
$Wq = array("\144\x69\147\x65\163\x74\137\141\154\147" => $_POST["\150\141\x73\150\x5f\x61\x6c\x67\x6f\x72\151\164\150\155"], "\x78\65\x30\71\137\x65\x78\164\145\156\x73\x69\x6f\x6e\x73" => "\x76\63\x5f\x63\141", "\x70\162\151\x76\141\164\x65\137\x6b\x65\171\x5f\142\x69\164\x73" => 2048, "\x70\162\151\166\x61\x74\145\x5f\153\x65\171\137\x74\x79\x70\145" => OPENSSL_KEYTYPE_RSA, "\x65\x6e\x63\162\171\x70\164\x5f\153\145\171" => false);
$da = CertificateUtility::generate_certificate($VB, $Wq, (int) $_POST["\145\x78\160\151\162\x79\x5f\x64\141\x79\163"]);
$Xn = plugin_dir_path(__FILE__) . "\162\145\x73\x6f\x75\162\x63\x65\x73" . DIRECTORY_SEPARATOR . "\163\x70\55\143\x65\162\x74\151\x66\x69\x63\141\164\145\x2e\143\162\164";
$FN = plugin_dir_path(__FILE__) . "\162\x65\163\x6f\x75\x72\143\145\x73" . DIRECTORY_SEPARATOR . "\x73\160\55\x6b\145\x79\x2e\x6b\145\x79";
$El = plugin_dir_path(__FILE__) . "\x72\x65\x73\157\165\162\143\x65\163" . DIRECTORY_SEPARATOR . "\163\160\x2d\x63\x65\x72\x74\151\146\151\x63\x61\164\145\56\143\162\164\x2e\142\141\x63\x6b\165\x70";
if (file_exists($El)) {
goto kg;
}
$ka = plugin_dir_path(__FILE__) . "\162\145\163\157\x75\x72\143\x65\x73" . DIRECTORY_SEPARATOR . "\163\160\55\153\x65\x79\x2e\153\x65\171\x2e\x62\141\x63\153\165\160";
copy($Xn, $El);
copy($FN, $ka);
kg:
$Ct = file_put_contents($Xn, $da["\x70\x75\142\x6c\x69\x63\x5f\x6b\x65\171"]);
$Ct = $Ct && file_put_contents($FN, $da["\x70\x72\151\166\141\x74\x65\137\x6b\x65\171"]);
if ($Ct) {
goto Ei;
}
update_site_option("\x6d\157\x5f\x73\141\x6d\x6c\137\x6d\x65\163\x73\141\x67\x65", "\x45\162\162\157\x72\x20\157\143\143\165\162\x65\x64\40\x77\x68\x69\154\x65\x20\147\145\156\145\x72\x61\x74\x69\x6e\x67\x20\164\150\x65\x20\x63\145\162\x74\x69\x66\x69\x63\x61\x74\x65\x73\56\40\123\x65\x65\x20\x50\x48\x50\40\x65\x72\x72\x6f\162\x20\x6c\157\147\x73\x20\x61\156\144\40\155\141\x6b\145\40\x73\165\x72\145\x20\x68\x61\x76\145\40\x73\x65\164\x20\167\162\151\x74\x65\x20\x70\x65\162\155\x69\163\x73\x69\157\156\x2e");
$this->mo_saml_show_error_message();
goto nl;
Ei:
update_site_option("\x6d\157\137\x73\x61\x6d\154\137\x6d\x65\163\163\x61\147\145", "\116\x65\x77\40\143\145\162\164\x69\x66\x69\x63\x61\x74\x65\163\x20\147\x65\156\145\162\141\x74\x65\x64\40\x73\x75\143\x63\x65\x73\163\x66\x75\x6c\154\x79\x2e");
$this->mo_saml_show_success_message();
nl:
UB:
if (!(isset($_POST["\x6f\x70\x74\x69\x6f\x6e"]) and $_POST["\157\x70\x74\151\157\156"] == "\155\157\137\163\x61\155\x6c\x5f\x72\x65\x67\151\x73\164\145\x72\137\x63\x75\163\x74\157\155\145\x72")) {
goto W6;
}
if (mo_saml_is_curl_installed()) {
goto Xi;
}
update_site_option("\155\157\x5f\163\141\x6d\x6c\137\155\145\163\163\141\147\x65", "\x45\122\x52\x4f\122\x3a\40\74\141\40\150\x72\x65\146\75\42\150\x74\164\x70\72\x2f\x2f\160\150\160\56\156\x65\164\57\x6d\141\156\165\x61\154\x2f\x65\x6e\57\143\x75\x72\154\x2e\151\156\163\164\x61\x6c\154\141\164\151\157\156\x2e\x70\x68\160\42\x20\164\141\162\147\145\x74\x3d\42\x5f\x62\154\141\x6e\153\42\x3e\120\110\x50\40\x63\x55\122\x4c\x20\x65\x78\x74\145\156\163\x69\x6f\156\x3c\57\x61\x3e\40\151\163\x20\x6e\157\164\x20\151\x6e\x73\164\141\x6c\154\145\144\40\x6f\x72\40\x64\151\163\x61\142\x6c\145\x64\56\x20\x52\145\x67\151\163\164\x72\141\x74\151\x6f\x6e\40\x66\x61\x69\x6c\145\144\x2e");
$this->mo_saml_show_error_message();
return;
Xi:
$y9 = '';
$bN = '';
$VG = '';
$nb = '';
if ($this->mo_saml_check_empty_or_null($_POST["\x65\x6d\x61\x69\154"]) || $this->mo_saml_check_empty_or_null($_POST["\x70\141\x73\x73\x77\x6f\x72\x64"]) || $this->mo_saml_check_empty_or_null($_POST["\x63\x6f\x6e\146\x69\162\x6d\x50\141\x73\x73\x77\x6f\162\144"])) {
goto KJ;
}
if (strlen($_POST["\x70\141\163\x73\167\157\162\144"]) < 6 || strlen($_POST["\143\157\x6e\x66\x69\x72\155\x50\x61\x73\163\x77\157\162\x64"]) < 6) {
goto cz;
}
$y9 = sanitize_email($_POST["\145\155\x61\151\154"]);
$bN = sanitize_text_field($_POST["\x70\x68\x6f\x6e\145"]);
$VG = sanitize_text_field($_POST["\160\141\163\163\167\157\162\x64"]);
$nb = sanitize_text_field($_POST["\x63\x6f\156\146\151\x72\155\120\x61\163\163\167\157\x72\144"]);
goto kZ;
cz:
update_site_option("\x6d\x6f\137\163\141\155\154\x5f\x6d\145\x73\163\141\147\x65", "\x43\150\157\x6f\x73\145\40\x61\x20\160\141\x73\163\x77\x6f\x72\x64\40\x77\x69\x74\150\40\x6d\x69\156\151\x6d\165\155\40\154\145\156\147\x74\x68\x20\66\56");
$this->mo_saml_show_error_message();
return;
kZ:
goto Th;
KJ:
update_site_option("\x6d\x6f\137\163\x61\x6d\154\x5f\155\145\x73\x73\141\x67\145", "\101\154\x6c\40\164\150\x65\40\146\x69\x65\x6c\144\163\40\141\x72\x65\x20\162\145\161\165\x69\162\145\x64\x2e\40\120\154\145\x61\163\x65\40\145\156\164\x65\x72\x20\166\141\x6c\151\x64\40\x65\156\x74\162\x69\x65\163\x2e");
$this->mo_saml_show_error_message();
return;
Th:
update_site_option("\x6d\x6f\x5f\x73\x61\x6d\154\x5f\141\144\155\x69\x6e\137\145\155\x61\151\154", $y9);
update_site_option("\155\157\137\x73\141\x6d\x6c\137\141\144\155\151\x6e\137\160\150\157\x6e\x65", $bN);
if (strcmp($VG, $nb) == 0) {
goto wp;
}
update_site_option("\x6d\157\x5f\163\141\x6d\x6c\137\x6d\x65\x73\x73\x61\147\145", "\120\x61\163\163\167\157\x72\x64\x73\40\144\x6f\40\x6e\157\164\40\x6d\141\164\x63\150\x2e");
delete_site_option("\155\x6f\x5f\x73\x61\155\154\137\x76\x65\x72\151\x66\171\x5f\143\165\163\164\157\155\145\x72");
$this->mo_saml_show_error_message();
goto pO;
wp:
update_site_option("\155\157\137\x73\141\x6d\x6c\x5f\x61\x64\155\151\156\137\160\x61\x73\163\x77\157\162\x64", $VG);
$y9 = get_site_option("\155\157\137\x73\141\155\154\x5f\x61\x64\155\151\156\137\145\x6d\141\151\x6c");
$kh = new CustomerSaml();
$KK = json_decode($kh->check_customer(), true);
if (strcasecmp($KK["\x73\x74\x61\164\x75\163"], "\x43\x55\123\124\117\x4d\105\122\x5f\x4e\117\124\x5f\x46\117\x55\116\x44") == 0) {
goto Mz;
}
$this->get_current_customer();
goto gR;
Mz:
$KK = json_decode($kh->send_otp_token($y9, ''), true);
if (strcasecmp($KK["\163\x74\141\x74\165\163"], "\123\125\x43\103\105\123\x53") == 0) {
goto Le;
}
update_site_option("\x6d\157\x5f\163\x61\x6d\x6c\137\155\x65\163\163\x61\x67\145", "\124\x68\145\x72\x65\x20\x77\141\163\x20\x61\x6e\x20\145\x72\162\157\x72\40\151\156\x20\x73\x65\156\x64\x69\156\147\x20\145\155\x61\x69\x6c\x2e\x20\x50\154\x65\x61\x73\x65\40\x76\145\162\x69\x66\171\x20\171\157\165\x72\40\145\155\x61\x69\154\40\x61\x6e\144\x20\164\162\x79\40\141\x67\141\x69\x6e\x2e");
update_site_option("\155\x6f\137\163\x61\155\x6c\x5f\x72\x65\147\x69\163\x74\162\141\164\151\157\x6e\137\x73\164\141\x74\165\x73", "\115\117\x5f\x4f\x54\120\137\x44\105\114\x49\x56\105\x52\105\104\137\x46\x41\111\114\x55\x52\x45\x5f\x45\x4d\x41\x49\114");
$this->mo_saml_show_error_message();
goto Dm;
Le:
update_site_option("\155\x6f\137\x73\141\x6d\154\x5f\155\x65\163\x73\141\147\145", "\40\x41\40\157\x6e\145\40\x74\151\155\x65\x20\x70\141\163\163\x63\x6f\x64\x65\40\151\x73\x20\163\145\156\164\x20\164\x6f\x20" . get_site_option("\x6d\x6f\x5f\x73\141\155\154\x5f\x61\144\155\151\x6e\137\x65\155\x61\151\154") . "\x2e\x20\120\154\x65\x61\x73\x65\x20\x65\x6e\164\145\x72\x20\164\x68\x65\x20\157\x74\160\x20\x68\x65\x72\x65\40\164\157\40\x76\x65\x72\151\x66\171\40\x79\x6f\165\162\40\145\x6d\x61\x69\154\x2e");
update_site_option("\x6d\157\x5f\163\141\x6d\x6c\x5f\x74\162\141\156\163\141\x63\x74\151\x6f\156\x49\144", $KK["\x74\x78\111\x64"]);
update_site_option("\155\157\x5f\163\x61\x6d\x6c\x5f\162\145\x67\x69\163\x74\x72\141\x74\x69\x6f\x6e\137\163\164\x61\x74\165\x73", "\x4d\x4f\x5f\117\124\120\137\104\105\114\111\126\x45\x52\105\x44\137\123\x55\103\x43\105\123\x53\137\105\x4d\x41\x49\x4c");
$this->mo_saml_show_success_message();
Dm:
gR:
pO:
W6:
if (!(isset($_POST["\157\x70\x74\x69\157\x6e"]) and $_POST["\x6f\160\x74\151\x6f\156"] == "\x6d\x6f\137\x73\141\x6d\154\137\x76\x61\154\151\144\x61\164\x65\x5f\157\164\160")) {
goto ov;
}
if (mo_saml_is_curl_installed()) {
goto iV;
}
update_site_option("\x6d\157\137\163\x61\155\x6c\137\x6d\x65\x73\x73\x61\x67\145", "\105\x52\x52\x4f\x52\72\40\x3c\141\40\x68\162\145\x66\75\42\150\x74\164\160\x3a\x2f\x2f\160\150\x70\56\156\x65\x74\x2f\155\141\x6e\165\x61\x6c\57\x65\x6e\57\x63\x75\x72\154\56\x69\156\x73\x74\141\x6c\154\x61\164\151\157\x6e\x2e\x70\x68\x70\x22\x20\164\x61\x72\147\x65\x74\x3d\x22\137\142\x6c\x61\x6e\x6b\42\76\x50\110\x50\x20\x63\125\x52\x4c\40\145\170\x74\x65\156\x73\x69\157\156\x3c\x2f\x61\x3e\x20\151\163\x20\x6e\x6f\x74\40\151\x6e\x73\164\x61\x6c\x6c\x65\x64\x20\157\162\x20\144\151\x73\141\x62\x6c\145\144\x2e\40\126\141\154\x69\x64\141\164\145\x20\117\x54\x50\40\x66\x61\151\x6c\145\x64\56");
$this->mo_saml_show_error_message();
return;
iV:
$tQ = '';
if ($this->mo_saml_check_empty_or_null($_POST["\x6f\x74\x70\137\x74\x6f\x6b\x65\x6e"])) {
goto OT;
}
$tQ = sanitize_text_field($_POST["\x6f\x74\160\137\164\157\153\145\x6e"]);
goto te;
OT:
update_site_option("\x6d\x6f\x5f\x73\141\155\154\137\x6d\x65\163\x73\141\x67\x65", "\x50\154\x65\x61\163\x65\x20\145\x6e\x74\x65\162\x20\141\x20\x76\141\154\x75\145\x20\151\x6e\40\157\x74\x70\x20\x66\151\145\x6c\x64\56");
$this->mo_saml_show_error_message();
return;
te:
$kh = new CustomerSaml();
$KK = json_decode($kh->validate_otp_token(get_site_option("\155\157\x5f\x73\141\155\154\x5f\x74\x72\141\x6e\163\141\143\x74\151\x6f\156\x49\144"), $tQ), true);
if (strcasecmp($KK["\x73\164\141\164\165\x73"], "\123\x55\x43\103\105\123\x53") == 0) {
goto BL;
}
update_site_option("\x6d\157\x5f\163\x61\155\x6c\137\x6d\x65\x73\163\141\147\x65", "\x49\x6e\x76\x61\x6c\151\144\40\157\156\x65\40\x74\x69\155\145\x20\x70\x61\163\163\x63\157\x64\145\x2e\40\x50\154\x65\x61\163\x65\x20\x65\x6e\164\x65\162\40\141\40\166\x61\x6c\x69\144\40\x6f\164\x70\x2e");
$this->mo_saml_show_error_message();
goto ce;
BL:
$this->create_customer();
ce:
ov:
if (isset($_POST["\157\x70\x74\x69\157\156"]) and $_POST["\157\160\164\151\157\x6e"] == "\155\x6f\x5f\x73\x61\155\x6c\x5f\x76\x65\x72\151\x66\171\137\x63\x75\163\x74\x6f\x6d\145\x72") {
goto Bl;
}
if (isset($_POST["\x6f\160\x74\x69\x6f\x6e"]) and $_POST["\x6f\x70\164\x69\x6f\x6e"] == "\155\157\x5f\163\141\x6d\154\x5f\143\157\x6e\164\x61\x63\164\137\165\x73\x5f\161\x75\x65\x72\171\x5f\157\160\164\x69\157\156") {
goto Pq;
}
if (isset($_POST["\157\160\164\151\157\x6e"]) and $_POST["\x6f\x70\164\151\x6f\x6e"] == "\x6d\x6f\x5f\x73\141\155\x6c\137\162\x65\x73\145\156\x64\137\157\x74\x70\x5f\145\x6d\141\x69\x6c") {
goto Mb;
}
if (isset($_POST["\157\160\164\x69\x6f\156"]) and $_POST["\x6f\160\x74\151\157\x6e"] == "\155\x6f\137\163\141\x6d\154\137\162\145\163\145\x6e\144\137\x6f\x74\160\137\160\150\x6f\x6e\x65") {
goto Vs;
}
if (isset($_POST["\157\x70\164\x69\157\x6e"]) and $_POST["\157\x70\164\x69\x6f\x6e"] == "\x6d\x6f\x5f\163\x61\155\154\137\147\157\x5f\142\x61\x63\153") {
goto aq;
}
if (isset($_POST["\x6f\160\x74\x69\157\156"]) and $_POST["\x6f\x70\164\x69\157\x6e"] == "\x6d\157\x5f\163\x61\x6d\x6c\137\162\145\x67\x69\163\164\x65\162\137\167\151\164\150\137\160\150\x6f\156\145\137\x6f\160\x74\x69\x6f\x6e") {
goto dK;
}
if (isset($_POST["\157\x70\164\151\x6f\x6e"]) and $_POST["\x6f\160\164\151\x6f\156"] == "\x6d\x6f\x5f\163\x61\x6d\154\137\x72\145\x67\151\163\x74\145\x72\145\x64\137\157\156\x6c\x79\x5f\x61\x63\x63\x65\x73\163\137\x6f\160\x74\x69\x6f\x6e") {
goto tV;
}
if (isset($_POST["\157\x70\164\151\x6f\x6e"]) and $_POST["\157\x70\x74\x69\157\x6e"] == "\155\157\x5f\x73\x61\155\154\137\x73\x75\142\x73\x69\164\145\137\141\x63\x63\x65\163\x73\137\144\145\x6e\x69\145\x64\137\157\x70\164\151\x6f\156") {
goto bZ;
}
if (isset($_POST["\157\x70\164\151\157\x6e"]) and $_POST["\157\x70\x74\151\157\156"] == "\155\x6f\137\x73\141\155\154\x5f\146\x6f\x72\x63\x65\x5f\x61\x75\164\x68\145\x6e\x74\151\x63\141\x74\151\157\156\x5f\x6f\160\164\151\157\156") {
goto kz;
}
if (isset($_POST["\157\x70\x74\151\x6f\156"]) and $_POST["\157\x70\x74\151\157\156"] == "\155\x6f\137\x73\141\x6d\x6c\137\145\156\x61\x62\x6c\145\137\154\x6f\147\x69\x6e\137\x72\x65\x64\151\162\x65\143\x74\137\157\160\164\151\x6f\156") {
goto R6;
}
if (isset($_POST["\157\x70\x74\151\x6f\156"]) and $_POST["\157\160\x74\151\x6f\156"] == "\155\157\137\163\141\155\x6c\137\x65\x6e\141\x62\x6c\x65\x5f\x63\x6c\x6f\165\144\137\x62\162\x6f\x6b\145\162") {
goto jq;
}
if (isset($_POST["\x6f\160\164\151\x6f\156"]) and $_POST["\157\x70\164\151\x6f\156"] == "\x6d\157\x5f\163\x61\x6d\x6c\137\141\x6c\154\x6f\167\137\167\x70\x5f\163\151\x67\156\151\156\x5f\x6f\160\164\151\x6f\x6e") {
goto KG;
}
if (!(isset($_POST["\157\160\164\x69\157\156"]) && $_POST["\x6f\x70\x74\x69\x6f\156"] == "\x6d\x6f\137\x73\141\155\x6c\137\x66\157\x72\147\157\164\137\x70\141\x73\163\167\157\x72\x64\137\x66\x6f\x72\x6d\x5f\x6f\x70\x74\151\157\x6e")) {
goto a4;
}
if (mo_saml_is_curl_installed()) {
goto Rw;
}
update_site_option("\155\x6f\x5f\x73\141\x6d\154\137\155\x65\163\x73\x61\x67\145", "\105\122\x52\x4f\x52\72\x20\x3c\141\x20\x68\162\x65\x66\x3d\42\x68\x74\164\x70\x3a\x2f\x2f\160\x68\x70\56\156\145\164\57\x6d\141\156\x75\141\154\57\x65\156\57\143\165\x72\x6c\56\x69\156\163\x74\x61\x6c\154\141\x74\151\157\156\x2e\x70\x68\x70\42\x20\x74\141\x72\147\x65\164\75\42\x5f\142\154\141\156\x6b\x22\76\x50\110\120\x20\143\125\x52\x4c\x20\x65\x78\164\145\x6e\163\x69\157\156\x3c\57\141\x3e\40\x69\163\x20\156\x6f\x74\x20\151\x6e\163\x74\141\154\x6c\x65\x64\40\157\x72\40\144\151\x73\141\142\x6c\x65\x64\x2e\40\x52\145\x73\x65\156\x64\40\x4f\124\120\40\146\x61\x69\x6c\x65\144\x2e");
$this->mo_saml_show_error_message();
return;
Rw:
$y9 = get_site_option("\155\157\137\163\x61\x6d\x6c\137\141\144\155\x69\x6e\x5f\145\155\141\x69\x6c");
$kh = new Customersaml();
$KK = json_decode($kh->mo_saml_forgot_password($y9), true);
if (strcasecmp($KK["\163\x74\141\x74\165\163"], "\123\125\103\103\x45\123\x53") == 0) {
goto sh;
}
update_site_option("\155\157\x5f\163\141\155\154\x5f\155\x65\163\x73\x61\147\145", "\x41\x6e\x20\x65\162\162\x6f\162\40\x6f\143\x63\x75\162\145\144\x20\167\150\151\x6c\145\x20\x70\162\x6f\143\x65\x73\163\151\x6e\147\40\171\157\x75\162\x20\162\x65\161\165\x65\x73\164\56\40\x50\154\x65\141\163\145\40\124\162\x79\40\x61\x67\141\x69\x6e\x2e");
$this->mo_saml_show_error_message();
goto on;
sh:
update_site_option("\x6d\157\x5f\163\x61\x6d\x6c\137\x6d\145\163\163\141\x67\x65", "\x59\157\165\x72\40\x70\141\163\163\167\157\162\x64\x20\x68\x61\163\40\142\145\x65\156\40\162\145\163\x65\164\x20\163\x75\143\x63\x65\x73\x73\146\x75\154\x6c\171\56\40\120\154\x65\141\163\x65\40\145\x6e\x74\x65\x72\x20\x74\x68\x65\x20\156\145\167\40\160\141\163\x73\167\157\x72\x64\40\x73\145\x6e\x74\40\164\157\40" . $y9 . "\56");
$this->mo_saml_show_success_message();
on:
a4:
goto Zy;
KG:
if (array_key_exists("\x6d\157\x5f\x73\x61\x6d\x6c\x5f\141\154\x6c\x6f\167\137\167\x70\x5f\x73\151\147\x6e\151\x6e", $_POST)) {
goto DV;
}
$zP = "\146\141\154\x73\145";
goto Cc;
DV:
$zP = $_POST["\x6d\x6f\x5f\163\141\155\x6c\x5f\x61\x6c\x6c\157\167\137\167\160\x5f\163\151\x67\x6e\151\x6e"];
Cc:
if ($zP == "\164\162\x75\x65") {
goto zI;
}
update_site_option("\x6d\x6f\x5f\x73\141\155\154\x5f\141\x6c\x6c\157\167\x5f\167\160\137\163\151\147\156\x69\156", '');
goto Ez;
zI:
update_site_option("\155\157\x5f\x73\141\155\x6c\x5f\x61\154\x6c\157\167\x5f\x77\x70\x5f\163\x69\x67\x6e\151\156", "\x74\162\x75\145");
Ez:
update_site_option("\155\x6f\137\x73\141\155\x6c\137\x6d\x65\163\163\141\x67\x65", "\x53\151\x67\156\40\x49\156\x20\163\x65\164\x74\151\156\147\163\x20\165\x70\x64\x61\164\145\144\56");
$this->mo_saml_show_success_message();
Zy:
goto AR;
jq:
if (array_key_exists("\155\157\137\x73\141\x6d\154\x5f\145\x6e\x61\x62\154\x65\137\143\x6c\157\165\x64\137\x62\162\x6f\153\145\x72", $_POST)) {
goto Y_;
}
$rY = "\x66\141\154\x73\x65";
goto xI;
Y_:
$rY = $_POST["\x6d\157\x5f\163\x61\x6d\154\x5f\145\x6e\141\142\154\x65\x5f\143\154\157\x75\x64\137\x62\162\x6f\x6b\x65\x72"];
xI:
if ($rY == "\164\162\x75\145") {
goto Hw;
}
update_site_option("\155\x6f\137\163\141\x6d\154\x5f\145\156\141\142\x6c\x65\x5f\143\x6c\157\x75\x64\x5f\142\x72\157\153\x65\162", "\x66\x61\154\x73\145");
goto E5;
Hw:
update_site_option("\155\x6f\x5f\163\x61\155\x6c\x5f\145\x6e\x61\x62\x6c\145\x5f\x63\154\x6f\x75\144\137\x62\x72\x6f\153\x65\x72", "\x74\x72\165\145");
E5:
update_site_option("\x6d\157\x5f\x73\141\x6d\154\137\x6d\x65\x73\163\141\147\145", "\123\x69\x67\156\x20\x69\x6e\40\157\160\164\151\x6f\x6e\x73\x20\x75\160\x64\141\x74\145\144\x2e");
$this->mo_saml_show_success_message();
AR:
goto FL;
R6:
if (mo_saml_is_sp_configured()) {
goto eX;
}
update_site_option("\155\x6f\137\163\x61\155\154\x5f\x6d\145\x73\x73\x61\x67\x65", "\x50\x6c\145\x61\x73\145\40\143\x6f\155\x70\154\x65\x74\x65\x20\74\141\40\x68\162\145\x66\x3d\x22" . add_query_arg(array("\164\x61\142" => "\163\141\x76\145"), $_SERVER["\122\105\x51\x55\x45\123\x54\137\x55\x52\111"]) . "\42\40\57\x3e\x53\145\162\166\x69\x63\x65\40\x50\162\x6f\166\x69\x64\145\x72\74\x2f\141\76\x20\143\157\156\x66\x69\147\165\162\x61\164\151\157\x6e\x20\146\151\162\x73\164\56");
$this->mo_saml_show_error_message();
goto MU;
eX:
if (array_key_exists("\155\x6f\137\163\x61\155\x6c\x5f\145\x6e\141\x62\x6c\x65\x5f\154\x6f\147\151\156\x5f\x72\x65\144\151\162\145\x63\164", $_POST)) {
goto Q_;
}
$rY = "\146\141\154\x73\145";
goto gw;
Q_:
$rY = $_POST["\x6d\x6f\137\x73\141\x6d\x6c\x5f\145\156\x61\x62\x6c\145\x5f\154\157\x67\x69\156\x5f\162\145\144\151\162\145\x63\164"];
gw:
if ($rY == "\x74\162\x75\145") {
goto B4;
}
update_site_option("\155\157\137\x73\141\155\x6c\137\x65\x6e\141\x62\x6c\145\137\154\x6f\147\151\156\x5f\162\x65\144\151\162\145\143\x74", '');
update_site_option("\x6d\x6f\137\163\141\x6d\154\137\x61\x6c\154\157\167\137\167\x70\x5f\163\x69\147\156\151\156", '');
goto iG;
B4:
update_site_option("\x6d\157\x5f\163\141\155\154\137\145\156\x61\142\x6c\145\137\154\157\147\x69\x6e\x5f\x72\x65\x64\151\x72\x65\143\164", "\164\x72\165\x65");
update_site_option("\x6d\x6f\x5f\x73\141\x6d\x6c\x5f\x61\154\154\157\167\x5f\x77\x70\x5f\163\151\147\x6e\x69\156", "\x74\162\x75\x65");
iG:
update_site_option("\155\157\x5f\163\x61\x6d\154\137\155\x65\163\163\141\x67\145", "\123\151\147\156\40\x69\156\40\157\x70\x74\151\157\x6e\163\40\165\x70\144\141\164\x65\x64\56");
$this->mo_saml_show_success_message();
MU:
FL:
goto iZ;
kz:
if (mo_saml_is_sp_configured()) {
goto Aj;
}
update_site_option("\155\x6f\x5f\163\x61\155\x6c\137\155\145\163\163\x61\147\145", "\120\154\145\141\x73\145\40\143\157\155\x70\x6c\145\x74\x65\40\x3c\x61\x20\150\162\x65\146\x3d\42" . add_query_arg(array("\164\x61\142" => "\163\x61\166\x65"), $_SERVER["\x52\x45\121\125\105\123\124\137\125\122\111"]) . "\42\40\x2f\x3e\123\145\162\166\151\143\145\x20\x50\x72\157\166\x69\144\145\x72\x3c\57\x61\76\x20\x63\x6f\x6e\146\x69\x67\165\162\x61\x74\x69\157\156\40\x66\x69\162\163\x74\56");
$this->mo_saml_show_error_message();
goto ZF;
Aj:
if (array_key_exists("\x6d\157\137\x73\x61\x6d\x6c\137\146\157\162\x63\x65\137\x61\165\164\150\145\x6e\x74\151\x63\x61\x74\151\157\x6e", $_POST)) {
goto Ib;
}
$rY = "\x66\x61\154\163\145";
goto kB;
Ib:
$rY = $_POST["\x6d\x6f\137\163\x61\x6d\154\137\x66\157\162\143\145\x5f\x61\165\x74\x68\145\156\164\x69\x63\x61\164\151\x6f\156"];
kB:
if ($rY == "\x74\162\165\x65") {
goto UK;
}
update_site_option("\x6d\157\137\x73\141\x6d\154\137\146\157\162\143\145\137\141\165\164\x68\x65\156\x74\x69\x63\141\164\151\x6f\x6e", '');
goto gP;
UK:
update_site_option("\155\x6f\137\163\x61\155\x6c\x5f\146\x6f\x72\x63\x65\x5f\141\165\x74\x68\145\156\x74\151\x63\x61\164\151\157\x6e", "\x74\x72\165\145");
gP:
update_site_option("\155\157\x5f\x73\141\x6d\x6c\137\x6d\x65\x73\x73\x61\147\x65", "\x53\x69\x67\156\40\151\x6e\40\x6f\160\x74\151\157\x6e\x73\40\x75\x70\x64\x61\x74\145\x64\x2e");
$this->mo_saml_show_success_message();
ZF:
iZ:
goto uK;
bZ:
if (mo_saml_is_sp_configured()) {
goto Hs;
}
update_site_option("\155\x6f\x5f\163\x61\x6d\154\137\155\145\x73\163\141\x67\x65", "\120\154\x65\x61\x73\145\40\143\x6f\155\x70\x6c\145\x74\145\x20\x3c\x61\40\150\162\x65\146\x3d\42" . add_query_arg(array("\164\141\x62" => "\x73\141\166\x65"), $_SERVER["\x52\105\121\125\x45\123\124\x5f\x55\x52\x49"]) . "\x22\x20\x2f\x3e\x53\x65\x72\166\x69\x63\145\x20\120\162\x6f\x76\x69\144\145\162\74\x2f\141\76\40\x63\x6f\x6e\146\151\x67\x75\x72\141\164\151\x6f\156\x20\146\x69\x72\x73\164\x2e");
$this->mo_saml_show_error_message();
goto DC;
Hs:
if (array_key_exists("\155\x6f\137\x73\141\155\154\x5f\163\x75\x62\163\151\164\145\x5f\141\143\143\145\163\x73\137\144\x65\156\151\145\x64", $_POST)) {
goto XE;
}
$xJ = "\146\x61\x6c\x73\x65";
goto JM;
XE:
$xJ = $_POST["\155\157\x5f\x73\141\155\154\137\163\165\x62\163\151\164\145\x5f\x61\143\x63\x65\163\163\137\x64\x65\156\151\x65\144"];
JM:
if ($xJ == "\164\x72\x75\x65") {
goto JP;
}
update_site_option("\x6d\x6f\137\163\x61\x6d\x6c\137\163\165\x62\x73\151\x74\x65\x5f\x61\143\x63\x65\x73\163\137\144\145\156\x69\x65\x64", '');
goto BQ;
JP:
update_site_option("\155\x6f\137\163\x61\x6d\x6c\x5f\x73\x75\x62\163\151\164\145\137\x61\x63\143\145\163\163\137\x64\x65\x6e\x69\145\144", "\x74\x72\165\145");
BQ:
update_site_option("\155\157\137\x73\x61\155\154\x5f\155\145\163\163\141\x67\145", "\123\151\x67\156\x20\x69\156\40\157\160\164\x69\x6f\156\x73\40\x75\160\144\x61\164\x65\144\56");
$this->mo_saml_show_success_message();
DC:
uK:
goto pe;
tV:
if (mo_saml_is_sp_configured()) {
goto HO;
}
update_site_option("\155\157\137\163\141\x6d\x6c\137\x6d\145\x73\163\x61\147\x65", "\x50\154\145\141\x73\x65\x20\x63\157\x6d\160\x6c\x65\x74\x65\x20\74\x61\x20\x68\162\145\x66\x3d\42" . add_query_arg(array("\164\141\142" => "\x73\141\166\145"), $_SERVER["\122\x45\121\125\105\123\124\x5f\x55\x52\111"]) . "\42\x20\x2f\x3e\123\145\x72\166\x69\143\x65\x20\x50\x72\157\x76\x69\144\145\162\x3c\57\141\x3e\40\143\x6f\156\146\151\147\x75\x72\141\x74\x69\157\156\40\x66\x69\x72\163\x74\x2e");
$this->mo_saml_show_error_message();
goto sz;
HO:
if (array_key_exists("\x6d\157\137\x73\141\x6d\x6c\137\x72\x65\x67\151\163\164\145\x72\x65\144\x5f\x6f\156\x6c\x79\x5f\141\143\x63\145\x73\163", $_POST)) {
goto W4;
}
$rY = "\x66\x61\154\163\x65";
goto bE;
W4:
$rY = $_POST["\155\x6f\x5f\163\x61\155\x6c\x5f\162\145\x67\151\163\164\x65\x72\145\144\137\x6f\x6e\x6c\171\137\141\x63\143\x65\163\x73"];
bE:
if ($rY == "\x74\162\x75\x65") {
goto oY;
}
update_site_option("\155\x6f\137\163\x61\155\x6c\x5f\x72\145\x67\151\163\164\145\162\x65\x64\137\157\156\x6c\x79\x5f\x61\x63\143\145\x73\x73", '');
goto rE;
oY:
update_site_option("\x6d\157\137\163\x61\x6d\x6c\137\x72\x65\147\x69\x73\x74\x65\162\145\x64\137\x6f\x6e\x6c\x79\x5f\141\143\143\145\x73\x73", "\164\162\x75\x65");
rE:
update_site_option("\155\x6f\x5f\163\x61\155\154\x5f\155\145\163\163\141\x67\145", "\x53\151\x67\156\40\151\156\x20\x6f\x70\164\151\x6f\x6e\x73\x20\165\160\144\141\x74\145\x64\x2e");
$this->mo_saml_show_success_message();
sz:
pe:
goto Np;
dK:
if (mo_saml_is_curl_installed()) {
goto jW;
}
update_site_option("\155\157\x5f\x73\141\x6d\154\x5f\155\x65\163\x73\x61\147\145", "\x45\x52\x52\x4f\122\72\x20\74\141\x20\150\162\x65\146\75\42\x68\164\x74\x70\72\x2f\x2f\160\x68\160\56\x6e\x65\x74\x2f\155\141\x6e\165\x61\154\57\145\156\x2f\143\165\162\154\x2e\151\156\163\x74\141\154\x6c\141\164\x69\x6f\156\x2e\x70\x68\x70\42\40\164\141\x72\147\145\x74\x3d\42\x5f\142\x6c\141\x6e\153\42\76\120\x48\120\40\x63\125\122\114\40\145\x78\164\145\x6e\x73\151\157\x6e\x3c\x2f\x61\76\x20\x69\x73\40\x6e\x6f\x74\40\x69\x6e\x73\x74\141\154\154\x65\144\x20\157\162\40\144\151\163\x61\142\154\x65\144\x2e\x20\x52\145\163\145\x6e\x64\40\x4f\124\x50\x20\x66\x61\x69\x6c\145\x64\x2e");
$this->mo_saml_show_error_message();
return;
jW:
$bN = sanitize_text_field($_POST["\160\x68\x6f\156\145"]);
$bN = str_replace("\40", '', $bN);
$bN = str_replace("\x2d", '', $bN);
update_site_option("\x6d\157\x5f\x73\141\155\x6c\137\141\x64\155\x69\x6e\137\160\150\157\156\145", $bN);
$kh = new CustomerSaml();
$KK = json_decode($kh->send_otp_token('', $bN, FALSE, TRUE), true);
if (strcasecmp($KK["\x73\x74\x61\164\x75\163"], "\x53\125\x43\103\x45\123\x53") == 0) {
goto kr;
}
update_site_option("\x6d\x6f\x5f\x73\141\x6d\154\x5f\155\x65\163\163\x61\x67\x65", "\124\x68\145\162\x65\x20\167\x61\163\x20\141\x6e\x20\x65\x72\162\x6f\162\40\151\156\40\163\145\x6e\144\x69\x6e\x67\x20\123\x4d\x53\56\40\x50\x6c\x65\x61\x73\145\40\143\x6c\x69\x63\x6b\40\157\x6e\40\122\145\x73\x65\156\x64\40\117\124\x50\40\x74\157\40\x74\x72\171\x20\x61\x67\x61\151\x6e\x2e");
update_site_option("\x6d\x6f\137\163\x61\x6d\x6c\x5f\162\x65\147\151\x73\x74\x72\x61\x74\x69\157\x6e\x5f\x73\x74\x61\164\x75\x73", "\x4d\x4f\x5f\x4f\124\120\137\x44\105\x4c\111\126\105\122\x45\x44\x5f\x46\x41\111\114\x55\x52\105\137\120\110\117\x4e\x45");
$this->mo_saml_show_error_message();
goto ym;
kr:
update_site_option("\155\157\x5f\163\141\155\x6c\137\x6d\145\163\163\141\x67\x65", "\x20\x41\40\x6f\x6e\145\x20\164\x69\155\145\40\160\141\163\163\x63\x6f\x64\145\x20\x69\x73\x20\163\x65\156\164\40\x74\x6f\40" . get_site_option("\x6d\x6f\x5f\x73\141\x6d\154\137\141\144\x6d\x69\156\137\160\150\x6f\156\x65") . "\56\x20\120\x6c\x65\x61\x73\145\x20\145\156\164\145\162\x20\x74\150\145\40\x6f\x74\160\x20\x68\x65\x72\145\x20\164\157\40\166\x65\x72\x69\x66\171\x20\x79\x6f\165\162\x20\145\155\141\151\x6c\x2e");
update_site_option("\155\157\x5f\163\141\x6d\x6c\x5f\x74\x72\x61\156\x73\x61\143\x74\151\x6f\x6e\111\144", $KK["\x74\x78\x49\x64"]);
update_site_option("\155\157\x5f\x73\x61\155\154\137\x72\x65\147\x69\x73\x74\x72\141\x74\151\157\x6e\137\x73\164\141\x74\165\163", "\x4d\x4f\137\117\124\120\137\104\105\x4c\x49\x56\105\x52\105\104\137\x53\125\x43\x43\x45\123\123\137\x50\x48\117\116\105");
$this->mo_saml_show_success_message();
ym:
Np:
goto Xf;
aq:
update_site_option("\x6d\157\x5f\x73\x61\x6d\x6c\137\162\x65\147\151\x73\x74\x72\x61\164\151\157\156\137\163\x74\141\164\165\x73", '');
update_site_option("\x6d\x6f\x5f\x73\x61\155\x6c\x5f\x76\x65\162\151\146\x79\x5f\x63\165\x73\164\x6f\x6d\x65\162", '');
delete_site_option("\155\157\x5f\163\141\x6d\154\x5f\x6e\x65\x77\x5f\x72\x65\x67\151\x73\164\162\141\164\x69\157\x6e");
delete_site_option("\155\x6f\x5f\x73\x61\155\x6c\x5f\x61\x64\155\x69\156\x5f\x65\x6d\141\151\154");
delete_site_option("\155\157\x5f\x73\x61\155\154\x5f\141\x64\155\x69\156\137\160\150\157\x6e\145");
delete_site_option("\163\x6d\154\x5f\x6c\153");
delete_site_option("\164\x5f\x73\151\164\145\137\x73\164\141\x74\165\x73");
delete_site_option("\x73\151\x74\x65\137\143\x6b\x5f\x6c");
delete_site_option("\156\x6f\x5f\x73\142\163");
delete_site_option("\x75\x73\x65\x72\x5f\x61\154\145\x72\164\137\x65\155\141\x69\154\137\163\x65\x6e\x74");
delete_site_option("\154\x69\x63\145\x6e\163\x65\137\x61\154\x65\x72\x74\137\145\155\141\x69\x6c\x5f\163\x65\156\x74");
delete_site_option("\x6d\157\137\163\x61\155\154\x5f\x61\x6c\x65\162\164\137\163\x65\x6e\x74\x5f\146\157\162\x5f\x6f\x6e\145");
delete_site_option("\x6d\x6f\137\x73\141\x6d\x6c\137\141\154\x65\162\x74\137\x73\145\x6e\x74\137\146\157\162\137\x74\x77\x6f");
delete_site_option("\155\157\137\x73\x61\155\154\x5f\165\163\162\x5f\x6c\x6d\164");
Xf:
goto tO;
Vs:
if (mo_saml_is_curl_installed()) {
goto fC;
}
update_site_option("\x6d\157\x5f\163\141\155\154\x5f\155\145\163\163\141\x67\x65", "\105\x52\122\x4f\122\72\x20\74\141\40\x68\x72\145\146\x3d\x22\x68\164\x74\160\72\x2f\57\x70\x68\160\56\156\x65\x74\x2f\x6d\141\156\x75\x61\154\x2f\145\156\57\x63\x75\x72\x6c\56\151\x6e\163\164\x61\154\154\141\x74\x69\157\156\x2e\x70\150\160\42\x20\x74\x61\x72\x67\145\164\x3d\x22\x5f\142\154\x61\156\153\42\x3e\x50\x48\120\x20\143\125\122\x4c\40\x65\x78\164\x65\156\163\x69\157\156\x3c\x2f\141\76\40\x69\x73\40\156\157\164\x20\x69\x6e\x73\164\x61\154\x6c\x65\144\x20\157\x72\x20\x64\x69\x73\141\x62\154\x65\x64\x2e\40\122\x65\163\x65\156\144\40\117\x54\x50\x20\146\141\151\154\x65\x64\56");
$this->mo_saml_show_error_message();
return;
fC:
$bN = get_site_option("\155\157\137\163\x61\155\x6c\x5f\x61\144\x6d\151\x6e\137\x70\150\157\156\145");
$kh = new CustomerSaml();
$KK = json_decode($kh->send_otp_token('', $bN, FALSE, TRUE), true);
if (strcasecmp($KK["\163\164\x61\x74\165\163"], "\123\x55\x43\x43\105\123\x53") == 0) {
goto kK;
}
update_site_option("\x6d\157\137\x73\141\x6d\x6c\137\x6d\145\163\163\141\147\145", "\x54\150\x65\162\x65\40\x77\141\163\40\141\156\x20\145\162\x72\157\162\40\x69\x6e\40\x73\x65\x6e\x64\x69\x6e\x67\x20\x65\155\x61\151\154\56\40\x50\154\145\x61\x73\145\40\x63\154\x69\x63\x6b\x20\x6f\156\x20\122\145\163\x65\156\x64\x20\x4f\x54\x50\x20\x74\x6f\x20\x74\x72\x79\40\141\147\x61\x69\x6e\x2e");
update_site_option("\x6d\x6f\137\163\x61\x6d\154\x5f\x72\x65\147\x69\x73\164\162\x61\x74\x69\157\156\137\x73\x74\x61\164\165\163", "\115\117\x5f\x4f\x54\120\137\x44\x45\114\111\126\x45\122\105\x44\137\106\101\111\x4c\x55\x52\x45\137\x50\110\117\116\x45");
$this->mo_saml_show_error_message();
goto yF;
kK:
update_site_option("\x6d\157\137\x73\141\155\x6c\x5f\x6d\145\163\x73\x61\147\x65", "\40\101\x20\157\x6e\x65\40\164\x69\x6d\145\x20\x70\141\163\x73\x63\157\144\145\x20\x69\x73\40\163\145\x6e\x74\40\x74\157\40" . $bN . "\40\141\147\141\x69\156\56\40\x50\x6c\x65\x61\163\145\40\x63\150\x65\x63\x6b\x20\x69\x66\x20\171\157\x75\x20\147\157\x74\40\x74\x68\x65\40\x6f\164\x70\x20\x61\x6e\x64\x20\145\x6e\164\145\162\40\x69\x74\x20\150\x65\x72\x65\56");
update_site_option("\x6d\x6f\137\x73\x61\x6d\154\x5f\164\162\x61\x6e\x73\x61\x63\164\151\157\x6e\x49\x64", $KK["\164\170\x49\x64"]);
update_site_option("\x6d\157\x5f\x73\141\x6d\x6c\137\x72\145\147\151\x73\164\162\x61\x74\151\x6f\156\137\x73\164\141\x74\x75\163", "\x4d\117\x5f\117\x54\x50\137\104\x45\114\x49\126\x45\x52\x45\104\137\123\x55\x43\103\x45\123\x53\x5f\120\x48\117\116\x45");
$this->mo_saml_show_success_message();
yF:
tO:
goto yS;
Mb:
if (mo_saml_is_curl_installed()) {
goto VJ;
}
update_site_option("\x6d\x6f\137\x73\x61\x6d\154\x5f\155\x65\163\163\x61\147\x65", "\105\122\x52\117\122\x3a\40\x3c\141\40\x68\x72\x65\x66\75\x22\x68\x74\164\x70\x3a\x2f\57\x70\x68\160\x2e\x6e\145\164\x2f\x6d\x61\156\165\141\154\57\145\x6e\x2f\143\x75\x72\154\x2e\151\x6e\x73\164\x61\x6c\154\x61\x74\151\157\156\x2e\160\150\160\42\40\164\141\x72\x67\x65\x74\75\x22\x5f\142\x6c\141\x6e\153\42\76\120\110\120\40\143\125\122\x4c\x20\145\x78\x74\x65\156\163\x69\x6f\x6e\x3c\57\141\x3e\x20\x69\163\x20\x6e\157\x74\40\151\156\163\164\141\154\154\x65\144\x20\157\x72\x20\144\151\x73\x61\x62\154\x65\144\x2e\x20\122\145\163\145\x6e\x64\x20\x4f\x54\120\40\x66\x61\x69\154\x65\144\x2e");
$this->mo_saml_show_error_message();
return;
VJ:
$y9 = get_site_option("\155\x6f\137\163\x61\x6d\x6c\x5f\x61\x64\x6d\x69\156\x5f\x65\x6d\141\151\154");
$kh = new CustomerSaml();
$KK = json_decode($kh->send_otp_token($y9, ''), true);
if (strcasecmp($KK["\x73\164\141\164\165\x73"], "\123\x55\x43\103\x45\x53\123") == 0) {
goto P5;
}
update_site_option("\155\157\x5f\163\141\155\x6c\x5f\x6d\145\163\163\x61\x67\x65", "\124\x68\145\x72\145\40\167\x61\x73\40\x61\156\x20\145\162\162\x6f\162\x20\151\x6e\40\163\145\x6e\144\x69\156\147\x20\145\x6d\x61\x69\154\56\x20\120\154\x65\x61\x73\x65\x20\143\154\x69\143\153\40\157\x6e\x20\x52\145\x73\x65\x6e\x64\40\x4f\124\120\40\164\x6f\x20\164\162\171\x20\x61\147\x61\151\x6e\56");
update_site_option("\155\157\137\163\x61\155\x6c\137\162\145\147\x69\163\164\x72\x61\164\x69\157\156\137\163\x74\x61\x74\165\x73", "\x4d\117\x5f\117\x54\x50\137\104\105\114\111\x56\x45\x52\105\104\137\x46\x41\111\x4c\125\122\x45\137\x45\115\101\111\114");
$this->mo_saml_show_error_message();
goto X1;
P5:
update_site_option("\x6d\x6f\137\163\141\x6d\x6c\x5f\x6d\145\163\163\141\147\x65", "\40\x41\x20\x6f\x6e\x65\x20\x74\x69\x6d\145\40\160\141\x73\x73\x63\157\x64\145\40\151\163\x20\163\145\x6e\164\x20\164\x6f\x20" . get_site_option("\155\x6f\x5f\x73\x61\x6d\x6c\x5f\141\144\155\151\x6e\137\x65\x6d\141\x69\x6c") . "\x20\141\x67\141\x69\156\x2e\40\x50\x6c\x65\x61\163\x65\40\143\x68\145\143\x6b\x20\x69\x66\40\171\x6f\x75\40\x67\x6f\x74\x20\164\150\145\40\x6f\x74\160\40\141\x6e\144\x20\145\156\x74\x65\x72\40\151\164\x20\x68\145\162\145\56");
update_site_option("\155\157\137\163\x61\155\x6c\137\164\x72\141\x6e\x73\141\x63\164\x69\x6f\x6e\x49\x64", $KK["\164\x78\111\x64"]);
update_site_option("\x6d\157\137\x73\x61\x6d\x6c\137\x72\x65\x67\x69\163\x74\162\141\164\151\157\x6e\137\163\x74\141\x74\165\x73", "\115\117\137\117\x54\120\x5f\104\x45\114\111\126\x45\122\105\104\x5f\123\125\103\103\105\x53\123\x5f\105\115\x41\x49\114");
$this->mo_saml_show_success_message();
X1:
yS:
goto eV;
Pq:
if (mo_saml_is_curl_installed()) {
goto ft;
}
update_site_option("\x6d\x6f\x5f\163\x61\155\x6c\x5f\x6d\x65\x73\163\x61\x67\145", "\105\x52\122\117\122\x3a\x20\x3c\141\40\150\x72\x65\146\x3d\x22\150\x74\x74\160\72\x2f\57\x70\150\x70\x2e\156\x65\x74\x2f\x6d\141\x6e\x75\x61\x6c\57\145\x6e\x2f\x63\165\162\x6c\x2e\151\x6e\163\164\141\154\154\141\164\151\x6f\x6e\x2e\160\150\x70\x22\40\x74\x61\x72\x67\x65\164\75\x22\x5f\x62\x6c\x61\156\x6b\x22\x3e\x50\x48\120\x20\143\125\x52\114\40\x65\x78\164\145\x6e\163\151\x6f\156\74\x2f\x61\76\40\151\163\40\x6e\157\164\x20\x69\156\163\164\x61\154\x6c\145\x64\x20\x6f\x72\x20\x64\151\x73\141\x62\x6c\x65\x64\x2e\x20\121\x75\x65\x72\171\x20\x73\x75\x62\155\x69\x74\x20\x66\141\x69\154\x65\144\x2e");
$this->mo_saml_show_error_message();
return;
ft:
$y9 = $_POST["\x6d\x6f\137\x73\141\155\x6c\137\x63\x6f\156\164\x61\143\164\x5f\x75\163\137\145\155\x61\151\x6c"];
$bN = $_POST["\x6d\157\x5f\163\141\155\x6c\137\x63\x6f\x6e\164\141\x63\x74\137\165\163\x5f\x70\x68\x6f\156\145"];
$lm = $_POST["\155\157\137\163\141\x6d\x6c\x5f\143\157\x6e\164\141\143\x74\137\x75\x73\x5f\161\x75\x65\x72\171"];
$kh = new CustomerSaml();
if ($this->mo_saml_check_empty_or_null($y9) || $this->mo_saml_check_empty_or_null($lm)) {
goto ca;
}
$cV = $kh->submit_contact_us($y9, $bN, $lm);
if ($cV == false) {
goto N9;
}
update_site_option("\x6d\x6f\137\163\141\x6d\x6c\137\155\x65\x73\x73\x61\147\x65", "\124\x68\141\156\153\x73\40\x66\x6f\162\x20\147\x65\x74\164\x69\x6e\147\40\151\x6e\40\x74\157\165\143\150\41\40\127\145\40\163\150\x61\154\154\x20\x67\145\164\x20\x62\141\143\x6b\x20\164\157\x20\171\x6f\165\x20\163\x68\157\162\164\154\171\x2e");
$this->mo_saml_show_success_message();
goto ON;
N9:
update_site_option("\x6d\157\x5f\x73\x61\155\x6c\x5f\155\145\x73\x73\x61\147\x65", "\131\157\x75\162\x20\161\165\145\x72\x79\40\x63\x6f\x75\154\x64\40\156\157\164\40\142\x65\40\x73\x75\142\155\x69\164\164\x65\x64\x2e\40\120\x6c\x65\141\x73\145\40\164\x72\x79\40\141\147\141\x69\x6e\x2e");
$this->mo_saml_show_error_message();
ON:
goto Mx;
ca:
update_site_option("\155\157\x5f\163\141\155\x6c\x5f\155\x65\163\163\x61\147\145", "\x50\x6c\145\141\163\x65\x20\146\151\154\154\x20\165\160\40\x45\x6d\x61\151\154\40\141\x6e\x64\40\x51\165\x65\162\x79\40\146\x69\x65\154\x64\x73\40\x74\157\x20\163\165\x62\155\x69\164\40\x79\x6f\165\162\x20\161\x75\x65\x72\x79\56");
$this->mo_saml_show_error_message();
Mx:
eV:
goto KT;
Bl:
if (mo_saml_is_curl_installed()) {
goto da;
}
update_site_option("\x6d\157\x5f\x73\x61\x6d\x6c\x5f\155\x65\x73\x73\x61\147\x65", "\105\x52\x52\x4f\x52\72\40\74\x61\x20\150\x72\145\146\x3d\x22\150\164\x74\x70\x3a\x2f\57\x70\x68\160\x2e\156\145\x74\57\155\x61\156\x75\141\x6c\57\145\x6e\57\x63\165\162\x6c\x2e\x69\x6e\x73\164\141\x6c\154\141\164\151\157\x6e\56\160\x68\160\42\x20\x74\141\162\147\145\164\x3d\42\137\x62\x6c\141\156\153\42\x3e\120\110\120\40\x63\x55\x52\x4c\40\x65\x78\164\145\156\163\x69\157\156\x3c\57\141\76\x20\x69\x73\x20\x6e\157\164\x20\x69\x6e\x73\x74\x61\x6c\154\145\144\x20\157\162\x20\x64\151\x73\141\142\x6c\145\144\56\x20\x4c\x6f\x67\x69\x6e\40\146\x61\x69\154\x65\x64\x2e");
$this->mo_saml_show_error_message();
return;
da:
$y9 = '';
$VG = '';
if ($this->mo_saml_check_empty_or_null($_POST["\x65\155\141\151\154"]) || $this->mo_saml_check_empty_or_null($_POST["\x70\141\163\x73\167\157\x72\x64"])) {
goto sX;
}
$y9 = sanitize_email($_POST["\145\155\x61\x69\x6c"]);
$VG = sanitize_text_field($_POST["\160\x61\163\x73\x77\157\162\144"]);
goto Z8;
sX:
update_site_option("\x6d\157\137\163\141\155\x6c\x5f\x6d\x65\x73\x73\x61\147\145", "\101\x6c\x6c\x20\164\150\145\x20\146\151\145\x6c\x64\163\40\x61\162\145\40\162\145\x71\x75\151\162\x65\x64\x2e\x20\x50\x6c\145\x61\163\145\x20\145\156\164\145\162\x20\x76\x61\154\151\144\x20\145\156\x74\162\151\x65\163\x2e");
$this->mo_saml_show_error_message();
return;
Z8:
update_site_option("\155\x6f\x5f\x73\141\x6d\154\137\141\144\x6d\x69\156\137\x65\x6d\x61\151\x6c", $y9);
update_site_option("\x6d\x6f\137\x73\141\155\x6c\x5f\141\144\x6d\151\x6e\x5f\160\x61\163\x73\x77\157\x72\x64", $VG);
$kh = new Customersaml();
$KK = $kh->get_customer_key();
$Tm = json_decode($KK, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto Zh;
}
update_site_option("\155\x6f\137\x73\x61\x6d\154\x5f\x6d\x65\163\x73\x61\x67\x65", "\x49\156\166\141\x6c\x69\x64\x20\x75\163\145\162\156\141\x6d\145\x20\x6f\162\40\x70\x61\163\163\167\x6f\x72\144\56\x20\x50\x6c\145\x61\163\145\40\164\162\171\40\x61\147\x61\x69\156\56");
$this->mo_saml_show_error_message();
goto iq;
Zh:
update_site_option("\155\157\x5f\163\x61\x6d\x6c\137\x61\x64\155\151\x6e\137\143\x75\163\164\x6f\x6d\145\x72\137\x6b\145\171", $Tm["\151\144"]);
update_site_option("\155\x6f\137\163\x61\155\x6c\137\141\x64\155\x69\x6e\x5f\x61\160\151\x5f\x6b\145\171", $Tm["\141\160\x69\x4b\x65\x79"]);
update_site_option("\155\157\137\x73\141\155\x6c\x5f\143\x75\163\x74\157\x6d\x65\x72\137\164\157\153\x65\x6e", $Tm["\x74\157\153\x65\x6e"]);
update_site_option("\x6d\157\x5f\x73\141\155\154\x5f\141\x64\155\151\x6e\x5f\x70\150\157\156\145", $Tm["\160\150\x6f\156\145"]);
update_site_option("\x6d\x6f\137\163\x61\155\x6c\x5f\x61\144\155\151\156\x5f\160\x61\163\163\x77\157\162\144", '');
update_site_option("\155\157\137\163\141\x6d\x6c\137\155\145\163\163\x61\147\x65", "\x43\165\163\x74\x6f\155\145\162\40\x72\145\164\x72\151\145\x76\x65\x64\x20\x73\165\x63\x63\x65\x73\163\146\x75\x6c\x6c\x79");
update_site_option("\155\x6f\x5f\x73\x61\x6d\154\137\162\145\147\151\x73\x74\162\141\164\x69\157\156\x5f\163\x74\141\x74\165\163", "\x45\x78\x69\163\x74\x69\156\147\x20\125\163\x65\162");
delete_site_option("\x6d\x6f\x5f\163\141\155\154\137\166\145\x72\151\146\x79\x5f\x63\165\x73\164\x6f\x6d\x65\162");
if (get_site_option("\x73\155\154\x5f\x6c\153")) {
goto Fv;
}
$this->mo_saml_show_success_message();
goto Rq;
Fv:
$M3 = get_site_option("\155\157\x5f\163\141\x6d\x6c\x5f\143\x75\163\x74\157\x6d\145\162\137\x74\x6f\x6b\145\x6e");
$yJ = AESEncryption::decrypt_data(get_site_option("\163\x6d\154\x5f\x6c\x6b"), $M3);
$tZ = add_query_arg(array("\x74\141\142" => "\x6c\x69\x63\x65\x6e\x73\151\x6e\147"), $_SERVER["\x52\105\x51\x55\x45\x53\124\137\125\122\x49"]);
$KK = json_decode($kh->mo_saml_verify_license($yJ), true);
if (strcasecmp($KK["\163\164\x61\164\x75\163"], "\x53\125\103\103\x45\x53\x53") == 0) {
goto t0;
}
update_site_option("\x6d\157\137\163\141\155\154\x5f\x6d\x65\x73\163\141\x67\145", "\114\151\143\145\x6e\x73\x65\40\153\145\x79\40\146\157\x72\40\164\150\151\163\x20\x69\x6e\x73\x74\x61\x6e\x63\145\x20\x69\163\40\x69\156\143\157\162\x72\x65\x63\164\56\x20\x4d\x61\153\145\40\x73\165\x72\x65\x20\x79\x6f\x75\x20\150\x61\x76\145\x20\x6e\157\164\40\164\x61\155\160\145\162\145\144\x20\x77\151\164\150\x20\151\x74\x20\141\x74\40\x61\154\154\56\x20\x50\x6c\x65\x61\163\x65\40\x65\x6e\164\145\162\x20\x61\x20\x76\141\x6c\x69\x64\x20\154\151\x63\x65\x6e\163\x65\x20\153\x65\x79\x2e");
delete_site_option("\163\155\x6c\137\x6c\153");
$this->mo_saml_show_error_message();
goto L3;
t0:
$this->mo_saml_show_success_message();
L3:
Rq:
iq:
update_site_option("\x6d\x6f\x5f\163\x61\x6d\154\x5f\141\x64\x6d\x69\x6e\137\x70\x61\x73\163\167\157\x72\144", '');
KT:
if (!get_site_option("\x6e\x6f\x5f\x73\142\163")) {
goto bO;
}
$M3 = get_site_option("\x6d\157\x5f\x73\x61\x6d\x6c\137\x63\165\x73\164\157\155\x65\x72\137\x74\157\x6b\145\x6e");
$Bx = AESEncryption::decrypt_data(get_site_option("\x6e\157\137\x73\x62\x73"), $M3);
if (function_exists("\x67\x65\x74\137\163\x69\x74\x65\163") && class_exists("\127\120\137\x53\x69\x74\x65\137\121\165\145\x72\x79")) {
goto fc;
}
$ON = count(wp_get_sites());
goto On;
fc:
$ON = count(get_sites());
On:
if (!($Bx < $ON)) {
goto bs;
}
if (get_site_option("\x6c\151\143\x65\x6e\x73\145\137\141\154\x65\162\164\x5f\145\x6d\x61\x69\x6c\x5f\163\145\x6e\x74")) {
goto ch;
}
$kh = new Customersaml();
$kh->mo_saml_send_alert_email_for_license($Bx);
ch:
bs:
bO:
if (isset($_POST["\x6f\160\164\151\157\156"]) && $_POST["\x6f\160\164\x69\x6f\x6e"] == "\x6d\157\x5f\x73\141\155\x6c\x5f\166\145\162\x69\x66\171\137\x6c\151\x63\145\156\163\145") {
goto dk;
}
if (isset($_POST["\x6f\160\x74\x69\x6f\x6e"]) && $_POST["\x6f\160\164\151\x6f\x6e"] == "\x6d\x6f\137\163\x61\x6d\154\x5f\x66\x72\x65\145\x5f\164\x72\151\141\154") {
goto cE;
}
if (!(isset($_POST["\157\160\x74\151\157\x6e"]) && $_POST["\x6f\x70\164\x69\157\156"] == "\x6d\x6f\137\163\141\x6d\154\x5f\143\150\x65\x63\x6b\137\154\x69\143\x65\156\x73\x65")) {
goto DR;
}
$kh = new Customersaml();
$KK = json_decode($kh->check_customer_ln(), true);
if (strcasecmp($KK["\x73\164\x61\164\165\x73"], "\x53\125\x43\103\x45\x53\x53") == 0) {
goto jh;
}
$M3 = get_site_option("\155\157\x5f\x73\x61\155\x6c\x5f\143\165\163\164\x6f\155\x65\x72\137\x74\157\x6b\145\x6e");
$tZ = add_query_arg(array("\164\x61\142" => "\154\151\x63\145\x6e\x73\x69\156\147"), $_SERVER["\x52\105\121\x55\x45\x53\124\137\x55\x52\x49"]);
update_site_option("\155\x6f\x5f\x73\141\155\x6c\x5f\155\145\163\x73\x61\x67\x65", "\131\x6f\165\40\x68\x61\x76\145\40\156\157\x74\x20\x75\160\147\x72\x61\x64\145\144\x20\x79\x65\x74\x2e\x20\74\141\40\150\162\x65\x66\x3d\x22" . $tZ . "\42\x3e\x43\154\x69\143\153\40\150\x65\162\145\x3c\57\141\76\40\x74\157\x20\165\x70\147\x72\141\x64\x65\x20\x74\x6f\x20\x70\162\x65\155\x69\x75\x6d\40\x76\x65\162\x73\x69\157\x6e\x2e");
$this->mo_saml_show_error_message();
goto vY;
jh:
if (!array_key_exists("\x69\163\x4d\165\x6c\164\x69\x53\151\164\x65\x50\154\x75\147\151\156\122\145\x71\x75\145\163\x74\x65\x64", $KK)) {
goto nF;
}
$zK = $KK["\151\x73\115\165\x6c\x74\151\x53\151\164\x65\x50\x6c\165\x67\151\156\122\x65\161\165\145\x73\x74\145\x64"];
nF:
if (function_exists("\x67\x65\x74\x5f\x73\x69\x74\145\x73") && class_exists("\x57\120\x5f\123\151\x74\x65\x5f\x51\165\x65\x72\171")) {
goto MJ;
}
$ON = count(wp_get_sites());
goto mG;
MJ:
$ON = count(get_sites());
mG:
if ($zK && array_key_exists("\x6e\x6f\117\146\x53\x75\142\123\x69\x74\x65\163", $KK) && $ON <= $KK["\x6e\x6f\117\146\x53\165\142\123\151\164\145\x73"]) {
goto i9;
}
$M3 = get_site_option("\155\157\x5f\x73\141\155\154\137\143\x75\163\164\157\155\x65\162\137\164\x6f\153\x65\156");
if (empty($Rs)) {
goto hx;
}
update_site_option("\156\x6f\137\163\142\163", AESEncryption::encrypt_data($Rs, $M3));
hx:
update_site_option("\x73\x69\164\145\137\x63\x6b\137\154", AESEncryption::encrypt_data("\146\141\x6c\163\x65", $M3));
$tZ = add_query_arg(array("\164\x61\142" => "\x6c\x69\x63\x65\156\163\x69\x6e\147"), $_SERVER["\122\105\121\x55\105\123\x54\x5f\125\x52\111"]);
update_site_option("\x6d\x6f\x5f\163\141\155\154\137\x6d\x65\x73\x73\141\x67\x65", "\x59\157\x75\x20\x68\x61\x76\x65\x20\156\x6f\164\x20\x75\x70\147\162\141\144\145\x64\x20\x74\x6f\x20\x74\x68\x65\40\143\x6f\x72\162\145\x63\x74\40\154\x69\x63\x65\156\163\145\40\160\x6c\x61\156\x2e\40\105\151\164\x68\x65\162\40\171\157\165\40\x68\x61\x76\x65\40\160\165\162\143\150\141\x73\145\144\40\x66\x6f\x72\40\151\156\x63\157\162\162\x65\143\164\x20\x6e\x6f\56\40\157\146\x20\163\151\x74\x65\163\40\x6f\162\x20\x79\x6f\x75\x20\x68\141\x76\145\x20\x6e\x6f\164\x20\163\x65\154\x65\x63\x74\145\144\40\x6d\165\154\x74\151\x73\151\x74\x65\40\x6f\160\x74\x69\x6f\x6e\40\167\150\151\154\x65\x20\160\165\162\x63\150\x61\x73\151\x6e\147\56\40\x3c\x61\40\x68\162\x65\x66\x3d\x22\x23\x22\40\x6f\156\143\154\x69\143\x6b\x3d\x22\x67\145\164\165\x70\147\162\x61\144\x65\x6c\x69\x63\145\x6e\163\x65\x73\146\157\x72\x6d\50\51\x22\76\x43\x6c\151\x63\153\x20\x68\145\162\x65\x3c\x2f\141\x3e\40\164\157\40\x75\x70\147\x72\141\144\x65\x20\164\x6f\x20\160\162\x65\155\x69\165\155\40\166\x65\x72\x73\x69\x6f\156\x2e");
$this->mo_saml_show_error_message();
goto nI;
i9:
$M3 = get_site_option("\155\157\x5f\163\x61\x6d\x6c\137\143\x75\x73\x74\157\155\x65\162\x5f\164\x6f\x6b\145\x6e");
$Rs = $KK["\x6e\x6f\x4f\146\123\x75\142\x53\151\164\145\x73"];
update_site_option("\163\151\164\x65\x5f\143\x6b\x5f\154", AESEncryption::encrypt_data("\164\x72\165\145", $M3));
update_site_option("\x6e\x6f\137\163\x62\x73", AESEncryption::encrypt_data($Rs, $M3));
$tZ = add_query_arg(array("\164\141\142" => "\x6c\x6f\x67\x69\156"), $_SERVER["\x52\x45\x51\125\x45\x53\x54\137\x55\122\111"]);
update_site_option("\155\x6f\x5f\163\x61\155\154\137\x6d\x65\x73\163\141\x67\145", "\x59\157\x75\x20\150\141\166\x65\40\x73\x75\143\x63\145\163\x73\146\x75\x6c\x6c\171\x20\165\x70\x67\x72\141\x64\145\x64\x20\x74\x6f\40\160\162\145\x6d\x69\x75\x6d\x20\166\x65\x72\x73\151\157\156\x2e");
$this->mo_saml_show_success_message();
nI:
vY:
DR:
goto mc;
cE:
if (decryptSamlElement()) {
goto Ew;
}
$yJ = postResponse();
$kh = new Customersaml();
$KK = json_decode($kh->mo_saml_verify_license($yJ), true);
if (strcasecmp($KK["\x73\164\141\x74\165\x73"], "\x53\125\103\103\105\123\123") == 0) {
goto Wz;
}
if (strcasecmp($KK["\x73\x74\141\164\x75\163"], "\x46\101\111\114\105\x44") == 0) {
goto Dt;
}
update_site_option("\155\157\x5f\x73\141\155\x6c\x5f\x6d\145\163\x73\x61\x67\145", "\x41\x6e\40\145\162\162\x6f\162\40\157\143\x63\x75\x72\x65\144\40\167\x68\x69\154\x65\x20\160\x72\x6f\143\x65\x73\163\x69\x6e\147\x20\171\157\165\x72\40\162\x65\x71\165\145\x73\164\x2e\40\120\154\x65\x61\163\x65\40\x54\162\171\40\x61\x67\141\x69\x6e\x2e");
$this->mo_saml_show_error_message();
goto Lc;
Dt:
update_site_option("\155\157\137\x73\141\155\154\x5f\155\x65\x73\x73\141\x67\145", "\124\x68\145\x72\145\40\x77\141\163\40\141\x6e\x20\145\x72\162\157\x72\x20\141\x63\164\151\166\141\164\x69\156\x67\x20\171\157\x75\162\40\x54\x52\x49\101\114\x20\166\145\x72\163\151\x6f\x6e\x2e\40\x50\154\145\x61\x73\145\40\143\157\x6e\164\141\x63\164\x20\x69\x6e\x66\157\100\155\151\x6e\x69\157\162\x61\x6e\147\x65\x2e\143\157\x6d\x20\146\157\x72\40\x67\145\164\x74\151\156\x67\x20\x6e\x65\167\40\154\151\143\x65\156\x73\x65\40\x66\x6f\x72\x20\164\162\151\x61\154\40\x76\x65\x72\163\x69\x6f\156\56");
$this->mo_saml_show_error_message();
Lc:
goto Gm;
Wz:
$M3 = get_site_option("\x6d\157\x5f\163\141\x6d\x6c\x5f\x63\x75\163\164\157\155\145\162\137\x74\x6f\x6b\145\x6e");
$M3 = get_site_option("\x6d\x6f\137\x73\141\x6d\154\x5f\x63\165\x73\x74\x6f\155\x65\x72\x5f\x74\x6f\x6b\x65\x6e");
update_site_option("\x74\x5f\x73\151\164\x65\137\163\164\x61\164\x75\163", AESEncryption::encrypt_data("\x74\162\165\145", $M3));
update_site_option("\x6d\157\137\163\141\x6d\x6c\137\155\x65\x73\x73\x61\x67\x65", "\131\x6f\165\162\40\65\x20\144\141\x79\163\x20\x54\122\111\101\x4c\40\151\163\40\x61\x63\x74\151\x76\x61\x74\x65\x64\56\40\x59\157\x75\x20\143\x61\x6e\x20\156\x6f\x77\40\x73\145\x74\165\160\x20\x74\150\145\40\x70\154\165\147\x69\x6e\x2e");
$this->mo_saml_show_success_message();
Gm:
goto H9;
Ew:
update_site_option("\155\x6f\137\x73\141\x6d\154\x5f\155\145\163\163\141\147\x65", "\124\150\x65\x72\145\x20\167\x61\x73\x20\141\x6e\x20\x65\x72\162\157\162\40\x61\143\x74\x69\166\x61\x74\x69\156\147\x20\171\x6f\165\162\x20\x54\122\x49\101\114\40\x76\145\x72\163\151\157\x6e\56\x20\x45\151\164\x68\x65\x72\40\171\x6f\165\162\40\x74\x72\151\141\x6c\x20\160\x65\x72\x69\157\x64\x20\x69\x73\x20\145\x78\160\151\x72\145\144\40\157\x72\40\171\x6f\165\40\141\x72\x65\x20\x75\x73\x69\156\x67\40\x77\x72\x6f\156\x67\x20\x74\162\x69\x61\154\x20\166\x65\x72\163\x69\157\156\56\x20\120\x6c\145\x61\x73\145\40\x63\x6f\156\x74\x61\143\x74\x20\151\x6e\146\157\x40\x6d\x69\156\151\157\x72\141\156\x67\x65\56\x63\157\x6d\40\x66\157\162\40\147\x65\x74\164\x69\x6e\147\x20\x6e\x65\167\40\154\x69\143\145\156\163\x65\40\146\157\x72\40\x74\x72\x69\141\154\40\x76\x65\162\163\151\x6f\x6e\56");
$this->mo_saml_show_error_message();
H9:
mc:
goto of;
dk:
if (!$this->mo_saml_check_empty_or_null($_POST["\x73\x61\155\154\x5f\154\151\143\145\156\163\145\137\x6b\145\x79"])) {
goto bQ;
}
update_site_option("\155\157\137\x73\x61\x6d\x6c\137\x6d\145\x73\163\x61\x67\145", "\x41\154\154\40\164\x68\145\40\x66\x69\x65\x6c\144\x73\x20\141\x72\145\x20\162\145\161\x75\151\x72\145\x64\x2e\x20\120\154\x65\141\163\145\x20\x65\156\164\x65\x72\40\x76\x61\154\151\x64\x20\154\x69\x63\145\x6e\x73\145\40\x6b\x65\x79\56");
$this->mo_saml_show_error_message();
return;
bQ:
$yJ = trim($_POST["\163\141\155\154\x5f\154\x69\143\x65\x6e\x73\145\x5f\153\x65\171"]);
$kh = new Customersaml();
$KK = json_decode($kh->check_customer_ln(), true);
$tZ = add_query_arg(array("\164\141\x62" => "\x6c\151\143\145\x6e\x73\151\x6e\147"), $_SERVER["\122\x45\x51\x55\105\123\124\137\x55\x52\111"]);
if (strcasecmp($KK["\163\164\x61\x74\165\163"], "\x53\125\x43\103\x45\x53\x53") == 0) {
goto Qj;
}
$M3 = get_site_option("\x6d\157\137\163\141\x6d\154\x5f\x63\165\163\164\157\155\x65\162\137\164\x6f\x6b\145\x6e");
$tZ = add_query_arg(array("\x74\x61\x62" => "\154\x69\143\x65\156\x73\x69\156\147"), $_SERVER["\x52\x45\x51\x55\105\x53\x54\x5f\125\122\111"]);
update_site_option("\x6d\x6f\x5f\163\x61\155\x6c\x5f\x6d\145\x73\163\x61\x67\x65", "\131\157\165\x20\x68\141\166\145\40\x6e\157\x74\x20\165\160\147\162\x61\x64\x65\144\x20\x79\x65\x74\x2e\x20\x3c\141\40\x68\x72\145\146\x3d\x22" . $tZ . "\42\76\103\x6c\x69\143\x6b\40\x68\145\x72\145\74\x2f\x61\x3e\40\164\x6f\x20\x75\x70\x67\162\141\x64\145\40\x74\x6f\x20\160\162\145\155\151\x75\155\x20\166\x65\x72\x73\x69\x6f\156\x2e");
$this->mo_saml_show_error_message();
goto U6;
Qj:
if (!array_key_exists("\x69\163\115\165\x6c\164\151\123\x69\164\145\120\x6c\x75\147\151\x6e\122\145\161\x75\x65\x73\164\x65\x64", $KK)) {
goto yi;
}
$zK = $KK["\151\x73\115\x75\154\x74\x69\123\x69\x74\145\x50\154\x75\x67\151\x6e\x52\145\x71\165\145\x73\164\x65\144"];
yi:
if (function_exists("\147\x65\x74\137\163\151\x74\145\x73") && class_exists("\127\120\x5f\x53\151\164\x65\137\x51\165\145\x72\171")) {
goto Lw;
}
$ON = count(wp_get_sites());
goto Mj;
Lw:
$ON = count(get_sites());
Mj:
if ($zK && array_key_exists("\156\x6f\x4f\x66\123\165\142\x53\x69\x74\x65\163", $KK) && $ON <= $KK["\x6e\157\x4f\146\x53\x75\142\x53\x69\x74\x65\x73"]) {
goto MZ;
}
$Bx = $KK["\156\157\117\146\x53\x75\x62\x53\151\x74\145\x73"];
$M3 = get_site_option("\155\x6f\137\163\x61\x6d\x6c\x5f\143\165\163\x74\157\155\x65\162\137\x74\x6f\153\x65\x6e");
update_site_option("\156\x6f\x5f\x73\x62\163", AESEncryption::encrypt_data($Bx, $M3));
update_site_option("\x73\155\x6c\x5f\154\x6b", AESEncryption::encrypt_data($yJ, $M3));
update_site_option("\163\x69\x74\x65\137\x63\153\x5f\x6c", AESEncryption::encrypt_data("\164\162\x75\x65", $M3));
update_site_option("\155\157\137\x73\x61\x6d\x6c\x5f\x6d\x65\163\163\x61\x67\145", "\131\157\165\x20\x68\141\166\x65\40\x70\165\x72\x63\x68\141\x73\145\x64\40\164\150\145\x20\x6c\x69\x63\145\156\163\145\40\146\157\x72\x20\x3c\x62\76" . $KK["\x6e\x6f\117\x66\x53\x75\x62\123\x69\164\x65\x73"] . "\x20\x73\151\164\x65\x73\74\x2f\142\x3e\x2e\x20\102\x75\x74\x20\171\157\165\x20\150\141\166\145\40\74\x62\76" . $ON . "\x20\x3c\x2f\x62\x3e\163\x69\164\145\x73\x20\151\156\40\171\x6f\165\162\x20\x6d\x75\x6c\164\x69\x73\x69\x74\x65\40\x6e\x65\x74\x77\157\x72\x6b\x2e\x20\74\x61\x20\x68\162\x65\146\75\x22\43\x22\40\157\x6e\143\x6c\151\x63\153\x3d\42\147\x65\164\165\x70\147\x72\141\x64\x65\x6c\151\143\x65\156\163\145\x73\146\x6f\x72\x6d\50\x29\42\x3e\x43\x6c\151\x63\x6b\x20\150\145\x72\145\x3c\57\x61\76\x20\x74\157\40\x62\x75\x79\40\x6c\x69\x63\x65\156\163\x65\40\x66\157\x72\x20\155\157\x72\145\40\163\151\164\145\x73\x2e");
$this->mo_saml_show_error_message();
goto JW;
MZ:
$Bx = $KK["\x6e\x6f\x4f\146\x53\x75\x62\123\x69\x74\x65\x73"];
$M3 = get_site_option("\155\x6f\x5f\163\x61\155\x6c\x5f\143\x75\x73\x74\x6f\x6d\145\162\137\x74\x6f\153\x65\156");
if (!array_key_exists("\156\157\117\146\125\x73\x65\162\163", $KK)) {
goto sA;
}
$RU = $KK["\156\x6f\x4f\x66\125\x73\145\162\x73"];
sA:
$KK = json_decode($kh->mo_saml_verify_license($yJ), true);
if (strcasecmp($KK["\x73\x74\x61\x74\x75\x73"], "\x53\125\x43\x43\x45\x53\x53") == 0) {
goto xn;
}
if (strcasecmp($KK["\163\x74\141\x74\165\163"], "\106\x41\x49\x4c\105\x44") == 0) {
goto bu;
}
update_site_option("\155\157\137\163\x61\155\154\137\x6d\145\163\x73\141\147\145", "\101\x6e\x20\x65\x72\162\x6f\162\x20\x6f\143\143\x75\162\x65\144\x20\x77\150\151\x6c\145\x20\160\162\157\143\x65\x73\x73\x69\x6e\x67\40\171\157\165\x72\x20\x72\x65\x71\x75\x65\163\164\56\x20\x50\154\145\x61\163\x65\x20\x54\x72\171\x20\x61\x67\141\151\156\x2e");
$this->mo_saml_show_error_message();
goto qH;
bu:
if (strcasecmp($KK["\155\x65\x73\x73\x61\x67\145"], "\x43\x6f\x64\145\x20\x68\x61\x73\40\x45\x78\x70\x69\x72\145\x64") == 0) {
goto si;
}
update_site_option("\x6d\x6f\x5f\163\x61\155\x6c\x5f\155\x65\163\x73\141\x67\145", "\131\x6f\x75\x20\x68\x61\x76\x65\x20\x65\156\164\x65\162\145\144\x20\141\156\40\x69\x6e\166\141\154\x69\x64\x20\x6c\151\143\145\156\163\x65\40\153\x65\171\56\40\120\x6c\x65\141\x73\x65\40\145\156\164\x65\162\x20\141\x20\x76\x61\x6c\x69\144\x20\154\x69\143\x65\x6e\x73\145\40\x6b\x65\x79\56");
goto Q5;
si:
update_site_option("\155\157\x5f\x73\x61\x6d\x6c\137\155\145\163\x73\x61\147\145", "\114\x69\x63\145\156\163\x65\x20\153\x65\171\40\x79\157\165\x20\x68\x61\166\x65\x20\145\156\x74\x65\x72\x65\x64\x20\150\141\163\x20\141\x6c\162\145\141\144\x79\40\142\x65\145\x6e\40\x75\163\x65\144\56\x20\x50\x6c\145\141\x73\x65\x20\x65\x6e\x74\x65\x72\x20\x61\x20\x6b\145\171\x20\167\x68\x69\x63\150\x20\150\141\163\x20\156\x6f\164\40\x62\145\145\x6e\x20\165\163\x65\x64\40\142\145\x66\157\162\x65\40\x6f\156\x20\x61\156\171\40\157\x74\150\x65\x72\x20\x69\156\163\164\x61\x6e\143\145\x20\157\x72\40\151\x66\x20\171\157\x75\40\150\x61\x76\x65\x20\145\170\x61\x75\x73\164\x65\x64\40\x61\154\x6c\x20\x79\157\165\x72\40\x6b\145\x79\163\x20\x74\150\x65\x6e\x20\x3c\x61\x20\x68\162\145\146\x3d\x22\x23\42\x20\x6f\156\x63\x6c\151\x63\153\x3d\x22\x67\x65\x74\165\160\x67\x72\x61\x64\x65\x6c\151\x63\x65\156\x73\x65\x73\x66\x6f\162\155\50\x29\x22\x20\x3e\x43\x6c\x69\x63\x6b\x20\x68\x65\x72\x65\74\x2f\x61\76\40\x74\157\40\142\x75\x79\x20\x6d\157\162\145\56");
Q5:
$this->mo_saml_show_error_message();
qH:
goto mU;
xn:
if (!array_key_exists("\156\157\117\146\125\163\x65\x72\163", $KK)) {
goto It;
}
update_site_option("\x6d\x6f\137\x73\141\155\x6c\x5f\165\x73\x72\x5f\x6c\155\164", AESEncryption::encrypt_data($RU, $M3));
It:
update_site_option("\x73\155\x6c\137\154\x6b", AESEncryption::encrypt_data($yJ, $M3));
update_site_option("\156\157\x5f\163\142\163", AESEncryption::encrypt_data($Bx, $M3));
update_site_option("\163\151\164\x65\x5f\143\153\137\x6c", AESEncryption::encrypt_data("\164\x72\165\x65", $M3));
update_site_option("\x74\137\163\151\x74\x65\137\x73\x74\141\164\x75\163", AESEncryption::encrypt_data("\146\141\154\x73\x65", $M3));
update_site_option("\155\x6f\x5f\x73\141\155\154\137\x6d\x65\x73\x73\141\x67\x65", "\x59\157\165\162\x20\x6c\151\x63\x65\156\x73\x65\x20\x69\163\40\x76\145\162\x69\146\151\x65\x64\x2e\x20\131\x6f\165\x20\x63\x61\156\40\x6e\157\x77\40\x73\x65\164\x75\160\40\x74\x68\x65\x20\x70\x6c\165\x67\151\156\x2e");
$M3 = get_site_option("\155\x6f\137\163\x61\x6d\154\x5f\143\x75\x73\164\x6f\x6d\145\x72\137\x74\x6f\x6b\x65\x6e");
update_site_option("\x74\x5f\163\151\x74\x65\x5f\163\x74\x61\x74\x75\163", AESEncryption::encrypt_data("\146\141\154\x73\145", $M3));
$this->mo_saml_show_success_message();
mU:
JW:
U6:
of:
xR:
if (mo_saml_is_trial_active()) {
goto Na;
}
if (!site_check()) {
goto Ry;
}
goto Vt;
Na:
if (!decryptSamlElement()) {
goto cN;
}
$M3 = get_site_option("\155\157\137\x73\141\x6d\x6c\137\x63\x75\x73\x74\157\155\145\162\137\x74\x6f\x6b\x65\x6e");
update_site_option("\164\x5f\x73\x69\x74\x65\x5f\163\164\141\164\165\163", AESEncryption::encrypt_data("\146\141\154\x73\145", $M3));
cN:
goto Vt;
Ry:
delete_site_option("\155\157\137\x73\141\x6d\x6c\137\x65\x6e\141\x62\154\x65\x5f\x6c\157\147\x69\x6e\x5f\x72\x65\144\x69\x72\x65\143\x74");
delete_site_option("\x6d\x6f\x5f\163\x61\155\x6c\137\x61\154\x6c\x6f\x77\x5f\167\160\x5f\x73\x69\x67\156\151\x6e");
delete_site_option("\x6d\x6f\137\163\x61\155\x6c\137\162\145\x67\x69\x73\x74\145\x72\x65\144\x5f\157\x6e\x6c\x79\x5f\x61\143\143\x65\163\x73");
delete_site_option("\x6d\157\x5f\163\141\x6d\154\137\146\157\162\143\x65\137\x61\x75\164\150\145\156\164\x69\x63\141\x74\151\157\x6e");
Vt:
}
function create_customer()
{
$kh = new CustomerSaml();
$Tm = json_decode($kh->create_customer(), true);
if (strcasecmp($Tm["\163\x74\141\164\x75\163"], "\103\125\x53\124\117\115\x45\x52\137\x55\123\105\x52\116\101\115\105\137\101\x4c\122\x45\x41\x44\131\x5f\105\x58\111\x53\x54\x53") == 0) {
goto Vb;
}
if (!(strcasecmp($Tm["\x73\164\x61\164\x75\163"], "\123\x55\x43\103\x45\123\x53") == 0)) {
goto Rt;
}
update_site_option("\155\x6f\137\163\141\155\x6c\137\x61\x64\155\151\156\137\x63\165\x73\164\x6f\155\145\162\137\x6b\x65\x79", $Tm["\x69\144"]);
update_site_option("\155\x6f\x5f\163\x61\x6d\x6c\x5f\x61\x64\155\151\156\x5f\141\x70\151\x5f\x6b\145\171", $Tm["\141\x70\151\x4b\x65\171"]);
update_site_option("\x6d\x6f\137\163\141\x6d\x6c\x5f\143\165\x73\164\157\155\x65\x72\137\x74\x6f\x6b\145\156", $Tm["\164\x6f\x6b\x65\156"]);
update_site_option("\x6d\x6f\x5f\163\x61\155\154\x5f\x61\144\155\x69\156\137\x70\x61\x73\x73\167\157\x72\x64", '');
update_site_option("\x6d\157\137\x73\141\x6d\x6c\137\155\145\163\163\x61\147\x65", "\x54\x68\x61\x6e\x6b\x20\171\x6f\165\x20\146\157\x72\40\162\x65\x67\151\x73\x74\x65\162\151\156\147\x20\x77\151\164\150\x20\x6d\x69\x6e\151\157\x72\141\x6e\x67\145\x2e");
update_site_option("\x6d\157\x5f\x73\x61\x6d\154\137\x72\145\147\x69\x73\164\162\x61\164\151\x6f\x6e\x5f\163\164\x61\164\x75\163", '');
delete_site_option("\155\x6f\137\x73\x61\155\x6c\137\166\x65\x72\x69\146\x79\x5f\x63\x75\163\164\157\x6d\x65\x72");
delete_site_option("\x6d\157\137\163\x61\155\154\137\156\145\167\x5f\x72\145\x67\151\x73\x74\162\x61\164\151\157\156");
$this->mo_saml_show_success_message();
Rt:
goto jL;
Vb:
$this->get_current_customer();
jL:
update_site_option("\155\x6f\x5f\163\141\155\x6c\x5f\x61\144\x6d\151\x6e\x5f\160\x61\x73\163\x77\x6f\162\x64", '');
}
function get_current_customer()
{
$kh = new CustomerSaml();
$KK = $kh->get_customer_key();
$Tm = json_decode($KK, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto MW;
}
update_site_option("\155\x6f\x5f\163\x61\x6d\x6c\x5f\155\145\x73\x73\141\147\145", "\x59\x6f\165\x20\141\154\x72\145\x61\x64\171\x20\x68\141\x76\145\x20\x61\156\x20\141\143\143\157\165\156\164\40\167\151\164\150\x20\x6d\151\156\x69\117\x72\141\x6e\x67\145\x2e\40\120\x6c\x65\141\163\x65\x20\x65\156\164\145\x72\x20\141\40\x76\x61\x6c\x69\144\40\x70\x61\163\x73\x77\157\x72\144\56");
update_site_option("\155\x6f\x5f\163\x61\155\x6c\137\x76\145\x72\151\x66\171\137\x63\165\x73\x74\x6f\155\x65\162", "\164\x72\165\x65");
delete_site_option("\x6d\x6f\137\163\141\x6d\154\x5f\156\x65\x77\137\162\x65\x67\x69\163\x74\x72\x61\x74\151\x6f\x6e");
$this->mo_saml_show_error_message();
goto tf;
MW:
update_site_option("\155\157\137\x73\141\155\x6c\x5f\141\x64\155\151\156\x5f\x63\x75\x73\164\x6f\x6d\145\162\137\x6b\x65\171", $Tm["\x69\x64"]);
update_site_option("\x6d\x6f\137\x73\141\155\x6c\x5f\141\x64\155\151\x6e\137\141\160\151\137\153\145\171", $Tm["\141\x70\151\x4b\x65\x79"]);
update_site_option("\x6d\x6f\137\163\141\155\154\137\x63\x75\x73\164\157\155\145\162\x5f\x74\x6f\x6b\x65\x6e", $Tm["\164\x6f\153\x65\x6e"]);
update_site_option("\155\157\137\x73\x61\155\x6c\x5f\x61\x64\x6d\151\x6e\x5f\160\141\x73\163\x77\157\162\x64", '');
update_site_option("\x6d\x6f\137\163\141\x6d\x6c\x5f\x6d\x65\163\163\x61\147\145", "\131\x6f\165\x72\40\141\x63\143\x6f\165\156\x74\40\150\141\163\40\142\145\145\x6e\40\x72\x65\164\162\x69\x65\166\145\144\40\163\x75\143\x63\x65\x73\163\146\x75\154\154\171\x2e");
delete_site_option("\x6d\157\x5f\x73\141\x6d\x6c\137\166\145\162\x69\146\x79\x5f\x63\x75\x73\x74\x6f\155\145\162");
delete_site_option("\x6d\x6f\137\163\x61\155\154\137\x6e\145\x77\x5f\162\x65\x67\x69\x73\164\x72\141\164\151\157\156");
$this->mo_saml_show_success_message();
tf:
}
public function mo_saml_check_empty_or_null($Vz)
{
if (!(!isset($Vz) || empty($Vz))) {
goto KU;
}
return true;
KU:
return false;
}
function miniorange_sso_menu()
{
$eJ = add_menu_page("\x4d\117\40\123\x41\x4d\x4c\40\123\145\164\x74\x69\x6e\x67\x73\x20" . __("\x43\x6f\156\x66\151\x67\x75\162\145\40\x53\101\115\114\40\x49\x64\145\156\x74\x69\164\171\40\120\162\x6f\x76\x69\144\x65\x72\40\x66\x6f\162\x20\123\x53\117", "\155\157\137\163\141\155\154\x5f\163\x65\x74\164\x69\156\x67\x73"), "\x6d\151\x6e\x69\x4f\x72\x61\x6e\147\x65\x20\123\x41\x4d\114\40\62\x2e\60\40\123\123\x4f", "\141\x64\155\151\x6e\x69\x73\164\162\141\x74\x6f\x72", "\155\x6f\137\x73\141\x6d\x6c\137\163\x65\x74\x74\x69\x6e\x67\x73", array($this, "\155\157\x5f\x6c\x6f\147\151\156\x5f\x77\151\144\x67\x65\x74\x5f\163\141\155\x6c\x5f\x6f\x70\164\x69\x6f\156\163"), plugin_dir_url(__FILE__) . "\151\x6d\x61\x67\x65\x73\x2f\x6d\x69\156\151\x6f\162\x61\156\x67\x65\x2e\x70\x6e\147");
}
function mo_saml_redirect_for_authentication($us)
{
if (!mo_saml_is_customer_license_key_verified()) {
goto xZ;
}
if (get_site_option("\x6d\x6f\137\x73\x61\x6d\x6c\137\145\156\x61\x62\x6c\145\137\x63\x6c\x6f\165\x64\137\142\162\x6f\153\x65\162") == "\146\x61\154\x73\145") {
goto Lj;
}
$T0 = get_site_option("\x6d\157\x5f\163\141\155\x6c\137\150\157\x73\164\x5f\x6e\141\155\145") . "\57\x6d\157\x61\163\57\x72\x65\163\164\x2f\x73\x61\155\x6c\x2f\162\x65\x71\x75\x65\x73\x74\77\x69\x64\x3d" . get_site_option("\x6d\157\137\x73\x61\155\154\137\141\x64\x6d\x69\156\137\143\165\163\164\157\155\x65\x72\x5f\153\x65\171") . "\46\x72\x65\x74\165\x72\x6e\165\162\154\75" . urlencode(network_site_url() . "\57\x3f\x6f\x70\x74\151\x6f\156\75\162\x65\141\144\163\x61\155\x6c\x6c\157\147\x69\x6e\x26\x72\x65\144\x69\162\x65\143\x74\137\164\x6f\x3d" . urlencode($us));
header("\114\157\143\141\x74\151\x6f\156\x3a\x20" . $T0);
die;
goto FO;
Lj:
if (!(mo_saml_is_sp_configured() && !is_user_logged_in())) {
goto PD;
}
$tT = get_site_option("\x6d\x6f\x5f\x73\x61\x6d\x6c\137\163\x70\x5f\142\141\x73\145\137\x75\x72\x6c");
if (!empty($tT)) {
goto VH;
}
$tT = network_site_url();
VH:
if (!(substr($tT, -1) == "\x2f")) {
goto xl;
}
$tT = substr($tT, 0, -1);
xl:
$uW = $us;
if (!empty($uW)) {
goto zj;
}
$uW = site_url() . "\57";
zj:
$mb = get_site_option("\163\x61\x6d\154\x5f\154\x6f\x67\x69\x6e\137\x75\x72\154");
$U4 = get_site_option("\163\x61\155\154\x5f\x6c\157\x67\x69\156\x5f\x62\x69\156\144\151\x6e\147\x5f\x74\171\160\145");
$k2 = get_site_option("\x6d\x6f\x5f\x73\x61\155\154\x5f\x66\x6f\x72\143\145\137\141\165\164\150\145\x6e\x74\x69\x63\x61\164\151\x6f\156");
$iS = $tT . "\x2f";
$FF = get_site_option("\x6d\x6f\137\x73\x61\x6d\x6c\x5f\163\160\137\145\x6e\x74\151\164\x79\137\x69\x64");
if (!empty($FF)) {
goto cy;
}
$FF = $tT . "\x2f\167\160\x2d\143\157\156\x74\145\156\164\x2f\x70\x6c\x75\147\x69\156\x73\x2f\x6d\151\x6e\151\x6f\162\141\156\147\145\x2d\x73\141\155\154\x2d\x32\x30\55\163\x69\156\147\154\145\x2d\x73\151\147\156\x2d\x6f\156\57";
cy:
$Dg = Utilities::createAuthnRequest($iS, $FF, $mb, $k2, $U4);
if (empty($U4) || $U4 == "\x48\x54\124\120\x2d\x52\x65\144\151\x72\145\143\x74") {
goto QO;
}
$sB = plugin_dir_path(__FILE__) . "\x72\145\x73\157\x75\162\143\x65\163" . DIRECTORY_SEPARATOR . "\163\x70\55\153\145\x79\56\153\x65\x79";
$oM = plugin_dir_path(__FILE__) . "\162\x65\163\x6f\165\x72\143\145\x73" . DIRECTORY_SEPARATOR . "\163\160\55\x63\x65\x72\x74\151\146\151\x63\x61\164\x65\56\x63\x72\164";
$NK = Utilities::signXML($Dg, $oM, $sB, "\116\141\x6d\145\x49\x44\x50\157\x6c\x69\x63\171");
Utilities::postSAMLRequest($mb, $NK, $uW);
goto Rd;
QO:
$Dg = "\123\101\x4d\x4c\122\x65\161\x75\x65\163\164\75" . $Dg . "\x26\122\145\x6c\141\x79\x53\x74\x61\x74\145\75" . urlencode($uW) . "\46\x53\151\x67\x41\154\147\75" . urlencode(XMLSecurityKey::RSA_SHA256);
$jk = array("\164\x79\x70\145" => "\160\x72\151\166\x61\164\145");
$M3 = new XMLSecurityKey(XMLSecurityKey::RSA_SHA256, $jk);
$t3 = plugin_dir_path(__FILE__) . "\162\x65\163\157\165\162\x63\145\163" . DIRECTORY_SEPARATOR . "\x73\160\x2d\153\x65\171\56\153\145\x79";
$M3->loadKey($t3, TRUE);
$eT = new XMLSecurityDSig();
$Gw = $M3->signData($Dg);
$Gw = base64_encode($Gw);
$p9 = $mb;
if (strpos($mb, "\x3f") !== false) {
goto cn;
}
$p9 .= "\77";
goto sn;
cn:
$p9 .= "\46";
sn:
$p9 .= $Dg . "\x26\123\151\x67\x6e\141\x74\x75\x72\145\75" . urlencode($Gw);
header("\114\157\143\x61\164\151\x6f\156\72\x20" . $p9);
die;
Rd:
PD:
FO:
xZ:
}
function mo_saml_authenticate()
{
$Ni = '';
if (!isset($_REQUEST["\162\145\144\x69\162\145\143\164\x5f\164\x6f"])) {
goto r7;
}
$Ni = $_REQUEST["\162\x65\x64\x69\x72\x65\x63\x74\137\164\x6f"];
r7:
if (!is_user_logged_in()) {
goto SG;
}
if (!empty($Ni)) {
goto I0;
}
header("\114\157\x63\141\164\x69\x6f\x6e\x3a\40" . network_site_url());
goto R8;
I0:
header("\x4c\157\143\x61\x74\151\x6f\156\x3a\x20" . $Ni);
R8:
die;
SG:
global $blog_id;
$UF = get_site_option("\x65\x6e\141\x62\154\145\137\163\x61\x6d\x6c\x5f\x73\163\157\137\146\157\162\137\x73\151\x74\145\163");
if (!(get_site_option("\x6d\x6f\x5f\x73\141\155\154\x5f\145\x6e\141\x62\x6c\145\x5f\x6c\157\x67\151\x6e\x5f\x72\x65\x64\151\x72\145\143\x74") == "\x74\x72\x75\x65" && (empty($UF) || !empty($UF) && in_array($blog_id, $UF)))) {
goto DU;
}
if (isset($_GET["\154\157\x67\147\x65\144\157\x75\164"]) && $_GET["\154\157\147\x67\x65\x64\x6f\165\x74"] == "\164\162\x75\x65") {
goto dX;
}
if (get_site_option("\x6d\157\x5f\163\x61\x6d\154\137\x61\154\x6c\x6f\167\137\x77\160\x5f\x73\151\x67\x6e\x69\x6e") == "\164\162\x75\145") {
goto JA;
}
goto Ph;
dX:
header("\x4c\157\143\x61\x74\151\x6f\156\x3a\x20" . network_site_url());
die;
goto Ph;
JA:
if (isset($_GET["\163\x61\x6d\x6c\x5f\163\163\x6f"]) && $_GET["\x73\x61\x6d\154\x5f\163\163\x6f"] == "\x66\141\x6c\163\145" || isset($_POST["\x73\141\155\x6c\137\x73\163\157"]) && $_POST["\163\x61\x6d\x6c\x5f\x73\x73\157"] == "\146\x61\x6c\x73\145") {
goto RT;
}
if (isset($_REQUEST["\x72\x65\144\151\162\x65\143\x74\137\x74\157"])) {
goto o0;
}
goto YG;
RT:
return;
goto YG;
o0:
$Ni = $_REQUEST["\162\145\x64\151\162\x65\143\164\137\x74\157"];
if (!(strpos($Ni, "\x77\x70\55\141\x64\x6d\151\156") !== false && strpos($Ni, "\x73\x61\x6d\x6c\137\x73\x73\x6f\x3d\x66\141\154\x73\145") !== false)) {
goto w5;
}
return;
w5:
YG:
Ph:
$this->mo_saml_redirect_for_authentication($Ni);
DU:
}
function mo_saml_auto_redirect()
{
if (!current_user_can("\162\145\141\x64")) {
goto Nf;
}
return;
Nf:
global $blog_id;
$UF = get_site_option("\x65\x6e\x61\x62\154\x65\x5f\163\141\x6d\x6c\x5f\x73\x73\x6f\x5f\x66\x6f\162\x5f\163\x69\x74\x65\163");
if (is_user_logged_in() && get_site_option("\155\157\137\163\141\x6d\154\137\x73\x75\x62\163\x69\164\145\x5f\x61\x63\x63\145\x73\163\137\x64\x65\156\151\x65\144")) {
goto y7;
}
if (!(get_site_option("\x6d\x6f\137\x73\141\x6d\154\137\162\x65\147\x69\163\164\x65\x72\x65\x64\137\x6f\156\x6c\171\137\x61\143\x63\145\163\x73") == "\164\x72\165\145" && (empty($UF) || !empty($UF) && in_array($blog_id, $UF)))) {
goto Y6;
}
$Mx = $_SERVER["\x48\x54\124\x50\x5f\110\x4f\123\124"];
if (!(substr($Mx, -1) == "\57")) {
goto Eu;
}
$Mx = substr($Mx, 0, -1);
Eu:
$lw = $_SERVER["\122\105\121\x55\x45\x53\124\137\125\122\x49"];
if (!(substr($lw, 0, 1) == "\57")) {
goto vW;
}
$lw = substr($lw, 1);
vW:
$us = "\150\x74\x74\160" . (isset($_SERVER["\110\124\124\x50\123"]) ? "\x73" : '') . "\72\57\x2f" . $Mx . "\x2f" . $lw;
$this->mo_saml_redirect_for_authentication($us);
Y6:
goto Jn;
y7:
global $current_user;
if (is_user_member_of_blog($current_user->ID)) {
goto nC;
}
$this->mo_saml_admin_page_access_denied();
nC:
Jn:
}
function mo_saml_modify_login_form()
{
echo "\x3c\x69\156\160\165\164\40\164\x79\x70\145\75\x22\x68\x69\x64\x64\145\156\x22\x20\156\x61\x6d\145\75\42\x73\141\155\x6c\137\163\x73\x6f\42\40\166\141\x6c\165\x65\75\x22\x66\141\x6c\163\145\42\x3e" . "\12";
}
function mo_get_saml_shortcode()
{
if (!is_user_logged_in()) {
goto HX;
}
$Wk = "\110\145\x6c\154\157\x2c\x20" . wp_get_current_user()->display_name . "\x20\174\40\74\141\x20\150\162\x65\146\75" . wp_logout_url(saml_get_current_page_url()) . "\x3e\114\x6f\147\157\x75\x74\74\x2f\141\76";
goto Rs;
HX:
if (mo_saml_is_sp_configured() && mo_saml_is_customer_license_key_verified()) {
goto dj;
}
$Wk = "\x50\154\145\141\163\x65\x20\143\x6f\x6e\x66\x69\147\x75\162\145\40\164\x68\x65\40\155\x69\156\x69\x4f\x72\141\x6e\147\x65\40\123\x41\115\114\x20\120\154\165\x67\x69\156\40\146\151\162\x73\164\x2e";
goto LJ;
dj:
$Ni = urlencode(saml_get_current_page_url());
if (get_site_option("\155\157\x5f\163\x61\155\x6c\x5f\x65\156\x61\x62\x6c\145\137\143\154\157\165\x64\137\142\x72\157\153\x65\x72") == "\146\x61\x6c\163\145") {
goto Kr;
}
$Wk = "\x3c\x61\x20\150\x72\145\x66\75" . get_site_option("\x6d\157\137\163\x61\155\x6c\x5f\x68\x6f\x73\164\137\x6e\x61\x6d\145") . "\x2f\x6d\157\x61\163\x2f\x72\x65\x73\x74\57\x73\x61\155\154\57\162\145\161\165\145\x73\x74\x3f\x69\x64\x3d" . get_site_option("\155\x6f\137\163\141\x6d\x6c\137\x61\x64\155\151\156\137\143\x75\163\x74\x6f\155\145\162\137\153\145\171") . "\46\162\145\164\x75\x72\x6e\x75\x72\x6c\75" . urlencode(site_url() . "\57\x3f\157\160\x74\151\157\x6e\x3d\x72\145\141\144\163\141\x6d\154\154\157\x67\151\x6e") . "\40\x2f\x3e\x4c\x6f\x67\151\156\40\x77\x69\164\x68\40" . get_site_option("\x73\x61\x6d\x6c\x5f\x69\x64\x65\156\164\x69\x74\x79\137\156\141\155\x65") . "\74\x2f\x61\x3e";
goto vL;
Kr:
$Wk = "\74\x61\x20\150\162\145\x66\75\47" . site_url() . "\x2f\77\x6f\160\164\151\x6f\156\75\163\141\155\x6c\137\165\x73\145\x72\x5f\154\x6f\147\x69\156\46\162\x65\144\151\x72\145\143\164\137\x74\x6f\75{$Ni}\x27\x20\76\114\157\x67\151\x6e\40\167\151\164\x68\40" . get_site_option("\x73\x61\155\x6c\x5f\151\x64\145\x6e\164\151\x74\x79\x5f\x6e\x61\155\x65") . "\56\74\x2f\x61\76";
vL:
LJ:
Rs:
return $Wk;
}
function upload_metadata()
{
if (!(isset($_FILES["\x6d\145\164\x61\x64\141\164\x61\x5f\x66\151\x6c\145"]) || isset($_POST["\x6d\145\164\141\x64\141\164\x61\137\165\162\154"]))) {
goto jt;
}
if (!empty($_FILES["\155\145\164\x61\x64\141\164\141\x5f\x66\151\x6c\145"]["\164\x6d\160\x5f\x6e\x61\155\145"])) {
goto n5;
}
$tZ = $_POST["\x6d\145\x74\141\x64\x61\x74\x61\137\x75\162\x6c"];
$oU = curl_init();
curl_setopt($oU, CURLOPT_URL, $tZ);
curl_setopt($oU, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($oU, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($oU, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($oU, CURLOPT_SSL_VERIFYHOST, false);
$i5 = curl_exec($oU);
curl_close($oU);
goto D2;
n5:
$i5 = @file_get_contents($_FILES["\x6d\145\x74\x61\144\141\x74\x61\x5f\146\x69\x6c\x65"]["\x74\155\x70\137\156\x61\155\145"]);
D2:
$CZ = set_error_handler(array($this, "\x68\x61\156\x64\x6c\145\x58\155\x6c\105\162\x72\157\x72"));
$UO = new DOMDocument();
$UO->loadXML($i5);
restore_error_handler();
if (!empty($UO->firstChild)) {
goto dL;
}
if (isset($_POST["\165\x70\x6c\157\x61\x64\x5f\x6d\x65\x74\x61\x64\x61\x74\x61"])) {
goto Ps;
}
update_site_option("\155\x6f\137\163\x61\155\154\x5f\x6d\145\163\x73\141\x67\x65", "\x50\x6c\145\141\x73\145\x20\160\x72\x6f\166\151\x64\145\x20\141\x20\166\x61\x6c\151\x64\40\155\x65\x74\x61\x64\141\164\141\40\125\x52\114\56");
goto pt;
Ps:
update_site_option("\155\157\x5f\x73\141\x6d\154\137\155\x65\163\163\141\147\145", "\x50\154\145\x61\163\145\40\x70\162\x6f\166\x69\144\145\40\x61\x20\x76\x61\x6c\x69\144\x20\x6d\145\164\141\144\x61\x74\141\40\146\151\154\145\x2e");
pt:
$this->mo_saml_show_error_message();
goto iy;
dL:
$D_ = new MetadataReader($UO);
foreach ($D_->getIdentityProviders() as $M3 => $Kb) {
$fY = $_POST["\x73\141\x6d\154\x5f\151\144\145\156\164\x69\x74\x79\137\160\x72\x6f\x76\x69\x64\x65\162\x5f\x6e\141\155\x65"];
$Xu = $Kb->getBindingLogin();
if ($Xu == "\110\164\164\x70\x52\145\144\151\162\145\x63\x74") {
goto kT;
}
$rG = $Kb->getLoginURL("\110\124\124\120\x2d\x50\x4f\123\124");
goto gX;
kT:
$rG = $Kb->getLoginURL("\x48\x54\124\120\55\122\x65\x64\x69\162\x65\x63\164");
gX:
$z_ = $Kb->getBindingLogout();
if ($z_ == "\110\x74\x74\x70\122\x65\x64\x69\162\145\x63\x74") {
goto lp;
}
$bd = $Kb->getLogoutURL("\110\124\124\120\x2d\x50\x4f\123\x54");
goto AG;
lp:
$bd = $Kb->getLogoutURL("\110\x54\x54\120\55\122\145\x64\151\x72\x65\x63\x74");
AG:
$XU = $Kb->getEntityID();
$RC = $Kb->getSigningCertificate();
update_site_option("\163\x61\155\154\137\x69\x64\x65\x6e\164\x69\x74\x79\x5f\x6e\x61\155\x65", $fY);
update_site_option("\x73\x61\155\x6c\x5f\x6c\x6f\x67\x69\x6e\x5f\142\151\156\144\151\x6e\147\137\x74\x79\160\145", $Xu);
update_site_option("\x73\141\155\x6c\137\154\157\147\x69\x6e\137\x75\x72\x6c", $rG);
update_site_option("\163\x61\x6d\154\137\x6c\157\147\x6f\x75\x74\137\x62\151\156\x64\151\156\147\137\x74\x79\160\x65", $z_);
update_site_option("\x73\141\x6d\154\x5f\154\x6f\x67\x6f\165\164\x5f\x75\162\x6c", $bd);
update_site_option("\x73\x61\x6d\154\137\x69\x73\x73\165\x65\162", $XU);
$RC = is_array($RC) ? $RC : array(0 => $RC);
$RC;
foreach ($RC as $M3 => $Vz) {
$RC[$M3] = Utilities::sanitize_certificate($Vz);
E2:
}
sW:
update_site_option("\x73\141\x6d\154\x5f\x78\65\x30\71\137\143\x65\162\164\151\146\x69\143\141\x74\x65", $RC);
goto vV;
yQ:
}
vV:
update_site_option("\x6d\x6f\137\163\141\155\154\x5f\155\x65\x73\163\x61\x67\x65", "\x49\x64\x65\156\164\x69\x74\171\40\x50\x72\157\x76\x69\144\x65\x72\40\144\145\164\141\x69\154\163\40\163\141\166\145\x64\40\x73\x75\143\143\145\x73\x73\146\x75\154\154\x79\x2e");
$this->mo_saml_show_success_message();
iy:
jt:
}
function handleXmlError($B5, $hq, $Gr, $Sn)
{
if ($B5 == E_WARNING && substr_count($hq, "\x44\117\115\x44\x6f\x63\165\x6d\x65\x6e\x74\x3a\x3a\154\x6f\x61\x64\x58\x4d\x4c\x28\x29") > 0) {
goto Eh;
}
return false;
goto ME;
Eh:
return;
ME:
}
function mo_saml_admin_page_access_denied()
{
$BK = get_blogs_of_user(get_current_user_id());
if (!wp_list_filter($BK, array("\165\163\145\x72\142\154\x6f\x67\x5f\x69\x64" => get_current_blog_id()))) {
goto Of;
}
return;
Of:
$YP = get_bloginfo("\x6e\x61\x6d\145");
if (!empty($BK)) {
goto jd;
}
$yo = "\x59\157\x75\x20\141\164\x74\x65\x6d\x70\164\145\144\40\x74\157\x20\x61\x63\143\145\163\x73\x20\164\x68\x65\40" . $YP . "\40\x73\151\x74\x65\54\40\x62\165\164\x20\171\157\x75\40\144\x6f\x20\x6e\x6f\x74\40\143\165\162\x72\145\156\164\x6c\171\x20\x68\x61\166\145\40\160\x72\x69\x76\151\x6c\x65\x67\145\x73\x20\157\156\x20\164\x68\151\x73\40\x73\151\x74\145\56\40\111\x66\40\171\x6f\x75\40\142\x65\x6c\151\x65\x76\145\40\171\157\x75\x20\x73\150\157\165\x6c\x64\x20\x62\145\x20\x61\142\x6c\x65\40\164\x6f\40\x61\143\x63\145\163\163\40\x74\150\145\x20" . $YP . "\40\163\151\164\145\54\40\x70\154\145\x61\163\x65\40\x63\157\156\x74\x61\143\x74\40\171\x6f\x75\162\40\x6e\x65\x74\x77\x6f\162\x6b\x20\141\x64\155\151\156\x69\163\x74\x72\141\164\157\162\x2e";
mo_saml_subsite_access_denied_page($yo);
die;
jd:
$yo = "\x3c\x70\x3e\x59\157\165\40\x61\164\x74\145\155\x70\164\145\x64\40\164\x6f\x20\141\x63\143\145\x73\163\x20\x74\150\145\x20" . $YP . "\40\x73\x69\x74\x65\54\x20\x62\x75\x74\x20\171\157\x75\x20\x64\157\x20\156\x6f\164\x20\x63\165\162\162\145\156\x74\x6c\x79\40\x68\x61\x76\145\x20\160\162\x69\166\151\x6c\x65\147\145\163\40\x6f\156\40\x74\150\x69\163\40\163\x69\x74\145\x2e\40\x49\146\40\x79\157\x75\x20\142\x65\x6c\151\x65\x76\145\40\171\x6f\x75\x20\x73\150\157\165\154\x64\40\142\x65\x20\x61\x62\154\x65\40\x74\157\x20\141\x63\x63\x65\x73\x73\x20\164\x68\145\40" . $YP . "\x20\163\151\x74\x65\54\40\160\x6c\x65\141\x73\145\40\x63\x6f\156\x74\x61\143\x74\x20\171\x6f\x75\x72\40\x6e\145\164\167\157\x72\153\x20\141\144\x6d\x69\156\151\x73\164\162\141\x74\157\x72\x2e\74\57\160\x3e";
$yo .= "\74\160\x3e\x49\x66\40\x79\157\165\40\x72\x65\141\x63\150\145\x64\40\x74\150\x69\163\x20\x73\x63\x72\145\145\156\40\142\x79\x20\141\143\x63\x69\x64\145\156\x74\x20\141\156\144\40\x6d\145\141\156\x74\40\164\157\40\x76\151\163\151\x74\x20\157\156\x65\40\157\146\40\x79\157\165\162\40\157\x77\156\x20\x73\151\164\x65\x73\54\40\150\145\162\x65\40\x61\162\x65\40\x73\x6f\155\x65\40\163\150\157\162\164\143\x75\164\163\x20\164\157\x20\x68\x65\154\x70\40\171\157\165\40\x66\151\x6e\144\x20\171\x6f\165\162\x20\167\x61\x79\56\74\x2f\160\x3e";
$yo .= "\x3c\150\x33\76\x59\157\165\162\x20\123\x69\164\x65\163\74\57\150\x33\76";
$yo .= "\x3c\164\141\142\154\x65\76";
foreach ($BK as $hH) {
$yo .= "\74\164\x72\76";
$yo .= "\x3c\164\144\76" . $hH->blogname . "\74\57\x74\144\76";
$yo .= "\x3c\x74\144\76\74\x61\40\x68\x72\x65\x66\75\x22" . esc_url(get_admin_url($hH->userblog_id)) . "\x22\76\126\151\163\151\164\x20\x44\x61\163\150\x62\157\141\x72\144\x3c\x2f\141\76\x20\x7c\x20\x3c\141\x20\150\x72\145\146\x3d\x22" . esc_url(get_home_url($hH->userblog_id)) . "\x22\76\x56\x69\145\167\40\123\151\164\x65\74\57\141\x3e\74\57\164\x64\x3e";
$yo .= "\x3c\57\x74\x72\x3e";
Hf:
}
I6:
$yo .= "\x3c\57\x74\141\x62\154\145\x3e";
mo_saml_subsite_access_denied_page($yo);
die;
}
function mo_saml_plugin_action_links($m3)
{
$m3 = array_merge(array("\74\x61\x20\150\x72\145\146\x3d\42" . esc_url(network_admin_url("\141\x64\x6d\151\x6e\56\160\150\160\77\x70\x61\x67\x65\75\155\x6f\137\x73\x61\x6d\x6c\x5f\x73\x65\164\x74\151\x6e\147\163")) . "\42\76" . __("\x53\x65\x74\x74\151\x6e\147\163", "\x74\145\170\x74\144\157\155\x61\x69\156") . "\x3c\x2f\141\76"), $m3);
return $m3;
}
}
new saml_mo_login();
Function Calls
None |
Stats
MD5 | 29b729bc5dfd4caca694cecf5cc67e9e |
Eval Count | 0 |
Decode Time | 150 ms |