X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=doubler.php;h=34668ed6701ad66ecd87425f418ca0aae017e0f0;hp=4a97351b9bf7ca1efff89d9dbc476501a76da54f;hb=225103a2af4ebe180823d48913eac14825381134;hpb=9f6c30cc0e06098171d773d671292081ecee3d29 diff --git a/doubler.php b/doubler.php index 4a97351b9b..34668ed670 100644 --- a/doubler.php +++ b/doubler.php @@ -1,7 +1,7 @@ '', @@ -66,7 +63,7 @@ $content = array( // Begin with doubler script... if (isFormSent()) { // Secure points (so only integer/double values are allowed - setRequestPostElement('points', bigintval(postRequestElement('points'))); + setPostRequestElement('points', bigintval(postRequestElement('points'))); // Begin with doubling process if ((isPostRequestElementSet('userid')) && (isPostRequestElementSet('pass')) && (isPostRequestElementSet('points'))) { @@ -85,11 +82,8 @@ if (isFormSent()) { loadTemplate('admin_settings_saved', false, getMessage('DOUBLER_USERID_INVALID')); } // END - if - // Free result - SQL_FREERESULT($result); - // Remove any dots and unwanted chars from the points - setRequestPostElement('points', bigintval(round(convertCommaToDot(postRequestElement('points'))))); + setPostRequestElement('points', bigintval(round(convertCommaToDot(postRequestElement('points'))))); // Probe for enough points $probe_points = ((postRequestElement('points') >= getConfig('doubler_min')) && (postRequestElement('points') <= getConfig('doubler_max')));