?> </strong>.</p> <h2>Results</h2> <table class="resultstable"> <thead> <tr> <th>Service</th> <th>Status</th> </tr> </thead> <tbody> <?php foreach ($cfg['services'] as $service) { echo '<tr>'; echo '<td class="name">' . $service['name'] . '</td>'; if ($ss->checkServer($cfg['host'], $service['port'])) { echo '<td class="bg-green">Ok</td>'; } else { echo '<td class="bg-red">Fail</td>'; } echo '<td class="description">' . $service['description'] . '</td>'; echo '</tr>'; } ?> </tbody> </table> </div> <div class="footer"> <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png" /></a> This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.</p> <p>Script by <a href="http://www.leefindlow.com/">Lee Findlow</a>, <a href="http://www.leefindlow.com/projects/server-status/">more information</a>.</p> </div>