require_once l_r('board/info/orders.php'); break; case 'Messages': require_once l_r('board/info/messages.php'); break; case 'Graph': require_once l_r('board/info/graph.php'); break; case 'Maps': require_once l_r('board/info/maps.php'); break; case 'Reports': require_once l_r('lib/modnotes.php'); libModNotes::checkDeleteNote(); libModNotes::checkInsertNote(); print libModNotes::reportBoxHTML('Game', $Game->id); print libModNotes::reportsDisplay('Game', $Game->id); break; default: libHTML::error(l_t("Invalid info parameter given.")); } print '</div>'; libHTML::footer(); } if (!$Game->Members->isJoined() && $Game->watched() && isset($_REQUEST['unwatch'])) { print '<div class="content-notice gameTimeRemaining">' . '<form method="post" action="redirect.php">' . 'Are you sure you wish to remove this game from your spectated games list? ' . '<input type="hidden" name="gameID" value="' . $Game->id . '">' . '<input type="submit" class="form-submit" name="unwatch" value="Confirm"> </form></div>'; } // Before HTML pre-generate everything and check input, so game summary header will be accurate if (isset($Member) && $Member->status == 'Playing' && $Game->phase != 'Finished') { if ($Game->phase != 'Pre-game') {
</li>'; } } else { print l_t('No NMRs found for this profile.'); } print '</ul>'; } else { print l_t('You do not have permission to view this page.'); } break; case 'reports': if ($User->type['Moderator']) { require_once l_r('lib/modnotes.php'); libModNotes::checkDeleteNote(); libModNotes::checkInsertNote(); print libModNotes::reportBoxHTML('User', $UserProfile->id); print libModNotes::reportsDisplay('User', $UserProfile->id); } break; } print '</div>'; 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>';