summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorChristian Schneider2007-11-26 14:55:14 +0000
committerChristian Schneider2007-11-26 14:55:14 +0000
commita144667776f1e255318f1e02355fc209eeee39ed (patch)
tree9569c5f59c2f0692322678619c4e40f2edaf9aab /it.class
parent7c9349e23f337e818c7f6fb922a54360515ac0d2 (diff)
downloaditools-a144667776f1e255318f1e02355fc209eeee39ed.tar.gz
itools-a144667776f1e255318f1e02355fc209eeee39ed.tar.bz2
itools-a144667776f1e255318f1e02355fc209eeee39ed.zip
Cc: to alert mailbox on live servers
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index e97a13c..c6d7714 100644
--- a/it.class
+++ b/it.class
@@ -207,7 +207,7 @@ function error($p = array(), $body = null, $to = null) # $body and $to deprecate
$body .= $fulltrace ? "Stack: " . print_r($fulltrace, true) . "\n\n" : "";
$body = it::replace(array('(pw|passw|password|secret)\] => .*' => '$1] => ********'), $body);
- mail($p['to'], $p['title'], $body);
+ mail($p['to'], $p['title'], $body, preg_match("/^live/", $GLOBALS['ULTRASERVERTYPE']) ? "Cc: alert" : null);
}
else if ($_SERVER['REMOTE_ADDR']) # in shell mode we rely on error_log below
echo "<pre>{$p['title']}\n$body</pre>";