minecraft-status/index.php

30 lines
1.1 KiB
PHP
Raw Normal View History

2020-10-06 13:31:35 +02:00
<html>
<head>
<link rel="stylesheet" href="main.css">
</head>
<body>
<?php
require_once('minestat.php');
$ms = new MineStat("localhost");
2020-10-06 13:42:41 +02:00
if($ms->is_online()) {
2020-10-06 13:49:23 +02:00
printf("<h3>Join on server.thisfro.ch!</h3>");
printf("<p>The Server is: </p>");
printf("<h2 class='online status'>online</h2>");
2020-10-06 13:53:06 +02:00
printf("<p>running version:</p>");
printf("<h2>%s</h2><br>", $ms->get_version());
<<<<<<< HEAD
2020-10-06 13:53:06 +02:00
printf("<p>Players online:</p>");
printf("<h2>%s / %s</h2>", $ms->get_current_players(), $ms->get_max_players());
=======
printf("<p>Players online</p>");
2020-10-06 13:53:06 +02:00
printf("<h2>%s / %s</h2>)", $ms->get_current_players(), $ms->get_max_players();
>>>>>>> effa2a3d35936394ce471d0870b9ac188b0177f9
2020-10-06 13:31:35 +02:00
}
else {
2020-10-06 13:45:19 +02:00
echo("<p>The Server is:</p>");
echo("<h2 class='offline status'>offline</h2>");
2020-10-06 13:31:35 +02:00
}
?>
</body>
</html>