moodle/auth/nntp/config.html

75 lines
1.8 KiB
HTML
Raw Normal View History

2004-09-12 01:34:24 +00:00
<?php
// 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 = '';
}
?>
2007-04-20 07:54:42 +00:00
<table cellspacing="0" cellpadding="5" border="0">
<tr valign="top" class="required">
<td align="right"><?php print_string('auth_nntphost_key', 'auth_nntp') ?>: </td>
2005-05-16 19:38:21 +00:00
<td>
<input name="host" type="text" size="30" value="<?php echo $config->host ?>" />
<?php
2007-02-20 17:03:36 +00:00
if (isset($err["host"])) {
echo $OUTPUT->error_text($err["host"]);
}
2007-02-20 17:03:36 +00:00
?>
2005-05-16 19:38:21 +00:00
</td>
2004-09-12 01:34:24 +00:00
<td>
<?php
2007-02-20 17:03:36 +00:00
print_string("auth_nntphost", "auth_nntp");
print_string("auth_multiplehosts", "auth");
?>
2004-09-12 01:34:24 +00:00
</td>
</tr>
<tr valign="top" class="required">
<td align="right"><?php print_string('auth_nntpport_key', 'auth_nntp') ?>: </td>
2004-09-12 01:34:24 +00:00
<td>
<input name="port" type="text" size="6" value="<?php echo $config->port ?>" />
<?php
if (isset($err["port"])) {
echo $OUTPUT->error_text($err["port"]);
}
2007-02-20 17:03:36 +00:00
?>
2004-09-12 01:34:24 +00:00
</td>
<td><?php print_string("auth_nntpport", "auth_nntp") ?></td>
2004-09-12 01:34:24 +00:00
</tr>
2004-09-12 01:34:24 +00:00
<tr valign="top">
<td align="right"><?php print_string('auth_nntpchangepasswordurl_key', 'auth_nntp') ?>: </td>
2004-09-12 01:34:24 +00:00
<td>
<input name="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
<?php
if (isset($err['changepasswordurl'])) {
echo $OUTPUT->error_text($err['changepasswordurl']);
}
?>
2004-09-12 01:34:24 +00:00
</td>
<td><?php print_string('changepasswordhelp', 'auth') ?></td>
2004-09-12 01:34:24 +00:00
</tr>
2007-02-20 17:03:36 +00:00
<?php
print_auth_lock_options('nntp', $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);
?>
</table>