0 LIMIT 1", array(bigintval($data['userid'])), __FILE__, __LINE__); // Add points initReferralSystem(); addPointsThroughReferralSystem('mailid_okay', $data['userid'], $data['payment']); // Shall I add bonus points for "turbo clickers" ? if (isExtensionInstalledAndNewer('bonus', '0.2.2')) { // Is an active-rallye running and this is not a notification mail? if ((isBonusRallyeActive()) && ($data['is_notify'] != 'Y')) { // Shall I exclude the webmaster's own userid from the active-rallye? if ((((getBonusUserid() == $data['userid']) && (isBonusIncludeOwnEnabled())) || (getBonusUserid() != $data['userid'])) && (getDefRefid() != $data['userid'])) { // Add points and remember ranking are done in this function.... addTurboBonus($data['id'], $data['userid'], $data['type']); // Set template to mailid_points_done2 which contains a link to the ranking list $template = 'mailid_points_done2'; // Different template if user has some mails to confirm if (ifUserPointsLocked($data['userid'])) { $template = 'mailid_points_locked2'; } // END - if } // END - if } // END - if } // END - if // Load total points $data['total_points'] = getTotalPoints($data['userid']); // Load template loadTemplate($template, FALSE, $data); } elseif (isValidId($data['sender'])) { // Wrong image code! So add points to sender's account initReferralSystem(); addPointsThroughReferralSystem('mailid_payback', $data['sender'], $data['payment']); // Load template loadTemplate('mailid_points_failed', FALSE, $data); } else { // Load template loadTemplate('mailid_points_failed2', FALSE, $data); } // Remove link from table sqlQueryEscaped("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `id`=%s LIMIT 1", array(bigintval($data['link_id'])), __FILE__, __LINE__); } // Do call-back for 'img' function doMailIdImg ($data) { // Generate image/code generateImageOrCode($data['real_code']); } // Do call-back for 'confirm' function doMailIdConfirm ($data) { // Is code valid? if ($data['code'] > 0) { // Export data into constants for the template if (getCodeLength() > 0) { // Generate Code $data['image'] = generateCaptchaCode($data['code'], $data['type'], $data['id'], $data['userid']); $templ = 'mailid_enter_code'; } else { // Disabled code $templ = 'mailid_confirm_buttom'; } // Load template loadTemplate($templ, FALSE, $data); } else { // Cannot confirm! reportBug(__FILE__, __LINE__, 'No code given.'); } } // Do call-back for 'top' function doMailIdTop ($data) { /* * Ok, all data is valid and loaded. Finally let's output the timer... :-) * Export data into constants for the template */ $data['tim2'] = strlen($data['time']); // Load template loadTemplate('mailid_timer', FALSE, $data); } // Call-back for 'frames' function doMailIdFrames ($data) { // Load template loadTemplate('mailid_frames', FALSE, $data); } // [EOF] ?>