[geeklog-cvs] geeklog: Added remote ip address to error.log entry
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Fri Apr 6 12:11:29 EDT 2012
changeset 8570:dbef142df357
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/dbef142df357
user: Tom <websitemaster at cogeco.net>
date: Fri Apr 06 11:57:58 2012 -0400
description:
Added remote ip address to error.log entry
diffstat:
public_html/lib-common.php | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 3f5deff79cf9 -r dbef142df357 public_html/lib-common.php
--- a/public_html/lib-common.php Tue Apr 03 10:36:54 2012 -0400
+++ b/public_html/lib-common.php Fri Apr 06 11:57:58 2012 -0400
@@ -2053,6 +2053,8 @@
$logentry );
$timestamp = @strftime( '%c' );
+
+ $remoteaddress = $_SERVER['REMOTE_ADDR'];
if (!isset($_CONF['path_layout']) &&
(($actionid == 2) || empty($actionid))) {
@@ -2077,7 +2079,7 @@
}
else
{
- fputs( $file, "$timestamp - $logentry \n" );
+ fputs( $file, "$timestamp - $remoteaddress - $logentry \n" );
}
break;
@@ -2102,7 +2104,7 @@
}
else
{
- fputs( $file, "$timestamp - $logentry \n" );
+ fputs( $file, "$timestamp - $remoteaddress - $logentry \n" );
$retval .= COM_startBlock( $LANG01[34] . ' - ' . $timestamp,
'', COM_getBlockTemplate( '_msg_block',
'header' ))
More information about the geeklog-cvs
mailing list