if (strcmp($admin_comments, '') === 0) { echo '<p>There are no admin comments on this user page.</p>'; } else { echo ' <div class="user_admin_comments_area">' . "\n"; echo ' <div class="user_admin_comments_header_text">admin comments</div>' . "\n"; echo ' <div class="user_admin_comments">' . $admin_comments . '</div>' . "\n"; echo ' </div>' . "\n"; } } } echo '</div>' . "\n"; // query result no longer needed mysql_free_result($result); // user needs to be logged in to see some links if ($viewerid > 0) { if ($site->use_xtml()) { echo '<br />' . "\n"; } else { echo '<br>' . "\n"; } echo '<a class="button" href="../PM/?add&userid=' . intval($profile) . '">Send private message to player</a>' . "\n"; $allow_invite_in_any_team = false; if (isset($_SESSION['allow_invite_in_any_team'])) { if ($_SESSION['allow_invite_in_any_team'] === true) { $allow_invite_in_any_team = true; } } // 0 is a reserved value and stands for no team $leader_of_team_with_id = 0; if (!$allow_invite_in_any_team) { $query = 'SELECT `id` FROM `teams` WHERE `leader_userid`=' . "'" . sqlSafeString($viewerid) . "'" . ' LIMIT 1';