HEX
Server: Apache
System: Linux webd003.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: slyfwmm (169339)
PHP: 8.1.34
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/slyfwmm/pianob/wp-content/plugins/hbook/uninstall.php
<?php

if ( ! defined( 'ABSPATH' ) && ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
	exit();
}

if ( get_option( 'hb_uninstall_delete_all' ) == 'yes' ) {

	require_once plugin_dir_path( __FILE__ ) . 'utils/options-utils.php';
	$settings = new HbOptionsUtils();
	$settings->delete_options();

	delete_option( 'hbook_version' );
	delete_option( 'hbook_previous_version' );
	delete_option( 'hbook_installing' );

	require_once plugin_dir_path( __FILE__ ) . 'database-actions/database-actions.php';
	$hbdb = new HbDataBaseActions();
	$accom = $hbdb->get_all_accom_ids( true );
	foreach ( $accom as $accom_id ) {
		wp_delete_post( $accom_id, true );
	}
	$hbdb->delete_plugin_tables();

}