PHP Push 2 integration on SME Server. Not maintained anymore
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
989 B

{
my $sogosync = $sogosync{'status'} || 'enabled';
my $access = $sogosync{'access'} || 'private';
my $allow = ($access eq 'public') ? 'all':"$localAccess $externalSSLAccess";
if ($sogosync eq 'enabled'){
$OUT .=<<"EOF";
Alias /Microsoft-Server-ActiveSync /usr/share/sogosync/index.php
<Directory /usr/share/sogosync/>
SSLRequireSSL on
AddType application/x-httpd-php .php .php3
AllowOverride None
php_admin_flag magic_quotes_gpc off
php_admin_flag register_globals off
php_admin_flag magic_quotes_runtime off
php_admin_flag short_open_tag on
php_admin_value open_basedir /usr/share/sogosync:/usr/share/awl/inc:/var/lib/sogosync:/var/log/sogosync
php_admin_value include_path /usr/share/sogosync:/usr/share/sogosync/include:/usr/share/awl/inc
Order deny,allow
Deny from all
Allow from $allow
</Directory>
<Directory /usr/share/sogosync/include>
Deny from all
</Directory>
EOF
}
else{
$OUT .= "# sogosync is disabled\n";
}
}