Changeset 9 for pages/a_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/a_servers.php

    r8 r9  
    1111$tpl->output['th_rating'] = $text['th_rating'];
    1212$tpl->output['th_recommend'] = $text['th_recommend'];
     13$tpl->output['th_created'] = $text['th_created'];
    1314$tpl->output['order_by'] = $text['order_by'];
    1415$tpl->output['place'] = $text['info_place'];
     
    2526  case 5: $order = ' order by `players` desc '; break;
    2627  case 6: $order = ' order by `online` desc '; break;
    27   case 7: $order = ' order by `online` desc,`latency`'; break;
     28  case 7: $order = ' order by ceil(`online` / 100) desc, `latency`'; break;
     29  case 8: $order = ' order by `created` desc'; break;
    2830  }
    2931$tpl->output['s0'] = '';
     
    3537$tpl->output['s6'] = '';
    3638$tpl->output['s7'] = '';
     39$tpl->output['s8'] = '';
    3740if (empty($order_index))
    3841  {
Note: See TracChangeset for help on using the changeset viewer.