$14 GRAYBYTE WORDPRESS FILE MANAGER $72

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bqrcodec/contact.fpt.auto/wp-content/plugins/jetformbuilder/

HOME
Current File : /home/bqrcodec/contact.fpt.auto/wp-content/plugins/jetformbuilder//uninstall.php
<?php
/**
 * @since 3.0.0
 */

// phpcs:disable WordPress.DB.DirectDatabaseQuery

// if uninstall.php is not called by WordPress, die
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
	die;
}

$options = get_option( 'jet_form_builder_settings__options-tab' );

if ( ! $options ) {
	return;
}

$options = json_decode( $options, true );

if ( empty( $options['clear_on_uninstall'] ) ) {
	return;
}

$opt_prefixes        = array(
	'jet\_form\_builder\_settings\_\_',
	'jet\_fb\_',
	'jfb\-',
	'jfb\_',
);
$additional_prefixes = array();

foreach ( $opt_prefixes as $prefix ) {
	array_push(
		$additional_prefixes,
		'\_transient\_' . $prefix,
		'\_site\_transient\_' . $prefix,
		'\_transient\_timeout\_' . $prefix,
		'\_site\_transient\_timeout\_' . $prefix
	);
}

$opt_prefixes = array_merge( $opt_prefixes, $additional_prefixes );

$options_condition = "option_name LIKE '" . implode( "%' OR option_name LIKE '", $opt_prefixes ) . "%'";

$tables = array(
	// secondary tables
	'records_actions',
	'records_errors',
	'records_fields',
	'subscription_to_payer_shipping',
	'subscriptions_to_records',
	'subscriptions_to_payments',
	'subscriptions_notes',
	'payment_to_payer_shipping',
	'payments_to_records',
	'payers_shipping',
	// primary tables
	'csrf_tokens',
	'recurring_cycles',
	'subscriptions',
	'payments',
	'migrations',
	'payers',
	'records',
);

global $wpdb;

// phpcs:disable WordPress.DB.PreparedSQL

foreach ( $tables as $table_name ) {
	$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'jet_fb_' . $table_name );
}

$wpdb->query( "DELETE FROM {$wpdb->options} WHERE {$options_condition}" );

// phpcs:enable WordPress.DB.PreparedSQL

$forms = get_posts(
	array(
		'post_type'   => array( 'jet-form-builder' ),
		'post_status' => 'any',
		'numberposts' => - 1,
		'fields'      => 'ids',
	)
);
if ( $forms ) {
	foreach ( $forms as $form_id ) {
		wp_delete_post( $form_id, true );
	}
}

/**
 * @var WP_Filesystem_Base $wp_filesystem
 */
global $wp_filesystem;

$uploads_directory = wp_upload_dir();
if ( empty( $uploads_directory['error'] ) ) {
	$wp_filesystem->rmdir( $uploads_directory['basedir'] . '/jet-form-builder/', true );
}

Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
18 Mar 2026 5.50 AM
bqrcodec / bqrcodec
0755
assets
--
30 Jan 2024 5.36 PM
bqrcodec / bqrcodec
0755
compatibility
--
30 Jan 2024 5.36 PM
bqrcodec / bqrcodec
0755
components
--
30 Jan 2024 5.35 PM
bqrcodec / bqrcodec
0755
includes
--
30 Jan 2024 5.36 PM
bqrcodec / bqrcodec
0755
languages
--
30 Jan 2024 5.36 PM
bqrcodec / bqrcodec
0755
modules
--
30 Jan 2024 5.36 PM
bqrcodec / bqrcodec
0755
templates
--
30 Jan 2024 5.35 PM
bqrcodec / bqrcodec
0755
README.md
26.958 KB
30 Jan 2024 5.36 PM
bqrcodec / bqrcodec
0755
composer.json
1.327 KB
30 Jan 2024 5.36 PM
bqrcodec / bqrcodec
0755
index.php
0.028 KB
30 Jan 2024 5.36 PM
bqrcodec / bqrcodec
0755
jet-form-builder.php
1.927 KB
30 Jan 2024 5.36 PM
bqrcodec / bqrcodec
0755
readme.txt
48.95 KB
30 Jan 2024 5.36 PM
bqrcodec / bqrcodec
0755
uninstall.php
2.194 KB
30 Jan 2024 5.36 PM
bqrcodec / bqrcodec
0755
wp-cli.local.yml
0.011 KB
30 Jan 2024 5.36 PM
bqrcodec / bqrcodec
0755

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF