]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-sponsor_login.php
Even more rewrites/fixes from EL branch (please report any broken part after you...
[mailer.git] / inc / modules / guest / what-sponsor_login.php
index dc7d2286883ee290feb15852ca161cb019a67b1a..a9e1c850c633c80e99846938f44a29c1290c430a 100644 (file)
@@ -18,6 +18,7 @@
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -75,17 +76,22 @@ LIMIT 1", array(getRequestParameter('hash')), __FILE__, __LINE__);
                // Sponsor found, load his data...
                $data = SQL_FETCHARRAY($result);
 
-               // Translate gender and comma
-               $data['gender']  = translateGender($data['gender']);
-               $data['points'] = translateComma($data['points']);
-               $data['pay']    = translateComma($data['pay']);
-
                // Unconfirmed account or changed email address?
                if ($data['status'] == 'UNCONFIRMED') {
                        // Set account to pending
-                       SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_sponsor_data` SET `status`='PENDING'
-WHERE `id`='%s' AND hash='%s' AND `status`='UNCONFIRMED' LIMIT 1",
-                       array(bigintval($data['id']), getRequestParameter('hash')), __FILE__, __LINE__);
+                       SQL_QUERY_ESC("UPDATE
+       `{?_MYSQL_PREFIX?}_sponsor_data`
+SET
+       `status`='PENDING'
+WHERE
+       `id`=%s AND
+       hash='%s' AND
+       `status`='UNCONFIRMED'
+LIMIT 1",
+                               array(
+                                       bigintval($data['id']),
+                                       getRequestParameter('hash')
+                               ), __FILE__, __LINE__);
 
                        // Check on success
                        if (SQL_AFFECTEDROWS() == 1) {
@@ -154,7 +160,6 @@ WHERE email='%s' AND (`status`='UNCONFIRMED' OR `status`='EMAIL') LIMIT 1",
                        $data = SQL_FETCHARRAY($result);
 
                        // Translate some data
-                       $data['gender']          = translateGender($data['gender']);
                        $data['sponsor_created'] = generateDateTime($data['sponsor_created']);
 
                        // Prepare email and send it to the sponsor