2007-01-04 04:52:42 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// set to defaults if undefined
|
|
|
|
if (!isset($config->host)) {
|
|
|
|
$config->host = '127.0.0.1';
|
|
|
|
}
|
|
|
|
if (!isset($config->type)) {
|
|
|
|
$config->type = 'pop3notls';
|
|
|
|
}
|
|
|
|
if (!isset($config->port)) {
|
|
|
|
$config->port = '110';
|
|
|
|
}
|
|
|
|
if (!isset($config->mailbox)) {
|
|
|
|
$config->mailbox = 'INBOX';
|
|
|
|
}
|
|
|
|
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">
|
2007-01-04 04:52:42 +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_pop3host_key', 'auth_pop3') ?>: </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
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
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_pop3host', 'auth_pop3');
|
2007-01-04 04:52:42 +00:00
|
|
|
print_string('auth_multiplehosts', 'auth');
|
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>
|
|
|
|
</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_pop3type_key', 'auth_pop3') ?>: </td>
|
2005-05-16 19:38:21 +00:00
|
|
|
<td>
|
2007-01-04 04:52:42 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$pop3types = array('pop3', 'pop3cert', 'pop3notls');
|
|
|
|
foreach ($pop3types as $pop3type) {
|
|
|
|
$pop3options[$pop3type] = $pop3type;
|
|
|
|
}
|
2010-01-16 18:29:51 +00:00
|
|
|
echo html_writer::select($pop3options, 'type', $config->type, false);
|
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_pop3type', 'auth_pop3') ?></td>
|
2004-09-12 01:34:24 +00:00
|
|
|
</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_pop3port_key', 'auth_pop3') ?>: </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
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
2004-09-12 01:34:24 +00:00
|
|
|
</td>
|
2009-06-11 03:34:46 +00:00
|
|
|
<td><?php print_string('auth_pop3port', 'auth_pop3') ?></td>
|
2004-09-12 01:34:24 +00:00
|
|
|
</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_pop3mailbox_key', 'auth_pop3') ?>: </td>
|
2005-05-16 19:38:21 +00:00
|
|
|
<td>
|
2007-01-04 04:52:42 +00:00
|
|
|
<input name="mailbox" type="text" size="6" value="<?php echo $config->mailbox ?>" />
|
|
|
|
<?php
|
|
|
|
|
|
|
|
if (isset($err['mailbox'])) {
|
2009-08-20 13:14:05 +00:00
|
|
|
echo $OUTPUT->error_text($err['mailbox']);
|
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_pop3mailbox', 'auth_pop3') ?></td>
|
2004-09-12 01:34:24 +00:00
|
|
|
</tr>
|
2004-08-15 17:21:01 +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_pop3changepasswordurl_key', 'auth_pop3') ?>: </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>
|
2005-06-02 05:39:41 +00:00
|
|
|
|
2007-02-20 17:03:36 +00:00
|
|
|
<?php
|
2007-01-04 04:52:42 +00:00
|
|
|
|
|
|
|
print_auth_lock_options('pop3', $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);
|
|
|
|
|
|
|
|
?>
|
|
|
|
</table>
|