Changeset 505 for trunk/Common/Global.php
- Timestamp:
- Apr 1, 2013, 12:29:37 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Global.php
r501 r505 22 22 include_once(dirname(__FILE__).'/Page.php'); 23 23 include_once(dirname(__FILE__).'/Form/Form.php'); 24 include_once(dirname(__FILE__).'/File.php');25 24 include_once(dirname(__FILE__).'/../aktuality/news.php'); 26 25 include_once(dirname(__FILE__).'/../finance/bills.php'); … … 30 29 31 30 // Application modules 31 include_once(dirname(__FILE__).'/../Modules/File/File.php'); 32 32 include_once(dirname(__FILE__).'/../Modules/Meteostation/Meteostation.php'); 33 33 include_once(dirname(__FILE__).'/../Modules/Portal/Portal.php'); … … 42 42 include_once(dirname(__FILE__).'/../Modules/Finance/Finance.php'); 43 43 include_once(dirname(__FILE__).'/../Modules/FinanceBankAPI/FinanceBankAPI.php'); 44 include_once(dirname(__FILE__).'/../Modules/NetworkShare/NetworkShare.php'); 44 45 45 46 class System extends Module … … 52 53 var $ModuleManager; 53 54 var $PathItems; 54 var $FilesDir;55 55 56 56 function __construct() … … 60 60 $this->Pages = array(); 61 61 $this->ModuleManager = new AppModuleManager(); 62 $this->FilesDir = '';63 62 $this->Database = new Database(); 64 63 $this->FormManager = new FormManager($this->Database); … … 175 174 $System = new System(); 176 175 $System->Config = $Config; 177 $System->FilesDir = dirname(__FILE__).'/../'.$Config['Web']['UploadFileFolder'].'/';178 176 $System->Database->Connect($Config['Database']['Host'], $Config['Database']['User'], $Config['Database']['Password'], $Config['Database']['Database']); 179 177 $System->Database->Prefix = $Config['Database']['Prefix']; … … 203 201 204 202 // Register new modules 203 $System->ModuleManager->RegisterModule(new ModuleFile($System)); 205 204 $System->ModuleManager->RegisterModule(new ModuleMeteostation($System)); 206 205 $System->ModuleManager->RegisterModule(new ModulePortal($System)); … … 215 214 $System->ModuleManager->RegisterModule(new ModuleFinance($System)); 216 215 $System->ModuleManager->RegisterModule(new ModuleFinanceBankAPI($System)); 216 $System->ModuleManager->RegisterModule(new ModuleNetworkShare($System)); 217 217 $System->ModuleManager->StartAll(); 218 218 }
Note:
See TracChangeset
for help on using the changeset viewer.