Project

General

Profile

Feature #14203 » 0000159-class.tslib_fe.php.diff

Administrator Admin, 2004-07-05 01:28

View differences:

class.tslib_fe.php 2004-07-05 01:28:41.000000000 +0200
$LogLine.= ' "'.t3lib_div::getIndpEnv('HTTP_REFERER').'" "'.t3lib_div::getIndpEnv('HTTP_USER_AGENT').'"';
}
$logFileName = $this->config['stat_vars']['logFile'];
if(!ereg("^/", $logFileName)) $logFileName = PATH_site.$logFileName;
switch($this->TYPO3_CONF_VARS['FE']['logfile_write']) {
case 'fputs':
$GLOBALS['TT']->push('Write to log file (fputs)');
$logfilehandle = fopen(PATH_site.$this->config['stat_vars']['logFile'], 'a');
$logfilehandle = fopen($logFileName, 'a');
fputs($logfilehandle, $LogLine."\n");
@fclose($logfilehandle);
$GLOBALS['TT']->pull();
break;
default:
$GLOBALS['TT']->push('Write to log file (echo)');
$execCmd = 'echo "'.addslashes($LogLine).'" >> '.PATH_site.$this->config['stat_vars']['logFile'];
$execCmd = 'echo "'.addslashes($LogLine).'" >> '.$logFileName;
exec($execCmd);
$GLOBALS['TT']->pull();
break;
(2-2/3)