Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
public function mo_sps_embed_shortcode_sharepoint_library($KB = '', $LK = '') { ..
Decoded Output download
<? public function mo_sps_embed_shortcode_sharepoint_library($KB = '', $LK = '')
{
$current_user = wp_get_current_user();
$RA = (array) $current_user->roles;
$rT = $current_user->roles;
$current_user = wp_get_current_user();
$sk = $current_user->user_email;
$tS = get_users();
$JC = [];
foreach ($tS as $user) {
array_push($JC, $user->user_email);
Lw:
}
TH:
$KB = shortcode_atts(["home" => "root", "site_id" => '', "drive_id" => '', "folder_id" => '', "permissions" => '', "view_mode" => '', "anonymous_access" => '', "upload_access" => ''], $KB, "MO_SHAREPOINT_LIBRARY");
if (!($KB["anonymous_access"] == '' && !is_user_logged_in())) {
goto Vy;
}
return "<span style='display:block;margin-auto;height:100%;border:none;padding:0.6rem 1.2rem;'><span style='align-items:center'>Please <a href='" . home_url() . "/wp-login" . "'>login</a> to view the content.</span></span>";
Vy:
self::$upload_access = $KB["upload_access"];
if (isset($KB["view_mode"]) && $KB["view_mode"] == "Grid_View") {
goto HW;
}
$LK = $this->table_content_for_shortcode();
goto vu;
HW:
$LK = $this->grid_content_for_shortcode();
vu:
$k_ = plugins_url("../includes/js/docLibEmbed.js", __FILE__);
wp_enqueue_script("mo_doc_lib_scembed_js", $k_, array("jquery"));
$ZX = plugins_url("../includes/css/doclib.css", __FILE__);
wp_enqueue_style("mo_doc_lib_scembed_css", $ZX, array());
$Vj = plugins_url("../includes/js/upload.js", __FILE__);
wp_enqueue_script("mo_doc_lib_scupload_js", $Vj, array("jquery"));
$MT = plugins_url("../includes/css/modal.css", __FILE__);
wp_enqueue_style("mo_doc_preview_modal_css", $MT, array());
$n2 = plugins_url("../includes/js/modal.js", __FILE__);
wp_enqueue_script("mo_doc_preview_modal_js", $n2, array("jquery"));
wp_localize_script("mo_doc_lib_scembed_js", "embedConfig", ["ajax_url" => admin_url("admin-ajax.php"), "nonce" => wp_create_nonce("mo_doc_lib_embed__nonce"), "home" => $KB["home"], "site_id" => $KB["site_id"], "drive_id" => $KB["drive_id"], "folder_id" => $KB["folder_id"], "permissions" => $KB["permissions"], "roles" => $rT, "user_emails" => $JC, "current_user" => $sk, "view_mode" => $KB["view_mode"], "current_role" => $RA, "is_shortcode" => true, "mime_types" => pluginConstants::MIME_TYPES, "folder_icon" => esc_url(plugin_dir_url(__FILE__) . "../images/folder.png"), "load_icon" => esc_url(plugin_dir_url(__FILE__) . "../images/image_loader.gif"), "load_icon_true" => esc_url(plugin_dir_url(__FILE__) . "../images/loader.gif"), "file_icon" => esc_url(plugin_dir_url(__FILE__) . "../images/file.png"), "worddoc_icon" => esc_url(plugin_dir_url(__FILE__) . "../images/msword_file.png"), "exceldoc_icon" => esc_url(plugin_dir_url(__FILE__) . "../images/msexcel_file.png"), "pdfdoc_icon" => esc_url(plugin_dir_url(__FILE__) . "../images/pdf_file.png"), "download_icon" => esc_url(plugin_dir_url(__FILE__) . "../images/Download_customer.svg"), "empty_folder_image" => esc_url(plugin_dir_url(__FILE__) . "../images/empty_folder_drop.svg"), "url_icon" => esc_url(plugin_dir_url(__FILE__) . "../images/browser.png")]);
$Ba = "<div id="sps_embed_container" style="display:block;margin-auto;height:" . "100%" . ";border:none;padding:0.6rem 1.2rem;background-color:#f24674;">
<p style="text-align:center;margin:0;"><a style="color: #fff;\xa text-decoration: none;font-weight: 500;" href="https://login.xecurify.com/moas/login?redirectUrl=https://login.xecurify.com/moas/initializepayment&requestOrigin=wp_sharepoint_premium_plan" target="_blank">Please purchase the license to continue use this plugin</a></p></div>";
return self::$isliveri ? $LK : $Ba;
} ?>
Did this file decode correctly?
Original Code
public function mo_sps_embed_shortcode_sharepoint_library($KB = '', $LK = '')
{
$current_user = wp_get_current_user();
$RA = (array) $current_user->roles;
$rT = $current_user->roles;
$current_user = wp_get_current_user();
$sk = $current_user->user_email;
$tS = get_users();
$JC = [];
foreach ($tS as $user) {
array_push($JC, $user->user_email);
Lw:
}
TH:
$KB = shortcode_atts(["\150\x6f\155\145" => "\162\157\157\164", "\x73\x69\x74\x65\x5f\x69\144" => '', "\144\x72\151\x76\x65\x5f\x69\144" => '', "\146\157\x6c\144\145\162\137\x69\x64" => '', "\160\145\x72\x6d\151\163\163\151\157\156\163" => '', "\x76\151\x65\167\x5f\x6d\x6f\144\x65" => '', "\141\x6e\157\156\x79\x6d\157\165\163\x5f\141\x63\143\x65\x73\163" => '', "\165\160\x6c\157\x61\x64\137\141\143\x63\145\x73\x73" => ''], $KB, "\115\117\x5f\x53\110\101\122\105\x50\x4f\111\x4e\124\137\x4c\111\x42\x52\x41\122\x59");
if (!($KB["\141\x6e\x6f\156\171\x6d\157\x75\163\x5f\141\x63\x63\145\163\163"] == '' && !is_user_logged_in())) {
goto Vy;
}
return "\74\x73\x70\141\x6e\40\x73\x74\171\154\x65\75\47\x64\151\x73\160\154\141\171\72\x62\154\157\143\153\73\x6d\x61\x72\x67\151\x6e\55\141\165\x74\157\x3b\x68\145\151\x67\150\x74\x3a\61\x30\x30\45\73\142\157\162\x64\x65\x72\72\x6e\x6f\x6e\x65\73\160\141\144\x64\x69\156\x67\x3a\x30\56\66\162\145\x6d\x20\61\56\x32\162\145\x6d\73\x27\x3e\x3c\163\160\x61\x6e\x20\x73\164\x79\x6c\x65\75\47\141\154\x69\x67\x6e\55\151\164\145\x6d\163\x3a\143\x65\156\164\x65\x72\x27\x3e\120\154\145\141\x73\x65\40\74\141\40\150\162\x65\146\x3d\47" . home_url() . "\57\x77\x70\x2d\x6c\157\147\151\156" . "\x27\x3e\154\x6f\147\x69\156\74\57\141\76\40\164\x6f\40\x76\x69\x65\167\40\164\x68\145\x20\x63\x6f\156\x74\145\x6e\x74\56\x3c\x2f\163\x70\x61\x6e\x3e\x3c\x2f\163\x70\141\156\x3e";
Vy:
self::$upload_access = $KB["\165\x70\154\x6f\x61\144\137\x61\143\x63\x65\x73\163"];
if (isset($KB["\x76\151\x65\167\x5f\x6d\x6f\144\145"]) && $KB["\x76\151\145\167\137\155\x6f\x64\145"] == "\x47\162\151\144\137\x56\151\145\167") {
goto HW;
}
$LK = $this->table_content_for_shortcode();
goto vu;
HW:
$LK = $this->grid_content_for_shortcode();
vu:
$k_ = plugins_url("\56\x2e\x2f\x69\156\143\154\165\144\145\x73\57\152\163\x2f\x64\157\143\x4c\x69\x62\105\155\x62\145\144\x2e\x6a\x73", __FILE__);
wp_enqueue_script("\x6d\157\137\x64\x6f\x63\x5f\154\151\142\137\163\x63\x65\x6d\x62\145\144\x5f\x6a\163", $k_, array("\x6a\161\x75\145\x72\171"));
$ZX = plugins_url("\56\x2e\x2f\x69\x6e\143\154\x75\144\x65\x73\x2f\x63\x73\163\x2f\x64\157\143\x6c\151\x62\56\x63\163\163", __FILE__);
wp_enqueue_style("\x6d\157\x5f\144\x6f\143\137\x6c\x69\142\x5f\163\143\145\x6d\x62\x65\x64\x5f\143\x73\163", $ZX, array());
$Vj = plugins_url("\56\x2e\57\x69\156\x63\x6c\165\144\145\163\x2f\x6a\x73\x2f\x75\160\x6c\157\x61\x64\56\x6a\163", __FILE__);
wp_enqueue_script("\155\x6f\x5f\x64\x6f\143\137\x6c\x69\142\137\x73\143\x75\x70\154\157\x61\144\137\x6a\163", $Vj, array("\152\x71\x75\145\x72\x79"));
$MT = plugins_url("\56\56\57\151\x6e\143\x6c\165\x64\x65\163\x2f\143\163\x73\x2f\155\157\144\141\154\x2e\x63\x73\163", __FILE__);
wp_enqueue_style("\155\157\x5f\144\157\143\137\x70\162\x65\x76\x69\x65\x77\x5f\155\x6f\144\141\154\137\x63\x73\x73", $MT, array());
$n2 = plugins_url("\x2e\56\57\151\156\143\x6c\165\144\145\163\57\152\163\57\x6d\157\144\141\154\56\152\x73", __FILE__);
wp_enqueue_script("\155\157\137\x64\x6f\x63\137\x70\x72\145\x76\x69\145\x77\137\x6d\x6f\x64\141\154\137\152\163", $n2, array("\152\x71\165\145\x72\171"));
wp_localize_script("\155\x6f\137\144\157\x63\137\154\151\142\x5f\x73\x63\x65\x6d\142\x65\144\x5f\x6a\163", "\x65\x6d\142\x65\x64\x43\x6f\x6e\146\151\147", ["\x61\x6a\141\x78\x5f\x75\x72\x6c" => admin_url("\x61\144\x6d\151\156\55\141\x6a\x61\170\x2e\x70\150\x70"), "\156\x6f\156\143\x65" => wp_create_nonce("\155\x6f\x5f\144\157\143\137\x6c\x69\x62\137\x65\155\142\145\x64\x5f\137\x6e\157\156\143\x65"), "\x68\x6f\155\145" => $KB["\150\x6f\155\145"], "\163\x69\164\x65\137\x69\x64" => $KB["\x73\151\164\x65\137\x69\144"], "\144\162\151\x76\145\137\x69\144" => $KB["\x64\x72\151\x76\145\x5f\151\144"], "\x66\x6f\x6c\x64\x65\162\137\x69\144" => $KB["\146\157\x6c\144\145\162\137\x69\x64"], "\160\x65\162\x6d\x69\x73\x73\x69\x6f\x6e\163" => $KB["\x70\145\x72\155\x69\x73\x73\x69\x6f\x6e\x73"], "\x72\x6f\x6c\145\x73" => $rT, "\x75\163\x65\x72\137\145\x6d\x61\x69\x6c\x73" => $JC, "\143\x75\x72\162\x65\x6e\164\137\165\163\145\162" => $sk, "\x76\x69\145\x77\137\155\x6f\x64\x65" => $KB["\166\x69\145\167\x5f\155\157\x64\x65"], "\143\165\162\x72\x65\156\x74\x5f\162\x6f\x6c\145" => $RA, "\x69\x73\137\x73\150\x6f\162\x74\143\157\x64\145" => true, "\155\151\155\x65\x5f\164\x79\x70\145\x73" => pluginConstants::MIME_TYPES, "\x66\157\154\144\x65\162\x5f\151\143\x6f\x6e" => esc_url(plugin_dir_url(__FILE__) . "\x2e\x2e\57\151\x6d\x61\x67\x65\x73\57\146\x6f\154\144\145\x72\x2e\x70\156\147"), "\x6c\x6f\141\x64\x5f\x69\x63\157\x6e" => esc_url(plugin_dir_url(__FILE__) . "\56\56\x2f\151\x6d\x61\147\x65\163\x2f\151\x6d\x61\x67\x65\x5f\154\x6f\141\144\145\162\x2e\x67\x69\x66"), "\154\157\x61\x64\137\151\x63\x6f\x6e\137\164\x72\x75\x65" => esc_url(plugin_dir_url(__FILE__) . "\x2e\x2e\x2f\x69\155\141\x67\145\x73\x2f\154\157\141\x64\145\x72\x2e\x67\151\146"), "\x66\x69\x6c\145\137\151\143\157\x6e" => esc_url(plugin_dir_url(__FILE__) . "\56\56\57\x69\155\141\147\145\163\x2f\x66\x69\154\145\x2e\160\x6e\x67"), "\x77\x6f\x72\144\144\157\x63\x5f\151\x63\157\x6e" => esc_url(plugin_dir_url(__FILE__) . "\56\x2e\57\x69\x6d\x61\x67\x65\x73\x2f\x6d\163\167\x6f\x72\x64\x5f\146\151\154\145\x2e\160\156\147"), "\x65\170\x63\x65\154\144\x6f\143\137\x69\143\x6f\156" => esc_url(plugin_dir_url(__FILE__) . "\x2e\56\x2f\151\155\x61\x67\145\x73\57\x6d\x73\x65\170\x63\145\154\137\x66\151\154\x65\56\160\156\x67"), "\160\144\146\144\x6f\143\137\151\x63\x6f\x6e" => esc_url(plugin_dir_url(__FILE__) . "\56\56\x2f\151\x6d\x61\x67\145\163\57\160\x64\x66\137\x66\x69\154\145\x2e\x70\156\147"), "\x64\157\x77\156\x6c\x6f\x61\x64\x5f\x69\x63\x6f\x6e" => esc_url(plugin_dir_url(__FILE__) . "\x2e\x2e\x2f\151\155\x61\x67\x65\x73\57\104\157\167\156\x6c\x6f\x61\144\137\x63\165\163\x74\x6f\x6d\145\x72\x2e\x73\x76\x67"), "\x65\x6d\x70\164\x79\x5f\146\x6f\x6c\144\x65\162\137\151\155\141\x67\145" => esc_url(plugin_dir_url(__FILE__) . "\x2e\56\57\x69\155\x61\147\145\163\x2f\x65\155\x70\x74\171\137\146\x6f\x6c\x64\x65\x72\x5f\144\x72\157\160\56\x73\166\147"), "\165\162\x6c\137\x69\143\x6f\156" => esc_url(plugin_dir_url(__FILE__) . "\56\x2e\57\151\155\141\x67\145\163\57\x62\162\157\x77\x73\145\162\x2e\160\156\147")]);
$Ba = "\74\x64\x69\166\40\151\144\75\42\x73\x70\163\137\145\155\x62\x65\144\x5f\143\157\x6e\x74\141\x69\x6e\x65\162\x22\x20\163\164\x79\154\x65\x3d\42\x64\151\163\160\x6c\141\171\x3a\x62\x6c\157\x63\153\73\x6d\141\x72\147\x69\x6e\x2d\x61\x75\164\157\x3b\x68\145\151\x67\150\x74\x3a" . "\x31\x30\x30\x25" . "\x3b\142\x6f\x72\x64\145\x72\72\156\157\156\x65\73\160\141\144\144\x69\156\147\72\x30\x2e\66\162\145\155\40\x31\x2e\x32\x72\145\x6d\73\142\x61\143\153\147\x72\x6f\165\156\x64\x2d\143\x6f\x6c\x6f\x72\72\43\146\x32\x34\x36\x37\64\73\42\x3e\12\40\40\40\40\40\x20\x20\x20\74\x70\x20\163\164\x79\154\x65\75\x22\x74\145\170\x74\55\141\x6c\151\147\156\x3a\143\145\x6e\164\145\162\x3b\155\x61\x72\x67\x69\156\72\x30\x3b\x22\x3e\x3c\141\x20\x73\x74\x79\154\x65\75\x22\143\157\x6c\157\x72\x3a\x20\x23\146\x66\x66\x3b\xa\x20\x20\x20\x20\40\x20\40\40\164\x65\x78\164\55\x64\x65\x63\157\x72\141\x74\x69\157\x6e\x3a\x20\156\x6f\x6e\145\73\146\157\156\164\55\x77\145\x69\x67\x68\x74\x3a\x20\x35\x30\x30\x3b\42\x20\x68\x72\x65\x66\x3d\x22\150\164\164\160\163\x3a\57\57\x6c\157\147\151\156\56\170\x65\x63\165\162\x69\x66\171\56\143\157\x6d\57\155\157\141\x73\x2f\x6c\x6f\147\151\156\x3f\x72\x65\x64\x69\x72\x65\143\x74\125\x72\x6c\75\x68\164\164\160\x73\x3a\x2f\57\154\x6f\x67\x69\x6e\x2e\x78\145\143\x75\x72\x69\146\x79\x2e\x63\157\155\57\155\157\x61\163\x2f\151\156\x69\x74\x69\x61\x6c\x69\172\145\160\x61\171\x6d\x65\156\164\x26\162\x65\x71\165\145\x73\164\117\162\151\147\151\156\x3d\x77\x70\x5f\x73\150\141\162\x65\160\157\151\x6e\164\137\160\162\145\x6d\151\165\x6d\x5f\160\x6c\141\156\42\40\x74\x61\x72\147\x65\x74\x3d\42\x5f\142\x6c\x61\x6e\153\x22\76\x50\154\145\141\x73\x65\x20\160\165\162\x63\x68\x61\163\x65\40\x74\x68\x65\40\x6c\x69\x63\x65\156\x73\145\40\164\157\40\143\x6f\156\164\x69\156\x75\145\40\165\x73\145\x20\x74\x68\151\163\40\160\154\x75\x67\x69\156\74\x2f\141\x3e\x3c\x2f\x70\x3e\x3c\x2f\x64\x69\166\x3e";
return self::$isliveri ? $LK : $Ba;
}
Function Calls
None |
Stats
MD5 | 5a7136bea7d2768cdd1768649bae8b42 |
Eval Count | 0 |
Decode Time | 41 ms |