Permalink
Browse files

More tweaks

  • Loading branch information...
1 parent 50c4bd4 commit a7514c09e6f3b8ee252825a587e9aff6ad616eea moodler committed Dec 31, 2002
Showing with 3 additions and 9 deletions.
  1. +1 −1 auth/imap/lib.php
  2. +1 −4 auth/nntp/lib.php
  3. +1 −4 auth/pop3/lib.php
View
@@ -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);
View
@@ -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);
View
@@ -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);

0 comments on commit a7514c0

Please sign in to comment.