3 // set to defaults if undefined
4 if (!isset($config->host
)) {
5 $config->host
= '127.0.0.1';
7 if (!isset($config->type
)) {
8 $config->type
= 'pop3notls';
10 if (!isset($config->port
)) {
11 $config->port
= '110';
13 if (!isset($config->mailbox
)) {
14 $config->mailbox
= 'INBOX';
16 if (!isset($config->changepasswordurl
)) {
17 $config->changepasswordurl
= '';
21 <table cellspacing=
"0" cellpadding=
"5" border=
"0">
23 <tr valign=
"top" class=
"required">
24 <td align=
"right"><label for=
"host"><?php print_string('auth_pop3host_key', 'auth_pop3') ?>:
</label></td>
26 <input name=
"host" id=
"host" type=
"text" size=
"30" value=
"<?php echo $config->host ?>" />
29 if (isset($err['host'])) {
30 echo $OUTPUT->error_text($err['host']);
38 print_string('auth_pop3host', 'auth_pop3');
39 print_string('auth_multiplehosts', 'auth');
45 <tr valign=
"top" class=
"required">
46 <td align=
"right"><?php echo html_writer
::label(get_string('auth_pop3type_key', 'auth_pop3'), 'menutype'); ?>:
</td>
50 $pop3types = array('pop3', 'pop3cert', 'pop3notls');
51 foreach ($pop3types as $pop3type) {
52 $pop3options[$pop3type] = $pop3type;
54 echo html_writer
::select($pop3options, 'type', $config->type
, false);
58 <td><?php print_string('auth_pop3type', 'auth_pop3') ?></td>
61 <tr valign=
"top" class=
"required">
62 <td align=
"right"><label for=
"port"><?php print_string('auth_pop3port_key', 'auth_pop3') ?>:
</label></td>
64 <input name=
"port" id=
"port" type=
"text" size=
"6" value=
"<?php echo $config->port ?>" />
67 if (isset($err['port'])) {
68 echo $OUTPUT->error_text($err['port']);
73 <td><?php print_string('auth_pop3port', 'auth_pop3') ?></td>
76 <tr valign=
"top" class=
"required">
77 <td align=
"right"><label for=
"mailbox"><?php print_string('auth_pop3mailbox_key', 'auth_pop3') ?>:
</label></td>
79 <input name=
"mailbox" id=
"mailbox" type=
"text" size=
"6" value=
"<?php echo $config->mailbox ?>" />
82 if (isset($err['mailbox'])) {
83 echo $OUTPUT->error_text($err['mailbox']);
88 <td><?php print_string('auth_pop3mailbox', 'auth_pop3') ?></td>
92 <td align=
"right"><label for=
"changepasswordurl"><?php print_string('auth_pop3changepasswordurl_key', 'auth_pop3') ?>:
</label></td>
94 <input name=
"changepasswordurl" id=
"changepasswordurl" type=
"text" value=
"<?php echo $config->changepasswordurl ?>" />
97 if (isset($err['changepasswordurl'])) {
98 echo $OUTPUT->error_text($err['changepasswordurl']);
103 <td><?php print_string('changepasswordhelp', 'auth') ?></td>
108 print_auth_lock_options($this->authtype
, $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);