HEX
Server: Apache
System: Linux hc1-wd209-6459bb5d78-7wsj2 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
User: w5726 (15726)
PHP: 7.3.33
Disabled: apache_child_terminate,apache_setenv,define_syslog_variables,diskfreespace,disk_free_space,disk_total_space,dl,exec,leak,link,openlog,passthru,pfsockopen,popen,posix_getgrnam,posix_getpgid,posix_getpwuid,posix_getpwnam,posix_getrlimit,posix_initgroups,posix_kill,posix_mkfifo,posix_mknod,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,putenv,readlink,register_tick_function,shell_exec,show_source,symlink,syslog,system
Upload Files
File: /data/web/virtuals/5726/virtual/www/wp-content/plugins/gregs-high-performance-seo/uninstall.php
<?php

/*  Greg's Uninstaller

	Copyright (c) 2009-2015 Greg Mulhauser
	http://gregsplugins.com

	Released under the GPL license
	http://www.opensource.org/licenses/gpl-license.php

	**********************************************************************
	This program is distributed in the hope that it will be useful, but
	WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
	*****************************************************************
*/

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

grm_delete_and_go();

function grm_delete_and_go() {
	// first figure out our prefix
	$path = WP_PLUGIN_DIR . '/' . basename( dirname( __FILE__ ) ) . '/';
	$files = glob( $path . '*-setup-functions.php' );
	$plugin_prefix = basename( $files[0], '-setup-functions.php' );
	if ( '' == $plugin_prefix ) return; // something went wrong getting prefix, so don't do anything
	// now carry on with uninstall
	$options_set = array();
	if ( is_array( get_option( $plugin_prefix . '_private' ) ) ) $options_set = array( array( 'private' ) );
	if ( is_array( get_option( $plugin_prefix . '_settings' ) ) ) $options_set[] = array( 'settings' );
	else { // if no _settings array, then we have discrete options to collect
		if ( !class_exists( $plugin_prefix . 'SetupHandler' ) ) include $plugin_prefix . '-setup-functions.php';
		// now we use a workaround enabling a static call to a method in a class whose name is in a variable
		$discrete_options = call_user_func( array( $plugin_prefix . 'SetupHandler', 'grab_settings' ), 'flat' );
		$options_set = array_merge( $options_set, $discrete_options );
	}
	if ( !empty( $options_set ) && current_user_can( 'delete_plugins' ) ) {
		foreach ( $options_set as $option ) {
			delete_option( $plugin_prefix . '_' . $option[0] );
		} // end loop over options
	}
	return;
} // end of deletion function

?>