| Server IP : 104.21.21.239 / Your IP : 216.73.217.99 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/home2/domains/siparentOLD/wp-content/plugins/goodbye-captcha/ |
Upload File : |
<?php
/**
*
* @package WPBruiser
* @author Mihai Chelaru
* @license GPL-2.0+
* @link http://www.wpbruiser.com
* @copyright 2014 WPBruiser
*
*/
defined( 'WP_UNINSTALL_PLUGIN' ) || exit;
class_exists('GoodByeCaptcha') || require_once 'goodbye-captcha.php';
class GoodByeCaptchaUninstaller
{
public function __construct()
{
if(!current_user_can( 'activate_plugins')){
exit;
}
if(is_callable(array('GoodByeCaptcha', 'isProVersion')) && GoodByeCaptcha::isProVersion() && is_plugin_active(plugin_basename(GoodByeCaptcha::getMainFilePath()))) {
return;
}
GdbcTaskScheduler::unScheduleGdbcTasks();
foreach(GdbcModulesController::getRegisteredModules() as $moduleName => $arrModuleInfo)
{
if( null === ($adminModuleInstance = GdbcModulesController::getAdminModuleInstance($moduleName)) )
continue;
$adminModuleInstance->deleteAllSettingOptions(false);
$adminModuleInstance->deleteAllSettingOptions(true);
}
$adminNotice = new GdbcAdminNotice(null, null);
$adminNotice->deleteAllNotices();
global $wpdb;
$wpdb->query("DROP TABLE IF EXISTS " . GdbcDbAccessController::getAttemptsTableName());
}
}
new GoodByeCaptchaUninstaller();