Permalink
Browse files

HTTPSPAGEREQUIRED and CFG->httpswwwroot added to

support 100% SSL pages.
  • Loading branch information...
1 parent 8ae05f2 commit 9c87a260b6200bbfc488c9962abafb9ee774864a stronk7 committed Jul 14, 2005
Showing with 13 additions and 0 deletions.
  1. +13 −0 lib/setup.php
View
@@ -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();

0 comments on commit 9c87a26

Please sign in to comment.