static function typeIcon($type) { // This must take either a list as it comes from a SQL query, or a built-in $this->type['Admin'] style array if (is_array($type)) { $types = array(); foreach ($type as $n => $v) { if ($v) { $types[] = $n; } } $type = implode(',', $types); } $buf = ''; if (strstr($type, 'Moderator')) { $buf .= ' <img src="' . l_s('images/icons/mod.png') . '" alt="' . l_t('Mod') . '" title="' . l_t('Moderator/Admin') . '" />'; } elseif (strstr($type, 'Banned')) { $buf .= ' <img src="' . l_s('images/icons/cross.png') . '" alt="X" title="' . l_t('Banned') . '" />'; } if (strstr($type, 'DonatorPlatinum')) { $buf .= libHTML::platinum(); } elseif (strstr($type, 'DonatorGold')) { $buf .= libHTML::gold(); } elseif (strstr($type, 'DonatorSilver')) { $buf .= libHTML::silver(); } elseif (strstr($type, 'DonatorBronze')) { $buf .= libHTML::bronze(); } return $buf; }
libHTML::footer(); } print '<div><div class="rightHalf"> '; $rankingDetails = $UserProfile->rankingDetails(); $showAnon = $UserProfile->id == $User->id || $User->type['Moderator']; print '<ul class="formlist">'; print '<li><strong>' . l_t('Rank:') . '</strong> ' . $rankingDetails['rank'] . '</li>'; if ($rankingDetails['position'] < $rankingDetails['rankingPlayers']) { print '<li><strong>' . l_t('Position:') . '</strong> ' . $rankingDetails['position'] . ' / ' . $rankingDetails['rankingPlayers'] . ' ' . l_t('(top %s%%)', $rankingDetails['percentile']) . '</li>'; } print '<li><strong>' . l_t('Available points:') . '</strong> ' . $UserProfile->points . ' ' . libHTML::points() . '</li>'; print '<li><strong>' . l_t('Points in play:') . '</strong> ' . ($rankingDetails['worth'] - $UserProfile->points - ($showAnon ? 0 : $rankingDetails['anon']['points'])) . ' ' . libHTML::points() . '</li>'; print '<li><strong>' . l_t('Total points:') . '</strong> ' . $rankingDetails['worth'] . ' ' . libHTML::points() . '</li>'; if ($UserProfile->type['DonatorPlatinum']) { $donatorMarker = libHTML::platinum() . ' - <strong>' . l_t('Platinum') . '</strong>'; } elseif ($UserProfile->type['DonatorGold']) { $donatorMarker = libHTML::gold() . ' - <strong>' . l_t('Gold') . '</strong>'; } elseif ($UserProfile->type['DonatorSilver']) { $donatorMarker = libHTML::silver() . ' - ' . l_t('Silver'); } elseif ($UserProfile->type['DonatorBronze']) { $donatorMarker = libHTML::bronze() . ' - ' . l_t('Bronze'); } else { $donatorMarker = false; } if ($donatorMarker) { print '<li> </li><li><strong>' . l_t('Donator:') . '</strong> ' . $donatorMarker . '</li>'; } print '<li> </li>'; list($posts) = $DB->sql_row("SELECT SUM(gameMessagesSent) FROM wD_Members m\r\n\tWHERE m.userID = " . $UserProfile->id); if (is_null($posts)) {