// Outputs a 'failed message'
function registerOutputFailedMessage ($messageId, $extra='') {
if (empty($messageId)) {
- outputHtml('<div class="notice">' . $extra . '</div>');
+ outputHtml('<div class="bad">' . $extra . '</div>');
} else {
- outputHtml('<div class="notice">{--' . $messageId . '--}' . $extra . '</div>');
+ outputHtml('<div class="bad">{--' . $messageId . '--}' . $extra . '</div>');
}
}
// Generate hash which will be inserted into confirmation mail
$hash = generateHash(sha1(
// Get total confirmed, ...
- getTotalConfirmedUser() . getEncryptSeperator() .
+ getTotalConfirmedUser() . getEncryptSeparator() .
// ... unconfirmed ...
- getTotalUnconfirmedUser() . getEncryptSeperator() .
+ getTotalUnconfirmedUser() . getEncryptSeparator() .
// ... and locked users!
- getTotalLockedUser() . getEncryptSeperator() .
+ getTotalLockedUser() . getEncryptSeparator() .
postRequestElement('month') . '-' .
postRequestElement('day') . '-' .
- postRequestElement('year') . getEncryptSeperator() .
- detectServerName() . getEncryptSeperator() .
- detectRemoteAddr() . getEncryptSeperator() .
+ postRequestElement('year') . getEncryptSeparator() .
+ detectServerName() . getEncryptSeparator() .
+ detectRemoteAddr() . getEncryptSeparator() .
detectUserAgent() . '/' .
getSiteKey() . '/' .
getDateKey() . '/' .
$GLOBALS['register_sql_data'] = '';
if (isExtensionInstalledAndNewer('theme', '0.0.8')) {
// Okay, add design here
- $GLOBALS['register_sql_columns'] .= ', `curr_theme`';
+ $GLOBALS['register_sql_columns'] .= ',`curr_theme`';
$GLOBALS['register_sql_data'] .= ", '{%%pipe,getCurrentTheme%%}'";
} // END - if
//
// First comes first: begging rallye
if ((isExtensionInstalledAndNewer('beg', '0.2.7')) && (!isBegNewMemberNotifyEnabled())) {
- $GLOBALS['register_sql_columns'] .= ', `beg_rallye_enable_notify`,`beg_rallye_disable_notify`';
+ $GLOBALS['register_sql_columns'] .= ',`beg_rallye_enable_notify`,`beg_rallye_disable_notify`';
$GLOBALS['register_sql_data'] .= ', UNIX_TIMESTAMP(), UNIX_TIMESTAMP()';
} // END - if
// Second: active rallye
if ((isExtensionActive('bonus')) && (!isBonusNewMemberNotifyEnabled())) {
- $GLOBALS['register_sql_columns'] .= ', `bonus_rallye_enable_notify`,`bonus_rallye_disable_notify`';
+ $GLOBALS['register_sql_columns'] .= ',`bonus_rallye_enable_notify`,`bonus_rallye_disable_notify`';
$GLOBALS['register_sql_data'] .= ', UNIX_TIMESTAMP(), UNIX_TIMESTAMP()';
} // END - if
// Create user's account...
SQL_QUERY_ESC("INSERT INTO
`{?_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','{%%pipe,detectRemoteAddr%%}', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), {?ref_payout?}".$GLOBALS['register_sql_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',
+ '{%%pipe,detectRemoteAddr%%}',
+ UNIX_TIMESTAMP(),
+ UNIX_TIMESTAMP(),
+ {?ref_payout?}
+ ".$GLOBALS['register_sql_data'].")",
array(
$countryRow,
substr(postRequestElement('gender'), 0, 1),
SQL_QUERY('UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `rand_confirmed`=0', __FUNCTION__, __LINE__);
} // END - if
- // Update referal table
- updateReferalCounter($userid);
+ // Update referral table
+ updateReferralCounter($userid);
// Write his welcome-points
- initReferalSystem();
- addPointsThroughReferalSystem('register_welcome', $userid, getPointsRegister());
+ initReferralSystem();
+ addPointsThroughReferralSystem('register_welcome', $userid, getPointsRegister());
// Write catgories
if ((is_array(postRequestElement('cat'))) && (count(postRequestElement('cat')))) {
} // END - foreach
} // END - if
- // ... rewrite a zero referal id to the main title
+ // ... rewrite a zero referral id to the main title
if (!isValidUserId(postRequestElement('refid'))) {
setPostRequestElement('refid', getMainTitle());
} // END - if