[imp] Turba -> IMAP

Atif Ghaffar aghaffar@developer.ch
Thu, 19 Apr 2001 00:03:01 +0200


---------------------- multipart/mixed attachment
Atif Ghaffar wrote:
> =

> Hi James.
> =

> Here is a hack, I mean patch.

Sorry, previous was the wrong one. (wrong order of files in diff)
Here is the correct one.



-- =

Atif Ghaffar
Internet Development Manager
4unet AG/SA/Ltd.
-------------------------.
        +41 21 351 53 60 =A6 voice
        +41 78 787 51 45 =A6 mobile
        +41 86 0796598972=A6 fax
    http://www.4unet.net =A6 www
http://atif.developer.ch =A6 homepage
  atif.ghaffar@4unet.net =A6 email
---------------------- multipart/mixed attachment
--- Auth.php	Thu Apr 19 00:00:37 2001
+++ XAuth.php	Wed Apr 18 23:51:38 2001
@@ -174,6 +174,11 @@
      */
     function getAuth($realm = null)
     {
+	if (isset($GLOBALS['HTTP_SESSION_VARS']['imp']['user'])){
+		return $GLOBALS['HTTP_SESSION_VARS']['imp']['user'];
+	} else {
+		return false;
+	}
         if (!empty($realm)) {
             if (isset($GLOBALS['HTTP_SESSION_VARS']['__auth'][$realm])) {
                 if (!empty($GLOBALS['HTTP_SESSION_VARS']['__auth'][$realm]['authenticated']) &&

---------------------- multipart/mixed attachment--