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)
{
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' ) { // Information
$fond = "bgcolor=\"SpringGreen \"";
} else if ( $type == 'DBG') { // Information
$fond = "bgcolor=\"AQUAMARINE\"";
} else if ( $type == 'WRN') { // Warning
$fond = "bgcolor=\"Yellow\"";
} else if ( $type == 'ERR') { // Error
$fond = "bgcolor=\"Tomato\"";
} else if ( $type == 'STT') { // Statistic
$fond = "bgcolor=\"Yellow\"";
} else if ( $type == 'AST') { // Assert
$fond = "bgcolor=\"Tomato\"";
} else if ( $type == 'UKN') { // Unknown
$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";
}
?>
Command line :
curl -XGET --header "content-type: application/json" -d ''
Send to STDIN:
Command line :
curl -XPOST --header "content-type: application/json" -d ''