- $OUT = "";$SW = 2; $cnt = 1; $total = 0;
- while(list($uid, $email, $gender, $sname, $fname, $turbo, $last) = SQL_FETCHROW($result))
- {
- // Generate array fore the dynamic template
- $WIN1 = ""; $WIN2 = "";
- if ($cnt <= $_CONFIG['beg_ranks'])
- {
- // Maybe he can win his active beg?
- $WIN1 = "<STRONG>";
- $WIN2 = "</STRONG>";
- }
- $content = array(
- 'uid' => $uid,
- 'email' => CREATE_EMAIL_LINK($email, "user_data"),
- 'gender' => TRANSLATE_GENDER($gender),
- 'sname' => $sname,
- 'fname' => $fname,
- 'turbo' => TRANSLATE_COMMA($turbo),
- 'last' => MAKE_DATETIME($last, "2"),
- 'sw' => $SW,
- 'win1' => $WIN1,
- 'win2' => $WIN2,
- 'cnt' => $cnt,
+ $OUT = ''; $count = 1; $total = '0';
+ while ($content = SQL_FETCHARRAY($result)) {
+ // Init variables
+ $WIN1 = ''; $WIN2 = '';
+
+ // Maybe he can win his active beg?
+ if ($count <= getBegRanks()) {
+ // Mark him
+ $WIN1 = '<strong>';
+ $WIN2 = '</strong>';
+ } // END - if
+
+ // Prepare content
+ $row = array(
+ 'userid' => $content['userid'],
+ 'email' => generateEmailLink($content['email'], 'user_data'),
+ 'last_online' => generateDateTime($content['last_online'], '2'),
+ 'win1' => $WIN1,
+ 'win2' => $WIN2,
+ 'count' => $count,