Added option in installer and htaccess rule

This commit is contained in:
Matteo Gheza 2021-01-03 00:39:03 +01:00
parent 15b13949a8
commit c2057e5c6e
2 changed files with 7 additions and 1 deletions

View File

@ -36,6 +36,11 @@
Deny from all
</FilesMatch>
<FilesMatch "^\.ht">
Order Allow,Deny
Deny from all
</FilesMatch>
<IfModule mod_headers.c>
<FilesMatch "\.(js|css|woff|woff2|ttf|eot)$">
Header set Cache-Control "max-age=2592000, public"

View File

@ -489,7 +489,8 @@ function initOptions($name, $visible, $developer, $password, $report_email, $own
'training_edit' => 1,
'training_remove' => 1,
'use_location_picker' => 1,
'force_language' => 0
'force_language' => 0,
'force_remember_cookie' => 0
];
$query = "";
foreach ($options as $key => $value) {