adding comment

This commit is contained in:
AleaJactaEst 2018-09-19 10:13:44 +02:00
parent cea7f76ca4
commit cf4d39dd48

View file

@ -163,26 +163,26 @@ if (file_exists($cfgfile)) {
ksort($data);
foreach ($data as $key => $value)
{
// 2018/08/03 10:45:36 CEST INF 442b0740 command.cpp 149
list($date, $hour, $timezone, $typesrc, $addr, $program, $line, $msg) = explode(' ', $value, 8);
if ( $key == "first-line" or $key == "last-line" )
continue;
// 2018/08/03 10:45:36 CEST INF 442b0740 command.cpp 149
list($date, $hour, $timezone, $typesrc, $addr, $program, $line, $msg) = explode(' ', $value, 8);
$type = substr( $typesrc, strlen($typesrc) - 3 );
if ( $type == 'INF' ) {
if ( $type == 'INF' ) { // Information
$fond = "bgcolor=\"SpringGreen \"";
} else if ( $type == 'DBG') {
} else if ( $type == 'DBG') { // Information
$fond = "bgcolor=\"AQUAMARINE\"";
} else if ( $type == 'WRN') {
} else if ( $type == 'WRN') { // Warning
$fond = "bgcolor=\"Yellow\"";
} else if ( $type == 'ERR') {
} else if ( $type == 'ERR') { // Error
$fond = "bgcolor=\"Tomato\"";
} else if ( $type == 'STT') {
} else if ( $type == 'STT') { // Statistic
$fond = "bgcolor=\"Yellow\"";
} else if ( $type == 'AST') {
} else if ( $type == 'AST') { // Assert
$fond = "bgcolor=\"Tomato\"";
} else if ( $type == 'UKN') {
} else if ( $type == 'UKN') { // Unknown
$fond = "bgcolor=\"Tomato\"";
} else {
$msg = "$typesrc $addr $program $line $msg";