A lot texts rewritten and exclamation signs removed
[mailer.git] / inc / modules / guest / what-sponsor_reg.php
index 35fdaee..3e92477 100644 (file)
@@ -227,11 +227,11 @@ WHERE `id`='%s' LIMIT 1",
        // Check the status of the registration process
        switch ($STATUS) {
                case 'added': // Sponsor successfully added with account status = UNCONFIRMED!
-                       // Check for his ID number
+                       // Check for his id number
                        $result = SQL_QUERY_ESC("SELECT `id`, `hash` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `email`='%s' LIMIT 1",
                                array(postRequestElement('email')), __FILE__, __LINE__);
                        if (SQL_NUMROWS($result) == 1) {
-                               // ID found so let's load it for the confirmation email
+                               // id found so let's load it for the confirmation email
                                list($id, $hash) = SQL_FETCHROW($result);
 
                                // Prepare data for the email template
@@ -241,7 +241,7 @@ WHERE `id`='%s' LIMIT 1",
                                $content['surname']   = secureString(postRequestElement('surname'));
                                $content['family']    = secureString(postRequestElement('family'));
                                $content['gender']    = translateGender(postRequestElement('gender'));
-                               $content['timestamp'] = generateDateTime(time(), '0');
+                               $content['timestamp'] = generateDateTime(time(), 0);
                                $content['password']  = secureString(postRequestElement('pass1'));
 
                                // Generate email and send it to the new sponsor
@@ -347,11 +347,11 @@ ORDER BY `pay_name`", __FILE__, __LINE__);
 
                // Prepare referal things
                if (isGetRequestElementSet('refid')) {
-                       // Referal ID transmitted, we don't care here if it is right or not
+                       // Referal id transmitted, we don't care here if it is right or not
                        $content['refid'] = bigintval(getRequestElement('refid'));
                } else {
                        // No referal link
-                       $content['refid'] = '0';
+                       $content['refid'] = 0;
                }
 
                // Display registration form