1<?php
2/**
3 * This file defines Horde's core API interface. Other core Horde libraries
4 * can interact with Content through this API.
5 *
6 * @author Michael J. Rubinsky <mrubinsk@horde.org>
7 * @license  http://www.horde.org/licenses/bsd BSD
8 * @category Horde
9 * @package TimeObjects
10 */
11/* Determine the base directories. */
12if (!defined('TIMEOBJECTS_BASE')) {
13    define('TIMEOBJECTS_BASE', realpath(__DIR__ . '/..'));
14}
15
16if (!defined('HORDE_BASE')) {
17    /* If Horde does not live directly under the app directory, the HORDE_BASE
18     * constant should be defined in config/horde.local.php. */
19    if (file_exists(TIMEOBJECTS_BASE . '/config/horde.local.php')) {
20        include TIMEOBJECTS_BASE . '/config/horde.local.php';
21    } else {
22        define('HORDE_BASE', realpath(TIMEOBJECTS_BASE . '/..'));
23    }
24}
25
26/* Load the Horde Framework core (needed to autoload
27 *  Horde_Registry_Application::). */
28require_once HORDE_BASE . '/lib/core.php';
29
30class Timeobjects_Application extends Horde_Registry_Application
31{
32    public $version = '2.1.4';
33}
34