{
    #--------------------------------------------------------------
    # Dependancy check, only execute horde configuration if PHP is
    # enabled.
    #--------------------------------------------------------------

    my $PHPStatus = $php{"status"};
    my $status = $horde{'status'};

    if (!defined $PHPStatus or $PHPStatus ne 'enabled')
    {
        $OUT .= "# Error: horde is enabled but PHP is not enabled.";
    }
    elsif (defined $status && $status eq 'enabled')
    {
        $OUT .= <<'EOF';
# Horde specific configuration files.

<Directory /home/httpd/html/horde>
    <FilesMatch "test.php$">
        Order Deny,Allow
        Deny from all
    </FilesMatch>
    Options Indexes Includes FollowSymLinks
    AllowOverride None
    order allow,deny
    allow from all
    AddType application/x-httpd-php .php .php3
    php_value include_path  '.:/usr/share/pear'
    #    php_value auto_prepend_file /home/httpd/horde-phplib/prepend.php3
    php_flag  magic_quotes_gpc  off
    php_flag  track_vars    on
</Directory>

<Directory /home/httpd/html/horde/config>
    order deny,allow
    deny from all
</Directory>

<Directory /home/httpd/html/horde/lib>
    order deny,allow
    deny from all
</Directory>

<Directory /home/httpd/html/horde/locale>
    order deny,allow
    deny from all
</Directory>

<Directory /home/httpd/html/horde/templates>
    order deny,allow
    deny from all
</Directory>

<Directory /home/httpd/html/horde/admin>
    order deny,allow
    deny from all
</Directory>

EOF
    }
    else
    {
        $OUT .= "# horde not configured as it is disabled in the config db";
    }
}
