More language strings renamed, TODOs.txt updated:
[mailer.git] / inc / modules / sponsor / account.php
index 12803bad83b17ad4db51c4d382b3b1f127dfa865..fe9dec08e9d2ba63db2d46c20683a422e5343469 100644 (file)
@@ -50,13 +50,21 @@ if (!defined('__SECURITY')) {
 }
 
 // Data for the formular
-$result = SQL_QUERY_ESC("SELECT `company`, `position`, `tax_ident`,
-`gender`, `surname`, `family`, `street_nr1`, `street_nr2`, `zip`, `city`, `country`,
-`phone`, `fax`, `cell`, `email`, `url`,
-`status`, `receive_warnings`
-FROM `{?_MYSQL_PREFIX?}_sponsor_data`
-WHERE `id`='%s' AND `password`='%s' LIMIT 1",
-       array(bigintval(getSession('sponsorid')), getSession('sponsorpass')), __FILE__, __LINE__);
+$result = SQL_QUERY_ESC("SELECT
+       `company`, `position`, `tax_ident`,
+       `gender`, `surname`, `family`, `street_nr1`, `street_nr2`, `zip`, `city`, `country`,
+       `phone`, `fax`, `cell`, `email`, `url`,
+       `status`, `receive_warnings`
+FROM
+       `{?_MYSQL_PREFIX?}_sponsor_data`
+WHERE
+       `id`='%s' AND
+       `password`='%s'
+LIMIT 1",
+       array(
+               bigintval(getSession('sponsorid')),
+               getSession('sponsorpass')
+       ), __FILE__, __LINE__);
 
 // Entry found?
 if (SQL_NUMROWS($result) == 1) {
@@ -93,7 +101,7 @@ if (SQL_NUMROWS($result) == 1) {
                                        // Change current password
                                        $PASS_AND  = ", `password`='%s'";
                                        $PASS_DATA = md5(postRequestParameter('pass1'));
-                               }
+                               } // END - if
 
                                // Unsecure data which we don't want here
                                $UNSAFE = array('receive_warnings', 'warning_interval');
@@ -101,7 +109,7 @@ if (SQL_NUMROWS($result) == 1) {
                                // Remove all (maybe spoofed) unsafe data from array
                                foreach ($UNSAFE as $remove) {
                                        unsetPostRequestParameter($remove);
-                               }
+                               } // END - foreach
 
                                // Set last change timestamp
                                setPostRequestParameter('last_change', 'UNIX_TIMESTAMP()');