]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-sponsor_login.php
Fixed handling of float values, ext-surfbar continued:
[mailer.git] / inc / modules / guest / what-sponsor_login.php
index 017688f261c037fa2b854c14016e42bc14a0238e..5fccf754029cf8967e7b8952cf0312e10dbfa634 100644 (file)
@@ -64,10 +64,10 @@ if (isGetRequestElementSet('do')) {
 if (isGetRequestElementSet('hash')) {
        // Lookup sponsor
        $result = SQL_QUERY_ESC("SELECT
-       `id`,`status`,`gender`,`surname`,`family`,
-       `company`,`position`,`tax_ident`,
-       `street_nr1`,`street_nr2`,`country`,`zip`,`city`,`email`,`phone`,`fax`,`cell`,
-       `points_amount` AS `points`,`last_payment`,`last_currency`
+       `id`, `status`, `gender`, `surname`, `family`,
+       `company`, `position`, `tax_ident`,
+       `street_nr1`, `street_nr2`, `country`, `zip`, `city`, `email`, `phone`, `fax`, `cell`,
+       `points_amount` AS `points`, `last_payment`, `last_currency`
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_data`
 WHERE
@@ -156,7 +156,13 @@ LIMIT 1",
        if (isFormSent('login')) {
                // Check email
                $result = SQL_QUERY_ESC("SELECT
-       `id`,`hash`,`status`,`remote_addr`,`gender`,`surname`,`family`,
+       `id`,
+       `hash`,
+       `status`,
+       `remote_addr`,
+       `gender`,
+       `surname`,
+       `family`,
        UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created`
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_data`
@@ -207,7 +213,12 @@ LIMIT 1",
        if (isFormSent('login')) {
                // Check email
                $result = SQL_QUERY_ESC("SELECT
-       `id`,`hash`,`remote_addr`,`gender`,`surname`,`family`,
+       `id`,
+       `hash`,
+       `remote_addr`,
+       `gender`,
+       `surname`,
+       `family`,
        UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created`
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_data`
@@ -278,7 +289,7 @@ LIMIT 1",
                        (setSession('sponsor_pass', md5(postRequestElement('password'))           ))
                        );
 
-                       if ($login === true) {
+                       if ($login === TRUE) {
                                // Cookie setup successfull so we can forward to sponsor area
                                redirectToUrl('modules.php?module=sponsor');
                        } else {