+
+// "Translates" the payout status into a human-readable message
+function translatePayoutStatus ($status) {
+ // Try to get a message from given status
+ $message = '{--PAYOUT_STATUS_' . strtoupper($status) . '--}';
+
+ // Return it
+ return $message;
+}
+
+// "Getter" for payoutable user points
+function getPayoutPoints ($userid) {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__][$userid])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__][$userid] = countSumTotalData($userid, 'user_points', 'points') - getUserUsedPoints($userid);
+ } // END - if
+
+ // Return it
+ return $GLOBALS[__FUNCTION__][$userid];
+}
+
+// [EOF]