Changeset 4000 for contrib/z-push/backend/BackendProxy.php
- Timestamp:
- 04/13/11 10:07:27 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/z-push/backend/BackendProxy.php
r3754 r4000 11 11 * Consult LICENSE file for details 12 12 ************************************************/ 13 include_once('diffbackend.php');13 require_once("diffbackend.php"); 14 14 15 15 class BackendProxy extends BackendDiff { … … 28 28 29 29 function Logon($username, $domain, $password) { 30 global $BACKEND_EMAIL; 31 if (isset($BACKEND_EMAIL)) return $this->BackendEmail->Logon($username, $domain, $password); 32 else return true; 30 global $BACKEND_EMAIL, $BACKEND_CONTACTS, $BACKEND_CALENDAR; 31 if (isset($BACKEND_EMAIL) and (! $this->BackendEmail->Logon($username, $domain, $password))) return false; 32 if (isset($BACKEND_CONTACTS) and (! $this->BackendContacts->Logon($username, $domain, $password))) return false; 33 if (isset($BACKEND_CALENDAR) and (! $this->BackendCalendar->Logon($username, $domain, $password))) return false; 34 return true; 33 35 } 34 36 … … 42 44 debugLog('BackendProxy::Setup('.$user.','.$devid.','.$protocolversion.')'); 43 45 global $BACKEND_EMAIL, $BACKEND_CONTACTS, $BACKEND_CALENDAR; 44 $this->_user = $user;45 $this->_devid = $devid;46 $this->_protocolversion = $protocolversion;47 46 if (isset($BACKEND_EMAIL)) $this->BackendEmail->Setup($user, $devid, $protocolversion); 48 47 if (isset($BACKEND_CONTACTS)) $this->BackendContacts->Setup($user, $devid, $protocolversion);
Note: See TracChangeset
for help on using the changeset viewer.