Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
z-push
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Björn Fischer
z-push
Commits
835c30a2
Commit
835c30a2
authored
Mar 07, 2018
by
Sebastian Kummer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZP-1367 Check if php-mapi classes are loaded.
Released under the Affero GNU General Public License (AGPL) version 3.
parent
e5d7f7ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
kopano.php
tools/gab-sync/lib/kopano.php
+6
-0
No files found.
tools/gab-sync/lib/kopano.php
View file @
835c30a2
...
...
@@ -55,6 +55,12 @@ class Kopano extends SyncWorker {
*/
public
function
__construct
()
{
parent
::
__construct
();
// check if the php-mapi classes can be loaded
if
(
!
defined
(
'MAPI_E_FAILONEPROVIDER'
)
||
!
defined
(
'PR_CONTAINER_CLASS'
)
||
!
function_exists
(
'getPropIdsFromStrings'
))
{
$this
->
Terminate
(
"Please verify the php-mapi configuration, as the php-mapi includes can not be found in the php include path. Aborting."
);
}
// send Z-Push version and user agent to ZCP >7.2.0
if
(
$this
->
checkMapiExtVersion
(
'7.2.0'
))
{
$this
->
session
=
mapi_logon_zarafa
(
USERNAME
,
PASSWORD
,
SERVER
,
CERTIFICATE
,
CERTIFICATE_PASSWORD
,
0
,
self
::
VERSION
,
self
::
NAME
.
" "
.
self
::
VERSION
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment