- Timestamp:
- Jun 4, 2008, 9:01:09 AM (16 years ago)
- Location:
- pages
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pages/a_servers.php
r3 r6 10 10 switch ($order_index) 11 11 { 12 case 0: $order = ' order by `name` desc'; break;12 case 0: $order = ' order by `name`'; break; 13 13 case 1: $order = ' order by `rating` desc '; break; 14 14 case 2: $order = ' order by `version` desc '; break; … … 34 34 } 35 35 36 $pa = new CleverPager('select `id`,`wss_partner`,LEFT(`name`, 25) as `name`, `place`, `rating_sum`/`ratings` as `rating`, `version`, `type`, `xp`, `online` /`online_checks` as `online`, `online_players_sum`/`player_checks` as `players` from `servers` where `place`=2 '.$order, 'p');36 $pa = new CleverPager('select `id`,`wss_partner`,LEFT(`name`, 25) as `name`, `place`, `rating_sum`/`ratings` as `rating`, `version`, `type`, `xp`, `online`, `online_players_sum`/`player_checks` as `players` from `servers` where `place`=2 '.$order, 'p'); 37 37 $pa->PageSize = 20; 38 38 $pa->PageLinksDisplayed = 5; … … 66 66 $tpl->output['servers_data'] .='<td>'.$xp.'</td>'; 67 67 $tpl->output['servers_data'] .='<td>'.(int)$row['players'].'</td>'; 68 $tpl->output['servers_data'] .='<td>'.( 100*$row['online']).'%</td>';68 $tpl->output['servers_data'] .='<td>'.($row['online']).'%</td>'; 69 69 $tpl->output['servers_data'] .='</tr>'; 70 70 } -
pages/server.php
r1 r6 30 30 $tpl->output['server_online_players']='0'; 31 31 } 32 $tpl->output['server_online'] = 100*@round($server_info['online']/$server_info['online_checks'],2).'%';32 $tpl->output['server_online'] = @round($server_info['online'], 2).'%'; 33 33 switch ($server_info['xp']) 34 34 { -
pages/servers.php
r3 r6 9 9 switch ($order_index) 10 10 { 11 case 0: $order = ' order by `name` desc'; break;11 case 0: $order = ' order by `name`'; break; 12 12 case 1: $order = ' order by `rating` desc '; break; 13 13 case 2: $order = ' order by `version` desc '; break; … … 33 33 } 34 34 35 $pa = new CleverPager('select `id`,`wss_partner`, LEFT(`name`, 25) as `name`, `place`, `rating_sum`/`ratings` as `rating`, `version`, `type`, `xp`, `online` /`online_checks` as `online`, `online_players_sum`/`player_checks` as `players` from `servers` where `place`=1 '.$order, 'p');35 $pa = new CleverPager('select `id`,`wss_partner`, LEFT(`name`, 25) as `name`, `place`, `rating_sum`/`ratings` as `rating`, `version`, `type`, `xp`, `online`, `online_players_sum`/`player_checks` as `players` from `servers` where `place`=1 '.$order, 'p'); 36 36 $pa->PageSize = $Config['DisplayServerCountPerPage']; 37 37 $pa->PageLinksDisplayed = 5; … … 65 65 $tpl->output['servers_data'] .='<td>'.$xp.'</td>'; 66 66 $tpl->output['servers_data'] .='<td>'.(int)$row['players'].'</td>'; 67 $tpl->output['servers_data'] .='<td>'. (100*$row['online']).'%</td>';67 $tpl->output['servers_data'] .='<td>'.$row['online'].'%</td>'; 68 68 $tpl->output['servers_data'] .='</tr>'; 69 69 } -
pages/wss_partners.php
r3 r6 5 5 $tpl->output['place'] = $text['info_place']; 6 6 $tpl->output['wss_partners_h2'] = $menu['mm2']; 7 if(!array_key_exists('order', $_GET)) $_GET['order'] = 0; 7 8 $order_index = (int) $_GET['order']; 8 9 switch ($order_index) 9 10 { 10 case 0: $order = ' order by `name` desc'; break;11 case 0: $order = ' order by `name`'; break; 11 12 case 1: $order = ' order by `rating` desc '; break; 12 13 case 2: $order = ' order by `version` desc '; break; … … 32 33 } 33 34 34 $pa = new CleverPager('select `id`,`wss_partner`, LEFT(`name`, 25) as `name`, `place`, `rating_sum`/`ratings` as `rating`, `version`, `type`, `xp`, `online` /`online_checks` as `online`, `online_players_sum`/`player_checks` as `players` from `servers` where `wss_partner`=1 '.$order, 'p');35 $pa = new CleverPager('select `id`,`wss_partner`, LEFT(`name`, 25) as `name`, `place`, `rating_sum`/`ratings` as `rating`, `version`, `type`, `xp`, `online`, `online_players_sum`/`player_checks` as `players` from `servers` where `wss_partner`=1 '.$order, 'p'); 35 36 $pa->PageSize = 20; 36 37 $pa->PageLinksDisplayed = 5; … … 64 65 $tpl->output['servers_data'] .='<td>'.$xp.'</td>'; 65 66 $tpl->output['servers_data'] .='<td>'.(int)$row['players'].'</td>'; 66 $tpl->output['servers_data'] .='<td>'. (100*$row['online']).'%</td>';67 $tpl->output['servers_data'] .='<td>'.$row['online'].'%</td>'; 67 68 $tpl->output['servers_data'] .='</tr>'; 68 69 }
Note:
See TracChangeset
for help on using the changeset viewer.