diff --git a/include/functions.inc b/include/functions.inc
index cf2787b8c502d99d0d87742b55050dedda9d26a2..72bd6723f2092d9b0e4cc94c4bbc650b13f1facf 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
$trace= debug_backtrace();
/* Create error header */
- $error_collector.= "<table width=100% cellspacing=0 style='background-color:#804010;color:white;border:2px solid #F09000'><tr><td colspan=3><b>"._("Error").":</b> $errstr</td></tr>";
+ $error_collector.= "<table width=100% cellspacing=0 style='background-color:#402005;color:white;border:2px solid red'><tr><td colspan=3><b>"._("PHP error")."</b> \"$errstr\"</td></tr>";
/* Generate trace history */
for ($index= 1; $index<count($trace); $index++){
}
$args= "";
foreach ($ct['args'] as $arg){
- $args.= "\"$arg\", ";
+ $args.= htmlentities("\"$arg\", ");
}
$args= preg_replace("/, $/", "", $args);
$file= $ct['file'];
$line= $ct['line'];
- $color= ($index&1)?'#905020':'703000';
+ $color= ($index&1)?'#452510':'351500';
$error_collector.= "<tr style='background-color:$color'><td style='padding-left:20px' width=30%>"._("Trace")."[$index]: $loc</td>";
$error_collector.= "<td>"._("File").": $file ("._('Line')." $line)</td><td width=10%>"._("Type").": $type</td></tr>";
$error_collector.= "<tr style='background-color:$color'><td colspan=3 style='padding-left:20px;'>"._("Arguments").": $args</td></tr>";