mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 04:33:13 +01:00
HTTPSPAGEREQUIRED and CFG->httpswwwroot added to
support 100% SSL pages. Merged from MOODLE_15_STABLE
This commit is contained in:
parent
afbc9cbdc3
commit
9d0dd812ac
@ -65,10 +65,23 @@ global $db;
|
||||
*/
|
||||
global $THEME;
|
||||
|
||||
/**
|
||||
* HTTPSPAGEREQUIRED is a global to define if the page being displayed must run under HTTPS.
|
||||
*
|
||||
* It's primary goal is to allow 100% HTTPS pages when $CFG->loginhttps is enabled. Default to false.
|
||||
* It's enabled only by the httpsrequired() function and used in some pages to update some URLs
|
||||
*/
|
||||
global $HTTPSPAGEREQUIRED;
|
||||
|
||||
|
||||
if (!isset($CFG->wwwroot)) {
|
||||
die;
|
||||
}
|
||||
|
||||
/// Set httpswwwroot default value (this variable will replace $CFG->wwwroot
|
||||
/// inside some URLs used in HTTPSPAGEREQUIRED pages.
|
||||
$CFG->httpswwwroot = $CFG->wwwroot;
|
||||
|
||||
/// Time to start counting
|
||||
init_performance_info();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user