|
|
@ -1,3 +1,11 @@ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ((${'mozilla-mcd{'status'} || 'disabled')eq 'enabled'){ |
|
|
|
|
|
|
|
my $access = ${'mozilla-mcd'}{'access'} || 'private'; |
|
|
|
|
|
|
|
$access = ($access eq 'public') ? "all":"$localAccess $externalSSLAccess"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$OUT .=<<"EOF"; |
|
|
|
|
|
|
|
|
|
|
|
Alias /thunderbird.cfg /usr/share/mozilla-mcd/thunderbird.php |
|
|
|
Alias /thunderbird.cfg /usr/share/mozilla-mcd/thunderbird.php |
|
|
|
|
|
|
|
|
|
|
|
<Directory /usr/share/mozilla-mcd/> |
|
|
|
<Directory /usr/share/mozilla-mcd/> |
|
|
@ -5,9 +13,15 @@ Alias /thunderbird.cfg /usr/share/mozilla-mcd/thunderbird.php |
|
|
|
php_admin_value open_basedir /usr/share/mozilla-mcd |
|
|
|
php_admin_value open_basedir /usr/share/mozilla-mcd |
|
|
|
Order deny,allow |
|
|
|
Order deny,allow |
|
|
|
Deny from all |
|
|
|
Deny from all |
|
|
|
Allow from {"$localAccess $externalSSLAccess";} |
|
|
|
Allow from $access |
|
|
|
<FilesMatch "\.conf\.php$"> |
|
|
|
<FilesMatch "\.conf\.php$"> |
|
|
|
order deny,allow |
|
|
|
order deny,allow |
|
|
|
Deny from all |
|
|
|
Deny from all |
|
|
|
</FilesMatch> |
|
|
|
</FilesMatch> |
|
|
|
</Directory> |
|
|
|
</Directory> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EOF |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else{ |
|
|
|
|
|
|
|
$OUT .= "# Mozilla MCD is disabled\n"; |
|
|
|
|
|
|
|
} |
|
|
|