// 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
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']));