예제 #1
0
} else {
    define("LINKED_APPOINTMENTS", false);
    debugLog("Working without linked appointments - necessary class cannot be found in include path");
}
// END ADDED dw2412
// START ADDED dw2412 to conversation index (AS14!)
if (include_file_exists('mapi/class.conversationindex.php') == true) {
    include_once 'mapi/class.conversationindex.php';
    define("CONVERSATIONINDEX", true);
} else {
    define("CONVERSATIONINDEX", false);
    debugLog("Working without conversation index - necessary class cannot be found in include path");
}
// END ADDED dw2412
// START ADDED dw2412 to support DocumentLibrary functionality
if (include_file_exists('include/smb.php') == true) {
    include_once 'include/smb.php';
    define("DOCUMENTLIBRARY", true);
} else {
    define("DOCUMENTLIBRARY", false);
    debugLog("SMB4PHP not found - DocumentLibrary Functions disabled");
}
// END ADDED dw2412
// We need this in order to parse the rfc822 messages
//that are passed in SendMail
include_once 'mimeDecode.php';
require_once 'z_RFC822.php';
include_once 'proto.php';
include_once 'backend.php';
include_once 'z_tnef.php';
include_once 'z_ical.php';
예제 #2
0
* File      :   imap.php
* Project   :   Z-Push
* Descr     :   This backend is based on
*               'BackendDiff' and implements an
*               IMAP interface
*
* Created   :   10.10.2007
*
* � Zarafa Deutschland GmbH, www.zarafaserver.de
* This file is distributed under GPL v2.
* Consult LICENSE file for details
************************************************/
include_once 'diffbackend.php';
// get this from http://www.chuggnutt.com/phpcode/class.html2text.inc.gz
// extract it to include folder and rename the file to class.html2text.inc.php
if (include_file_exists('class.html2text.inc.php') == true) {
    include_once 'class.html2text.inc.php';
}
// The is an improved version of mimeDecode from PEAR that correctly
// handles charsets and charset conversion
include_once 'mime.php';
include_once 'mimeDecode.php';
include_once 'mimeMagic.php';
require_once 'z_RFC822.php';
class BackendIMAP extends BackendDiff
{
    var $_loggedin = false;
    /* Called to logon a user. These are the three authentication strings that you must
     * specify in ActiveSync on the PDA. Normally you would do some kind of password
     * check here. Alternatively, you could ignore the password here and have Apache
     * do authentication via mod_auth_*