use echo to render text
This commit is contained in:
parent
5892578782
commit
71573da55d
1 changed files with 11 additions and 10 deletions
21
index.php
21
index.php
|
@ -6,18 +6,19 @@
|
||||||
<?php
|
<?php
|
||||||
require_once('minestat.php');
|
require_once('minestat.php');
|
||||||
$ms = new MineStat("localhost");
|
$ms = new MineStat("localhost");
|
||||||
if($ms->is_online()) {
|
|
||||||
<h3>Join on server.thisfro.ch!</h3>
|
if($ms->is_online()) {
|
||||||
<p>The Server is: </p>
|
echo("<h3>Join on server.thisfro.ch!</h3>");
|
||||||
<h2 class="online status">online</h2>
|
echo(<p>The Server is: </p>);
|
||||||
<p>running version</p>
|
echo(<h2 class="online status">online</h2>);
|
||||||
<h2>1.16.3</h2><br>
|
echo(<p>running version</p>);
|
||||||
<p>Players online</p>
|
echo(<h2>%s</h2><br>, $ms->get_versrion());
|
||||||
<h2>0 / 10</h2>
|
echo(<p>Players online</p>);
|
||||||
|
echo(<h2>%s / %s</h2>), $ms->get_current_players(), $ms->get_max_players());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
<p>The Server is: </p>
|
echo(<p>The Server is:</p>
|
||||||
<h2 class="offline status">offline</h2>
|
<h2 class="offline status">offline</h2>);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in a new issue