-function doRegistration () {
- // Prepapre month and day of birth
- if (strlen(postRequestParameter('day')) == 1) setPostRequestParameter('day' , '0' . postRequestParameter('day'));
- if (strlen(postRequestParameter('month')) == 1) setPostRequestParameter('month', '0' . postRequestParameter('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() .
- postRequestParameter('month') . '-' .
- postRequestParameter('day') . '-' .
- postRequestParameter('year') . getEncryptSeperator() .
- detectServerName() . getEncryptSeperator() .
- detectRemoteAddr() . getEncryptSeperator() .
- detectUserAgent() . '/' .
- getSiteKey() . '/' .
- getDateKey() . '/' .
- getConfig('CACHE_BUSTER')
- ));
-
- // Old way with enterable two-char-code
- $countryRow = '`country`';
- $countryData = substr(postRequestParameter('cntry'), 0, 2);
-
- // Add design when extension sql_patches is v0.2.7 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'] .= ", '" . getCurrentTheme() . "'";
+function doUserRegistration () {
+ // Do not register an account on absent ext-user
+ if (!isExtensionInstalled('user')) {
+ // Please report this
+ reportBug(__FUNCTION__, __LINE__, 'Tried to register a user account without ext-user installed.');