Fixed some short tags
[moodle.git] / auth / imap / config.html
CommitLineData
50c4bd41 1<?PHP
2 if (!isset($config->auth_imaphost)) {
3 $config->auth_imaphost = "127.0.0.1";
4 }
5 if (!isset($config->auth_imaptype)) {
6 $config->auth_imaptype = "imap";
7 }
8 if (!isset($config->auth_imapport)) {
9 $config->auth_imapport = "143";
10 }
11?>
16b8fe5b 12<tr valign="top" BGCOLOR="<?php echo $THEME->cellheading2 ?>">
35a48c9a 13 <TD ALIGN=RIGHT><P>auth_imaphost:</TD>
14 <TD>
16b8fe5b 15 <INPUT name=auth_imaphost TYPE=text SIZE=30 VALUE="<?php echo $config->auth_imaphost?>">
16 <?php if (isset($err["auth_imaphost"])) formerr($err["auth_imaphost"]); ?>
35a48c9a 17 </TD>
18 <TD>
16b8fe5b 19 <?php print_string("auth_imaphost","auth") ?>
35a48c9a 20 </TD>
21</TR>
22
16b8fe5b 23<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
35a48c9a 24 <TD ALIGN=RIGHT><P>auth_imaptype:</TD>
25 <TD>
16b8fe5b 26 <?php $imaptypes = array("imap","imapssl", "imapcert", "imaptls");
466558e3 27 foreach($imaptypes as $imaptype) {
28 $imapoptions[$imaptype] = $imaptype;
29 }
30 choose_from_menu($imapoptions, "auth_imaptype", $config->auth_imaptype, "");
35a48c9a 31 ?>
32 </TD>
33 <TD>
16b8fe5b 34 <?php print_string("auth_imaptype","auth") ?>
35a48c9a 35 </TD>
36</TR>
37
16b8fe5b 38<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
35a48c9a 39 <TD ALIGN=RIGHT><P>auth_imapport:</TD>
40 <TD>
16b8fe5b 41 <INPUT name=auth_imapport TYPE=text SIZE=6 VALUE="<?php echo $config->auth_imapport?>">
42 <?php if (isset($err["auth_imapport"])) formerr($err["auth_imapport"]); ?>
35a48c9a 43 </TD>
44 <TD>
16b8fe5b 45 <?php print_string("auth_imapport","auth") ?>
35a48c9a 46 </TD>
47</TR>
48
49<TR VALIGN=TOP>
16b8fe5b 50 <TD ALIGN=RIGHT><P><?php print_string("instructions", "auth") ?>:</TD>
35a48c9a 51 <TD>
16b8fe5b 52 <TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><?php p($config->auth_instructions) ?></TEXTAREA>
35a48c9a 53 </TD>
54 <TD>
16b8fe5b 55 <?php print_string("authinstructions","auth") ?>
56 <?php helpbutton("text", get_string("helptext")) ?>
35a48c9a 57 </TD>
58</TR>