Author: poeml Date: 2009-03-09 17:43:26 -0600 (Mon, 09 Mar 2009) New Revision: 6774 Modified: trunk/tools/download-redirector-v2/mod_autoindex_mb/mod_autoindex_mb.c Log: mod_autoindex_mb: - rebase on httpd-2.2.11. Change since 2.2.8: directive IndexHeadInsert added ("String to insert in HTML HEAD section") Modified: trunk/tools/download-redirector-v2/mod_autoindex_mb/mod_autoindex_mb.c =================================================================== --- trunk/tools/download-redirector-v2/mod_autoindex_mb/mod_autoindex_mb.c 2009-03-09 22:57:21 UTC (rev 6773) +++ trunk/tools/download-redirector-v2/mod_autoindex_mb/mod_autoindex_mb.c 2009-03-09 23:43:26 UTC (rev 6774) @@ -131,6 +131,7 @@ char *default_icon; char *style_sheet; + char *head_insert; apr_int32_t opts; apr_int32_t incremented_opts; apr_int32_t decremented_opts; @@ -188,6 +189,9 @@ ap_rvputs(r, " <link rel=\"stylesheet\" href=\"", d->style_sheet, "\" type=\"text/css\"", xhtml ? " />\n" : ">\n", NULL); } + if (d->head_insert != NULL) { + ap_rputs(d->head_insert, r); + } ap_rvputs(r, " </head>\n <body>\n", NULL); } @@ -612,6 +616,9 @@ AP_INIT_TAKE1("IndexStyleSheet", ap_set_string_slot, (void *)APR_OFFSETOF(autoindex_config_rec, style_sheet), DIR_CMD_PERMS, "URL to style sheet"), + AP_INIT_TAKE1("IndexHeadInsert", ap_set_string_slot, + (void *)APR_OFFSETOF(autoindex_config_rec, head_insert), + DIR_CMD_PERMS, "String to insert in HTML HEAD section"), {NULL} }; @@ -652,6 +659,8 @@ : base->default_icon; new->style_sheet = add->style_sheet ? add->style_sheet : base->style_sheet; + new->head_insert = add->head_insert ? add->head_insert + : base->head_insert; new->icon_height = add->icon_height ? add->icon_height : base->icon_height; new->icon_width = add->icon_width ? add->icon_width : base->icon_width; _______________________________________________ Opensuse-svn mailing list Opensuse-svn_at_forge.novell.com http://forge.novell.com/mailman/listinfo/opensuse-svn _______________________________________________ mirrorbrain-commits mailing list Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/ Note: To remove yourself from this list, send a mail with the content unsubscribe to the address mirrorbrain-commits-request_at_mirrorbrain.orgReceived on 2009-03-09Z23:44:18
This archive was generated by hypermail 2.2.0 : 2009-07-10Z19:18:12 GMT