Server IP : 192.64.118.117 / Your IP : 3.148.145.200 Web Server : LiteSpeed System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64 User : thecgapy ( 1160) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/thecgapy/mobilecreationz.com/wp-content/plugins/duplicator/ |
Upload File : |
<?php /** * Fired when the plugin is uninstalled. */ // If uninstall not called from WordPress, then exit if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { exit; } require_once 'define.php'; require_once 'classes/settings.php'; require_once 'classes/utility.php'; global $wpdb; $DUP_Settings = new DUP_Settings(); $table_name = $wpdb->prefix . "duplicator_packages"; $wpdb->query("DROP TABLE `{$table_name}`"); delete_option('duplicator_version_plugin'); //Remvoe entire wp-snapshots directory if (DUP_Settings::Get('uninstall_files')) { $ssdir = DUP_Util::SafePath(DUPLICATOR_SSDIR_PATH); $ssdir_tmp = DUP_Util::SafePath(DUPLICATOR_SSDIR_PATH_TMP); //Sanity check for strange setup $check = glob("{$ssdir}/wp-config.php"); if (count($check) == 0) { //PHP sanity check foreach (glob("{$ssdir}/*_database.sql") as $file) { if (strstr($file, '_database.sql')) @unlink("{$file}"); } foreach (glob("{$ssdir}/*_installer.php") as $file) { if (strstr($file, '_installer.php')) @unlink("{$file}"); } foreach (glob("{$ssdir}/*_archive.zip") as $file) { if (strstr($file, '_archive.zip')) @unlink("{$file}"); } foreach (glob("{$ssdir}/*_scan.json") as $file) { if (strstr($file, '_scan.json')) @unlink("{$file}"); } foreach (glob("{$ssdir}/*.log") as $file) { if (strstr($file, '.log')) @unlink("{$file}"); } //Check for core files and only continue removing data if the snapshots directory //has not been edited by 3rd party sources, this helps to keep the system stable $files = glob("{$ssdir}/*"); if (is_array($files) && count($files) < 6) { $defaults = array("{$ssdir}/index.php", "{$ssdir}/robots.txt", "{$ssdir}/dtoken.php"); $compare = array_diff($defaults, $files); //There might be a .htaccess file or index.php/html etc. if (count($compare) < 3) { foreach ($defaults as $file) { @unlink("{$file}"); } @unlink("{$ssdir}/.htaccess"); @rmdir($ssdir_tmp); @rmdir($ssdir); } } } } //Remove all Settings if (DUP_Settings::Get('uninstall_settings')) { DUP_Settings::Delete(); delete_option('duplicator_ui_view_state'); delete_option('duplicator_package_active'); } ?>