$msg = LOAD_EMAIL_TEMPLATE("confirm-member", array('points' => getConfig('points_register')), bigintval($uid));
// And send him right away the confirmation mail
- SEND_EMAIL($email, getMessage('GUEST_THANX_CONFIRM'), $msg);
+ sendEmail($email, getMessage('GUEST_THANX_CONFIRM'), $msg);
// Maybe he got "referaled"?
if (($rid > 0) && ($rid != $uid)) {
array(bigintval($rid)), __FILE__, __LINE__);
if (SQL_NUMROWS($result) == 1) {
// Update ref counter...
- UPDATE_REF_COUNTER($rid);
+ updateReferalCounter($rid);
// Ok, write the ref-points to this user and his parent-ref
unset($GLOBALS['ref_level']);
// Shall I "pay" the referal points imidiately?
- if (getConfig('ref_payout') == "0") {
+ if (getConfig('ref_payout') == '0') {
// Yes, "pay" it now
$locked = false;
} else {
// Account confirmed!
if (defined('LEAD_CODE_ENABLED') && defined('LEAD_EXPIRY_TIME')) {
// Set special lead cookie
- set_session('lead_uid', bigintval($uid));
+ setSession('lead_uid', bigintval($uid));
// Lead-Code mode enabled
- LOAD_URL("lead-confirm.php");
+ redirectToUrl("lead-confirm.php");
} else {
define('__CONFIRM_MSG', getMessage('GUEST_CONFIRMED_DONE'));
define('__UID', bigintval($uid));
}
} elseif (defined('LEAD_CODE_ENABLED') && defined('LEAD_EXPIRY_TIME')) {
// Set special lead cookie
- set_session('lead_uid', bigintval($uid));
+ setSession('lead_uid', bigintval($uid));
// Lead-Code mode enabled
- LOAD_URL("lead-confirm.php");
+ redirectToUrl("lead-confirm.php");
} else {
// Nobody was found unter this hash key... or our new member want's to confirm twice?
define('__CONFIRM_MSG', getMessage('GUEST_CONFIRMED_TWICE'));
- define('__UID', "0");
+ define('__UID', '0');
LOAD_TEMPLATE("guest_confirm_table");
}
} else {
// Nobody was found unter this hash key... or our new member want's to confirm twice?
define('__CONFIRM_MSG', getMessage('GUEST_CONFIRMED_TWICE'));
- define('__UID', "0");
+ define('__UID', '0');
LOAD_TEMPLATE("guest_confirm_table");
}
} elseif ((IS_FORM_SENT()) && (REQUEST_ISSET_POST(('email')))) {
{
case "UNCONFIRMED": // Account not confirmed
$msg = LOAD_EMAIL_TEMPLATE("guest_request_confirm", array('hash' => $DATA[2]), $DATA[0]);
- SEND_EMAIL(REQUEST_POST('email'), getMessage('REQUEST_CONFIRM_LINK_SUBJ'), $msg);
+ sendEmail(REQUEST_POST('email'), getMessage('REQUEST_CONFIRM_LINK_SUBJ'), $msg);
$content = getMessage('CONFIRM_LINK_SENT');
break;
- case "CONFIRMED": // Account already confirmed
+ case 'CONFIRMED': // Account already confirmed
$content = getMessage('LOGIN_ID_CONFIRMED');
break;