anchor.diff:    db = LorDataSource.getConnection();
   
     String ip;
  +  int ua_id = 0;
   
     if (request.getParameter("msgid") != null) {
       Statement ipst = db.createStatement();
       int msgid = new ServletParameterParser(request).getInt("msgid");
   
  -    ResultSet rs = ipst.executeQuery("SELECT postip FROM topics WHERE id=" + msgid);
  +    ResultSet rs = ipst.executeQuery("SELECT postip, ua_id FROM topics WHERE id=" + msgid);
   
       if (!rs.next()) {
         rs.close();
  -      rs = ipst.executeQuery("SELECT postip FROM comments WHERE id=" + msgid);
  +      rs = ipst.executeQuery("SELECT postip, ua_id FROM comments WHERE id=" + msgid);
         if (!rs.next()) {
           throw new MessageNotFoundException(msgid);
         }
       }
   
       ip = rs.getString("postip");
  +    ua_id = rs.getInt("ua_id");
   
       if (ip == null) {
         throw new ScriptErrorException("No IP data for #" + msgid);
  
positive.code: 
  </table>
  </div>
  <%
    } finally {
      if (db!=null) {
  
negative.code:     }
    }
  %>
  
  <jsp:include page="/WEB-INF/jsp/footer.jsp"/>
  