Author: nextgens
Date: 2008-05-13 11:12:57 +0000 (Tue, 13 May 2008)
New Revision: 19908
Modified:
trunk/website/includes/common.inc.php
Log:
website: better logging message
Modified: trunk/website/includes/common.inc.php
===================================================================
--- trunk/website/includes/common.inc.php 2008-05-13 07:22:17 UTC (rev
19907)
+++ trunk/website/includes/common.inc.php 2008-05-13 11:12:57 UTC (rev
19908)
@@ -79,7 +79,8 @@
}
} else {
- syslog(LOG_CRIT, "Huh, someone attempted to access a
non-existent file! page=$page file=$tmpfile");
+ $ip = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ?
$_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];
+ syslog(LOG_CRIT, "Huh, someone attempted to access a
non-existent file! page=$page file=$tmpfile from $ip");
}
if (!isset($file))