]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-sponsor_reg.php
Possible further fix for #128
[mailer.git] / inc / modules / guest / what-sponsor_reg.php
index 5284c5b1c4f3da672640522e618efd9ab91b7c27..ce88fd80fb1841a38684cf8150d5624a57526a78 100644 (file)
@@ -40,7 +40,7 @@ if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
 } elseif ((!EXT_IS_ACTIVE('sponsor'))) {
-       addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'sponsor'));
+       addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('sponsor'));
        return;
 }
 
@@ -166,17 +166,17 @@ if (isFormSent()) {
        }
 
        // Did he enter his password twice?
-       if (((!REQUEST_ISSET_POST(('pass1'))) || (!REQUEST_ISSET_POST(('pass2')))) || ((REQUEST_POST('pass1') != REQUEST_POST('pass2')) && (REQUEST_ISSET_POST(('pass1'))) && (REQUEST_ISSET_POST(('pass2'))))) {
-               if ((REQUEST_POST('pass1') != REQUEST_POST('pass2')) && (REQUEST_ISSET_POST(('pass1'))) && (REQUEST_ISSET_POST(('pass2')))) {
+       if (((!REQUEST_ISSET_POST('pass1')) || (!REQUEST_ISSET_POST('pass2'))) || ((REQUEST_POST('pass1') != REQUEST_POST('pass2')) && (REQUEST_ISSET_POST('pass1')) && (REQUEST_ISSET_POST('pass2')))) {
+               if ((REQUEST_POST('pass1') != REQUEST_POST('pass2')) && (REQUEST_ISSET_POST('pass1')) && (REQUEST_ISSET_POST('pass2'))) {
                        // Passwords missmatch
                        $FORM_ERRORS[] = getMessage('SPONSOR_PASSWORDS_MISMATCH');
                } else {
-                       if (!REQUEST_ISSET_POST(('pass1'))) {
+                       if (!REQUEST_ISSET_POST('pass1')) {
                                // Password 1 is empty
                                $FORM_ERRORS[] = getMessage('SPONSOR_PASSWORD1_EMPTY');
                        }
 
-                       if (!REQUEST_ISSET_POST(('pass2'))) {
+                       if (!REQUEST_ISSET_POST('pass2')) {
                                // Password 2 is empty
                                $FORM_ERRORS[] = getMessage('SPONSOR_PASSWORD2_EMPTY');
                        }
@@ -321,19 +321,19 @@ ORDER BY pay_name", __FILE__, __LINE__);
                        // Check for gender selection
                        switch (REQUEST_POST('gender'))
                        {
-                               case "M": // Male
+                               case 'M': // Male
                                        define('__GENDER_M'  , ' selected="selected"');
                                        define('__GENDER_F'  , '');
                                        define('__GENDER_C'  , '');
                                        break;
 
-                               case "F": // Female
+                               case 'F': // Female
                                        define('__GENDER_M'  , '');
                                        define('__GENDER_F'  , ' selected="selected"');
                                        define('__GENDER_C'  , '');
                                        break;
 
-                               case "C": // Company
+                               case 'C': // Company
                                        define('__GENDER_M'  , '');
                                        define('__GENDER_F'  , '');
                                        define('__GENDER_C'  , ' selected="selected"');