Changeset 518 for trunk/Common


Ignore:
Timestamp:
Apr 14, 2013, 5:15:25 PM (12 years ago)
Author:
chronos
Message:
  • Upraveno: Síťové informace přetvořeny na aplikační modul.
Location:
trunk/Common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Global.php

    r517 r518  
    5656  var $ModuleManager;
    5757  var $PathItems;
     58  var $RootURLFolder;
    5859
    5960  function __construct()
     
    153154  function Link($Target)
    154155  {
    155     global $Config;
    156    
    157     return($Config['Web']['RootFolder'].$Target);
     156    return($this->RootURLFolder.$Target);
    158157  }   
    159158}
     
    182181  $System->Database->ShowSQLError = $Config['Web']['ShowSQLError'];
    183182  $System->Database->ShowSQLQuery = $Config['Web']['ShowSQLQuery'];
     183  $System->RootURLFolder = $Config['Web']['RootFolder'];
    184184 
    185185  // Check database persistence structure
  • trunk/Common/Page.php

    r501 r518  
    188188    echo($Output);
    189189  }
     190 
     191  function NewPage($ClassName)
     192  {
     193    $Page = new $ClassName();
     194    $Page->System = $this->System;
     195    $Page->Database = $this->Database;
     196    return($Page);
     197  }
    190198
    191199  // Funkce formatovani vystupu
Note: See TracChangeset for help on using the changeset viewer.