Compare commits

..
3 changed files with 16 additions and 3 deletions

No files matched your search

+1
View File
@@ -70,6 +70,7 @@ Example:
``` ```
LEAFLET_TILESERVER_URL=https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png LEAFLET_TILESERVER_URL=https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png
LEAFLET_TILESERVER_SUBDOMAINS=abc LEAFLET_TILESERVER_SUBDOMAINS=abc
LEAFLET_TILESERVER_ATTRIBUTION="&copy; <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors"
``` ```
### (Production only) Create cron job ### (Production only) Create cron job
+3 -1
View File
@@ -451,6 +451,7 @@ div.box {
} }
.circleControl .controlItem { .circleControl .controlItem {
position: relative;
height: 60px; height: 60px;
margin-top: 10px; margin-top: 10px;
opacity: 70%; opacity: 70%;
@@ -463,6 +464,8 @@ div.box {
.circleControl .controlItem div { .circleControl .controlItem div {
position: absolute; position: absolute;
width: 100%;
height: 100%;
} }
.circleControl .controlBackground { .circleControl .controlBackground {
@@ -477,7 +480,6 @@ div.box {
margin: auto; margin: auto;
margin-top: 50%; margin-top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
-ms-transform: translateY(-50%);
} }
@media screen and (max-width: 599px) { @media screen and (max-width: 599px) {
+12 -2
View File
@@ -74,13 +74,23 @@ if (isset($_COOKIE['COOKIES_CONSENT'])) {
session_set_save_handler(Container::$sessionHandler, true); session_set_save_handler(Container::$sessionHandler, true);
session_start([ session_start([
'gc_maxlifetime' => 604800,
'gc_probability' => 0, // old sessions are deleted by MaintainDatabaseCommand 'gc_probability' => 0, // old sessions are deleted by MaintainDatabaseCommand
'cookie_lifetime' => 604800, // TODO: cookie is not renewed so session can be lost 'cookie_lifetime' => 604800,
'cookie_path' => '/',
'cookie_httponly' => true, 'cookie_httponly' => true,
'cookie_samesite' => 'Lax' 'cookie_samesite' => 'Lax'
]); ]);
if (isset($_COOKIE[session_name()])) {
// extend session cookie lifetime is cookie already exists
setcookie(session_name(), session_id(), [
'expires' => time() + 604800,
'path' => '/',
'httponly' => true,
'samesite' => 'Lax'
]);
}
// this is needed to handle old type of session IDs // this is needed to handle old type of session IDs
if (!Container::$sessionHandler->validateId(session_id())) { if (!Container::$sessionHandler->validateId(session_id())) {
session_regenerate_id(true); session_regenerate_id(true);