private function muteIcon() { global $User; $buf = ''; if ($User->type['User'] && $this->userID != $User->id) { $isMuted = $User->isCountryMuted($this->gameID, $this->countryID); if (isset($_REQUEST['toggleMute']) && $_REQUEST['toggleMute'] == $this->countryID) { $this->muteMember(); $isMuted = !$isMuted; } $toggleMuteURL = 'board.php?gameID=' . $this->gameID . '&toggleMute=' . $this->countryID . '&rand=' . rand(1, 99999) . '#chatboxanchor'; $buf .= '<br />' . ($isMuted ? libHTML::muted($toggleMuteURL) : libHTML::unmuted($toggleMuteURL)); } return $buf; }
if ($rankingDetails['takenOver']) { print '<li>' . l_t('Left and taken over: <strong>%s</strong>', $rankingDetails['takenOver']) . '(<a href="profile.php?detail=civilDisorders&userID=' . $UserProfile->id . '">' . l_t('View details') . '</a>)</li>'; } print '</ul></li>'; } print '</ul></div>'; print "<h2>" . $UserProfile->username; if ($User->type['User'] && $UserProfile->type['User'] && !($User->id == $UserProfile->id || $UserProfile->type['Moderator'] || $UserProfile->type['Guest'] || $UserProfile->type['Admin'])) { $userMuted = $User->isUserMuted($UserProfile->id); print '<a name="mute"></a>'; if (isset($_REQUEST['toggleMute'])) { $User->toggleUserMute($UserProfile->id); $userMuted = !$userMuted; } $muteURL = 'profile.php?userID=' . $UserProfile->id . '&toggleMute=on&rand=' . rand(0, 99999) . '#mute'; print ' ' . ($userMuted ? libHTML::muted($muteURL) : libHTML::unmuted($muteURL)); } print '</h2>'; // Regular user info starts here: print '<div class="leftHalf" style="width:50%">'; if ($UserProfile->type['Banned']) { print '<p><strong>' . l_t('Banned') . '</strong></p>'; } if ($UserProfile->comment) { print '<p class="profileComment">"' . $UserProfile->comment . '"</p>'; } print '<p><ul class="formlist">'; if ($UserProfile->type['Moderator'] || $UserProfile->type['ForumModerator'] || $UserProfile->type['Admin']) { print '<li><strong>' . l_t('Mod/Admin team') . '</strong></li>'; print '<li> </li>'; }