]> git.mxchange.org Git - mailer.git/blobdiff - doubler.php
Adding of network type handlers finished (listing is still work-in-progress)
[mailer.git] / doubler.php
index f72af79ba1dcd8141c30c20ef5bccd1fd4f67d60..34668ed6701ad66ecd87425f418ca0aae017e0f0 100644 (file)
@@ -63,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'))) {
@@ -82,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')));