Merge branch 'MDL-25881' of git://git.luns.net.uk/moodle
[moodle.git] / auth / nntp / config.html
CommitLineData
7ef0797d 1<?php
b9ddb2d5 2
3// set to defaults if undefined
4if (!isset($config->host)) {
5 $config->host = "127.0.0.1";
6}
7if (!isset($config->port)) {
8 $config->port = "119";
9}
10if (!isset($config->changepasswordurl)) {
11 $config->changepasswordurl = '';
12}
13
50c4bd41 14?>
77a297d2 15<table cellspacing="0" cellpadding="5" border="0">
50c4bd41 16
f0fd3436 17<tr valign="top" class="required">
2b06294b 18 <td align="right"><?php print_string('auth_nntphost_key', 'auth_nntp') ?>: </td>
ef9b35a0 19 <td>
b9ddb2d5 20 <input name="host" type="text" size="30" value="<?php echo $config->host ?>" />
21 <?php
139ebfdb 22
b9ddb2d5 23 if (isset($err["host"])) {
7f383c56 24 echo $OUTPUT->error_text($err["host"]);
b9ddb2d5 25 }
139ebfdb 26
b9ddb2d5 27 ?>
ef9b35a0 28 </td>
7ef0797d 29 <td>
b9ddb2d5 30 <?php
139ebfdb 31
2b06294b 32 print_string("auth_nntphost", "auth_nntp");
b9ddb2d5 33 print_string("auth_multiplehosts", "auth");
8dc3de16 34
b9ddb2d5 35 ?>
7ef0797d 36 </td>
37</tr>
35a48c9a 38
f0fd3436 39<tr valign="top" class="required">
2b06294b 40 <td align="right"><?php print_string('auth_nntpport_key', 'auth_nntp') ?>: </td>
7ef0797d 41 <td>
b9ddb2d5 42 <input name="port" type="text" size="6" value="<?php echo $config->port ?>" />
43 <?php
44
45 if (isset($err["port"])) {
7f383c56 46 echo $OUTPUT->error_text($err["port"]);
b9ddb2d5 47 }
139ebfdb 48
b9ddb2d5 49 ?>
7ef0797d 50 </td>
2b06294b 51 <td><?php print_string("auth_nntpport", "auth_nntp") ?></td>
7ef0797d 52</tr>
35a48c9a 53
7ef0797d 54<tr valign="top">
2b06294b 55 <td align="right"><?php print_string('auth_nntpchangepasswordurl_key', 'auth_nntp') ?>: </td>
7ef0797d 56 <td>
b9ddb2d5 57 <input name="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
58 <?php
59
60 if (isset($err['changepasswordurl'])) {
7f383c56 61 echo $OUTPUT->error_text($err['changepasswordurl']);
b9ddb2d5 62 }
63
64 ?>
7ef0797d 65 </td>
b9ddb2d5 66 <td><?php print_string('changepasswordhelp', 'auth') ?></td>
7ef0797d 67</tr>
b9ddb2d5 68
139ebfdb 69<?php
b9ddb2d5 70
b9ddb2d5 71print_auth_lock_options('nntp', $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);
72
73?>
74</table>