[mirrorbrain-commits] [opensuse-svn] r6774 - trunk/tools/download-redirector-v2/mod_autoindex_mb

From: Novell Forge SVN <noreply_at_novell.com>
Date: Mon, 9 Mar 2009 17:43:29 -0600 (MDT)
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)
_at_@ -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;
_at_@ -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);
 }
 
_at_@ -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}
 };
 
_at_@ -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.org
Received on Mon Mar 09 2009 - 23:44:18 GMT

This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT