mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
50c4bd4145
Also, database module now supports md5 passwords
59 lines
1.7 KiB
HTML
59 lines
1.7 KiB
HTML
<?PHP
|
|
if (!isset($config->auth_imaphost)) {
|
|
$config->auth_imaphost = "127.0.0.1";
|
|
}
|
|
if (!isset($config->auth_imaptype)) {
|
|
$config->auth_imaptype = "imap";
|
|
}
|
|
if (!isset($config->auth_imapport)) {
|
|
$config->auth_imapport = "143";
|
|
}
|
|
?>
|
|
<tr valign="top" BGCOLOR="<?=$THEME->cellheading2 ?>">
|
|
<TD ALIGN=RIGHT><P>auth_imaphost:</TD>
|
|
<TD>
|
|
<INPUT name=auth_imaphost TYPE=text SIZE=30 VALUE="<?=$config->auth_imaphost?>">
|
|
<? if (isset($err["auth_imaphost"])) formerr($err["auth_imaphost"]); ?>
|
|
</TD>
|
|
<TD>
|
|
<? print_string("auth_imaphost","auth") ?>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
|
|
<TD ALIGN=RIGHT><P>auth_imaptype:</TD>
|
|
<TD>
|
|
<? $imaptypes = array("imap","imapssl", "imapcert", "imaptls");
|
|
foreach($imaptypes as $imaptype) {
|
|
$imapoptions[$imaptype] = $imaptype;
|
|
}
|
|
choose_from_menu($imapoptions, "auth_imaptype", $config->auth_imaptype, "");
|
|
?>
|
|
</TD>
|
|
<TD>
|
|
<? print_string("auth_imaptype","auth") ?>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
|
|
<TD ALIGN=RIGHT><P>auth_imapport:</TD>
|
|
<TD>
|
|
<INPUT name=auth_imapport TYPE=text SIZE=6 VALUE="<?=$config->auth_imapport?>">
|
|
<? if (isset($err["auth_imapport"])) formerr($err["auth_imapport"]); ?>
|
|
</TD>
|
|
<TD>
|
|
<? print_string("auth_imapport","auth") ?>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR VALIGN=TOP>
|
|
<TD ALIGN=RIGHT><P><? print_string("instructions", "auth") ?>:</TD>
|
|
<TD>
|
|
<TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><? p($config->auth_instructions) ?></TEXTAREA>
|
|
</TD>
|
|
<TD>
|
|
<? print_string("authinstructions","auth") ?>
|
|
<? helpbutton("text", get_string("helptext")) ?>
|
|
</TD>
|
|
</TR>
|