Changeset 10 for trunk/Application


Ignore:
Timestamp:
Jun 1, 2023, 1:31:28 AM (18 months ago)
Author:
chronos
Message:
  • Fixed: More class type casting.
Location:
trunk/Application
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/BaseView.php

    r8 r10  
    1212    global $ReleaseTime, $Revision;
    1313
    14     $Output = '<?xml version="1.0" encoding="'.$this->System->Config['Web']['Charset'].'"?>'."\n".
     14    $Output = '<?xml version="1.0" encoding="'.Core::Cast($this->System)->Config['Web']['Charset'].'"?>'."\n".
    1515    '<!DOCTYPE html>'.
    1616    '<html>'.
    1717    '<head>'.
    1818    '<meta http-equiv="Content-Language" content="cs"/>'.
    19     '<meta http-equiv="content-type" content="text/html; charset='.$this->System->Config['Web']['Charset'].'" />'.
     19    '<meta http-equiv="content-type" content="text/html; charset='.Core::Cast($this->System)->Config['Web']['Charset'].'" />'.
    2020    '<meta name="robots" content="all" />'.
    21     '<title>'.$this->System->Config['Web']['Title'].'</title>'.
     21    '<title>'.Core::Cast($this->System)->Config['Web']['Title'].'</title>'.
    2222    '<link rel="StyleSheet" href="'.$this->System->Link('/style/basic/style.css').'" type="text/css" media="all"/>'.
    23     implode("\n", $this->System->HeadItems).
     23    implode("\n", Core::Cast($this->System)->HeadItems).
    2424    '</head><body>';
    2525    $Output .= $this->ShowHeader();
    2626    $Output .= $Content;
    2727    $Output .= '<br/><div style="text-align: center; font-size: small;">Verze: '.$Revision.' ('.HumanDate($ReleaseTime).')'.
    28       ' &nbsp; <a href="https://svn.zdechov.net/trac/open2ride/browser/trunk">Zdrojový kód</a> &nbsp; '.
    29       '<a href="https://svn.zdechov.net/trac/open2ride/log/trunk?verbose=on">Historie změn</a></div>';
     28      ' &nbsp; <a href="https://app.zdechov.net/open2ride/browser/trunk">Zdrojový kód</a> &nbsp; '.
     29      '<a href="https://app.zdechov.net/open2ride/log/trunk?verbose=on">Historie změn</a></div>';
    3030    $Output .= '</body></html>';
    3131    echo($Output);
     
    3737    $Output .= '<div class="MenuItem">';
    3838    $Bar = '';
    39     foreach ($this->System->Bars['TopLeft'] as $BarItem)
     39    foreach (Core::Cast($this->System)->Bars['TopLeft'] as $BarItem)
    4040      $Bar .= call_user_func($BarItem);
    41       if (trim($Bar) != '') $Output .= $Bar;
     41    if (trim($Bar) != '') $Output .= $Bar;
    4242      else $Output .= '&nbsp;';
    4343    $Output .= '</div><div class="MenuItem2">';
    4444    $Bar = '';
    45     foreach ($this->System->Bars['Top'] as $BarItem)
     45    foreach (Core::Cast($this->System)->Bars['Top'] as $BarItem)
    4646      $Bar .= call_user_func($BarItem);
    47       if (trim($Bar) != '') $Output .= $Bar;
     47    if (trim($Bar) != '') $Output .= $Bar;
    4848      else $Output .= '&nbsp;';
    4949    $Output .= '</div></div>';
     
    5353  function GetOutput($Page)
    5454  {
    55     $Page->OnSystemMessage = array($this->System->BaseView, 'SystemMessage');
     55    $Page->OnSystemMessage = array(Core::Cast($this->System)->BaseView, 'SystemMessage');
    5656    $Output = $this->ShowPage($Page->Show());
    5757    return $Output;
  • trunk/Application/Core.php

    r8 r10  
    2323  public FormManager $FormManager;
    2424  public BaseView $BaseView;
     25  public User $User;
    2526
    2627  function __construct()
  • trunk/Application/Version.php

    r9 r10  
    66// and system will need database update.
    77
    8 $Revision = 9;
     8$Revision = 10;
    99$DatabaseRevision = 7;
    1010$ReleaseTime = strtotime('2023-06-01');
Note: See TracChangeset for help on using the changeset viewer.