]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/register_functions.php
Extension ext-network continued:
[mailer.git] / inc / libs / register_functions.php
index 62a62dde4210c8f913588fea700a7b3f996ca0e3..35a790ae7f84c3fe1cc8144847923c22b49dbc3c 100644 (file)
@@ -243,7 +243,7 @@ function isRegistrationDataComplete () {
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'isOkay='.intval($isOkay));
        if ((!isAdmin()) && (getIpTimeout() > 0)) {
                // Check his IP number
-               $GLOBALS['registration_ip_timeout'] = (countSumTotalData(detectRemoteAddr()  , 'user_data', 'userid', 'REMOTE_ADDR', true, " AND ((UNIX_TIMESTAMP() - `joined`) < {?ip_timeout?} OR (UNIX_TIMESTAMP() - `last_update`) < {?ip_timeout?}) LIMIT 1") == 1);
+               $GLOBALS['registration_ip_timeout'] = (countSumTotalData(detectRemoteAddr()  , 'user_data', 'userid', 'REMOTE_ADDR', true, ' AND ((UNIX_TIMESTAMP() - `joined`) < {?ip_timeout?} OR (UNIX_TIMESTAMP() - `last_update`) < {?ip_timeout?})') == 1);
                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'isOkay='.intval($isOkay).',timeout='.intval($GLOBALS['registration_ip_timeout']));
                $isOkay = (($isOkay) && (!$GLOBALS['registration_ip_timeout']));
        } // END - if
@@ -378,7 +378,7 @@ function doRegistration () {
                generateHash(postRequestElement('pass1')),
                bigintval(postRequestElement('max_mails')),
                bigintval(postRequestElement('max_mails')),
-               makeZeroToNull(postRequestElement('refid')),
+               convertZeroToNull(postRequestElement('refid')),
                $hash
        ), __FUNCTION__, __LINE__);