Changeset 384


Ignore:
Timestamp:
Jan 23, 2012, 1:32:53 PM (13 years ago)
Author:
chronos
Message:
  • Obsah soubor missing.php přesunut do Page.php.
Location:
trunk
Files:
3 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Global.php

    r383 r384  
    3131  var $Pages = array();
    3232  var $Type;
     33  var $Style;
    3334 
    3435  function __construct($Database)
     
    6970
    7071  $System = new System($Database);
     72  $System->Style = $Config['Web']['Style'];
     73  $System->RootFolder = $Config['Web']['RootFolder'];
    7174  $System->Config = &$Config;
    7275  $System->Install();
    73   $System->Init();
     76  $System->Init(); 
    7477}
    7578
  • trunk/Common/Page.php

    r381 r384  
    230230}
    231231
     232class MissingPage extends Page
     233{
     234  var $FullTitle = 'Stránka nenalezena';
     235  var $ShortTitle = 'Stránka nenalezena';
     236
     237  function Show()
     238  {
     239    return('<h3 align="center">Požadovanou stránku nelze zobrazit, protože na serveru neexistuje.</h3>');
     240  }
     241}
     242
     243
    232244?>
  • trunk/Common/TableHeader.php

    r383 r384  
    9292      {
    9393        $this->QueryItems->Data['OrderDir'] = 1 - $OrderDir;
    94         $ArrowImage = '<img style="vertical-align: middle; border: 0px;" src="Style/'.$this->System->Output->Style.'/Images/'.$this->OrderArrowImage[$OrderDir].'" alt="order arrow">';
     94        $ArrowImage = '<img style="vertical-align: middle; border: 0px;" src="'.$this->System->RootFolder.'/Style/'.$this->System->Style.'/Images/'.$this->OrderArrowImage[$OrderDir].'" alt="order arrow">';
    9595      } else
    9696      {
  • trunk/index.php

    r379 r384  
    1313{
    1414  $PageClass = $System->Pages[$Page];
    15   $PageObject = new $PageClass();
    16   $PageObject->Database = &$Database;
    17   $PageObject->System = &$System;
    18   $PageObject->GetOutput();
    19 } else echo(PAGE_NOT_FOUND);
     15} else $PageClass = 'MissingPage';
     16$PageObject = new $PageClass();
     17$PageObject->Database = &$Database;
     18$PageObject->System = &$System;
     19$PageObject->GetOutput();
    2020
    2121//phpinfo();
Note: See TracChangeset for help on using the changeset viewer.