Changeset 8 for pages/server.php
- Timestamp:
- Jun 5, 2008, 9:38:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pages/server.php
r6 r8 1 1 <?php 2 $tpl->output['th_players'] = $text['th_players']; 3 $tpl->output['th_name'] = $text['name']; 4 $tpl->output['th_latency'] = $text['th_latency']; 5 $tpl->output['th_version'] = $text['th_version']; 6 $tpl->output['th_xp'] = $text['th_xp']; 7 $tpl->output['th_online_state'] = $text['th_online_state']; 8 $tpl->output['th_type'] = $text['th_type']; 9 $tpl->output['th_rating'] = $text['th_rating']; 10 $tpl->output['th_recommend'] = $text['th_recommend']; 2 11 $tpl->output['server_reg_desc'] = $text['reg_desc']; 3 12 $tpl->output['info_place'] = $text['info_place']; 4 13 $tpl->output['info_avarage_players'] = $text['info_avarage_players']; 5 14 $tpl->output['info_owner'] = $text['info_owner']; 15 6 16 $id = (int)$_GET['str1']; 7 17 $server_info = $db->strip($db->query_fetch_assoc('SELECT *, CAST(`online_players_sum`/`player_checks` AS UNSIGNED) as `online_players` FROM `servers` WHERE `id` = '.$id)); 8 18 9 if ($server_info['wss_partner']==1)10 19 if($server_info['wss_partner'] == 1) 20 { 11 21 $tpl->output['server_name'] = '<img src="templates/img/hvezda.gif" alt="WSS Partner" title="WSS Partner">'.$server_info['name']; 12 22 } 13 23 else 14 24 { 15 25 $tpl->output['server_name'] = $server_info['name']; 16 26 } 17 27 $tpl->output['title_name'] = $server_info['name']; 18 28 $tpl->output['server_version'] = $server_info['version']; … … 52 62 $tpl->output['server_port'] = $server_info['port']; 53 63 $tpl->output['server_owner'] = print_nick($server_info['owner']); 64 if($server_info['latency'] == 0) $Latency = '?'; else $Latency = round($server_info['latency']).'ms'; 65 $tpl->output['server_latency'] = $Latency; 54 66 55 67 if (empty($_SESSION['id']))
Note:
See TracChangeset
for help on using the changeset viewer.