Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php require_once 'engine/init.php';
- $records = mysql_select_multi('SELECT * FROM `server_record` ORDER BY `record` DESC LIMIT 1;');
- ?>
- <td width="95%"><img src="layout/images/line_body.gif" width="100%" height="7" border="0" hspace="0" vspace="0" align="left"></td>
- <img src="layout/images/titles/t_plaonline.png"/>
- <td width="95%"><img src="layout/images/line_body.gif" width="100%" height="7" border="0" hspace="0" vspace="0" align="left"></td>
- <br><br><p>
- <table>
- <tr class="yellow"><th>Server Status</th></tr>
- <tr><td><b><?php echo $config['site_title'] ?></b> record of players online: <?php echo $records[0]['record'] ?> on <?php echo date("j M Y", $records[0]['timestamp']) ?>.</td></tr>
- <tr><td><?php
- $status = true;
- if ($config['status']['status_check']) {
- @$sock = fsockopen ($config['status']['status_ip'], $config['status']['status_port'], $errno, $errstr, 1);
- if(!$sock) {
- echo '<b>';
- echo $config['site_title'];
- echo '</b> is currently offline.';
- $status = false;
- }
- else {
- $info = chr(6).chr(0).chr(255).chr(255).'info';
- fwrite($sock, $info);
- $data='';
- while (!feof($sock))$data .= fgets($sock, 1024);
- fclose($sock);
- echo 'Currently ';
- echo user_count_online();
- echo ' players are online.';
- }
- }
- ?></td></tr>
- </table>
- <?php
- $array = online_list();
- if ($array) {
- ?>
- <table id="onlinelistTable" class="table table-striped table-hover">
- <tr class="yellow">
- <th>Name</th>
- <th>Level</th>
- <th>Vocation</th>
- </tr>
- <?php
- foreach ($array as $value) {
- echo '<tr>';
- echo '<td><a href="characterprofile.php?name='. $value['name'] .'">'. $value['name'] .'</a></td>';
- echo '<td>'. $value['level'] .'</td>';
- echo '<td>'. vocation_id_to_name($value['vocation']) .'</td>';
- echo '</tr>';
- }
- ?>
- </table>
- <?php
- }
- ?>
Add Comment
Please, Sign In to add comment