PATH:
home
/
ajwellnessmassag
/
angelictravels.online
/
wp-content
/
plugins
/
really-simple-ssl
<?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 === '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; } } } }
[-] index.php
[edit]
[-] class-mixed-content-fixer.php
[edit]
[+]
core
[-] readme.txt
[edit]
[+]
placeholders
[+]
lets-encrypt
[-] class-site-health.php
[edit]
[-] rsssl-auto-loader.php
[edit]
[-] ssl-test-page.php
[edit]
[+]
testssl
[-] .wp-env.json
[edit]
[+]
lib
[-] class-wp-cli.php
[edit]
[-] compatibility.php
[edit]
[+]
assets
[+]
security
[-] class-certificate.php
[edit]
[-] class-admin.php
[edit]
[-] SECURITY.md
[edit]
[-] rector.php
[edit]
[+]
..
[+]
settings
[+]
mailer
[-] rlrsssl-really-simple-ssl.php
[edit]
[-] class-cache.php
[edit]
[-] system-status.php
[edit]
[+]
progress
[-] class-multisite.php
[edit]
[+]
upgrade
[+]
modal
[-] uninstall.php
[edit]
[-] class-front-end.php
[edit]
[-] force-deactivate.txt
[edit]
[-] functions.php
[edit]
[-] class-installer.php
[edit]
[+]
languages
[-] class-server.php
[edit]
[-] upgrade.php
[edit]
[-] sbom.json.gz
[edit]