Changeset 957 for trunk/Application


Ignore:
Timestamp:
Sep 22, 2023, 11:55:38 PM (14 months ago)
Author:
chronos
Message:
  • Added: Store request URL into Log table.
  • Fixed: Some warnings for invalid inputs.
Location:
trunk/Application
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/BaseView.php

    r929 r957  
    7575    '<meta http-equiv="content-type" content="application/xhtml+xml; charset='.$this->Encoding.'" />'.
    7676    '<script type="text/javascript" src="'.$this->System->Link('/style/').$this->Style.'/global.js"></script>'.
    77     '<title>'.$Path.' - '.$this->System->Config['Web']['Title'].'</title>';
     77    '<title>'.$Path.' - '.Core::Cast($this->System)->Config['Web']['Title'].'</title>';
    7878
    7979    // Show page headers
    8080    $Bar = '';
    81     foreach ($this->System->PageHeaders as $Item)
     81    foreach (Core::Cast($this->System)->PageHeaders as $Item)
    8282      $Output .= call_user_func($Item);
    8383
     
    8888      $Output .= '<div class="MainTitle"><span class="MenuItem"><strong>Navigace :: </strong> '.$Navigation.'</span><div class="MenuItem2">';
    8989      $Bar = '';
    90       foreach ($this->System->Bars['Top'] as $BarItem)
     90      foreach (Core::Cast($this->System)->Bars['Top'] as $BarItem)
    9191        $Bar .= call_user_func($BarItem);
    9292      if (trim($Bar) != '') $Output .= $Bar;
     
    101101    global $Revision, $ReleaseTime;
    102102
    103     $Time = round(GetMicrotime() - $this->System->ScriptTimeStart, 2);
     103    $Time = round(GetMicrotime() - Core::Cast($this->System)->ScriptTimeStart, 2);
    104104    $Output = '';
    105105    if ($this->BasicHTML == false)
    106106    {
    107107      $Output .= '<div id="Footer">'.
    108       '<i>| Správa webu: '.$this->System->Config['Web']['Admin'].' | e-mail: '.$this->System->Config['Web']['AdminEmail'].' | '.
     108      '<i>| Správa webu: '.Core::Cast($this->System)->Config['Web']['Admin'].' | e-mail: '.Core::Cast($this->System)->Config['Web']['AdminEmail'].' | '.
    109109      ' Verze: '.$Revision.' ('.Core::Cast($this->System)->HumanDate($ReleaseTime).') |';
    110110      if ($this->ShowRuntimeInfo == true) $Output .= ' Doba generování: '.$Time.' s / '.ini_get('max_execution_time').
     
    118118  function GetOutput(Page $Page): string
    119119  {
    120     $Page->OnSystemMessage = array($this->System->BaseView, 'SystemMessage');
     120    $Page->OnSystemMessage = array(Core::Cast($this->System)->BaseView, 'SystemMessage');
    121121
    122122    $Output = $Page->Show();
  • trunk/Application/UpdateTrace.php

    r953 r957  
    22372237{
    22382238  $Manager->Execute('ALTER TABLE `News` ADD `Intranet` INT NOT NULL DEFAULT "0" AFTER `Link`;');
     2239}
     2240
     2241function UpdateTo957(UpdateManager $Manager): void
     2242{
     2243  $Manager->Execute('ALTER TABLE `Log` ADD `URL` VARCHAR(255) NOT NULL AFTER `IPAddress`;');
    22392244}
    22402245
     
    23512356      939 => array('Revision' => 948, 'Function' => 'UpdateTo948'),
    23522357      948 => array('Revision' => 953, 'Function' => 'UpdateTo953'),
     2358      953 => array('Revision' => 957, 'Function' => 'UpdateTo957'),
    23532359    );
    23542360  }
  • trunk/Application/Version.php

    r956 r957  
    11<?php
    22
    3 $Revision = 956; // Subversion revision
    4 $DatabaseRevision = 953; // SQL structure revision
    5 $ReleaseTime = strtotime('2023-09-04');
     3$Revision = 957; // Subversion revision
     4$DatabaseRevision = 957; // SQL structure revision
     5$ReleaseTime = strtotime('2023-09-22');
Note: See TracChangeset for help on using the changeset viewer.