From 704da28e4d1172c072359dc1e74a1ead19b97490 Mon Sep 17 00:00:00 2001 From: moodler Date: Sun, 17 Nov 2002 02:51:36 +0000 Subject: [PATCH] Remove { error, and move things around --- auth/imap/lib.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/auth/imap/lib.php b/auth/imap/lib.php index 39b5b83e79..8b0391ee8b 100644 --- a/auth/imap/lib.php +++ b/auth/imap/lib.php @@ -5,8 +5,9 @@ // Looks like it should work though ... $CFG->auth_imaphost = "127.0.0.1"; // Should be IP number -$CFG->auth_imaptype = "imap"; // imap, imapssl, imapcert +$CFG->auth_imaptype = "imap"; // imap, imapssl, imapcert $CFG->auth_imapport = "143"; // 143, 993 +$CFG->auth_imapinfo = "Just use the same username and password as your school email account"; function auth_user_login ($username, $password) { @@ -16,15 +17,16 @@ function auth_user_login ($username, $password) { global $CFG; switch ($CFG->auth_imaptype) { - case "imap": - $host = "{$CFG->auth_imaphost:$CFG->auth_imapport}INBOX"; - break; case "imapssl": - $host = "{$CFG->auth_imaphost:$CFG->auth_imapport/imap/ssl}INBOX"; + $host = "\{$CFG->auth_imaphost:$CFG->auth_imapport/imap/ssl}INBOX"; break; + case "imapcert": - $host = "{$CFG->auth_imaphost:$CFG->auth_imapport/imap/ssl/novalidate-cert}INBOX"; + $host = "\{$CFG->auth_imaphost:$CFG->auth_imapport/imap/ssl/novalidate-cert}INBOX"; break; + + default: + $host = "\{$CFG->auth_imaphost:$CFG->auth_imapport}INBOX"; } if ($connection = imap_open($host, $username, $password, OP_HALFOPEN)) { -- 2.39.5