* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
-if (isGetRequestParameterSet('userid')) $userId = bigintval(getRequestParameter('userid'));
-if (isGetRequestParameterSet('mailid')) $mailId = bigintval(getRequestParameter('mailid'));
-if (isGetRequestParameterSet('bonusid')) $bonusId = bigintval(getRequestParameter('bonusid'));
-if (isGetRequestParameterSet('code')) $code = bigintval(getRequestParameter('code'));
-if (isGetRequestParameterSet('mode')) $mode = getRequestParameter('mode');
+if (isGetRequestParameterSet('userid')) $userId = bigintval(getRequestParameter('userid'));
+if (isGetRequestParameterSet('mailid')) $mailId = bigintval(getRequestParameter('mailid'));
+if (isGetRequestParameterSet('bonusid')) $bonusId = bigintval(getRequestParameter('bonusid'));
+if (isGetRequestParameterSet('code')) $code = bigintval(getRequestParameter('code'));
+if (isGetRequestParameterSet('mode')) $mode = getRequestParameter('mode');
- $img_code = generateRandomCode(getConfig('code_length'), $code, $userId, $urlId);
+ $img_code = generateRandomCode(getCodeLength(), $code, $userId, $urlId);
// Add points over referal system is the default
$template = 'mailid_points_done';
// Right code entered add points and remove entry
// Add points over referal system is the default
$template = 'mailid_points_done';
// Right code entered add points and remove entry
// Is an active-rallye running and this is not a notification mail?
if ((isBonusRallyeActive()) && ($notify != 'Y')) {
// Shall I exclude the webmaster's own userid from the active-rallye?
// Is an active-rallye running and this is not a notification mail?
if ((isBonusRallyeActive()) && ($notify != 'Y')) {
// Shall I exclude the webmaster's own userid from the active-rallye?
// Add points and remember ranking are done in this function....
addTurboBonus($urlId, $userId, $type);
// Set template to mailid_points_done2 which contains a link to the ranking list
$template = 'mailid_points_done2';
// Add points and remember ranking are done in this function....
addTurboBonus($urlId, $userId, $type);
// Set template to mailid_points_done2 which contains a link to the ranking list
$template = 'mailid_points_done2';
- if ($locked) $template = 'mailid_points_locked2';
+
+ // Different template if user has some mails to confirm
+ if (ifUserPointsLocked($userId)) {
+ $template = 'mailid_points_locked2';
+ } // END - if
+
+ // Assign more data for the template
$content['userid'] = $userId;
$content['type'] = $type;
$content['data'] = $urlId;
$content['userid'] = $userId;
$content['type'] = $type;
$content['data'] = $urlId;
$content['type'] = $type;
$content['data'] = $urlId;
$content['banner'] = loadTemplate('mailid_banner', true);
$content['type'] = $type;
$content['data'] = $urlId;
$content['banner'] = loadTemplate('mailid_banner', true);
// Generate Code
$content['image'] = generateCaptchaCode($code, $type, $urlId, $userId);
$templ = 'mailid_enter_code';
// Generate Code
$content['image'] = generateCaptchaCode($code, $type, $urlId, $userId);
$templ = 'mailid_enter_code';