- array(bigintval(REQUEST_GET('uid')), $t, bigintval(REQUEST_GET('d'))), __FILE__, __LINE__);
-
- // Entry found?
- if (SQL_NUMROWS($result) == 1) {
- // Load data
- $content = SQL_FETCHARRAY($result);
-
- // Prepare constants for the pre-template
- $content['gender'] = translateGender($content['gender']);
- $content['points'] = translateComma($content['points']);
- $content['mailid'] = bigintval(REQUEST_GET('d'));
- $content['rows'] = BONUS_MAKE_RANK_ROWS(bigintval(REQUEST_GET('d')), $t, bigintval(REQUEST_GET('uid')));
-
- // Constant created within previous function which contains informations for current user's ranking position:
- // __YOUR_RANKING_LINE
-
- // Load pre-template
- $content['msg'] = LOAD_TEMPLATE('show_bonus_msg', true, $content);
- } else {
- // No data found
- $content['msg'] = "<span class=\"guest_failed\">{--BONUS_SHOW_NO_DATA--}</span>";
- }
-
- // Free memory
- SQL_FREERESULT($result);
+ array(
+ bigintval(getRequestElement('userid')),
+ $t,
+ bigintval(getRequestElement('d'))
+ ), __FILE__, __LINE__);
+
+ // Entry found?
+ if (SQL_NUMROWS($result) == 1) {
+ // Load data
+ $content = SQL_FETCHARRAY($result);
+
+ // Prepare constants for the pre-template
+ $content['gender'] = translateGender($content['gender']);
+ $content['points'] = translateComma($content['points']);
+ $content['mailid'] = bigintval(getRequestElement('d'));
+ $content['rows'] = addBonusRanks(bigintval(getRequestElement('d')), $t, bigintval(getRequestElement('userid')));
+
+ // Get some prepared content
+ $content = merge_array($content, $GLOBALS['ranking_content']);
+
+ // Load pre-template
+ $content['message'] = loadTemplate('show_bonus_msg', true, $content);