The following reply was made to PR general/1261; it has been noted by GNATS.

From: Brian Tiemann <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc:  Subject: Re: general/1261: Request/patch for SuppressColumnSorting in 
mod_autoindex
Date: Sun, 19 Oct 1997 15:06:05 -0700 (PDT)

 *** mod_autoindex.c.orig       Sun Oct 19 15:03:36 1997
 --- mod_autoindex.c    Sun Oct 19 13:40:03 1997
 ***************
 *** 87,92 ****
 --- 87,93 ----
   #define SUPPRESS_SIZE 16
   #define SUPPRESS_DESC 32
   #define SUPPRESS_PREAMBLE 64
 + #define SUPPRESS_COL_SORTING 128
   
   /*
    * Define keys for sorting.
 ***************
 *** 269,274 ****
 --- 270,277 ----
            opts |= SUPPRESS_DESC;
        else if (!strcasecmp(w, "SuppressHTMLPreamble"))
            opts |= SUPPRESS_PREAMBLE;
 +      else if (!strcasecmp(w, "SuppressColumnSorting"))
 +          opts |= SUPPRESS_COL_SORTING;
        else if (!strcasecmp(w, "None"))
            opts = 0;
        else if (!strncasecmp(w, "IconWidth", 9)) {
 ***************
 *** 784,801 ****
            }
            rputs("> ", r);
        }
 !      emit_link(r, "Name", K_NAME, keyid, direction);
        rputs("                   ", r);
        if (!(autoindex_opts & SUPPRESS_LAST_MOD)) {
 !          emit_link(r, "Last modified", K_LAST_MOD, keyid, direction);
            rputs("     ", r);
        }
        if (!(autoindex_opts & SUPPRESS_SIZE)) {
 !          emit_link(r, "Size", K_SIZE, keyid, direction);
            rputs("  ", r);
        }
        if (!(autoindex_opts & SUPPRESS_DESC)) {
 !          emit_link(r, "Description", K_DESC, keyid, direction);
        }
        rputs("\n<HR>\n", r);
       }
 --- 787,820 ----
            }
            rputs("> ", r);
        }
 !      if (!(autoindex_opts & SUPPRESS_COL_SORTING)) {
 !          emit_link(r, "Name", K_NAME, keyid, direction);
 !         } else {
 !             rvputs(r, "Name", NULL);
 !         }
        rputs("                   ", r);
        if (!(autoindex_opts & SUPPRESS_LAST_MOD)) {
 !          if (!(autoindex_opts & SUPPRESS_COL_SORTING)) {
 !                 emit_link(r, "Last modified", K_LAST_MOD, keyid, direction);
 !             } else {
 !                 rvputs(r, "Last modified", NULL);
 !             }
            rputs("     ", r);
        }
        if (!(autoindex_opts & SUPPRESS_SIZE)) {
 !          if (!(autoindex_opts & SUPPRESS_COL_SORTING)) {
 !              emit_link(r, "Size", K_SIZE, keyid, direction);
 !             } else {
 !                 rvputs(r, "Size", NULL);
 !             }
            rputs("  ", r);
        }
        if (!(autoindex_opts & SUPPRESS_DESC)) {
 !          if (!(autoindex_opts & SUPPRESS_COL_SORTING)) {
 !              emit_link(r, "Description", K_DESC, keyid, direction);
 !             } else {
 !                 rvputs(r, "Description", NULL);
 !             }
        }
        rputs("\n<HR>\n", r);
       }

Reply via email to