Skip to content
This repository
branch: 0.6
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 107 lines (86 sloc) 2.292 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
<?php
/**
* XOAD all-in-one file.
*
* <p>This file includes all configuration files and
* classes that the XOAD package contains.</p>
* <p>The file also includes all installed
* extensions.</p>
*
* @author Stanimir Angeloff
*
* @package XOAD
*
* @version 0.6.0.0
*
*/

if ( ! defined('XOAD_BASE')) {

/**
* XOAD base folder that contains all package files.
*/
define('XOAD_BASE', dirname(__FILE__));
}

/**
* Loads the XOAD configuration file.
*/
require_once(XOAD_BASE . '/config/xoad.config.php');

/**
* Loads the XOAD extensions configuration file.
*/
require_once(XOAD_BASE . '/config/extensions.config.php');

/**
* Loads the file that defines the {@link XOAD_Observer} Class.
*/
require_once(XOAD_BASE . '/classes/Observer.class.php');

/**
* Loads the class that is used to extend classes with events.
*/
require_once(XOAD_BASE . '/classes/Observable.class.php');

/**
* Loads the class that defines extended functions that
* the XOAD package uses and overrides some
* deprecated functions, like gettype(...).
*/
require_once(XOAD_BASE . '/classes/Utilities.class.php');

/**
* Loads the class that is used to serialize a PHP variable
* into a {@link http://www.json.org JSON} string.
*/
require_once(XOAD_BASE . '/classes/Serializer.class.php');

/**
* Loads the class that is used to register a PHP variable/class
* in JavaScript.
*/
require_once(XOAD_BASE . '/classes/Client.class.php');

/**
* Loads the class that is used as base class for all
* XOAD Events storage providers.
*/
require_once(XOAD_BASE .'/classes/events/Storage.class.php');

/**
* Loads the class that is used to handle client callbacks.
*/
require_once(XOAD_BASE . '/classes/Server.class.php');

if ( ! empty($xoadExtensions)) {

foreach ($xoadExtensions as $extension) {

/**
* XOAD extension base folder that contains all extension files.
*/
define('XOAD_' . strtoupper($extension) . '_BASE', XOAD_BASE . '/extensions/' . $extension);

/**
* Loads the main extension file.
*/
require_once(XOAD_BASE . '/extensions/' . $extension . '/' . $extension . '.ext.php');
}
}

if (defined('XOAD_AUTOHANDLE')) {

if (XOAD_AUTOHANDLE) {

XOAD_Server::runServer();

if (defined('XOAD_CALLBACK')) {

if (XOAD_CALLBACK) {

exit;
}
}
}
}
?>
Something went wrong with that request. Please try again.