Changeset 9 for pages/servers.php


Ignore:
Timestamp:
Jun 6, 2008, 7:47:22 AM (16 years ago)
Author:
george
Message:

Přidáno: Řazení podle času přidání serveru.
Opraveno: Řazení podle odezvy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pages/servers.php

    r8 r9  
    99$tpl->output['th_rating'] = $text['th_rating'];
    1010$tpl->output['th_recommend'] = $text['th_recommend'];
     11$tpl->output['th_created'] = $text['th_created'];
    1112$tpl->output['order_by'] = $text['order_by'];
    1213$tpl->output['place'] = $text['info_place'];
     
    2324  case 5: $order = ' order by `players` desc '; break;
    2425  case 6: $order = ' order by `online` desc '; break;
    25   case 7: $order = ' order by `online` desc,`latency`'; break;
     26  case 7: $order = ' order by ceil(`online` / 100) desc, `latency`'; break;
     27  case 8: $order = ' order by `created` desc'; break;
    2628}
    2729$tpl->output['s0'] = '';
     
    3335$tpl->output['s6'] = '';
    3436$tpl->output['s7'] = '';
     37$tpl->output['s8'] = '';
    3538if (empty($order_index))
    3639{
Note: See TracChangeset for help on using the changeset viewer.