- New: License section in Settings -- a 30-day trial with every feature active starts automatically, no registration required to start. Protection continues regardless of license status; the trial only affects what's shown, never what's enforced. Enter a license key to keep Premium features once the trial ends. This is the first release where the license system is actually visible anywhere -- it existed in the codebase before but had no entry form and was excluded from every published build. - Intelligence page: rewrote descriptions in plain language about what each thing does for your site's protection, not internal implementation details (was showing raw technical descriptions like a "signature corpus" and "RIR delegation database" range counts). Verified end-to-end before publishing (not just code review): a real signup and license created on the actual companion license service, then submitted through the real Settings page form exactly as a customer would -- status went from "TRIAL -- 30 DAYS LEFT" to "LICENSED" on both the Settings and Overview pages. This exact ZIP was also installed fresh and every admin page loaded with zero errors before this commit. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
47 lines
2.0 KiB
PHP
47 lines
2.0 KiB
PHP
<?php
|
|
/**
|
|
* Plugin Name: ARGUS WordPress Defence
|
|
* Plugin URI: https://git-cloud.weboria.eu/Weboria/argus-wp-defence
|
|
* Description: Standalone WordPress security: local WAF, malware & integrity scanning, vulnerability intelligence, and a deterministic ban/policy engine. Works fully offline; optionally connects to ARGUS Cloud for richer intelligence and cross-asset correlation.
|
|
* Version: 7.23.2
|
|
* Requires at least: 6.0
|
|
* Requires PHP: 7.4
|
|
* Author: ARGUS
|
|
* License: GPL-2.0-or-later
|
|
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
|
* Text Domain: argus-wordpress-defence
|
|
*
|
|
* Architecture reference: argus-appliance/docs/adr/0053-argus-wordpress-defence.md
|
|
*
|
|
* This is the REGULAR plugin entry point -- the admin UI, settings, and
|
|
* anything that doesn't need to run before WordPress core boots lives
|
|
* here. The enforcement core (WAF/ban/policy) is installed separately as
|
|
* a Must-Use plugin (see includes/class-argus-mu-installer.php and
|
|
* mu-loader/argus-mu-core.php) so it keeps running even if this regular
|
|
* plugin is deactivated from wp-admin -- ADR-0053 §13.1's self-protection
|
|
* design. This file still loads the same enforcement classes for the
|
|
* admin UI to read state from, and as the Tier-1 fallback hook
|
|
* (plugins_loaded) on any host where the MU-plugin install failed.
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
define( 'ARGUS_WPD_VERSION', '7.23.2' );
|
|
define( 'ARGUS_WPD_FILE', __FILE__ );
|
|
define( 'ARGUS_WPD_DIR', plugin_dir_path( __FILE__ ) );
|
|
define( 'ARGUS_WPD_URL', plugin_dir_url( __FILE__ ) );
|
|
define( 'ARGUS_WPD_BASENAME', plugin_basename( __FILE__ ) );
|
|
|
|
require_once ARGUS_WPD_DIR . 'includes/class-argus-autoloader.php';
|
|
Argus_Autoloader::register();
|
|
|
|
register_activation_hook( __FILE__, array( 'Argus_Activator', 'activate' ) );
|
|
register_deactivation_hook( __FILE__, array( 'Argus_Deactivator', 'deactivate' ) );
|
|
|
|
function argus_wpd_init() {
|
|
Argus_Plugin::instance()->boot();
|
|
}
|
|
add_action( 'plugins_loaded', 'argus_wpd_init', 0 );
|