<?php
require_once("load_servers.php");
$server_array = array();
$ServerClass = new ServerClass();
$ServerClass->load_server_db($db);
$servers = $ServerClass->load_servers();
?>
<div id="intro_blurb">
<div class="inner">
<div id="intro_blurb_title">
<span><?php echo $lang_gen['servers']; ?><br /></span>
</div>
<div id="blurb">
<?php echo $lang_gen['servers_title']; ?>
</div>
</div><!-- inner -->
</div><!-- intro_blurb -->
<div class="clearboth"></div>
<div id="breadcrumbs">
<div class="inner">
<p class="breadcrumb"><br />
<span class="breadarrow"></span><span class="current_crumb"></span>
</p>
</div><!-- inner -->
</div><!-- breadcrumbs -->
<div id="body_block">
<div class="inner">
<div id="server_page">
<div class="content">
<!-- start body content -->
<div class="fancy_box">
<div class="entry">
<h2>
<?php echo $lang_gen['servers_current']; ?>
</h2>
<div class="clearboth"></div>
<?php
$three_check = 0;
foreach ($servers as $server) {
$server_name = $ServerClass->set_irc_colors($server['name']);
$three_check = $three_check + 1;
if ($three_check == 3) {
echo '<div class="one_third last">';
} else {
echo '<div class="one_third">';
}
echo ' <div class="note_box">';
echo ' <h6>'.$server_name.'</font></font></font></font></font></font></font></font></font></font></font></font></font></font></h6>';
echo ' <p><h5>Region: '.$server['region'].'</h5>';
echo ' <hr />';
echo ' <b>Server address:</b><br />';
echo ' '.$server['host'].':'.$server['port'].'<br /><hr />';
echo ' <b>Current map:</b> '.$server['current_map'].'<br />';
echo ' <b>Players on server:</b> '.$server['players'].'<br />';
echo ' </p>';
echo ' </div>';
echo '</div><!-- one_fourth -->';
if ($three_check == 3) {
echo '<div class="clearboth"></div>';
$three_check = 0;
}
}
?>
<div class="one_third last">
<div class="note_box">
<h6>Got a server?</h6>
<p>PUGBOT is always looking for new servers! If you have an extra server, or a few extra bucks to help out, send an email to:
<a href="mailto:admins@pugbot.com">admins@pugbot.com</a><br /><br />
We could especially use a couple european servers, and wouldn't mind trying to get an aussie pug going too.
</p>
</div>
</div><!-- one_fourth -->
<div class="clearboth"></div>
</div><!-- entry-->
</div>
<!-- end body content -->
</div><!-- content -->
</div><!-- primary-full -->
<div class="clearboth"></div>
</div><!-- inner -->
</div><!-- body_block -->