]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-sponsor_reg.php
Added ability to allow empty passwords, if the user does so, a random password will...
[mailer.git] / inc / modules / guest / what-sponsor_reg.php
index 75af8b376fd92ee24672faab9576be890db7739e..757c9634159ad0d186c0579be0d4b2bea59d2153 100644 (file)
@@ -14,8 +14,6 @@
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
@@ -184,7 +182,7 @@ if (isFormSent()) {
                                $formErrors[] = '{--SPONSOR_PASSWORD2_EMPTY--}';
                        }
                }
-       } elseif (strlen(postRequestParameter('pass1')) < getConfig('pass_len')) {
+       } elseif (strlen(postRequestParameter('pass1')) < getPassLen()) {
                // Password is to short!
                $formErrors[] = '{--SPONSOR_PASSWORD_TOO_SHORT--}';
        }
@@ -223,8 +221,8 @@ LIMIT 1",
        // Add points to array
        postRequestParameter('points_amount', $points);
        postRequestParameter('points_used'  , '0.00000');
-       postRequestParameter('last_pay'     , $pay);
-       postRequestParameter('last_curr'    , $curr);
+       postRequestParameter('last_payment' , $pay);
+       postRequestParameter('last_currency', $curr);
 
        // Register sponsor but never ever update here!
        $message = doProcessSponsorFormRequest($messageArray);
@@ -295,12 +293,12 @@ ORDER BY
                        $content['form_errors'] = $OUT;
 
                        // @TODO Maybe a default referal id?
-                       $content['refid']       = 0;
+                       $content['refid'] = 0;
 
                        // Is the referal id valid?
                        if ((isPostRequestParameterSet('refid')) && (isValidUserId(postRequestParameter('refid')))) {
                                // Transfer referal id
-                               $content['refid']       = bigintval(postRequestParameter('refid'));
+                               $content['refid'] = bigintval(postRequestParameter('refid'));
                        } // END - if
                } // END - if