minecraft-status/index.php

37 lines
1.1 KiB
PHP

<html>
<head>
<link rel="stylesheet" href="main.css">
</head>
<body>
<?php
require_once('minestat.php');
$ms = new MineStat("localhost");
if($ms->is_online()) {
printf("<h3>Join on server.thisfro.ch!</h3>");
printf("<p>The Server is: </p>");
printf("<h2 class='online status'>online</h2>");
printf("<p>running version:</p>");
printf("<h2>%s</h2><br>", $ms->get_version());
printf("<p>Players online:</p>");
printf("<h2>%s / %s</h2>", $ms->get_current_players(), $ms->get_max_players());
}
else {
echo("<p>The Server is:</p>");
echo("<h2 class='offline status'>offline</h2>");
}
?>
<a href="map"><h2>Map</h2></a>
<div class="seed">
<p>Seed: -5907346159690732538</p>
</div>
<div class="map-container">
<iframe src="map" class="iframe-map"></iframe>
</div>
</body>
</html>