Fixed some short PHP 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?>
34daec9b 12<tr valign="top" BGCOLOR="<?=$THEME->cellheading2 ?>">
35a48c9a 13 <TD ALIGN=RIGHT><P>auth_imaphost:</TD>
14 <TD>
15 <INPUT name=auth_imaphost TYPE=text SIZE=30 VALUE="<?=$config->auth_imaphost?>">
50c4bd41 16 <? if (isset($err["auth_imaphost"])) formerr($err["auth_imaphost"]); ?>
35a48c9a 17 </TD>
18 <TD>
19 <? print_string("auth_imaphost","auth") ?>
20 </TD>
21</TR>
22
34daec9b 23<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
35a48c9a 24 <TD ALIGN=RIGHT><P>auth_imaptype:</TD>
25 <TD>
26 <? $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>
34 <? print_string("auth_imaptype","auth") ?>
35 </TD>
36</TR>
37
34daec9b 38<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
35a48c9a 39 <TD ALIGN=RIGHT><P>auth_imapport:</TD>
40 <TD>
41 <INPUT name=auth_imapport TYPE=text SIZE=6 VALUE="<?=$config->auth_imapport?>">
50c4bd41 42 <? if (isset($err["auth_imapport"])) formerr($err["auth_imapport"]); ?>
35a48c9a 43 </TD>
44 <TD>
45 <? print_string("auth_imapport","auth") ?>
46 </TD>
47</TR>
48
49<TR VALIGN=TOP>
34daec9b 50 <TD ALIGN=RIGHT><P><? print_string("instructions", "auth") ?>:</TD>
35a48c9a 51 <TD>
52 <TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><? p($config->auth_instructions) ?></TEXTAREA>
53 </TD>
54 <TD>
55 <? print_string("authinstructions","auth") ?>
56 <? helpbutton("text", get_string("helptext")) ?>
57 </TD>
58</TR>