HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //home/mirz4654/www/wp-content/plugins/wp-maintenance-mode/uninstall.php
<?php

// If uninstall not called from WordPress, then exit
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
	exit();
}

/**
 * Uninstall operations
 */
function single_uninstall() {
	// delete subscribers table
	$GLOBALS['wpdb']->query( "DROP TABLE IF EXISTS {$GLOBALS['wpdb']->prefix}wpmm_subscribers" );

	// delete options
	$options_to_delete = array(
		'wpmm_settings',
		'wpmm_notice',
		'wpmm_version',
	);

	foreach ( $options_to_delete as $option ) {
		delete_option( $option );
	}

	// delete dismissed notices meta key
	$users_with_dismissed_notices = (array) get_users(
		array(
			'fields'   => 'ids',
			'meta_key' => 'wpmm_dismissed_notices',
		)
	);

	foreach ( $users_with_dismissed_notices as $user_id ) {
		delete_user_meta( $user_id, 'wpmm_dismissed_notices' );
	}

	// delete bot settings file (data.js)
	$upload_dir        = wp_upload_dir();
	$bot_settings_file = ! empty( $upload_dir['basedir'] ) ? trailingslashit( $upload_dir['basedir'] ) . 'data.js' : false;

	if ( $bot_settings_file !== false && file_exists( $bot_settings_file ) ) {
		wp_delete_file( $bot_settings_file );
	}
}

// Let's do it!
if ( is_multisite() ) {
	single_uninstall();

	// delete data foreach blog
	$blogs_list = $GLOBALS['wpdb']->get_results( "SELECT blog_id FROM {$GLOBALS['wpdb']->blogs}", ARRAY_A );
	if ( ! empty( $blogs_list ) ) {
		foreach ( $blogs_list as $blog ) {
			switch_to_blog( $blog['blog_id'] );
			single_uninstall();
			restore_current_blog();
		}
	}
} else {
	single_uninstall();
}