// Do the registration
function doRegistration () {
- // Prepapre month and day of birth
- if (strlen(postRequestElement('day')) == 1) setPostRequestElement('day' , '0' . postRequestElement('day'));
- if (strlen(postRequestElement('month')) == 1) setPostRequestElement('month', '0' . postRequestElement('month'));
-
// Generate hash which will be inserted into confirmation mail
$hash = generateHash(sha1(
// Get total confirmed, ...
getTotalConfirmedUser() . getEncryptSeparator() .
// ... unconfirmed ...
getTotalUnconfirmedUser() . getEncryptSeparator() .
- // ... and locked users!
+ // ... and locked users
getTotalLockedUser() . getEncryptSeparator() .
postRequestElement('month') . '-' .
postRequestElement('day') . '-' .
// Add design when extension ext-theme is v0.0.8 or greater
// @TODO Rewrite these all to a single filter
$GLOBALS['register_sql_columns'] = '';
- $GLOBALS['register_sql_data'] = '';
+ $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
`ref_payout`
".$GLOBALS['register_sql_columns']."
) VALUES (
- '%s'
- '%s'
- '%s'
- '%s'
+ '%s',
+ '%s',
+ '%s',
+ '%s',
'%s',
%s,
'%s',