= {?login_timeout?} LIMIT 1', array( getMemberId() ), __FUNCTION__, __LINE__ ); // Updated entry? $bonus = (!SQL_HASZEROAFFECTED()); } // END - if if (($bonus === true) && (getRequestParameter('mode') == 'bonus')) { // Output message with added points $GLOBALS['message'] .= '
{--MEMBER_BONUS_LOGIN_BONUS_ADDED--}
'; } else { // No login bonus added! $GLOBALS['message'] .= '
{--MEMBER_BONUS_LOGIN_BONUS_NOT_ADDED--}
'; } // Return data //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!'); return $filterData; } // Filter for generating admin mail links for bonus mails function FILTER_GENERATE_BONUS_MAIL_LINKS ($filterData) { // Is the type 'bid'? //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!'); if ($filterData['type'] == 'bid') { // Load template $filterData['__output'] .= loadTemplate('admin_links_bonus_mail', true, $filterData); } // END - if // Return data //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!'); return $filterData; } // Filter for adding bonus columns with a plus (+) sign function FILTER_ADD_BONUS_POINTS_USER_COLUMNS ($add = '') { // Skip out-dated extension, because this causes an error if (isExtensionInstalledAndOlder('bonus', '0.9.7')) { // Skip this silently return $add; } // END - if // Add more columns only when the corresponding configuration is enabled, too if (getConfig('include_bonus_click') == 'Y') $add .= ' + `turbo_bonus`'; if (getConfig('include_bonus_login') == 'Y') $add .= ' + `login_bonus`'; if (getConfig('include_bonus_order') == 'Y') $add .= ' + `bonus_order`'; if (getConfig('include_bonus_stats') == 'Y') $add .= ' + `bonus_stats`'; if (getConfig('include_bonus_ref') == 'Y') $add .= ' + `bonus_ref`'; // Return $add return $add; } // [EOF] ?>