]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/bonus_functions.php
Surfbar extended with member notification
[mailer.git] / inc / libs / bonus_functions.php
index c52b7a9bbdb06b8e91abe77564de6aac08a891c2..ebd186a483860ca374665957387d0849c10c6330 100644 (file)
@@ -43,7 +43,7 @@ function BONUS_ADD_TURBO_POINTS($mid, $uid, $type)
        global $_CONFIG;
 
        // Shall we add bonus points?
-       if ($_CONFIG['bonus_active'] == 'N') return;
+       if ($_CONFIG['bonus_active'] == "N") return;
 
        // Select SQL command
        $SQL = "";
@@ -186,7 +186,7 @@ function BONUS_POINTS_HANDLER($MODE)
        global $_CONFIG;
 
        // Shall we add bonus points?
-       if ($_CONFIG['bonus_active'] == 'N') return;
+       if ($_CONFIG['bonus_active'] == "N") return;
 
        // Switch to jackpot-mode when no UID is supplied but userid-mode is selected
        if (($_CONFIG['bonus_mode'] == "UID") && ($_CONFIG['bonus_uid'] == "0")) $_CONFIG['bonus_mode'] = "JACKPOT";
@@ -245,7 +245,7 @@ function BONUS_POINTS_HANDLER($MODE)
                 else
                {
                        // Try to subtract from jackpot
-                       $DUMMY = SUB_JACKPOT($points);
+                       $dummy = SUB_JACKPOT($points);
                }
                break;
        }
@@ -260,15 +260,7 @@ function BONUS_PURGE_EXPIRED_TURBO_BONUS()
        if ($DELETED > 0)
        {
                // Send out email to admin
-               if (GET_EXT_VERSION("admins") >= "0.4.1")
-               {
-                       SEND_ADMIN_EMAILS_PRO(AUTOPURGE_ADMIN_TURBO_SUBJECT, "admin_autopurge_turbo", $DELETED, "");
-               }
-                else
-               {
-                       $msg = LOAD_EMAIL_TEMPLATE("admin_autopurge_turbo", $DELETED, "");
-                       SEND_ADMIN_EMAILS(AUTOPURGE_ADMIN_TURBO_SUBJECT, $msg);
-               }
+               SEND_ADMIN_NOTIFICATION(AUTOPURGE_ADMIN_TURBO_SUBJECT, "admin_autopurge_turbo", $DELETED, "");
        }
 }
 //