+
+// Determines the right language string for min_users
+function determineReferalRallyeMinimumUsers ($min_users) {
+ // Rallye ends without user limitation is the default
+ $return = getMessage('RALLYE_END_NO_USER_LIMITATION');
+
+ if ($min_users > 0) {
+ // Rallye ends when X members are totally in your exchange
+ $return = sprintf(getMessage('RALLYE_END_USERS'), $min_users);
+ } // END - if
+
+ // Return
+ return $return;
+}
+
+// Determines the right language string for min_prices
+function determineReferalRallyeMinimumPrices ($min_prices) {
+ // Rallye ends without user limitation is the default
+ $return = getMessage('RALLYE_END_NO_PRICE_LIMITATION');
+
+ if ($min_prices > 0) {
+ // Rallye ends when X members are totally in your exchange
+ $return = sprintf(getMessage('RALLYE_END_PRICES'), $min_prices);
+ } // END - if
+
+ // Return
+ return $return;
+}
+
+// Filter for extra-autpurge
+function FILTER_RALLYE_EXTRA_AUTOPURGE () {
+ // Check expired rallyes (hard-coded 3 days limit for displaying expired rallyes!)
+ purgeExpiredReferalRallyes();
+}
+
+// [EOF]