summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.php b/index.php
index 61f4650..4e1bf17 100644
--- a/index.php
+++ b/index.php
@@ -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));