Created setup environment
This commit is contained in:
		@@ -23,8 +23,11 @@ class Security
 | 
			
		||||
                self::installSecurityPlugin($pluginSlug, $pluginData['downloadUrl']);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
		$loginUrl = get_option('kompass_sec_rewrite_login', null);
 | 
			
		||||
		if (null == $loginUrl) {
 | 
			
		||||
			$loginUrl = get_option('whl_page', null) ?? 'bdp-login';
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		$loginUrl = get_option('whl_page', null) ?? 'bdp-login';
 | 
			
		||||
        enable_option_rewrite_url($loginUrl);
 | 
			
		||||
	    enable_option_disable_xmlrpc();
 | 
			
		||||
	    enable_option_block_authorscan();
 | 
			
		||||
@@ -35,11 +38,20 @@ class Security
 | 
			
		||||
	    enable_option_secure_include_dir();
 | 
			
		||||
	    enable_option_prohibit_bot_access();
 | 
			
		||||
	    enable_option_block_directory_listing();
 | 
			
		||||
 | 
			
		||||
		delete_option('whl_page');
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static function deletePlugins() {
 | 
			
		||||
        deactivate_plugins(self::delete_plugins);
 | 
			
		||||
        delete_plugins(self::delete_plugins);
 | 
			
		||||
		$existingPlugins = [];
 | 
			
		||||
		foreach (self::delete_plugins as $curPlugin) {
 | 
			
		||||
			if (file_exists(WP_PLUGIN_DIR . '/' . $curPlugin)) {
 | 
			
		||||
				$existingPlugins[] = $curPlugin;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		deactivate_plugins($existingPlugins);
 | 
			
		||||
        delete_plugins($existingPlugins);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
	public static function ProhibitBots() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user