} ?> </h3> <p><strong>Name:</strong> <?php echo $server_name; ?> </p> <p><strong>IP:</strong> <?php echo $mc_server_disp_addr; ?> </p> <p><strong><abbr title="Message Of The Day">MOTD</abbr>:</strong> <?php echo MinecraftColors::convertToHTML($motd); ?> </p> <p><strong>Version:</strong> <?php echo $mcVersion; ?> </p> <p><strong>Players:</strong> <?php echo $curPlayers . " of " . $maxPlayers . " max"; ?> </p> <div class="progress progress-striped active"> <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="<?php
</tbody> </table> <h3>Sanctions</h3> <table class="table table-striped table-bordered table-hovered"> <thead> <tr> <th>Type</th> <th>Raison</th> <th>Durée</th> <th>Appliqué par</th> </tr> </thead> <tbody> <?php $col = new MinecraftColors(); ?> <?php foreach ($sanctions as $flag) { try { $parts1 = explode(" d'une durée de ", $flag); $type = $parts1[0]; $parts2 = explode(" appliquée par ", $parts1[1]); $time = $parts2[0]; $parts3 = explode("RAISON : ", $parts2[1]); $by = $parts3[0]; $motif = substr($parts3[1], 3); ?> <tr> <td><?php echo $type;