summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 2 insertions, 0 deletions
diff --git a/it.class b/it.class
index e56c4f2..c601c9c 100644
--- a/it.class
+++ b/it.class
@@ -282,6 +282,8 @@ static function error($p = array())
it::mail(array('To' => $p['to'], 'Subject' => ($p['fatal'] ? "Fatal: " : "Error: ") . substr($p['title'], 0, 160), 'Body' => $body, 'Cc' => $GLOBALS['it_defaultconfig']['error_cc'], 'forcemail' => !it::is_devel()));
$p['title'] = "Mail: " . $p['title'];
}
+ else if ($_SERVER['REMOTE_ADDR'] && EDC('edplain')) # toscreen mode: web
+ echo $p['title'] . "\n";
else if ($_SERVER['REMOTE_ADDR']) # toscreen mode: web
echo "<pre style='z-index:10000; position:relative; background:white'>" . htmlspecialchars($p['title'] . "\n" . rtrim($body), ENT_COMPAT, "iso-8859-1") . "</pre>"; # works with iso-8859-1 or utf-8, UTF8SAFE
else # toscreen mode: shell (outputs to stderr)