}
// This function must be run *BEFORE* a link is removed from table 'mxchange_user_links' !
-function BONUS_ADD_TURBO_POINTS($mid, $uid, $type) {
- global $_CONFIG;
-
+function BONUS_ADD_TURBO_POINTS ($mid, $uid, $type) {
// Shall we add bonus points?
if (getConfig('bonus_active') != "Y") return false;
}
//
function BONUS_MAKE_RANK_ROWS ($data, $type, $uid) {
- global $_CONFIG;
$self = false; $OUT = "";
// How many ranks do we have?
}
//
function BONUS_POINTS_HANDLER ($MODE) {
- global $_CONFIG;
-
// Shall we add bonus points?
if (getConfig('bonus_active') != "Y") return;
break;
}
}
-//
-function BONUS_PURGE_EXPIRED_TURBO_BONUS()
-{
- global $_CONFIG;
+//
+function BONUS_PURGE_EXPIRED_TURBO_BONUS() {
// Remove entries
$result = SQL_QUERY("DELETE LOW_PRIORITY FROM `{!_MYSQL_PREFIX!}_bonus_turbo` WHERE timemark < (UNIX_TIMESTAMP() - ".getConfig('bonus_timeout').")", __FILE__, __LINE__);
if (SQL_AFFECTEDROWS() > 0) {