2004-09-12 01:34:24 +00:00
|
|
|
<?php
|
2007-01-04 04:52:42 +00:00
|
|
|
|
|
|
|
// set to defaults if undefined
|
|
|
|
if (!isset($config->host)) {
|
|
|
|
$config->host = "127.0.0.1";
|
|
|
|
}
|
|
|
|
if (!isset($config->port)) {
|
|
|
|
$config->port = "119";
|
|
|
|
}
|
|
|
|
if (!isset($config->changepasswordurl)) {
|
|
|
|
$config->changepasswordurl = '';
|
|
|
|
}
|
|
|
|
|
2002-12-31 08:45:37 +00:00
|
|
|
?>
|
2007-04-20 07:54:42 +00:00
|
|
|
<table cellspacing="0" cellpadding="5" border="0">
|
2002-12-31 08:45:37 +00:00
|
|
|
|
2005-02-09 12:55:34 +00:00
|
|
|
<tr valign="top" class="required">
|
2009-06-11 03:34:46 +00:00
|
|
|
<td align="right"><?php print_string('auth_nntphost_key', 'auth_nntp') ?>: </td>
|
2005-05-16 19:38:21 +00:00
|
|
|
<td>
|
2007-01-04 04:52:42 +00:00
|
|
|
<input name="host" type="text" size="30" value="<?php echo $config->host ?>" />
|
|
|
|
<?php
|
2007-02-20 17:03:36 +00:00
|
|
|
|
2007-01-04 04:52:42 +00:00
|
|
|
if (isset($err["host"])) {
|
2009-08-20 13:14:05 +00:00
|
|
|
echo $OUTPUT->error_text($err["host"]);
|
2007-01-04 04:52:42 +00:00
|
|
|
}
|
2007-02-20 17:03:36 +00:00
|
|
|
|
2007-01-04 04:52:42 +00:00
|
|
|
?>
|
2005-05-16 19:38:21 +00:00
|
|
|
</td>
|
2004-09-12 01:34:24 +00:00
|
|
|
<td>
|
2007-01-04 04:52:42 +00:00
|
|
|
<?php
|
2007-02-20 17:03:36 +00:00
|
|
|
|
2009-06-11 03:34:46 +00:00
|
|
|
print_string("auth_nntphost", "auth_nntp");
|
2007-01-04 04:52:42 +00:00
|
|
|
print_string("auth_multiplehosts", "auth");
|
2007-01-11 01:41:44 +00:00
|
|
|
|
2007-01-04 04:52:42 +00:00
|
|
|
?>
|
2004-09-12 01:34:24 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2002-11-19 08:51:33 +00:00
|
|
|
|
2005-02-09 12:55:34 +00:00
|
|
|
<tr valign="top" class="required">
|
2009-06-11 03:34:46 +00:00
|
|
|
<td align="right"><?php print_string('auth_nntpport_key', 'auth_nntp') ?>: </td>
|
2004-09-12 01:34:24 +00:00
|
|
|
<td>
|
2007-01-04 04:52:42 +00:00
|
|
|
<input name="port" type="text" size="6" value="<?php echo $config->port ?>" />
|
|
|
|
<?php
|
|
|
|
|
|
|
|
if (isset($err["port"])) {
|
2009-08-20 13:14:05 +00:00
|
|
|
echo $OUTPUT->error_text($err["port"]);
|
2007-01-04 04:52:42 +00:00
|
|
|
}
|
2007-02-20 17:03:36 +00:00
|
|
|
|
2007-01-04 04:52:42 +00:00
|
|
|
?>
|
2004-09-12 01:34:24 +00:00
|
|
|
</td>
|
2009-06-11 03:34:46 +00:00
|
|
|
<td><?php print_string("auth_nntpport", "auth_nntp") ?></td>
|
2004-09-12 01:34:24 +00:00
|
|
|
</tr>
|
2002-11-19 08:51:33 +00:00
|
|
|
|
2004-09-12 01:34:24 +00:00
|
|
|
<tr valign="top">
|
2009-06-11 03:34:46 +00:00
|
|
|
<td align="right"><?php print_string('auth_nntpchangepasswordurl_key', 'auth_nntp') ?>: </td>
|
2004-09-12 01:34:24 +00:00
|
|
|
<td>
|
2007-01-04 04:52:42 +00:00
|
|
|
<input name="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
|
|
|
|
<?php
|
|
|
|
|
|
|
|
if (isset($err['changepasswordurl'])) {
|
2009-08-20 13:14:05 +00:00
|
|
|
echo $OUTPUT->error_text($err['changepasswordurl']);
|
2007-01-04 04:52:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
2004-09-12 01:34:24 +00:00
|
|
|
</td>
|
2007-01-04 04:52:42 +00:00
|
|
|
<td><?php print_string('changepasswordhelp', 'auth') ?></td>
|
2004-09-12 01:34:24 +00:00
|
|
|
</tr>
|
2007-01-04 04:52:42 +00:00
|
|
|
|
2007-02-20 17:03:36 +00:00
|
|
|
<?php
|
2007-01-04 04:52:42 +00:00
|
|
|
|
|
|
|
print_auth_lock_options('nntp', $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);
|
|
|
|
|
|
|
|
?>
|
|
|
|
</table>
|