Changeset 525 for trunk/Common/Global.php
- Timestamp:
- Apr 20, 2013, 11:47:25 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Global.php
r524 r525 22 22 23 23 // Application modules 24 // TODO: Should be configurable 24 25 include_once(dirname(__FILE__).'/../Modules/System/System.php'); 25 26 include_once(dirname(__FILE__).'/../Modules/Error/Error.php'); … … 63 64 64 65 $System = new System(); 66 // TODO: unset general global variable $Config after setting is loaded to objects 65 67 $System->Config = &$Config; 66 68 $System->Database->Connect($Config['Database']['Host'], $Config['Database']['User'], $Config['Database']['Password'], $Config['Database']['Database']); … … 82 84 83 85 // Register new modules 86 // TODO: Should be configurable 84 87 $System->ModuleManager->RegisterModule(new ModuleError($System)); 85 88 $System->ModuleManager->RegisterModule(new ModuleSystem($System)); 86 89 $System->ModuleManager->RegisterModule(new ModuleLog($System)); 87 90 $System->ModuleManager->RegisterModule(new ModuleFile($System)); 91 $System->ModuleManager->RegisterModule(new ModuleUser($System)); 88 92 $System->ModuleManager->RegisterModule(new ModuleMeteostation($System)); 89 93 $System->ModuleManager->RegisterModule(new ModulePortal($System)); … … 95 99 $System->ModuleManager->RegisterModule(new ModuleChat($System)); 96 100 $System->ModuleManager->RegisterModule(new ModuleWebCam($System)); 97 $System->ModuleManager->RegisterModule(new ModuleUser($System));98 101 $System->ModuleManager->RegisterModule(new ModuleFinance($System)); 99 102 $System->ModuleManager->RegisterModule(new ModuleFinanceBankAPI($System));
Note:
See TracChangeset
for help on using the changeset viewer.