if ($luna_config['o_users_online']) { ?> <div class="dropup"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> <?php echo _n('User online', 'Users online', num_users_online(), 'luna'); ?> : <strong><?php users_online(); ?> </strong> <span class="fa fa-fw fa-angle-up hide-if-no-js"></span> <span class="sr-only">Toggle Dropdown</span> </a> <ul class="dropdown-menu" role="menu"> <?php echo online_list(); ?> </ul> </div> <?php } else { echo _n('User online', 'Users online', num_users_online(), 'luna') . ' <strong>' . users_online() . '</strong>'; } ?> </div> </div> <div class="col-lg-2 col-md-4 col-sm-6 col-xs-12"> <div class="statistic-item text-center"><?php _e('Guests online', 'luna'); ?> : <strong><?php
<?php require_once 'engine/init.php'; include 'layout/overall/header.php'; ?> <h1>Who is online?</h1> <?php $array = online_list(); if ($array) { ?> <table id="onlinelistTable" class="table table-striped table-hover"> <tr class="yellow"> <th>Name:</th> <th>Guild:</th> <th>Level:</th> <th>Vocation:</th> </tr> <?php foreach ($array as $value) { $url = url("characterprofile.php?name=" . $value['name']); echo '<tr class="special" onclick="javascript:window.location.href=\'' . $url . '\'">'; echo '<td><a href="characterprofile.php?name=' . $value['name'] . '">' . $value['name'] . '</a></td>'; if (!empty($value['gname'])) { echo '<td><a href="guilds.php?name=' . $value['gname'] . '">' . $value['gname'] . '</a></td>'; } else { echo '<td></td>'; } echo '<td>' . $value['level'] . '</td>'; echo '<td>' . vocation_id_to_name($value['vocation']) . '</td>';