Skip to content

Commit

Permalink
HTTPSPAGEREQUIRED and CFG->httpswwwroot added to
Browse files Browse the repository at this point in the history
support 100% SSL pages.
  • Loading branch information
stronk7 committed Jul 14, 2005
1 parent 8ae05f2 commit 9c87a26
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/setup.php
Expand Up @@ -65,10 +65,23 @@
*/
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();

Expand Down

0 comments on commit 9c87a26

Please sign in to comment.