Merge branch 'MDL-57896-master-clicfg' of git://github.com/mudrd8mz/moodle
[moodle.git] / auth / nntp / config.html
blobc9ed4c553e6a1f19b7f42ca4a3bf350e6d4dadfe
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"><label for="host"><?php print_string('auth_nntphost_key', 'auth_nntp') ?>: </label></td>
19 <td>
20 <input name="host" id="host" type="text" size="30" value="<?php echo $config->host ?>" />
21 <?php
23 if (isset($err["host"])) {
24 echo $OUTPUT->error_text($err["host"]);
28 </td>
29 <td>
30 <?php
32 print_string("auth_nntphost", "auth_nntp");
33 print_string("auth_multiplehosts", "auth");
36 </td>
37 </tr>
39 <tr valign="top" class="required">
40 <td align="right"><label for="port"><?php print_string('auth_nntpport_key', 'auth_nntp') ?>: </label></td>
41 <td>
42 <input name="port" id="port" type="text" size="6" value="<?php echo $config->port ?>" />
43 <?php
45 if (isset($err["port"])) {
46 echo $OUTPUT->error_text($err["port"]);
50 </td>
51 <td><?php print_string("auth_nntpport", "auth_nntp") ?></td>
52 </tr>
54 <tr valign="top">
55 <td align="right"><label for="changepasswordurl"><?php print_string('auth_nntpchangepasswordurl_key', 'auth_nntp') ?>: </label></td>
56 <td>
57 <input name="changepasswordurl" id="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
58 <?php
60 if (isset($err['changepasswordurl'])) {
61 echo $OUTPUT->error_text($err['changepasswordurl']);
65 </td>
66 <td><?php print_string('changepasswordhelp', 'auth') ?></td>
67 </tr>
69 <?php
71 print_auth_lock_options($this->authtype, $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);
74 </table>