if (empty($CFG->loginhttps)) {
$wwwroot = $CFG->wwwroot;
} else {
- $wwwroot = str_replace('http','https',$CFG->wwwroot);
+ $wwwroot = str_replace('http:','https:',$CFG->wwwroot);
}
$langmenu = popup_form ("$wwwroot/login/index.php?lang=", $langs, "chooselang", $currlang, "", "", "", true);
}
if (empty($CFG->loginhttps)) {
redirect($CFG->wwwroot .'/login/index.php'. $loginguest);
} else {
- $wwwroot = str_replace('http','https', $CFG->wwwroot);
+ $wwwroot = str_replace('http:','https:', $CFG->wwwroot);
redirect($wwwroot .'/login/index.php'. $loginguest);
}
exit;
/// We have to change some URLs in styles if we are in a $HTTPSPAGEREQUIRED page
if (!empty($HTTPSPAGEREQUIRED)) {
- $CFG->themewww = str_replace('http', 'https', $CFG->themewww);
- $CFG->pixpath = str_replace('http', 'https', $CFG->pixpath);
- $CFG->modpixpath = str_replace('http', 'https', $CFG->modpixpath);
+ $CFG->themewww = str_replace('http:', 'https:', $CFG->themewww);
+ $CFG->pixpath = str_replace('http:', 'https:', $CFG->pixpath);
+ $CFG->modpixpath = str_replace('http:', 'https:', $CFG->modpixpath);
foreach ($CFG->stylesheets as $key => $stylesheet) {
- $CFG->stylesheets[$key] = str_replace('http', 'https', $stylesheet);
+ $CFG->stylesheets[$key] = str_replace('http:', 'https:', $stylesheet);
}
}
if (empty($CFG->loginhttps)) {
$wwwroot = $CFG->wwwroot;
} else {
- $wwwroot = str_replace('http','https',$CFG->wwwroot);
+ $wwwroot = str_replace('http:','https:',$CFG->wwwroot);
}
if (isset($course->id)) {
$menu = user_login_string($course);
if (empty($CFG->loginhttps)) {
$wwwroot = $CFG->wwwroot;
} else {
- $wwwroot = str_replace('http','https',$CFG->wwwroot);
+ $wwwroot = str_replace('http:','https:',$CFG->wwwroot);
}
if (isset($user->id) and $user->id) {
$wwwroot = $CFG->wwwroot.'/login/index.php';
if (!empty($CFG->loginhttps)) {
- $wwwroot = str_replace('http','https', $wwwroot);
+ $wwwroot = str_replace('http:','https:', $wwwroot);
}
notice_yesno(get_string('noguests', 'chat').'<br /><br />'.get_string('liketologin'),
if (isguest()) { // Guests can't change forum
$wwwroot = $CFG->wwwroot.'/login/index.php';
if (!empty($CFG->loginhttps)) {
- $wwwroot = str_replace('http','https', $wwwroot);
+ $wwwroot = str_replace('http:','https:', $wwwroot);
}
$strforums = get_string('modulenameplural', 'forum');
if (isguest()) {
$wwwroot = $CFG->wwwroot.'/login/index.php';
if (!empty($CFG->loginhttps)) {
- $wwwroot = str_replace('http','https', $wwwroot);
+ $wwwroot = str_replace('http:','https:', $wwwroot);
}
if (isset($forum)) { // User is starting a new discussion in a forum
if (isguest()) { // Guests can't change tracking
$wwwroot = $CFG->wwwroot.'/login/index.php';
if (!empty($CFG->loginhttps)) {
- $wwwroot = str_replace('http','https', $wwwroot);
+ $wwwroot = str_replace('http:','https:', $wwwroot);
}
$strforums = get_string('modulenameplural', 'forum');
if (isguest()) { // Guests can't subscribe
$wwwroot = $CFG->wwwroot.'/login/index.php';
if (!empty($CFG->loginhttps)) {
- $wwwroot = str_replace('http','https', $wwwroot);
+ $wwwroot = str_replace('http:','https:', $wwwroot);
}
$strforums = get_string('modulenameplural', 'forum');
$wwwroot = $CFG->wwwroot.'/login/index.php';
if (!empty($CFG->loginhttps)) {
- $wwwroot = str_replace('http','https', $wwwroot);
+ $wwwroot = str_replace('http:','https:', $wwwroot);
}
notice_yesno(get_string('guestsno', 'quiz').'<br /><br />'.get_string('liketologin'),
if (isguest()) {
$wwwroot = $CFG->wwwroot.'/login/index.php';
if (!empty($CFG->loginhttps)) {
- $wwwroot = str_replace('http','https', $wwwroot);
+ $wwwroot = str_replace('http:','https:', $wwwroot);
}
print_header($mymoodlestr);
if(empty($CFG->loginhttps)) {
$wwwroot = $CFG->wwwroot;
} else {
- $wwwroot = str_replace('http','https',$CFG->wwwroot);
+ $wwwroot = str_replace('http:','https:',$CFG->wwwroot);
}
$toprow[] = new tabobject('editprofile', $wwwroot.'/user/edit.php?id='.$user->id.'&course='.$course->id, get_string('editmyprofile'));
if (empty($CFG->loginhttps)) {
$internalpassword = "$CFG->wwwroot/login/change_password.php";
} else {
- $internalpassword = str_replace('http','https',$CFG->wwwroot.'/login/change_password.php');
+ $internalpassword = str_replace('http:','https:',$CFG->wwwroot.'/login/change_password.php');
}
}