]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/register_functions.php
SQL fixed
[mailer.git] / inc / libs / register_functions.php
index 480e65dbd60726342392d3fc0ef51e6c3fdcf814..2f7b9ad64e52b304356d665c4554bc4d68814644 100644 (file)
@@ -120,9 +120,9 @@ function registerGenerateCategoryTable ($mode) {
 // 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>');
        }
 }
 
@@ -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