summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorChristian Schneider2007-11-26 15:20:02 +0000
committerChristian Schneider2007-11-26 15:20:02 +0000
commitecb00403de3250014d4a8a1070506fc0577e9ec9 (patch)
treec7072421ac82fc20067d34057e8b61b581251527 /it.class
parenta144667776f1e255318f1e02355fc209eeee39ed (diff)
downloaditools-ecb00403de3250014d4a8a1070506fc0577e9ec9.tar.gz
itools-ecb00403de3250014d4a8a1070506fc0577e9ec9.tar.bz2
itools-ecb00403de3250014d4a8a1070506fc0577e9ec9.zip
Make error Cc: depending on ['it_defaultconfig']['error_cc']
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 c6d7714..056300a 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, preg_match("/^live/", $GLOBALS['ULTRASERVERTYPE']) ? "Cc: alert" : null);
+ mail($p['to'], $p['title'], $body, ($cc = $GLOBALS['it_defaultconfig']['error_cc']) ? "Cc: $cc" : null);
}
else if ($_SERVER['REMOTE_ADDR']) # in shell mode we rely on error_log below
echo "<pre>{$p['title']}\n$body</pre>";