D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
everqlsh
/
www
/
wp-admin
/
user
/
577040
/
Filename :
wordfence-activator.tar
back
Copy
index.php 0000644 00000000034 15162356515 0006372 0 ustar 00 <?php // Silence is golden. main.php 0000644 00000004542 15162356520 0006213 0 ustar 00 <?php /** * @wordpress-plugin * Plugin Name: Wordfence Security Activator * Plugin URI: https://www.gpltimes.com/ * Description: Wordfence Security Plugin Activator * Version: 1.4.3 * Requires at least: 5.9.0 * Requires PHP: 7.2 * Author: GPL Times * Author URI: https://www.gpltimes.com/ **/ defined('ABSPATH') || exit; $PLUGIN_NAME = 'Wordfence Security Activator'; $PLUGIN_DOMAIN = 'wordfence-security-activator'; $RemainingDays = 365 * 10; global $wpdb; $table_name = $wpdb->prefix . 'wfconfig'; $data = array( 'name' => 'scan_exclude', 'val' => '/wordfence-activator/*', 'autoload' => 'yes' ); $existing_entry = $wpdb->get_var($wpdb->prepare( "SELECT COUNT(*) FROM $table_name WHERE name = %s", $data['name'] )); if ($existing_entry == 0) { // Insert the new record if no entry exists $wpdb->insert($table_name, $data, array('%s', '%s', '%s')); } else { // Append the new value to the existing value $wpdb->query( $wpdb->prepare( "UPDATE $table_name SET val = CONCAT(val, %s) WHERE name = %s", ',' . $data['val'], // Appending a comma and the new value $data['name'] ) ); } $init = function () use ($RemainingDays, $PLUGIN_NAME) { try { wfOnboardingController::_markAttempt1Shown(); wfConfig::set('onboardingAttempt3', wfOnboardingController::ONBOARDING_LICENSE); if (empty(wfConfig::get('apiKey'))) { wordfence::ajax_downgradeLicense_callback(); } wfConfig::set('isPaid', true); wfConfig::set('keyType', wfLicense::KEY_TYPE_PAID_CURRENT); wfConfig::set('premiumNextRenew', time() + $RemainingDays * 86400); wfWAF::getInstance()->getStorageEngine()->setConfig('wafStatus', wfFirewall::FIREWALL_MODE_ENABLED); } catch (Exception $exception) { // Handle the exception if needed } }; add_action('plugins_loaded', function () use ($RemainingDays, $init) { if (class_exists('wfLicense')) { $init(); wfLicense::current()->setType(wfLicense::TYPE_RESPONSE); wfLicense::current()->setPaid(true); wfLicense::current()->setRemainingDays($RemainingDays); wfLicense::current()->setConflicting(false); wfLicense::current()->setDeleted(false); wfLicense::current()->getKeyType(); } }); readme.txt 0000644 00000001725 15162356523 0006557 0 ustar 00 === Wordfence Activator === Contributors: GPL Times Tags: security, firewall, malware Requires at least: 5.0 Tested up to: 5.8 Stable tag: 1.4.3 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html This is a plugin to activate Wordfence with additional functionality. == Description == This plugin provides additional activation features for Wordfence. == Installation == 1. Upload the plugin files to the `/wp-content/plugins/wordfence-activator` directory, or install the plugin through the WordPress plugins screen directly. 2. Activate the plugin through the 'Plugins' screen in WordPress. == Frequently Asked Questions == = Can I use this plugin with the free version of Wordfence? = Yes, this plugin is compatible with both free and premium versions of Wordfence. == Changelog == = 1.0.0 = * Initial release. == Upgrade Notice == = 1.4.2 = * Revamed by GPL Times = 1.4.3 = * Excluded WF Activator plugin from being flagged by Wordfence