2012-10-09 18:22:17 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
my $status = $phpmyadmin{'status'} || 'disabled';
|
|
|
|
|
|
|
|
if ($status eq 'enabled'){
|
|
|
|
|
|
|
|
my $access = (($phpmyadmin{'access'} || 'private') eq 'public') ? 'all':"$localAccess $externalSSLAccess";
|
|
|
|
|
|
|
|
$OUT .=<<"END";
|
|
|
|
|
|
|
|
<Directory /usr/share/phpMyAdmin>
|
|
|
|
SSLRequireSSL
|
|
|
|
Options -Indexes
|
|
|
|
AllowOverride None
|
|
|
|
order deny,allow
|
|
|
|
deny from all
|
|
|
|
allow from $access
|
|
|
|
AddType application/x-httpd-php .php .php3
|
|
|
|
php_admin_value openbase_dir /usr/share/phpMyAdmin:/etc/phpMyAdmin:/var/lib/phpMyAdmin
|
2012-10-17 10:08:05 +02:00
|
|
|
php_admin_value session.save_path /var/lib/phpMyAdmin/tmp
|
2013-06-12 11:12:54 +02:00
|
|
|
php_admin_value post_max_size 100M
|
|
|
|
php_admin_value upload_max_filesize 100M
|
2013-06-13 10:27:17 +02:00
|
|
|
php_admin_value memory_limit 500M
|
2014-08-08 18:14:39 +02:00
|
|
|
php_admin_flag session.use_trans_sid 0
|
2012-10-09 18:22:17 +02:00
|
|
|
</Directory>
|
|
|
|
|
2012-10-10 15:05:24 +02:00
|
|
|
<Directory /usr/share/phpMyAdmin/setup/>
|
|
|
|
Order Deny,Allow
|
|
|
|
Deny from All
|
|
|
|
Allow from None
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<Directory /usr/share/phpMyAdmin/libraries/>
|
|
|
|
Order Deny,Allow
|
|
|
|
Deny from All
|
|
|
|
Allow from None
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<Directory /usr/share/phpMyAdmin/setup/lib/>
|
|
|
|
Order Deny,Allow
|
|
|
|
Deny from All
|
|
|
|
Allow from None
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<Directory /usr/share/phpMyAdmin/setup/frames/>
|
|
|
|
Order Deny,Allow
|
|
|
|
Deny from All
|
|
|
|
Allow from None
|
|
|
|
</Directory>
|
|
|
|
|
2012-10-09 18:22:17 +02:00
|
|
|
END
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$OUT .= "# phpmyadmin is disabled";
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|