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("Ship-Simu Schiffsimulator");
23 $app->setAppVersion("0.1");
24 $app->setAppShortName("ship-simu");
26 // Initialize output system
27 require(PATH . "inc/output.php");
29 // Initialize file i/o system
30 require(PATH . "inc/file_io.php");
32 // Include the language sub-system
33 require(PATH . "inc/language.php");
35 // This application needs a database connection then we have to simply include
36 // the inc/database.php script
37 require(PATH . "inc/database.php");