More robustness, and some little bug fixes.
[moodle.git] / auth / nntp / config.html
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 ?>
10 <tr valign="top" BGCOLOR="<?=$THEME->cellheading2 ?>">
11         <TD ALIGN=RIGHT><P>auth_nntphost:</TD>
12         <TD>
13         <INPUT name="auth_nntphost" TYPE="text" SIZE=30 VALUE="<?=$config->auth_nntphost?>">
14         <? if (isset($err["auth_nntphost"]))  formerr($err["auth_nntphost"]); ?>
15         </TD>
16     <TD>
17     <? print_string("auth_nntphost","auth") ?>
18     </TD>
19 </TR>
21 <TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
22         <TD ALIGN=RIGHT><P>auth_nntpport:</TD>
23         <TD>
24     <INPUT name=auth_nntpport TYPE=text SIZE=6 VALUE="<?=$config->auth_nntpport?>">
25     <? if (isset($err["auth_nntpport"])) formerr($err["auth_nntpport"]); ?>
26     </TD>
27     <TD>
28     <? print_string("auth_nntpport","auth") ?>
29     </TD>
30 </TR>
32 <TR VALIGN=TOP>
33         <TD ALIGN=RIGHT><P><? print_string("instructions", "auth") ?>:</TD>
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>