403Webshell
Server IP : 14.225.204.176  /  Your IP : 216.73.216.6
Web Server : nginx/1.24.0
System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64
User : root ( 0)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/php/harmoniegolfpark.com/wp-content/plugins/user-role-editor/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/php/harmoniegolfpark.com/wp-content/plugins/user-role-editor/uninstall.php
<?php
/* 
 * User Role Editor plugin uninstall script
 * Author: vladimir@shinephp.com
 *
 */

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
  $network = get_current_site();
  $query = $wpdb->prepare(
                    "SELECT blog_id FROM {$wpdb->blogs} WHERE site_id=%d",
                    array($network->id)
                         );
  $blogIds = $wpdb->get_col($query);
  foreach ($blogIds as $blog_id) {
    switch_to_blog($blog_id);
    ure_delete_options();    
  }
  switch_to_blog($old_blog);
}

Youez - 2016 - github.com/yon3zu
LinuXploit