-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() . getEncryptSeperator() .
- // ... unconfirmed ...
- getTotalUnconfirmedUser() . getEncryptSeperator() .
- // ... and locked users!
- getTotalLockedUser() . getEncryptSeperator() .
- postRequestElement('month') . '-' .
- postRequestElement('day') . '-' .
- postRequestElement('year') . getEncryptSeperator() .
- detectServerName() . getEncryptSeperator() .
- detectRemoteAddr() . getEncryptSeperator() .
- detectUserAgent() . '/' .
- getSiteKey() . '/' .
- getDateKey() . '/' .
- getConfig('CACHE_BUSTER')
- ));
-
- // Old way with enterable two-char-code
- $countryRow = '`country`';
- $countryData = substr(postRequestElement('cntry'), 0, 2);
-
- // 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'] = '';
- if (isExtensionInstalledAndNewer('theme', '0.0.8')) {
- // Okay, add design here
- $GLOBALS['register_sql_columns'] .= ', `curr_theme`';
- $GLOBALS['register_sql_data'] .= ", '{%%pipe,getCurrentTheme%%}'";