* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
} // END - if
// Old version ???
- $USE = '`turbo_bonus`';
+ $pointsColumns = '`turbo_bonus`';
// Run filter chain to find more columns
$add = runFilterChain('add_bonus_points_user_columns', '');
// Add them, if some where configured
if (!empty($add)) {
// Add more bonus points here
- $USE = '(0' . $add . ')';
+ $pointsColumns = '(0' . $add . ')';
} // END - if
// Init variables
$result = SQL_QUERY("SELECT
`userid`,
`email`,
- " . $USE . " AS `points`,
+ " . $pointsColumns . " AS `points`,
`last_online`
FROM
`{?_MYSQL_PREFIX?}_user_data`
WHERE
`status`='CONFIRMED' AND
- " . $USE . " > 0
+ " . $pointsColumns . " > 0
" . $lastOnline . "
+ " . runFilterChain('user_exclusion_sql', ' ') . "
ORDER BY
`points` DESC,
`last_online` DESC,
$content['count'] = $count;
// Load template and add it
- $OUT .= loadTemplate('admin_list_bonus_rows', true, $content);
+ $OUT .= loadTemplate('admin_list_bonus_rows', TRUE, $content);
$count++;
} // END - while
// Check if we need to display form or not with manuel withdraw
if (getLastMonth() == getMonth()) {
// Load form
- $content['withdraw_form'] = loadTemplate('admin_list_bonus_form', true);
+ $content['withdraw_form'] = loadTemplate('admin_list_bonus_form', TRUE);
} else {
// Display message "no manual withdraw possible"
- $content['withdraw_form'] = loadTemplate('admin_settings_unsaved', true, '{--ADMIN_BONUS_ALREADY_WITHDRAW--}');
+ $content['withdraw_form'] = loadTemplate('admin_settings_unsaved', TRUE, '{--ADMIN_BONUS_ALREADY_WITHDRAW--}');
}
// Prepare constant for timemark
}
// Load final template
- loadTemplate('admin_list_bonus', false, $content);
+ loadTemplate('admin_list_bonus', FALSE, $content);
} else {
// No one has become an "activity bonus"...
displayMessage('{--ADMIN_BONUS_NO_ACTIVE_RALLYE--}');