Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

More tweaks

  • Loading branch information...
commit a7514c09e6f3b8ee252825a587e9aff6ad616eea 1 parent 50c4bd4
moodler authored
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
2  auth/imap/lib.php
@@ -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
5 auth/nntp/lib.php
@@ -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
5 auth/pop3/lib.php
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.