ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct () | |
isDetected () | |
check if https is detected More... | |
checkHTTPS (int $port=443) | |
enableSecureCookies () | |
checkProtocolAndRedirectIfNeeded () | |
Data Fields | |
const | SETTINGS_GROUP_SERVER = 'server' |
const | SETTING_HTTP_PATH = 'http_path' |
const | SETTINGS_GROUP_HTTPS = 'https' |
const | SETTING_AUTO_HTTPS_DETECT_ENABLED = "auto_https_detect_enabled" |
const | SETTING_AUTO_HTTPS_DETECT_HEADER_NAME = "auto_https_detect_header_name" |
const | SETTING_AUTO_HTTPS_DETECT_HEADER_VALUE = "auto_https_detect_header_value" |
const | SETTING_FORCED = 'forced' |
Protected Attributes | |
const | PROTOCOL_HTTP = 1 |
const | PROTOCOL_HTTPS = 2 |
bool | $enabled = false |
array | $protected_classes = [] |
array | $protected_scripts = [] |
bool | $automatic_detection = false |
string | $header_name = null |
string | $header_value = null |
ilIniFile | $ilias_ini |
ilIniFile | $client_ini |
Private Member Functions | |
readProtectedScripts () | |
readProtectedClasses () | |
shouldSwitchProtocol ($to_protocol) | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilHTTPS
Definition at line 25 of file class.ilHTTPS.php.
ilHTTPS::__construct | ( | ) |
Definition at line 45 of file class.ilHTTPS.php.
References $DIC, readProtectedClasses(), and readProtectedScripts().
ilHTTPS::checkHTTPS | ( | int | $port = 443 | ) |
ilHTTPS::checkProtocolAndRedirectIfNeeded | ( | ) |
Definition at line 144 of file class.ilHTTPS.php.
References $_SERVER, exit, and shouldSwitchProtocol().
ilHTTPS::enableSecureCookies | ( | ) |
Definition at line 125 of file class.ilHTTPS.php.
References IL_COOKIE_PATH, and isDetected().
ilHTTPS::isDetected | ( | ) |
check if https is detected
Definition at line 88 of file class.ilHTTPS.php.
References $_SERVER.
Referenced by enableSecureCookies().
|
private |
Definition at line 109 of file class.ilHTTPS.php.
Referenced by __construct().
|
private |
Definition at line 74 of file class.ilHTTPS.php.
Referenced by __construct().
|
private |
Definition at line 160 of file class.ilHTTPS.php.
References $_GET, and $_SERVER.
Referenced by checkProtocolAndRedirectIfNeeded().
|
protected |
Definition at line 39 of file class.ilHTTPS.php.
|
protected |
Definition at line 43 of file class.ilHTTPS.php.
|
protected |
Definition at line 36 of file class.ilHTTPS.php.
|
protected |
Definition at line 40 of file class.ilHTTPS.php.
|
protected |
Definition at line 41 of file class.ilHTTPS.php.
|
protected |
Definition at line 42 of file class.ilHTTPS.php.
|
protected |
Definition at line 37 of file class.ilHTTPS.php.
|
protected |
Definition at line 38 of file class.ilHTTPS.php.
|
protected |
Definition at line 27 of file class.ilHTTPS.php.
|
protected |
Definition at line 28 of file class.ilHTTPS.php.
const ilHTTPS::SETTING_AUTO_HTTPS_DETECT_ENABLED = "auto_https_detect_enabled" |
Definition at line 32 of file class.ilHTTPS.php.
Referenced by ilHttpConfigStoredObjective\achieve(), and ilHttpConfigStoredObjective\isApplicable().
const ilHTTPS::SETTING_AUTO_HTTPS_DETECT_HEADER_NAME = "auto_https_detect_header_name" |
Definition at line 33 of file class.ilHTTPS.php.
Referenced by ilHttpConfigStoredObjective\achieve(), and ilHttpConfigStoredObjective\isApplicable().
const ilHTTPS::SETTING_AUTO_HTTPS_DETECT_HEADER_VALUE = "auto_https_detect_header_value" |
Definition at line 34 of file class.ilHTTPS.php.
Referenced by ilHttpConfigStoredObjective\achieve(), and ilHttpConfigStoredObjective\isApplicable().
const ilHTTPS::SETTING_FORCED = 'forced' |
Definition at line 35 of file class.ilHTTPS.php.
Referenced by ilHttpConfigStoredObjective\achieve(), and ilHttpConfigStoredObjective\isApplicable().
const ilHTTPS::SETTING_HTTP_PATH = 'http_path' |
Definition at line 30 of file class.ilHTTPS.php.
Referenced by ilHttpConfigStoredObjective\achieve(), and ilHttpConfigStoredObjective\isApplicable().
const ilHTTPS::SETTINGS_GROUP_HTTPS = 'https' |
Definition at line 31 of file class.ilHTTPS.php.
Referenced by ilHttpConfigStoredObjective\achieve(), and ilHttpConfigStoredObjective\isApplicable().
const ilHTTPS::SETTINGS_GROUP_SERVER = 'server' |
Definition at line 29 of file class.ilHTTPS.php.
Referenced by ilHttpConfigStoredObjective\achieve(), and ilHttpConfigStoredObjective\isApplicable().