]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-register.php
Special characters, like German Umlaute, rewritten to entities (yes, still them....
[mailer.git] / inc / modules / guest / what-register.php
index cbd1d658eda07588e1ec316f8434eb6d3b052292..b53d0bdaedbb9d31c3163d716c566c41b02abd05 100644 (file)
@@ -180,8 +180,8 @@ LIMIT 1",
 //* DEBUG: */ print intval(isFormSent()).'/'.intval($isOkay).'/'.intval(isAdmin()).'<br />';
 if ((isFormSent()) && (($isOkay === true) || (isAdmin()))) {
        // Prepapre month and day of birth
-       if (strlen(postRequestElement('day'))   == 1) setRequestPostElement('day'  , '0'.postRequestElement('day'));
-       if (strlen(postRequestElement('month')) == 1) setRequestPostElement('month', '0'.postRequestElement('month'));
+       if (strlen(postRequestElement('day'))   == 1) setRequestPostElement('day'  , 0 . postRequestElement('day'));
+       if (strlen(postRequestElement('month')) == 1) setRequestPostElement('month', 0 . postRequestElement('month'));
 
        // Get total ...
        // ... confirmed, ...
@@ -290,8 +290,8 @@ VALUES ('%s','%s','%s','%s','%s',%s,'%s','%s',%s, %s,%s,'%s',%s, %s,'%s','UNCONF
                if (getConfig('ref_payout') > 0) $locked = 'locked_points';
 
                // @TODO Rewrite this to addPointsDirectly()
-               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_points` (`userid`, `ref_depth`, `".$locked."`) VALUES (%s,0,'%s')",
-                       array(bigintval($userid), getConfig('points_register')), __FILE__, __LINE__);
+               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_points` (`userid`, `ref_depth`, `".$locked."`) VALUES (%s,0,'{?points_register?}')",
+                       array(bigintval($userid)), __FILE__, __LINE__);
 
                // Update mediadata as well
                if ((getExtensionVersion('mediadata') >= '0.0.4') && ($locked == 'points')) {
@@ -315,7 +315,7 @@ VALUES ('%s','%s','%s','%s','%s',%s,'%s','%s',%s, %s,%s,'%s',%s, %s,'%s','UNCONF
        $gender = translateGender(postRequestElement('gender'));
 
        // ... rewrite a zero referal ID to the main title
-       if (postRequestElement('refid') == '0') setRequestPostElement('refid', getConfig('MAIN_TITLE'));
+       if (postRequestElement('refid') == 0) setRequestPostElement('refid', getConfig('MAIN_TITLE'));
 
        // Is ZIP code set?
        if (isPostRequestElementSet('zip')) {