]> git.mxchange.org Git - mailer.git/commitdiff
Double % for sprintf()
authorRoland Häder <roland@mxchange.org>
Thu, 28 Jul 2011 22:51:58 +0000 (22:51 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 28 Jul 2011 22:51:58 +0000 (22:51 +0000)
inc/libs/register_functions.php

index 719f594bac0450f20592a61da97b3afc287aa248..f4f35afea2f0e95afc4fd06ae4eb2572bb6c7cab 100644 (file)
@@ -293,7 +293,7 @@ function doRegistration () {
        if (isExtensionInstalledAndNewer('theme', '0.0.8')) {
                // Okay, add design here
                $GLOBALS['register_sql_columns'] .= ', `curr_theme`';
-               $GLOBALS['register_sql_data']    .= ", '{%pipe,getCurrentTheme%}'";
+               $GLOBALS['register_sql_data']    .= ", '{%%pipe,getCurrentTheme%%}'";
        } // END - if
 
        // Check if I shall disable sending mail to newly registered members out about active/begging rallye
@@ -322,7 +322,7 @@ function doRegistration () {
        `{?_MYSQL_PREFIX?}_user_data`
 (`gender`,`surname`,`family`,`street_nr`,%s, `zip`,`city`,`email`,`birth_day`,`birth_month`,`birth_year`,`password`,`max_mails`,`receive_mails`,`refid`,`status`,`user_hash`,`REMOTE_ADDR`,`joined`,`last_update`,`ref_payout`".$GLOBALS['register_sql_columns'].")
        VALUES
-('%s','%s','%s','%s','%s',%s,'%s','%s',%s, %s,%s,'%s',%s, %s,'%s','UNCONFIRMED','%s','%s', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), {?ref_payout?}".$GLOBALS['register_sql_data'].")",
+('%s','%s','%s','%s','%s',%s,'%s','%s',%s, %s,%s,'%s',%s, %s,'%s','UNCONFIRMED','%s','{%%pipe,detectRemoteAddr%%}', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), {?ref_payout?}".$GLOBALS['register_sql_data'].")",
        array(
                $countryRow,
                substr(postRequestParameter('gender'), 0, 1),
@@ -340,8 +340,7 @@ function doRegistration () {
                bigintval(postRequestParameter('max_mails')),
                bigintval(postRequestParameter('max_mails')),
                makeZeroToNull(postRequestParameter('refid')),
-               $hash,
-               detectRemoteAddr(),
+               $hash
        ), __FUNCTION__, __LINE__);
 
        // Get his userid