summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-08-05 06:59:34 +0200
committerSuren A. Chilingaryan <csa@suren.me>2018-08-05 06:59:34 +0200
commit12b2ed009050747316afdfb17665a2fafb2836ca (patch)
tree8936215c493eeb40fb53ceed41ebcc0b76929521 /index.php
parent638d3091662918e893d9fb9edbd7f553e7df8240 (diff)
downloadkickstart-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.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));