diff options
-rw-r--r-- | it.class | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -36,11 +36,13 @@ function log($name /* ... */) { $args = func_get_args(); $line = date("Y-m-d H:i:s") . "\t" . implode("\t", array_slice($args, 1)) . "\n"; + $fn = $GLOBALS['ULTRAHOME'] . "/log/$name-" . date('Ymd'); - if ($fh = fopen($GLOBALS['ULTRAHOME'] . "/log/$name-" . date('Ymd'), "a")) + if ($fh = fopen($fn, "a")) { fputs($fh, $line); fclose($fh); + @chgrp($fn, "www"); } } |