anchor.diff:  <form method=POST action="add_comment.jsp">
     <input type="hidden" name="session" value="<%= HTMLFormatter.htmlSpecialChars(session.getId()) %>">
   <% if (!Template.isSessionAuthorized(session)) { %>
  -:
  +Имя:
   <input type=text name=nick value="<%= "anonymous" %>" size=40><br>
  -:
  +Пароль:
   <input type=password name=password size=40><br>
   <% } %>
   <input type=hidden name=topic value="<%= topicId %>">
  
positive.code: 
          int msgid = comment.saveNewMessage(db, request.getRemoteAddr(), request.getHeader("user-agent"));
  
          String logmessage = "  " + msgid + " ip:" + request.getRemoteAddr();
          if (request.getHeader("X-Forwarded-For") != null) {
            logmessage = logmessage + " XFF:" + request.getHeader(("X-Forwarded-For"));
          }
  
negative.code: 
        if (!Template.isSessionAuthorized(session)) {
          if (request.getParameter("nick") == null) {
            throw new BadInputException("Вы уже вышли из системы");
          }
          user = User.getUser(db, request.getParameter("nick"));
          user.checkPassword(request.getParameter("password"));
  