Changeset 505 for trunk/Common


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.
Location:
trunk/Common
Files:
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified 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}
  • TabularUnified trunk/Common/Update.php

    r501 r505  
    176176        {
    177177          $Output .= '<h3>Aktualizace</h3>';
    178           $this->UpdateManager->Update();
     178          $Output .= $this->UpdateManager->Update();
    179179          $Output .= $this->ControlPanel();
    180180        } else
     
    183183          $Output .= '<h3>Instalace</h3>';
    184184          $this->UpdateManager->Install();
    185           $this->UpdateManager->Update();
     185          $Output .= $this->UpdateManager->Update();
    186186          $Output .= $this->ControlPanel();
    187187        } else
  • TabularUnified trunk/Common/Version.php

    r503 r505  
    11<?php
    22
    3 $Revision = 503; // Subversion revision
    4 $DatabaseRevision = 502;
    5 $ReleaseTime = '2013-03-10';
     3$Revision = 505; // Subversion revision
     4$DatabaseRevision = 505;
     5$ReleaseTime = '2013-03-31';
    66
    77?>
Note: See TracChangeset for help on using the changeset viewer.