]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/bonus_functions.php
Renamed function, used more "pool functions":
[mailer.git] / inc / libs / bonus_functions.php
index 4c02b5743af86e506ecdea5ff38d365d8537fafa..fa7ddd1b23d1905d49e4d34ad3c29cf15806179e 100644 (file)
@@ -121,7 +121,9 @@ function addTurboBonus ($id, $userid, $type) {
 //
 function addBonusRanks ($data, $type, $userid) {
        // Init variables
-       $self = FALSE; $OUT = ''; $GLOBALS['ranking_content'] = array();
+       $self = FALSE;
+       $OUT = '';
+       $GLOBALS['ranking_content'] = array();
 
        // Clear rankings by default
        $GLOBALS['ranking_content']['rankings'] = '';
@@ -143,7 +145,7 @@ function addBonusRanks ($data, $type, $userid) {
                $GLOBALS['ranking_content'] = merge_array($GLOBALS['ranking_content'], SQL_FETCHARRAY($result));
 
                // Remember all values for later use
-               $self  = TRUE;
+               $self = TRUE;
 
                // Transfer data to template
                $GLOBALS['ranking_content']['timemark'] = generateDateTime($GLOBALS['ranking_content']['timemark'], 1);
@@ -270,13 +272,13 @@ function handleBonusPoints ($mode, $userid) {
 }
 
 // Purges expired fast-click bonus entries
-function purgeExpiredTurboBonus() {
+function purgeExpiredTurboBonus () {
        // Remove entries
        $result = SQL_QUERY('DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_bonus_turbo` WHERE (UNIX_TIMESTAMP() - `timemark`) >= {?bonus_timeout?}', __FUNCTION__, __LINE__);
 
        if (!SQL_HASZEROAFFECTED()) {
                // Send out email to admin
-               sendAdminNotification('{--ADMIN_AUTOPURGE_TURBO_SUBJECT--}', 'admin_autopurge_turbo', SQL_AFFECTEDROWS());
+               sendAdminNotification('{--ADMIN_AUTOPURGE_TURBO_SUBJECT--}', 'admin_purge_turbo', SQL_AFFECTEDROWS());
        } // END - if
 }