403Webshell
Server IP : 217.160.0.15  /  Your IP : 216.73.216.30
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u37981780 ( 1696858)
PHP Version : 8.2.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /homepages/43/d124547881/htdocs/chocadoodle.co.uk/wp-content/plugins/contact-bank/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /homepages/43/d124547881/htdocs/chocadoodle.co.uk/wp-content/plugins/contact-bank/uninstall.php
<?php
/**
 * This file is used for plugin uninstall.
 *
 * @author   Tech Banker
 * @package  contact-bank
 * @version  3.1.0
 */

if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
	die;
} else {
	if ( ! current_user_can( 'manage_options' ) ) {
			return;
	} else {
		global $wpdb;
		if ( is_multisite() ) {
			$blog_ids = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" );// WPCS: db call ok, no-cache ok.
			foreach ( $blog_ids as $blog_id ) {
				switch_to_blog( $blog_id );// @codingStandardsIgnoreLine.
				$contact_bank_version_number = get_option( 'contact-bank-version-number' );
				if ( false !== $contact_bank_version_number ) {
					global $wpdb;
					$get_other_settings      = $wpdb->get_var(
						$wpdb->prepare(
							'SELECT meta_value from ' . $wpdb->prefix . 'contact_bank_meta WHERE meta_key = %s', 'general_settings'
						)
					);// WPCS: db call ok, no-cache ok.
					$get_other_settings_data = maybe_unserialize( $get_other_settings );
					if ( 'enable' === $get_other_settings_data['remove_tables_at_uninstall'] ) {
						$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'contact_bank' );// @codingStandardsIgnoreLine.
						$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'contact_bank_meta' );// @codingStandardsIgnoreLine.
						delete_option( 'contact-bank-version-number' );
						delete_option( 'contact-bank-wizard-set-up' );
						delete_option( 'cb_admin_notice' );
					}
				}
				restore_current_blog();
			}
		} else {
			$contact_bank_version_number = get_option( 'contact-bank-version-number' );
			if ( false !== $contact_bank_version_number ) {
				global $wpdb;
				$get_other_settings      = $wpdb->get_var(
					$wpdb->prepare(
						'SELECT meta_value from ' . $wpdb->prefix . 'contact_bank_meta WHERE meta_key = %s', 'general_settings'
					)
				);// PWCS: db call ok, no-cache ok.
				$get_other_settings_data = maybe_unserialize( $get_other_settings );
				if ( 'enable' === $get_other_settings_data['remove_tables_at_uninstall'] ) {
					$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'contact_bank' );// @codingStandardsIgnoreLine.
					$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'contact_bank_meta' );// @codingStandardsIgnoreLine.
					delete_option( 'contact-bank-version-number' );
					delete_option( 'contact-bank-wizard-set-up' );
					delete_option( 'cb_admin_notice' );
				}
			}
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit