Index: trunk/FACT++/www/smartfact/index.php
===================================================================
--- trunk/FACT++/www/smartfact/index.php	(revision 13891)
+++ trunk/FACT++/www/smartfact/index.php	(revision 14121)
@@ -61,4 +61,24 @@
 }
 // --------------------------------------------------------------------
+
+if (isset($_GET['load']))
+{
+    $d = date("Y/m");
+
+    $path = "log/".$d;
+
+    if (!file_exists($path))
+        mkdir($path, 0777, true);
+
+    $addr = isset($_SERVER['REMOTE_ADDR'])   ? $_SERVER['REMOTE_ADDR']   : "-";
+    $user = isset($_SERVER['PHP_AUTH_USER']) ? $_SERVER['PHP_AUTH_USER'] : "-";
+    $dns  = gethostbyaddr($addr);
+
+    $file = fopen($path."/smartfact.log", "a");
+    fwrite($file, date("Y/m/d H:i:s ").$addr." ".$dns." ".$user."\n");
+    fclose($file);
+
+    return;
+}
 
 if (isset($_GET['logout']))
