2013-10-21 22:46:31 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
date_default_timezone_set('UTC');
|
|
|
|
|
2016-05-11 00:26:44 +00:00
|
|
|
$try = [
|
2013-10-21 22:46:31 +00:00
|
|
|
__DIR__ . '/../vendor/autoload.php',
|
|
|
|
__DIR__ . '/../../../autoload.php',
|
2016-05-11 00:26:44 +00:00
|
|
|
];
|
2013-10-21 22:46:31 +00:00
|
|
|
|
2016-05-11 00:26:44 +00:00
|
|
|
foreach ($try as $path) {
|
2013-10-21 22:46:31 +00:00
|
|
|
if (file_exists($path)) {
|
2016-05-11 00:26:44 +00:00
|
|
|
$autoLoader = include $path;
|
2013-10-21 22:46:31 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2016-05-11 00:26:44 +00:00
|
|
|
|
|
|
|
$autoLoader->addPsr4('Sabre\\VObject\\', __DIR__ . '/VObject');
|
|
|
|
|
|
|
|
if (!defined('SABRE_TEMPDIR')) {
|
|
|
|
define('SABRE_TEMPDIR', __DIR__ . '/temp/');
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!file_exists(SABRE_TEMPDIR)) {
|
|
|
|
mkdir(SABRE_TEMPDIR);
|
|
|
|
}
|