]> git.mjollnir.org Git - moodle.git/commitdiff
More tweaks
authormoodler <moodler>
Tue, 31 Dec 2002 08:50:24 +0000 (08:50 +0000)
committermoodler <moodler>
Tue, 31 Dec 2002 08:50:24 +0000 (08:50 +0000)
auth/imap/lib.php
auth/nntp/lib.php
auth/pop3/lib.php

index ab0d9fa5c0cab741f39eb5eb719e1f4a0200251d..1bf4fd46a72020e4e61f4934112a246d65e7fcd9 100644 (file)
@@ -26,7 +26,7 @@ function auth_user_login ($username, $password) {
 
     error_reporting(0);
     $connection = imap_open($host, $username, $password, OP_HALFOPEN);
-    error_reporting(7);   
+    error_reporting($CFG->debug);   
 
     if ($connection) {
         imap_close($connection);
index 6ed1cfeac77c7532e422f159de4624baf05747a2..de0a2d597e0004bf9228351992e8c78b8e8e2ee9 100644 (file)
@@ -1,9 +1,6 @@
 <?PHP  // $Id$
        // Authentication by looking up an NNTP server
 
-// This code is completely untested so far  -  IT NEEDS TESTERS!
-// Looks like it should work though ...
-
 
 function auth_user_login ($username, $password) {
 // Returns true if the username and password work
@@ -15,7 +12,7 @@ function auth_user_login ($username, $password) {
 
     error_reporting(0);
     $connection = imap_open($host, $username, $password, OP_HALFOPEN);
-    error_reporting(7);   
+    error_reporting($CFG->debug);   
 
     if ($connection) {
         imap_close($connection);
index 88412f6b98149955e8652064910b58626202dd87..d6eee07f3b7101d116b13af9a8f0d11faf63ba42 100644 (file)
@@ -1,9 +1,6 @@
 <?PHP  // $Id$
        // Authentication by looking up a POP3 server
 
-// This code is completely untested so far  -  IT NEEDS TESTERS!
-// Looks like it should work though ...
-
 function auth_user_login ($username, $password) {
 // Returns true if the username and password work
 // and false if they are wrong or don't exist.
@@ -21,7 +18,7 @@ function auth_user_login ($username, $password) {
 
     error_reporting(0);
     $connection = imap_open($host, $username, $password, OP_HALFOPEN);
-    error_reporting(7);   
+    error_reporting($CFG->debug);   
 
     if ($connection) {
         imap_close($connection);