Home
OpenNelManager";
} else {
echo "opennelmanager not used";
}
?>
Administration
phpmyadmin
patch
KHANAT SERVER DOCKER (TEST ENVIRONMENT - LOG)
First line:${data['first-line']} Last line:${data['last-line']}
";
echo "";
echo "Pos | Date | Time | Zone | Type | Address | Program Line | Message |
";
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;
$type = substr( $typesrc, strlen($typesrc) - 3 );
if ( $type == 'INF' ) {
$fond = "bgcolor=\"SpringGreen \"";
} else if ( $type == 'DBG') {
$fond = "bgcolor=\"AQUAMARINE\"";
} else if ( $type == 'WRN') {
$fond = "bgcolor=\"Yellow\"";
} else if ( $type == 'ERR') {
$fond = "bgcolor=\"Tomato\"";
} else if ( $type == 'STT') {
$fond = "bgcolor=\"Yellow\"";
} else if ( $type == 'AST') {
$fond = "bgcolor=\"Tomato\"";
} else if ( $type == 'UKN') {
$fond = "bgcolor=\"Tomato\"";
} else {
$msg = "$typesrc $addr $program $line $msg";
$type = "?";
$addr = "";
$program = "";
$line = "";
$fond = "bgcolor=\"Tomato\"";
}
if ( $program != "" && $line != "" )
{
if ( substr( $program, strlen($program) - 4 ) != ".cpp" and substr( $program, strlen($program) - 2 ) != ".h" )
{
$msg = "$program $line $msg";
$program = "";
$line = "";
}
}
echo "$key | $date | $hour | $timezone | $type | $addr | $program $line | $msg |
";
}
echo "
";
} else {
echo "OpenNelManager not enabled";
}
?>
Send to STDIN:
Command line :
curl -XGET --header "content-type: application/json" -d ''