More references to removed (still some left)
[mailer.git] / inc / libs / bonus_functions.php
index b5ea9b2b9f450f85f68751a137908375e4a331e5..f97467bf1bc37c71e0cec5d5fecb1215045ec220 100644 (file)
@@ -38,9 +38,7 @@ if (!defined('__SECURITY')) {
 }
 
 // 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;
 
@@ -112,7 +110,6 @@ function BONUS_ADD_TURBO_POINTS($mid, $uid, $type) {
 }
 //
 function BONUS_MAKE_RANK_ROWS ($data, $type, $uid) {
-       global $_CONFIG;
        $self = false; $OUT = "";
 
        // How many ranks do we have?
@@ -188,8 +185,6 @@ function BONUS_MAKE_RANK_ROWS ($data, $type, $uid) {
 }
 //
 function BONUS_POINTS_HANDLER ($MODE) {
-       global $_CONFIG;
-
        // Shall we add bonus points?
        if (getConfig('bonus_active') != "Y") return;
 
@@ -234,11 +229,9 @@ function BONUS_POINTS_HANDLER ($MODE) {
                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) {