示例#1
0
';
if (count($user_online_link) > 0) {
    $online .= '<div class="online-users">' . implode(', ', $user_online_link) . '</div>';
}
$online .= '
<div class="whos-online">
	<span class="left">' . $roster->locale->act['guests'] . ':</span>
	<span class="right">' . $guests_online . '</span>
</div>
';
if (count($bot) > 0) {
    $online .= '<div class="online-bots">' . $roster->locale->act['bots'] . ': ' . implode(', ', $bot) . '</div>';
}
$roster->tpl->assign_block_vars('right', array('BLOCKNAME' => $roster->locale->act['whos_online'], 'ICON' => 'inv_misc_groupneedmore', 'BLOCK_DATA' => $online));
// init the plugin for this addon and display them
$func->_initPlugins();
foreach ($func->block as $id => $info) {
    $roster->tpl->assign_block_vars('right', array('BLOCKNAME' => $info['name'], 'ICON' => $info['icon'], 'BLOCK_DATA' => $info['output']));
}
// end plugins
$queryb = "SELECT * FROM `" . $roster->db->table('slider', $addon['basename']) . "` WHERE `b_active` = '1' ORDER BY `id` DESC;";
$resultsb = $roster->db->query($queryb);
$num = 1;
$total = $roster->db->num_rows($resultsb);
$slider_js = array();
$x = $y = '';
while ($rowb = $roster->db->fetch($resultsb)) {
    if ($total == $num) {
        $e = true;
    } else {
        $e = false;