More use of REVERT_COMMA() fixes problems
[mailer.git] / inc / libs / payout_functions.php
index 8b8f8ba03d5debddd8a2eef6442e324dbda0fc57..eab3ad8fc0c8196c12570a9c7cb957920738f540 100644 (file)
  ************************************************************************/
 
 // Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
-{
+if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 }
+
 //
 function PAYOUT_OUTPUT_PAYOUT_LIST($points)
 {
        // Replace german decimal comma with CPU's decimal dot
-       $points = strval(str_replace(",", ".", $points));
+       $points = strval(REVERT_COMMA($points));
        if ($points > 0)
        {
                // Pay this out!