Changeset 590


Ignore:
Timestamp:
Nov 19, 2013, 8:27:59 PM (11 years ago)
Author:
chronos
Message:
  • Added: Log also referer for unknown pages.
Location:
trunk/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/Version.php

    r589 r590  
    11<?php
    22
    3 $Revision = 589; // Subversion revision
    4 $DatabaseRevision = 585; // Database structure revision
    5 $ReleaseTime = '2013-11-18';
     3// Subversion revision have to be updated always before commiting new changes
     4// Database revision have to be updated if database structure is changed
     5// and system will need database update
     6
     7$Revision = 590; // Subversion revision
     8$DatabaseRevision = 585;  // Database structure revision,
     9$ReleaseTime = '2013-11-19';
  • trunk/includes/system.php

    r589 r590  
    200200  function PageNotFound()
    201201  {
     202        if(array_key_exists('HTTP_REFERER', $_SERVER)) $Referer = ' Referer: '.$_SERVER['HTTP_REFERER'];
     203          else $Referer = '';
    202204        if(isset($this->ModuleManager->Modules['Log']))
    203205          $this->ModuleManager->Modules['Log']->WriteLog('Stránka "'.
    204           implode('/', $this->PathItems).'" nenalezena', LOG_TYPE_ERROR);
     206          implode('/', $this->PathItems).'" nenalezena'.$Referer, LOG_TYPE_ERROR);
    205207    return(ShowMessage('Stránka "'.implode('/', $this->PathItems).'" nenalezena.', MESSAGE_CRITICAL));
    206208  }
Note: See TracChangeset for help on using the changeset viewer.