"MDL-12304, fix double text"
[moodle-linuxchix.git] / auth / nntp / config.html
blob59683099c708170594971282cc8eb99bb5478d27
1 <?php
3 // set to defaults if undefined
4 if (!isset($config->host)) {
5 $config->host = "127.0.0.1";
7 if (!isset($config->port)) {
8 $config->port = "119";
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"><?php print_string('auth_nntphost_key', 'auth') ?>: </td>
19 <td>
20 <input name="host" type="text" size="30" value="<?php echo $config->host ?>" />
21 <?php
23 if (isset($err["host"])) {
24 formerr($err["host"]);
28 </td>
29 <td>
30 <?php
32 print_string("auth_nntphost", "auth");
33 print_string("auth_multiplehosts", "auth");
36 </td>
37 </tr>
39 <tr valign="top" class="required">
40 <td align="right"><?php print_string('auth_nntpport_key', 'auth') ?>: </td>
41 <td>
42 <input name="port" type="text" size="6" value="<?php echo $config->port ?>" />
43 <?php
45 if (isset($err["port"])) {
46 formerr($err["port"]);
50 </td>
51 <td><?php print_string("auth_nntpport", "auth") ?></td>
52 </tr>
54 <tr valign="top">
55 <td align="right"><?php print_string('auth_nntpchangepasswordurl_key', 'auth') ?>: </td>
56 <td>
57 <input name="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
58 <?php
60 if (isset($err['changepasswordurl'])) {
61 formerr($err['changepasswordurl']);
65 </td>
66 <td><?php print_string('changepasswordhelp', 'auth') ?></td>
67 </tr>
69 <?php
71 print_auth_lock_options('nntp', $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);
74 </table>