Feature #15040 » 1585_trunk.patch
typo3/sysext/cms/tslib/class.tslib_fe.php (Arbeitskopie) | ||
---|---|---|
$pageName = str_replace('[uid]',$this->page['uid'],$pageName);
|
||
$pageName = str_replace('[alias]',$this->page['alias'],$pageName);
|
||
$pageName = str_replace('[type]',$this->type,$pageName);
|
||
$pageName = str_replace('[requesturi]',t3lib_div::getIndpEnv('REQUEST_URI'),$pageName);
|
||
$temp = $this->config['rootLine'];
|
||
array_pop($temp);
|
||
if ($this->config['config']['stat_apache_noRoot']) {
|
||
... | ... | |
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_NoRefererIsDirectAccess']) {
|
||
$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').'"';
|
||
}
|
||
}
|
||
// Hook for processing LogLine
|
||
if (is_array($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['createLogLine'])) {
|
||
foreach($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['createLogLine'] as $_classRef) {
|
||
$_procObj = &t3lib_div::getUserObj($_classRef);
|
||
$_procObj->createLogLine(&$LogLine,$this);
|
||
}
|
||
}
|
||
$GLOBALS['TT']->push('Write to log file (fputs)');
|
||
$logfilehandle = fopen($this->config['stat_vars']['logFile'], 'a');
|
||
fputs($logfilehandle, $LogLine.chr(10));
|