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 Login Form Addon * Plugin URI: http://miniorange...
Decoded Output download
<?php
/**
* Plugin Name: Miniorange Login Form Addon
* Plugin URI: http://miniorange.com
* Description: This plugin enables miniOrange OAuth Client Plugin to use a short code to login to your WordPress site using OAuth apps like Google, Facebook, EVE Online and other.
* Version: 1.0.2
* Author: miniOrange
* Author URI: https://www.miniorange.com
*/
require_once "_autoload.php";
require_once "classes/class-mo-login-form-widget.php";
use MoOauthClient\MOUtils;
function register_mo_oauth_login_form_widget()
{
register_widget("\MoLoginForm\LoginWidget");
}
add_action("widgets_init", "register_mo_oauth_login_form_widget");
add_action("init", "mo_oauth_loginform_process_login");
function mo_oauth_loginform_process_login()
{
if (!(isset($_POST["option"]) && sanitize_text_field(wp_unslash($_POST["option"])) == "mo_oauth_login_form_submit")) {
goto U4;
}
$pP = isset($_POST["user_login"]) ? sanitize_text_field($_POST["user_login"]) : '';
$wR = isset($_POST["user_pass"]) ? stripslashes($_POST["user_pass"]) : '';
$Ge = isset($_POST["rememberme"]) && sanitize_text_field($_POST["rememberme"]) ? true : false;
$user = wp_authenticate($pP, $wR);
if (!is_wp_error($user)) {
goto J2;
}
$L_ = session_id();
$IU = "mo_oauth_loginform_error" . $L_;
update_option($IU, $user->get_error_message());
$VR = (isset($_SERVER["HTTPS"]) ? "https" : "http") . "://{$_SERVER["HTTP_HOST"]}{$_SERVER["REQUEST_URI"]}";
wp_safe_redirect($VR);
exit;
J2:
$yI = new MoOAuthClient\MOUtils();
$Q3 = $yI->get_plugin_config();
$tc = $Q3->get_config("after_login_url");
$Uo = !empty($tc) ? $tc : home_url();
wp_set_current_user($user->ID);
wp_set_auth_cookie($user->ID, $Ge);
wp_safe_redirect($Uo);
exit;
U4:
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* Plugin Name: Miniorange Login Form Addon
* Plugin URI: http://miniorange.com
* Description: This plugin enables miniOrange OAuth Client Plugin to use a short code to login to your WordPress site using OAuth apps like Google, Facebook, EVE Online and other.
* Version: 1.0.2
* Author: miniOrange
* Author URI: https://www.miniorange.com
*/
require_once "\137\x61\165\164\157\x6c\x6f\x61\144\56\x70\x68\160";
require_once "\143\154\141\x73\163\x65\x73\x2f\143\154\x61\163\x73\x2d\155\x6f\55\x6c\x6f\x67\x69\x6e\x2d\146\157\162\x6d\55\x77\151\x64\147\145\164\56\x70\x68\160";
use MoOauthClient\MOUtils;
function register_mo_oauth_login_form_widget()
{
register_widget("\x5c\x4d\x6f\x4c\157\147\x69\x6e\106\x6f\162\x6d\134\x4c\157\147\x69\x6e\x57\151\x64\x67\145\x74");
}
add_action("\167\x69\x64\x67\145\164\x73\137\151\x6e\151\x74", "\162\145\147\x69\x73\164\x65\162\137\155\157\137\x6f\x61\165\164\x68\x5f\154\x6f\x67\x69\156\x5f\146\157\x72\x6d\137\167\151\144\x67\145\x74");
add_action("\151\156\151\x74", "\x6d\157\137\157\x61\165\164\x68\x5f\x6c\157\147\151\156\x66\157\x72\x6d\137\x70\162\157\x63\145\163\163\137\154\x6f\147\151\x6e");
function mo_oauth_loginform_process_login()
{
if (!(isset($_POST["\x6f\x70\x74\x69\x6f\x6e"]) && sanitize_text_field(wp_unslash($_POST["\157\x70\x74\x69\x6f\x6e"])) == "\x6d\x6f\x5f\x6f\141\165\164\x68\x5f\x6c\x6f\x67\151\x6e\137\146\x6f\162\x6d\x5f\x73\x75\142\x6d\151\164")) {
goto U4;
}
$pP = isset($_POST["\165\163\145\x72\x5f\154\x6f\147\x69\156"]) ? sanitize_text_field($_POST["\x75\163\x65\x72\137\154\157\x67\x69\156"]) : '';
$wR = isset($_POST["\x75\163\145\x72\137\160\141\163\x73"]) ? stripslashes($_POST["\165\x73\x65\162\137\x70\141\163\x73"]) : '';
$Ge = isset($_POST["\162\x65\155\145\155\x62\x65\x72\155\x65"]) && sanitize_text_field($_POST["\162\145\155\145\155\x62\x65\x72\155\x65"]) ? true : false;
$user = wp_authenticate($pP, $wR);
if (!is_wp_error($user)) {
goto J2;
}
$L_ = session_id();
$IU = "\155\x6f\137\x6f\x61\165\164\150\137\x6c\x6f\147\x69\x6e\x66\157\162\x6d\137\145\x72\x72\x6f\x72" . $L_;
update_option($IU, $user->get_error_message());
$VR = (isset($_SERVER["\x48\124\124\120\x53"]) ? "\x68\x74\x74\160\163" : "\x68\x74\164\160") . "\72\57\x2f{$_SERVER["\x48\124\124\120\137\110\117\123\124"]}{$_SERVER["\122\105\121\125\x45\123\124\x5f\125\x52\111"]}";
wp_safe_redirect($VR);
exit;
J2:
$yI = new MoOAuthClient\MOUtils();
$Q3 = $yI->get_plugin_config();
$tc = $Q3->get_config("\x61\x66\164\x65\162\137\154\157\x67\151\156\x5f\x75\162\154");
$Uo = !empty($tc) ? $tc : home_url();
wp_set_current_user($user->ID);
wp_set_auth_cookie($user->ID, $Ge);
wp_safe_redirect($Uo);
exit;
U4:
}
Function Calls
None |
Stats
MD5 | c1c33cbfb10635c86fe377884ee33acc |
Eval Count | 0 |
Decode Time | 39 ms |