GRAYBYTE WORDPRESS FILE MANAGER9176

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/universaltoursandtravels.co.in/wp-content/plugins/clearfy/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/universaltoursandtravels.co.in/wp-content/plugins/clearfy//uninstall.php
<?php
// @formatter:off
// if uninstall.php is not called by WordPress, die
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
	die;
}

global $wpdb;

require_once ABSPATH . '/wp-admin/includes/plugin.php';

// Delete MU plugin created by assets manager
if ( file_exists( WPMU_PLUGIN_DIR . "/assets-manager.php" ) ) {
	@unlink( WPMU_PLUGIN_DIR . '/assets-manager.php' );
}

$package_plugin_basename = 'clearfy_package/clearfy-package.php';

if ( is_plugin_active( $package_plugin_basename ) ) {
	if ( is_multisite() && is_plugin_active_for_network( $package_plugin_basename ) ) {
		deactivate_plugins( $package_plugin_basename, false, true );
	} else {
		deactivate_plugins( $package_plugin_basename );
	}
}

delete_plugins( array( $package_plugin_basename ) );

// ==============================================================================================

$can_unistall = false;

if ( is_multisite() ) {
	$can_unistall = get_site_option( 'wbcr_clearfy_complete_uninstall' );
} else {
	$can_unistall = get_option( 'wbcr_clearfy_complete_uninstall' );
}

if ( ! $can_unistall ) {
	return;
}

/**
 * Удаление кеша и опций
 */
function uninstall() {
	// remove plugin options
	global $wpdb;

	$wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name = 'factory_plugin_activated_wbcr_clearfy';" );
	$wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE 'wbcr-clearfy_%';" );
	$wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE 'wbcr_clearfy_%';" );
	$wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE 'wbcr_wp_term_%';" );
	$wpdb->query( "DELETE FROM {$wpdb->postmeta} WHERE meta_key='wbcr_wp_old_slug';" );

	$dismissed_pointers = explode( ',', get_user_meta( get_current_user_id(), 'dismissed_wp_pointers', true ) );

	if ( in_array( 'wbcr_clearfy_settings_pointer_1_4_2', $dismissed_pointers ) ) {
		$key = array_search( 'wbcr_clearfy_settings_pointer_1_4_2', $dismissed_pointers );
		if ( isset( $dismissed_pointers[ $key ] ) ) {
			unset( $dismissed_pointers[ $key ] );
			if ( ! empty( $dismissed_pointers ) ) {
				update_user_meta( get_current_user_id(), 'dismissed_wp_pointers', implode( ',', $dismissed_pointers ) );
			} else {
				delete_user_meta( get_current_user_id(), 'dismissed_wp_pointers' );
			}
		}
	}
}

if ( is_multisite() ) {
	global $wpdb, $wp_version;

	$wpdb->query( "DELETE FROM {$wpdb->sitemeta} WHERE meta_key LIKE 'wbcr_clearfy_%';" );

	$blogs = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" );

	if ( ! empty( $blogs ) ) {
		foreach ( $blogs as $id ) {

			switch_to_blog( $id );

			uninstall();

			restore_current_blog();
		}
	}
} else {
	uninstall();
}

//todo: добавить функции очистки для компонентов
// @formatter:on

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 11 2025 13:53:58
giriqfky / giriqfky
0755
admin
--
July 01 2025 06:23:22
giriqfky / giriqfky
0755
assets
--
July 01 2025 06:23:22
giriqfky / giriqfky
0755
components
--
July 01 2025 06:23:22
giriqfky / giriqfky
0755
includes
--
July 01 2025 06:23:22
giriqfky / giriqfky
0755
languages
--
July 01 2025 06:23:22
giriqfky / giriqfky
0755
libs
--
July 01 2025 06:23:22
giriqfky / giriqfky
0755
migrations
--
July 01 2025 06:23:22
giriqfky / giriqfky
0755
templates
--
July 01 2025 06:23:22
giriqfky / giriqfky
0755
clearfy.php
7.048 KB
April 08 2025 09:53:34
giriqfky / giriqfky
0644
index.php
0.027 KB
April 08 2025 09:53:34
giriqfky / giriqfky
0644
readme.txt
43.265 KB
April 08 2025 09:53:34
giriqfky / giriqfky
0644
uninstall.php
2.694 KB
April 08 2025 09:53:34
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF