summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-rw-r--r--it.class5
1 files changed, 2 insertions, 3 deletions
diff --git a/it.class b/it.class
index d62ca1f..6145fe1 100644
--- a/it.class
+++ b/it.class
@@ -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>";
}