From a144667776f1e255318f1e02355fc209eeee39ed Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Mon, 26 Nov 2007 14:55:14 +0000 Subject: Cc: to alert mailbox on live servers --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') 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 "
{$p['title']}\n$body
"; -- cgit v1.2.3