root / drupal7 / sites / all / libraries / iCalcreator-2.22.1 / iCalcreator.php @ 0ccfec7f
1 | 0aee3c58 | Assos Assos | <?php
|
---|---|---|---|
2 | /*********************************************************************************/
|
||
3 | /**
|
||
4 | *
|
||
5 | * A PHP implementation of rfc2445/rfc5545.
|
||
6 | *
|
||
7 | * @copyright Copyright (c) 2007-2015 Kjell-Inge Gustafsson, kigkonsult, All rights reserved
|
||
8 | * @link http://kigkonsult.se/iCalcreator/index.php
|
||
9 | * @license http://kigkonsult.se/downloads/dl.php?f=LGPL
|
||
10 | * @package iCalcreator
|
||
11 | * @version 2.22.1
|
||
12 | */
|
||
13 | /**
|
||
14 | * This library is free software; you can redistribute it and/or
|
||
15 | * modify it under the terms of the GNU Lesser General Public
|
||
16 | * License as published by the Free Software Foundation; either
|
||
17 | * version 2.1 of the License, or (at your option) any later version.
|
||
18 | *
|
||
19 | * This library is distributed in the hope that it will be useful,
|
||
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
22 | * Lesser General Public License for more details.
|
||
23 | *
|
||
24 | * You should have received a copy of the GNU Lesser General Public
|
||
25 | * License along with this library; if not, write to the Free Software
|
||
26 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||
27 | */
|
||
28 | /**
|
||
29 | * iCalcreator.php
|
||
30 | *
|
||
31 | * iCalcreator (class) files includes
|
||
32 | *
|
||
33 | * @package icalcreator
|
||
34 | * @copyright Copyright (c) 2007-2015 Kjell-Inge Gustafsson, kigkonsult, All rights reserved
|
||
35 | * @since 2.22.1 - 2015-06-06
|
||
36 | */
|
||
37 | /*********************************************************************************/
|
||
38 | /**
|
||
39 | * Do NOT remove or change version!!
|
||
40 | */
|
||
41 | define( 'ICALCREATOR_VERSION', 'iCalcreator 2.22.1' ); |
||
42 | /*********************************************************************************/
|
||
43 | if( !defined( 'ICALCREATOR_LIB_DIR' )) |
||
44 | define( 'ICALCREATOR_LIB_DIR', __DIR__ . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR ); |
||
45 | /**
|
||
46 | * iCalLoader
|
||
47 | *
|
||
48 | * load iCalcreator src and util classes
|
||
49 | *
|
||
50 | * @param string $class
|
||
51 | * @return void
|
||
52 | */
|
||
53 | function iCalLoader( $class ) { |
||
54 | $file = ICALCREATOR_LIB_DIR . $class . '.class.php'; |
||
55 | if( file_exists( $file )) |
||
56 | include $file; |
||
57 | } |
||
58 | spl_autoload_register( 'iCalLoader' );
|
||
59 | /**
|
||
60 | * iCalcreator add-on functionality functions
|
||
61 | */
|
||
62 | include ICALCREATOR_LIB_DIR . 'iCal.XML.inc.php'; |
||
63 | include ICALCREATOR_LIB_DIR . 'iCal.vCard.inc.php'; |
||
64 | include ICALCREATOR_LIB_DIR . 'iCal.tz.inc.php'; |