Update sync.php for Kopano compatibility.

This commit is contained in:
Christoph Haas 2017-05-31 14:08:20 +02:00
parent 9cb9978adc
commit 4e9a05987e

View File

@ -4,7 +4,7 @@
* sync.php, Kopano calender to ics im/exporter backend * sync.php, Kopano calender to ics im/exporter backend
* *
* Author: Christoph Haas <christoph.h@sprinternet.at> * Author: Christoph Haas <christoph.h@sprinternet.at>
* Copyright (C) 2012-2016 Christoph Haas * Copyright (C) 2012-2017 Christoph Haas
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
@ -32,11 +32,11 @@ if(php_sapi_name() !== 'cli') {
*/ */
// MAPI includes // MAPI includes
include('/usr/share/php/mapi/mapi.util.php'); include('mapi/mapi.util.php');
include('/usr/share/php/mapi/mapidefs.php'); include('mapi/mapidefs.php');
include('/usr/share/php/mapi/mapicode.php'); include('mapi/mapicode.php');
include('/usr/share/php/mapi/mapitags.php'); include('mapi/mapitags.php');
include('/usr/share/php/mapi/mapiguid.php'); include('mapi/mapiguid.php');
include('config.php'); include('config.php');
include('functions.php'); include('functions.php');
@ -134,7 +134,7 @@ foreach($userList as $userName => $userData) {
echo "Import completed: $result\n"; echo "Import completed: $result\n";
$result = update_last_sync_date($userStore, $syncItemName); $result = update_last_sync_date($userStore, $syncItemName);
$res = $result ? "true":"false"; $res = $result ? "true":"false";
echo "Updated Zarafa settings: " . $res . "\n"; echo "Updated Kopano settings: " . $res . "\n";
} else { } else {
echo "Uploading failed: " . $result . "\n"; echo "Uploading failed: " . $result . "\n";
} }