| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugins primary file, in charge of including all other dependencies. |
| 4 |
* |
| 5 |
* @package Virusdie |
| 6 |
* @wordpress-plugin |
| 7 |
* |
| 8 |
* Plugin Name: Virusdie | One-click website security |
| 9 |
* Description: One-Click Website security with Virusdie Wordpress Plugin |
| 10 |
* Author: Virusdie |
| 11 |
* Version: 1.1.8 |
| 12 |
* Requires PHP: 5.6 |
| 13 |
* Author URI: https://virusdie.com |
| 14 |
* License: GPLv2 |
| 15 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 16 |
* Text Domain: virusdie |
| 17 |
* Network: true |
| 18 |
*/ |
| 19 |
|
| 20 |
require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); |
| 21 |
|
| 22 |
// Check that the file is not accessed directly. |
| 23 |
if ( ! defined( 'ABSPATH' ) ) { |
| 24 |
die( 'We\'re sorry, but you can not directly access this file.' ); |
| 25 |
} |
| 26 |
|
| 27 |
// Plugin version, name, path, URL |
| 28 |
define( 'VDWS_VIRUSDIE_PLUGIN_VERSION', '1.1.8' ); |
| 29 |
define( 'VDWS_VIRUSDIE_PLUGIN_DIRECTORY', trailingslashit( plugin_dir_path( __FILE__ ) ) ); |
| 30 |
define( 'VDWS_VIRUSDIE_PLUGIN_URL', trailingslashit( plugins_url( '/', __FILE__ ) ) ); |
| 31 |
define( 'VDWS_VIRUSDIE_PLUGIN_ADMIN_URL', admin_url( 'admin.php?page=virusdie', is_ssl() ? 'https' : 'http' ) ); |
| 32 |
define( 'VDWS_VIRUSDIE_PLUGIN_FILE', 'virusdie' ); |
| 33 |
define( 'VDWS_VIRUSDIE_PLUGIN_SLUG', 'virusdie' ); |
| 34 |
|
| 35 |
// Plugin option names |
| 36 |
define( 'VDWS_VIRUSDIE_OPT_SYNCFILE', 'wdws_virusdie_syncfile' ); |
| 37 |
define( 'VDWS_VIRUSDIE_OPT_API_KEY', 'wdws_virusdie_apikey' ); |
| 38 |
define( 'VDWS_VIRUSDIE_OPT_USERS_EXISTS', 'wdws_virusdie_users' ); |
| 39 |
|
| 40 |
// Virusdie REST API server and access key |
| 41 |
define( 'VDWS_VIRUSDIE_API_HOST', 'https://virusdie.com/api/' ); |
| 42 |
define( 'VDWS_VIRUSDIE_API2_HOST', 'https://new.virusdie.com/internal-api/' ); |
| 43 |
define( 'VDWS_VIRUSDIE_SHARED_KEY', 'JTojh1Jt81K5CM94YDxYnmd7pjG4etf9Bh8vSE2zg47Sa911hu4h71adSy2yjjUF' ); // ID 7e5fabc0d877968b9d23d468dd83d4d7723fcc3c |
| 44 |
|
| 45 |
// Plugin sites |
| 46 |
define( 'VDWS_VIRUSDIE_SITE_LANDING', 'https://virusdie.com' ); |
| 47 |
define( 'VDWS_VIRUSDIE_SITE_PANEL', 'https://new.virusdie.com' ); |
| 48 |
define( 'VDWS_VIRUSDIE_SITE_ACCOUNT', 'https://myaccount.virusdie.com' ); |
| 49 |
|
| 50 |
// Include class files |
| 51 |
require_once( __DIR__ . '/inc/class-virusdie.php' ); |
| 52 |
require_once( __DIR__ . '/inc/tools/class-virusdie-api.php' ); |
| 53 |
require_once( __DIR__ . '/inc/tools/class-virusdie-user.php' ); |
| 54 |
require_once( __DIR__ . '/inc/tools/class-virusdie-site.php' ); |
| 55 |
require_once( __DIR__ . '/inc/tools/class-virusdie-behavior.php' ); |
| 56 |
require_once( __DIR__ . '/inc/tools/class-virusdie-messages.php' ); |
| 57 |
require_once( __DIR__ . '/inc/tools/class-virusdie-view.php' ); |
| 58 |
require_once( __DIR__ . '/inc/tools/class-virusdie-helper.php' ); |
| 59 |
require_once( __DIR__ . '/inc/tools/class-virusdie-geo.php' ); |
| 60 |
|
| 61 |
// Initialize the plugin |
| 62 |
new VDWS_Virusdie(); |
| 63 |
new VDWS_VirusdieApiClient(); |
| 64 |
new VDWS_VirusdieHelper(); |
| 65 |
|
| 66 |
// Setup scheduled events |
| 67 |
register_activation_hook( __FILE__, array('VDWS_Virusdie', 'plugin_activation') ); |
| 68 |
register_deactivation_hook( __FILE__, array('VDWS_Virusdie', 'plugin_deactivation') ); |
| 69 |
register_uninstall_hook( __FILE__, array('VDWS_Virusdie', 'plugin_unistall') ); |
| 70 |
|