Commit aae5180a3eed608170972b9a49bf19be37353141
Do not log IP. For IPv6 is eating a whole line. Session is enough.
Author: Catalin(ux) M. BOIE
Author date (UTC): 2011-03-18 04:07
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2011-03-18 04:07
Parent(s): 9578a66fd047f044525e37469e6fc1db052ad486
Signing key:
Tree: 6ae5289954e3a9f71ef602931202fc4db7fc62b9
File inc/xlog.inc.php changed (mode: 100644) (index c7b2caa..4473d19) |
... |
... |
function xlog($str) |
25 |
25 |
} |
} |
26 |
26 |
|
|
27 |
27 |
$buf = date("Y-m-d H:i:s"); |
$buf = date("Y-m-d H:i:s"); |
28 |
|
if (!empty($_SERVER['REMOTE_ADDR'])) |
|
29 |
|
$buf .= " " . $_SERVER['REMOTE_ADDR']; |
|
30 |
28 |
$buf .= " " . $_xlog_sid . " " . $str . "\n"; |
$buf .= " " . $_xlog_sid . " " . $str . "\n"; |
31 |
29 |
|
|
32 |
30 |
fwrite($_xlog_fd, $buf); |
fwrite($_xlog_fd, $buf); |