/* Decoded by unphp.net */ "Group Profiling", "ldap-login-for-intranet-sites/wpldaplogin.php" => "mo_ldap_local_login", "mo-saml-20-single-sign-on/login.php" => "mo_saml_settings", "miniorange-login-openid/miniorange_openid_sso_settings.php" => "mo_openid_settings", "miniorange-login-with-eve-online-google-facebook/mo_oauth_settings.php" => "mo_oauth_settings")); eF: class group_profiling_add_on { function __construct() { register_activation_hook(__FILE__, array($this, "check_some_other_plugin")); update_option("mo_gp_host_name", "https://login.xecurify.com"); add_action("admin_menu", array($this, "group_profiling_menu"), 11); add_action("admin_init", "miniorange_save_setting_group_profiling", 1); register_deactivation_hook(__FILE__, array($this, "mo_group_profiling_deactivate")); remove_action("admin_notices", array($this, "mo_group_profiling_success_message")); remove_action("admin_notices", array($this, "mo_group_profiling_error_message")); add_action("admin_enqueue_scripts", array($this, "plugin_settings_script")); add_action("admin_enqueue_scripts", array($this, "plugin_settings_style")); if (!is_plugin_active("groups/groups.php")) { goto bA; } // add_action("mo_saml_attributes", "groupsprofiling_login_integration", 10, 7); bA: } function group_profiling_menu() { if (!is_plugin_active("miniorange-saml-20-single-sign-on-multiple-idp/login.php")) { goto CE; } add_submenu_page("mo_saml_settings", "Group Profiling", "Group Profiling", "administrator", "group_profiling", "group_profiling"); return; CE: add_menu_page("Group Profiling", "Group Profiling", "administrator", "group_profiling", "group_profiling", plugin_dir_url(__FILE__) . "images/miniorange.png"); } function mo_group_profiling_deactivate() { delete_option("mo_gp_host_name"); delete_option("mo_gp_message"); } function plugin_settings_style($M9) { wp_enqueue_style("mo_gp_admin_settings_style", plugins_url("includes/css/style_settings.min.css", __FILE__)); wp_enqueue_style("mo_gp_admin_settings_phone_style", plugins_url("includes/css/phone.min.css", __FILE__)); } function plugin_settings_script($M9) { wp_enqueue_script("jquery"); wp_enqueue_script("mo_saml_admin_settings_script", plugins_url("includes/js/settings.min.js", __FILE__)); wp_enqueue_script("mo_saml_admin_settings_phone_script", plugins_url("includes/js/phone.min.js", __FILE__)); } function mo_gp_show_success_message() { remove_action("admin_notices", array($this, "mo_group_profiling_success_message")); add_action("admin_notices", array($this, "mo_group_profiling_error_message")); } function mo_gf_show_error_message() { remove_action("admin_notices", array($this, "mo_group_profiling_error_message")); add_action("admin_notices", array($this, "mo_group_profiling_success_message")); } function mo_group_profiling_success_message() { $gb = "error"; $MM = get_option("mo_gp_message"); echo "

" . $MM . "

"; } function mo_group_profiling_error_message() { $gb = "updated"; $MM = get_option("mo_gp_message"); echo "

" . $MM . "

"; } function check_some_other_plugin() { foreach (PLUGIN_NAMES as $AP => $y5) { if (!is_plugin_active($AP)) { goto Xd; } update_option("mo_gp_message", "Hey there"); $this->mo_gp_show_success_message(); delete_option("mo_gp_message"); return; Xd: MM: } pn: } } new group_profiling_add_on(); ?>