More robustness, and some little bug fixes.
[moodle.git] / auth / nntp / config.html
CommitLineData
50c4bd41 1<?PHP
2 if (!isset($config->auth_nntphost)) {
3 $config->auth_nntphost = "127.0.0.1";
4 }
5 if (!isset($config->auth_nntpport)) {
6 $config->auth_nntpport = "119";
7 }
8?>
9
34daec9b 10<tr valign="top" BGCOLOR="<?=$THEME->cellheading2 ?>">
35a48c9a 11 <TD ALIGN=RIGHT><P>auth_nntphost:</TD>
12 <TD>
13 <INPUT name="auth_nntphost" TYPE="text" SIZE=30 VALUE="<?=$config->auth_nntphost?>">
50c4bd41 14 <? if (isset($err["auth_nntphost"])) formerr($err["auth_nntphost"]); ?>
35a48c9a 15 </TD>
16 <TD>
17 <? print_string("auth_nntphost","auth") ?>
18 </TD>
19</TR>
20
34daec9b 21<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
35a48c9a 22 <TD ALIGN=RIGHT><P>auth_nntpport:</TD>
23 <TD>
50c4bd41 24 <INPUT name=auth_nntpport TYPE=text SIZE=6 VALUE="<?=$config->auth_nntpport?>">
25 <? if (isset($err["auth_nntpport"])) formerr($err["auth_nntpport"]); ?>
35a48c9a 26 </TD>
27 <TD>
28 <? print_string("auth_nntpport","auth") ?>
29 </TD>
30</TR>
31
32<TR VALIGN=TOP>
34daec9b 33 <TD ALIGN=RIGHT><P><? print_string("instructions", "auth") ?>:</TD>
35a48c9a 34 <TD>
35 <TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><? p($config->auth_instructions) ?></TEXTAREA>
36 </TD>
37 <TD>
38 <? print_string("authinstructions","auth") ?>
39 <? helpbutton("text", get_string("helptext")) ?>
40 </TD>
41</TR>