summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it.class4
1 files changed, 3 insertions, 1 deletions
diff --git a/it.class b/it.class
index 8e7dbcd..04022e7 100644
--- a/it.class
+++ b/it.class
@@ -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");
}
}