Separated code for IMAP into IMAP, POP3 and NNTP
[moodle.git] / auth / imap / lib.php
index cdf3161..39b5b83 100644 (file)
@@ -1,12 +1,12 @@
 <?PHP  // $Id$
        // Authentication by looking up an IMAP server
 
-// This code is completely untested so far - I'm just jotting down ideas ...
+// This code is completely untested so far  -  IT NEEDS TESTERS!
 // Looks like it should work though ...
 
 $CFG->auth_imaphost   = "127.0.0.1";  // Should be IP number
-$CFG->auth_imaptype   = "imap";       // imap, imapssl, imapcert, pop3, pop3cert, nntp
-$CFG->auth_imapport   = "143";        // 143, 993, 100, 119
+$CFG->auth_imaptype   = "imap";       // imap, imapssl, imapcert
+$CFG->auth_imapport   = "143";        // 143, 993
 
 
 function auth_user_login ($username, $password) {
@@ -25,15 +25,6 @@ function auth_user_login ($username, $password) {
         case "imapcert":
             $host = "{$CFG->auth_imaphost:$CFG->auth_imapport/imap/ssl/novalidate-cert}INBOX";
         break;
-        case "pop3":
-            $host = "{$CFG->auth_imaphost:$CFG->auth_imapport/pop3}INBOX";
-        break;
-        case "pop3cert":
-            $host = "{$CFG->auth_imaphost:$CFG->auth_imapport/pop3/ssl/novalidate-cert}INBOX";
-        break;
-        case "nntp":
-            $host = "{$CFG->auth_imaphost:$CFG->auth_imapport/nntp}";
-        break;
     }
 
     if ($connection = imap_open($host, $username, $password, OP_HALFOPEN)) {