* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009, 2010 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
} // END - if
// Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
if (isBonusRallyeActive()) {
// Shall I withdraw now?
if (!SQL_HASZERONUMS($result)) {
// List users
- $OUT = ''; $cnt = 1; $total = '0';
+ $OUT = ''; $count = 1; $total = '0';
while ($content = SQL_FETCHARRAY($result)) {
// Add total points
$total += $content['points'];
// Generate array fore the dynamic template
$WIN1 = ''; $WIN2 = '';
- if ($cnt <= getConfig('bonus_ranks')) {
+ if ($count <= getConfig('bonus_ranks')) {
// Maybe he can win his active bonus?
$WIN1 = '<strong>';
$WIN2 = '</strong>';
$content['last_online'] = generateDateTime($content['last_online'], 2);
$content['win1'] = $WIN1;
$content['win2'] = $WIN2;
- $content['cnt'] = $cnt;
+ $content['cnt'] = $count;
// Load template and add it
$OUT .= loadTemplate('admin_list_bonus_rows', true, $content);
- $cnt++;
+ $count++;
} // END - while
$content['rows'] = $OUT;
- $content['total'] = translateComma($total);
+ $content['total'] = $total;
// Check if we need to display form or not with manuel withdraw
- if (getConfig('last_month') == getMonth()) {
+ if (getLastMonth() == getMonth()) {
// Load form
$content['withdraw_form'] = loadTemplate('admin_list_bonus_form', true);
} else {