require($INC);
} elseif (!IS_MEMBER()) {
// User is not logged in
- LOAD_URL('modules.php?module=index');
+ redirectToUrl('modules.php?module=index');
}
// Add description as navigation point
$SW = 2;
// Check for users ref in this level
- foreach (GET_USER_REF_POINTS(getUserId(), $content['level']) as $refRow) {
+ foreach (getUserReferalPoints(getUserId(), $content['level']) as $refRow) {
// Add/"translate" more content
$refRow['sw'] = $SW;
- $refRow['points'] = TRANSLATE_COMMA($refRow['points']);
- $refRow['status'] = TRANSLATE_STATUS($refRow['status']);
- $refRow['unconfirmed'] = TRANSLATE_COMMA($refRow['unconfirmed']);
- $refRow['clickrate'] = TRANSLATE_COMMA($refRow['clickrate'], true, 1);
+ $refRow['points'] = translateComma($refRow['points']);
+ $refRow['status'] = translateUserStatus($refRow['status']);
+ $refRow['unconfirmed'] = translateComma($refRow['unconfirmed']);
+ $refRow['clickrate'] = translateComma($refRow['clickrate'], true, 1);
if (empty($refRow['nickname'])) $refRow['nickname'] = '---';
// Load row template
} // END - foreach
// Remember the content
- $content['counter'] = TRANSLATE_COMMA($counter);
- $content['percents'] = TRANSLATE_COMMA($content['percents'], true, 1);
+ $content['counter'] = translateComma($counter);
+ $content['percents'] = translateComma($content['percents'], true, 1);
$content['rows'] = $rows;
// Load level template