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 Single-Site)miniOrange SAML 2.0 SSO enables user to perform Single Sign On with any SAML 2.0 enabled Identity Provider.
Version: 11.4.0
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";
class saml_mo_login
{
function __construct()
{
add_action("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"));
add_action("admin_enqueue_scripts", array($this, "plugin_settings_script"));
remove_action("admin_notices", array($this, "mo_saml_success_message"));
remove_action("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"));
$oQ = new mo_login_wid();
add_action("wp_logout", array($oQ, "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_filter("cron_schedules", array($this, "myprefix_add_cron_schedule"));
add_action("metadata_sync_cron_action", array($this, "metadata_sync_cron_action"));
register_activation_hook(__FILE__, array($this, "mo_saml_check_openssl"));
add_action("plugin_action_links_" . plugin_basename(__FILE__), array($this, "mo_saml_plugin_action_links"));
add_action("admin_init", array($this, "default_certificate"));
add_option("lcdjkasjdksacl", "default-certificate");
}
function default_certificate()
{
$nM = "-----BEGIN CERTIFICATE-----\xaMIID7TCCAtWgAwIBAgIJAMcsf4R7oVMZMA0GCSqGSIb3DQEBCwUAMIGMMQswCQYD
VQQGEwJJTjELMAkGA1UECAwCTUgxDTALBgNVBAcMBFBVTkUxEzARBgNVBAoMCk1J
TklPUkFOR0UxEzARBgNVBAsMCk1JTklPUkFOR0UxEzARBgNVBAMMCk1JTklPUkFO\xaR0UxIjAgBgkqhkiG9w0BCQEWE2luZm9AbWluaW9yYW5nZS5jb20wHhcNMTUxMDMw
MTA1NDQ4WhcNMjAxMDI4MTA1NDQ4WjCBjDELMAkGA1UEBhMCSU4xCzAJBgNVBAgM\xaAk1IMQ0wCwYDVQQHDARQVU5FMRMwEQYDVQQKDApNSU5JT1JBTkdFMRMwEQYDVQQL
DApNSU5JT1JBTkdFMRMwEQYDVQQDDApNSU5JT1JBTkdFMSIwIAYJKoZIhvcNAQkB\xaFhNpbmZvQG1pbmlvcmFuZ2UuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB\xaCgKCAQEAsxulwAiXvaJvT6JEckasFcHY7eME2hjClXPKtGJ6okiPOPQjMAv+zYxZ\xa2beAUPWxg1pfE7HIdTLh6A0yD2Afnw9ayKmCGiq6rX8TqXzEo8J01M/zGRBXxw+Q\xaCjB7BpWpHUVcdfagUEJrURHRcx6VXXf/9xprbtv7Wsx/WVhqGl6MCtj4m5tTsHyY
D9BOawxtmaq7dNSECkt9qNUfu+EvTYk3LHI3IoJR4HcMTsYjTbJo6lHNT18FQqRe
WcjNXCTvH17Zit4MaH8WGlL32KV62EyTPZwjqrmUHqoXfj87e+1XOpYk+Z/dApMC
47I6++yq+FlyvVne0w48SAHYt4M1rQIDAQABo1AwTjAdBgNVHQ4EFgQUyihK6rNy\xal3Sx9Onzzup0qko7z7QwHwYDVR0jBBgwFoAUyihK6rNyl3Sx9Onzzup0qko7z7Qw
DAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAPnp6Q5jfZ33/0hbeeVr+
ts5PTxKKdPakoGJWAbgqXzf4h8TuCZMjPBE6g7jk1JqvRFWxg7zx+qhvlWRnwfWl\xa9yAffY0TbBx+EU3kyTYBg2UnffUaSvoko1UzFK1v4dOP2u+wTP8nM/I+HxBjVVcg
T+7zOK9Y6GXe1spjdQb2ELdBQ2p7NFXFF4uy6jzN9yw2xBid7ZLkJwGeOykZrrd1\xaYJzGZJoGedpTxrkqbIqRUFnCqKRgB5IzhXO1Xj+xgv8qr0KNJ4oqf58OEHnx2XF2\xa1RY0F9vpQ6/BPQKqO4pWjEuWanV36AZ5nHw6PeJXEsK2RUnABeA/xzjxH/NT6Fh3\xadQ==\xa-----END CERTIFICATE-----";
$am = "-----BEGIN PRIVATE KEY-----\xaMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCzG6XACJe9om9P\xaokRyRqwVwdjt4wTaGMKVc8q0YnqiSI849CMwC/7NjFnZt4BQ9bGDWl8Tsch1MuHo
DTIPYB+fD1rIqYIaKrqtfxOpfMSjwnTUz/MZEFfHD5AKMHsGlakdRVx19qBQQmtR\xaEdFzHpVdd//3Gmtu2/tazH9ZWGoaXowK2Pibm1OwfJgP0E5rDG2Zqrt01IQKS32o
1R+74S9NiTcscjciglHgdwxOxiNNsmjqUc1PXwVCpF5ZyM1cJO8fXtmK3gxofxYa\xaUvfYpXrYTJM9nCOquZQeqhd+Pzt77Vc6liT5n90CkwLjsjr77Kr4WXK9Wd7TDjxI
Adi3gzWtAgMBAAECggEAXxvSU3v8n92OwDnJoOk4XkFWoVQI8ottYJFhVZJpzp07
OKIjwVLNVncuCzevMs6VGcw2aq3gZaPEZEYFjDad9AfiTGX+yUhhYtn1Je40OUV8\xaZrmaPHf6NKFl+pMt8Rwt9nYrmBSDorryY9VTZI8b/8tGKABmhjLYcangAiC6Dw+7
KEPYqrNHfz6W7Xc8jydReWF/Cl0+qu9gVU2yiRh7/MDyE6NLs7DdkQY2E0OwKkSF
DLeGZe/Bn99rSWuZKgWJRTe/oatoeXmwP+oyutlw1jktLihXKDH0fHtgFSUc/M6D
aAjnag+W1yEA0vPEUi02mFwCYazax8e5d+bqFKqJfQKBgQDthutSu2t43sh6RimP\xa7vVM98QTgdh4oeLxgt8vcE/4lcXg3xlcKObl77KgYKp/R1KH186lSJPV7Nv4so9y
FkS3jdUpqW2VrR+C/muCjFCJTus56H1mP2MPDRUcH7/60KoMJ+lGWDMA1EOzR6iY
99xaYL+5eCIuwVDyySdH1I2sdwKBgQDBCaAm3lOEByUkSGGWz3NgNqgPT5apk94y
+PaQqtJFRDa4DZ5NSgFWsmV9gfmSSEP5ofPHDg2TuCQawwfvEyDUu85QNDejBD3k
nhyBdv75ljHLzGkIyTsEhHaefK9j2LSJ/FjhssVa1UerFycKZGNYTBQFXUNOnGI3
dCe5bd4L+wKBgQCAykoolsTkSe/sFMUObSQGssVXSm1ko2qZRzvazgwenp8nmfB3\xaPxpLjNePDDsGPlbqn0JF7n9yXDa9t5v94UMrP7VYHKz1nmRas7b5lzlH6kmzIXN1
EGOW0qIimLiQt7msU6ux37rv9SgsOmuZXbPWMWVjnFb0gQ9yRU2OLhsPawKBgQCs
3rPfWwarm8J1RaSva8RFC21hmMKxxkwclbwpPfDkOvxNw1RansWoIEanKPiZOcI2\xaEgS/5CPgf+1FUhcO0LB8Elvmk3ynrirHS5j3j9szJIAfpEUDq0IA/6dCsyJWZkD3
uVbXeEMo3ws5ephpxBD7h9X+H9Eg2wdR5eGVO4C4dQKBgFPv0IBl2LAYz+pDTbq9
Undfb7fZ3OwJq9Y5QChj8zIhgf5EQZdk0YkPGvc2n2QbVjNUPAZ4wKeXfOUvj8zR\xax0F/+RsJfG1TrDtFe0/8pWnt5oXYxLN0/vHEUU/GXaHNiuXvy3FcGSWMjtg2Ekm4\xaLWf07xNzN+vCkgBQdU8iAKoP\xa-----END PRIVATE KEY-----
";
add_option("mo_saml_cert", $nM);
add_option("mo_saml_cert_private_key", $am);
if (!(!get_option("mo_saml_current_cert") && !get_option("mo_saml_current_cert_private_key"))) {
goto xi;
}
update_option("mo_saml_current_cert", $nM);
update_option("mo_saml_current_cert_private_key", $am);
xi:
}
function mo_saml_check_openssl()
{
if (mo_saml_is_openssl_installed()) {
goto vB;
}
wp_die("PHP openssl extension is not installed or disabled,please enable it to activate the plugin.");
vB:
add_option("Activated_Plugin", "Plugin-Slug");
}
function myprefix_add_cron_schedule($rp)
{
$rp["weekly"] = array("interval" => 604800, "display" => __("Once Weekly"));
$rp["monthly"] = array("interval" => 2635200, "display" => __("Once Monthly"));
return $rp;
}
function metadata_sync_cron_action()
{
error_log("miniorange : RAN SYNC - " . time());
$this->upload_metadata(@file_get_contents(get_option("saml_metadata_url_for_sync")));
}
function mo_login_widget_saml_options()
{
global $wpdb;
update_option("mo_saml_host_name", "https://auth.miniorange.com");
$fV = get_option("mo_saml_host_name");
$Pf = get_option("mo_saml_enable_cloud_broker");
$jx = get_option("saml_x509_certificate");
if (empty($Pf) && !empty($jx)) {
goto CU;
}
if (!empty($Pf)) {
goto uf;
}
update_option("mo_saml_enable_cloud_broker", "false");
uf:
goto Ei;
CU:
update_option("mo_saml_enable_cloud_broker", "true");
Ei:
mo_register_saml_sso();
}
function mo_saml_success_message()
{
$hn = "error";
$bW = get_option("mo_saml_message");
echo "<div class='" . $hn . "'> <p>" . $bW . "</p></div>";
}
function mo_saml_error_message()
{
$hn = "updated";
$bW = get_option("mo_saml_message");
echo "<div class='" . $hn . "'> <p>" . $bW . "</p></div>";
}
public function mo_sso_saml_deactivate()
{
if (!is_multisite()) {
goto Pj;
}
global $wpdb;
$uH = $wpdb->get_col("SELECT blog_id FROM {$wpdb->blogs}");
$bq = get_current_blog_id();
do_action("flush_cache");
foreach ($uH as $blog_id) {
switch_to_blog($blog_id);
delete_option("mo_saml_host_name");
delete_option("mo_saml_new_registration");
delete_option("mo_saml_admin_phone");
delete_option("mo_saml_admin_password");
delete_option("mo_saml_verify_customer");
delete_option("mo_saml_admin_customer_key");
delete_option("mo_saml_admin_api_key");
delete_option("mo_saml_customer_token");
delete_option("mo_saml_message");
delete_option("mo_saml_registration_status");
delete_option("mo_saml_idp_config_complete");
delete_option("mo_saml_transactionId");
delete_option("vl_check_t");
delete_option("vl_check_s");
delete_option("mo_saml_cert");
delete_option("mo_saml_cert_private_key");
delete_option("mo_saml_current_cert");
delete_option("mo_saml_current_cert_private_key");
Vz:
}
En:
switch_to_blog($bq);
goto Hd;
Pj:
do_action("flush_cache");
delete_option("mo_saml_host_name");
delete_option("mo_saml_new_registration");
delete_option("mo_saml_admin_phone");
delete_option("mo_saml_admin_password");
delete_option("mo_saml_verify_customer");
delete_option("mo_saml_admin_customer_key");
delete_option("mo_saml_admin_api_key");
delete_option("mo_saml_customer_token");
delete_option("mo_saml_message");
delete_option("mo_saml_registration_status");
delete_option("mo_saml_idp_config_complete");
delete_option("mo_saml_transactionId");
delete_option("vl_check_t");
delete_option("vl_check_s");
delete_option("mo_saml_cert");
delete_option("mo_saml_cert_private_key");
delete_option("mo_saml_current_cert");
delete_option("mo_saml_current_cert_private_key");
Hd:
}
private function mo_saml_show_success_message()
{
remove_action("admin_notices", array($this, "mo_saml_success_message"));
add_action("admin_notices", array($this, "mo_saml_error_message"));
}
function mo_saml_show_error_message()
{
remove_action("admin_notices", array($this, "mo_saml_error_message"));
add_action("admin_notices", array($this, "mo_saml_success_message"));
}
function plugin_settings_style($HP)
{
if (!("toplevel_page_mo_saml_settings" != $HP)) {
goto Yf;
}
return;
Yf:
wp_enqueue_style("mo_saml_admin_settings_style", plugins_url("includes/css/style_settings.min.css?ver=11.4.0", __FILE__));
wp_enqueue_style("mo_saml_admin_settings_phone_style", plugins_url("includes/css/phone.min.css?ver=11.4.0", __FILE__));
wp_enqueue_style("mo_saml_wpb-fa", plugins_url("includes/css/font-awesome.min.css?ver=11.4.0", __FILE__));
}
function plugin_settings_script($HP)
{
if (!("toplevel_page_mo_saml_settings" != $HP)) {
goto rf;
}
return;
rf:
wp_enqueue_script("jquery");
wp_enqueue_script("mo_saml_admin_bootstrap_script", plugins_url("includes/js/bootstrap.js?ver=11.4.0", __FILE__));
wp_enqueue_script("mo_saml_admin_settings_script", plugins_url("includes/js/settings.min.js?ver=11.4.0", __FILE__));
wp_enqueue_script("mo_saml_admin_settings_phone_script", plugins_url("includes/js/phone.min.js?ver=11.4.0", __FILE__));
}
function mo_saml_activation_message()
{
$hn = "updated";
$bW = get_option("mo_saml_message");
echo "<div class='" . $hn . "'> <p>" . $bW . "</p></div>";
}
function miniorange_login_widget_saml_save_settings()
{
if (!current_user_can("manage_options")) {
goto k0;
}
if (!(is_admin() && get_option("Activated_Plugin") == "Plugin-Slug")) {
goto CO;
}
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("admin_notices", array($this, "mo_saml_activation_message"));
CO:
k0:
if (!(isset($_POST["option"]) && current_user_can("manage_options"))) {
goto Zd;
}
if ($_POST["option"] == "login_widget_saml_save_settings") {
goto kK;
}
if ($_POST["option"] == "login_widget_saml_attribute_mapping") {
goto Yk;
}
if ($_POST["option"] == "login_widget_saml_role_mapping") {
goto WD;
}
if ($_POST["option"] == "mo_saml_update_idp_settings_option") {
goto Sv;
}
if (!($_POST["option"] == "saml_upload_metadata")) {
goto fn;
}
if (function_exists("wp_handle_upload")) {
goto Kk;
}
require_once ABSPATH . "wp-admin/includes/file.php";
Kk:
$this->_handle_upload_metadata();
fn:
goto k2;
Sv:
if (!(isset($_POST["mo_saml_sp_base_url"]) && isset($_POST["mo_saml_sp_entity_id"]))) {
goto em;
}
$zW = sanitize_text_field($_POST["mo_saml_sp_base_url"]);
$ZD = sanitize_text_field($_POST["mo_saml_sp_entity_id"]);
if (!(substr($zW, -1) == "/")) {
goto a9;
}
$zW = substr($zW, 0, -1);
a9:
update_option("mo_saml_sp_base_url", $zW);
update_option("mo_saml_sp_entity_id", $ZD);
em:
update_option("mo_saml_message", "Settings updated successfully.");
$this->mo_saml_show_success_message();
k2:
goto MW;
WD:
if (mo_saml_is_curl_installed()) {
goto W0;
}
update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Save Role Mapping failed.");
$this->mo_saml_show_error_message();
return;
W0:
if (!isset($_POST["saml_am_default_user_role"])) {
goto fq;
}
$kL = $_POST["saml_am_default_user_role"];
update_option("saml_am_default_user_role", $kL);
fq:
if (isset($_POST["saml_am_dont_allow_unlisted_user_role"])) {
goto bv;
}
update_option("saml_am_dont_allow_unlisted_user_role", "unchecked");
goto c0;
bv:
update_option("saml_am_default_user_role", false);
update_option("saml_am_dont_allow_unlisted_user_role", "checked");
c0:
if (isset($_POST["mo_saml_dont_create_user_if_role_not_mapped"])) {
goto lc;
}
update_option("mo_saml_dont_create_user_if_role_not_mapped", "unchecked");
goto Xi;
lc:
update_option("mo_saml_dont_create_user_if_role_not_mapped", "checked");
update_option("saml_am_default_user_role", false);
update_option("saml_am_dont_allow_unlisted_user_role", "unchecked");
Xi:
if (isset($_POST["mo_saml_dont_update_existing_user_role"])) {
goto x2;
}
update_option("saml_am_dont_update_existing_user_role", "unchecked");
goto Tc;
x2:
update_option("saml_am_dont_update_existing_user_role", "checked");
Tc:
if (isset($_POST["mo_saml_dont_allow_user_tologin_create_with_given_groups"])) {
goto BN;
}
update_option("saml_am_dont_allow_user_tologin_create_with_given_groups", "unchecked");
goto LK;
BN:
update_option("saml_am_dont_allow_user_tologin_create_with_given_groups", "checked");
if (!isset($_POST["mo_saml_restrict_users_with_groups"])) {
goto Mi;
}
if (!empty($_POST["mo_saml_restrict_users_with_groups"])) {
goto Tg;
}
update_option("mo_saml_restrict_users_with_groups", '');
goto iw;
Tg:
update_option("mo_saml_restrict_users_with_groups", stripslashes($_POST["mo_saml_restrict_users_with_groups"]));
iw:
Mi:
LK:
$wp_roles = new WP_Roles();
$ST = $wp_roles->get_names();
$QX;
foreach ($ST as $qV => $FI) {
$jw = "saml_am_group_attr_values_" . $qV;
$QX[$qV] = stripslashes($_POST[$jw]);
Nq:
}
qe:
update_option("saml_am_role_mapping", $QX);
update_option("mo_saml_message", "Role Mapping details saved successfully.");
$this->mo_saml_show_success_message();
MW:
goto Ug;
Yk:
if (mo_saml_is_curl_installed()) {
goto AW;
}
update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Save Attribute Mapping failed.");
$this->mo_saml_show_error_message();
return;
AW:
update_option("saml_am_username", stripslashes($_POST["saml_am_username"]));
update_option("saml_am_email", stripslashes($_POST["saml_am_email"]));
update_option("saml_am_first_name", stripslashes($_POST["saml_am_first_name"]));
update_option("saml_am_last_name", stripslashes($_POST["saml_am_last_name"]));
update_option("saml_am_group_name", stripslashes($_POST["saml_am_group_name"]));
update_option("saml_am_account_matcher", stripslashes($_POST["saml_am_account_matcher"]));
update_option("saml_am_display_name", stripslashes($_POST["saml_am_display_name"]));
$j5 = array();
$Qj = 0;
foreach ($_POST as $nz => $q0) {
if (!(strpos($nz, "mo_saml_custom_attribute_key") !== false && !empty($_POST[$nz]))) {
goto QI;
}
$Qj++;
$L5 = "mo_saml_custom_attribute_value_" . $Qj;
$j5[$q0] = $_POST[$L5];
QI:
Fy:
}
Jb:
if (empty($j5)) {
goto gt;
}
update_option("mo_saml_custom_attrs_mapping", $j5);
gt:
update_option("mo_saml_message", "Attribute Mapping details saved successfully");
$this->mo_saml_show_success_message();
Ug:
goto yd;
kK:
if (mo_saml_is_curl_installed()) {
goto Iq;
}
update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Save Identity Provider Configuration failed.");
$this->mo_saml_show_error_message();
return;
Iq:
$hD = '';
$gi = '';
$B5 = '';
$ky = '';
$c1 = '';
$WO = '';
$tS = '';
$JV = '';
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 zx;
}
if (!preg_match("/^\w*$/", $_POST["saml_identity_name"])) {
goto UQ;
}
$hD = trim($_POST["saml_identity_name"]);
$B5 = trim($_POST["saml_login_url"]);
if (!array_key_exists("saml_login_binding_type", $_POST)) {
goto Qg;
}
$gi = $_POST["saml_login_binding_type"];
Qg:
if (!array_key_exists("saml_logout_binding_type", $_POST)) {
goto wE;
}
$ky = $_POST["saml_logout_binding_type"];
wE:
if (!array_key_exists("saml_logout_url", $_POST)) {
goto Uw;
}
$c1 = trim($_POST["saml_logout_url"]);
Uw:
$WO = trim($_POST["saml_issuer"]);
$tS = $_POST["saml_x509_certificate"];
goto ZF;
UQ:
update_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;
ZF:
goto M0;
zx:
update_option("mo_saml_message", "All the fields are required. Please enter valid entries.");
$this->mo_saml_show_error_message();
return;
M0:
update_option("saml_identity_name", $hD);
update_option("saml_login_binding_type", $gi);
update_option("saml_login_url", $B5);
update_option("saml_logout_binding_type", $ky);
update_option("saml_logout_url", $c1);
update_option("saml_issuer", $WO);
if (isset($_POST["saml_request_signed"])) {
goto G6;
}
update_option("saml_request_signed", "unchecked");
goto at;
G6:
update_option("saml_request_signed", "checked");
at:
foreach ($tS as $nz => $q0) {
if (empty($q0)) {
goto fK;
}
$tS[$nz] = SAMLSPUtilities::sanitize_certificate($q0);
if (@openssl_x509_read($tS[$nz])) {
goto Cb;
}
update_option("mo_saml_message", "Invalid certificate: Please provide a valid certificate.");
$this->mo_saml_show_error_message();
delete_option("saml_x509_certificate");
return;
Cb:
goto PC;
fK:
unset($tS[$nz]);
PC:
du:
}
xt:
if (!empty($tS)) {
goto JP;
}
update_option("mo_saml_message", "Invalid Certificate:Please provide a certificate");
$this->mo_saml_show_error_message();
return;
JP:
update_option("saml_x509_certificate", maybe_serialize($tS));
if (isset($_POST["saml_response_signed"])) {
goto Qj;
}
update_option("saml_response_signed", "Yes");
goto WC;
Qj:
update_option("saml_response_signed", "checked");
WC:
if (isset($_POST["saml_assertion_signed"])) {
goto vb;
}
update_option("saml_assertion_signed", "Yes");
goto n0;
vb:
update_option("saml_assertion_signed", "checked");
n0:
if (get_option("mo_saml_enable_cloud_broker") == "true") {
goto ay;
}
update_option("mo_saml_message", "Identity Provider details saved successfully.");
$this->mo_saml_show_success_message();
goto zm;
ay:
$Cw = new Customersaml();
$oq = json_decode($Cw->save_external_idp_config(), true);
if (@openssl_x509_read($oq["samlX509Certificate"])) {
goto VH;
}
update_option("mo_saml_message", "Invalid Certificate format. Please enter a valid certificate.");
$this->mo_saml_show_error_message();
delete_option("saml_x509_certificate");
return;
VH:
if (isset($oq["customerId"])) {
goto uO;
}
update_option("mo_saml_message", "Identity Provider details could not be saved. Please try again.");
$this->mo_saml_show_error_message();
goto wc;
uO:
update_option("saml_x509_certificate", maybe_serialize(array($oq["samlX509Certificate"])));
update_option("mo_saml_message", "Identity Provider details saved successfully.");
$this->mo_saml_show_success_message();
wc:
zm:
yd:
if (isset($_POST["option"]) and $_POST["option"] == "add_custom_certificate") {
goto Z3;
}
if ($_POST["option"] == "mo_saml_relay_state_option") {
goto JT;
}
if ($_POST["option"] == "saml_generate_certificate") {
goto QB;
}
if ($_POST["option"] == "mo_saml_register_customer") {
goto Xo;
}
if ($_POST["option"] == "mo_saml_validate_otp") {
goto iX;
}
if ($_POST["option"] == "mo_saml_verify_customer") {
goto Lf;
}
if ($_POST["option"] == "mo_saml_contact_us_query_option") {
goto ew;
}
if ($_POST["option"] == "mo_saml_resend_otp_email") {
goto Nc;
}
if ($_POST["option"] == "mo_saml_resend_otp_phone") {
goto ku;
}
if ($_POST["option"] == "mo_saml_go_back") {
goto Pw;
}
if ($_POST["option"] == "mo_saml_register_with_phone_option") {
goto jm;
}
if ($_POST["option"] == "mo_saml_registered_only_access_option") {
goto Nb;
}
if ($_POST["option"] == "mo_saml_force_authentication_option") {
goto PG;
}
if ($_POST["option"] == "mo_saml_enable_rss_access_option") {
goto Nl;
}
if ($_POST["option"] == "mo_saml_enable_login_redirect_option") {
goto Vl;
}
if ($_POST["option"] == "mo_saml_enable_cloud_broker") {
goto s0;
}
if ($_POST["option"] == "mo_saml_allow_wp_signin_option") {
goto sL;
}
if ($_POST["option"] == "mo_saml_save_proxy_setting") {
goto u8;
}
if ($_POST["option"] == "mo_saml_forgot_password_form_option") {
goto xd;
}
if ($_POST["option"] == "mo_saml_verify_license") {
goto sK;
}
if ($_POST["option"] == "mo_saml_free_trial") {
goto Sq;
}
if ($_POST["option"] == "mo_saml_check_license") {
goto mS;
}
if (!($_POST["option"] == "mo_saml_remove_account")) {
goto Y9;
}
$this->mo_sso_saml_deactivate();
add_option("mo_saml_registration_status", "removed_account");
$wy = add_query_arg(array("tab" => "login"), $_SERVER["REQUEST_URI"]);
header("Location: " . $wy);
Y9:
goto kF;
mS:
$uh = new Customersaml();
$YY = json_decode($uh->check_customer_ln(), true);
if (strcasecmp($YY["status"], "SUCCESS") == 0) {
goto og;
}
$nz = get_option("mo_saml_customer_token");
update_option("site_ck_l", AESEncryption::encrypt_data("false", $nz));
$wy = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]);
update_option("mo_saml_message", "You have not upgraded yet. " . addLink("Click here", $wy) . " to upgrade to premium version.");
$this->mo_saml_show_error_message();
goto Ut;
og:
if (array_key_exists("licensePlan", $YY) && !$this->mo_saml_check_empty_or_null($YY["licensePlan"])) {
goto f_;
}
$nz = get_option("mo_saml_customer_token");
update_option("site_ck_l", AESEncryption::encrypt_data("false", $nz));
$wy = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]);
update_option("mo_saml_message", "You have not upgraded yet. " . addLink("Click here", $wy) . " to upgrade to premium version.");
$this->mo_saml_show_error_message();
goto X8;
f_:
update_option("mo_saml_license_name", base64_encode($YY["licensePlan"]));
$nz = get_option("mo_saml_customer_token");
if (!(array_key_exists("noOfUsers", $YY) && !$this->mo_saml_check_empty_or_null($YY["noOfUsers"]))) {
goto yW;
}
update_option("mo_saml_usr_lmt", AESEncryption::encrypt_data($YY["noOfUsers"], $nz));
yW:
update_option("site_ck_l", AESEncryption::encrypt_data("true", $nz));
$kt = plugin_dir_path(__FILE__);
$X2 = home_url();
$X2 = trim($X2, "/");
if (preg_match("#^http(s)?://#", $X2)) {
goto IH;
}
$X2 = "http://" . $X2;
IH:
$Ab = parse_url($X2);
$D3 = preg_replace("/^www\./", '', $Ab["host"]);
$i0 = wp_upload_dir();
$gJ = $D3 . "-" . $i0["basedir"];
$xr = hash_hmac("sha256", $gJ, "4DHfjgfjasndfsajfHGJ");
$y0 = $this->djkasjdksa();
$dz = round(strlen($y0) / rand(2, 20));
$y0 = substr_replace($y0, $xr, $dz, 0);
$KW = base64_decode($y0);
if (is_writable($kt . "license")) {
goto jv;
}
$y0 = str_rot13($y0);
$ue = base64_decode("bGNkamthc2pka3NhY2w=");
update_option($ue, $y0);
goto w8;
jv:
file_put_contents($kt . "license", $KW);
w8:
update_option("lcwrtlfsaml", true);
$wy = add_query_arg(array("tab" => "general"), $_SERVER["REQUEST_URI"]);
update_option("mo_saml_message", "You have successfully upgraded your license.");
$this->mo_saml_show_success_message();
X8:
Ut:
kF:
goto RD;
Sq:
if (decryptSamlElement()) {
goto Ro;
}
$Az = postResponse();
$uh = new Customersaml();
$YY = json_decode($uh->mo_saml_vl($Az, false), true);
if (strcasecmp($YY["status"], "SUCCESS") == 0) {
goto LM;
}
if (strcasecmp($YY["status"], "FAILED") == 0) {
goto lw;
}
update_option("mo_saml_message", "An error occured while processing your request. Please Try again.");
$this->mo_saml_show_error_message();
goto ob;
lw:
update_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();
ob:
goto nt;
LM:
$nz = get_option("mo_saml_customer_token");
$nz = get_option("mo_saml_customer_token");
update_option("t_site_status", AESEncryption::encrypt_data("true", $nz));
update_option("mo_saml_message", "Your 5 days TRIAL is activated. You can now setup the plugin.");
$this->mo_saml_show_success_message();
nt:
goto Rs;
Ro:
update_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();
Rs:
RD:
goto r2;
sK:
if (!$this->mo_saml_check_empty_or_null($_POST["saml_licence_key"])) {
goto aF;
}
update_option("mo_saml_message", "All the fields are required. Please enter valid license key.");
$this->mo_saml_show_error_message();
return;
aF:
$Az = trim($_POST["saml_licence_key"]);
$uh = new Customersaml();
$YY = json_decode($uh->check_customer_ln(), true);
if (strcasecmp($YY["status"], "SUCCESS") == 0) {
goto sw;
}
$nz = get_option("mo_saml_customer_token");
update_option("site_ck_l", AESEncryption::encrypt_data("false", $nz));
$wy = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]);
update_option("mo_saml_message", "You have not upgraded yet. " . addLink("Click here", $wy) . " to upgrade to premium version.");
$this->mo_saml_show_error_message();
goto O_;
sw:
$YY = json_decode($uh->mo_saml_vl($Az, false), true);
update_option("vl_check_t", time());
if (strcasecmp($YY["status"], "SUCCESS") == 0) {
goto cT;
}
if (strcasecmp($YY["status"], "FAILED") == 0) {
goto Uc;
}
update_option("mo_saml_message", "An error occured while processing your request. Please Try again.");
$this->mo_saml_show_error_message();
goto TD;
Uc:
if (strcasecmp($YY["message"], "Code has Expired") == 0) {
goto gT;
}
update_option("mo_saml_message", "You have entered an invalid license key. Please enter a valid license key.");
goto Db;
gT:
$wy = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]);
update_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 " . addLink("Click here", $wy) . " to buy more.");
Db:
$this->mo_saml_show_error_message();
TD:
goto sQ;
cT:
$nz = get_option("mo_saml_customer_token");
update_option("sml_lk", AESEncryption::encrypt_data($Az, $nz));
$bW = "Your license is verified. You can now setup the plugin.";
update_option("mo_saml_message", $bW);
$nz = get_option("mo_saml_customer_token");
update_option("site_ck_l", AESEncryption::encrypt_data("true", $nz));
update_option("t_site_status", AESEncryption::encrypt_data("false", $nz));
$kt = plugin_dir_path(__FILE__);
$X2 = home_url();
$X2 = trim($X2, "/");
if (preg_match("#^http(s)?://#", $X2)) {
goto Fr;
}
$X2 = "http://" . $X2;
Fr:
$Ab = parse_url($X2);
$D3 = preg_replace("/^www\./", '', $Ab["host"]);
$i0 = wp_upload_dir();
$gJ = $D3 . "-" . $i0["basedir"];
$xr = hash_hmac("sha256", $gJ, "4DHfjgfjasndfsajfHGJ");
$y0 = $this->djkasjdksa();
$dz = round(strlen($y0) / rand(2, 20));
$y0 = substr_replace($y0, $xr, $dz, 0);
$KW = base64_decode($y0);
if (is_writable($kt . "license")) {
goto a0;
}
$y0 = str_rot13($y0);
$ue = base64_decode("bGNkamthc2pka3NhY2w=");
update_option($ue, $y0);
goto dk;
a0:
file_put_contents($kt . "license", $KW);
dk:
update_option("lcwrtlfsaml", true);
$wy = add_query_arg(array("tab" => "general"), $_SERVER["REQUEST_URI"]);
$this->mo_saml_show_success_message();
sQ:
O_:
r2:
goto AL;
xd:
if (mo_saml_is_curl_installed()) {
goto cD;
}
update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Resend OTP failed.");
$this->mo_saml_show_error_message();
return;
cD:
$Mb = get_option("mo_saml_admin_email");
$uh = new Customersaml();
$YY = json_decode($uh->mo_saml_forgot_password($Mb), true);
if (strcasecmp($YY["status"], "SUCCESS") == 0) {
goto a6;
}
update_option("mo_saml_message", "An error occured while processing your request. Please Try again.");
$this->mo_saml_show_error_message();
goto Co;
a6:
update_option("mo_saml_message", "Your password has been reset successfully. Please enter the new password sent to " . $Mb . ".");
$this->mo_saml_show_success_message();
Co:
AL:
goto Le;
u8:
update_option("mo_proxy_host", $_POST["mo_proxy_host"]);
update_option("mo_proxy_port", $_POST["mo_proxy_port"]);
update_option("mo_proxy_username", $_POST["mo_proxy_username"]);
update_option("mo_proxy_password", $_POST["mo_proxy_password"]);
update_option("mo_saml_message", "Proxy settings saved successfully");
$this->mo_saml_show_success_message();
Le:
goto Ej;
sL:
$Ck = "false";
if (array_key_exists("mo_saml_allow_wp_signin", $_POST)) {
goto OC;
}
$FZ = "false";
goto pa;
OC:
$FZ = $_POST["mo_saml_allow_wp_signin"];
pa:
if ($FZ == "true") {
goto co;
}
update_option("mo_saml_allow_wp_signin", '');
goto ro;
co:
update_option("mo_saml_allow_wp_signin", "true");
if (!array_key_exists("mo_saml_backdoor_url", $_POST)) {
goto Oi;
}
$Ck = $_POST["mo_saml_backdoor_url"];
Oi:
ro:
update_option("mo_saml_backdoor_url", $Ck);
update_option("mo_saml_message", "Sign In settings updated.");
$this->mo_saml_show_success_message();
Ej:
goto zE;
s0:
if (array_key_exists("mo_saml_enable_cloud_broker", $_POST)) {
goto Ox;
}
$MH = "false";
goto gh;
Ox:
$MH = $_POST["mo_saml_enable_cloud_broker"];
gh:
if ($MH == "true") {
goto Cg;
}
update_option("mo_saml_enable_cloud_broker", "false");
goto Xk;
Cg:
update_option("mo_saml_enable_cloud_broker", "true");
Xk:
update_option("mo_saml_message", "Sign in options updated.");
$this->mo_saml_show_success_message();
zE:
goto Bq;
Vl:
if (mo_saml_is_sp_configured()) {
goto Na;
}
update_option("mo_saml_message", "Please complete " . addLink("Service Provider", add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"])) . " configuration first.");
$this->mo_saml_show_error_message();
goto yL;
Na:
if (array_key_exists("mo_saml_enable_login_redirect", $_POST)) {
goto H1;
}
$MH = "false";
goto rY;
H1:
$MH = $_POST["mo_saml_enable_login_redirect"];
rY:
if ($MH == "true") {
goto Qh;
}
update_option("mo_saml_enable_login_redirect", '');
update_option("mo_saml_allow_wp_signin", '');
goto WI;
Qh:
update_option("mo_saml_enable_login_redirect", "true");
update_option("mo_saml_allow_wp_signin", "true");
WI:
update_option("mo_saml_message", "Sign in options updated.");
$this->mo_saml_show_success_message();
yL:
Bq:
goto CT;
Nl:
if (mo_saml_is_sp_configured()) {
goto RC;
}
update_option("mo_saml_message", "Please complete " . addLink("Service Provider", add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"])) . " configuration first.");
$this->mo_saml_show_error_message();
goto kt;
RC:
if (array_key_exists("mo_saml_enable_rss_access", $_POST)) {
goto ne;
}
$JT = false;
goto X3;
ne:
$JT = $_POST["mo_saml_enable_rss_access"];
X3:
if ($JT == "true") {
goto Ku;
}
update_option("mo_saml_enable_rss_access", '');
goto yj;
Ku:
update_option("mo_saml_enable_rss_access", "true");
yj:
update_option("mo_saml_message", "RSS Feed option updated.");
$this->mo_saml_show_success_message();
kt:
CT:
goto kw;
PG:
if (mo_saml_is_sp_configured()) {
goto B5;
}
update_option("mo_saml_message", "Please complete " . addLink("Service Provider", add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"])) . " configuration first.");
$this->mo_saml_show_error_message();
goto Bp;
B5:
if (array_key_exists("mo_saml_force_authentication", $_POST)) {
goto yY;
}
$MH = "false";
goto Eq;
yY:
$MH = $_POST["mo_saml_force_authentication"];
Eq:
if ($MH == "true") {
goto ng;
}
update_option("mo_saml_force_authentication", '');
goto tW;
ng:
update_option("mo_saml_force_authentication", "true");
tW:
update_option("mo_saml_message", "Sign in options updated.");
$this->mo_saml_show_success_message();
Bp:
kw:
goto uF;
Nb:
if (mo_saml_is_sp_configured()) {
goto ai;
}
update_option("mo_saml_message", "Please complete " . addLink("Service Provider", add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"])) . " configuration first.");
$this->mo_saml_show_error_message();
goto y8;
ai:
if (array_key_exists("mo_saml_registered_only_access", $_POST)) {
goto Vy;
}
$MH = "false";
goto cv;
Vy:
$MH = $_POST["mo_saml_registered_only_access"];
cv:
if ($MH == "true") {
goto iP;
}
update_option("mo_saml_registered_only_access", '');
goto bV;
iP:
update_option("mo_saml_registered_only_access", "true");
bV:
update_option("mo_saml_message", "Sign in options updated.");
$this->mo_saml_show_success_message();
y8:
uF:
goto Rd;
jm:
if (mo_saml_is_curl_installed()) {
goto fm;
}
update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Resend OTP failed.");
$this->mo_saml_show_error_message();
return;
fm:
$u4 = sanitize_text_field($_POST["phone"]);
$u4 = str_replace(" ", '', $u4);
$u4 = str_replace("-", '', $u4);
update_option("mo_saml_admin_phone", $u4);
$uh = new CustomerSaml();
$YY = json_decode($uh->send_otp_token('', $u4, FALSE, TRUE), true);
if (strcasecmp($YY["status"], "SUCCESS") == 0) {
goto YF;
}
update_option("mo_saml_message", "There was an error in sending SMS. Please click on Resend OTP to try again.");
update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_FAILURE_PHONE");
$this->mo_saml_show_error_message();
goto CL;
YF:
update_option("mo_saml_message", " A one time passcode is sent to " . get_option("mo_saml_admin_phone") . ". Please enter the otp here to verify your email.");
update_option("mo_saml_transactionId", $YY["txId"]);
update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_PHONE");
$this->mo_saml_show_success_message();
CL:
Rd:
goto uM;
Pw:
update_option("mo_saml_registration_status", '');
update_option("mo_saml_verify_customer", '');
delete_option("mo_saml_new_registration");
delete_option("mo_saml_admin_email");
delete_option("mo_saml_admin_phone");
delete_site_option("sml_lk");
delete_site_option("t_site_status");
delete_site_option("site_ck_l");
uM:
goto Ht;
ku:
if (mo_saml_is_curl_installed()) {
goto lA;
}
update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Resend OTP failed.");
$this->mo_saml_show_error_message();
return;
lA:
$u4 = get_option("mo_saml_admin_phone");
$uh = new CustomerSaml();
$YY = json_decode($uh->send_otp_token('', $u4, FALSE, TRUE), true);
if (strcasecmp($YY["status"], "SUCCESS") == 0) {
goto cN;
}
update_option("mo_saml_message", "There was an error in sending email. Please click on Resend OTP to try again.");
update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_FAILURE_PHONE");
$this->mo_saml_show_error_message();
goto V7;
cN:
update_option("mo_saml_message", " A one time passcode is sent to " . $u4 . " again. Please check if you got the otp and enter it here.");
update_option("mo_saml_transactionId", $YY["txId"]);
update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_PHONE");
$this->mo_saml_show_success_message();
V7:
Ht:
goto pm;
Nc:
if (mo_saml_is_curl_installed()) {
goto US;
}
update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Resend OTP failed.");
$this->mo_saml_show_error_message();
return;
US:
$Mb = get_option("mo_saml_admin_email");
$uh = new CustomerSaml();
$YY = json_decode($uh->send_otp_token($Mb, ''), true);
if (strcasecmp($YY["status"], "SUCCESS") == 0) {
goto kj;
}
update_option("mo_saml_message", "There was an error in sending email. Please click on Resend OTP to try again.");
update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_FAILURE_EMAIL");
$this->mo_saml_show_error_message();
goto rX;
kj:
update_option("mo_saml_message", " A one time passcode is sent to " . get_option("mo_saml_admin_email") . " again. Please check if you got the otp and enter it here.");
update_option("mo_saml_transactionId", $YY["txId"]);
update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_EMAIL");
$this->mo_saml_show_success_message();
rX:
pm:
goto uq;
ew:
if (mo_saml_is_curl_installed()) {
goto tD;
}
update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Query submit failed.");
$this->mo_saml_show_error_message();
return;
tD:
$Mb = $_POST["mo_saml_contact_us_email"];
$u4 = $_POST["mo_saml_contact_us_phone"];
$R7 = $_POST["mo_saml_contact_us_query"];
$uh = new CustomerSaml();
if ($this->mo_saml_check_empty_or_null($Mb) || $this->mo_saml_check_empty_or_null($R7)) {
goto x6;
}
$UR = $uh->submit_contact_us($Mb, $u4, $R7);
if ($UR == false) {
goto Kd;
}
update_option("mo_saml_message", "Thanks for getting in touch! We shall get back to you shortly.");
$this->mo_saml_show_success_message();
goto vw;
Kd:
update_option("mo_saml_message", "Your query could not be submitted. Please try again.");
$this->mo_saml_show_error_message();
vw:
goto xB;
x6:
update_option("mo_saml_message", "Please fill up Email and Query fields to submit your query.");
$this->mo_saml_show_error_message();
xB:
uq:
goto Ez;
Lf:
if (mo_saml_is_curl_installed()) {
goto NG;
}
update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Login failed.");
$this->mo_saml_show_error_message();
return;
NG:
$Mb = '';
$WZ = '';
if ($this->mo_saml_check_empty_or_null($_POST["email"]) || $this->mo_saml_check_empty_or_null($_POST["password"])) {
goto Rv;
}
$Mb = sanitize_email($_POST["email"]);
$WZ = sanitize_text_field($_POST["password"]);
goto xR;
Rv:
update_option("mo_saml_message", "All the fields are required. Please enter valid entries.");
$this->mo_saml_show_error_message();
return;
xR:
update_option("mo_saml_admin_email", $Mb);
update_option("mo_saml_admin_password", $WZ);
$uh = new Customersaml();
$YY = $uh->get_customer_key();
$VO = json_decode($YY, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto oX;
}
update_option("mo_saml_message", "Invalid username or password. Please try again.");
$this->mo_saml_show_error_message();
goto tQ;
oX:
update_option("mo_saml_admin_customer_key", $VO["id"]);
update_option("mo_saml_admin_api_key", $VO["apiKey"]);
update_option("mo_saml_customer_token", $VO["token"]);
update_option("mo_saml_admin_phone", $VO["phone"]);
update_option("mo_saml_admin_password", '');
update_option("mo_saml_message", "Customer retrieved successfully");
update_option("mo_saml_registration_status", "Existing User");
delete_option("mo_saml_verify_customer");
if (get_option("sml_lk")) {
goto tN;
}
$this->mo_saml_show_success_message();
goto XF;
tN:
$nz = get_option("mo_saml_customer_token");
$Az = AESEncryption::decrypt_data(get_option("sml_lk"), $nz);
$YY = json_decode($uh->mo_saml_vl($Az, false), true);
update_option("vl_check_t", time());
if (strcasecmp($YY["status"], "SUCCESS") == 0) {
goto V0;
}
update_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_option("sml_lk");
$this->mo_saml_show_error_message();
goto GQ;
V0:
$kt = plugin_dir_path(__FILE__);
$X2 = home_url();
$X2 = trim($X2, "/");
if (preg_match("#^http(s)?://#", $X2)) {
goto Iz;
}
$X2 = "http://" . $X2;
Iz:
$Ab = parse_url($X2);
$D3 = preg_replace("/^www\./", '', $Ab["host"]);
$i0 = wp_upload_dir();
$gJ = $D3 . "-" . $i0["basedir"];
$xr = hash_hmac("sha256", $gJ, "4DHfjgfjasndfsajfHGJ");
$y0 = $this->djkasjdksa();
$dz = round(strlen($y0) / rand(2, 20));
$y0 = substr_replace($y0, $xr, $dz, 0);
$KW = base64_decode($y0);
if (is_writable($kt . "license")) {
goto Zf;
}
$y0 = str_rot13($y0);
$ue = base64_decode("bGNkamthc2pka3NhY2w=");
update_option($ue, $y0);
goto nz;
Zf:
file_put_contents($kt . "license", $KW);
nz:
update_option("lcwrtlfsaml", true);
$this->mo_saml_show_success_message();
GQ:
XF:
tQ:
update_option("mo_saml_admin_password", '');
Ez:
goto mm;
iX:
if (mo_saml_is_curl_installed()) {
goto yB;
}
update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Validate OTP failed.");
$this->mo_saml_show_error_message();
return;
yB:
$Rt = '';
if ($this->mo_saml_check_empty_or_null($_POST["otp_token"])) {
goto FI;
}
$Rt = sanitize_text_field($_POST["otp_token"]);
goto Mg;
FI:
update_option("mo_saml_message", "Please enter a value in otp field.");
$this->mo_saml_show_error_message();
return;
Mg:
$uh = new CustomerSaml();
$YY = json_decode($uh->validate_otp_token(get_option("mo_saml_transactionId"), $Rt), true);
if (strcasecmp($YY["status"], "SUCCESS") == 0) {
goto lm;
}
update_option("mo_saml_message", "Invalid one time passcode. Please enter a valid otp.");
$this->mo_saml_show_error_message();
goto Q8;
lm:
$this->create_customer();
Q8:
mm:
goto py;
Xo:
if (mo_saml_is_curl_installed()) {
goto Ky;
}
update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Registration failed.");
$this->mo_saml_show_error_message();
return;
Ky:
$Mb = '';
$u4 = '';
$WZ = '';
$rm = '';
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 J1;
}
if (strlen($_POST["password"]) < 6 || strlen($_POST["confirmPassword"]) < 6) {
goto MM;
}
$Mb = sanitize_email($_POST["email"]);
$u4 = sanitize_text_field($_POST["phone"]);
$WZ = sanitize_text_field($_POST["password"]);
$rm = sanitize_text_field($_POST["confirmPassword"]);
goto hx;
MM:
update_option("mo_saml_message", "Choose a password with minimum length 6.");
$this->mo_saml_show_error_message();
return;
hx:
goto oN;
J1:
update_option("mo_saml_message", "All the fields are required. Please enter valid entries.");
$this->mo_saml_show_error_message();
return;
oN:
update_option("mo_saml_admin_email", $Mb);
update_option("mo_saml_admin_phone", $u4);
if (strcmp($WZ, $rm) == 0) {
goto aL;
}
update_option("mo_saml_message", "Passwords do not match.");
delete_option("mo_saml_verify_customer");
$this->mo_saml_show_error_message();
goto Q7;
aL:
update_option("mo_saml_admin_password", $WZ);
$Mb = get_option("mo_saml_admin_email");
$uh = new CustomerSaml();
$YY = json_decode($uh->check_customer(), true);
if (strcasecmp($YY["status"], "CUSTOMER_NOT_FOUND") == 0) {
goto hu;
}
$this->get_current_customer();
goto gK;
hu:
$YY = json_decode($uh->send_otp_token($Mb, ''), true);
if (strcasecmp($YY["status"], "SUCCESS") == 0) {
goto Me;
}
update_option("mo_saml_message", "There was an error in sending email. Please verify your email and try again.");
update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_FAILURE_EMAIL");
$this->mo_saml_show_error_message();
goto i1;
Me:
update_option("mo_saml_message", " A one time passcode is sent to " . get_option("mo_saml_admin_email") . ". Please enter the otp here to verify your email.");
update_option("mo_saml_transactionId", $YY["txId"]);
update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_EMAIL");
$this->mo_saml_show_success_message();
i1:
gK:
Q7:
py:
goto QZ;
QB:
$N5 = array("countryName" => $_POST["country"], "stateOrProvinceName" => $_POST["state"], "localityName" => $_POST["locality"], "organizationName" => $_POST["org"], "organizationalUnitName" => $_POST["org_unit"], "commonName" => $_POST["cn"], "emailAddress" => $_POST["email"]);
$jj = array("digest_alg" => $_POST["hash_algorithm"], "x509_extensions" => "v3_ca", "private_key_bits" => 2048, "private_key_type" => OPENSSL_KEYTYPE_RSA, "encrypt_key" => false);
$Uq = CertificateUtility::generate_certificate($N5, $jj, (int) $_POST["expiry_days"]);
update_option("mo_saml_current_cert", $Uq["public_key"]);
$rj = $rj && update_option("mo_saml_current_cert_private_key", $Uq["private_key"]);
if ($rj) {
goto aa;
}
update_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 S2;
aa:
update_option("mo_saml_message", "New certificates generated successfully.");
$this->mo_saml_show_success_message();
S2:
QZ:
goto z0;
JT:
$Xk = sanitize_text_field($_POST["mo_saml_relay_state"]);
update_option("mo_saml_relay_state", $Xk);
update_option("mo_saml_message", "Relay State updated successfully.");
$this->mo_saml_show_success_message();
z0:
goto FB;
Z3:
if (isset($_POST["submit"]) and $_POST["submit"] == "Upload") {
goto y6;
}
if (!(isset($_POST["submit"]) and $_POST["submit"] == "Reset")) {
goto vT;
}
delete_option("mo_saml_custom_cert");
delete_option("mo_saml_custom_cert_private_key");
update_option("mo_saml_current_cert", isset($nM));
update_option("mo_saml_current_cert_private_key", isset($am));
update_option("mo_saml_message", "Reset Certificate successfully.");
$this->mo_saml_show_success_message();
vT:
goto L7;
y6:
if (!@openssl_x509_read($_POST["saml_public_x509_certificate"])) {
goto M2;
}
if (!@openssl_x509_check_private_key($_POST["saml_public_x509_certificate"], $_POST["saml_private_x509_certificate"])) {
goto xK;
}
if (openssl_x509_read($_POST["saml_public_x509_certificate"]) && openssl_x509_check_private_key($_POST["saml_public_x509_certificate"], $_POST["saml_private_x509_certificate"])) {
goto aW;
}
goto bW;
M2:
update_option("mo_saml_message", "Invalid Certificate format. Please enter a valid certificate.");
$this->mo_saml_show_error_message();
return;
goto bW;
xK:
update_option("mo_saml_message", "Invalid Private Key.");
$this->mo_saml_show_error_message();
return;
goto bW;
aW:
$WP = $_POST["saml_public_x509_certificate"];
$y_ = $_POST["saml_private_x509_certificate"];
update_option("mo_saml_custom_cert", $WP);
update_option("mo_saml_custom_cert_private_key", $y_);
update_option("mo_saml_current_cert", $WP);
update_option("mo_saml_current_cert_private_key", $y_);
update_option("mo_saml_message", "Custom Certificate updated successfully.");
$this->mo_saml_show_success_message();
bW:
L7:
FB:
Zd:
add_action("support_form", "support_form", 10, 3);
do_action("support_form");
if (mo_saml_is_trial_active()) {
goto xZ;
}
if (site_check()) {
goto hZ;
}
delete_option("mo_saml_force_authentication");
hZ:
goto lf;
xZ:
if (!decryptSamlElement()) {
goto OF;
}
$nz = get_option("mo_saml_customer_token");
update_option("t_site_status", AESEncryption::encrypt_data("false", $nz));
OF:
lf:
}
function djkasjdksa()
{
$m4 = "!~@#$%^&*()_+|{}<>?0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
$HC = strlen($m4);
$zM = '';
$Qj = 0;
zY:
if (!($Qj < 10000)) {
goto tl;
}
$zM .= $m4[rand(0, $HC - 1)];
UM:
$Qj++;
goto zY;
tl:
return $zM;
}
function create_customer()
{
$uh = new CustomerSaml();
$VO = json_decode($uh->create_customer(), true);
if (strcasecmp($VO["status"], "CUSTOMER_USERNAME_ALREADY_EXISTS") == 0) {
goto yv;
}
if (!(strcasecmp($VO["status"], "SUCCESS") == 0)) {
goto V1;
}
update_option("mo_saml_admin_customer_key", $VO["id"]);
update_option("mo_saml_admin_api_key", $VO["apiKey"]);
update_option("mo_saml_customer_token", $VO["token"]);
update_option("mo_saml_admin_password", '');
update_option("mo_saml_message", "Thank you for registering with miniorange.");
update_option("mo_saml_registration_status", '');
delete_option("mo_saml_verify_customer");
delete_option("mo_saml_new_registration");
$this->mo_saml_show_success_message();
V1:
goto Rn;
yv:
$this->get_current_customer();
Rn:
update_option("mo_saml_admin_password", '');
}
function get_current_customer()
{
$uh = new CustomerSaml();
$YY = $uh->get_customer_key();
$VO = json_decode($YY, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto C1;
}
update_option("mo_saml_message", "You already have an account with miniOrange. Please enter a valid password.");
update_option("mo_saml_verify_customer", "true");
delete_option("mo_saml_new_registration");
$this->mo_saml_show_error_message();
goto R8;
C1:
update_option("mo_saml_admin_customer_key", $VO["id"]);
update_option("mo_saml_admin_api_key", $VO["apiKey"]);
update_option("mo_saml_customer_token", $VO["token"]);
update_option("mo_saml_admin_password", '');
update_option("mo_saml_message", "Your account has been retrieved successfully.");
delete_option("mo_saml_verify_customer");
delete_option("mo_saml_new_registration");
$this->mo_saml_show_success_message();
R8:
}
public function mo_saml_check_empty_or_null($q0)
{
if (!(!isset($q0) || empty($q0))) {
goto w0;
}
return true;
w0:
return false;
}
function miniorange_sso_menu()
{
$HP = 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($Xk)
{
if (!mo_saml_is_customer_license_key_verified()) {
goto rK;
}
if (get_option("mo_saml_enable_cloud_broker") != "true") {
goto Hh;
}
$Uf = get_option("mo_saml_host_name") . "/moas/rest/saml/request?id=" . get_option("mo_saml_admin_customer_key") . "&returnurl=" . urlencode(home_url() . "/?option=readsamllogin&redirect_to=" . urlencode($Xk));
header("Location: " . $Uf);
die;
goto Ur;
Hh:
if (!(mo_saml_is_sp_configured() && !is_user_logged_in())) {
goto W9;
}
$zW = get_option("mo_saml_sp_base_url");
if (!empty($zW)) {
goto zy;
}
$zW = home_url();
zy:
if (!(get_option("mo_saml_relay_state") && get_option("mo_saml_relay_state") != '')) {
goto pL;
}
$Xk = get_option("mo_saml_relay_state");
pL:
$Un = empty($Xk) ? "/" : $Xk;
$m6 = get_option("saml_login_url");
$r_ = get_option("saml_login_binding_type");
$f4 = get_option("mo_saml_force_authentication");
$f3 = $zW . "/";
$ZD = get_option("mo_saml_sp_entity_id");
if (!empty($ZD)) {
goto CF;
}
$ZD = $zW . "/wp-content/plugins/miniorange-saml-20-single-sign-on/";
CF:
$zx = SAMLSPUtilities::createAuthnRequest($f3, $ZD, $m6, $f4, $r_);
if (empty($r_) || $r_ == "HttpRedirect") {
goto El;
}
if (!(get_option("saml_request_signed") == "unchecked")) {
goto z4;
}
$bD = base64_encode($zx);
SAMLSPUtilities::postSAMLRequest($m6, $bD, $Un);
die;
z4:
$j9 = '';
$Cv = '';
$bD = SAMLSPUtilities::signXML($zx, "NameIDPolicy");
SAMLSPUtilities::postSAMLRequest($m6, $bD, $Un);
goto kv;
El:
$ex = $m6;
if (strpos($m6, "?") !== false) {
goto qx;
}
$ex .= "?";
goto HL;
qx:
$ex .= "&";
HL:
if (!(get_option("saml_request_signed") == "unchecked")) {
goto e0;
}
$ex .= "SAMLRequest=" . $zx . "&RelayState=" . urlencode($Un);
header("Location: " . $ex);
die;
e0:
$zx = "SAMLRequest=" . $zx . "&RelayState=" . urlencode($Un) . "&SigAlg=" . urlencode(XMLSecurityKey::RSA_SHA256);
$Vs = array("type" => "private");
$nz = new XMLSecurityKey(XMLSecurityKey::RSA_SHA256, $Vs);
$J2 = get_option("mo_saml_current_cert_private_key");
$nz->loadKey($J2, FALSE);
$wr = new XMLSecurityDSig();
$SI = $nz->signData($zx);
$SI = base64_encode($SI);
$ex .= $zx . "&Signature=" . urlencode($SI);
header("Location: " . $ex);
die;
kv:
W9:
Ur:
rK:
}
function mo_saml_authenticate()
{
$jL = '';
if (!isset($_REQUEST["redirect_to"])) {
goto kx;
}
$jL = $_REQUEST["redirect_to"];
kx:
if (!is_user_logged_in()) {
goto sN;
}
if (!empty($jL)) {
goto BZ;
}
header("Location: " . home_url());
goto cb;
BZ:
header("Location: " . $jL);
cb:
die;
sN:
if (!(get_option("mo_saml_enable_login_redirect") == "true")) {
goto Ec;
}
$gL = get_option("mo_saml_backdoor_url") ? get_option("mo_saml_backdoor_url") : "false";
if (isset($_GET["loggedout"]) && $_GET["loggedout"] == "true") {
goto tr;
}
if (get_option("mo_saml_allow_wp_signin") == "true") {
goto eN;
}
goto g3;
tr:
header("Location: " . home_url());
die;
goto g3;
eN:
if (isset($_GET["saml_sso"]) && $_GET["saml_sso"] === $gL || isset($_POST["saml_sso"]) && $_POST["saml_sso"] === $gL) {
goto Je;
}
if (isset($_REQUEST["redirect_to"])) {
goto Wx;
}
goto XQ;
Je:
return;
goto XQ;
Wx:
$jL = $_REQUEST["redirect_to"];
if (!(strpos($jL, "wp-admin") !== false && strpos($jL, " saml_sso=" . $gL) !== false)) {
goto zJ;
}
return;
zJ:
XQ:
g3:
$this->mo_saml_redirect_for_authentication($jL);
Ec:
}
function mo_saml_auto_redirect()
{
if (!current_user_can("read")) {
goto Yx;
}
return;
Yx:
if (!(get_option("mo_saml_registered_only_access") == "true")) {
goto av;
}
if (!(get_option("mo_saml_enable_rss_access") == "true" && is_feed())) {
goto B4;
}
return;
B4:
$Xk = saml_get_current_page_url();
$this->mo_saml_redirect_for_authentication($Xk);
av:
}
function mo_saml_modify_login_form()
{
$gL = get_option("mo_saml_backdoor_url") ? get_option("mo_saml_backdoor_url") : "false";
echo "<input type="hidden" name="saml_sso" value=" . $gL . ">" . "\xa";
}
function mo_get_saml_shortcode()
{
if (!is_user_logged_in()) {
goto cr;
}
$gy = "Hello, " . wp_get_current_user()->display_name . " | " . addLink("Logout", wp_logout_url(home_url()));
goto Ba;
cr:
$zW = get_option("mo_saml_sp_base_url");
if (!empty($zW)) {
goto uK;
}
$zW = home_url();
uK:
if (mo_saml_is_sp_configured() && mo_saml_is_customer_license_key_verified()) {
goto Ye;
}
$gy = "SP is not configured.";
goto Ks;
Ye:
if (get_option("mo_saml_enable_cloud_broker") != "true") {
goto e9;
}
$gy = addLink("Login with " . get_option("saml_identity_name"), get_option("mo_saml_host_name") . "/moas/rest/saml/request?id=" . get_option("mo_saml_admin_customer_key") . "&returnurl=" . urlencode(home_url() . "/?option=readsamllogin"));
goto Be;
e9:
$jL = urlencode(saml_get_current_page_url());
$gy = addLink("Login with " . get_option("saml_identity_name"), $zW . "/?option=saml_user_login&redirect_to=" . $jL);
Be:
Ks:
Ba:
return $gy;
}
function _handle_upload_metadata()
{
if (!(isset($_FILES["metadata_file"]) || isset($_POST["metadata_url"]))) {
goto qU;
}
if (!empty($_FILES["metadata_file"]["tmp_name"])) {
goto WJ;
}
$wy = $_POST["metadata_url"];
$WY = curl_init();
curl_setopt($WY, CURLOPT_URL, $wy);
curl_setopt($WY, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($WY, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($WY, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($WY, CURLOPT_SSL_VERIFYHOST, false);
$Hm = get_option("mo_proxy_host");
if (empty($Hm)) {
goto W2;
}
curl_setopt($WY, CURLOPT_PROXY, get_option("mo_proxy_host"));
curl_setopt($WY, CURLOPT_PROXYPORT, get_option("mo_proxy_port"));
curl_setopt($WY, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($WY, CURLOPT_PROXYUSERPWD, get_option("mo_proxy_username") . ":" . get_option("mo_proxy_password"));
W2:
$pk = curl_exec($WY);
curl_close($WY);
if (isset($_POST["sync_metadata"])) {
goto XM;
}
delete_option("saml_metadata_url_for_sync");
delete_option("saml_metadata_sync_interval");
wp_unschedule_event(wp_next_scheduled("metadata_sync_cron_action"), "metadata_sync_cron_action");
goto Pk;
XM:
update_option("saml_metadata_url_for_sync", $_POST["metadata_file"]);
update_option("saml_metadata_sync_interval", $_POST["sync_interval"]);
if (wp_next_scheduled("metadata_sync_cron_action")) {
goto p5;
}
wp_schedule_event(time(), $_POST["sync_interval"], "metadata_sync_cron_action");
p5:
Pk:
goto Kh;
WJ:
$pk = @file_get_contents($_FILES["metadata_file"]["tmp_name"]);
Kh:
$this->upload_metadata($pk);
qU:
}
function upload_metadata($pk)
{
$H9 = set_error_handler(array($this, "handleXmlError"));
$L_ = new DOMDocument();
$L_->loadXML($pk);
restore_error_handler();
$D7 = $L_->firstChild;
if (!empty($D7)) {
goto IK;
}
update_option("mo_saml_message", "Please provide a valid metadata file.");
$this->mo_saml_show_error_message();
goto Fg;
IK:
$kT = new IDPMetadataReader($L_);
$yL = $kT->getIdentityProviders();
if (!empty($yL)) {
goto Ze;
}
update_option("mo_saml_message", "Please provide a valid metadata file.");
$this->mo_saml_show_error_message();
return;
Ze:
foreach ($yL as $nz => $YC) {
$hD = $_POST["saml_identity_metadata_provider"];
$gi = "HttpRedirect";
$B5 = $YC->getLoginURL("HTTP-Redirect");
$ky = "HttpRedirect";
$c1 = $YC->getLogoutURL("HTTP-Redirect");
$WO = $YC->getEntityID();
$tS = $YC->getSigningCertificate();
update_option("saml_identity_name", $hD);
update_option("saml_login_binding_type", $gi);
update_option("saml_login_url", $B5);
update_option("saml_logout_binding_type", $ky);
update_option("saml_logout_url", $c1);
update_option("saml_issuer", $WO);
update_option("saml_x509_certificate", maybe_serialize($tS));
goto UK;
GG:
}
UK:
update_option("mo_saml_message", "Identity Provider details saved successfully.");
$this->mo_saml_show_success_message();
Fg:
}
function handleXmlError($h0, $Sm, $SP, $hJ)
{
if ($h0 == E_WARNING && substr_count($Sm, "DOMDocument::loadXML()") > 0) {
goto oM;
}
return false;
goto rP;
oM:
return;
rP:
}
function mo_saml_plugin_action_links($rc)
{
$rc = array_merge(array("<a href="" . esc_url(admin_url("admin.php?page=mo_saml_settings")) . "">" . __("Settings", "textdomain") . "</a>"), $rc);
return $rc;
}
}
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 Single-Site)miniOrange SAML 2.0 SSO enables user to perform Single Sign On with any SAML 2.0 enabled Identity Provider.
Version: 11.4.0
Author: miniOrange
Author URI: http://miniorange.com/
*/
include_once dirname(__FILE__) . "\57\155\157\x5f\154\x6f\147\x69\x6e\x5f\x73\141\x6d\154\x5f\x73\x73\x6f\x5f\167\x69\x64\147\145\164\x2e\x70\150\x70";
require "\155\x6f\x2d\163\141\x6d\154\x2d\x63\154\141\163\163\x2d\143\x75\163\164\x6f\x6d\145\162\56\160\150\160";
require "\x6d\157\x5f\x73\141\155\x6c\x5f\163\145\x74\x74\151\x6e\x67\x73\137\160\x61\x67\145\56\160\150\160";
require "\x4d\145\x74\x61\144\x61\x74\x61\x52\145\141\x64\x65\x72\56\x70\150\160";
require "\143\x65\x72\164\x69\x66\x69\143\x61\164\145\x5f\x75\x74\151\154\x69\x74\x79\x2e\160\150\160";
class saml_mo_login
{
function __construct()
{
add_action("\x61\x64\x6d\151\x6e\x5f\155\145\x6e\x75", array($this, "\155\151\x6e\151\157\x72\141\156\x67\x65\137\x73\163\x6f\x5f\x6d\x65\x6e\x75"));
add_action("\x61\x64\155\x69\x6e\x5f\151\x6e\x69\x74", array($this, "\x6d\151\x6e\x69\157\x72\141\x6e\x67\x65\137\x6c\157\x67\x69\x6e\137\x77\x69\144\x67\145\x74\x5f\x73\141\155\x6c\x5f\163\x61\x76\x65\x5f\x73\x65\x74\164\151\156\x67\163"));
add_action("\141\x64\155\151\x6e\x5f\x65\156\161\x75\x65\165\145\137\163\143\x72\x69\x70\x74\x73", array($this, "\160\154\165\x67\151\156\137\x73\x65\164\x74\151\x6e\147\x73\137\x73\164\171\154\145"));
register_deactivation_hook(__FILE__, array($this, "\x6d\x6f\137\x73\163\x6f\137\163\141\155\x6c\x5f\144\145\141\x63\x74\x69\166\x61\164\145"));
add_action("\x61\x64\x6d\x69\156\137\145\156\161\165\x65\x75\x65\137\163\143\162\151\160\x74\x73", array($this, "\160\x6c\x75\147\151\x6e\x5f\x73\x65\x74\x74\x69\156\x67\x73\x5f\x73\143\x72\151\160\164"));
remove_action("\141\x64\155\x69\156\x5f\156\x6f\x74\151\143\145\x73", array($this, "\155\x6f\x5f\x73\x61\155\x6c\137\163\165\143\x63\x65\x73\163\x5f\x6d\145\163\163\141\147\x65"));
remove_action("\x61\144\155\151\156\x5f\x6e\x6f\164\x69\x63\145\163", array($this, "\x6d\157\137\163\141\155\154\137\x65\162\x72\157\162\x5f\155\x65\163\x73\141\147\x65"));
add_action("\x77\160\x5f\x61\x75\x74\150\145\x6e\164\x69\143\141\x74\x65", array($this, "\155\x6f\137\163\x61\155\x6c\137\141\165\x74\150\x65\x6e\164\x69\143\x61\x74\x65"));
add_action("\167\x70", array($this, "\x6d\x6f\137\163\141\155\x6c\137\x61\165\164\157\x5f\162\145\144\x69\x72\145\143\164"));
$oQ = new mo_login_wid();
add_action("\167\160\137\154\157\x67\x6f\165\x74", array($oQ, "\155\157\137\x73\x61\155\x6c\x5f\154\x6f\x67\157\x75\x74"));
add_action("\x6c\157\147\151\x6e\x5f\x66\157\x72\155", array($this, "\155\157\137\163\x61\x6d\x6c\137\x6d\157\x64\151\x66\171\137\x6c\x6f\147\x69\x6e\137\146\157\162\155"));
add_shortcode("\x4d\117\137\x53\x41\115\114\137\x46\x4f\122\115", array($this, "\x6d\157\137\x67\145\x74\137\163\141\155\154\x5f\163\x68\157\162\x74\143\157\144\145"));
add_filter("\143\x72\157\156\x5f\163\x63\x68\x65\144\165\x6c\145\163", array($this, "\155\x79\160\162\145\x66\x69\x78\x5f\x61\144\144\x5f\x63\x72\157\156\x5f\x73\143\x68\x65\x64\x75\154\145"));
add_action("\x6d\x65\x74\x61\144\x61\164\x61\x5f\163\171\156\x63\x5f\x63\162\157\x6e\x5f\141\143\164\x69\x6f\156", array($this, "\155\145\164\x61\144\x61\x74\x61\137\163\171\156\x63\x5f\143\x72\x6f\x6e\137\141\143\164\151\157\x6e"));
register_activation_hook(__FILE__, array($this, "\x6d\157\x5f\x73\141\x6d\x6c\137\143\150\x65\143\153\x5f\x6f\x70\x65\x6e\163\x73\154"));
add_action("\x70\x6c\x75\x67\x69\156\x5f\x61\x63\164\151\x6f\156\x5f\154\151\156\x6b\163\137" . plugin_basename(__FILE__), array($this, "\155\157\x5f\163\141\x6d\x6c\x5f\160\154\x75\x67\151\x6e\137\141\x63\164\151\x6f\x6e\x5f\154\x69\156\x6b\x73"));
add_action("\141\x64\155\151\156\x5f\x69\x6e\151\164", array($this, "\144\145\146\x61\x75\154\164\137\143\x65\162\164\151\146\x69\x63\141\x74\145"));
add_option("\154\x63\144\x6a\x6b\x61\163\x6a\x64\x6b\163\x61\143\154", "\144\x65\x66\141\165\154\164\55\143\145\x72\164\151\146\151\x63\141\x74\x65");
}
function default_certificate()
{
$nM = "\55\55\x2d\55\x2d\102\105\107\x49\x4e\x20\103\x45\122\124\x49\x46\111\x43\x41\x54\105\x2d\x2d\55\55\55\xa\115\x49\111\104\67\x54\x43\x43\x41\164\x57\147\101\167\x49\x42\x41\x67\x49\x4a\x41\x4d\143\163\x66\x34\122\67\157\126\x4d\132\115\101\60\x47\103\x53\161\x47\123\x49\x62\x33\104\121\x45\x42\x43\x77\x55\x41\x4d\111\107\x4d\x4d\x51\163\167\x43\121\x59\104\12\x56\121\121\107\105\167\112\112\124\x6a\x45\x4c\x4d\101\153\107\x41\x31\125\105\103\x41\x77\x43\x54\125\x67\170\104\x54\x41\x4c\102\147\116\126\102\x41\143\115\x42\x46\x42\126\124\153\125\x78\105\172\101\122\x42\147\116\126\x42\101\157\x4d\x43\153\61\112\12\124\x6b\x6c\120\x55\x6b\106\117\x52\x30\x55\x78\x45\x7a\x41\122\102\x67\x4e\x56\x42\101\x73\x4d\x43\153\61\x4a\x54\153\154\120\x55\x6b\106\x4f\x52\60\x55\x78\105\172\101\122\x42\x67\x4e\x56\102\x41\x4d\115\x43\153\61\112\x54\x6b\x6c\120\125\153\106\117\xa\122\60\x55\x78\x49\152\101\147\x42\x67\x6b\x71\x68\x6b\151\107\71\x77\x30\102\103\x51\105\127\105\62\154\x75\132\155\x39\101\x62\127\x6c\165\x61\127\x39\x79\x59\127\x35\156\x5a\123\x35\152\x62\x32\x30\167\110\150\143\x4e\x4d\124\x55\x78\x4d\x44\115\167\12\x4d\124\x41\61\x4e\x44\x51\64\x57\150\x63\116\x4d\152\x41\x78\115\x44\x49\64\x4d\x54\x41\x31\116\x44\121\x34\127\x6a\103\x42\152\x44\105\x4c\115\101\x6b\107\x41\61\x55\x45\102\x68\115\103\x53\125\x34\x78\103\172\x41\x4a\x42\147\116\126\102\101\147\115\xa\x41\153\61\x49\115\121\60\x77\x43\x77\131\x44\x56\x51\121\x48\x44\x41\122\121\x56\125\65\106\x4d\x52\x4d\x77\x45\x51\x59\104\126\121\121\x4b\104\101\160\x4e\x53\125\65\x4a\124\61\112\102\x54\x6b\144\x46\x4d\x52\115\167\x45\121\x59\104\x56\x51\121\114\12\x44\x41\x70\x4e\x53\x55\65\x4a\x54\61\112\x42\x54\153\144\106\115\122\x4d\167\105\121\x59\104\x56\121\121\104\x44\101\x70\x4e\123\125\65\x4a\124\61\x4a\x42\124\153\144\x46\115\123\x49\167\111\x41\131\x4a\x4b\157\132\x49\x68\x76\x63\x4e\x41\x51\x6b\x42\xa\106\150\116\x70\x62\155\132\166\121\107\x31\160\142\155\x6c\166\x63\x6d\x46\165\x5a\62\x55\165\x59\x32\71\164\x4d\111\111\102\111\152\101\x4e\x42\x67\x6b\161\150\x6b\x69\x47\71\x77\x30\102\x41\x51\x45\106\101\x41\x4f\x43\x41\x51\x38\x41\115\111\111\x42\xa\103\147\x4b\x43\x41\x51\x45\x41\x73\x78\165\154\167\101\151\x58\x76\x61\x4a\x76\x54\x36\x4a\105\143\x6b\x61\163\x46\x63\x48\131\67\x65\x4d\x45\62\150\x6a\x43\154\x58\x50\x4b\x74\107\112\x36\x6f\x6b\151\120\117\x50\x51\x6a\115\x41\166\53\x7a\x59\170\x5a\xa\x32\x62\x65\x41\x55\x50\127\170\147\61\160\x66\105\67\x48\111\x64\124\114\150\66\101\60\171\x44\62\101\x66\156\167\71\141\171\113\155\103\107\x69\161\66\162\130\70\124\x71\130\172\x45\157\70\x4a\x30\x31\115\57\172\107\122\x42\x58\x78\x77\53\x51\xa\x43\x6a\x42\x37\102\x70\x57\160\110\x55\126\143\144\x66\141\x67\125\105\112\x72\x55\x52\110\122\143\x78\x36\x56\x58\130\x66\x2f\x39\170\x70\x72\142\164\x76\67\x57\163\170\57\127\126\x68\x71\107\x6c\x36\115\x43\164\152\x34\155\x35\x74\124\163\110\x79\131\12\x44\x39\102\x4f\141\x77\x78\164\x6d\141\x71\x37\x64\116\x53\105\103\x6b\x74\x39\161\x4e\x55\146\x75\53\105\166\x54\131\x6b\x33\114\110\111\x33\x49\157\x4a\x52\64\110\143\115\124\163\x59\152\124\142\x4a\157\66\x6c\x48\x4e\124\x31\70\106\x51\x71\122\x65\12\127\x63\x6a\x4e\130\x43\124\x76\110\61\x37\132\151\164\64\115\x61\x48\70\127\x47\x6c\x4c\63\x32\x4b\x56\x36\62\105\x79\x54\x50\132\x77\x6a\x71\162\x6d\x55\110\161\x6f\130\x66\x6a\70\x37\x65\x2b\x31\x58\117\x70\131\153\53\132\x2f\x64\x41\160\x4d\x43\12\64\67\111\66\x2b\x2b\171\161\53\x46\x6c\x79\x76\126\156\x65\60\x77\x34\70\x53\x41\x48\x59\164\64\x4d\x31\x72\x51\x49\x44\101\x51\x41\x42\157\x31\101\x77\x54\152\x41\x64\x42\147\x4e\x56\110\121\x34\105\106\147\x51\125\x79\x69\150\113\66\162\116\x79\xa\154\63\x53\170\x39\117\x6e\172\x7a\165\x70\60\x71\153\x6f\67\172\x37\x51\x77\110\x77\x59\x44\x56\122\60\152\x42\102\x67\x77\x46\157\101\125\x79\151\x68\x4b\66\x72\116\x79\x6c\x33\x53\170\71\117\x6e\172\x7a\165\160\60\x71\153\x6f\67\172\67\121\x77\12\x44\101\131\x44\126\x52\x30\124\102\x41\125\x77\x41\167\x45\102\57\172\x41\116\x42\147\x6b\x71\150\x6b\x69\x47\71\167\x30\x42\101\x51\163\x46\x41\x41\x4f\103\101\x51\105\101\x50\x6e\x70\x36\121\65\x6a\146\x5a\63\x33\x2f\60\150\142\145\145\x56\x72\x2b\12\x74\x73\x35\120\x54\170\x4b\x4b\x64\120\141\153\157\107\x4a\127\x41\x62\x67\161\130\x7a\x66\x34\x68\70\124\165\103\132\115\152\120\x42\105\66\x67\x37\152\x6b\x31\x4a\x71\x76\122\x46\x57\170\147\67\x7a\x78\x2b\x71\150\166\154\127\122\x6e\167\x66\127\154\xa\x39\171\x41\x66\146\131\60\x54\142\x42\170\x2b\105\125\x33\153\x79\124\131\102\x67\62\125\x6e\146\x66\x55\141\x53\166\x6f\153\x6f\61\x55\x7a\106\x4b\61\166\x34\144\117\x50\62\x75\x2b\x77\x54\120\x38\156\x4d\57\111\x2b\x48\x78\102\152\x56\x56\x63\147\12\124\53\67\172\117\113\x39\131\66\107\x58\145\x31\x73\x70\152\x64\x51\142\62\x45\114\x64\x42\121\x32\x70\x37\116\x46\x58\106\x46\x34\x75\171\x36\x6a\x7a\116\x39\171\x77\62\x78\x42\x69\x64\x37\132\x4c\153\112\x77\x47\145\x4f\171\153\132\162\162\x64\x31\xa\x59\x4a\x7a\107\132\x4a\157\x47\x65\144\160\x54\x78\162\153\x71\142\111\x71\x52\125\x46\156\103\x71\113\x52\147\x42\65\x49\x7a\150\130\x4f\x31\130\x6a\x2b\170\x67\166\70\x71\162\x30\x4b\116\112\64\157\x71\146\65\x38\x4f\x45\x48\x6e\170\x32\x58\x46\62\xa\x31\122\131\60\x46\71\166\160\121\66\x2f\x42\x50\x51\113\x71\117\x34\x70\127\152\105\x75\127\141\x6e\126\63\x36\101\x5a\x35\156\x48\x77\x36\x50\x65\x4a\x58\105\x73\x4b\x32\x52\125\x6e\x41\102\x65\x41\x2f\x78\172\152\170\110\57\116\124\x36\x46\x68\x33\xa\x64\121\x3d\75\xa\55\55\x2d\x2d\55\x45\116\104\40\x43\105\x52\124\111\x46\111\x43\101\x54\105\55\55\x2d\x2d\55";
$am = "\x2d\x2d\x2d\55\55\x42\105\x47\111\116\x20\x50\122\111\126\x41\x54\105\40\x4b\x45\131\55\x2d\55\55\55\xa\115\111\x49\x45\166\x67\x49\x42\x41\x44\x41\116\102\x67\x6b\161\x68\x6b\x69\107\71\x77\60\x42\101\x51\105\x46\101\101\x53\x43\x42\x4b\147\x77\147\147\123\153\101\147\105\x41\x41\157\111\x42\101\121\103\172\107\66\x58\x41\103\112\145\x39\157\155\71\120\xa\157\x6b\122\171\x52\161\167\x56\x77\144\152\164\64\167\124\141\107\x4d\113\126\x63\x38\161\x30\131\156\161\x69\x53\x49\70\64\71\103\115\167\x43\x2f\x37\116\x6a\x46\x6e\132\x74\x34\x42\121\x39\142\x47\104\127\x6c\x38\124\163\143\x68\61\115\x75\x48\157\12\104\x54\x49\x50\x59\x42\x2b\146\x44\x31\x72\x49\x71\x59\x49\x61\113\162\x71\x74\146\170\117\x70\146\115\123\152\x77\x6e\x54\x55\172\57\115\x5a\x45\x46\x66\x48\104\65\x41\113\x4d\110\x73\x47\154\141\x6b\144\122\x56\x78\61\71\161\x42\121\121\x6d\164\122\xa\x45\144\x46\x7a\x48\x70\x56\144\x64\x2f\57\x33\107\155\164\165\62\x2f\164\x61\172\110\71\x5a\127\x47\x6f\x61\x58\x6f\x77\x4b\x32\120\151\x62\155\x31\117\x77\146\112\x67\120\60\105\x35\162\104\107\x32\132\x71\162\164\x30\61\x49\121\113\x53\63\62\157\12\61\122\x2b\67\64\x53\x39\116\151\x54\143\163\143\x6a\x63\151\147\x6c\110\147\144\x77\170\x4f\170\x69\116\116\x73\155\152\161\x55\143\61\x50\130\x77\x56\103\x70\106\65\x5a\x79\115\x31\143\112\x4f\x38\x66\130\164\155\113\63\147\170\x6f\x66\170\131\x61\xa\125\x76\x66\131\160\x58\x72\131\x54\112\x4d\71\156\x43\x4f\161\165\132\x51\145\161\150\x64\x2b\120\172\x74\67\67\x56\x63\66\154\151\124\65\x6e\x39\60\x43\153\x77\x4c\152\x73\152\x72\x37\x37\113\x72\x34\x57\x58\x4b\71\127\x64\x37\x54\104\152\170\111\12\101\x64\151\63\147\172\x57\164\x41\147\x4d\x42\101\x41\x45\x43\x67\147\x45\101\x58\x78\166\x53\x55\63\x76\x38\x6e\x39\x32\x4f\x77\x44\x6e\x4a\157\x4f\x6b\x34\130\153\x46\x57\x6f\x56\121\111\x38\157\164\x74\x59\x4a\x46\x68\x56\x5a\x4a\x70\x7a\x70\60\x37\12\x4f\x4b\111\152\167\126\x4c\116\126\156\143\x75\103\x7a\145\x76\115\163\x36\126\x47\x63\167\62\x61\161\x33\147\132\141\x50\x45\132\105\131\106\x6a\104\141\144\x39\101\146\x69\x54\107\130\x2b\x79\125\150\x68\131\164\x6e\61\112\145\64\60\117\125\126\70\xa\132\x72\155\x61\x50\110\146\66\x4e\113\106\154\53\160\115\164\x38\x52\167\x74\x39\156\131\x72\x6d\x42\x53\104\x6f\x72\x72\x79\x59\x39\126\124\x5a\x49\x38\142\57\70\x74\x47\113\x41\102\155\150\152\x4c\131\x63\x61\156\147\x41\151\103\x36\x44\x77\x2b\67\12\x4b\x45\120\x59\x71\162\x4e\110\146\x7a\66\x57\67\x58\143\70\152\x79\144\122\145\x57\106\x2f\x43\154\60\x2b\x71\x75\71\x67\x56\125\62\x79\151\x52\x68\67\57\115\x44\x79\x45\x36\116\x4c\163\x37\104\144\153\x51\x59\x32\105\x30\x4f\167\x4b\x6b\123\x46\12\104\114\145\x47\x5a\x65\57\x42\156\x39\71\162\123\x57\x75\x5a\113\x67\127\x4a\122\x54\145\x2f\157\x61\x74\x6f\145\130\155\167\x50\53\157\x79\165\x74\154\167\x31\152\153\164\x4c\x69\x68\130\x4b\x44\x48\x30\146\x48\x74\x67\x46\x53\x55\x63\57\x4d\x36\x44\12\141\101\152\x6e\x61\147\53\127\61\171\105\101\60\166\x50\105\125\x69\60\62\155\x46\x77\x43\131\141\172\141\170\70\145\x35\x64\53\x62\x71\106\113\161\x4a\x66\121\113\102\147\121\x44\x74\150\x75\x74\x53\165\62\164\64\x33\x73\150\66\x52\151\155\120\xa\67\x76\x56\x4d\x39\x38\x51\x54\x67\144\x68\x34\x6f\x65\114\x78\x67\x74\70\x76\143\x45\x2f\64\154\143\130\x67\63\x78\154\143\x4b\117\x62\154\x37\x37\x4b\x67\131\x4b\160\x2f\122\61\113\110\61\x38\x36\154\x53\x4a\x50\x56\x37\116\166\x34\x73\x6f\71\x79\12\106\153\123\x33\x6a\x64\x55\160\161\127\62\126\162\122\x2b\103\x2f\155\x75\x43\x6a\x46\103\112\124\x75\x73\x35\66\110\61\155\x50\x32\115\120\104\122\x55\x63\110\67\57\66\x30\113\157\115\112\53\x6c\x47\127\104\x4d\101\61\105\117\x7a\x52\x36\x69\x59\12\71\71\170\x61\131\x4c\53\65\145\x43\111\x75\167\126\104\x79\171\x53\x64\x48\61\111\x32\163\144\x77\113\x42\147\x51\x44\x42\103\141\x41\155\x33\x6c\117\x45\x42\x79\125\153\123\107\x47\127\x7a\x33\116\x67\x4e\161\147\x50\124\x35\x61\160\x6b\x39\64\x79\12\53\x50\141\121\161\164\112\x46\x52\x44\141\64\104\x5a\x35\116\x53\147\106\x57\x73\155\126\71\147\x66\x6d\x53\x53\105\x50\x35\x6f\146\120\110\104\147\62\x54\165\103\121\141\167\167\x66\x76\105\x79\x44\x55\x75\70\65\x51\116\x44\145\152\x42\x44\x33\153\12\x6e\x68\x79\x42\x64\166\x37\65\x6c\152\110\x4c\172\x47\153\111\x79\124\x73\x45\x68\x48\141\x65\146\113\x39\x6a\62\114\x53\112\x2f\106\x6a\150\x73\x73\x56\141\61\125\x65\x72\x46\x79\143\x4b\x5a\107\116\131\x54\102\x51\x46\130\x55\116\117\x6e\107\x49\x33\12\x64\103\x65\65\x62\144\x34\114\x2b\x77\x4b\x42\147\121\x43\101\x79\153\157\157\x6c\x73\x54\153\x53\145\x2f\163\x46\115\125\117\x62\123\121\107\163\163\126\x58\123\155\61\x6b\x6f\62\x71\132\x52\172\x76\x61\172\147\167\x65\x6e\160\70\156\155\146\102\x33\xa\120\x78\160\x4c\152\x4e\145\120\104\104\x73\107\x50\154\142\x71\x6e\60\112\106\x37\x6e\71\171\130\x44\141\71\164\x35\x76\71\x34\x55\115\x72\120\67\x56\131\x48\x4b\x7a\x31\x6e\155\122\x61\x73\67\142\65\154\x7a\x6c\110\x36\x6b\155\172\x49\x58\x4e\61\12\105\x47\117\127\x30\161\111\151\x6d\114\x69\121\164\x37\155\x73\x55\x36\165\x78\x33\x37\x72\166\x39\123\x67\163\x4f\x6d\x75\132\130\142\x50\127\115\127\x56\152\156\x46\x62\60\x67\121\x39\x79\x52\x55\x32\x4f\x4c\150\x73\120\x61\167\113\102\x67\x51\103\163\12\x33\162\x50\x66\127\x77\141\162\155\70\x4a\61\122\141\123\166\x61\x38\x52\x46\x43\x32\61\x68\x6d\x4d\x4b\x78\x78\153\x77\143\154\x62\x77\160\x50\146\104\153\x4f\166\x78\x4e\x77\x31\x52\x61\x6e\x73\127\157\x49\x45\x61\x6e\x4b\x50\151\132\117\143\111\62\xa\x45\x67\x53\57\x35\103\120\x67\x66\x2b\x31\x46\x55\x68\x63\117\60\114\102\x38\x45\154\166\x6d\153\x33\x79\156\x72\151\162\110\x53\x35\x6a\x33\x6a\71\x73\x7a\112\x49\101\x66\x70\105\x55\104\x71\60\111\101\57\x36\x64\x43\163\171\112\127\132\x6b\104\x33\12\x75\126\142\x58\x65\x45\115\157\x33\x77\x73\x35\145\x70\150\160\x78\x42\104\x37\x68\x39\130\53\x48\71\105\147\x32\x77\144\x52\65\145\107\x56\117\x34\103\64\144\x51\x4b\x42\x67\106\120\x76\x30\111\x42\154\x32\114\101\x59\172\53\x70\104\x54\x62\161\x39\12\125\x6e\144\146\142\67\146\132\x33\x4f\x77\112\161\x39\x59\x35\121\103\x68\x6a\70\172\111\150\147\x66\x35\105\x51\x5a\x64\153\60\x59\x6b\120\107\x76\143\62\156\x32\x51\142\126\x6a\x4e\x55\120\101\x5a\x34\167\113\145\130\x66\117\125\x76\152\x38\x7a\122\xa\x78\60\106\57\x2b\x52\x73\x4a\146\x47\x31\124\162\x44\x74\106\x65\60\x2f\70\x70\127\x6e\164\65\x6f\x58\x59\x78\x4c\x4e\60\x2f\166\110\105\x55\x55\x2f\107\130\x61\110\116\151\x75\x58\x76\171\63\x46\143\x47\123\127\x4d\152\164\x67\62\105\x6b\155\64\xa\114\127\146\x30\67\170\116\172\x4e\x2b\166\103\153\147\102\x51\144\x55\70\151\101\x4b\x6f\120\xa\55\55\x2d\x2d\55\x45\116\x44\x20\x50\122\111\126\101\x54\105\40\x4b\105\131\55\55\55\x2d\x2d\12";
add_option("\155\x6f\x5f\163\x61\x6d\154\137\x63\x65\x72\164", $nM);
add_option("\x6d\x6f\137\x73\141\155\154\x5f\x63\145\162\164\x5f\x70\x72\x69\x76\x61\164\145\137\153\x65\x79", $am);
if (!(!get_option("\155\x6f\137\x73\x61\x6d\x6c\137\143\165\162\162\145\156\164\x5f\143\x65\x72\x74") && !get_option("\155\x6f\x5f\x73\x61\x6d\154\137\x63\x75\x72\162\145\x6e\x74\x5f\143\x65\x72\164\137\160\162\151\166\x61\x74\145\137\x6b\145\x79"))) {
goto xi;
}
update_option("\x6d\x6f\137\163\x61\x6d\154\x5f\x63\165\x72\x72\x65\156\164\137\143\145\x72\x74", $nM);
update_option("\x6d\x6f\x5f\x73\x61\x6d\154\x5f\x63\165\162\162\x65\156\x74\x5f\x63\x65\x72\x74\137\x70\162\151\166\141\164\145\137\153\145\x79", $am);
xi:
}
function mo_saml_check_openssl()
{
if (mo_saml_is_openssl_installed()) {
goto vB;
}
wp_die("\x50\x48\120\x20\x6f\160\145\x6e\x73\163\x6c\x20\x65\170\x74\x65\156\x73\151\x6f\156\x20\151\x73\x20\156\157\164\x20\151\156\163\164\141\x6c\154\x65\144\40\x6f\x72\x20\144\151\x73\141\x62\154\x65\144\54\x70\x6c\x65\141\163\x65\40\x65\x6e\141\142\154\x65\x20\151\x74\40\164\x6f\x20\141\x63\x74\x69\166\x61\164\145\40\x74\150\x65\40\x70\x6c\x75\x67\x69\156\56");
vB:
add_option("\101\143\x74\x69\166\x61\x74\145\144\x5f\x50\154\x75\147\151\x6e", "\120\x6c\165\x67\x69\x6e\55\123\x6c\x75\147");
}
function myprefix_add_cron_schedule($rp)
{
$rp["\167\x65\145\x6b\x6c\x79"] = array("\151\x6e\164\x65\162\x76\x61\x6c" => 604800, "\144\x69\163\x70\154\x61\171" => __("\x4f\156\143\145\40\x57\x65\x65\153\154\x79"));
$rp["\x6d\157\156\x74\150\154\171"] = array("\x69\x6e\164\145\162\166\x61\154" => 2635200, "\x64\151\163\160\x6c\x61\171" => __("\117\x6e\143\145\x20\x4d\157\156\164\x68\154\x79"));
return $rp;
}
function metadata_sync_cron_action()
{
error_log("\155\151\156\x69\157\x72\x61\x6e\147\145\x20\x3a\x20\122\101\116\40\x53\131\116\103\40\x2d\x20" . time());
$this->upload_metadata(@file_get_contents(get_option("\163\141\155\x6c\x5f\x6d\x65\164\141\144\x61\x74\x61\137\x75\x72\154\x5f\146\157\x72\137\163\x79\x6e\x63")));
}
function mo_login_widget_saml_options()
{
global $wpdb;
update_option("\x6d\157\x5f\x73\x61\155\x6c\x5f\x68\157\163\x74\x5f\x6e\x61\155\x65", "\x68\x74\x74\x70\x73\72\x2f\x2f\141\165\x74\150\x2e\155\x69\x6e\x69\x6f\x72\x61\x6e\147\145\56\x63\157\155");
$fV = get_option("\155\157\137\163\141\x6d\154\137\150\157\163\x74\x5f\156\141\155\145");
$Pf = get_option("\x6d\x6f\137\x73\141\x6d\x6c\137\x65\156\141\142\154\x65\137\143\x6c\x6f\165\144\x5f\x62\x72\x6f\x6b\145\x72");
$jx = get_option("\163\141\x6d\154\137\170\x35\x30\71\x5f\143\x65\x72\164\x69\146\151\143\x61\164\145");
if (empty($Pf) && !empty($jx)) {
goto CU;
}
if (!empty($Pf)) {
goto uf;
}
update_option("\x6d\157\x5f\x73\141\x6d\154\137\145\x6e\x61\142\154\145\137\143\154\x6f\x75\x64\137\142\162\157\x6b\145\162", "\x66\141\x6c\163\145");
uf:
goto Ei;
CU:
update_option("\x6d\x6f\137\x73\141\155\154\x5f\145\x6e\x61\x62\154\x65\x5f\x63\x6c\157\x75\144\x5f\142\162\157\x6b\145\162", "\164\162\x75\x65");
Ei:
mo_register_saml_sso();
}
function mo_saml_success_message()
{
$hn = "\x65\162\x72\157\162";
$bW = get_option("\x6d\157\x5f\x73\141\x6d\154\137\155\145\163\163\141\x67\145");
echo "\74\144\x69\x76\40\143\154\x61\x73\163\x3d\47" . $hn . "\x27\x3e\40\74\160\x3e" . $bW . "\x3c\x2f\160\x3e\x3c\x2f\144\151\x76\76";
}
function mo_saml_error_message()
{
$hn = "\165\160\x64\x61\164\145\x64";
$bW = get_option("\x6d\157\x5f\163\141\155\154\137\x6d\x65\163\163\141\x67\x65");
echo "\x3c\144\x69\166\x20\143\x6c\141\163\163\x3d\47" . $hn . "\47\76\40\74\160\x3e" . $bW . "\x3c\x2f\x70\76\74\57\144\x69\166\x3e";
}
public function mo_sso_saml_deactivate()
{
if (!is_multisite()) {
goto Pj;
}
global $wpdb;
$uH = $wpdb->get_col("\x53\x45\114\105\x43\124\x20\x62\x6c\157\147\x5f\x69\144\x20\106\x52\x4f\115\x20{$wpdb->blogs}");
$bq = get_current_blog_id();
do_action("\x66\x6c\165\163\x68\x5f\x63\x61\143\150\145");
foreach ($uH as $blog_id) {
switch_to_blog($blog_id);
delete_option("\155\x6f\x5f\163\x61\x6d\x6c\137\x68\157\163\x74\x5f\156\141\x6d\145");
delete_option("\x6d\x6f\x5f\x73\x61\155\154\x5f\156\145\x77\137\x72\145\x67\151\163\x74\162\141\x74\151\157\156");
delete_option("\155\x6f\137\163\141\155\154\x5f\x61\x64\x6d\151\x6e\x5f\x70\x68\x6f\156\x65");
delete_option("\155\x6f\x5f\x73\x61\155\x6c\x5f\141\x64\155\151\156\x5f\160\x61\x73\x73\167\157\x72\144");
delete_option("\x6d\157\137\x73\x61\x6d\154\137\x76\x65\x72\x69\146\x79\x5f\x63\x75\163\164\x6f\x6d\145\x72");
delete_option("\x6d\x6f\137\163\x61\x6d\x6c\137\141\x64\x6d\x69\156\137\143\x75\163\164\x6f\x6d\145\162\x5f\x6b\145\x79");
delete_option("\155\157\137\163\141\x6d\154\x5f\141\x64\x6d\x69\156\137\x61\160\151\x5f\153\x65\171");
delete_option("\x6d\x6f\137\x73\x61\x6d\x6c\137\143\x75\163\164\157\x6d\145\162\137\164\157\153\145\x6e");
delete_option("\155\157\137\163\141\155\154\x5f\x6d\145\x73\x73\x61\147\x65");
delete_option("\155\157\137\x73\x61\x6d\x6c\x5f\162\145\147\x69\163\x74\x72\141\164\x69\157\x6e\137\x73\164\141\164\x75\x73");
delete_option("\155\157\x5f\163\x61\x6d\154\x5f\151\144\160\x5f\x63\x6f\156\x66\151\147\x5f\143\x6f\155\x70\x6c\145\x74\145");
delete_option("\x6d\x6f\x5f\x73\141\155\154\x5f\x74\162\x61\x6e\163\141\x63\x74\x69\157\x6e\x49\x64");
delete_option("\166\154\137\x63\x68\145\143\x6b\137\164");
delete_option("\x76\x6c\x5f\x63\x68\x65\143\x6b\137\163");
delete_option("\x6d\x6f\137\163\x61\155\x6c\137\143\145\162\164");
delete_option("\155\x6f\x5f\x73\141\x6d\154\x5f\x63\x65\162\x74\x5f\160\x72\x69\x76\x61\164\x65\137\x6b\x65\171");
delete_option("\x6d\x6f\x5f\x73\141\155\154\x5f\143\165\x72\162\x65\x6e\x74\x5f\x63\145\x72\164");
delete_option("\155\157\x5f\163\x61\x6d\x6c\137\143\x75\162\162\x65\x6e\164\x5f\143\x65\x72\164\x5f\160\x72\151\166\x61\164\145\x5f\153\x65\x79");
Vz:
}
En:
switch_to_blog($bq);
goto Hd;
Pj:
do_action("\x66\154\x75\x73\150\x5f\143\141\143\150\145");
delete_option("\155\157\137\x73\x61\155\154\x5f\x68\157\163\x74\x5f\x6e\x61\x6d\x65");
delete_option("\x6d\157\137\x73\x61\x6d\x6c\137\156\x65\x77\137\162\x65\x67\151\163\x74\x72\x61\164\151\157\x6e");
delete_option("\x6d\157\137\163\x61\x6d\154\137\141\x64\x6d\151\x6e\x5f\x70\150\x6f\156\x65");
delete_option("\155\157\x5f\163\x61\x6d\x6c\137\141\x64\155\x69\156\137\160\141\x73\x73\167\x6f\x72\144");
delete_option("\x6d\157\x5f\163\141\x6d\x6c\137\x76\145\162\x69\x66\x79\137\x63\165\x73\164\157\155\x65\162");
delete_option("\x6d\x6f\x5f\x73\141\x6d\154\x5f\x61\144\155\x69\156\x5f\143\165\163\x74\x6f\155\145\162\x5f\153\x65\171");
delete_option("\x6d\x6f\137\163\141\155\154\x5f\141\x64\155\x69\x6e\137\141\x70\x69\x5f\153\145\171");
delete_option("\x6d\157\x5f\163\141\x6d\x6c\x5f\143\165\x73\164\x6f\155\x65\x72\137\x74\157\153\145\156");
delete_option("\155\x6f\x5f\163\x61\x6d\x6c\x5f\155\145\x73\163\141\x67\145");
delete_option("\x6d\x6f\x5f\x73\141\x6d\154\137\162\145\x67\x69\163\164\162\x61\x74\x69\x6f\x6e\x5f\x73\164\x61\164\x75\x73");
delete_option("\x6d\157\x5f\163\x61\x6d\x6c\137\x69\x64\x70\x5f\143\157\x6e\x66\x69\x67\137\143\x6f\x6d\x70\x6c\x65\164\x65");
delete_option("\155\157\x5f\x73\141\x6d\x6c\137\x74\x72\x61\x6e\163\x61\x63\x74\x69\157\x6e\x49\x64");
delete_option("\166\x6c\x5f\x63\150\145\x63\153\x5f\x74");
delete_option("\x76\x6c\x5f\x63\x68\145\143\153\x5f\163");
delete_option("\155\157\x5f\x73\x61\155\154\137\143\145\x72\x74");
delete_option("\x6d\x6f\137\163\x61\155\x6c\137\143\145\162\x74\x5f\x70\x72\x69\x76\x61\164\145\x5f\153\x65\x79");
delete_option("\x6d\x6f\x5f\163\141\x6d\154\x5f\x63\x75\x72\162\x65\156\164\137\143\145\162\164");
delete_option("\x6d\157\137\163\x61\155\154\x5f\x63\x75\162\162\145\x6e\x74\137\143\x65\162\164\137\x70\162\x69\x76\x61\164\145\x5f\153\x65\171");
Hd:
}
private function mo_saml_show_success_message()
{
remove_action("\x61\x64\x6d\x69\x6e\x5f\x6e\x6f\x74\151\x63\145\x73", array($this, "\155\157\137\x73\x61\x6d\x6c\x5f\x73\x75\143\x63\145\x73\163\x5f\155\x65\x73\163\x61\147\145"));
add_action("\x61\144\155\151\x6e\137\x6e\157\x74\151\x63\x65\163", array($this, "\155\x6f\137\163\x61\x6d\x6c\x5f\145\x72\162\x6f\x72\137\x6d\x65\x73\163\x61\147\145"));
}
function mo_saml_show_error_message()
{
remove_action("\x61\x64\x6d\151\x6e\x5f\156\157\x74\x69\143\x65\163", array($this, "\x6d\x6f\137\x73\x61\155\154\x5f\x65\162\x72\x6f\162\x5f\155\x65\x73\163\141\x67\x65"));
add_action("\x61\144\155\x69\156\137\x6e\157\164\x69\x63\145\x73", array($this, "\x6d\157\x5f\x73\x61\155\x6c\x5f\x73\x75\143\x63\145\x73\x73\137\155\145\x73\163\x61\x67\145"));
}
function plugin_settings_style($HP)
{
if (!("\164\x6f\160\154\145\166\x65\154\137\x70\x61\x67\x65\x5f\155\x6f\x5f\x73\x61\x6d\x6c\x5f\x73\x65\x74\164\151\156\x67\x73" != $HP)) {
goto Yf;
}
return;
Yf:
wp_enqueue_style("\x6d\x6f\x5f\x73\141\x6d\154\x5f\x61\x64\155\x69\156\x5f\x73\145\164\164\x69\156\x67\x73\137\x73\x74\x79\154\145", plugins_url("\151\156\143\154\165\x64\145\x73\57\143\163\x73\57\163\164\x79\154\145\137\163\145\x74\164\151\x6e\147\x73\56\x6d\x69\156\56\x63\x73\163\x3f\166\145\x72\x3d\x31\x31\x2e\x34\56\60", __FILE__));
wp_enqueue_style("\x6d\x6f\137\x73\141\155\154\x5f\x61\144\x6d\x69\156\x5f\163\x65\164\x74\x69\156\147\x73\137\160\150\x6f\x6e\145\x5f\x73\x74\x79\154\145", plugins_url("\151\156\x63\154\165\x64\x65\163\57\x63\163\x73\x2f\x70\x68\x6f\x6e\x65\56\x6d\151\x6e\x2e\x63\x73\163\77\166\x65\x72\75\x31\61\x2e\x34\x2e\x30", __FILE__));
wp_enqueue_style("\155\x6f\137\x73\x61\x6d\x6c\x5f\x77\x70\142\x2d\146\x61", plugins_url("\x69\x6e\x63\154\165\144\145\x73\x2f\x63\x73\x73\57\146\x6f\x6e\x74\x2d\x61\x77\145\x73\x6f\155\145\x2e\155\151\x6e\x2e\x63\x73\x73\77\x76\145\162\75\61\x31\x2e\64\x2e\60", __FILE__));
}
function plugin_settings_script($HP)
{
if (!("\x74\x6f\x70\x6c\x65\166\145\154\137\x70\141\147\x65\x5f\155\157\137\x73\x61\x6d\154\x5f\x73\145\x74\x74\x69\x6e\147\x73" != $HP)) {
goto rf;
}
return;
rf:
wp_enqueue_script("\152\x71\165\x65\162\171");
wp_enqueue_script("\x6d\157\137\163\141\x6d\x6c\x5f\141\x64\x6d\x69\156\x5f\x62\x6f\x6f\164\x73\164\x72\141\160\137\163\x63\x72\x69\160\x74", plugins_url("\x69\156\143\154\165\x64\x65\163\57\x6a\x73\x2f\x62\x6f\x6f\x74\163\164\x72\x61\160\x2e\x6a\x73\x3f\x76\x65\x72\75\x31\61\56\x34\56\60", __FILE__));
wp_enqueue_script("\x6d\157\x5f\163\x61\x6d\x6c\137\x61\144\x6d\151\x6e\x5f\x73\145\164\x74\x69\156\147\163\x5f\x73\143\x72\151\160\164", plugins_url("\151\x6e\143\154\165\144\x65\163\57\x6a\x73\57\x73\x65\164\x74\151\x6e\147\163\56\x6d\x69\156\x2e\x6a\x73\77\x76\x65\162\x3d\61\61\56\x34\56\60", __FILE__));
wp_enqueue_script("\155\157\x5f\163\x61\x6d\x6c\137\141\144\x6d\x69\x6e\x5f\163\145\164\x74\151\156\147\x73\137\x70\x68\x6f\x6e\x65\x5f\x73\x63\162\151\x70\x74", plugins_url("\x69\156\x63\x6c\x75\x64\x65\163\57\152\163\x2f\x70\x68\x6f\x6e\x65\x2e\155\x69\156\x2e\x6a\x73\77\166\145\x72\x3d\x31\61\x2e\64\x2e\60", __FILE__));
}
function mo_saml_activation_message()
{
$hn = "\165\x70\144\x61\x74\x65\x64";
$bW = get_option("\155\157\137\x73\x61\x6d\x6c\137\x6d\145\x73\163\141\x67\x65");
echo "\x3c\x64\151\166\40\143\x6c\141\163\x73\75\47" . $hn . "\x27\x3e\40\74\160\x3e" . $bW . "\74\x2f\x70\x3e\74\x2f\144\151\x76\76";
}
function miniorange_login_widget_saml_save_settings()
{
if (!current_user_can("\155\141\156\x61\x67\x65\137\x6f\160\164\x69\x6f\x6e\163")) {
goto k0;
}
if (!(is_admin() && get_option("\x41\x63\x74\151\166\x61\x74\x65\144\x5f\x50\154\165\x67\151\156") == "\120\x6c\165\147\x69\x6e\55\123\154\x75\x67")) {
goto CO;
}
delete_option("\101\x63\164\151\166\x61\x74\x65\x64\x5f\x50\x6c\165\147\151\156");
update_option("\155\157\x5f\x73\141\155\x6c\x5f\x6d\145\x73\x73\141\x67\145", "\x47\x6f\x20\164\x6f\x20\x70\x6c\165\147\x69\156\40\x3c\x62\x3e\74\x61\40\x68\x72\145\x66\x3d\x22\x61\x64\155\151\x6e\56\x70\x68\160\x3f\160\141\x67\x65\75\155\x6f\x5f\x73\141\155\x6c\x5f\163\x65\x74\x74\151\156\147\163\42\x3e\x73\145\164\164\151\156\147\x73\74\x2f\141\x3e\x3c\57\142\76\40\x74\x6f\40\x63\157\x6e\x66\151\147\165\x72\x65\x20\123\x41\115\114\x20\123\x69\156\147\x6c\x65\40\x53\151\147\156\40\x4f\x6e\40\x62\171\x20\x6d\x69\x6e\151\x4f\x72\x61\156\x67\x65\56");
add_action("\x61\x64\x6d\151\x6e\x5f\156\x6f\164\x69\143\x65\163", array($this, "\155\x6f\x5f\163\141\155\x6c\x5f\x61\x63\164\151\x76\141\x74\x69\157\156\137\x6d\x65\163\x73\141\x67\145"));
CO:
k0:
if (!(isset($_POST["\x6f\x70\164\151\x6f\x6e"]) && current_user_can("\155\141\x6e\141\147\x65\x5f\157\160\x74\151\157\x6e\x73"))) {
goto Zd;
}
if ($_POST["\157\x70\164\x69\157\x6e"] == "\x6c\x6f\147\x69\x6e\137\167\151\144\147\x65\x74\137\163\x61\155\x6c\137\163\141\x76\x65\x5f\163\x65\164\164\151\x6e\147\163") {
goto kK;
}
if ($_POST["\157\160\x74\x69\157\156"] == "\x6c\157\147\151\156\137\x77\x69\144\x67\x65\164\137\163\141\155\154\x5f\x61\x74\x74\162\151\x62\165\164\145\137\155\141\160\x70\x69\156\x67") {
goto Yk;
}
if ($_POST["\157\x70\x74\x69\x6f\156"] == "\x6c\x6f\x67\151\x6e\x5f\167\x69\144\x67\x65\164\137\163\x61\x6d\154\x5f\x72\x6f\x6c\145\x5f\155\141\x70\160\x69\156\147") {
goto WD;
}
if ($_POST["\x6f\x70\x74\x69\157\156"] == "\155\157\137\163\141\x6d\154\x5f\x75\x70\x64\141\164\x65\137\151\144\x70\x5f\163\145\164\164\x69\x6e\x67\x73\x5f\x6f\x70\x74\x69\x6f\156") {
goto Sv;
}
if (!($_POST["\x6f\160\164\x69\x6f\156"] == "\x73\x61\x6d\154\x5f\165\160\x6c\x6f\141\x64\x5f\x6d\x65\164\x61\x64\x61\164\x61")) {
goto fn;
}
if (function_exists("\167\160\137\150\x61\156\x64\154\x65\x5f\165\x70\x6c\x6f\x61\x64")) {
goto Kk;
}
require_once ABSPATH . "\167\x70\x2d\141\144\x6d\x69\156\x2f\151\156\143\x6c\x75\x64\x65\x73\57\146\x69\154\x65\x2e\x70\x68\160";
Kk:
$this->_handle_upload_metadata();
fn:
goto k2;
Sv:
if (!(isset($_POST["\x6d\157\137\x73\141\x6d\x6c\137\x73\160\x5f\x62\x61\x73\145\x5f\165\162\x6c"]) && isset($_POST["\x6d\157\137\163\141\155\x6c\x5f\163\x70\137\145\x6e\x74\x69\x74\171\137\151\144"]))) {
goto em;
}
$zW = sanitize_text_field($_POST["\x6d\x6f\x5f\163\x61\x6d\154\x5f\163\160\137\x62\x61\x73\x65\137\x75\x72\154"]);
$ZD = sanitize_text_field($_POST["\155\157\x5f\x73\x61\155\x6c\137\x73\x70\137\145\x6e\164\151\164\171\x5f\151\144"]);
if (!(substr($zW, -1) == "\x2f")) {
goto a9;
}
$zW = substr($zW, 0, -1);
a9:
update_option("\x6d\x6f\x5f\x73\141\x6d\154\x5f\163\x70\x5f\142\x61\163\145\x5f\165\162\154", $zW);
update_option("\155\x6f\x5f\x73\141\x6d\x6c\x5f\x73\x70\x5f\145\x6e\164\151\x74\x79\137\151\144", $ZD);
em:
update_option("\155\x6f\137\163\x61\x6d\x6c\137\155\x65\x73\163\141\147\145", "\123\145\164\x74\x69\x6e\x67\x73\x20\x75\x70\x64\141\164\x65\x64\40\x73\x75\x63\x63\x65\x73\163\146\x75\x6c\x6c\171\56");
$this->mo_saml_show_success_message();
k2:
goto MW;
WD:
if (mo_saml_is_curl_installed()) {
goto W0;
}
update_option("\155\x6f\137\x73\141\155\154\x5f\155\145\x73\x73\x61\x67\145", "\x45\122\x52\x4f\x52\72\40\x50\110\120\x20\143\x55\122\x4c\x20\145\x78\164\x65\156\163\x69\x6f\156\40\x69\163\40\156\157\164\x20\x69\x6e\x73\x74\x61\154\154\x65\144\x20\x6f\162\40\144\151\x73\141\142\x6c\145\x64\56\40\123\141\x76\145\x20\122\157\154\145\x20\x4d\141\x70\x70\x69\156\x67\x20\x66\141\151\154\145\144\56");
$this->mo_saml_show_error_message();
return;
W0:
if (!isset($_POST["\163\141\x6d\x6c\x5f\141\155\137\x64\x65\146\141\x75\x6c\164\137\165\x73\x65\x72\x5f\162\x6f\154\145"])) {
goto fq;
}
$kL = $_POST["\x73\141\x6d\154\x5f\141\155\137\144\x65\146\x61\x75\x6c\164\137\165\163\145\x72\x5f\x72\x6f\x6c\145"];
update_option("\163\x61\x6d\154\x5f\141\155\x5f\144\145\x66\x61\x75\154\x74\x5f\165\x73\x65\x72\x5f\x72\x6f\x6c\145", $kL);
fq:
if (isset($_POST["\x73\141\155\x6c\x5f\141\155\137\x64\x6f\x6e\164\x5f\141\x6c\154\157\167\137\x75\x6e\154\x69\x73\164\x65\x64\x5f\x75\163\145\x72\x5f\x72\x6f\154\145"])) {
goto bv;
}
update_option("\x73\x61\x6d\x6c\137\x61\155\x5f\x64\157\x6e\164\137\141\154\x6c\x6f\x77\x5f\165\x6e\x6c\x69\163\164\145\x64\x5f\165\163\x65\162\137\162\157\x6c\145", "\x75\156\143\x68\145\143\x6b\x65\144");
goto c0;
bv:
update_option("\x73\x61\x6d\154\x5f\141\155\137\144\x65\x66\141\165\x6c\x74\x5f\x75\x73\145\162\137\x72\x6f\154\145", false);
update_option("\x73\141\x6d\154\137\141\155\137\144\157\156\164\137\141\154\x6c\x6f\167\137\x75\156\154\x69\x73\164\145\x64\137\165\163\x65\x72\137\162\x6f\154\145", "\143\150\x65\x63\153\145\x64");
c0:
if (isset($_POST["\x6d\x6f\x5f\163\x61\155\154\x5f\144\x6f\156\x74\x5f\143\162\x65\x61\164\145\x5f\165\x73\x65\x72\x5f\x69\x66\x5f\162\x6f\x6c\145\137\156\157\164\137\155\141\x70\160\x65\x64"])) {
goto lc;
}
update_option("\155\157\x5f\163\141\155\x6c\137\144\x6f\156\164\137\143\x72\145\x61\164\145\x5f\165\x73\x65\162\137\151\x66\x5f\x72\x6f\x6c\145\137\x6e\x6f\x74\x5f\x6d\141\160\160\x65\x64", "\x75\156\143\150\145\143\x6b\x65\x64");
goto Xi;
lc:
update_option("\x6d\x6f\137\x73\x61\x6d\154\137\144\x6f\x6e\x74\x5f\143\x72\145\141\x74\x65\137\x75\163\145\x72\x5f\x69\x66\137\x72\157\x6c\145\x5f\x6e\x6f\164\x5f\155\141\160\x70\x65\144", "\143\150\x65\143\x6b\x65\144");
update_option("\163\141\x6d\154\137\x61\x6d\x5f\144\x65\x66\x61\x75\x6c\x74\137\x75\x73\x65\x72\x5f\x72\157\154\x65", false);
update_option("\x73\x61\155\x6c\x5f\x61\x6d\137\144\157\x6e\x74\137\141\x6c\154\157\x77\137\165\156\154\151\x73\x74\145\x64\137\x75\163\145\x72\x5f\x72\157\154\x65", "\x75\156\x63\150\x65\x63\153\x65\x64");
Xi:
if (isset($_POST["\155\x6f\x5f\x73\x61\x6d\154\x5f\x64\x6f\x6e\164\137\x75\x70\144\x61\164\x65\x5f\145\x78\151\x73\164\x69\156\x67\x5f\x75\x73\x65\x72\137\162\157\x6c\145"])) {
goto x2;
}
update_option("\x73\141\x6d\154\137\x61\155\137\x64\157\x6e\x74\137\165\x70\144\141\164\x65\137\145\170\x69\x73\x74\151\x6e\x67\137\165\163\x65\x72\137\x72\x6f\154\x65", "\x75\x6e\x63\150\145\143\153\x65\x64");
goto Tc;
x2:
update_option("\x73\x61\x6d\154\x5f\141\x6d\x5f\144\x6f\x6e\164\137\x75\x70\x64\x61\164\x65\x5f\145\170\x69\x73\164\x69\x6e\147\137\x75\x73\x65\x72\x5f\162\157\x6c\145", "\x63\x68\145\x63\x6b\145\144");
Tc:
if (isset($_POST["\155\x6f\137\163\x61\x6d\x6c\x5f\x64\157\156\164\137\141\154\x6c\157\167\137\165\163\145\x72\137\164\157\x6c\157\147\151\156\x5f\x63\x72\145\141\164\145\x5f\x77\x69\164\x68\x5f\147\x69\166\145\x6e\x5f\x67\162\x6f\165\x70\163"])) {
goto BN;
}
update_option("\x73\141\155\154\137\x61\155\x5f\144\157\156\164\137\x61\154\x6c\157\167\x5f\165\163\x65\x72\x5f\164\x6f\154\x6f\x67\151\156\x5f\143\162\x65\x61\x74\145\x5f\x77\151\164\150\137\147\151\x76\145\x6e\137\147\x72\157\x75\x70\x73", "\165\156\143\150\145\x63\x6b\145\x64");
goto LK;
BN:
update_option("\163\141\155\x6c\137\x61\x6d\x5f\x64\x6f\156\x74\137\x61\x6c\x6c\x6f\167\137\x75\x73\145\162\137\x74\x6f\x6c\157\x67\151\x6e\137\143\x72\x65\141\x74\145\x5f\167\x69\x74\150\137\147\x69\166\145\x6e\x5f\x67\x72\157\165\160\163", "\x63\150\145\x63\153\145\x64");
if (!isset($_POST["\x6d\157\x5f\163\x61\x6d\x6c\x5f\162\x65\163\164\x72\151\143\x74\x5f\x75\163\145\162\163\137\x77\151\x74\150\x5f\x67\x72\x6f\165\x70\x73"])) {
goto Mi;
}
if (!empty($_POST["\x6d\157\137\163\141\155\x6c\x5f\x72\x65\x73\164\x72\x69\143\164\137\x75\163\x65\x72\163\137\167\x69\164\150\x5f\x67\x72\x6f\165\160\x73"])) {
goto Tg;
}
update_option("\155\157\137\163\141\x6d\154\137\162\145\x73\x74\162\x69\143\x74\137\165\x73\145\x72\163\137\x77\151\164\x68\137\x67\x72\x6f\165\x70\163", '');
goto iw;
Tg:
update_option("\x6d\157\x5f\x73\x61\155\154\137\x72\x65\163\x74\162\x69\143\164\137\x75\x73\x65\x72\x73\x5f\167\151\x74\x68\x5f\147\x72\x6f\x75\160\x73", stripslashes($_POST["\155\x6f\137\163\141\x6d\154\137\162\145\x73\164\x72\x69\x63\164\x5f\x75\x73\145\x72\x73\137\167\151\x74\x68\137\x67\162\x6f\165\160\163"]));
iw:
Mi:
LK:
$wp_roles = new WP_Roles();
$ST = $wp_roles->get_names();
$QX;
foreach ($ST as $qV => $FI) {
$jw = "\x73\x61\x6d\154\137\141\x6d\137\x67\x72\x6f\165\160\137\x61\x74\164\x72\x5f\166\x61\x6c\x75\x65\163\137" . $qV;
$QX[$qV] = stripslashes($_POST[$jw]);
Nq:
}
qe:
update_option("\163\x61\155\x6c\x5f\x61\x6d\137\162\157\154\145\x5f\155\x61\160\160\151\x6e\147", $QX);
update_option("\x6d\x6f\x5f\x73\x61\x6d\x6c\x5f\155\x65\163\x73\141\147\145", "\122\157\x6c\x65\x20\x4d\141\x70\160\151\156\x67\x20\144\145\164\x61\x69\x6c\x73\40\x73\141\166\145\x64\x20\x73\x75\143\x63\145\x73\x73\146\x75\x6c\x6c\x79\x2e");
$this->mo_saml_show_success_message();
MW:
goto Ug;
Yk:
if (mo_saml_is_curl_installed()) {
goto AW;
}
update_option("\155\x6f\x5f\163\141\x6d\x6c\137\x6d\145\163\x73\x61\147\145", "\x45\x52\122\117\x52\x3a\x20\120\110\120\40\x63\125\x52\x4c\x20\x65\170\164\145\x6e\163\x69\x6f\156\40\151\163\x20\156\157\164\40\x69\156\x73\164\141\x6c\x6c\x65\x64\40\x6f\162\40\x64\x69\x73\x61\142\x6c\145\144\56\40\x53\x61\166\145\x20\x41\164\164\x72\151\142\x75\164\145\x20\115\x61\160\x70\151\x6e\147\40\x66\141\151\154\145\144\x2e");
$this->mo_saml_show_error_message();
return;
AW:
update_option("\x73\141\155\x6c\137\141\155\x5f\165\x73\x65\162\156\x61\x6d\145", stripslashes($_POST["\x73\x61\155\x6c\137\x61\155\137\x75\x73\x65\x72\156\x61\x6d\x65"]));
update_option("\x73\141\155\x6c\x5f\141\x6d\137\x65\x6d\x61\151\x6c", stripslashes($_POST["\x73\x61\155\x6c\137\x61\x6d\137\145\x6d\x61\x69\x6c"]));
update_option("\x73\141\x6d\x6c\x5f\141\x6d\137\146\151\162\x73\164\137\156\141\x6d\x65", stripslashes($_POST["\x73\x61\155\x6c\137\141\x6d\x5f\146\x69\162\x73\x74\137\156\141\x6d\x65"]));
update_option("\x73\x61\x6d\154\137\x61\x6d\137\154\x61\163\x74\x5f\x6e\141\155\145", stripslashes($_POST["\163\x61\155\x6c\137\141\x6d\137\154\141\x73\164\137\156\141\155\145"]));
update_option("\x73\x61\155\154\137\x61\155\137\147\162\x6f\x75\x70\137\156\141\x6d\145", stripslashes($_POST["\x73\141\155\154\x5f\x61\x6d\137\147\x72\157\x75\160\137\156\x61\x6d\145"]));
update_option("\x73\141\x6d\154\x5f\x61\155\x5f\x61\143\x63\157\165\156\x74\x5f\x6d\141\x74\143\x68\145\162", stripslashes($_POST["\163\141\x6d\154\x5f\x61\x6d\137\141\143\x63\157\x75\156\164\x5f\x6d\141\x74\x63\x68\x65\x72"]));
update_option("\x73\141\155\x6c\137\141\155\137\x64\151\163\x70\154\x61\x79\137\x6e\x61\155\145", stripslashes($_POST["\163\141\155\154\x5f\x61\155\x5f\144\x69\x73\160\x6c\x61\171\137\156\141\155\x65"]));
$j5 = array();
$Qj = 0;
foreach ($_POST as $nz => $q0) {
if (!(strpos($nz, "\x6d\x6f\137\163\141\155\154\137\x63\x75\163\164\157\155\x5f\141\164\164\x72\x69\x62\165\164\145\137\153\145\171") !== false && !empty($_POST[$nz]))) {
goto QI;
}
$Qj++;
$L5 = "\x6d\157\x5f\163\141\x6d\x6c\x5f\143\165\x73\x74\157\155\x5f\x61\164\x74\x72\x69\x62\165\x74\145\137\x76\141\x6c\165\145\x5f" . $Qj;
$j5[$q0] = $_POST[$L5];
QI:
Fy:
}
Jb:
if (empty($j5)) {
goto gt;
}
update_option("\155\x6f\x5f\163\141\x6d\x6c\137\x63\x75\163\x74\x6f\x6d\x5f\x61\x74\164\x72\x73\137\x6d\x61\160\x70\151\x6e\147", $j5);
gt:
update_option("\155\x6f\x5f\x73\141\155\154\x5f\x6d\x65\163\x73\x61\x67\x65", "\x41\164\164\x72\151\142\x75\x74\145\x20\x4d\x61\x70\x70\x69\x6e\147\x20\x64\145\x74\x61\151\154\x73\40\163\141\x76\145\x64\40\x73\165\143\143\145\163\x73\x66\x75\x6c\x6c\171");
$this->mo_saml_show_success_message();
Ug:
goto yd;
kK:
if (mo_saml_is_curl_installed()) {
goto Iq;
}
update_option("\x6d\x6f\x5f\x73\141\x6d\x6c\x5f\x6d\x65\x73\x73\x61\147\145", "\x45\x52\x52\117\122\x3a\40\120\x48\120\40\x63\125\x52\114\40\145\170\x74\145\156\x73\x69\x6f\x6e\40\151\x73\40\156\x6f\x74\40\x69\x6e\x73\x74\x61\x6c\x6c\x65\144\x20\157\x72\40\144\x69\163\141\142\154\145\x64\56\40\123\141\166\x65\x20\x49\x64\145\x6e\x74\151\164\x79\x20\x50\162\x6f\166\151\144\x65\x72\x20\x43\157\x6e\x66\151\147\x75\x72\141\164\151\157\x6e\40\x66\x61\x69\154\145\144\56");
$this->mo_saml_show_error_message();
return;
Iq:
$hD = '';
$gi = '';
$B5 = '';
$ky = '';
$c1 = '';
$WO = '';
$tS = '';
$JV = '';
if ($this->mo_saml_check_empty_or_null($_POST["\163\x61\155\x6c\x5f\151\144\145\156\164\x69\164\x79\137\156\141\x6d\x65"]) || $this->mo_saml_check_empty_or_null($_POST["\x73\141\155\x6c\137\154\x6f\147\151\156\137\x75\x72\154"]) || $this->mo_saml_check_empty_or_null($_POST["\163\141\x6d\x6c\x5f\x69\x73\163\x75\x65\x72"])) {
goto zx;
}
if (!preg_match("\x2f\136\x5c\167\52\44\57", $_POST["\x73\x61\x6d\x6c\137\151\x64\x65\156\x74\x69\x74\171\137\156\x61\155\x65"])) {
goto UQ;
}
$hD = trim($_POST["\163\141\155\154\137\x69\144\145\156\x74\x69\164\171\137\x6e\141\155\x65"]);
$B5 = trim($_POST["\163\141\x6d\154\x5f\x6c\157\x67\x69\x6e\x5f\x75\162\154"]);
if (!array_key_exists("\163\141\x6d\154\x5f\x6c\x6f\147\151\x6e\x5f\x62\151\x6e\x64\151\156\147\x5f\164\171\x70\x65", $_POST)) {
goto Qg;
}
$gi = $_POST["\163\141\155\154\137\x6c\x6f\x67\x69\156\x5f\142\x69\156\144\151\x6e\147\137\164\171\x70\145"];
Qg:
if (!array_key_exists("\163\141\155\x6c\x5f\154\157\147\x6f\x75\x74\x5f\x62\x69\156\144\151\156\x67\137\164\171\x70\x65", $_POST)) {
goto wE;
}
$ky = $_POST["\163\141\x6d\154\x5f\x6c\x6f\x67\157\165\x74\137\142\151\x6e\144\x69\x6e\147\137\x74\171\160\145"];
wE:
if (!array_key_exists("\163\141\x6d\154\137\x6c\x6f\x67\x6f\165\x74\137\x75\162\154", $_POST)) {
goto Uw;
}
$c1 = trim($_POST["\x73\141\155\154\137\x6c\157\147\x6f\x75\164\x5f\165\162\154"]);
Uw:
$WO = trim($_POST["\163\141\155\154\137\151\x73\x73\165\145\162"]);
$tS = $_POST["\163\x61\x6d\x6c\137\x78\x35\x30\x39\137\143\145\162\x74\x69\146\151\143\x61\x74\145"];
goto ZF;
UQ:
update_option("\155\157\x5f\163\x61\155\x6c\x5f\x6d\145\163\x73\x61\147\145", "\120\154\x65\x61\x73\145\40\155\x61\x74\x63\150\x20\164\150\x65\x20\x72\x65\161\165\x65\163\x74\x65\144\40\x66\157\162\155\141\164\40\x66\157\x72\x20\111\144\x65\x6e\164\x69\164\171\x20\x50\x72\x6f\x76\151\144\145\162\x20\x4e\x61\x6d\x65\56\x20\x4f\156\154\x79\x20\141\x6c\160\x68\x61\142\x65\x74\163\x2c\x20\x6e\165\155\142\145\162\x73\40\x61\156\x64\x20\x75\156\x64\x65\x72\163\143\x6f\162\145\40\x69\163\x20\141\154\x6c\157\x77\x65\x64\56");
$this->mo_saml_show_error_message();
return;
ZF:
goto M0;
zx:
update_option("\155\157\x5f\163\x61\x6d\x6c\x5f\x6d\145\163\x73\x61\x67\145", "\101\154\x6c\40\x74\x68\145\40\146\x69\145\x6c\144\x73\40\x61\162\145\40\x72\145\x71\165\151\x72\x65\x64\x2e\x20\x50\x6c\x65\141\163\145\x20\145\x6e\164\145\x72\40\x76\141\154\151\144\x20\145\x6e\x74\162\x69\145\x73\56");
$this->mo_saml_show_error_message();
return;
M0:
update_option("\163\x61\155\154\137\151\144\145\x6e\164\151\164\x79\137\156\x61\x6d\145", $hD);
update_option("\163\x61\x6d\154\137\154\x6f\x67\x69\x6e\x5f\142\x69\x6e\144\151\x6e\147\137\x74\x79\x70\145", $gi);
update_option("\163\x61\155\x6c\x5f\154\x6f\x67\x69\x6e\x5f\x75\162\x6c", $B5);
update_option("\163\141\155\154\x5f\154\x6f\x67\x6f\165\164\137\x62\x69\156\x64\151\156\147\x5f\x74\171\x70\145", $ky);
update_option("\x73\141\155\x6c\x5f\154\x6f\147\x6f\x75\164\137\x75\x72\154", $c1);
update_option("\163\x61\x6d\154\x5f\x69\163\x73\165\145\x72", $WO);
if (isset($_POST["\x73\x61\x6d\154\x5f\x72\145\161\x75\145\163\x74\x5f\163\x69\147\x6e\x65\x64"])) {
goto G6;
}
update_option("\x73\141\155\x6c\137\162\145\161\x75\145\163\164\x5f\163\x69\x67\156\x65\x64", "\x75\x6e\143\150\x65\x63\x6b\x65\x64");
goto at;
G6:
update_option("\x73\141\x6d\x6c\x5f\x72\145\161\x75\x65\x73\x74\x5f\163\x69\x67\156\x65\144", "\143\150\x65\143\x6b\x65\144");
at:
foreach ($tS as $nz => $q0) {
if (empty($q0)) {
goto fK;
}
$tS[$nz] = SAMLSPUtilities::sanitize_certificate($q0);
if (@openssl_x509_read($tS[$nz])) {
goto Cb;
}
update_option("\x6d\157\137\x73\141\155\x6c\x5f\x6d\x65\163\163\x61\x67\145", "\x49\156\x76\141\154\x69\144\x20\143\145\x72\x74\151\146\151\x63\141\164\145\72\40\x50\x6c\x65\x61\163\x65\x20\160\x72\157\166\151\x64\145\x20\x61\40\x76\x61\154\151\144\x20\143\145\162\x74\x69\x66\151\x63\x61\164\x65\56");
$this->mo_saml_show_error_message();
delete_option("\x73\141\155\x6c\x5f\170\x35\60\71\x5f\143\x65\x72\x74\x69\x66\x69\143\x61\164\145");
return;
Cb:
goto PC;
fK:
unset($tS[$nz]);
PC:
du:
}
xt:
if (!empty($tS)) {
goto JP;
}
update_option("\x6d\157\x5f\x73\141\x6d\x6c\137\x6d\x65\x73\x73\x61\x67\x65", "\x49\x6e\x76\x61\x6c\x69\x64\x20\x43\x65\x72\164\151\146\151\143\141\x74\145\72\120\x6c\145\x61\163\145\x20\160\x72\x6f\x76\151\x64\x65\x20\x61\40\143\x65\x72\164\151\146\x69\143\141\x74\x65");
$this->mo_saml_show_error_message();
return;
JP:
update_option("\163\x61\155\x6c\x5f\x78\65\60\x39\137\143\x65\x72\164\x69\x66\151\x63\141\164\x65", maybe_serialize($tS));
if (isset($_POST["\x73\141\x6d\x6c\137\x72\x65\x73\x70\157\x6e\x73\x65\137\x73\x69\x67\156\145\144"])) {
goto Qj;
}
update_option("\163\141\x6d\154\x5f\x72\145\163\x70\x6f\x6e\163\145\137\x73\x69\x67\x6e\x65\144", "\x59\145\163");
goto WC;
Qj:
update_option("\x73\x61\x6d\x6c\x5f\x72\x65\x73\x70\x6f\x6e\x73\145\137\x73\x69\x67\x6e\x65\x64", "\143\150\x65\143\x6b\x65\x64");
WC:
if (isset($_POST["\x73\x61\x6d\154\137\141\x73\x73\145\x72\164\151\157\156\137\163\151\147\156\x65\144"])) {
goto vb;
}
update_option("\x73\141\155\x6c\137\x61\x73\x73\145\162\164\x69\157\156\137\163\x69\147\156\x65\144", "\131\x65\x73");
goto n0;
vb:
update_option("\163\x61\155\x6c\137\141\163\163\145\x72\x74\x69\157\x6e\137\x73\151\x67\156\145\144", "\143\x68\145\x63\x6b\145\144");
n0:
if (get_option("\x6d\157\137\163\141\155\x6c\x5f\x65\x6e\141\142\154\145\x5f\x63\154\157\165\144\137\x62\162\157\153\145\x72") == "\x74\162\165\145") {
goto ay;
}
update_option("\155\157\x5f\x73\x61\155\154\x5f\155\x65\163\163\x61\x67\x65", "\111\x64\145\156\164\x69\x74\x79\x20\x50\162\x6f\x76\x69\x64\145\162\x20\x64\x65\164\141\151\154\163\40\x73\141\x76\x65\x64\x20\163\x75\143\143\145\x73\x73\x66\x75\x6c\154\171\x2e");
$this->mo_saml_show_success_message();
goto zm;
ay:
$Cw = new Customersaml();
$oq = json_decode($Cw->save_external_idp_config(), true);
if (@openssl_x509_read($oq["\x73\x61\155\x6c\x58\65\60\x39\x43\x65\162\x74\151\x66\151\x63\x61\x74\x65"])) {
goto VH;
}
update_option("\155\157\137\x73\x61\155\x6c\x5f\x6d\145\163\x73\x61\147\145", "\111\x6e\166\x61\x6c\151\x64\40\103\x65\x72\x74\x69\146\x69\x63\x61\164\145\40\x66\x6f\x72\x6d\141\164\56\40\120\x6c\145\141\x73\145\x20\145\x6e\164\145\162\40\x61\40\x76\x61\x6c\x69\144\40\x63\145\162\164\151\146\x69\x63\141\x74\145\56");
$this->mo_saml_show_error_message();
delete_option("\163\x61\155\154\x5f\x78\65\x30\x39\137\x63\x65\x72\x74\x69\146\x69\x63\141\x74\145");
return;
VH:
if (isset($oq["\143\x75\163\x74\157\155\x65\162\111\144"])) {
goto uO;
}
update_option("\x6d\x6f\x5f\163\141\x6d\154\x5f\155\145\x73\x73\141\147\145", "\x49\x64\x65\156\x74\x69\164\x79\40\x50\x72\x6f\x76\151\144\145\162\40\x64\145\164\x61\151\154\163\40\143\157\165\154\144\x20\156\x6f\164\40\142\x65\40\x73\x61\x76\145\144\x2e\40\120\154\145\141\x73\x65\40\x74\x72\171\x20\141\147\141\151\156\x2e");
$this->mo_saml_show_error_message();
goto wc;
uO:
update_option("\x73\141\155\x6c\137\x78\x35\x30\x39\137\143\x65\x72\164\151\146\151\143\x61\164\145", maybe_serialize(array($oq["\163\x61\x6d\x6c\x58\65\x30\x39\103\145\162\x74\x69\x66\x69\x63\141\164\x65"])));
update_option("\x6d\x6f\x5f\163\141\155\154\x5f\x6d\145\x73\x73\x61\147\145", "\111\x64\145\x6e\x74\151\x74\171\40\x50\x72\157\166\x69\x64\145\162\x20\x64\145\x74\141\151\154\163\x20\x73\x61\166\145\x64\x20\x73\165\143\x63\145\x73\163\146\x75\x6c\154\x79\x2e");
$this->mo_saml_show_success_message();
wc:
zm:
yd:
if (isset($_POST["\157\160\164\151\x6f\x6e"]) and $_POST["\157\x70\164\151\x6f\x6e"] == "\x61\144\x64\137\143\165\163\x74\x6f\x6d\137\143\x65\x72\164\151\146\151\x63\x61\164\x65") {
goto Z3;
}
if ($_POST["\x6f\160\164\151\x6f\x6e"] == "\155\157\137\x73\x61\x6d\x6c\137\x72\145\x6c\141\x79\137\163\164\141\164\145\x5f\x6f\160\164\151\157\x6e") {
goto JT;
}
if ($_POST["\x6f\160\x74\x69\x6f\156"] == "\163\141\155\x6c\x5f\x67\x65\x6e\145\162\x61\x74\145\x5f\143\145\162\x74\x69\x66\x69\x63\141\x74\x65") {
goto QB;
}
if ($_POST["\x6f\x70\164\151\x6f\x6e"] == "\x6d\x6f\137\x73\141\155\x6c\137\162\x65\x67\151\163\x74\145\162\x5f\x63\165\163\x74\x6f\x6d\145\x72") {
goto Xo;
}
if ($_POST["\x6f\x70\164\151\x6f\x6e"] == "\x6d\x6f\137\x73\x61\x6d\x6c\137\x76\x61\154\151\144\x61\x74\145\x5f\157\164\160") {
goto iX;
}
if ($_POST["\x6f\160\164\151\x6f\x6e"] == "\x6d\x6f\x5f\x73\x61\x6d\154\137\166\145\x72\151\146\171\x5f\143\165\163\164\157\x6d\x65\162") {
goto Lf;
}
if ($_POST["\157\160\164\151\157\x6e"] == "\155\x6f\137\163\x61\x6d\154\137\x63\x6f\156\x74\141\x63\x74\x5f\165\163\137\x71\x75\x65\x72\x79\x5f\x6f\x70\164\151\157\x6e") {
goto ew;
}
if ($_POST["\157\x70\x74\151\x6f\x6e"] == "\x6d\x6f\x5f\x73\x61\155\154\x5f\162\145\x73\145\x6e\144\x5f\157\x74\x70\137\145\x6d\x61\151\154") {
goto Nc;
}
if ($_POST["\157\x70\x74\151\157\x6e"] == "\x6d\157\137\163\x61\155\x6c\x5f\162\145\163\145\x6e\x64\x5f\x6f\x74\x70\x5f\160\150\157\x6e\145") {
goto ku;
}
if ($_POST["\x6f\x70\164\x69\x6f\156"] == "\155\157\137\163\141\x6d\154\x5f\147\x6f\137\142\141\143\153") {
goto Pw;
}
if ($_POST["\157\160\x74\x69\157\x6e"] == "\x6d\157\x5f\x73\141\155\x6c\137\x72\x65\x67\x69\163\x74\145\x72\x5f\167\151\164\150\137\x70\x68\157\156\145\x5f\x6f\160\x74\x69\157\156") {
goto jm;
}
if ($_POST["\157\160\x74\151\x6f\x6e"] == "\155\x6f\137\163\141\155\154\137\x72\145\x67\151\x73\x74\145\x72\x65\144\137\157\x6e\x6c\171\x5f\x61\x63\x63\x65\x73\163\x5f\x6f\160\164\151\x6f\x6e") {
goto Nb;
}
if ($_POST["\157\x70\x74\151\x6f\x6e"] == "\155\x6f\137\163\141\155\154\x5f\x66\x6f\x72\x63\145\x5f\141\165\x74\150\145\x6e\164\151\143\141\x74\151\x6f\x6e\137\x6f\160\164\x69\x6f\156") {
goto PG;
}
if ($_POST["\157\160\x74\151\x6f\x6e"] == "\155\157\x5f\x73\x61\x6d\x6c\x5f\145\156\141\142\154\x65\x5f\x72\163\163\x5f\x61\143\x63\x65\163\163\137\x6f\160\x74\x69\157\156") {
goto Nl;
}
if ($_POST["\157\x70\164\151\x6f\156"] == "\155\157\x5f\163\x61\x6d\x6c\137\145\156\141\x62\x6c\145\x5f\x6c\157\147\x69\x6e\x5f\162\145\x64\x69\162\x65\x63\x74\137\157\160\x74\151\157\156") {
goto Vl;
}
if ($_POST["\x6f\160\164\151\157\156"] == "\155\157\x5f\163\x61\x6d\x6c\x5f\145\x6e\141\x62\154\x65\x5f\143\x6c\157\165\144\x5f\x62\x72\x6f\x6b\x65\x72") {
goto s0;
}
if ($_POST["\x6f\160\x74\151\157\x6e"] == "\155\x6f\137\x73\141\155\154\x5f\141\x6c\x6c\x6f\x77\137\167\x70\137\163\x69\147\156\151\156\137\x6f\x70\164\x69\157\x6e") {
goto sL;
}
if ($_POST["\x6f\160\164\151\157\x6e"] == "\155\157\137\163\141\x6d\x6c\x5f\163\x61\x76\x65\137\160\x72\x6f\x78\171\x5f\x73\x65\164\164\x69\x6e\147") {
goto u8;
}
if ($_POST["\x6f\160\x74\151\x6f\156"] == "\x6d\157\x5f\x73\141\155\154\x5f\146\157\x72\x67\157\x74\x5f\160\141\x73\x73\167\157\x72\x64\x5f\146\157\x72\155\137\157\x70\164\151\x6f\x6e") {
goto xd;
}
if ($_POST["\157\160\164\x69\x6f\x6e"] == "\x6d\157\x5f\x73\x61\155\x6c\x5f\x76\x65\162\151\146\x79\x5f\154\x69\x63\x65\x6e\163\x65") {
goto sK;
}
if ($_POST["\157\x70\x74\x69\157\156"] == "\x6d\x6f\x5f\x73\141\155\154\137\146\162\x65\x65\x5f\x74\x72\151\x61\x6c") {
goto Sq;
}
if ($_POST["\x6f\160\164\151\x6f\156"] == "\x6d\x6f\x5f\163\x61\155\154\137\143\x68\145\x63\x6b\137\154\151\143\145\156\163\145") {
goto mS;
}
if (!($_POST["\157\160\164\x69\x6f\x6e"] == "\155\x6f\x5f\x73\x61\155\154\137\162\x65\x6d\x6f\166\x65\x5f\141\x63\x63\157\165\x6e\x74")) {
goto Y9;
}
$this->mo_sso_saml_deactivate();
add_option("\155\x6f\x5f\x73\x61\155\x6c\137\162\x65\147\x69\163\x74\x72\141\x74\151\x6f\156\x5f\x73\164\x61\x74\x75\163", "\x72\x65\x6d\x6f\x76\x65\144\x5f\141\x63\x63\x6f\165\156\x74");
$wy = add_query_arg(array("\x74\x61\142" => "\x6c\157\147\151\x6e"), $_SERVER["\x52\105\x51\125\105\123\x54\137\125\122\x49"]);
header("\114\x6f\x63\x61\164\x69\157\156\72\40" . $wy);
Y9:
goto kF;
mS:
$uh = new Customersaml();
$YY = json_decode($uh->check_customer_ln(), true);
if (strcasecmp($YY["\x73\x74\x61\x74\165\x73"], "\x53\x55\x43\x43\x45\x53\x53") == 0) {
goto og;
}
$nz = get_option("\x6d\157\137\x73\141\155\154\137\143\x75\163\x74\157\x6d\x65\162\x5f\x74\157\153\x65\x6e");
update_option("\163\x69\164\145\x5f\143\153\x5f\x6c", AESEncryption::encrypt_data("\146\141\x6c\x73\145", $nz));
$wy = add_query_arg(array("\164\x61\x62" => "\x6c\151\143\x65\x6e\163\151\156\147"), $_SERVER["\122\105\x51\x55\105\x53\124\x5f\x55\x52\111"]);
update_option("\x6d\x6f\x5f\163\x61\155\x6c\137\x6d\x65\163\163\x61\147\145", "\x59\157\x75\x20\150\x61\166\145\40\156\x6f\164\40\x75\x70\147\x72\x61\x64\x65\144\x20\x79\x65\x74\56\40" . addLink("\x43\x6c\x69\143\x6b\40\150\145\x72\x65", $wy) . "\40\164\157\40\x75\160\147\162\x61\x64\x65\40\x74\157\x20\x70\x72\145\x6d\x69\x75\155\40\x76\x65\162\163\151\x6f\156\x2e");
$this->mo_saml_show_error_message();
goto Ut;
og:
if (array_key_exists("\x6c\x69\143\x65\x6e\x73\x65\120\x6c\x61\156", $YY) && !$this->mo_saml_check_empty_or_null($YY["\154\x69\x63\145\x6e\x73\x65\x50\154\141\156"])) {
goto f_;
}
$nz = get_option("\155\157\x5f\x73\x61\155\x6c\x5f\143\x75\163\x74\x6f\x6d\145\x72\x5f\x74\x6f\153\145\x6e");
update_option("\x73\151\x74\145\137\143\x6b\x5f\154", AESEncryption::encrypt_data("\x66\141\154\163\x65", $nz));
$wy = add_query_arg(array("\x74\141\x62" => "\x6c\151\143\x65\x6e\x73\x69\156\x67"), $_SERVER["\x52\x45\121\x55\x45\x53\x54\x5f\x55\x52\111"]);
update_option("\155\157\137\x73\x61\155\154\x5f\155\145\163\163\141\147\145", "\x59\x6f\165\x20\x68\141\166\145\40\156\x6f\164\40\165\x70\x67\x72\141\x64\145\x64\40\171\145\164\56\40" . addLink("\103\x6c\x69\143\x6b\x20\150\145\162\145", $wy) . "\40\164\x6f\x20\165\x70\147\162\141\x64\145\x20\x74\x6f\40\x70\162\x65\x6d\151\x75\155\40\166\145\x72\163\151\157\156\x2e");
$this->mo_saml_show_error_message();
goto X8;
f_:
update_option("\x6d\x6f\x5f\163\141\x6d\x6c\x5f\x6c\x69\x63\x65\x6e\163\x65\x5f\156\141\155\x65", base64_encode($YY["\x6c\151\143\145\156\x73\145\x50\154\x61\156"]));
$nz = get_option("\155\157\137\x73\x61\155\x6c\x5f\x63\165\163\x74\157\155\145\162\x5f\x74\157\153\145\x6e");
if (!(array_key_exists("\x6e\157\117\x66\125\x73\145\x72\x73", $YY) && !$this->mo_saml_check_empty_or_null($YY["\x6e\157\x4f\146\125\x73\x65\162\163"]))) {
goto yW;
}
update_option("\x6d\157\x5f\x73\x61\x6d\154\137\x75\x73\x72\137\154\155\164", AESEncryption::encrypt_data($YY["\x6e\157\117\x66\x55\163\145\x72\163"], $nz));
yW:
update_option("\x73\151\164\145\x5f\x63\153\x5f\154", AESEncryption::encrypt_data("\164\162\165\x65", $nz));
$kt = plugin_dir_path(__FILE__);
$X2 = home_url();
$X2 = trim($X2, "\57");
if (preg_match("\x23\x5e\150\164\x74\x70\x28\x73\51\x3f\x3a\57\x2f\43", $X2)) {
goto IH;
}
$X2 = "\150\164\x74\x70\72\57\x2f" . $X2;
IH:
$Ab = parse_url($X2);
$D3 = preg_replace("\x2f\136\x77\167\x77\134\56\x2f", '', $Ab["\150\x6f\163\164"]);
$i0 = wp_upload_dir();
$gJ = $D3 . "\x2d" . $i0["\x62\141\163\145\x64\151\162"];
$xr = hash_hmac("\x73\150\141\62\65\x36", $gJ, "\x34\104\x48\146\x6a\147\x66\x6a\x61\163\156\x64\x66\x73\x61\x6a\x66\110\107\x4a");
$y0 = $this->djkasjdksa();
$dz = round(strlen($y0) / rand(2, 20));
$y0 = substr_replace($y0, $xr, $dz, 0);
$KW = base64_decode($y0);
if (is_writable($kt . "\154\x69\x63\x65\x6e\163\x65")) {
goto jv;
}
$y0 = str_rot13($y0);
$ue = base64_decode("\x62\107\x4e\153\x61\x6d\x74\x68\143\62\x70\153\141\63\x4e\x68\131\x32\x77\x3d");
update_option($ue, $y0);
goto w8;
jv:
file_put_contents($kt . "\154\x69\143\145\156\163\145", $KW);
w8:
update_option("\x6c\143\x77\x72\164\154\x66\x73\141\x6d\x6c", true);
$wy = add_query_arg(array("\164\141\142" => "\147\x65\x6e\145\162\x61\x6c"), $_SERVER["\122\x45\121\x55\105\123\124\x5f\125\x52\x49"]);
update_option("\x6d\x6f\x5f\x73\x61\x6d\x6c\137\155\145\163\x73\141\x67\x65", "\131\x6f\x75\40\150\141\166\x65\x20\x73\x75\143\x63\x65\163\163\146\165\x6c\154\171\x20\165\x70\x67\x72\x61\x64\x65\144\x20\171\157\165\x72\40\154\151\x63\145\x6e\x73\145\56");
$this->mo_saml_show_success_message();
X8:
Ut:
kF:
goto RD;
Sq:
if (decryptSamlElement()) {
goto Ro;
}
$Az = postResponse();
$uh = new Customersaml();
$YY = json_decode($uh->mo_saml_vl($Az, false), true);
if (strcasecmp($YY["\163\x74\141\164\x75\163"], "\123\125\x43\103\x45\123\x53") == 0) {
goto LM;
}
if (strcasecmp($YY["\x73\x74\x61\x74\x75\163"], "\x46\x41\x49\x4c\x45\x44") == 0) {
goto lw;
}
update_option("\155\157\137\x73\141\155\154\x5f\155\145\x73\163\x61\x67\x65", "\101\x6e\40\145\162\162\157\162\x20\157\143\143\x75\162\145\144\x20\167\x68\151\154\x65\x20\160\162\x6f\143\x65\x73\x73\151\156\147\x20\171\x6f\x75\x72\40\x72\145\161\165\145\163\164\56\x20\120\x6c\x65\x61\x73\145\40\x54\x72\171\x20\x61\147\141\x69\156\x2e");
$this->mo_saml_show_error_message();
goto ob;
lw:
update_option("\x6d\x6f\x5f\x73\141\155\154\x5f\x6d\x65\x73\163\141\147\x65", "\124\150\x65\x72\x65\40\167\141\x73\x20\141\156\x20\x65\x72\162\x6f\162\x20\x61\x63\164\x69\166\141\164\x69\x6e\x67\40\171\157\165\162\40\124\122\x49\101\114\x20\166\x65\162\163\x69\157\156\56\40\x50\x6c\x65\141\x73\145\40\x63\x6f\x6e\x74\x61\x63\x74\40\151\156\146\x6f\100\x6d\151\156\x69\157\162\x61\x6e\x67\x65\x2e\143\157\x6d\x20\x66\x6f\x72\x20\147\145\164\x74\151\156\x67\x20\x6e\x65\x77\40\154\151\x63\145\156\163\145\40\146\x6f\x72\40\x74\x72\151\141\154\x20\x76\x65\x72\163\x69\157\x6e\x2e");
$this->mo_saml_show_error_message();
ob:
goto nt;
LM:
$nz = get_option("\x6d\x6f\137\163\141\x6d\x6c\x5f\143\x75\163\x74\x6f\x6d\x65\162\x5f\x74\157\x6b\x65\x6e");
$nz = get_option("\155\157\x5f\163\141\x6d\x6c\x5f\143\x75\163\164\157\155\145\162\x5f\x74\x6f\x6b\x65\x6e");
update_option("\164\137\x73\151\164\145\137\163\164\141\164\x75\x73", AESEncryption::encrypt_data("\164\162\165\x65", $nz));
update_option("\155\157\137\163\x61\155\x6c\x5f\155\x65\163\163\x61\147\x65", "\131\x6f\165\x72\x20\x35\40\x64\141\171\x73\40\x54\122\x49\101\x4c\40\151\163\40\141\x63\x74\151\166\x61\x74\x65\144\x2e\40\131\x6f\165\x20\x63\x61\156\40\156\157\x77\x20\x73\145\x74\x75\x70\40\x74\150\x65\40\x70\x6c\165\147\x69\x6e\x2e");
$this->mo_saml_show_success_message();
nt:
goto Rs;
Ro:
update_option("\155\x6f\137\163\x61\x6d\x6c\x5f\155\x65\x73\x73\x61\147\x65", "\124\150\x65\x72\145\x20\x77\141\x73\40\141\156\x20\x65\x72\162\x6f\162\40\141\x63\x74\x69\166\141\x74\151\156\147\x20\x79\157\165\x72\x20\124\122\111\101\x4c\x20\166\145\162\163\x69\157\156\x2e\40\105\151\x74\x68\x65\162\40\x79\157\x75\x72\x20\164\x72\151\x61\x6c\40\160\x65\x72\x69\x6f\144\40\x69\163\x20\145\170\x70\151\x72\x65\144\x20\x6f\162\40\x79\157\x75\40\x61\x72\x65\x20\x75\x73\x69\156\147\x20\167\x72\157\x6e\x67\x20\x74\x72\x69\x61\154\x20\166\145\162\163\x69\157\x6e\56\x20\120\154\145\141\163\x65\40\143\x6f\156\164\x61\143\164\40\x69\x6e\x66\157\x40\x6d\x69\x6e\x69\x6f\162\x61\x6e\147\145\x2e\143\157\x6d\x20\146\x6f\162\40\147\145\164\164\x69\x6e\x67\x20\x6e\145\167\40\x6c\x69\x63\145\x6e\x73\x65\40\x66\x6f\162\40\x74\162\x69\x61\154\x20\166\x65\162\x73\x69\157\156\x2e");
$this->mo_saml_show_error_message();
Rs:
RD:
goto r2;
sK:
if (!$this->mo_saml_check_empty_or_null($_POST["\163\141\x6d\x6c\x5f\154\x69\143\x65\x6e\x63\x65\x5f\x6b\145\171"])) {
goto aF;
}
update_option("\x6d\157\x5f\163\141\x6d\154\x5f\155\145\x73\x73\141\147\x65", "\x41\x6c\x6c\40\164\150\x65\40\x66\x69\x65\154\x64\163\40\141\x72\145\40\162\x65\x71\165\151\x72\145\x64\56\x20\120\154\145\141\163\145\x20\x65\x6e\x74\x65\x72\40\x76\141\154\151\144\x20\154\151\x63\145\x6e\163\145\x20\153\145\x79\56");
$this->mo_saml_show_error_message();
return;
aF:
$Az = trim($_POST["\x73\141\x6d\154\137\x6c\x69\x63\x65\156\143\145\137\x6b\x65\x79"]);
$uh = new Customersaml();
$YY = json_decode($uh->check_customer_ln(), true);
if (strcasecmp($YY["\x73\x74\x61\164\x75\x73"], "\123\x55\x43\x43\x45\x53\x53") == 0) {
goto sw;
}
$nz = get_option("\155\157\x5f\163\x61\155\154\x5f\143\x75\x73\164\x6f\x6d\x65\x72\x5f\x74\157\x6b\x65\156");
update_option("\x73\x69\164\x65\137\x63\x6b\137\x6c", AESEncryption::encrypt_data("\146\x61\x6c\163\x65", $nz));
$wy = add_query_arg(array("\164\x61\x62" => "\x6c\151\143\145\156\x73\151\x6e\x67"), $_SERVER["\122\105\121\125\105\x53\x54\x5f\x55\122\111"]);
update_option("\x6d\x6f\137\x73\141\155\x6c\x5f\x6d\x65\x73\163\141\147\145", "\x59\x6f\x75\40\x68\x61\166\145\x20\x6e\x6f\x74\x20\165\160\147\162\141\x64\145\x64\x20\171\145\x74\56\x20" . addLink("\x43\154\151\143\x6b\40\x68\145\x72\145", $wy) . "\40\x74\157\x20\x75\x70\x67\x72\x61\x64\145\x20\x74\157\x20\160\x72\x65\155\x69\x75\x6d\40\166\145\162\x73\x69\157\x6e\x2e");
$this->mo_saml_show_error_message();
goto O_;
sw:
$YY = json_decode($uh->mo_saml_vl($Az, false), true);
update_option("\166\x6c\137\143\x68\x65\x63\x6b\137\x74", time());
if (strcasecmp($YY["\163\164\x61\164\x75\163"], "\123\x55\x43\x43\x45\123\x53") == 0) {
goto cT;
}
if (strcasecmp($YY["\x73\x74\141\x74\x75\163"], "\106\x41\111\x4c\x45\104") == 0) {
goto Uc;
}
update_option("\x6d\x6f\x5f\163\141\155\154\137\155\145\x73\x73\x61\x67\145", "\x41\156\40\x65\162\162\x6f\x72\40\x6f\x63\143\165\162\x65\144\40\167\150\151\x6c\x65\40\x70\162\157\143\x65\x73\x73\151\156\147\x20\x79\x6f\x75\162\x20\x72\x65\161\165\145\163\164\x2e\x20\x50\154\x65\x61\163\x65\40\124\x72\x79\x20\141\x67\141\x69\x6e\56");
$this->mo_saml_show_error_message();
goto TD;
Uc:
if (strcasecmp($YY["\x6d\145\x73\163\141\147\145"], "\x43\x6f\144\x65\40\x68\x61\163\x20\105\x78\x70\151\162\x65\x64") == 0) {
goto gT;
}
update_option("\x6d\x6f\x5f\163\x61\x6d\154\137\x6d\x65\x73\x73\141\147\x65", "\131\x6f\x75\40\150\x61\x76\x65\40\145\156\164\x65\162\145\x64\x20\x61\156\x20\x69\156\x76\x61\154\x69\144\40\154\x69\x63\145\156\163\x65\x20\x6b\x65\x79\56\x20\120\x6c\145\141\x73\x65\40\x65\x6e\x74\x65\x72\x20\x61\40\166\141\154\151\x64\40\154\x69\x63\x65\156\x73\145\40\153\x65\x79\x2e");
goto Db;
gT:
$wy = add_query_arg(array("\x74\141\x62" => "\154\151\x63\x65\156\163\x69\156\147"), $_SERVER["\122\105\x51\x55\x45\x53\124\137\125\122\111"]);
update_option("\x6d\157\137\163\x61\155\154\x5f\155\145\163\163\141\x67\x65", "\x4c\x69\x63\145\156\x73\x65\x20\x6b\145\171\x20\x79\157\x75\x20\150\x61\166\145\40\145\156\164\x65\x72\x65\x64\40\150\141\x73\40\141\x6c\x72\x65\141\x64\171\x20\142\x65\145\x6e\x20\x75\x73\145\x64\x2e\x20\x50\x6c\x65\141\163\x65\x20\145\x6e\164\145\162\x20\x61\x20\153\x65\x79\40\167\x68\x69\x63\150\40\x68\141\163\40\x6e\x6f\x74\x20\142\x65\x65\156\x20\165\x73\x65\x64\40\142\x65\x66\157\162\x65\40\x6f\156\40\x61\156\171\x20\x6f\164\x68\x65\x72\x20\151\156\163\x74\141\156\x63\145\40\157\x72\x20\151\x66\40\171\157\x75\x20\150\141\x76\x65\x20\x65\x78\x61\x75\x73\164\145\x64\x20\141\x6c\x6c\x20\171\x6f\165\x72\x20\153\145\x79\163\40\x74\150\x65\156\x20" . addLink("\103\x6c\151\143\x6b\x20\150\145\x72\145", $wy) . "\x20\164\x6f\40\142\x75\171\x20\x6d\x6f\162\x65\56");
Db:
$this->mo_saml_show_error_message();
TD:
goto sQ;
cT:
$nz = get_option("\155\157\x5f\163\141\x6d\x6c\137\143\x75\x73\x74\x6f\155\145\x72\137\x74\x6f\153\145\156");
update_option("\163\155\x6c\x5f\x6c\153", AESEncryption::encrypt_data($Az, $nz));
$bW = "\131\157\x75\x72\x20\154\151\x63\x65\x6e\163\x65\40\x69\163\40\x76\x65\162\151\x66\151\x65\144\56\x20\131\x6f\x75\40\143\x61\156\40\156\157\167\x20\163\x65\164\165\160\x20\164\x68\x65\40\x70\154\165\x67\x69\x6e\x2e";
update_option("\x6d\157\137\x73\x61\x6d\154\x5f\155\145\x73\x73\141\147\x65", $bW);
$nz = get_option("\155\157\137\x73\x61\155\154\x5f\x63\165\x73\164\x6f\155\145\162\137\164\x6f\153\145\156");
update_option("\x73\151\x74\x65\137\x63\x6b\x5f\x6c", AESEncryption::encrypt_data("\x74\162\165\x65", $nz));
update_option("\x74\137\x73\x69\x74\x65\x5f\x73\x74\141\x74\x75\163", AESEncryption::encrypt_data("\x66\141\154\163\x65", $nz));
$kt = plugin_dir_path(__FILE__);
$X2 = home_url();
$X2 = trim($X2, "\x2f");
if (preg_match("\43\x5e\x68\x74\164\x70\50\x73\51\x3f\72\x2f\x2f\43", $X2)) {
goto Fr;
}
$X2 = "\150\x74\x74\x70\72\x2f\x2f" . $X2;
Fr:
$Ab = parse_url($X2);
$D3 = preg_replace("\57\x5e\167\x77\167\134\x2e\57", '', $Ab["\x68\157\x73\x74"]);
$i0 = wp_upload_dir();
$gJ = $D3 . "\x2d" . $i0["\x62\x61\163\145\144\x69\162"];
$xr = hash_hmac("\163\150\x61\x32\x35\x36", $gJ, "\64\104\x48\146\x6a\147\x66\152\141\x73\156\144\x66\x73\141\x6a\146\x48\107\112");
$y0 = $this->djkasjdksa();
$dz = round(strlen($y0) / rand(2, 20));
$y0 = substr_replace($y0, $xr, $dz, 0);
$KW = base64_decode($y0);
if (is_writable($kt . "\154\151\x63\x65\156\163\x65")) {
goto a0;
}
$y0 = str_rot13($y0);
$ue = base64_decode("\x62\107\116\x6b\141\155\x74\150\x63\x32\x70\x6b\x61\63\x4e\x68\131\x32\167\75");
update_option($ue, $y0);
goto dk;
a0:
file_put_contents($kt . "\154\151\143\x65\156\x73\x65", $KW);
dk:
update_option("\x6c\143\x77\x72\164\154\146\163\141\155\x6c", true);
$wy = add_query_arg(array("\164\141\x62" => "\x67\x65\x6e\x65\162\141\x6c"), $_SERVER["\x52\x45\121\125\x45\x53\124\x5f\x55\122\x49"]);
$this->mo_saml_show_success_message();
sQ:
O_:
r2:
goto AL;
xd:
if (mo_saml_is_curl_installed()) {
goto cD;
}
update_option("\155\157\137\163\x61\155\x6c\137\155\145\x73\163\x61\147\x65", "\105\x52\122\117\122\72\40\120\110\120\40\143\125\122\114\40\145\x78\164\145\156\x73\151\157\156\x20\x69\163\x20\156\x6f\x74\40\x69\x6e\163\164\x61\x6c\154\145\x64\40\x6f\x72\x20\x64\x69\x73\141\x62\154\145\144\56\40\x52\145\x73\145\156\x64\x20\117\124\120\x20\146\141\x69\154\145\144\56");
$this->mo_saml_show_error_message();
return;
cD:
$Mb = get_option("\x6d\157\137\x73\x61\x6d\154\137\x61\x64\155\151\x6e\137\145\155\x61\151\154");
$uh = new Customersaml();
$YY = json_decode($uh->mo_saml_forgot_password($Mb), true);
if (strcasecmp($YY["\163\x74\x61\164\165\x73"], "\x53\x55\x43\x43\x45\x53\123") == 0) {
goto a6;
}
update_option("\x6d\x6f\137\x73\141\x6d\x6c\x5f\x6d\x65\x73\x73\141\147\145", "\x41\x6e\40\x65\x72\162\x6f\162\x20\x6f\x63\x63\x75\x72\145\x64\x20\x77\150\x69\x6c\145\x20\x70\162\157\x63\x65\163\x73\x69\156\x67\x20\x79\157\x75\x72\x20\x72\x65\161\165\x65\x73\164\x2e\x20\120\x6c\145\x61\163\145\x20\124\162\x79\40\x61\147\141\151\156\56");
$this->mo_saml_show_error_message();
goto Co;
a6:
update_option("\155\x6f\137\163\141\x6d\154\137\155\145\x73\x73\141\147\x65", "\131\157\x75\162\x20\x70\141\163\x73\167\157\x72\144\40\x68\141\163\40\x62\x65\x65\x6e\40\162\x65\163\145\164\x20\163\165\143\143\x65\163\163\146\x75\x6c\154\x79\56\40\120\154\145\141\x73\x65\x20\145\x6e\164\x65\x72\40\x74\x68\x65\x20\156\x65\167\40\x70\x61\x73\x73\x77\157\x72\x64\x20\x73\x65\156\x74\x20\164\157\x20" . $Mb . "\56");
$this->mo_saml_show_success_message();
Co:
AL:
goto Le;
u8:
update_option("\x6d\x6f\x5f\x70\162\157\170\x79\137\x68\x6f\163\x74", $_POST["\155\157\137\160\x72\157\170\x79\x5f\x68\x6f\x73\164"]);
update_option("\x6d\x6f\137\160\x72\157\x78\171\137\160\157\162\164", $_POST["\155\x6f\137\160\162\x6f\170\x79\x5f\x70\x6f\162\164"]);
update_option("\155\157\x5f\x70\162\157\x78\x79\137\165\163\x65\162\x6e\141\155\x65", $_POST["\x6d\x6f\137\160\162\157\170\171\x5f\x75\163\x65\162\156\x61\x6d\x65"]);
update_option("\x6d\x6f\x5f\160\162\x6f\x78\x79\x5f\x70\x61\163\x73\167\157\x72\x64", $_POST["\x6d\x6f\x5f\x70\x72\157\170\x79\137\x70\x61\x73\163\x77\x6f\162\144"]);
update_option("\x6d\x6f\x5f\163\x61\155\154\x5f\155\x65\x73\163\x61\147\145", "\x50\162\x6f\170\x79\40\x73\x65\164\164\151\x6e\147\x73\40\163\x61\166\x65\x64\40\163\165\x63\x63\x65\163\x73\x66\165\154\x6c\171");
$this->mo_saml_show_success_message();
Le:
goto Ej;
sL:
$Ck = "\x66\141\x6c\163\145";
if (array_key_exists("\155\157\137\x73\141\x6d\x6c\137\x61\x6c\x6c\157\x77\137\167\x70\x5f\x73\151\147\156\151\156", $_POST)) {
goto OC;
}
$FZ = "\x66\x61\154\163\x65";
goto pa;
OC:
$FZ = $_POST["\155\x6f\137\163\141\x6d\154\137\x61\x6c\154\157\167\x5f\x77\160\137\x73\151\x67\x6e\151\x6e"];
pa:
if ($FZ == "\x74\x72\x75\145") {
goto co;
}
update_option("\x6d\157\x5f\x73\x61\155\154\x5f\141\x6c\x6c\157\x77\137\x77\160\137\x73\151\147\156\x69\156", '');
goto ro;
co:
update_option("\x6d\x6f\x5f\x73\141\x6d\x6c\137\141\154\x6c\x6f\167\137\x77\160\137\x73\151\147\x6e\x69\156", "\164\162\x75\145");
if (!array_key_exists("\155\x6f\x5f\x73\141\x6d\154\137\142\x61\143\x6b\x64\x6f\x6f\x72\137\x75\162\x6c", $_POST)) {
goto Oi;
}
$Ck = $_POST["\155\x6f\x5f\163\141\155\x6c\137\142\x61\143\153\144\x6f\157\x72\137\165\x72\x6c"];
Oi:
ro:
update_option("\x6d\x6f\137\x73\x61\155\154\x5f\142\141\143\153\x64\x6f\x6f\x72\x5f\165\162\154", $Ck);
update_option("\155\x6f\137\x73\x61\x6d\154\137\x6d\145\163\x73\141\x67\145", "\x53\x69\x67\x6e\x20\111\x6e\x20\163\x65\164\x74\x69\x6e\x67\163\x20\x75\x70\x64\141\x74\145\144\x2e");
$this->mo_saml_show_success_message();
Ej:
goto zE;
s0:
if (array_key_exists("\x6d\157\137\163\x61\155\x6c\x5f\x65\156\x61\142\x6c\x65\137\143\x6c\157\165\x64\x5f\x62\x72\157\x6b\x65\162", $_POST)) {
goto Ox;
}
$MH = "\x66\x61\x6c\x73\x65";
goto gh;
Ox:
$MH = $_POST["\x6d\x6f\x5f\163\141\155\x6c\137\145\x6e\x61\142\x6c\x65\x5f\x63\154\x6f\x75\x64\x5f\142\x72\x6f\153\145\x72"];
gh:
if ($MH == "\164\162\x75\145") {
goto Cg;
}
update_option("\x6d\157\x5f\163\x61\x6d\154\x5f\x65\156\x61\142\x6c\x65\137\x63\x6c\x6f\165\144\x5f\142\162\x6f\153\145\162", "\x66\x61\154\163\x65");
goto Xk;
Cg:
update_option("\x6d\x6f\137\163\x61\x6d\154\137\145\156\141\x62\x6c\x65\x5f\x63\x6c\x6f\x75\x64\137\x62\162\157\153\x65\x72", "\164\162\x75\145");
Xk:
update_option("\155\x6f\137\x73\x61\155\x6c\137\155\145\163\163\x61\x67\x65", "\x53\x69\x67\x6e\40\151\156\x20\x6f\160\164\151\x6f\x6e\163\x20\165\x70\x64\141\x74\x65\144\56");
$this->mo_saml_show_success_message();
zE:
goto Bq;
Vl:
if (mo_saml_is_sp_configured()) {
goto Na;
}
update_option("\155\x6f\x5f\163\141\155\154\x5f\x6d\145\163\163\x61\x67\145", "\120\154\x65\x61\163\145\40\143\x6f\155\160\x6c\x65\164\x65\x20" . addLink("\x53\x65\x72\x76\x69\143\145\x20\x50\x72\x6f\x76\151\144\x65\x72", add_query_arg(array("\x74\x61\142" => "\163\x61\166\145"), $_SERVER["\x52\x45\x51\125\x45\x53\124\137\125\x52\x49"])) . "\40\143\157\156\146\x69\147\165\x72\141\164\151\157\x6e\40\146\x69\x72\163\164\x2e");
$this->mo_saml_show_error_message();
goto yL;
Na:
if (array_key_exists("\155\157\x5f\163\141\155\154\x5f\145\156\141\142\154\x65\x5f\x6c\x6f\x67\x69\156\x5f\162\145\144\151\162\145\x63\x74", $_POST)) {
goto H1;
}
$MH = "\146\x61\x6c\x73\145";
goto rY;
H1:
$MH = $_POST["\x6d\157\x5f\163\x61\x6d\x6c\137\x65\156\141\142\x6c\x65\137\154\157\147\151\156\x5f\x72\145\144\151\x72\x65\x63\x74"];
rY:
if ($MH == "\x74\162\165\x65") {
goto Qh;
}
update_option("\x6d\157\x5f\x73\x61\155\x6c\137\x65\x6e\141\x62\154\145\x5f\154\157\x67\x69\156\137\x72\x65\x64\x69\162\x65\143\164", '');
update_option("\155\157\x5f\163\x61\x6d\154\x5f\x61\x6c\x6c\x6f\167\137\167\160\x5f\x73\151\147\x6e\x69\x6e", '');
goto WI;
Qh:
update_option("\x6d\157\137\x73\x61\x6d\154\137\145\x6e\141\142\x6c\145\137\x6c\x6f\147\151\x6e\x5f\162\x65\144\151\x72\x65\x63\164", "\x74\162\165\x65");
update_option("\155\157\x5f\x73\x61\x6d\x6c\137\141\154\154\x6f\167\137\x77\160\137\163\x69\x67\x6e\151\x6e", "\164\162\x75\x65");
WI:
update_option("\x6d\157\x5f\x73\x61\x6d\154\137\155\145\163\x73\141\x67\x65", "\123\x69\x67\x6e\40\x69\x6e\x20\x6f\x70\x74\151\157\x6e\163\40\x75\x70\x64\141\164\x65\144\x2e");
$this->mo_saml_show_success_message();
yL:
Bq:
goto CT;
Nl:
if (mo_saml_is_sp_configured()) {
goto RC;
}
update_option("\x6d\x6f\x5f\163\141\x6d\x6c\137\155\x65\163\x73\141\147\x65", "\120\x6c\x65\x61\163\145\40\143\x6f\155\x70\154\145\x74\x65\x20" . addLink("\x53\145\162\x76\151\143\x65\40\x50\x72\x6f\166\151\x64\x65\x72", add_query_arg(array("\164\x61\142" => "\163\x61\166\x65"), $_SERVER["\122\x45\121\125\105\123\124\x5f\125\122\x49"])) . "\40\x63\157\156\x66\151\x67\165\x72\141\x74\151\x6f\x6e\x20\146\151\162\163\x74\56");
$this->mo_saml_show_error_message();
goto kt;
RC:
if (array_key_exists("\155\157\137\163\141\x6d\x6c\137\x65\x6e\141\x62\154\145\x5f\162\163\163\x5f\141\x63\143\145\163\x73", $_POST)) {
goto ne;
}
$JT = false;
goto X3;
ne:
$JT = $_POST["\155\157\137\x73\141\155\154\137\145\x6e\x61\142\154\145\137\162\x73\163\137\x61\143\x63\145\x73\x73"];
X3:
if ($JT == "\164\x72\165\145") {
goto Ku;
}
update_option("\x6d\157\x5f\163\141\x6d\154\137\145\x6e\141\x62\x6c\145\x5f\x72\163\x73\137\141\143\143\x65\163\163", '');
goto yj;
Ku:
update_option("\x6d\157\137\x73\141\155\154\x5f\145\156\x61\142\154\145\137\x72\163\163\137\141\x63\143\x65\163\x73", "\164\x72\165\145");
yj:
update_option("\x6d\x6f\x5f\x73\141\x6d\154\x5f\x6d\145\163\x73\x61\x67\x65", "\x52\x53\x53\40\106\145\145\144\40\157\x70\x74\151\157\156\x20\165\x70\x64\x61\x74\x65\144\56");
$this->mo_saml_show_success_message();
kt:
CT:
goto kw;
PG:
if (mo_saml_is_sp_configured()) {
goto B5;
}
update_option("\x6d\157\x5f\163\x61\x6d\x6c\x5f\x6d\145\163\x73\x61\147\x65", "\120\x6c\x65\141\x73\145\40\x63\x6f\x6d\x70\154\x65\x74\x65\40" . addLink("\x53\x65\162\x76\151\143\145\x20\x50\162\157\x76\151\144\145\162", add_query_arg(array("\x74\141\x62" => "\163\x61\x76\145"), $_SERVER["\x52\x45\x51\125\105\x53\x54\137\125\122\x49"])) . "\40\x63\157\156\x66\x69\x67\165\162\x61\164\x69\157\x6e\40\x66\x69\162\163\x74\x2e");
$this->mo_saml_show_error_message();
goto Bp;
B5:
if (array_key_exists("\x6d\x6f\137\163\x61\x6d\x6c\x5f\146\x6f\162\143\145\137\141\165\164\x68\x65\x6e\x74\x69\x63\x61\164\x69\x6f\156", $_POST)) {
goto yY;
}
$MH = "\x66\141\154\163\145";
goto Eq;
yY:
$MH = $_POST["\x6d\x6f\x5f\x73\x61\x6d\154\137\x66\157\162\x63\145\x5f\141\165\x74\x68\145\156\164\151\x63\141\x74\151\x6f\156"];
Eq:
if ($MH == "\164\x72\165\145") {
goto ng;
}
update_option("\155\x6f\137\x73\x61\x6d\x6c\x5f\146\x6f\x72\x63\145\x5f\141\x75\164\x68\x65\156\x74\151\143\x61\x74\x69\x6f\x6e", '');
goto tW;
ng:
update_option("\x6d\x6f\x5f\163\141\155\154\x5f\146\x6f\x72\x63\x65\x5f\x61\165\x74\x68\x65\156\x74\151\x63\x61\164\x69\x6f\156", "\164\162\x75\145");
tW:
update_option("\x6d\x6f\x5f\163\x61\x6d\154\137\x6d\x65\163\x73\141\x67\145", "\123\151\x67\x6e\x20\x69\156\40\x6f\160\164\151\x6f\x6e\163\x20\165\x70\144\x61\164\x65\144\x2e");
$this->mo_saml_show_success_message();
Bp:
kw:
goto uF;
Nb:
if (mo_saml_is_sp_configured()) {
goto ai;
}
update_option("\x6d\x6f\x5f\163\x61\x6d\154\137\x6d\145\x73\163\141\x67\x65", "\x50\x6c\145\x61\x73\145\x20\143\x6f\x6d\x70\x6c\x65\164\x65\40" . addLink("\123\x65\162\166\x69\143\145\x20\120\162\157\x76\151\x64\145\162", add_query_arg(array("\x74\x61\142" => "\x73\x61\x76\145"), $_SERVER["\x52\105\x51\x55\105\123\x54\137\x55\x52\x49"])) . "\40\143\157\156\x66\151\147\165\162\x61\x74\x69\x6f\156\x20\146\x69\162\163\164\x2e");
$this->mo_saml_show_error_message();
goto y8;
ai:
if (array_key_exists("\x6d\157\x5f\163\x61\155\154\137\162\145\x67\x69\163\x74\145\x72\x65\x64\x5f\157\156\x6c\x79\x5f\x61\143\143\x65\x73\163", $_POST)) {
goto Vy;
}
$MH = "\146\141\154\163\x65";
goto cv;
Vy:
$MH = $_POST["\x6d\x6f\x5f\x73\x61\x6d\154\137\162\x65\147\151\x73\164\x65\162\145\144\137\x6f\x6e\x6c\x79\137\141\x63\x63\145\163\x73"];
cv:
if ($MH == "\x74\162\165\145") {
goto iP;
}
update_option("\x6d\x6f\137\x73\141\x6d\154\137\162\145\147\151\163\164\145\x72\x65\144\137\157\x6e\x6c\x79\x5f\x61\143\143\x65\x73\163", '');
goto bV;
iP:
update_option("\x6d\x6f\x5f\163\x61\155\154\x5f\x72\x65\x67\x69\163\x74\145\x72\145\x64\137\x6f\156\x6c\x79\x5f\x61\x63\143\x65\163\163", "\164\162\x75\145");
bV:
update_option("\155\x6f\x5f\163\x61\x6d\154\137\155\x65\163\163\141\147\x65", "\123\x69\147\x6e\40\151\156\40\157\x70\x74\x69\x6f\156\x73\x20\x75\160\144\141\164\x65\x64\x2e");
$this->mo_saml_show_success_message();
y8:
uF:
goto Rd;
jm:
if (mo_saml_is_curl_installed()) {
goto fm;
}
update_option("\155\157\x5f\163\141\x6d\154\137\x6d\x65\x73\x73\141\x67\x65", "\105\x52\x52\117\x52\72\x20\x50\110\120\40\x63\125\122\114\40\x65\x78\x74\x65\156\163\151\x6f\x6e\x20\151\163\40\156\157\x74\x20\151\x6e\163\x74\x61\154\154\145\144\40\157\x72\40\x64\x69\x73\141\142\154\145\144\x2e\40\122\145\x73\145\156\144\40\x4f\124\x50\40\x66\x61\x69\x6c\x65\x64\x2e");
$this->mo_saml_show_error_message();
return;
fm:
$u4 = sanitize_text_field($_POST["\x70\x68\x6f\x6e\145"]);
$u4 = str_replace("\x20", '', $u4);
$u4 = str_replace("\x2d", '', $u4);
update_option("\155\x6f\x5f\163\x61\x6d\154\137\x61\144\155\x69\x6e\x5f\x70\x68\157\x6e\145", $u4);
$uh = new CustomerSaml();
$YY = json_decode($uh->send_otp_token('', $u4, FALSE, TRUE), true);
if (strcasecmp($YY["\163\x74\141\164\x75\x73"], "\123\x55\103\x43\105\x53\123") == 0) {
goto YF;
}
update_option("\x6d\x6f\x5f\x73\x61\x6d\154\137\155\145\163\x73\141\147\145", "\x54\x68\x65\162\x65\x20\x77\141\x73\40\141\156\40\x65\x72\162\157\x72\x20\151\156\x20\163\145\156\x64\151\x6e\147\40\123\x4d\123\x2e\40\120\154\145\141\x73\145\x20\143\x6c\x69\x63\x6b\x20\x6f\156\x20\x52\x65\x73\x65\x6e\x64\40\x4f\124\x50\40\164\157\x20\x74\x72\171\40\x61\147\141\x69\156\56");
update_option("\x6d\157\x5f\x73\141\x6d\154\137\x72\145\147\151\x73\x74\162\x61\164\x69\157\x6e\137\x73\x74\x61\x74\x75\163", "\x4d\117\137\117\x54\x50\x5f\x44\105\x4c\111\x56\x45\x52\x45\104\x5f\x46\x41\x49\x4c\125\x52\105\137\x50\110\117\116\105");
$this->mo_saml_show_error_message();
goto CL;
YF:
update_option("\x6d\157\x5f\x73\x61\x6d\154\137\155\145\x73\x73\141\147\145", "\40\x41\40\x6f\x6e\145\x20\164\151\x6d\x65\x20\x70\141\x73\163\143\157\144\145\40\151\x73\x20\163\145\x6e\164\x20\x74\157\40" . get_option("\155\157\x5f\163\141\x6d\154\x5f\x61\x64\155\x69\x6e\137\x70\x68\157\x6e\145") . "\x2e\40\120\x6c\x65\x61\163\x65\40\x65\156\x74\x65\162\x20\164\150\145\40\157\164\x70\40\150\x65\162\145\x20\x74\157\x20\166\145\162\x69\x66\x79\40\x79\157\165\162\x20\145\x6d\141\151\x6c\56");
update_option("\155\x6f\137\x73\141\x6d\154\137\x74\x72\141\x6e\x73\141\x63\x74\151\x6f\156\111\x64", $YY["\x74\x78\111\144"]);
update_option("\155\x6f\137\x73\x61\155\154\x5f\162\x65\x67\151\x73\x74\x72\x61\164\151\x6f\x6e\137\163\x74\x61\x74\x75\x73", "\x4d\x4f\137\117\124\x50\137\x44\x45\114\x49\x56\x45\x52\105\104\x5f\123\x55\103\103\x45\123\123\x5f\x50\x48\x4f\116\x45");
$this->mo_saml_show_success_message();
CL:
Rd:
goto uM;
Pw:
update_option("\155\157\x5f\163\141\155\154\137\162\x65\x67\151\163\x74\x72\141\164\x69\x6f\x6e\x5f\x73\164\141\164\x75\163", '');
update_option("\155\x6f\x5f\163\x61\x6d\x6c\x5f\x76\x65\x72\x69\x66\x79\x5f\x63\x75\x73\x74\x6f\155\145\x72", '');
delete_option("\155\x6f\x5f\163\141\x6d\x6c\x5f\156\x65\x77\137\x72\x65\x67\151\x73\x74\162\141\x74\x69\157\156");
delete_option("\x6d\x6f\137\163\141\155\154\x5f\141\x64\155\x69\x6e\137\145\155\141\x69\x6c");
delete_option("\155\x6f\137\163\141\x6d\154\137\x61\x64\x6d\151\156\x5f\x70\150\157\156\145");
delete_site_option("\163\155\154\x5f\154\153");
delete_site_option("\x74\x5f\x73\x69\164\145\x5f\x73\x74\141\x74\x75\163");
delete_site_option("\163\x69\164\x65\137\x63\153\x5f\154");
uM:
goto Ht;
ku:
if (mo_saml_is_curl_installed()) {
goto lA;
}
update_option("\x6d\x6f\x5f\163\141\x6d\154\137\x6d\x65\x73\x73\x61\x67\x65", "\x45\x52\x52\x4f\122\x3a\40\x50\x48\x50\x20\x63\125\x52\x4c\x20\145\170\164\145\156\163\151\157\156\40\151\x73\40\156\x6f\x74\40\x69\156\163\164\x61\x6c\x6c\145\x64\40\157\x72\x20\144\151\x73\x61\x62\154\x65\x64\56\x20\x52\x65\x73\x65\156\x64\40\x4f\124\x50\x20\146\141\x69\x6c\x65\144\56");
$this->mo_saml_show_error_message();
return;
lA:
$u4 = get_option("\155\x6f\x5f\163\x61\x6d\x6c\x5f\x61\144\155\151\x6e\137\x70\x68\157\156\x65");
$uh = new CustomerSaml();
$YY = json_decode($uh->send_otp_token('', $u4, FALSE, TRUE), true);
if (strcasecmp($YY["\163\x74\x61\x74\165\x73"], "\123\125\103\x43\105\x53\123") == 0) {
goto cN;
}
update_option("\x6d\x6f\x5f\163\x61\x6d\154\137\x6d\145\x73\163\x61\147\x65", "\x54\150\x65\162\145\40\167\x61\163\x20\141\x6e\x20\145\162\x72\x6f\162\x20\151\x6e\x20\163\145\x6e\x64\151\x6e\x67\x20\145\155\x61\x69\x6c\56\40\x50\154\x65\141\x73\145\40\x63\x6c\151\x63\x6b\40\157\x6e\x20\122\145\x73\x65\x6e\144\x20\117\x54\120\40\x74\157\x20\x74\162\x79\40\x61\147\141\151\156\56");
update_option("\155\157\x5f\163\141\x6d\x6c\x5f\x72\x65\x67\151\x73\x74\162\x61\164\151\x6f\156\x5f\x73\164\x61\x74\x75\163", "\x4d\x4f\x5f\117\x54\120\137\104\105\x4c\x49\x56\x45\122\x45\104\137\x46\x41\x49\114\x55\122\105\x5f\120\110\x4f\x4e\x45");
$this->mo_saml_show_error_message();
goto V7;
cN:
update_option("\155\x6f\x5f\163\x61\x6d\154\137\155\145\x73\x73\x61\x67\145", "\40\101\x20\157\156\x65\40\164\x69\x6d\x65\40\x70\141\163\x73\x63\x6f\x64\x65\x20\x69\163\40\x73\x65\156\164\40\x74\157\40" . $u4 . "\x20\x61\147\141\151\156\x2e\x20\x50\x6c\145\x61\x73\145\x20\143\x68\x65\x63\153\x20\x69\146\40\171\157\x75\x20\147\x6f\164\x20\x74\150\x65\40\x6f\164\160\x20\141\x6e\144\x20\145\x6e\x74\145\162\40\151\x74\x20\x68\x65\162\145\x2e");
update_option("\155\x6f\x5f\163\141\155\x6c\x5f\x74\162\141\156\163\x61\x63\x74\151\x6f\x6e\111\144", $YY["\x74\x78\111\144"]);
update_option("\x6d\157\x5f\x73\x61\x6d\154\137\162\145\147\151\x73\164\162\x61\164\x69\x6f\x6e\137\163\x74\141\164\165\x73", "\115\117\137\117\124\x50\137\104\105\x4c\111\x56\x45\x52\105\104\137\x53\125\x43\x43\105\123\x53\137\x50\x48\117\116\x45");
$this->mo_saml_show_success_message();
V7:
Ht:
goto pm;
Nc:
if (mo_saml_is_curl_installed()) {
goto US;
}
update_option("\155\157\x5f\x73\x61\x6d\154\x5f\155\x65\x73\163\141\147\x65", "\105\122\x52\x4f\122\72\40\120\x48\120\x20\x63\x55\x52\114\x20\x65\170\x74\145\156\163\151\157\x6e\x20\x69\163\40\156\x6f\164\x20\x69\x6e\x73\164\x61\x6c\x6c\145\144\40\x6f\x72\x20\144\151\x73\x61\142\154\x65\x64\56\40\x52\145\x73\145\x6e\144\40\117\124\x50\40\146\141\x69\154\145\144\56");
$this->mo_saml_show_error_message();
return;
US:
$Mb = get_option("\x6d\x6f\137\163\x61\x6d\154\x5f\x61\144\x6d\x69\x6e\x5f\x65\155\141\x69\x6c");
$uh = new CustomerSaml();
$YY = json_decode($uh->send_otp_token($Mb, ''), true);
if (strcasecmp($YY["\x73\x74\141\164\165\x73"], "\123\125\x43\103\x45\123\x53") == 0) {
goto kj;
}
update_option("\155\x6f\x5f\163\141\155\154\137\x6d\145\163\163\141\147\145", "\x54\x68\x65\x72\x65\40\x77\141\163\40\x61\156\x20\145\x72\162\x6f\162\x20\x69\156\40\x73\x65\156\144\151\x6e\x67\40\145\x6d\x61\x69\x6c\56\x20\120\154\x65\x61\163\x65\x20\143\x6c\151\143\153\40\157\156\x20\122\145\x73\145\x6e\144\x20\117\124\x50\40\164\x6f\40\x74\162\171\40\141\147\x61\151\x6e\56");
update_option("\155\x6f\x5f\163\141\155\x6c\137\x72\145\147\x69\163\164\x72\x61\164\151\157\156\137\163\x74\141\x74\x75\163", "\x4d\x4f\x5f\117\x54\120\x5f\x44\105\114\111\126\x45\122\x45\104\x5f\106\101\x49\x4c\125\x52\105\137\x45\115\101\111\x4c");
$this->mo_saml_show_error_message();
goto rX;
kj:
update_option("\x6d\157\x5f\163\141\x6d\154\x5f\x6d\145\163\163\x61\147\145", "\40\101\x20\157\156\x65\x20\164\151\155\x65\40\x70\141\x73\163\143\157\144\145\40\151\x73\x20\x73\145\156\164\x20\164\157\x20" . get_option("\x6d\x6f\137\x73\141\x6d\x6c\137\x61\x64\x6d\151\x6e\137\145\155\x61\x69\154") . "\x20\141\x67\x61\x69\x6e\56\40\x50\x6c\x65\141\x73\145\x20\143\x68\x65\x63\x6b\x20\x69\x66\40\171\x6f\x75\40\147\157\x74\x20\x74\x68\x65\x20\x6f\164\x70\40\141\156\x64\40\x65\x6e\164\145\x72\40\151\164\x20\x68\x65\x72\145\x2e");
update_option("\x6d\157\x5f\163\x61\x6d\154\137\x74\162\141\x6e\163\x61\x63\164\151\157\x6e\x49\x64", $YY["\164\170\111\x64"]);
update_option("\155\157\137\x73\141\155\x6c\137\162\145\147\151\163\164\162\141\164\x69\x6f\156\x5f\x73\x74\141\x74\x75\163", "\x4d\117\137\x4f\124\120\137\104\x45\114\111\x56\105\x52\x45\x44\137\123\x55\103\103\x45\x53\x53\137\105\x4d\101\111\114");
$this->mo_saml_show_success_message();
rX:
pm:
goto uq;
ew:
if (mo_saml_is_curl_installed()) {
goto tD;
}
update_option("\x6d\x6f\137\x73\141\155\154\137\155\x65\163\x73\141\147\x65", "\x45\122\122\x4f\x52\x3a\x20\x50\110\x50\40\143\125\x52\114\x20\145\170\164\145\156\163\151\157\x6e\40\x69\x73\x20\156\157\164\x20\151\156\163\x74\x61\x6c\154\x65\x64\x20\157\162\x20\144\151\163\x61\x62\x6c\145\144\56\40\121\165\x65\162\x79\40\x73\165\x62\155\151\164\40\146\141\x69\x6c\145\144\56");
$this->mo_saml_show_error_message();
return;
tD:
$Mb = $_POST["\155\157\137\x73\x61\x6d\x6c\x5f\143\157\x6e\x74\141\x63\164\137\x75\x73\137\x65\155\141\151\x6c"];
$u4 = $_POST["\155\x6f\x5f\x73\141\155\x6c\137\143\157\x6e\164\141\143\164\x5f\x75\163\137\x70\150\157\x6e\145"];
$R7 = $_POST["\x6d\x6f\x5f\163\141\x6d\154\137\x63\157\x6e\x74\141\143\x74\x5f\x75\163\x5f\x71\165\x65\x72\x79"];
$uh = new CustomerSaml();
if ($this->mo_saml_check_empty_or_null($Mb) || $this->mo_saml_check_empty_or_null($R7)) {
goto x6;
}
$UR = $uh->submit_contact_us($Mb, $u4, $R7);
if ($UR == false) {
goto Kd;
}
update_option("\155\x6f\137\163\x61\x6d\154\137\155\145\163\x73\x61\x67\x65", "\124\x68\x61\156\x6b\163\40\146\x6f\x72\x20\147\x65\164\164\151\x6e\147\x20\151\x6e\40\x74\157\165\143\150\x21\x20\x57\x65\x20\163\150\x61\154\154\40\147\x65\164\40\x62\x61\143\x6b\40\164\x6f\x20\x79\157\x75\40\163\x68\x6f\162\164\154\171\56");
$this->mo_saml_show_success_message();
goto vw;
Kd:
update_option("\x6d\x6f\137\163\141\x6d\154\137\x6d\x65\x73\163\141\x67\145", "\x59\x6f\x75\162\40\161\x75\x65\x72\x79\40\x63\157\x75\154\144\40\x6e\157\x74\x20\x62\x65\40\x73\165\142\x6d\x69\x74\164\x65\144\x2e\40\x50\154\x65\141\x73\x65\40\164\162\171\x20\141\147\x61\x69\x6e\56");
$this->mo_saml_show_error_message();
vw:
goto xB;
x6:
update_option("\155\x6f\x5f\163\x61\155\154\137\155\145\163\163\x61\147\145", "\120\x6c\x65\141\x73\x65\x20\x66\x69\154\x6c\40\165\x70\x20\105\x6d\141\x69\154\x20\x61\156\x64\x20\x51\165\145\x72\x79\x20\x66\151\145\154\x64\x73\40\164\157\x20\x73\x75\x62\155\x69\164\40\171\157\165\162\40\x71\165\x65\x72\171\56");
$this->mo_saml_show_error_message();
xB:
uq:
goto Ez;
Lf:
if (mo_saml_is_curl_installed()) {
goto NG;
}
update_option("\x6d\157\137\x73\141\155\154\x5f\x6d\145\x73\x73\141\147\x65", "\x45\122\x52\x4f\122\72\x20\120\x48\x50\x20\x63\x55\x52\114\40\145\170\164\145\156\x73\151\157\156\x20\151\x73\40\x6e\x6f\164\40\151\x6e\x73\x74\x61\154\154\145\144\40\157\162\x20\x64\151\x73\x61\142\x6c\145\x64\x2e\40\x4c\x6f\147\x69\x6e\x20\x66\141\151\x6c\x65\x64\56");
$this->mo_saml_show_error_message();
return;
NG:
$Mb = '';
$WZ = '';
if ($this->mo_saml_check_empty_or_null($_POST["\x65\x6d\141\151\x6c"]) || $this->mo_saml_check_empty_or_null($_POST["\x70\x61\x73\x73\x77\x6f\162\x64"])) {
goto Rv;
}
$Mb = sanitize_email($_POST["\x65\155\141\x69\154"]);
$WZ = sanitize_text_field($_POST["\x70\x61\163\163\x77\157\162\x64"]);
goto xR;
Rv:
update_option("\x6d\157\x5f\x73\141\x6d\x6c\137\x6d\x65\163\163\141\147\x65", "\101\154\154\x20\x74\150\x65\40\x66\151\145\154\144\x73\40\141\162\x65\40\162\145\x71\165\x69\x72\145\144\56\x20\120\x6c\x65\141\x73\x65\40\x65\156\164\145\x72\x20\x76\141\154\151\144\x20\x65\156\164\162\151\145\163\56");
$this->mo_saml_show_error_message();
return;
xR:
update_option("\x6d\157\x5f\x73\141\155\x6c\x5f\141\144\155\151\x6e\137\145\x6d\141\151\x6c", $Mb);
update_option("\x6d\x6f\137\x73\x61\x6d\x6c\x5f\x61\x64\x6d\x69\x6e\137\x70\141\163\163\167\x6f\162\x64", $WZ);
$uh = new Customersaml();
$YY = $uh->get_customer_key();
$VO = json_decode($YY, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto oX;
}
update_option("\x6d\x6f\x5f\163\141\155\154\137\x6d\x65\163\x73\141\x67\145", "\111\156\166\141\154\151\x64\40\165\x73\145\x72\156\x61\x6d\x65\x20\x6f\162\x20\x70\141\163\163\x77\x6f\x72\x64\56\x20\x50\x6c\x65\141\x73\145\x20\164\x72\x79\x20\x61\x67\141\x69\156\x2e");
$this->mo_saml_show_error_message();
goto tQ;
oX:
update_option("\x6d\x6f\x5f\163\x61\155\x6c\x5f\141\x64\155\x69\x6e\137\x63\x75\163\164\x6f\x6d\x65\x72\x5f\153\145\171", $VO["\151\x64"]);
update_option("\x6d\157\137\x73\x61\x6d\154\x5f\x61\144\155\x69\x6e\x5f\141\160\151\x5f\x6b\x65\x79", $VO["\141\x70\x69\113\x65\171"]);
update_option("\155\x6f\137\163\141\x6d\x6c\x5f\x63\x75\x73\164\157\155\145\162\137\164\x6f\x6b\145\x6e", $VO["\164\x6f\153\x65\x6e"]);
update_option("\x6d\157\x5f\x73\141\x6d\x6c\137\141\x64\x6d\151\x6e\x5f\x70\x68\157\x6e\x65", $VO["\160\150\157\156\145"]);
update_option("\155\x6f\137\163\x61\x6d\x6c\137\141\x64\x6d\x69\x6e\137\x70\x61\163\163\x77\x6f\x72\144", '');
update_option("\x6d\157\x5f\x73\x61\155\x6c\137\x6d\145\x73\x73\141\147\145", "\x43\x75\163\164\157\x6d\x65\162\x20\162\145\x74\x72\151\x65\x76\145\x64\40\x73\x75\x63\143\x65\163\x73\146\165\154\x6c\x79");
update_option("\155\x6f\x5f\x73\x61\155\x6c\x5f\162\x65\x67\x69\163\x74\x72\141\164\x69\x6f\156\x5f\x73\x74\141\x74\165\x73", "\x45\170\151\x73\164\x69\x6e\x67\x20\125\x73\x65\x72");
delete_option("\155\x6f\137\163\x61\155\154\137\166\x65\x72\151\x66\171\x5f\x63\165\163\164\157\155\145\x72");
if (get_option("\163\155\154\137\x6c\153")) {
goto tN;
}
$this->mo_saml_show_success_message();
goto XF;
tN:
$nz = get_option("\155\x6f\x5f\163\x61\x6d\x6c\x5f\143\x75\163\x74\157\x6d\x65\162\137\x74\x6f\x6b\145\156");
$Az = AESEncryption::decrypt_data(get_option("\163\155\154\137\x6c\x6b"), $nz);
$YY = json_decode($uh->mo_saml_vl($Az, false), true);
update_option("\166\154\x5f\143\x68\x65\143\x6b\137\164", time());
if (strcasecmp($YY["\x73\164\x61\164\165\x73"], "\x53\125\x43\103\105\123\123") == 0) {
goto V0;
}
update_option("\x6d\157\137\x73\141\155\154\x5f\155\145\x73\163\141\147\145", "\x4c\151\143\x65\x6e\x73\x65\40\x6b\145\171\x20\146\x6f\x72\x20\164\x68\x69\x73\40\151\x6e\163\164\141\156\x63\x65\x20\x69\x73\40\x69\x6e\143\x6f\x72\x72\x65\143\x74\56\40\115\x61\x6b\x65\40\x73\165\x72\x65\40\x79\157\165\x20\x68\x61\166\145\40\156\x6f\x74\40\x74\x61\x6d\x70\x65\x72\x65\x64\40\x77\151\x74\150\40\x69\164\x20\141\x74\x20\141\x6c\x6c\56\40\x50\154\x65\x61\x73\x65\x20\145\156\x74\x65\x72\40\x61\40\x76\141\154\x69\144\x20\x6c\151\143\145\x6e\163\145\40\153\x65\x79\56");
delete_option("\x73\x6d\x6c\x5f\154\153");
$this->mo_saml_show_error_message();
goto GQ;
V0:
$kt = plugin_dir_path(__FILE__);
$X2 = home_url();
$X2 = trim($X2, "\57");
if (preg_match("\43\136\x68\x74\x74\x70\50\163\x29\x3f\72\x2f\57\43", $X2)) {
goto Iz;
}
$X2 = "\150\164\164\x70\72\57\x2f" . $X2;
Iz:
$Ab = parse_url($X2);
$D3 = preg_replace("\x2f\136\x77\x77\167\134\x2e\57", '', $Ab["\x68\157\163\x74"]);
$i0 = wp_upload_dir();
$gJ = $D3 . "\55" . $i0["\142\x61\x73\145\144\x69\162"];
$xr = hash_hmac("\x73\150\x61\62\x35\x36", $gJ, "\x34\x44\110\146\x6a\x67\x66\x6a\x61\x73\x6e\x64\x66\x73\141\x6a\x66\x48\x47\112");
$y0 = $this->djkasjdksa();
$dz = round(strlen($y0) / rand(2, 20));
$y0 = substr_replace($y0, $xr, $dz, 0);
$KW = base64_decode($y0);
if (is_writable($kt . "\x6c\151\x63\x65\156\x73\x65")) {
goto Zf;
}
$y0 = str_rot13($y0);
$ue = base64_decode("\x62\x47\x4e\x6b\141\x6d\x74\x68\143\62\x70\x6b\141\x33\x4e\150\x59\x32\x77\75");
update_option($ue, $y0);
goto nz;
Zf:
file_put_contents($kt . "\x6c\151\143\145\156\x73\145", $KW);
nz:
update_option("\x6c\x63\167\162\x74\154\146\163\x61\155\154", true);
$this->mo_saml_show_success_message();
GQ:
XF:
tQ:
update_option("\155\x6f\137\x73\x61\155\154\137\x61\x64\155\151\x6e\137\x70\141\x73\163\167\x6f\162\144", '');
Ez:
goto mm;
iX:
if (mo_saml_is_curl_installed()) {
goto yB;
}
update_option("\x6d\157\x5f\x73\x61\x6d\154\x5f\x6d\x65\x73\163\x61\147\145", "\x45\x52\122\x4f\x52\x3a\x20\x50\x48\120\40\143\x55\x52\114\x20\145\170\x74\x65\x6e\163\151\x6f\156\40\x69\163\x20\x6e\157\164\40\151\x6e\163\x74\141\154\x6c\x65\144\40\x6f\x72\x20\x64\x69\163\141\142\x6c\x65\144\x2e\x20\x56\x61\x6c\151\x64\141\x74\145\x20\117\124\x50\40\146\x61\151\x6c\x65\144\56");
$this->mo_saml_show_error_message();
return;
yB:
$Rt = '';
if ($this->mo_saml_check_empty_or_null($_POST["\157\x74\160\x5f\164\x6f\x6b\145\x6e"])) {
goto FI;
}
$Rt = sanitize_text_field($_POST["\157\x74\x70\x5f\164\x6f\x6b\x65\156"]);
goto Mg;
FI:
update_option("\x6d\x6f\137\x73\x61\x6d\154\137\155\x65\163\163\x61\x67\x65", "\x50\154\x65\141\163\145\40\145\x6e\x74\145\162\40\x61\x20\x76\x61\154\165\145\40\151\156\x20\157\x74\x70\x20\x66\151\x65\x6c\x64\x2e");
$this->mo_saml_show_error_message();
return;
Mg:
$uh = new CustomerSaml();
$YY = json_decode($uh->validate_otp_token(get_option("\155\157\x5f\x73\141\155\154\x5f\x74\162\x61\156\x73\x61\x63\164\x69\x6f\x6e\111\144"), $Rt), true);
if (strcasecmp($YY["\163\164\x61\x74\x75\x73"], "\123\125\103\103\105\x53\123") == 0) {
goto lm;
}
update_option("\155\x6f\x5f\x73\x61\155\x6c\137\x6d\145\x73\163\x61\x67\x65", "\x49\x6e\166\x61\154\x69\144\40\157\x6e\145\40\164\151\x6d\x65\x20\160\x61\x73\163\x63\157\144\x65\56\x20\x50\154\145\x61\163\x65\x20\x65\x6e\x74\x65\162\40\x61\x20\166\141\x6c\x69\x64\x20\157\x74\x70\56");
$this->mo_saml_show_error_message();
goto Q8;
lm:
$this->create_customer();
Q8:
mm:
goto py;
Xo:
if (mo_saml_is_curl_installed()) {
goto Ky;
}
update_option("\x6d\157\x5f\x73\141\155\154\x5f\155\145\x73\x73\141\147\145", "\x45\x52\122\117\122\x3a\40\120\110\x50\x20\143\125\x52\114\40\145\170\x74\x65\x6e\163\x69\x6f\156\40\x69\163\40\156\157\x74\40\151\x6e\x73\x74\x61\154\154\x65\x64\x20\x6f\x72\x20\144\x69\163\141\142\154\x65\x64\x2e\40\x52\145\147\151\x73\x74\x72\x61\164\x69\x6f\x6e\x20\146\x61\151\x6c\x65\x64\56");
$this->mo_saml_show_error_message();
return;
Ky:
$Mb = '';
$u4 = '';
$WZ = '';
$rm = '';
if ($this->mo_saml_check_empty_or_null($_POST["\x65\x6d\x61\x69\x6c"]) || $this->mo_saml_check_empty_or_null($_POST["\x70\141\x73\163\x77\157\x72\144"]) || $this->mo_saml_check_empty_or_null($_POST["\x63\157\x6e\146\x69\x72\155\x50\x61\163\x73\167\x6f\x72\144"])) {
goto J1;
}
if (strlen($_POST["\160\x61\163\x73\x77\x6f\162\x64"]) < 6 || strlen($_POST["\x63\157\156\146\x69\162\x6d\120\141\163\163\167\x6f\162\x64"]) < 6) {
goto MM;
}
$Mb = sanitize_email($_POST["\x65\x6d\x61\x69\154"]);
$u4 = sanitize_text_field($_POST["\160\x68\157\156\145"]);
$WZ = sanitize_text_field($_POST["\160\141\163\x73\167\157\162\144"]);
$rm = sanitize_text_field($_POST["\143\157\156\146\151\x72\155\120\x61\x73\x73\x77\x6f\x72\x64"]);
goto hx;
MM:
update_option("\155\x6f\137\163\x61\x6d\154\x5f\155\x65\x73\163\x61\x67\x65", "\x43\x68\x6f\157\163\145\x20\x61\40\160\141\163\163\167\157\162\144\x20\x77\151\164\150\x20\x6d\151\x6e\x69\x6d\165\x6d\40\x6c\145\x6e\147\x74\x68\40\x36\x2e");
$this->mo_saml_show_error_message();
return;
hx:
goto oN;
J1:
update_option("\155\x6f\x5f\x73\x61\155\x6c\137\x6d\145\163\x73\x61\147\145", "\x41\x6c\154\x20\164\x68\x65\x20\146\x69\145\x6c\144\163\x20\141\x72\145\40\162\x65\x71\x75\151\162\x65\x64\x2e\x20\120\154\x65\x61\x73\x65\x20\x65\156\x74\145\x72\40\166\141\x6c\151\x64\x20\x65\x6e\164\x72\x69\x65\163\x2e");
$this->mo_saml_show_error_message();
return;
oN:
update_option("\155\157\137\x73\x61\x6d\154\x5f\141\x64\155\151\x6e\x5f\x65\155\141\151\x6c", $Mb);
update_option("\x6d\x6f\x5f\163\x61\155\x6c\x5f\141\144\155\151\x6e\137\160\150\157\156\145", $u4);
if (strcmp($WZ, $rm) == 0) {
goto aL;
}
update_option("\155\x6f\137\163\x61\155\154\x5f\x6d\145\x73\x73\x61\x67\145", "\x50\141\x73\x73\167\x6f\x72\144\x73\40\x64\x6f\40\x6e\157\x74\40\x6d\x61\x74\143\x68\x2e");
delete_option("\155\157\137\x73\141\155\x6c\x5f\x76\x65\x72\x69\x66\171\137\x63\165\x73\x74\x6f\155\x65\162");
$this->mo_saml_show_error_message();
goto Q7;
aL:
update_option("\155\157\137\163\x61\155\x6c\137\141\x64\x6d\x69\156\137\160\141\x73\x73\x77\x6f\x72\x64", $WZ);
$Mb = get_option("\x6d\157\137\163\141\x6d\154\x5f\x61\144\x6d\151\x6e\x5f\x65\x6d\141\x69\154");
$uh = new CustomerSaml();
$YY = json_decode($uh->check_customer(), true);
if (strcasecmp($YY["\163\164\x61\x74\165\163"], "\103\x55\x53\124\117\x4d\x45\x52\137\x4e\117\124\137\106\x4f\x55\x4e\x44") == 0) {
goto hu;
}
$this->get_current_customer();
goto gK;
hu:
$YY = json_decode($uh->send_otp_token($Mb, ''), true);
if (strcasecmp($YY["\163\164\x61\x74\165\163"], "\123\x55\103\x43\105\123\123") == 0) {
goto Me;
}
update_option("\x6d\x6f\x5f\x73\x61\155\154\x5f\155\145\163\x73\141\x67\x65", "\x54\150\x65\162\x65\x20\x77\x61\163\40\141\156\40\x65\x72\x72\x6f\x72\40\x69\156\40\163\x65\x6e\144\151\156\147\x20\145\x6d\x61\x69\x6c\x2e\40\120\x6c\145\x61\x73\145\x20\x76\145\162\x69\146\x79\40\171\157\x75\162\40\x65\x6d\141\x69\154\40\x61\x6e\144\40\164\162\x79\40\141\x67\x61\151\156\x2e");
update_option("\155\157\137\x73\141\155\x6c\x5f\x72\145\x67\x69\x73\x74\162\141\164\151\x6f\x6e\x5f\163\x74\x61\x74\165\x73", "\x4d\117\x5f\x4f\x54\120\137\x44\105\114\x49\126\105\x52\105\x44\x5f\x46\101\x49\x4c\125\122\x45\137\x45\x4d\101\x49\114");
$this->mo_saml_show_error_message();
goto i1;
Me:
update_option("\x6d\x6f\x5f\163\141\x6d\x6c\137\x6d\145\x73\163\141\147\145", "\x20\x41\40\157\x6e\145\x20\164\151\155\145\40\160\x61\163\163\143\x6f\x64\x65\x20\x69\x73\x20\163\x65\156\x74\40\164\x6f\40" . get_option("\155\x6f\x5f\163\x61\x6d\154\137\141\x64\x6d\x69\156\137\145\x6d\x61\x69\x6c") . "\56\x20\x50\x6c\x65\x61\163\x65\x20\x65\156\164\145\x72\40\x74\x68\x65\40\x6f\164\160\40\x68\x65\162\145\40\x74\x6f\40\x76\x65\x72\151\x66\171\40\x79\157\x75\162\x20\x65\155\x61\151\154\56");
update_option("\155\157\137\163\141\x6d\154\x5f\164\x72\141\x6e\x73\141\143\x74\x69\157\x6e\111\x64", $YY["\x74\170\111\x64"]);
update_option("\155\157\x5f\x73\x61\x6d\x6c\137\x72\145\147\x69\163\x74\162\141\x74\151\x6f\x6e\137\163\164\141\164\165\x73", "\115\x4f\x5f\117\124\120\x5f\104\x45\x4c\111\126\x45\x52\x45\x44\137\123\125\x43\103\105\123\x53\x5f\x45\x4d\x41\111\x4c");
$this->mo_saml_show_success_message();
i1:
gK:
Q7:
py:
goto QZ;
QB:
$N5 = array("\143\157\x75\156\164\x72\171\x4e\141\x6d\x65" => $_POST["\x63\157\165\x6e\164\162\x79"], "\163\164\141\164\x65\x4f\162\120\162\x6f\166\151\x6e\x63\x65\x4e\141\155\x65" => $_POST["\163\164\141\x74\145"], "\x6c\x6f\143\x61\154\151\164\x79\x4e\x61\155\x65" => $_POST["\154\x6f\x63\141\x6c\151\x74\171"], "\157\x72\x67\141\156\151\172\141\164\151\x6f\156\x4e\141\155\145" => $_POST["\x6f\x72\147"], "\x6f\x72\147\x61\x6e\x69\x7a\x61\x74\x69\x6f\x6e\x61\154\x55\156\151\x74\x4e\141\155\x65" => $_POST["\157\162\x67\x5f\x75\156\x69\164"], "\x63\157\155\155\x6f\156\116\141\x6d\x65" => $_POST["\143\156"], "\x65\x6d\x61\151\154\x41\x64\144\162\145\163\x73" => $_POST["\x65\155\x61\x69\154"]);
$jj = array("\x64\x69\147\145\x73\x74\137\x61\x6c\147" => $_POST["\x68\x61\163\x68\x5f\141\x6c\147\157\x72\x69\x74\150\x6d"], "\x78\x35\60\71\x5f\145\x78\x74\145\x6e\163\x69\157\156\x73" => "\x76\63\x5f\143\x61", "\160\x72\x69\x76\x61\x74\x65\x5f\x6b\145\x79\x5f\142\151\164\163" => 2048, "\x70\x72\x69\x76\141\x74\145\137\x6b\145\x79\x5f\x74\171\160\145" => OPENSSL_KEYTYPE_RSA, "\x65\156\x63\x72\171\160\x74\137\153\145\171" => false);
$Uq = CertificateUtility::generate_certificate($N5, $jj, (int) $_POST["\145\170\160\x69\x72\x79\137\144\141\171\x73"]);
update_option("\x6d\157\x5f\x73\141\155\154\137\143\x75\162\x72\x65\156\164\137\x63\x65\x72\164", $Uq["\x70\165\142\154\151\x63\x5f\x6b\145\x79"]);
$rj = $rj && update_option("\x6d\157\x5f\163\141\x6d\154\x5f\143\x75\x72\x72\x65\156\x74\137\x63\145\162\x74\x5f\160\x72\151\x76\141\164\145\137\153\x65\171", $Uq["\160\x72\151\166\141\x74\145\137\x6b\x65\171"]);
if ($rj) {
goto aa;
}
update_option("\155\x6f\x5f\x73\x61\x6d\154\137\155\x65\x73\x73\141\147\145", "\x45\x72\162\x6f\162\x20\157\143\x63\x75\x72\145\x64\40\167\x68\151\154\145\40\147\x65\156\145\162\141\164\151\156\x67\x20\164\150\145\x20\x63\145\162\164\151\146\x69\143\x61\164\x65\x73\x2e\x20\x53\x65\145\40\120\110\x50\x20\x65\162\162\157\x72\40\x6c\157\x67\163\40\141\156\144\x20\x6d\x61\153\x65\x20\x73\x75\x72\x65\x20\x68\x61\166\145\x20\163\x65\x74\x20\x77\x72\151\x74\x65\40\160\145\162\x6d\x69\163\163\x69\157\x6e\x2e");
$this->mo_saml_show_error_message();
goto S2;
aa:
update_option("\155\157\x5f\x73\x61\155\x6c\x5f\x6d\145\x73\x73\141\147\x65", "\116\x65\x77\40\x63\145\x72\164\x69\146\x69\143\141\164\x65\x73\x20\147\145\x6e\145\162\141\x74\145\144\40\163\x75\x63\x63\145\163\163\146\x75\x6c\x6c\171\56");
$this->mo_saml_show_success_message();
S2:
QZ:
goto z0;
JT:
$Xk = sanitize_text_field($_POST["\155\x6f\137\x73\x61\155\x6c\x5f\x72\145\154\141\x79\x5f\163\164\x61\164\x65"]);
update_option("\x6d\157\x5f\x73\x61\x6d\x6c\137\x72\x65\154\141\171\137\x73\x74\x61\164\x65", $Xk);
update_option("\155\157\137\x73\x61\x6d\x6c\x5f\x6d\145\x73\x73\141\x67\145", "\x52\145\x6c\x61\171\x20\123\164\x61\164\145\40\165\x70\x64\x61\164\x65\x64\40\x73\165\143\x63\x65\x73\163\x66\x75\x6c\x6c\x79\x2e");
$this->mo_saml_show_success_message();
z0:
goto FB;
Z3:
if (isset($_POST["\163\165\x62\155\x69\x74"]) and $_POST["\x73\165\142\x6d\x69\164"] == "\125\160\154\x6f\x61\x64") {
goto y6;
}
if (!(isset($_POST["\163\165\x62\155\151\x74"]) and $_POST["\x73\165\142\x6d\151\164"] == "\122\x65\163\x65\x74")) {
goto vT;
}
delete_option("\x6d\x6f\137\x73\141\x6d\154\137\143\165\x73\164\157\155\x5f\143\145\162\x74");
delete_option("\155\x6f\137\x73\x61\x6d\x6c\x5f\143\x75\163\164\x6f\x6d\137\143\x65\x72\164\x5f\x70\162\151\x76\141\x74\145\x5f\x6b\x65\x79");
update_option("\x6d\x6f\x5f\163\x61\155\x6c\x5f\x63\165\x72\x72\145\x6e\x74\137\143\145\162\x74", isset($nM));
update_option("\155\157\x5f\163\141\155\154\x5f\143\x75\x72\162\145\156\x74\x5f\x63\145\x72\164\x5f\x70\x72\x69\166\x61\164\x65\x5f\153\x65\171", isset($am));
update_option("\x6d\157\x5f\163\x61\x6d\x6c\x5f\155\x65\x73\x73\x61\x67\145", "\x52\x65\x73\145\x74\40\103\145\162\x74\151\146\x69\x63\141\x74\145\40\163\165\143\143\x65\163\163\x66\x75\154\154\x79\x2e");
$this->mo_saml_show_success_message();
vT:
goto L7;
y6:
if (!@openssl_x509_read($_POST["\163\x61\x6d\154\137\x70\165\142\x6c\x69\x63\x5f\170\65\60\x39\x5f\x63\x65\x72\x74\151\146\151\143\x61\x74\145"])) {
goto M2;
}
if (!@openssl_x509_check_private_key($_POST["\x73\x61\155\154\137\x70\x75\x62\x6c\x69\x63\137\170\x35\x30\x39\x5f\x63\x65\162\x74\151\146\x69\143\141\164\145"], $_POST["\163\x61\155\154\x5f\160\x72\151\x76\141\164\145\x5f\170\65\x30\71\x5f\143\x65\162\164\151\x66\x69\143\x61\164\145"])) {
goto xK;
}
if (openssl_x509_read($_POST["\163\x61\155\x6c\137\160\x75\142\x6c\x69\143\x5f\170\x35\60\71\137\x63\x65\162\x74\151\146\151\x63\141\x74\145"]) && openssl_x509_check_private_key($_POST["\163\x61\155\x6c\137\160\165\142\x6c\x69\x63\137\170\65\x30\71\x5f\143\x65\x72\x74\151\146\x69\143\x61\164\x65"], $_POST["\x73\x61\155\154\x5f\x70\x72\151\166\141\x74\145\x5f\170\65\x30\71\x5f\x63\x65\162\164\151\x66\x69\143\x61\x74\145"])) {
goto aW;
}
goto bW;
M2:
update_option("\x6d\157\x5f\163\x61\155\154\137\x6d\x65\163\163\x61\147\145", "\111\x6e\x76\x61\154\x69\x64\40\103\x65\162\164\151\x66\151\x63\141\x74\145\40\x66\x6f\162\x6d\141\164\56\x20\x50\x6c\x65\141\163\x65\40\145\156\x74\145\162\x20\141\40\166\x61\x6c\151\144\x20\x63\145\162\x74\x69\x66\151\x63\141\164\x65\x2e");
$this->mo_saml_show_error_message();
return;
goto bW;
xK:
update_option("\155\157\x5f\x73\x61\x6d\154\x5f\155\x65\163\x73\x61\x67\x65", "\x49\156\x76\x61\154\151\144\x20\120\162\151\x76\x61\x74\145\x20\x4b\145\171\x2e");
$this->mo_saml_show_error_message();
return;
goto bW;
aW:
$WP = $_POST["\163\141\x6d\x6c\x5f\160\x75\142\154\x69\x63\x5f\x78\65\60\x39\x5f\x63\x65\162\x74\x69\x66\151\x63\x61\164\145"];
$y_ = $_POST["\x73\x61\x6d\154\x5f\x70\x72\151\x76\141\164\x65\x5f\170\65\60\71\x5f\143\x65\x72\164\151\146\x69\143\141\x74\x65"];
update_option("\155\x6f\137\163\x61\155\x6c\137\x63\x75\163\164\x6f\155\137\x63\145\x72\x74", $WP);
update_option("\x6d\x6f\x5f\x73\x61\155\x6c\x5f\143\165\x73\x74\x6f\155\137\x63\145\x72\x74\x5f\160\162\151\x76\x61\164\145\x5f\x6b\x65\171", $y_);
update_option("\155\x6f\x5f\163\x61\155\x6c\137\143\165\x72\162\x65\x6e\x74\137\143\x65\162\x74", $WP);
update_option("\x6d\x6f\137\163\x61\x6d\x6c\137\143\x75\162\x72\145\156\x74\137\143\x65\162\164\137\x70\x72\x69\x76\x61\164\x65\137\153\x65\x79", $y_);
update_option("\x6d\x6f\x5f\163\141\x6d\154\x5f\x6d\145\x73\163\141\x67\145", "\x43\x75\x73\x74\157\x6d\x20\x43\145\x72\x74\x69\146\151\x63\141\164\x65\x20\165\160\x64\141\x74\x65\144\x20\163\x75\143\143\x65\x73\x73\146\165\x6c\154\x79\56");
$this->mo_saml_show_success_message();
bW:
L7:
FB:
Zd:
add_action("\163\x75\x70\160\157\x72\x74\x5f\x66\x6f\x72\155", "\163\x75\160\x70\157\162\x74\137\146\157\x72\155", 10, 3);
do_action("\x73\165\x70\160\157\162\164\137\146\157\x72\155");
if (mo_saml_is_trial_active()) {
goto xZ;
}
if (site_check()) {
goto hZ;
}
delete_option("\x6d\x6f\137\163\x61\155\x6c\137\x66\x6f\x72\x63\x65\x5f\141\x75\x74\x68\145\x6e\164\151\x63\141\164\151\x6f\156");
hZ:
goto lf;
xZ:
if (!decryptSamlElement()) {
goto OF;
}
$nz = get_option("\155\157\137\x73\141\x6d\154\x5f\x63\165\163\x74\x6f\155\x65\x72\137\164\x6f\x6b\x65\156");
update_option("\x74\137\x73\151\x74\x65\137\x73\164\x61\164\165\163", AESEncryption::encrypt_data("\x66\x61\x6c\163\145", $nz));
OF:
lf:
}
function djkasjdksa()
{
$m4 = "\x21\x7e\100\x23\44\x25\136\x26\52\x28\51\137\x2b\x7c\x7b\x7d\x3c\x3e\x3f\x30\x31\62\x33\64\x35\66\x37\x38\x39\141\142\x63\144\x65\x66\x67\x68\x69\152\x6b\154\155\x6e\x6f\x70\x71\x72\163\164\x75\x76\167\x78\x79\172\101\102\103\x44\105\x46\107\x48\x49\x4a\113\114\x4d\x4e\117\x50\x51\x52\x53\124\x55\x56\127\130\131\132";
$HC = strlen($m4);
$zM = '';
$Qj = 0;
zY:
if (!($Qj < 10000)) {
goto tl;
}
$zM .= $m4[rand(0, $HC - 1)];
UM:
$Qj++;
goto zY;
tl:
return $zM;
}
function create_customer()
{
$uh = new CustomerSaml();
$VO = json_decode($uh->create_customer(), true);
if (strcasecmp($VO["\x73\164\141\x74\x75\163"], "\x43\125\x53\x54\x4f\x4d\x45\122\x5f\125\x53\x45\122\x4e\101\x4d\105\x5f\101\114\x52\x45\x41\x44\x59\137\x45\130\x49\123\x54\x53") == 0) {
goto yv;
}
if (!(strcasecmp($VO["\163\x74\141\164\x75\163"], "\123\125\103\103\105\123\x53") == 0)) {
goto V1;
}
update_option("\x6d\157\x5f\x73\141\x6d\x6c\137\x61\x64\155\x69\156\137\143\x75\x73\164\157\155\x65\162\x5f\x6b\145\x79", $VO["\151\144"]);
update_option("\x6d\x6f\137\163\141\x6d\154\x5f\x61\144\155\151\x6e\137\141\160\151\137\x6b\x65\171", $VO["\x61\x70\151\113\x65\x79"]);
update_option("\x6d\157\137\x73\x61\155\x6c\137\143\165\163\x74\x6f\155\x65\162\137\164\157\x6b\x65\x6e", $VO["\x74\157\153\x65\156"]);
update_option("\155\x6f\x5f\x73\141\155\x6c\x5f\x61\x64\155\x69\156\x5f\160\x61\x73\x73\167\157\162\x64", '');
update_option("\x6d\157\137\x73\141\x6d\154\137\155\x65\163\163\x61\x67\145", "\124\150\141\156\x6b\x20\x79\157\x75\40\146\157\x72\x20\x72\145\147\151\163\x74\145\162\x69\x6e\x67\x20\167\151\164\x68\40\155\151\156\x69\x6f\162\141\156\x67\x65\56");
update_option("\155\x6f\x5f\163\x61\155\x6c\137\x72\145\147\x69\163\164\162\141\164\151\x6f\156\x5f\x73\x74\x61\164\x75\x73", '');
delete_option("\x6d\x6f\x5f\163\141\x6d\154\x5f\x76\145\x72\151\x66\171\137\143\165\163\164\157\155\x65\x72");
delete_option("\155\157\137\163\141\155\x6c\x5f\156\x65\167\x5f\x72\145\x67\151\x73\164\162\x61\x74\151\157\x6e");
$this->mo_saml_show_success_message();
V1:
goto Rn;
yv:
$this->get_current_customer();
Rn:
update_option("\x6d\157\137\163\x61\155\x6c\x5f\141\x64\x6d\x69\x6e\x5f\160\141\163\163\167\157\162\144", '');
}
function get_current_customer()
{
$uh = new CustomerSaml();
$YY = $uh->get_customer_key();
$VO = json_decode($YY, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto C1;
}
update_option("\155\x6f\x5f\x73\x61\155\154\x5f\155\145\163\x73\141\147\145", "\131\157\x75\x20\x61\154\x72\145\141\x64\171\40\150\x61\166\x65\x20\x61\156\x20\x61\143\x63\x6f\x75\156\164\40\x77\x69\164\x68\x20\155\x69\x6e\151\117\162\x61\156\x67\x65\x2e\40\x50\x6c\145\x61\x73\145\40\145\x6e\164\145\x72\40\141\40\x76\x61\154\x69\144\40\160\x61\163\163\x77\157\x72\144\x2e");
update_option("\155\157\x5f\x73\x61\155\x6c\x5f\166\145\x72\x69\x66\x79\137\x63\165\x73\x74\x6f\155\145\x72", "\164\x72\x75\145");
delete_option("\x6d\x6f\x5f\x73\x61\x6d\154\x5f\x6e\145\x77\x5f\x72\145\147\x69\x73\x74\x72\141\164\151\157\x6e");
$this->mo_saml_show_error_message();
goto R8;
C1:
update_option("\155\x6f\x5f\x73\141\155\154\x5f\141\144\155\x69\x6e\x5f\143\x75\163\164\x6f\x6d\x65\x72\137\x6b\145\x79", $VO["\x69\144"]);
update_option("\155\x6f\137\x73\141\x6d\154\x5f\141\144\x6d\x69\x6e\x5f\x61\160\x69\137\153\145\x79", $VO["\x61\x70\x69\113\145\x79"]);
update_option("\x6d\157\137\163\141\x6d\x6c\x5f\143\x75\163\x74\x6f\x6d\145\x72\x5f\164\x6f\153\x65\156", $VO["\164\157\x6b\x65\156"]);
update_option("\x6d\x6f\x5f\163\x61\x6d\x6c\137\x61\x64\x6d\x69\x6e\x5f\160\141\x73\163\x77\157\x72\x64", '');
update_option("\155\x6f\x5f\163\x61\x6d\x6c\x5f\x6d\145\163\163\x61\x67\x65", "\131\157\x75\162\40\x61\143\x63\157\165\156\164\40\150\141\x73\x20\142\x65\x65\156\x20\162\145\x74\162\x69\145\166\145\144\40\x73\x75\x63\143\145\x73\x73\146\165\154\x6c\x79\56");
delete_option("\x6d\157\x5f\x73\141\155\x6c\x5f\166\x65\x72\151\x66\x79\137\x63\x75\x73\164\x6f\155\145\162");
delete_option("\x6d\157\x5f\x73\x61\x6d\x6c\137\x6e\x65\x77\x5f\x72\145\x67\x69\x73\164\162\141\164\x69\157\156");
$this->mo_saml_show_success_message();
R8:
}
public function mo_saml_check_empty_or_null($q0)
{
if (!(!isset($q0) || empty($q0))) {
goto w0;
}
return true;
w0:
return false;
}
function miniorange_sso_menu()
{
$HP = add_menu_page("\115\x4f\x20\123\x41\x4d\114\40\123\145\x74\x74\x69\156\147\x73\40" . __("\x43\157\156\x66\151\x67\165\x72\x65\40\x53\101\x4d\114\x20\111\x64\x65\156\x74\151\x74\x79\40\x50\162\x6f\x76\151\x64\145\162\40\x66\x6f\x72\40\123\123\117", "\155\157\x5f\x73\x61\155\x6c\x5f\163\x65\164\164\x69\x6e\x67\x73"), "\155\x69\156\x69\x4f\162\141\x6e\147\x65\40\x53\x41\x4d\x4c\x20\62\x2e\x30\40\123\123\x4f", "\141\144\x6d\x69\156\151\x73\x74\162\x61\x74\157\x72", "\155\x6f\x5f\x73\141\x6d\x6c\x5f\163\145\x74\164\x69\156\147\163", array($this, "\155\157\137\x6c\157\147\x69\156\x5f\x77\151\144\147\145\x74\x5f\163\141\x6d\154\137\157\x70\x74\x69\157\156\x73"), plugin_dir_url(__FILE__) . "\x69\x6d\141\x67\x65\163\x2f\155\151\x6e\151\157\162\141\x6e\x67\145\x2e\x70\x6e\x67");
}
function mo_saml_redirect_for_authentication($Xk)
{
if (!mo_saml_is_customer_license_key_verified()) {
goto rK;
}
if (get_option("\155\157\137\163\141\155\154\x5f\x65\156\141\x62\154\x65\x5f\143\154\157\x75\144\137\x62\x72\157\153\x65\x72") != "\x74\x72\165\x65") {
goto Hh;
}
$Uf = get_option("\x6d\157\x5f\163\141\155\154\137\150\157\x73\164\137\156\x61\155\x65") . "\57\155\157\141\163\57\x72\145\x73\x74\57\x73\141\155\x6c\x2f\x72\x65\161\165\x65\163\164\x3f\151\x64\75" . get_option("\x6d\x6f\137\x73\x61\155\154\x5f\x61\x64\x6d\x69\156\137\143\x75\x73\164\157\155\145\x72\137\153\x65\171") . "\46\x72\145\x74\x75\162\156\x75\x72\x6c\75" . urlencode(home_url() . "\57\x3f\x6f\x70\x74\x69\157\x6e\x3d\x72\145\141\x64\x73\x61\x6d\x6c\x6c\157\x67\x69\x6e\x26\162\145\x64\151\x72\145\143\x74\x5f\x74\x6f\75" . urlencode($Xk));
header("\x4c\x6f\x63\141\x74\151\x6f\x6e\72\x20" . $Uf);
die;
goto Ur;
Hh:
if (!(mo_saml_is_sp_configured() && !is_user_logged_in())) {
goto W9;
}
$zW = get_option("\x6d\x6f\137\x73\141\x6d\154\x5f\163\160\137\x62\141\163\x65\x5f\x75\162\x6c");
if (!empty($zW)) {
goto zy;
}
$zW = home_url();
zy:
if (!(get_option("\x6d\x6f\137\163\141\155\154\x5f\162\x65\154\x61\171\137\163\164\141\x74\145") && get_option("\x6d\157\x5f\163\141\x6d\154\137\162\145\x6c\x61\x79\137\x73\164\141\164\145") != '')) {
goto pL;
}
$Xk = get_option("\155\157\137\x73\x61\155\154\x5f\x72\145\x6c\x61\x79\x5f\x73\x74\x61\x74\145");
pL:
$Un = empty($Xk) ? "\57" : $Xk;
$m6 = get_option("\163\141\155\x6c\137\154\157\147\151\156\x5f\x75\162\x6c");
$r_ = get_option("\x73\141\155\x6c\x5f\x6c\157\x67\x69\156\137\142\x69\156\x64\151\156\147\137\164\x79\x70\145");
$f4 = get_option("\155\157\x5f\163\141\155\154\137\146\157\x72\143\x65\137\x61\165\164\150\145\x6e\x74\x69\143\x61\164\x69\157\156");
$f3 = $zW . "\x2f";
$ZD = get_option("\x6d\157\137\x73\x61\155\x6c\137\x73\x70\x5f\x65\x6e\164\x69\x74\171\137\151\x64");
if (!empty($ZD)) {
goto CF;
}
$ZD = $zW . "\x2f\167\160\x2d\143\157\x6e\x74\x65\156\164\x2f\160\x6c\165\x67\x69\156\163\57\155\x69\x6e\x69\x6f\x72\x61\x6e\147\145\x2d\x73\x61\x6d\x6c\x2d\x32\x30\55\x73\x69\x6e\x67\154\x65\55\163\x69\147\156\x2d\157\x6e\57";
CF:
$zx = SAMLSPUtilities::createAuthnRequest($f3, $ZD, $m6, $f4, $r_);
if (empty($r_) || $r_ == "\x48\164\x74\x70\x52\145\x64\x69\x72\x65\143\164") {
goto El;
}
if (!(get_option("\163\x61\155\x6c\137\x72\145\161\x75\x65\163\x74\137\x73\x69\147\156\x65\144") == "\x75\156\143\x68\145\x63\153\145\x64")) {
goto z4;
}
$bD = base64_encode($zx);
SAMLSPUtilities::postSAMLRequest($m6, $bD, $Un);
die;
z4:
$j9 = '';
$Cv = '';
$bD = SAMLSPUtilities::signXML($zx, "\x4e\x61\x6d\145\111\x44\120\x6f\154\x69\143\171");
SAMLSPUtilities::postSAMLRequest($m6, $bD, $Un);
goto kv;
El:
$ex = $m6;
if (strpos($m6, "\77") !== false) {
goto qx;
}
$ex .= "\x3f";
goto HL;
qx:
$ex .= "\46";
HL:
if (!(get_option("\163\141\x6d\154\x5f\x72\x65\x71\x75\x65\163\164\x5f\163\151\x67\156\x65\x64") == "\x75\x6e\x63\x68\x65\143\153\145\x64")) {
goto e0;
}
$ex .= "\123\101\115\114\122\145\x71\x75\x65\163\x74\x3d" . $zx . "\x26\122\x65\154\141\x79\x53\x74\x61\x74\145\75" . urlencode($Un);
header("\x4c\157\143\x61\164\151\x6f\156\72\40" . $ex);
die;
e0:
$zx = "\123\x41\x4d\x4c\122\145\x71\x75\x65\x73\x74\75" . $zx . "\x26\x52\145\154\141\x79\x53\164\x61\x74\145\75" . urlencode($Un) . "\x26\123\x69\147\101\x6c\147\x3d" . urlencode(XMLSecurityKey::RSA_SHA256);
$Vs = array("\x74\171\160\x65" => "\x70\x72\x69\166\x61\x74\x65");
$nz = new XMLSecurityKey(XMLSecurityKey::RSA_SHA256, $Vs);
$J2 = get_option("\x6d\157\x5f\163\x61\155\154\x5f\143\165\x72\162\x65\x6e\x74\x5f\x63\145\x72\164\x5f\160\162\151\x76\141\164\x65\x5f\x6b\145\x79");
$nz->loadKey($J2, FALSE);
$wr = new XMLSecurityDSig();
$SI = $nz->signData($zx);
$SI = base64_encode($SI);
$ex .= $zx . "\46\123\x69\147\x6e\141\164\x75\162\x65\x3d" . urlencode($SI);
header("\114\x6f\143\141\164\x69\157\156\72\40" . $ex);
die;
kv:
W9:
Ur:
rK:
}
function mo_saml_authenticate()
{
$jL = '';
if (!isset($_REQUEST["\x72\x65\x64\x69\x72\x65\143\x74\137\x74\x6f"])) {
goto kx;
}
$jL = $_REQUEST["\162\x65\x64\x69\162\x65\x63\164\x5f\164\157"];
kx:
if (!is_user_logged_in()) {
goto sN;
}
if (!empty($jL)) {
goto BZ;
}
header("\114\157\143\x61\164\151\157\156\72\40" . home_url());
goto cb;
BZ:
header("\114\x6f\143\141\x74\151\x6f\156\72\40" . $jL);
cb:
die;
sN:
if (!(get_option("\155\x6f\x5f\x73\141\x6d\154\137\145\156\141\142\154\145\x5f\x6c\157\147\x69\x6e\x5f\x72\145\x64\x69\162\145\143\x74") == "\x74\x72\x75\145")) {
goto Ec;
}
$gL = get_option("\x6d\157\x5f\163\x61\155\154\137\142\x61\x63\153\x64\157\x6f\162\137\x75\x72\154") ? get_option("\155\x6f\137\163\141\155\154\x5f\x62\x61\143\x6b\144\157\x6f\162\137\165\x72\154") : "\x66\141\x6c\x73\x65";
if (isset($_GET["\154\157\x67\147\x65\144\x6f\165\x74"]) && $_GET["\154\x6f\x67\x67\x65\144\x6f\x75\164"] == "\164\x72\x75\x65") {
goto tr;
}
if (get_option("\155\x6f\137\x73\141\155\x6c\137\x61\x6c\154\x6f\x77\x5f\167\x70\137\163\x69\147\x6e\151\x6e") == "\x74\162\165\x65") {
goto eN;
}
goto g3;
tr:
header("\x4c\x6f\x63\x61\164\151\x6f\156\x3a\40" . home_url());
die;
goto g3;
eN:
if (isset($_GET["\x73\x61\155\154\137\x73\x73\x6f"]) && $_GET["\x73\141\155\154\137\163\x73\x6f"] === $gL || isset($_POST["\x73\141\x6d\154\x5f\x73\163\x6f"]) && $_POST["\x73\x61\155\x6c\137\x73\163\x6f"] === $gL) {
goto Je;
}
if (isset($_REQUEST["\162\x65\144\x69\162\145\143\164\x5f\x74\157"])) {
goto Wx;
}
goto XQ;
Je:
return;
goto XQ;
Wx:
$jL = $_REQUEST["\x72\x65\144\x69\x72\145\143\164\x5f\x74\x6f"];
if (!(strpos($jL, "\x77\x70\55\141\x64\x6d\151\156") !== false && strpos($jL, "\x20\x20\x73\x61\x6d\x6c\x5f\x73\x73\x6f\75" . $gL) !== false)) {
goto zJ;
}
return;
zJ:
XQ:
g3:
$this->mo_saml_redirect_for_authentication($jL);
Ec:
}
function mo_saml_auto_redirect()
{
if (!current_user_can("\162\145\141\144")) {
goto Yx;
}
return;
Yx:
if (!(get_option("\x6d\157\137\x73\141\x6d\154\x5f\162\x65\x67\x69\x73\164\145\162\x65\x64\x5f\157\x6e\x6c\171\137\141\x63\x63\145\163\163") == "\164\x72\x75\145")) {
goto av;
}
if (!(get_option("\x6d\157\137\163\141\155\x6c\137\x65\x6e\141\x62\154\145\x5f\x72\x73\163\137\141\143\143\x65\163\163") == "\164\162\165\145" && is_feed())) {
goto B4;
}
return;
B4:
$Xk = saml_get_current_page_url();
$this->mo_saml_redirect_for_authentication($Xk);
av:
}
function mo_saml_modify_login_form()
{
$gL = get_option("\x6d\x6f\x5f\x73\x61\155\154\137\x62\x61\x63\153\144\x6f\157\162\137\165\x72\x6c") ? get_option("\x6d\157\137\163\141\155\x6c\137\x62\x61\143\153\x64\x6f\157\x72\x5f\165\x72\x6c") : "\146\141\154\x73\145";
echo "\74\151\156\x70\165\x74\x20\x74\171\x70\145\75\42\x68\151\144\x64\145\156\x22\x20\x6e\x61\x6d\x65\x3d\x22\x73\141\x6d\154\137\163\x73\157\42\40\166\x61\154\165\145\x3d" . $gL . "\x3e" . "\xa";
}
function mo_get_saml_shortcode()
{
if (!is_user_logged_in()) {
goto cr;
}
$gy = "\110\145\154\x6c\157\54\40" . wp_get_current_user()->display_name . "\x20\x7c\40" . addLink("\114\157\147\x6f\165\x74", wp_logout_url(home_url()));
goto Ba;
cr:
$zW = get_option("\155\157\x5f\x73\x61\155\154\x5f\x73\x70\137\142\141\x73\x65\x5f\165\x72\154");
if (!empty($zW)) {
goto uK;
}
$zW = home_url();
uK:
if (mo_saml_is_sp_configured() && mo_saml_is_customer_license_key_verified()) {
goto Ye;
}
$gy = "\123\x50\x20\x69\x73\x20\156\157\164\x20\x63\157\x6e\146\151\x67\x75\x72\145\x64\56";
goto Ks;
Ye:
if (get_option("\x6d\157\x5f\163\x61\x6d\x6c\x5f\x65\156\x61\x62\x6c\145\137\x63\154\x6f\165\x64\137\142\162\157\x6b\145\162") != "\x74\x72\x75\145") {
goto e9;
}
$gy = addLink("\114\x6f\147\151\156\40\167\x69\164\x68\40" . get_option("\163\141\x6d\x6c\x5f\x69\x64\x65\x6e\x74\151\164\x79\137\156\x61\x6d\145"), get_option("\x6d\x6f\137\x73\141\155\x6c\x5f\x68\157\x73\x74\137\156\141\155\x65") . "\57\155\157\x61\163\57\x72\145\x73\x74\x2f\163\x61\155\154\57\x72\x65\161\165\x65\163\164\x3f\x69\x64\x3d" . get_option("\155\157\x5f\x73\x61\155\154\x5f\141\x64\155\151\x6e\x5f\143\165\x73\x74\x6f\155\145\162\x5f\153\145\171") . "\x26\162\145\x74\x75\162\x6e\x75\162\154\x3d" . urlencode(home_url() . "\x2f\x3f\157\160\x74\151\157\x6e\75\162\145\141\x64\163\141\x6d\x6c\x6c\157\x67\151\x6e"));
goto Be;
e9:
$jL = urlencode(saml_get_current_page_url());
$gy = addLink("\x4c\157\147\151\156\x20\167\151\x74\150\x20" . get_option("\x73\141\x6d\154\x5f\151\x64\145\x6e\164\x69\164\x79\137\x6e\x61\x6d\145"), $zW . "\x2f\x3f\157\x70\x74\x69\x6f\156\75\163\141\x6d\154\137\x75\163\145\x72\137\x6c\157\147\151\156\x26\x72\x65\144\151\162\145\143\164\137\x74\157\75" . $jL);
Be:
Ks:
Ba:
return $gy;
}
function _handle_upload_metadata()
{
if (!(isset($_FILES["\155\x65\x74\x61\x64\x61\164\x61\x5f\146\151\154\x65"]) || isset($_POST["\x6d\x65\164\x61\x64\141\x74\x61\137\165\162\x6c"]))) {
goto qU;
}
if (!empty($_FILES["\x6d\145\x74\x61\x64\x61\x74\141\x5f\x66\151\154\145"]["\164\155\x70\137\x6e\x61\x6d\145"])) {
goto WJ;
}
$wy = $_POST["\x6d\145\164\x61\144\x61\x74\141\137\x75\162\154"];
$WY = curl_init();
curl_setopt($WY, CURLOPT_URL, $wy);
curl_setopt($WY, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($WY, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($WY, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($WY, CURLOPT_SSL_VERIFYHOST, false);
$Hm = get_option("\x6d\x6f\137\160\x72\157\x78\171\x5f\150\157\x73\x74");
if (empty($Hm)) {
goto W2;
}
curl_setopt($WY, CURLOPT_PROXY, get_option("\155\x6f\137\x70\x72\x6f\x78\x79\x5f\150\157\163\164"));
curl_setopt($WY, CURLOPT_PROXYPORT, get_option("\x6d\x6f\137\x70\162\x6f\170\x79\x5f\x70\157\162\x74"));
curl_setopt($WY, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($WY, CURLOPT_PROXYUSERPWD, get_option("\x6d\x6f\x5f\160\x72\157\x78\x79\137\165\163\145\162\x6e\141\155\x65") . "\72" . get_option("\155\157\x5f\160\x72\x6f\170\171\137\160\x61\x73\163\167\157\x72\x64"));
W2:
$pk = curl_exec($WY);
curl_close($WY);
if (isset($_POST["\163\x79\156\x63\137\155\145\x74\x61\x64\141\164\141"])) {
goto XM;
}
delete_option("\x73\141\155\154\137\x6d\145\164\x61\144\141\164\141\x5f\165\x72\x6c\x5f\x66\157\162\137\x73\x79\156\x63");
delete_option("\163\141\155\154\x5f\155\145\164\x61\144\x61\164\141\x5f\x73\x79\156\143\137\x69\156\164\x65\162\166\141\154");
wp_unschedule_event(wp_next_scheduled("\155\145\164\x61\x64\x61\x74\x61\137\163\171\x6e\x63\x5f\143\162\x6f\156\x5f\x61\143\x74\151\157\x6e"), "\155\x65\x74\141\144\x61\164\141\137\x73\x79\156\x63\x5f\143\162\157\x6e\x5f\x61\143\164\x69\x6f\x6e");
goto Pk;
XM:
update_option("\163\141\155\x6c\137\x6d\145\x74\x61\144\x61\164\141\x5f\x75\162\x6c\x5f\x66\157\162\x5f\163\171\156\143", $_POST["\x6d\145\164\141\x64\141\x74\141\x5f\146\x69\154\145"]);
update_option("\163\x61\x6d\154\x5f\155\x65\164\141\x64\x61\164\x61\x5f\x73\x79\x6e\143\x5f\x69\156\164\145\162\166\x61\x6c", $_POST["\163\x79\156\143\137\x69\x6e\164\145\162\x76\x61\x6c"]);
if (wp_next_scheduled("\x6d\x65\164\141\x64\x61\164\x61\137\x73\171\156\143\x5f\143\162\x6f\x6e\137\141\x63\x74\151\x6f\x6e")) {
goto p5;
}
wp_schedule_event(time(), $_POST["\163\171\156\x63\137\151\x6e\164\145\162\x76\x61\154"], "\155\145\x74\141\144\141\x74\141\x5f\x73\x79\156\x63\137\143\162\157\156\x5f\x61\x63\164\x69\x6f\156");
p5:
Pk:
goto Kh;
WJ:
$pk = @file_get_contents($_FILES["\155\x65\x74\141\144\x61\x74\x61\137\x66\151\x6c\x65"]["\x74\155\160\137\x6e\141\x6d\145"]);
Kh:
$this->upload_metadata($pk);
qU:
}
function upload_metadata($pk)
{
$H9 = set_error_handler(array($this, "\150\x61\156\x64\154\x65\x58\x6d\x6c\105\x72\162\x6f\162"));
$L_ = new DOMDocument();
$L_->loadXML($pk);
restore_error_handler();
$D7 = $L_->firstChild;
if (!empty($D7)) {
goto IK;
}
update_option("\x6d\157\x5f\x73\141\155\154\137\x6d\145\163\x73\141\x67\x65", "\x50\154\x65\141\163\145\x20\x70\x72\x6f\x76\151\144\145\x20\x61\x20\166\x61\x6c\151\x64\40\155\145\x74\141\144\141\x74\141\40\146\151\x6c\145\56");
$this->mo_saml_show_error_message();
goto Fg;
IK:
$kT = new IDPMetadataReader($L_);
$yL = $kT->getIdentityProviders();
if (!empty($yL)) {
goto Ze;
}
update_option("\x6d\157\x5f\163\x61\x6d\x6c\x5f\x6d\145\163\163\x61\x67\145", "\x50\154\x65\x61\x73\145\x20\x70\x72\157\166\151\144\145\40\x61\40\x76\141\x6c\x69\x64\40\x6d\145\164\141\x64\x61\x74\x61\40\146\x69\154\x65\x2e");
$this->mo_saml_show_error_message();
return;
Ze:
foreach ($yL as $nz => $YC) {
$hD = $_POST["\x73\141\x6d\x6c\x5f\151\x64\145\x6e\164\151\x74\171\x5f\x6d\x65\x74\141\x64\x61\164\141\x5f\160\x72\157\166\151\x64\145\162"];
$gi = "\x48\164\164\160\122\x65\x64\x69\x72\x65\143\164";
$B5 = $YC->getLoginURL("\x48\124\x54\120\55\x52\145\x64\151\162\145\x63\164");
$ky = "\110\x74\x74\x70\x52\x65\x64\151\162\x65\143\x74";
$c1 = $YC->getLogoutURL("\x48\x54\124\120\55\122\x65\x64\x69\162\145\143\x74");
$WO = $YC->getEntityID();
$tS = $YC->getSigningCertificate();
update_option("\163\x61\x6d\154\x5f\x69\x64\x65\156\x74\x69\164\x79\x5f\x6e\141\x6d\x65", $hD);
update_option("\163\x61\x6d\154\x5f\154\x6f\147\151\x6e\x5f\142\x69\x6e\x64\151\156\x67\137\164\171\x70\x65", $gi);
update_option("\x73\x61\x6d\x6c\x5f\154\157\147\151\x6e\x5f\x75\x72\x6c", $B5);
update_option("\x73\141\155\x6c\137\x6c\157\x67\x6f\x75\164\x5f\x62\151\x6e\144\151\156\x67\x5f\x74\x79\160\x65", $ky);
update_option("\163\x61\x6d\x6c\x5f\154\157\147\157\x75\x74\x5f\x75\x72\x6c", $c1);
update_option("\163\141\x6d\x6c\137\151\x73\163\x75\145\162", $WO);
update_option("\163\141\155\x6c\137\x78\65\x30\71\x5f\x63\x65\162\x74\151\x66\151\x63\141\164\145", maybe_serialize($tS));
goto UK;
GG:
}
UK:
update_option("\155\x6f\137\x73\x61\x6d\154\x5f\155\x65\x73\163\141\147\x65", "\111\x64\x65\156\x74\151\x74\171\40\x50\x72\x6f\x76\x69\x64\145\162\x20\x64\x65\164\141\151\x6c\163\x20\x73\x61\166\x65\x64\40\163\x75\143\143\x65\163\163\x66\165\154\154\171\56");
$this->mo_saml_show_success_message();
Fg:
}
function handleXmlError($h0, $Sm, $SP, $hJ)
{
if ($h0 == E_WARNING && substr_count($Sm, "\x44\117\115\x44\157\143\x75\x6d\x65\x6e\x74\72\x3a\154\x6f\x61\144\x58\x4d\114\x28\x29") > 0) {
goto oM;
}
return false;
goto rP;
oM:
return;
rP:
}
function mo_saml_plugin_action_links($rc)
{
$rc = array_merge(array("\74\x61\40\x68\x72\145\146\75\42" . esc_url(admin_url("\141\x64\155\x69\x6e\x2e\x70\x68\x70\77\160\141\x67\x65\x3d\155\157\x5f\163\141\155\154\137\163\145\164\164\151\x6e\147\x73")) . "\x22\x3e" . __("\x53\x65\164\x74\151\156\x67\163", "\164\x65\170\164\x64\157\155\141\x69\156") . "\74\57\x61\76"), $rc);
return $rc;
}
}
new saml_mo_login();
Function Calls
None |
Stats
MD5 | d8710d1248d2d9bb2a843c85498eed31 |
Eval Count | 0 |
Decode Time | 177 ms |