HEX
Server: LiteSpeed
System: Linux srv158.niagahoster.com 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
User: u1694298 (3732)
PHP: 7.4.33
Disabled: symlink,shell_exec,exec,popen,system,dl,passthru,escapeshellarg,escapeshellcmd,show_source,pcntl_exec
Upload Files
File: /home/u1694298/www/wp-content/plugins/squirrly-seo/uninstall.php
<?php defined( 'ABSPATH' ) || die( 'Cheatin\' uh?' );

/**
 * Called on plugin uninstall
 */
if ( ! defined( 'ABSPATH' ) && ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
	exit();
}

try {

	/* Call config files */
	include dirname( __FILE__ ) . '/config/config.php';
	include dirname( __FILE__ ) . '/config/paths.php';
	include_once _SQ_CLASSES_DIR_ . 'ObjController.php';

	/* Delete the record from database */
	SQ_Classes_ObjController::getClass( 'SQ_Classes_Helpers_Tools' );
	if ( SQ_Classes_Helpers_Tools::getOption( 'sq_complete_uninstall' ) ) {
		delete_option( SQ_OPTION );
		delete_option( SQ_ML_PATTERNS );
		delete_option( SQ_TASKS );

		global $wpdb;
		$wpdb->query( "DROP TABLE IF EXISTS `" . $wpdb->prefix . _SQ_DB_ . "`" );
	}

} catch ( Exception $e ) {
}