2 // Application initializer
4 // Please remember that this include file is being loaded *before* the class
5 // loader is loading classes from "exceptions", "interfaces" and "main"!
7 // You can prevent adding this application to the selector by uncommenting the
10 // if ((isset($this)) && (is_object($this)) && ($this->isClass("ApplicationSelector"))) { return; }
12 // isset() is required to prevent a warning and is_object() is highly required
13 // when the application itself is requested in URL (hint: index.php?app=your_app)
15 // Get an instance of the helper
16 $eval = sprintf("\$app = %s::getInstance();",
17 FrameworkConfiguration::getInstance()->readConfig("app_helper_class")
21 // Set application name and version
22 $app->setAppName("MXChange Hub");
23 $app->setAppVersion("0.0.0");
24 $app->setAppShortName("mxhub");
26 // Get's our IP address
27 $_SERVER['SERVER_ADDR'] = ConsoleTools::aquireSelfIPAddress();
29 // Initialize output system
30 require(PATH . "inc/output.php");
32 // Initialize file i/o system
33 require(PATH . "inc/file_io.php");
35 // Include the language sub-system
36 require(PATH . "inc/language.php");
38 // This application needs a database connection then we have to simply include
39 // the inc/database.php script
40 require(sprintf("%sinc/database%s",
42 FrameworkConfiguration::getInstance()->readConfig("php_extension")