Ignore:
Timestamp:
Nov 19, 2013, 8:27:59 PM (11 years ago)
Author:
chronos
Message:
  • Added: Log also referer for unknown pages.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.