$71 GRAYBYTE WORDPRESS FILE MANAGER $84

SERVER : premium267.web-hosting.com #1 SMP Wed Jun 4 13:01:13 UTC 2025
SERVER IP : 69.57.162.29 | ADMIN IP 216.73.216.187
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/njinenkb/public_html/wp-content/plugins/backup-backup/

HOME
Current File : /home/njinenkb/public_html/wp-content/plugins/backup-backup//uninstall.php
<?php

  // Namespace
  namespace BMI\Plugin\Uninstaller;

  // Exit on direct access
  if (!defined('ABSPATH')) exit;

  // Get config file
  $configFile = WP_CONTENT_DIR . DIRECTORY_SEPARATOR . 'backup-migration-config.php';

  if (!file_exists($configFile)) {
    return;
  }

  $config = file_get_contents($configFile);
  $config = json_decode(substr($config, 8), true);


  $deleteBackups = $config['OTHER:UNINSTALL:BACKUPS'];
  $deleteConfigs = $config['OTHER:UNINSTALL:CONFIGS'];


  if ($deleteBackups === 'true' || $deleteBackups === true) {
      $backupsPath = $config['STORAGE::LOCAL::PATH'];
      $backupsPath = $backupsPath . DIRECTORY_SEPARATOR . 'backups';

    if (file_exists($backupsPath) && is_dir($backupsPath)) {

      $files = scandir($backupsPath);
      for ($i = 0; $i < sizeof($files); ++$i) {

        $file = $backupsPath . DIRECTORY_SEPARATOR . $files[$i];
        if (is_file($file) && !in_array($files[$i], ['.', '..'])) {
          @unlink($file);
        }

      }

      $files = scandir($backupsPath);
      if (sizeof($files) <= 2) rmdir($backupsPath);

    }
  }

  if ($deleteConfigs === 'true' || $deleteConfigs === true) {
    $configFile = WP_CONTENT_DIR . DIRECTORY_SEPARATOR . 'backup-migration-config.php';

    if (file_exists($configFile)) {
      @unlink($configFile);
    }

    global $wpdb;


    $free_options = $wpdb->get_results( "SELECT option_name FROM $wpdb->options WHERE option_name LIKE '%bmi_%' OR option_name LIKE '%bmip_%' OR option_name LIKE '%bmi_pro_%'" );

    foreach( $free_options as $option ) {
        delete_option( $option->option_name );
    }
    
  }

Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
9 May 2026 11.52 AM
njinenkb / njinenkb
0755
admin
--
3 May 2026 11.31 AM
njinenkb / njinenkb
0755
analyst
--
3 May 2026 11.31 AM
njinenkb / njinenkb
0755
includes
--
3 May 2026 11.31 AM
njinenkb / njinenkb
0755
modules
--
3 May 2026 11.31 AM
njinenkb / njinenkb
0755
backup-backup.php
1.97 KB
21 Apr 2026 11.11 PM
njinenkb / njinenkb
0644
composer.json
0.064 KB
21 Apr 2026 11.11 PM
njinenkb / njinenkb
0644
phpunit.xml
0.34 KB
21 Apr 2026 11.11 PM
njinenkb / njinenkb
0644
readme.txt
22.257 KB
21 Apr 2026 11.11 PM
njinenkb / njinenkb
0644
uninstall.php
1.651 KB
21 Apr 2026 11.11 PM
njinenkb / njinenkb
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF