Ignore:
Timestamp:
Apr 1, 2013, 12:29:37 AM (12 years ago)
Author:
chronos
Message:
  • Upraveno: Procházení sdílení přetvořeno na aplikační modul.
  • Ukládání a udržování souborů na disku bude nyní samostatný modul. Na tomto modulu zavisí moduly Finance a News.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Global.php

    r501 r505  
    2222include_once(dirname(__FILE__).'/Page.php');
    2323include_once(dirname(__FILE__).'/Form/Form.php');
    24 include_once(dirname(__FILE__).'/File.php');
    2524include_once(dirname(__FILE__).'/../aktuality/news.php');
    2625include_once(dirname(__FILE__).'/../finance/bills.php');
     
    3029 
    3130// Application modules
     31include_once(dirname(__FILE__).'/../Modules/File/File.php');
    3232include_once(dirname(__FILE__).'/../Modules/Meteostation/Meteostation.php');
    3333include_once(dirname(__FILE__).'/../Modules/Portal/Portal.php');
     
    4242include_once(dirname(__FILE__).'/../Modules/Finance/Finance.php');
    4343include_once(dirname(__FILE__).'/../Modules/FinanceBankAPI/FinanceBankAPI.php');
     44include_once(dirname(__FILE__).'/../Modules/NetworkShare/NetworkShare.php');
    4445
    4546class System extends Module
     
    5253  var $ModuleManager;
    5354  var $PathItems;
    54   var $FilesDir;
    5555
    5656  function __construct()
     
    6060    $this->Pages = array();
    6161    $this->ModuleManager = new AppModuleManager();
    62     $this->FilesDir = '';
    6362    $this->Database = new Database();
    6463    $this->FormManager = new FormManager($this->Database);
     
    175174  $System = new System();
    176175  $System->Config = $Config;
    177   $System->FilesDir = dirname(__FILE__).'/../'.$Config['Web']['UploadFileFolder'].'/';
    178176  $System->Database->Connect($Config['Database']['Host'], $Config['Database']['User'], $Config['Database']['Password'], $Config['Database']['Database']);
    179177  $System->Database->Prefix = $Config['Database']['Prefix'];
     
    203201 
    204202  // Register new modules
     203  $System->ModuleManager->RegisterModule(new ModuleFile($System));
    205204  $System->ModuleManager->RegisterModule(new ModuleMeteostation($System));
    206205  $System->ModuleManager->RegisterModule(new ModulePortal($System));
     
    215214  $System->ModuleManager->RegisterModule(new ModuleFinance($System));
    216215  $System->ModuleManager->RegisterModule(new ModuleFinanceBankAPI($System));
     216  $System->ModuleManager->RegisterModule(new ModuleNetworkShare($System));
    217217  $System->ModuleManager->StartAll();
    218218}
Note: See TracChangeset for help on using the changeset viewer.