diff options
-rw-r--r-- | it.class | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -87,8 +87,7 @@ static function log($name /* ... */) */ static function log_line($name, $line) { - $log = $GLOBALS['ULTRAHOME'] == "/opt/ultra/bin" ? "../log" : "log"; - $basefn = substr($name, 0, 1) == "/" ? $name : $GLOBALS['ULTRAHOME'] . "/$log/$name"; + $basefn = substr($name, 0, 1) == "/" ? $name : ($GLOBALS['ULTRAHOME'] == "/opt/ultra/bin" ? it::match('/www/[^/]*', getcwd()) : $GLOBALS['ULTRAHOME']) . "/log/$name"; $fullfn = $basefn . "-" . date('Ymd'); if (substr($fullfn, 0, 1) == "/") @@ -241,7 +240,7 @@ static function error($p = array()) if ($p['fatal'] && $_SERVER['REMOTE_ADDR']) { - @http_response_code(500); + http_response_code(500); echo "<!DOCTYPE html><html><head><title></title></head><body>Internal Server Error</body></html>"; } |