minecraft-status/index.php

24 lines
691 B
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");
if($ms->is_online()) {
<h3>Join on server.thisfro.ch!</h3>
<p>The Server is: </p>
<h2 class="online status">online</h2>
<p>running version</p>
<h2>1.16.3</h2><br>
<p>Players online</p>
<h2>0 / 10</h2>
}
else {
<p>The Server is: </p>
<h2 class="offline status">offline</h2>
}
?>
</body>
</html>