View | Details | Raw Unified | Return to bug 41025
Collapse All | Expand All

(-)mod_autoindex.c (+9 lines)
Lines 119-124 Link Here
119
119
120
    char *default_icon;
120
    char *default_icon;
121
    char *style_sheet;
121
    char *style_sheet;
122
    char *head_insert;
122
    apr_int32_t opts;
123
    apr_int32_t opts;
123
    apr_int32_t incremented_opts;
124
    apr_int32_t incremented_opts;
124
    apr_int32_t decremented_opts;
125
    apr_int32_t decremented_opts;
Lines 165-170 Link Here
165
        ap_rvputs(r, "  <link rel=\"stylesheet\" href=\"", d->style_sheet,
166
        ap_rvputs(r, "  <link rel=\"stylesheet\" href=\"", d->style_sheet,
166
                "\" type=\"text/css\"", xhtml ? " />\n" : ">\n", NULL);
167
                "\" type=\"text/css\"", xhtml ? " />\n" : ">\n", NULL);
167
    }
168
    }
169
    if (d->head_insert != NULL) {
170
        ap_rputs(d->head_insert, r);
171
    }
168
    ap_rvputs(r, " </head>\n <body>\n", NULL);
172
    ap_rvputs(r, " </head>\n <body>\n", NULL);
169
}
173
}
170
174
Lines 577-582 Link Here
577
    AP_INIT_TAKE1("IndexStyleSheet", ap_set_string_slot,
581
    AP_INIT_TAKE1("IndexStyleSheet", ap_set_string_slot,
578
                  (void *)APR_OFFSETOF(autoindex_config_rec, style_sheet),
582
                  (void *)APR_OFFSETOF(autoindex_config_rec, style_sheet),
579
                  DIR_CMD_PERMS, "URL to style sheet"),
583
                  DIR_CMD_PERMS, "URL to style sheet"),
584
    AP_INIT_TAKE1("IndexHeadInsert", ap_set_string_slot,
585
                  (void *)APR_OFFSETOF(autoindex_config_rec, head_insert),
586
                  DIR_CMD_PERMS, "String to insert in HTML HEAD section"),
580
    {NULL}
587
    {NULL}
581
};
588
};
582
589
Lines 617-622 Link Here
617
                                          : base->default_icon;
624
                                          : base->default_icon;
618
    new->style_sheet = add->style_sheet ? add->style_sheet
625
    new->style_sheet = add->style_sheet ? add->style_sheet
619
                                          : base->style_sheet;
626
                                          : base->style_sheet;
627
    new->head_insert = add->head_insert ? add->head_insert
628
                                          : base->head_insert;
620
    new->icon_height = add->icon_height ? add->icon_height : base->icon_height;
629
    new->icon_height = add->icon_height ? add->icon_height : base->icon_height;
621
    new->icon_width = add->icon_width ? add->icon_width : base->icon_width;
630
    new->icon_width = add->icon_width ? add->icon_width : base->icon_width;
622
631

Return to bug 41025