X7ROOT File Manager
Current Path:
/home/okeydcqc/pointecgroup.com/wp-content/plugins/really-simple-ssl
home
/
okeydcqc
/
pointecgroup.com
/
wp-content
/
plugins
/
really-simple-ssl
/
ðŸ“
..
ðŸ“
assets
📄
class-admin.php
(107.53 KB)
📄
class-cache.php
(3.22 KB)
📄
class-certificate.php
(7.39 KB)
📄
class-front-end.php
(2.04 KB)
📄
class-installer.php
(4.41 KB)
📄
class-mixed-content-fixer.php
(5.55 KB)
📄
class-multisite.php
(20.87 KB)
📄
class-server.php
(4.4 KB)
📄
class-site-health.php
(14.24 KB)
📄
class-wp-cli.php
(54.59 KB)
📄
compatibility.php
(2.14 KB)
📄
force-deactivate.txt
(3.78 KB)
📄
functions.php
(14.05 KB)
📄
index.php
(35 B)
ðŸ“
languages
ðŸ“
lets-encrypt
ðŸ“
lib
ðŸ“
mailer
ðŸ“
modal
ðŸ“
onboarding
ðŸ“
placeholders
ðŸ“
progress
📄
readme.txt
(29.77 KB)
📄
rector.php
(1.07 KB)
📄
rlrsssl-really-simple-ssl.php
(11.85 KB)
📄
rsssl-auto-loader.php
(1.88 KB)
ðŸ“
security
📄
security.md
(686 B)
ðŸ“
settings
📄
ssl-test-page.php
(1.9 KB)
📄
system-status.php
(17.13 KB)
ðŸ“
testssl
📄
uninstall.php
(5.84 KB)
ðŸ“
upgrade
📄
upgrade.php
(10.37 KB)
Editing: class-front-end.php
<?php defined( 'ABSPATH' ) or die( 'you do not have access to this page!' ); if ( ! class_exists( 'rsssl_front_end' ) ) { class rsssl_front_end { private static $_this; public $wp_redirect; public $ssl_enabled; public function __construct() { if ( isset( self::$_this ) ) { wp_die( 'you cannot create a second instance.' ); } self::$_this = $this; $this->ssl_enabled = rsssl_get_option( 'ssl_enabled' ); $this->wp_redirect = rsssl_get_option( 'redirect', 'redirect' ) === 'wp_redirect'; add_action( 'rest_api_init', array( $this, 'wp_rest_api_force_ssl' ), ~PHP_INT_MAX ); } public static function this() { return self::$_this; } /** * PHP redirect, when ssl is true. * * @since 2.2 * * @access public * */ public function force_ssl() { if ( $this->ssl_enabled && $this->wp_redirect ) { add_action( 'wp', array( $this, 'wp_redirect_to_ssl' ), 40, 3 ); } } /** * Force SSL on wp rest api * * @since 2.5.14 * * @access public * */ public function wp_rest_api_force_ssl(): void { //check for Command Line if ( php_sapi_name() === 'cli' ) { return; } if ( ! array_key_exists( 'HTTP_HOST', $_SERVER ) ) { return; } if ( $this->ssl_enabled && ! is_ssl() && ! ( defined( 'rsssl_no_rest_api_redirect' ) && rsssl_no_rest_api_redirect ) ) { $redirect_url = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; wp_redirect( $redirect_url, 301 ); exit; } } /** * Redirect using wp redirect * * @since 2.5.0 * * @access public * */ public function wp_redirect_to_ssl(): void { if ( ! array_key_exists( 'HTTP_HOST', $_SERVER ) ) { return; } if ( ! is_ssl() && ! ( defined( 'rsssl_no_wp_redirect' ) && rsssl_no_wp_redirect ) ) { $redirect_url = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; $redirect_url = apply_filters( 'rsssl_wp_redirect_url', $redirect_url ); wp_redirect( $redirect_url, 301, 'WordPress - Really Simple Security' ); exit; } } } }
Upload File
Create Folder