]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/refback_functions.php
Extension ext-refback continued:
[mailer.git] / inc / libs / refback_functions.php
index d769bd08f0fdfe2d10ca4e88cfbc388d1f26bb64..e97e063fecf43478a86c19cc26dcd096b8eb94f8 100644 (file)
@@ -72,7 +72,7 @@ function addRefbackPoints ($userid, $ref, $points, $ref_points) {
 
                        // Some percents given?
                        if ($percents > 0) {
-                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'points=' . $points . ',[percents]=' . $content['refback_percents'] . ',percents=' . $percents . ',level=' . $content['level']);
+                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'points=' . $points . ',refback_percents=' . $content['refback_percents'] . ',percents=' . $percents . ',level=' . $content['level']);
                                // Calculate points for refback
                                $refback = $points * ($content['refback_percents'] / 100) * ($percents / 100);
 
@@ -281,20 +281,20 @@ function getArrayFromUserRefbackData ($id) {
 function updateMemberRefbackPercents ($id, $percents) {
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'id=' . $id . ',percents=' . $percents . ' - ENTERED!');
        // Default status is failed
-       $status['message'] = '{--MEMBER_REFBACK_ERROR_GENERAL--}';
+       $status['message'] = 'MEMBER_REFBACK_ERROR_GENERAL';
 
        // Do some sanity-checks
        if (!isMember()) {
                // No member!
-               $status['message'] = '{--MEMBER_REFBACK_ERROR_NO_MEMBER--}';
+               $status['message'] = 'MEMBER_REFBACK_ERROR_NO_MEMBER';
                return $status;
        } elseif (''.$id.'' != ''.($id + 0).'') {
                // No number!
-               $status['message'] = '{--MEMBER_REFBACK_ERROR_INVALID_ID_NUMBER--}';
+               $status['message'] = 'MEMBER_REFBACK_ERROR_INVALID_ID_NUMBER';
                return $status;
        } elseif (($percents < 0) || ($percents > 100)) {
                // Percentage is not valid!
-               $status['message'] = '{--MEMBER_REFBACK_ERROR_INVALID_PERCENTAGE--}';
+               $status['message'] = 'MEMBER_REFBACK_ERROR_INVALID_PERCENTAGE';
                return $status;
        }
 
@@ -304,7 +304,7 @@ function updateMemberRefbackPercents ($id, $percents) {
        // Is this valid?
        if (count($dummy) == 0) {
                // id does not belong to user!
-               $status['message'] = '{--MEMBER_REFBACK_ERROR_ID_MISMATCH--}';
+               $status['message'] = 'MEMBER_REFBACK_ERROR_ID_MISMATCH';
                return $status;
        } // END - if
 
@@ -322,7 +322,7 @@ function updateMemberRefbackPercents ($id, $percents) {
        // Entry updated?
        if (SQL_HASZEROAFFECTED()) {
                // Entry not updated!
-               $status['message'] = '{--MEMBER_REFBACK_ERROR_NOT_UPDATED--}';
+               $status['message'] = 'MEMBER_REFBACK_ERROR_NOT_UPDATED';
                return $status;
        } // END - if