`total_logins` DESC
LIMIT {?top10_max?}", __FILE__, __LINE__);
-$OUT = ''; $SW = 2; $cnt = 1;
+$OUT = ''; $cnt = 1;
while ($content = SQL_FETCHARRAY($result)) {
// Init nickname
$content['nickname'] = '';
// Prepare data for template
$content = array(
- 'sw' => $SW,
'cnt' => $cnt,
'userid' => $content['userid'],
'nickname' => $content['nickname'],
// Load row template
$OUT .= loadTemplate('guest_top10_row_login', true, $content);
- // Switch colors and count one up
- $SW = 3 - $SW; $cnt++;
+ // Count one up
+ $cnt++;
} // END - while
if ($cnt < getConfig('top10_max')) {
for ($i = $cnt; $i <= getConfig('top10_max'); $i++) {
// Prepare data for template
$content = array(
- 'sw' => $SW,
'index' => $i
);
// Load row template
$OUT .= loadTemplate('guest_top10_empty5', true, $content);
- $SW = 3 - $SW;
} // END - for
} // END - if
d.last_online DESC
LIMIT {?top10_max?}", __FILE__, __LINE__);
-$OUT = ''; $SW = 2; $cnt = 1;
+$OUT = ''; $cnt = 1;
while ($content = SQL_FETCHARRAY($result)) {
// Init nickname
$content['nickname'] = '';
// Prepare data for template
$content = array(
- 'sw' => $SW,
'cnt' => $cnt,
'userid' => $content['userid'],
'nickname' => $content['nickname'],
// Load row template
$OUT .= loadTemplate('guest_top10_row_earner', true, $content);
- // Switch colors and count one up
- $SW = 3 - $SW; $cnt++;
+ // Count one up
+ $cnt++;
} // END - while
if ($cnt < getConfig('top10_max')) {
for ($i = $cnt; $i <= getConfig('top10_max'); $i++) {
// Prepare data for template
$content = array(
- 'sw' => $SW,
'index' => $i
);
// Load row template
$OUT .= loadTemplate('guest_top10_empty4', true, $content);
- $SW = 3 - $SW;
} // END - for
} // END - if
d.last_online DESC
LIMIT {?top10_max?}", __FILE__, __LINE__);
-$OUT = ''; $SW = 2; $cnt = 1;
+$OUT = ''; $cnt = 1;
while ($content = SQL_FETCHARRAY($result)) {
// Init nickname
$content['nickname'] = '';
// Prepare data for template
$content = array(
- 'sw' => $SW,
'cnt' => $cnt,
'userid' => $content['userid'],
'refs' => $content['refs'],
// Load row template
$OUT .= loadTemplate('guest_top10_row_refs', true, $content);
- // Switch colors and count one up
- $SW = 3 - $SW; $cnt++;
+ // Count one up
+ $cnt++;
} // END - while
if ($cnt < getConfig('top10_max')) {
for ($i = $cnt; $i <= getConfig('top10_max'); $i++) {
// Prepare data for template
$content = array(
- 'sw' => $SW,
'index' => $i
);
// Load row template
$OUT .= loadTemplate('guest_top10_empty5', true, $content);
- $SW = 3 - $SW;
} // END - for
} // END - if