From 71549c7f301282c9a04f2ed95a679d6c213335e7 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Fri, 5 Oct 2007 14:23:00 +0000 Subject: add hostname to mailed errs --- it.class | 1 + 1 file changed, 1 insertion(+) diff --git a/it.class b/it.class index 37741c2..6517fcc 100644 --- a/it.class +++ b/it.class @@ -185,6 +185,7 @@ function error($p = array(), $body = "", $to = "") if ($sendmail) # we're mailing: send maximum info { + $p['to'] .= " (on " . getenv('HOSTNAME') . ")"; $body .= $p['locals'] ? "Locals: " . print_r($p['locals'], true) . "\n\n" : ""; $body .= $_GET ? "\$_GET: " . print_r($_GET, true) . "\n\n" : ""; $body .= $_POST ? "\$_POST: " . print_r($_POST, true) . "\n\n" : ""; -- cgit v1.2.3