<td><?php print_string("currency") ?>
</td>
</tr>
-
+<?php if (substr($CFG->wwwroot, 0, 5) !== 'https') { /* https && loginhttps */ ?>
<tr valign="top">
<td align="right">loginhttps:</td>
<td><?php echo (empty($CFG->loginhttps) ? "<font color=\"red\"><b>off</b></font>" : "<font color=\"green\">on</font>") ?></td>
print_string("logindesc", "enrol_authorize", $a)
?></td>
</tr>
-
+<?php } /* end: https && loginhttps */ ?>
<tr valign="top"><td colspan="3"><h4><?php print_string("adminauthorizesettings", "enrol_authorize") ?></h4></td></tr>
<tr valign="top">
notify('PHP must be compiled with SSL support (--with-openssl)');
}
- if (empty($CFG->loginhttps)) {
+ if (empty($CFG->loginhttps) and substr($CFG->wwwroot, 0, 5) !== 'https') {
notify('loginhttps must be ON');
}
$tranval = optional_param('an_tran_key', '');
$passwordval = optional_param('an_password', '');
- if (empty($CFG->loginhttps) || (!$this->check_openssl_loaded()) ||
- empty($loginval) || (empty($tranval) && empty($passwordval))) {
+ if ((empty($CFG->loginhttps) and substr($CFG->wwwroot, 0, 5) !== 'https') ||
+ !$this->check_openssl_loaded() ||
+ empty($loginval) ||
+ (empty($tranval) and empty($passwordval))) {
return false;
}