<?php $_smarty_tpl->tpl_vars['world'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['id'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('worlds')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
foreach ($_from as $_smarty_tpl->tpl_vars['world']->key => $_smarty_tpl->tpl_vars['world']->value){
$_smarty_tpl->tpl_vars['id']->value = $_smarty_tpl->tpl_vars['world']->key;
?>
<b>World:</b> <?php echo $_smarty_tpl->getVariable('world')->value;?>
<br />
<b>Status:</b>
<?php if ($_smarty_tpl->getVariable('serverOnline')->value[$_smarty_tpl->getVariable('id')->value]){?>
<font color='green'>Online</font><br />
<b>Uptime:</b> <?php echo $_smarty_tpl->getVariable('serverUptime')->value[$_smarty_tpl->getVariable('id')->value];?>
<br />
<b>Players:</b> <?php echo $_smarty_tpl->getVariable('serverPlayers')->value[$_smarty_tpl->getVariable('id')->value];?>
/<?php echo $_smarty_tpl->getVariable('serverMax')->value[$_smarty_tpl->getVariable('id')->value];?>
<br /><br />
<?php }else{ ?>
<font color='red'>Offline</font><br />
<?php }?>
<?php }} ?>