Ignore:
Timestamp:
Apr 9, 2013, 11:36:09 PM (11 years ago)
Author:
chronos
Message:
  • Upraveno: Obsluha chybových stavů přepracována na aplikační modul.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Global.php

    r513 r516  
    1212include_once(dirname(__FILE__).'/Version.php');
    1313include_once(dirname(__FILE__).'/Update.php');
     14include_once(dirname(__FILE__).'/VarDumper.php');
    1415include_once(dirname(__FILE__).'/Module.php');
    1516include_once(dirname(__FILE__).'/AppModule.php');
    1617include_once(dirname(__FILE__).'/Database.php');
    17 include_once(dirname(__FILE__).'/Error.php');
    1818include_once(dirname(__FILE__).'/Code.php');
    1919include_once(dirname(__FILE__).'/Mail.php');
     
    2828 
    2929// Application modules
     30include_once(dirname(__FILE__).'/../Modules/Error/Error.php');
    3031include_once(dirname(__FILE__).'/../Modules/File/File.php');
    3132include_once(dirname(__FILE__).'/../Modules/Meteostation/Meteostation.php');
     
    174175
    175176  $System = new System();
    176   $System->Config = $Config;
     177  $System->Config = &$Config;
    177178  $System->Database->Connect($Config['Database']['Host'], $Config['Database']['User'], $Config['Database']['Password'], $Config['Database']['Database']);
    178179  $System->Database->Prefix = $Config['Database']['Prefix'];
     
    190191  // Init old modules
    191192  $System->AddModule(new Log());
    192   $System->AddModule(new ErrorHandler());
    193   $System->Modules['ErrorHandler']->ShowErrors = $Config['Web']['ShowPHPError'];
    194   $System->Modules['ErrorHandler']->Init();
    195193  $System->AddModule(new User());
    196194  if(isset($_SERVER['REMOTE_ADDR'])) $System->Modules['User']->Check();
     
    200198  $System->Modules['Finance']->DirectoryId = $Config['Finance']['DirectoryId'];
    201199  $System->Modules['Finance']->LoadMonthParameters(0);
     200  $System->Modules['Log']->Database->LastQuery = 'ssd';
    202201  RegisterFormClasses($System->FormManager);
    203202 
     203 
    204204  // Register new modules
     205  $System->ModuleManager->RegisterModule(new ModuleError($System));
    205206  $System->ModuleManager->RegisterModule(new ModuleFile($System));
    206207  $System->ModuleManager->RegisterModule(new ModuleMeteostation($System));
Note: See TracChangeset for help on using the changeset viewer.