anchor.diff:        out.println("<input type=\"text\" id=\"tags\" name=\"tags\" size=40 value=\"" + message.getTags().toString() + "\"><br>");
   %>
      : <%= Tags.getEditTags(Tags.getTopTags(db)) %> <br>
  -  <%
  +  <% }
  +      if (message.getSectionId() == 1 || message.getSectionId() == 3) {
         out.println("  : ");
  -      rq = st.executeQuery("SELECT id, title FROM groups WHERE section=1 ORDER BY id");
  +      rq = st.executeQuery("SELECT id, title FROM groups WHERE section=" + message.getSectionId() + " ORDER BY id");
         out.println("<select name=\"chgrp\">");
         out.println("<option value=" + groupid + '>' + message.getGroupTitle() + " ( )</option>");
         while (rq.next()) {
  
positive.code:       user.checkCommit();
  
        if (request.getParameter("chgrp") != null) {
          int chgrp = new ServletParameterParser(request).getInt("chgrp");
  
          Statement st = db.createStatement();
          ResultSet rs = st.executeQuery("select groupid, section, groups.title FROM topics, groups WHERE topics.id=" + msgid + " and groups.id=topics.groupid");
  
negative.code:         }
  
          int oldgrp = rs.getInt("groupid");
          if (oldgrp != changeGroupId) {
            Group changeGroup = new Group(db, changeGroupId);
  
            String oldtitle = rs.getString("title");
            int section = rs.getInt("section");
            if (section != 1 && section != 3) {
              throw new AccessViolationException("Can't move topics in non-news section");
            }
  
            rs.close();
            if (changeGroup.getSectionId() != section) {
              throw new AccessViolationException("Can't move topics between sections");
            }
            String newtitle = changeGroup.getTitle();
            st.executeUpdate("UPDATE topics SET groupid=" + changeGroupId + " WHERE id=" + msgid);
            /* to recalc counters */
            st.executeUpdate("UPDATE groups SET stat4=stat4+1 WHERE id=" + oldgrp + " or id=" + changeGroupId);
            out.println("<br>   '" + oldtitle + "'  '" + newtitle + "'<br>");
          }
  
          st.close();
        }
  
  