wernis extension is now alpha code (only listing in admin area is missing), naming...
[mailer.git] / inc / libs / payout_functions.php
index e1697c7b6a90fa63ebb66bd55e06f9ff202e4819..8b8f8ba03d5debddd8a2eef6442e324dbda0fc57 100644 (file)
@@ -38,17 +38,17 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
        require($INC);
 }
 //
-function PAYOUT_OUTPUT_PAYOUT_LIST($POINTS)
+function PAYOUT_OUTPUT_PAYOUT_LIST($points)
 {
        // Replace german decimal comma with CPU's decimal dot
-       $POINTS = strval(str_replace(",", ".", $POINTS));
-       if ($POINTS > 0)
+       $points = strval(str_replace(",", ".", $points));
+       if ($points > 0)
        {
                // Pay this out!
                $result = SQL_QUERY_ESC("SELECT id, type, rate, min_points
 FROM "._MYSQL_PREFIX."_payout_types
 WHERE %s >= min_points
-ORDER BY type", array($POINTS), __FILE__, __LINE__);
+ORDER BY type", array($points), __FILE__, __LINE__);
                if (SQL_NUMROWS($result) > 0)
                {
                        OUTPUT_HTML("<br /><DIV align=\"center\">
@@ -58,10 +58,10 @@ ORDER BY type", array($POINTS), __FILE__, __LINE__);
                        while (list($id, $type, $rate, $mpoi) = SQL_FETCHROW($result))
                        {
                                $type = COMPILE_CODE($type);
-                               if ($POINTS >= $mpoi)
+                               if ($points >= $mpoi)
                                {
                                        // Ok we found one
-                                       $P = $POINTS * $rate - 0.5;
+                                       $P = $points * $rate - 0.5;
                                        OUTPUT_HTML("<LI>".PAYOUT_IN.": <STRONG><A href=\"".URL."/modules.php?module=login&amp;what=payout&amp;payout=".$id."\">".$type." (".PAYOUT_MAX." ".round($P)." ".$type.")</A></STRONG></LI>");
                                }
                        }