Public feed
#602992
{
#--------------------------------------------------------------
# Dependancy check, only execute webftp configuration if PHP is
# enabled.
#--------------------------------------------------------------
my $PHPStatus = $php{"status"};
my $status = $ftp{'status'};
my $webftpstatus = $webftp{'status'};
if (!defined $PHPStatus or $PHPStatus ne 'enabled' or $webftpstatus ne 'enabled')
{
$OUT .= "# No webftp: ftp is enabled but PHP is not enabled.";
}
elsif (defined $status && $status eq 'enabled')
{
my $allow = "all";
if ($ftp{access} eq 'private') {
$allow = $localAccess
}
$OUT .= qq(
# WebFtp specific configuration files.
<Directory /home/httpd/html/webftp>
Options Includes
AllowOverride None
order allow,deny
allow from $allow
AddType application/x-httpd-php .php .php3
php_value include_path '.:/usr/share/pear'
php_flag magic_quotes_gpc off
php_flag track_vars on
</Directory>
);
}
else
{
$OUT .= "# WebFtp not configured as ftp is disabled in the config db";
}
}