3 // set to defaults if undefined
4 if (!isset($config->host
)) {
5 $config->host
= "127.0.0.1";
7 if (!isset($config->port
)) {
10 if (!isset($config->changepasswordurl
)) {
11 $config->changepasswordurl
= '';
15 <table cellspacing=
"0" cellpadding=
"5" border=
"0">
17 <tr valign=
"top" class=
"required">
18 <td align=
"right"><label for=
"host"><?php print_string('auth_nntphost_key', 'auth_nntp') ?>:
</label></td>
20 <input name=
"host" id=
"host" type=
"text" size=
"30" value=
"<?php echo $config->host ?>" />
23 if (isset($err["host"])) {
24 echo $OUTPUT->error_text($err["host"]);
32 print_string("auth_nntphost", "auth_nntp");
33 print_string("auth_multiplehosts", "auth");
39 <tr valign=
"top" class=
"required">
40 <td align=
"right"><label for=
"port"><?php print_string('auth_nntpport_key', 'auth_nntp') ?>:
</label></td>
42 <input name=
"port" id=
"port" type=
"text" size=
"6" value=
"<?php echo $config->port ?>" />
45 if (isset($err["port"])) {
46 echo $OUTPUT->error_text($err["port"]);
51 <td><?php print_string("auth_nntpport", "auth_nntp") ?></td>
55 <td align=
"right"><label for=
"changepasswordurl"><?php print_string('auth_nntpchangepasswordurl_key', 'auth_nntp') ?>:
</label></td>
57 <input name=
"changepasswordurl" id=
"changepasswordurl" type=
"text" value=
"<?php echo $config->changepasswordurl ?>" />
60 if (isset($err['changepasswordurl'])) {
61 echo $OUTPUT->error_text($err['changepasswordurl']);
66 <td><?php print_string('changepasswordhelp', 'auth') ?></td>
71 print_auth_lock_options($this->authtype
, $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);