Changeset 14121 for trunk/FACT++/www/smartfact/index.php
- Timestamp:
- 06/08/12 17:02:06 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/smartfact/index.php
r13891 r14121 61 61 } 62 62 // -------------------------------------------------------------------- 63 64 if (isset($_GET['load'])) 65 { 66 $d = date("Y/m"); 67 68 $path = "log/".$d; 69 70 if (!file_exists($path)) 71 mkdir($path, 0777, true); 72 73 $addr = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : "-"; 74 $user = isset($_SERVER['PHP_AUTH_USER']) ? $_SERVER['PHP_AUTH_USER'] : "-"; 75 $dns = gethostbyaddr($addr); 76 77 $file = fopen($path."/smartfact.log", "a"); 78 fwrite($file, date("Y/m/d H:i:s ").$addr." ".$dns." ".$user."\n"); 79 fclose($file); 80 81 return; 82 } 63 83 64 84 if (isset($_GET['logout']))
Note:
See TracChangeset
for help on using the changeset viewer.