0446060520326064e195defa62e7a8d3121b9d2c
[shipsimu.git] / application / ship-simu / init.php
1 <?php
2 // Application initializer
3 //
4 // Please remember that this include file is being loaded *before* the class
5 // loader is loading classes from "exceptions", "interfaces" and "main"!
6 //
7 // You can prevent adding this application to the selector by uncommenting the
8 // following line:
9 //
10 // if ((isset($this)) && (is_object($this)) && ($this->isClass("ApplicationSelector"))) { return; }
11 //
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)
14 //
15 // Get an instance of the helper
16 $eval = sprintf("\$app = %s::getInstance();",
17         FrameworkConfiguration::getInstance()->readConfig("app_helper_class")
18 );
19 eval($eval);
20
21 // Set application name and version
22 $app->setAppName("Ship-Simu Schiffsimulator");
23 $app->setAppVersion("0.1");
24 $app->setAppShortName("ship-simu");
25
26 // Initialize output system
27 require(PATH . "inc/output.php");
28
29 // Initialize file i/o system
30 require(PATH . "inc/file_io.php");
31
32 // Include the language sub-system
33 require(PATH . "inc/language.php");
34
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");
38
39 // [EOF]
40 ?>