initial files for using vcard in the gui
[squirrelmail.git] / functions / auth.php
index 93f9b2d8bbb88ecf48b426669084dd1ca641e9bc..85eb8ff3bdf8299948d77e062a5552684d126615 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * auth.php
  *
- * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ * Copyright (c) 1999-2003 The SquirrelMail Project Team
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  * Contains functions used to do authentication.
@@ -18,7 +18,7 @@ if (! isset($smtp_auth_mech)) {
 }
 
 if (! isset($imap_auth_mech)) {
-  $imap_auth_mech = 'plain';
+  $imap_auth_mech = 'login';
 }
 
 if (! isset($use_imap_tls)) {
@@ -49,7 +49,7 @@ function is_logged_in() {
         if (!sqsession_is_registered('session_expired_location')) {
            sqsession_register($session_expired_location,'session_expired_location');
         }
-        include_once( '../functions/display_messages.php' );
+        include_once( SM_PATH . 'functions/display_messages.php' );
         logout_error( _("You must be logged in to access this page.") );
         exit;
     }