HEX
Server: Apache
System: Linux host17.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
User: shrsglobal (7178)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /home/shrsglobal/www/wp-content/plugins/itr-popup/uninstall.php
<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

//uninstall not called from WordPress exit
if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) {exit ();}
else
{
	global $wpdb;
	include_once ('functions/core-function.php');
	include_once ('functions/database-function.php');
	if( itro_get_option('delete_data') == 'yes' )
	{
		$preview_id = itro_get_option('preview_id'); //delete preview page
		wp_delete_post( $preview_id , true );
		
		delete_option('itro_curr_ver');
		delete_option('itro_prev_ver');
		
		$wpdb->query("DROP TABLE " . $wpdb->prefix . "itro_plugin_option");
		$wpdb->query("DROP TABLE " . $wpdb->prefix . "itro_plugin_field");
	}
}
?>