Feature #15040 » 1585_hijacked.diff
class.tslib_fe.php 2007-04-10 15:32:08.000000000 +0200 | ||
---|---|---|
if (@is_file($this->config['stat_vars']['logFile'])) {
|
||
$LogLine = ((t3lib_div::getIndpEnv('REMOTE_HOST') && !$this->config['config']['stat_apache_noHost']) ? t3lib_div::getIndpEnv('REMOTE_HOST') : t3lib_div::getIndpEnv('REMOTE_ADDR')).' - - '.Date('[d/M/Y:H:i:s +0000]',$GLOBALS['EXEC_TIME']).' "GET '.$this->config['stat_vars']['pageName'].' HTTP/1.1" 200 '.strlen($this->content);
|
||
if (!$this->config['config']['stat_apache_notExtended']) {
|
||
$LogLine.= ' "'.t3lib_div::getIndpEnv('HTTP_REFERER').'" "'.t3lib_div::getIndpEnv('HTTP_USER_AGENT').'"';
|
||
if ($this->config['config']['stat_apache_assumeDirectAddressOnEmptyReferer']) {
|
||
$LogLine.= ' "'.((t3lib_div::getIndpEnv('HTTP_REFERER'))?t3lib_div::getIndpEnv('HTTP_REFERER'):'-').'" "'.t3lib_div::getIndpEnv('HTTP_USER_AGENT').'"';
|
||
} else {
|
||
$LogLine.= ' "'.t3lib_div::getIndpEnv('HTTP_REFERER').'" "'.t3lib_div::getIndpEnv('HTTP_USER_AGENT').'"';
|
||
}
|
||
}
|
||
$GLOBALS['TT']->push('Write to log file (fputs)');
|