diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2018-08-05 06:59:34 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2018-08-05 06:59:34 +0200 |
commit | 12b2ed009050747316afdfb17665a2fafb2836ca (patch) | |
tree | 8936215c493eeb40fb53ceed41ebcc0b76929521 /index.php | |
parent | 638d3091662918e893d9fb9edbd7f553e7df8240 (diff) | |
download | kickstart-12b2ed009050747316afdfb17665a2fafb2836ca.tar.gz kickstart-12b2ed009050747316afdfb17665a2fafb2836ca.tar.bz2 kickstart-12b2ed009050747316afdfb17665a2fafb2836ca.tar.xz kickstart-12b2ed009050747316afdfb17665a2fafb2836ca.zip |
Camera computers
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)); |