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"><?php print_string('auth_pop3host_key', 'auth') ?>:
</td>
26 <input name=
"host" type=
"text" size=
"30" value=
"<?php echo $config->host ?>" />
29 if (isset($err['host'])) {
30 formerr($err['host']);
38 print_string('auth_pop3host', 'auth');
39 print_string('auth_multiplehosts', 'auth');
45 <tr valign=
"top" class=
"required">
46 <td align=
"right"><?php print_string('auth_pop3type_key', 'auth') ?>:
</td>
50 $pop3types = array('pop3', 'pop3cert', 'pop3notls');
51 foreach ($pop3types as $pop3type) {
52 $pop3options[$pop3type] = $pop3type;
54 choose_from_menu($pop3options, 'type', $config->type
, '');
58 <td><?php print_string('auth_pop3type', 'auth') ?></td>
61 <tr valign=
"top" class=
"required">
62 <td align=
"right"><?php print_string('auth_pop3port_key', 'auth') ?>:
</td>
64 <input name=
"port" type=
"text" size=
"6" value=
"<?php echo $config->port ?>" />
67 if (isset($err['port'])) {
68 formerr($err['port']);
73 <td><?php print_string('auth_pop3port', 'auth') ?></td>
76 <tr valign=
"top" class=
"required">
77 <td align=
"right"><?php print_string('auth_pop3mailbox_key', 'auth') ?>:
</td>
79 <input name=
"mailbox" type=
"text" size=
"6" value=
"<?php echo $config->mailbox ?>" />
82 if (isset($err['mailbox'])) {
83 formerr($err['mailbox']);
88 <td><?php print_string('auth_pop3mailbox', 'auth') ?></td>
92 <td align=
"right"><?php print_string('auth_pop3changepasswordurl_key', 'auth') ?>:
</td>
94 <input name=
"changepasswordurl" type=
"text" value=
"<?php echo $config->changepasswordurl ?>" />
97 if (isset($err['changepasswordurl'])) {
98 formerr($err['changepasswordurl']);
103 <td><?php print_string('changepasswordhelp', 'auth') ?></td>
108 print_auth_lock_options('pop3', $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);