1: <?php
2: /**
3: * Luxor application API.
4: *
5: * This file defines Luxor's core application definition.
6: *
7: * See the enclosed file COPYING for license information (GPL). If you
8: * did not receive this file, see http://www.horde.org/licenses/gpl.
9: *
10: * @package Luxor
11: */
12:
13: /* Determine the base directories. */
14: if (!defined('LUXOR_BASE')) {
15: define('LUXOR_BASE', dirname(__FILE__) . '/..');
16: }
17:
18: if (!defined('HORDE_BASE')) {
19: /* If Horde does not live directly under the app directory, the HORDE_BASE
20: * constant should be defined in config/horde.local.php. */
21: if (file_exists(LUXOR_BASE . '/config/horde.local.php')) {
22: include LUXOR_BASE . '/config/horde.local.php';
23: } else {
24: define('HORDE_BASE', LUXOR_BASE . '/..');
25: }
26: }
27:
28: /* Load the Horde Framework core (needed to autoload
29: * Horde_Registry_Application::). */
30: require_once HORDE_BASE . '/lib/core.php';
31:
32: class Luxor_Application extends Horde_Registry_Application
33: {
34: /**
35: */
36: public $version = 'H4 (1.0-git)';
37:
38: /**
39: * Global variables defined:
40: * $luxor_shares - TODO
41: */
42: protected function _init()
43: {
44: // Luxor base libraries.
45: Luxor::initialize();
46: }
47:
48: /**
49: */
50: public function menu(Horde_Menu $menu)
51: {
52: return Luxor::getMenu();
53: }
54:
55: }
56: