| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: WPVulnerability |
| 4 |
* Plugin URI: https://vulnerability.wpsysadmin.com/ |
| 5 |
* Description: Check the security of a WordPress site with information from the WordPress Vulnerability Database API. Scans Core, plugins, and theme vulnerabilities. |
| 6 |
* Requires at least: 5.2 |
| 7 |
* Requires PHP: 7.2 |
| 8 |
* Version: 1.3.0 |
| 9 |
* Author: Javier Casares |
| 10 |
* Author URI: https://www.javiercasares.com/ |
| 11 |
* Text Domain: wpvulnerability |
| 12 |
* Domain Path: /languages |
| 13 |
* License: EUPL v1.2 |
| 14 |
* License URI: https://www.eupl.eu/1.2/en/ |
| 15 |
* |
| 16 |
* @package WordPress |
| 17 |
* @author Closetechnology |
| 18 |
* @copyright 2022 Closetechnology |
| 19 |
* @license GPL-2.0+ |
| 20 |
* |
| 21 |
* @wordpress-plugin |
| 22 |
* |
| 23 |
* Prefix: wpvul |
| 24 |
*/ |
| 25 |
|
| 26 |
defined( 'ABSPATH' ) || die( 'No script kiddies please!' ); |
| 27 |
|
| 28 |
define( 'WPVUL_PLUGIN_URL', plugins_url( '/', __FILE__ ) ); |
| 29 |
define( 'WPVUL_PLUGIN_VERSION', '1.3.0' ); |
| 30 |
define( 'WPVUL_PLUGIN_FILE', __FILE__ ); |
| 31 |
define( 'WPVUL_PLUGIN_BASE', plugin_basename( __FILE__ ) ); |
| 32 |
define( 'WPVUL_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); |
| 33 |
|
| 34 |
add_action( 'plugins_loaded', 'wpvul_plugin_init' ); |
| 35 |
/** |
| 36 |
* Load localization files |
| 37 |
* |
| 38 |
* @return void |
| 39 |
*/ |
| 40 |
function wpvul_plugin_init() { |
| 41 |
load_plugin_textdomain( 'wpvulnerability', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); |
| 42 |
} |
| 43 |
|
| 44 |
require_once WPVUL_PLUGIN_PATH . '/includes/helpers-api.php'; |
| 45 |
require_once WPVUL_PLUGIN_PATH . '/includes/class-plugins-wpvulnerability.php'; |
| 46 |
require_once WPVUL_PLUGIN_PATH . '/includes/class-health-wpvulnerability.php'; |
| 47 |
require_once WPVUL_PLUGIN_PATH . '/includes/class-cli-wpvulnerability.php'; |
| 48 |
require_once WPVUL_PLUGIN_PATH . '/includes/class-wpvul-admin-settings.php'; |
| 49 |
require_once WPVUL_PLUGIN_PATH . '/includes/class-wpvul-notification.php'; |
| 50 |
|
| 51 |
// Initialize our plugin. |
| 52 |
$plugins_wpvulnnerability = new Plugins_WPVulnerability(); |
| 53 |
new CLI_WPVulnerability( $plugins_wpvulnnerability ); |
| 54 |
|