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 Group Profiling * Plugin URI: http://miniorange.c..
Decoded Output download
<?php
/**
* Plugin Name: miniOrange Group Profiling
* Plugin URI: http://miniorange.com
* Description: This plugin allows integration of your SAML attributes with the Groups plugin.
* Version: 1.0.0
* Author: miniOrange
* Author URI: http://miniorange.com
* License URI: http://miniorange.com/usecases/miniOrange_User_Agreement.pdf
*/
require_once "Group-profiling-save.php";
require_once "Group-profiling-menu-settings.php";
if (defined("PLUGIN_NAMES")) {
goto eF;
}
define("PLUGIN_NAMES", array("miniorange_group_profiling/Group-profiling-menu-settings.php" => "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 "<div class='" . $gb . "'> <p>" . $MM . "</p></div>";
}
function mo_group_profiling_error_message()
{
$gb = "updated";
$MM = get_option("mo_gp_message");
echo "<div class='" . $gb . "'><p>" . $MM . "</p></div>";
}
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();
?>
Did this file decode correctly?
Original Code
<?php
/**
* Plugin Name: miniOrange Group Profiling
* Plugin URI: http://miniorange.com
* Description: This plugin allows integration of your SAML attributes with the Groups plugin.
* Version: 1.0.0
* Author: miniOrange
* Author URI: http://miniorange.com
* License URI: http://miniorange.com/usecases/miniOrange_User_Agreement.pdf
*/
require_once "\107\x72\x6f\x75\x70\55\160\162\157\x66\151\x6c\151\x6e\x67\x2d\163\x61\166\145\56\x70\150\x70";
require_once "\x47\x72\x6f\x75\160\x2d\x70\x72\157\x66\x69\x6c\x69\156\147\55\x6d\x65\156\x75\55\163\x65\164\164\x69\156\x67\163\56\x70\x68\x70";
if (defined("\x50\114\x55\x47\111\116\x5f\x4e\101\115\105\123")) {
goto eF;
}
define("\x50\114\125\x47\x49\116\x5f\x4e\101\x4d\105\123", array("\155\151\x6e\x69\157\162\141\156\147\x65\x5f\x67\x72\157\165\x70\x5f\160\162\157\146\151\x6c\151\156\x67\57\107\x72\157\165\x70\55\160\162\157\x66\151\154\151\x6e\147\55\x6d\145\156\165\55\163\145\x74\164\x69\156\x67\163\x2e\x70\x68\x70" => "\x47\x72\x6f\165\x70\x20\x50\162\x6f\146\x69\154\x69\x6e\147", "\x6c\x64\141\160\x2d\x6c\x6f\147\151\x6e\55\x66\157\x72\x2d\151\156\x74\x72\141\x6e\145\164\55\163\x69\164\145\163\57\x77\160\x6c\x64\141\x70\154\157\147\x69\156\x2e\x70\150\x70" => "\x6d\x6f\x5f\154\x64\x61\x70\x5f\x6c\157\x63\141\x6c\137\154\157\x67\x69\156", "\x6d\x6f\x2d\x73\x61\x6d\154\55\62\60\x2d\x73\151\x6e\147\x6c\x65\55\163\x69\147\x6e\55\157\156\57\x6c\157\147\151\156\x2e\x70\x68\x70" => "\155\157\x5f\163\x61\x6d\154\137\163\x65\x74\x74\151\156\x67\163", "\155\x69\156\151\x6f\162\x61\x6e\147\x65\55\154\157\x67\x69\156\x2d\x6f\160\145\x6e\151\x64\57\155\151\x6e\x69\x6f\162\x61\156\x67\x65\137\157\160\145\156\151\144\137\163\163\x6f\x5f\x73\145\164\164\x69\x6e\147\163\x2e\x70\150\160" => "\155\x6f\x5f\x6f\x70\145\156\x69\144\x5f\163\x65\164\x74\x69\x6e\x67\x73", "\155\x69\x6e\x69\157\x72\x61\156\x67\145\55\154\x6f\147\x69\x6e\55\167\x69\x74\150\x2d\x65\x76\145\55\157\x6e\x6c\x69\x6e\x65\x2d\147\x6f\157\x67\x6c\145\x2d\146\x61\x63\145\142\x6f\x6f\x6b\x2f\x6d\x6f\137\x6f\x61\165\164\x68\x5f\x73\x65\164\164\151\156\x67\163\x2e\160\x68\160" => "\155\x6f\x5f\157\141\x75\x74\150\x5f\163\x65\x74\x74\x69\x6e\147\163"));
eF:
class group_profiling_add_on
{
function __construct()
{
register_activation_hook(__FILE__, array($this, "\x63\x68\145\x63\153\x5f\163\x6f\x6d\x65\x5f\157\x74\x68\145\x72\137\x70\x6c\x75\147\x69\x6e"));
update_option("\155\x6f\137\147\x70\x5f\x68\157\x73\164\x5f\x6e\141\x6d\145", "\150\164\x74\160\x73\72\x2f\57\x6c\x6f\x67\151\156\x2e\170\x65\x63\x75\x72\151\146\171\56\x63\x6f\155");
add_action("\141\144\155\151\x6e\137\x6d\145\156\165", array($this, "\147\x72\157\165\x70\137\160\x72\157\x66\x69\x6c\x69\x6e\147\x5f\x6d\x65\x6e\165"), 11);
add_action("\x61\144\155\x69\x6e\x5f\x69\x6e\x69\x74", "\x6d\151\156\151\157\162\141\156\x67\x65\x5f\163\x61\x76\145\137\163\145\x74\164\151\156\147\x5f\147\x72\157\x75\x70\x5f\x70\162\x6f\x66\x69\x6c\151\x6e\x67", 1);
register_deactivation_hook(__FILE__, array($this, "\x6d\x6f\137\147\x72\157\165\x70\x5f\160\162\x6f\x66\x69\x6c\151\x6e\147\137\144\x65\x61\x63\164\x69\x76\141\x74\x65"));
remove_action("\x61\x64\x6d\x69\x6e\137\x6e\x6f\x74\x69\x63\x65\163", array($this, "\x6d\x6f\x5f\147\x72\157\x75\x70\x5f\x70\x72\x6f\146\151\154\x69\x6e\x67\137\x73\165\143\143\x65\163\x73\137\x6d\x65\x73\x73\x61\x67\145"));
remove_action("\x61\x64\155\151\x6e\x5f\156\x6f\164\x69\x63\145\163", array($this, "\155\157\x5f\147\x72\x6f\x75\160\x5f\160\x72\157\x66\151\x6c\x69\x6e\147\137\145\x72\x72\157\162\x5f\155\x65\163\163\141\x67\x65"));
add_action("\x61\x64\x6d\x69\156\137\145\156\x71\x75\x65\165\x65\137\163\x63\162\x69\x70\164\x73", array($this, "\160\154\x75\x67\151\x6e\137\163\145\x74\164\x69\x6e\x67\x73\x5f\x73\x63\162\x69\160\164"));
add_action("\x61\144\155\151\156\137\x65\x6e\x71\165\145\x75\x65\x5f\163\143\162\x69\x70\x74\x73", array($this, "\x70\154\165\147\x69\x6e\x5f\163\x65\164\x74\151\156\x67\163\137\163\164\x79\x6c\145"));
if (!is_plugin_active("\147\x72\157\165\160\163\57\x67\162\x6f\165\160\x73\56\160\150\x70")) {
goto bA;
}
// add_action("\x6d\x6f\x5f\x73\141\155\154\137\x61\x74\x74\x72\151\x62\165\164\x65\x73", "\x67\x72\157\x75\160\x73\160\x72\x6f\x66\x69\x6c\x69\x6e\x67\x5f\x6c\157\147\x69\156\137\x69\x6e\x74\x65\147\x72\x61\x74\x69\157\x6e", 10, 7);
bA:
}
function group_profiling_menu()
{
if (!is_plugin_active("\x6d\x69\x6e\151\x6f\x72\141\x6e\x67\145\55\x73\x61\x6d\154\55\x32\x30\x2d\163\151\156\x67\154\x65\x2d\163\151\x67\x6e\x2d\x6f\156\x2d\155\x75\x6c\164\x69\x70\154\x65\x2d\x69\x64\160\x2f\154\157\147\x69\x6e\x2e\160\x68\160")) {
goto CE;
}
add_submenu_page("\155\x6f\137\163\x61\155\154\137\x73\x65\164\x74\x69\156\147\x73", "\x47\x72\157\x75\x70\x20\120\162\157\146\151\x6c\x69\156\x67", "\x47\x72\x6f\165\160\x20\120\x72\x6f\x66\151\x6c\x69\x6e\147", "\141\144\x6d\x69\156\x69\163\164\x72\x61\164\x6f\162", "\147\162\x6f\x75\x70\x5f\x70\x72\157\x66\x69\154\x69\x6e\x67", "\x67\162\x6f\x75\x70\137\x70\162\157\x66\151\154\151\x6e\x67");
return;
CE:
add_menu_page("\107\x72\157\x75\x70\40\120\162\x6f\146\151\x6c\151\156\x67", "\x47\162\157\165\x70\40\120\162\157\146\151\154\151\156\147", "\x61\144\155\151\x6e\151\x73\164\162\141\x74\157\x72", "\x67\162\157\x75\x70\137\x70\162\157\x66\151\x6c\151\156\x67", "\x67\x72\x6f\x75\160\137\160\x72\157\x66\x69\154\x69\156\147", plugin_dir_url(__FILE__) . "\x69\155\x61\147\x65\163\57\155\151\x6e\x69\x6f\x72\x61\156\147\x65\x2e\x70\156\147");
}
function mo_group_profiling_deactivate()
{
delete_option("\155\157\x5f\147\160\x5f\x68\x6f\x73\164\137\156\141\155\x65");
delete_option("\155\157\x5f\147\x70\x5f\155\x65\163\x73\141\x67\x65");
}
function plugin_settings_style($M9)
{
wp_enqueue_style("\155\157\137\x67\160\137\141\144\x6d\151\156\137\x73\x65\x74\164\151\156\x67\x73\x5f\163\164\x79\x6c\145", plugins_url("\151\156\x63\154\165\144\x65\x73\x2f\x63\163\x73\57\x73\164\171\154\x65\x5f\x73\145\x74\164\x69\156\x67\x73\56\155\151\x6e\56\x63\x73\x73", __FILE__));
wp_enqueue_style("\x6d\157\x5f\x67\160\x5f\141\144\x6d\x69\x6e\137\x73\145\164\x74\151\156\x67\163\137\160\x68\x6f\x6e\x65\137\x73\x74\x79\x6c\x65", plugins_url("\x69\156\143\154\165\144\145\163\57\x63\163\163\x2f\x70\150\x6f\156\145\56\x6d\151\x6e\56\x63\x73\163", __FILE__));
}
function plugin_settings_script($M9)
{
wp_enqueue_script("\x6a\x71\165\x65\x72\171");
wp_enqueue_script("\x6d\157\x5f\163\141\155\x6c\x5f\x61\144\155\x69\156\137\x73\145\164\164\151\x6e\x67\x73\137\163\143\162\151\160\x74", plugins_url("\151\156\x63\154\165\144\x65\163\x2f\x6a\x73\57\x73\x65\x74\164\x69\x6e\147\x73\56\x6d\x69\x6e\56\152\x73", __FILE__));
wp_enqueue_script("\155\157\137\x73\141\155\x6c\137\x61\x64\155\151\156\137\163\145\164\164\151\x6e\147\163\137\160\150\157\x6e\145\137\x73\x63\x72\x69\x70\x74", plugins_url("\151\156\x63\x6c\165\x64\145\163\x2f\152\163\x2f\x70\150\157\156\x65\x2e\155\x69\156\x2e\x6a\x73", __FILE__));
}
function mo_gp_show_success_message()
{
remove_action("\x61\144\155\151\x6e\137\156\157\x74\x69\143\145\163", array($this, "\155\x6f\137\x67\x72\x6f\165\x70\x5f\160\162\157\146\x69\x6c\151\156\147\x5f\x73\165\143\x63\145\163\x73\x5f\155\145\163\x73\x61\147\x65"));
add_action("\x61\x64\x6d\x69\156\137\x6e\157\x74\151\143\x65\163", array($this, "\x6d\157\137\x67\x72\157\x75\x70\137\160\162\157\146\x69\x6c\151\156\147\137\145\x72\x72\157\162\x5f\155\x65\x73\x73\x61\147\x65"));
}
function mo_gf_show_error_message()
{
remove_action("\x61\x64\155\x69\x6e\x5f\156\x6f\164\x69\143\x65\x73", array($this, "\155\157\x5f\147\162\157\x75\160\137\160\162\x6f\x66\151\154\151\156\147\x5f\145\162\x72\157\x72\137\155\x65\163\163\x61\x67\145"));
add_action("\x61\x64\x6d\x69\x6e\137\x6e\x6f\x74\x69\x63\x65\163", array($this, "\155\157\137\x67\162\157\165\160\137\160\x72\157\146\x69\154\x69\x6e\x67\x5f\163\165\x63\143\145\x73\x73\x5f\155\x65\x73\163\x61\x67\145"));
}
function mo_group_profiling_success_message()
{
$gb = "\x65\162\x72\x6f\162";
$MM = get_option("\155\157\x5f\x67\160\x5f\155\x65\x73\163\141\x67\x65");
echo "\74\144\151\166\x20\143\x6c\x61\163\163\x3d\x27" . $gb . "\x27\76\x20\x3c\x70\76" . $MM . "\x3c\57\x70\76\x3c\x2f\144\x69\x76\x3e";
}
function mo_group_profiling_error_message()
{
$gb = "\x75\x70\144\141\164\x65\x64";
$MM = get_option("\x6d\x6f\x5f\x67\160\137\x6d\145\x73\163\x61\x67\x65");
echo "\74\x64\x69\x76\40\x63\154\x61\x73\163\x3d\47" . $gb . "\x27\76\x3c\x70\76" . $MM . "\74\57\x70\76\74\x2f\x64\151\166\x3e";
}
function check_some_other_plugin()
{
foreach (PLUGIN_NAMES as $AP => $y5) {
if (!is_plugin_active($AP)) {
goto Xd;
}
update_option("\155\157\137\x67\x70\x5f\155\145\163\x73\141\x67\145", "\110\x65\x79\40\x74\x68\x65\x72\x65");
$this->mo_gp_show_success_message();
delete_option("\x6d\157\137\147\160\137\x6d\145\x73\163\x61\147\x65");
return;
Xd:
MM:
}
pn:
}
}
new group_profiling_add_on();
Function Calls
None |
Stats
MD5 | 26fc6ff9f213b68d0d181ee298783384 |
Eval Count | 0 |
Decode Time | 54 ms |