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 /* * User Role Editor plugin uninstall script * Author: [email protected] * ..
Decoded Output download
<?php
/*
* User Role Editor plugin uninstall script
* Author: [email protected]
*
*/
global $wpdb;
if (!defined('ABSPATH') || !defined('WP_UNINSTALL_PLUGIN')) {
exit(); // silence is golden
}
function ure_delete_options() {
global $wpdb;
$backup_option_name = $wpdb->prefix.'backup_user_roles';
delete_option($backup_option_name);
delete_option('ure_caps_readable');
delete_option('ure_show_deprecated_caps');
delete_option('ure_hide_pro_banner');
delete_option('user_role_editor');
delete_option('ure_role_additional_options_values');
delete_option('ure_task_queue');
}
if (!is_multisite()) {
ure_delete_options();
} else {
$old_blog = $wpdb->blogid;
// Get all blog ids
$blogIds = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
foreach ($blogIds as $blog_id) {
switch_to_blog($blog_id);
ure_delete_options();
}
switch_to_blog($old_blog);
}
?>
Did this file decode correctly?
Original Code
<?php
/*
* User Role Editor plugin uninstall script
* Author: [email protected]
*
*/
global $wpdb;
if (!defined('ABSPATH') || !defined('WP_UNINSTALL_PLUGIN')) {
exit(); // silence is golden
}
function ure_delete_options() {
global $wpdb;
$backup_option_name = $wpdb->prefix.'backup_user_roles';
delete_option($backup_option_name);
delete_option('ure_caps_readable');
delete_option('ure_show_deprecated_caps');
delete_option('ure_hide_pro_banner');
delete_option('user_role_editor');
delete_option('ure_role_additional_options_values');
delete_option('ure_task_queue');
}
if (!is_multisite()) {
ure_delete_options();
} else {
$old_blog = $wpdb->blogid;
// Get all blog ids
$blogIds = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
foreach ($blogIds as $blog_id) {
switch_to_blog($blog_id);
ure_delete_options();
}
switch_to_blog($old_blog);
}
Function Calls
defined | 1 |
Stats
MD5 | 5f499fc1a8a35ae3d58f72d5fcbcc336 |
Eval Count | 0 |
Decode Time | 105 ms |