diff --git a/boost.admin.htaccess.inc b/boost.admin.htaccess.inc
index 0dd5422..4b9d772 100644
--- a/boost.admin.htaccess.inc
+++ b/boost.admin.htaccess.inc
@@ -37,6 +37,28 @@ function boost_admin_htaccess_settings() {
'#title' => t('Boost Apache .htaccess settings generation'),
'#description' => t('Explanation of .htaccess variables
Be sure to save the configuration and then go to the htaccess rules generation page and copy the rules.', array('!link' => url('http://www.askapache.com/htaccess/mod_rewrite-variables-cheatsheet.html'), '!rules' => url('admin/config/system/boost/htaccess/generator'))),
);
+ $display_configuration_notifications = FALSE;
+ $configuration_notifications = array() ;
+ if ( function_exists('apache_get_modules') && sizeof(apache_get_modules()) ) {
+ $configuration_notifications[] = '(Detection based on Apache with module support, not Apache+fastCGI)';
+ if ( array_search('mod_mime', apache_get_modules()) === FALSE ) {
+ $display_configuration_notifications = TRUE;
+ $configuration_notifications[] = t('mod_mime has not been loaded.');
+ }
+ if ( array_search('mod_headers', apache_get_modules()) === FALSE ) {
+ $display_configuration_notifications = TRUE;
+ $configuration_notifications[] = t('mod_headers has not been loaded.');
+ }
+ }
+ elseif ( !function_exists('apache_get_modules') ) {
+ $display_configuration_notifications = TRUE;
+ $configuration_notifications[] = 'Apache with module support not detected.';
+ $configuration_notifications[] = t('mod_mime has not been loaded.');
+ $configuration_notifications[] = t('mod_headers has not been loaded.');
+ }
+ if ( $display_configuration_notifications === TRUE ) {
+ $form['htaccess']['#description'] .= t('
Notice: ' . array_shift($configuration_notifications) . '
It appears:
' . join($configuration_notifications, '
') . '