mirror of
https://github.com/moodle/moodle.git
synced 2025-01-21 23:48:45 +01:00
74 lines
2.3 KiB
HTML
74 lines
2.3 KiB
HTML
<?PHP // $Id$
|
|
if (!isset($config->auth_pop3host)) {
|
|
$config->auth_pop3host = "127.0.0.1";
|
|
}
|
|
if (!isset($config->auth_pop3type)) {
|
|
$config->auth_pop3type = "pop3notls";
|
|
}
|
|
if (!isset($config->auth_pop3port)) {
|
|
$config->auth_pop3port = "110";
|
|
}
|
|
if (!isset($config->auth_pop3mailbox)) {
|
|
$config->auth_pop3mailbox = "INBOX";
|
|
}
|
|
?>
|
|
<tr valign="top" BGCOLOR="<?php echo $THEME->cellheading2 ?>">
|
|
<TD ALIGN=RIGHT><P>auth_pop3host:</TD>
|
|
<TD>
|
|
<INPUT name=auth_pop3host TYPE=text SIZE=30 VALUE="<?php echo $config->auth_pop3host?>">
|
|
<?php if (isset($err["auth_pop3host"])) formerr($err["auth_pop3host"]); ?>
|
|
</TD>
|
|
<TD>
|
|
<?php print_string("auth_pop3host","auth") ?>
|
|
<?php print_string("auth_multiplehosts","auth") ?>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
|
|
<TD ALIGN=RIGHT><P>auth_pop3type:</TD>
|
|
<TD>
|
|
<?php $pop3types = array("pop3","pop3cert", "pop3notls");
|
|
foreach($pop3types as $pop3type) {
|
|
$pop3options[$pop3type] = $pop3type;
|
|
}
|
|
choose_from_menu($pop3options, "auth_pop3type", $config->auth_pop3type, "");
|
|
?>
|
|
</TD>
|
|
<TD>
|
|
<?php print_string("auth_pop3type","auth") ?>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
|
|
<TD ALIGN=RIGHT><P>auth_pop3port:</TD>
|
|
<TD>
|
|
<INPUT name=auth_pop3port TYPE=text SIZE=6 VALUE="<?php echo $config->auth_pop3port?>">
|
|
<?php if (isset($err["auth_pop3port"])) formerr($err["auth_pop3port"]); ?>
|
|
</TD>
|
|
<TD>
|
|
<?php print_string("auth_pop3port","auth") ?>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
|
|
<TD ALIGN=RIGHT><P>auth_pop3mailbox:</TD>
|
|
<TD>
|
|
<INPUT name=auth_pop3mailbox TYPE=text SIZE=6 VALUE="<?php echo $config->auth_pop3mailbox?>">
|
|
<?php if (isset($err["auth_pop3mailbox"])) formerr($err["auth_pop3mailbox"]); ?>
|
|
</TD>
|
|
<TD>
|
|
<?php print_string("auth_pop3mailbox","auth") ?>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR VALIGN=TOP>
|
|
<TD ALIGN=RIGHT><P><?php print_string("instructions", "auth") ?>:</TD>
|
|
<TD>
|
|
<TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><?php p($config->auth_instructions) ?></TEXTAREA>
|
|
</TD>
|
|
<TD>
|
|
<?php print_string("authinstructions","auth") ?>
|
|
<?php helpbutton("text", get_string("helptext")) ?>
|
|
</TD>
|
|
</TR>
|