]> git.mxchange.org Git - mailer.git/blobdiff - doubler.php
Convention applied to POINTS constant
[mailer.git] / doubler.php
index ed96136bbc9f74fae92ccbb2d98123494a507b2a..6f0517dbf0816d823adeee2cc9fd2e2f4517cf12 100644 (file)
@@ -48,6 +48,12 @@ $CSS = 0;
 // Load the required file(s)
 require ("inc/config.php");
 
+// Is the "doubler" extension active?
+if (!EXT_IS_ACTIVE("doubler")) {
+       // Redirect to index
+       LOAD_URL("modules.php?module=index&msg=".CODE_EXTENSION_PROBLEM."&ext=doubler");
+} // END - if
+
 // Is the script installed?
 if (isBooleanConstantAndTrue('mxchange_installed')) {
        // Probe for referral ID
@@ -106,7 +112,7 @@ if (isBooleanConstantAndTrue('mxchange_installed')) {
                        SQL_FREERESULT($result);
 
                        // Remove any dots and unwanted chars from the points
-                       $_POST['points'] = bigintval(round(str_replace(",", ".", $_POST['points'])));
+                       $_POST['points'] = bigintval(round(REVERT_COMMA($_POST['points'])));
 
                        // Probe for enough points
                        $probe_points = (($_POST['points'] >= $_CONFIG['doubler_min']) && ($_POST['points'] <= $_CONFIG['doubler_max']));