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