$aStartTime = explode('.',microtime(true));
if (!isset($aStartTime[1])) $aStartTime[1] = '0';
- if (isset($_GET['email']))
- $sUserAgent = $_GET['email'];
- elseif (isset($_SERVER['HTTP_REFERER']))
- $sUserAgent = $_SERVER['HTTP_REFERER'];
- elseif (isset($_SERVER['HTTP_USER_AGENT']))
- $sUserAgent = $_SERVER['HTTP_USER_AGENT'];
- else
- $sUserAgent = '';
-
$sOutputFormat = '';
if (isset($_GET['format'])) $sOutputFormat = $_GET['format'];
$_SERVER['QUERY_STRING'],
$sOutQuery,
$sType,
- $sUserAgent,
$sOutputFormat
);
if (CONST_Log_File)
{
- array_unshift($hLog, $sEndTime);
- $hLog[] = $iNumResults;
+ $aOutdata = array($hLog[0], $sEndTime, $iNumResults, $hLog[4], $hLog[2]);
$fLog = fopen(CONST_Log_File, 'a');
flock($fLog, LOCK_EX);
- fputcsv($fLog, $hLog);
+ fputcsv($fLog, $aOutdata);
fflush($fLog);
flock($fLog, LOCK_UN);
fclose($fLog);