summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2007-10-09 13:10:55 +0000
committerUrban Müller2007-10-09 13:10:55 +0000
commit0474a60865ca1e342ac5c2faa6323e59e4c37c5f (patch)
treeb3174d089dacd40cfd7973e67a58b03514cf76ae /it.class
parenta1580409d7631233b9da3d8d996d58402a63caf5 (diff)
downloaditools-0474a60865ca1e342ac5c2faa6323e59e4c37c5f.tar.gz
itools-0474a60865ca1e342ac5c2faa6323e59e4c37c5f.tar.bz2
itools-0474a60865ca1e342ac5c2faa6323e59e4c37c5f.zip
add host to body
Diffstat (limited to 'it.class')
-rw-r--r--it.class1
1 files changed, 1 insertions, 0 deletions
diff --git a/it.class b/it.class
index 314d179..d6731a2 100644
--- a/it.class
+++ b/it.class
@@ -192,6 +192,7 @@ function error($p = array(), $body = null, $to = null) # $body and $to deprecate
$p['title'] = "Alert: " . $p['title'] . " (on " . getenv('HOSTNAME') . ")";
unset ($p['locals']['_GLOBALS'], $p['locals']['_GET'], $p['locals']['_POST'], $p['locals']['_COOKIE']);
$locals = print_r($p['locals'], true);
+ $body .= "Host: " . getenv('HOSTNAME') . "\n\n";
$body .= $p['locals'] && strlen($locals) < 100000 ? "Locals: $locals\n\n" : "";
$body .= $_GET ? "\$_GET: " . print_r($_GET, true) . "\n\n" : "";
$body .= $_POST ? "\$_POST: " . print_r($_POST, true) . "\n\n" : "";