diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -152,13 +152,14 @@ $server = find_server(); $f = fopen("/srv/www/htdocs/ands/logs/kickstart.log", "a+"); if ($f) { - fprintf($f, "%s %s\n", $_SERVER["REMOTE_ADDR"], ($server?$server["fqdn"]:"-")); + fprintf($f, "%s %s at %s\n", $_SERVER["REMOTE_ADDR"], ($server?$server["fqdn"]:"-"), date(DATE_ISO8601)); fclose($f); } if (!$server) { $f = fopen("/srv/www/htdocs/ands/logs/kickstart-new.log", "a+"); if ($f) { + fwrite($f, "%s\n", date(DATE_ISO8601)); fwrite($f, print_r($_SERVER, true)); fwrite($f, print_r(getallheaders(), true)); fclose($f); @@ -210,6 +211,7 @@ if ($VERBOSE) { $f = fopen("/srv/www/htdocs/ands/logs/kickstart-verbose.log", "a+"); if ($f) { fwrite($f, "-----------------------------------------------------\n"); + fwrite($f, "%s\n", date(DATE_ISO8601)); fwrite($f, print_r($server, true)); fwrite($f, print_r($_SERVER, true)); fwrite($f, print_r(getallheaders(), true)); |