More tweaks
[moodle.git] / auth / pop3 / config.html
1 <?PHP
2     if (!isset($config->auth_pop3host)) {
3         $config->auth_pop3host = "127.0.0.1";
4     }
5     if (!isset($config->auth_pop3type)) {
6         $config->auth_pop3type = "pop3";
7     }
8     if (!isset($config->auth_pop3port)) {
9         $config->auth_pop3port = "110";
10     }
11 ?>
12 <tr valign="top" BGCOLOR="<?=$THEME->cellheading2 ?>">
13         <TD ALIGN=RIGHT><P>auth_pop3host:</TD>
14         <TD>
15         <INPUT name=auth_pop3host TYPE=text SIZE=30 VALUE="<?=$config->auth_pop3host?>">
16         <? if (isset($err["auth_pop3host"])) formerr($err["auth_pop3host"]); ?>
17         </TD>
18     <TD>
19     <? print_string("auth_pop3host","auth") ?>
20     </TD>
21 </TR>
23 <TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
24         <TD ALIGN=RIGHT><P>auth_pop3type:</TD>
25         <TD>
26     <? $pop3types = array("pop3","pop3cert");
27        foreach($pop3types as $pop3type) {
28            $pop3options[$pop3type] = $pop3type;
29        }
30        choose_from_menu($pop3options, "auth_pop3type", $config->auth_pop3type, "");
31     ?>
32     </TD>
33 <TD>
34     <? print_string("auth_pop3type","auth") ?>
35     </TD>
36 </TR>
38 <TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
39         <TD ALIGN=RIGHT><P>auth_pop3port:</TD>
40         <TD>
41     <INPUT name=auth_pop3port TYPE=text SIZE=6 VALUE="<?=$config->auth_pop3port?>">
42     <? if (isset($err["auth_pop3port"])) formerr($err["auth_pop3port"]); ?>
43     </TD>
44     <TD>
45     <? print_string("auth_pop3port","auth") ?>
46     </TD>
47 </TR>
49 <TR VALIGN=TOP>
50         <TD ALIGN=RIGHT><P><? print_string("instructions", "auth") ?>:</TD>
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>