PluginProbe ʕ •ᴥ•ʔ
Really Simple Security – Simple and Performant Security (formerly Really Simple SSL) / 9.4.0
Really Simple Security – Simple and Performant Security (formerly Really Simple SSL) v9.4.0
9.5.11 9.5.10.1 9.5.10 trunk 9.4.0 9.4.1 9.4.2 9.4.3 9.5.0 9.5.0.1 9.5.0.2 9.5.1 9.5.2 9.5.2.2 9.5.2.3 9.5.3 9.5.3.1 9.5.3.2 9.5.4 9.5.5 9.5.6 9.5.7 9.5.8 9.5.9
really-simple-ssl / security / security.php
really-simple-ssl / security Last commit date
includes 1 year ago server 2 years ago tests 1 year ago wordpress 11 months ago cron.php 1 year ago deactivate-integration.php 3 years ago firewall-manager.php 1 year ago functions.php 1 year ago hardening.php 1 year ago index.php 2 years ago integrations.php 1 year ago notices.php 1 year ago security.php 1 year ago sync-settings.php 1 year ago tests.php 1 year ago
security.php
62 lines
1 <?php
2 defined('ABSPATH') or die();
3 class REALLY_SIMPLE_SECURITY
4 {
5 private static $instance;
6 public $firewall_manager;
7 public $hardening;
8 /**
9 * Components array, so we can access singleton classes which are dynamically added, from anywhere.
10 * @var
11 */
12 public $components;
13
14 private function __construct()
15 {
16 if (!defined('RSSSL_SAFE_MODE') && file_exists(trailingslashit(WP_CONTENT_DIR) . 'rsssl-safe-mode.lock')) {
17 define('RSSSL_SAFE_MODE', true);
18 }
19 }
20
21 public static function instance()
22 {
23 if (!isset(self::$instance) && !(self::$instance instanceof REALLY_SIMPLE_SECURITY)) {
24 self::$instance = new REALLY_SIMPLE_SECURITY;
25 self::$instance->includes();
26 if ( rsssl_admin_logged_in() ) {
27 self::$instance->firewall_manager = new rsssl_firewall_manager();
28 self::$instance->hardening = new rsssl_hardening();
29 }
30 }
31 return self::$instance;
32 }
33
34 private function includes()
35 {
36
37 $path = rsssl_path.'security/';
38 require_once( $path . 'integrations.php' );
39 require_once( $path . 'hardening.php' );
40 require_once( $path . 'cron.php' );
41 require_once( $path . 'includes/check404/class-rsssl-simple-404-interceptor.php' );
42
43 /**
44 * Load only on back-end
45 */
46 if ( rsssl_admin_logged_in() ) {
47 require_once( $path . 'functions.php' );
48 require_once( $path . 'deactivate-integration.php' );
49 require_once( $path . 'firewall-manager.php' );
50 require_once( $path . 'tests.php' );
51 require_once( $path . 'notices.php' );
52 require_once( $path . 'sync-settings.php' );
53 }
54
55 }
56 }
57
58 function RSSSL_SECURITY()
59 {
60 return REALLY_SIMPLE_SECURITY::instance();
61 }
62 add_action('plugins_loaded', 'RSSSL_SECURITY', 9);