Changeset 516 for trunk/Common/Global.php
- Timestamp:
- Apr 9, 2013, 11:36:09 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Global.php
r513 r516 12 12 include_once(dirname(__FILE__).'/Version.php'); 13 13 include_once(dirname(__FILE__).'/Update.php'); 14 include_once(dirname(__FILE__).'/VarDumper.php'); 14 15 include_once(dirname(__FILE__).'/Module.php'); 15 16 include_once(dirname(__FILE__).'/AppModule.php'); 16 17 include_once(dirname(__FILE__).'/Database.php'); 17 include_once(dirname(__FILE__).'/Error.php');18 18 include_once(dirname(__FILE__).'/Code.php'); 19 19 include_once(dirname(__FILE__).'/Mail.php'); … … 28 28 29 29 // Application modules 30 include_once(dirname(__FILE__).'/../Modules/Error/Error.php'); 30 31 include_once(dirname(__FILE__).'/../Modules/File/File.php'); 31 32 include_once(dirname(__FILE__).'/../Modules/Meteostation/Meteostation.php'); … … 174 175 175 176 $System = new System(); 176 $System->Config = $Config;177 $System->Config = &$Config; 177 178 $System->Database->Connect($Config['Database']['Host'], $Config['Database']['User'], $Config['Database']['Password'], $Config['Database']['Database']); 178 179 $System->Database->Prefix = $Config['Database']['Prefix']; … … 190 191 // Init old modules 191 192 $System->AddModule(new Log()); 192 $System->AddModule(new ErrorHandler());193 $System->Modules['ErrorHandler']->ShowErrors = $Config['Web']['ShowPHPError'];194 $System->Modules['ErrorHandler']->Init();195 193 $System->AddModule(new User()); 196 194 if(isset($_SERVER['REMOTE_ADDR'])) $System->Modules['User']->Check(); … … 200 198 $System->Modules['Finance']->DirectoryId = $Config['Finance']['DirectoryId']; 201 199 $System->Modules['Finance']->LoadMonthParameters(0); 200 $System->Modules['Log']->Database->LastQuery = 'ssd'; 202 201 RegisterFormClasses($System->FormManager); 203 202 203 204 204 // Register new modules 205 $System->ModuleManager->RegisterModule(new ModuleError($System)); 205 206 $System->ModuleManager->RegisterModule(new ModuleFile($System)); 206 207 $System->ModuleManager->RegisterModule(new ModuleMeteostation($System));
Note:
See TracChangeset
for help on using the changeset viewer.