diff options
-rw-r--r-- | it.class | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -87,7 +87,8 @@ static function log($name /* ... */) */ static function log_line($name, $line) { - $basefn = substr($name, 0, 1) == "/" ? $name : $GLOBALS['ULTRAHOME'] . "/log/$name"; + $log = $GLOBALS['ULTRAHOME'] == "/opt/ultra/bin" ? "../log" : ($GLOBALS['ULTRASITE'] == "server" ? "logs" : "log"); + $basefn = substr($name, 0, 1) == "/" ? $name : $GLOBALS['ULTRAHOME'] . "/$log/$name"; $fullfn = $basefn . "-" . date('Ymd'); if (substr($fullfn, 0, 1) == "/") |