|
|
@ -5,15 +5,13 @@ my $access = $phplist{'access'} || 'private'; |
|
|
|
my $auth = $phplist{'Authentication'} || 'http'; |
|
|
|
my $auth = $phplist{'Authentication'} || 'http'; |
|
|
|
my $alias = $phplist{'AliasOnPrimary'} || 'enabled'; |
|
|
|
my $alias = $phplist{'AliasOnPrimary'} || 'enabled'; |
|
|
|
my $ver = $sysconfig{'ReleaseVersion'} || '8.1'; |
|
|
|
my $ver = $sysconfig{'ReleaseVersion'} || '8.1'; |
|
|
|
my @users = split(/[;,]/, ($phplist{'AdminUsers'} || 'admin')); |
|
|
|
|
|
|
|
my $users = join(' ', @users); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
my $allow = ( $access eq 'public' ) ? 'all' : "$localAccess $externalSSLAccess"; |
|
|
|
my $allow = ( $access eq 'public' ) ? 'all' : "$localAccess $externalSSLAccess"; |
|
|
|
$alias = ($alias ne 'enabled') ? '' : 'Alias /lists /usr/share/phplist/www/'; |
|
|
|
$alias = ($alias ne 'enabled') ? '' : 'Alias /lists /usr/share/phplist/www/'; |
|
|
|
$auth = ( $auth eq 'http' ) ? 'AuthName "phplist"' . "\n" . |
|
|
|
$auth = ( $auth eq 'http' ) ? 'AuthName "phplist"' . "\n" . |
|
|
|
" AuthType Basic\n" . |
|
|
|
" AuthType Basic\n" . |
|
|
|
" AuthExternal pwauth\n" . (($ver =~ m/^9/) ? " AuthBasicProvider external\n":'') . |
|
|
|
" AuthExternal pwauth\n" . (($ver =~ m/^9/) ? " AuthBasicProvider external\n":'') . |
|
|
|
" require user $users\n" : ''; |
|
|
|
" require valid-user\n" : ''; |
|
|
|
|
|
|
|
|
|
|
|
if ($status eq 'enabled') { |
|
|
|
if ($status eq 'enabled') { |
|
|
|
$OUT .=<<"EOF"; |
|
|
|
$OUT .=<<"EOF"; |
|
|
|