From 113c737d6aae7da9ccbb7c28b1cf84076111e75d Mon Sep 17 00:00:00 2001 From: Tomasz Wolniewicz Date: Wed, 3 Jul 2024 11:13:46 +0200 Subject: [PATCH] final touches --- core/CAT.php | 6 ++++-- schema/2_1_1-2_1_2.sql | 4 ++-- web/admin/overview_federation.php | 7 +++++++ 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/core/CAT.php b/core/CAT.php index af683e3b1..8d08bbe6f 100644 --- a/core/CAT.php +++ b/core/CAT.php @@ -53,7 +53,7 @@ class CAT extends \core\common\Entity */ public const VERSION_MAJOR = 2; public const VERSION_MINOR = 1; - public const VERSION_PATCH = 1; + public const VERSION_PATCH = 2; public const VERSION_EXTRA = ""; private const RELEASE_VERSION = FALSE; private const USER_API_VERSION = 2; @@ -619,7 +619,9 @@ public static function getRootUrlPath() */ public static function sessionStart() { + $loggerInstance = new \core\common\Logging(); if (session_status() != PHP_SESSION_ACTIVE) { + $loggerInstance->debug(4, "Session start\n"); session_name("CAT"); session_set_cookie_params([ 'lifetime' => 0, @@ -628,7 +630,7 @@ public static function sessionStart() 'secure' => (isset($_SERVER['HTTPS']) ? TRUE : FALSE), 'httponly' => false, 'samesite' => 'strict' - ]); + ]); session_start(); } } diff --git a/schema/2_1_1-2_1_2.sql b/schema/2_1_1-2_1_2.sql index c2ea434e1..efbd9db0c 100644 --- a/schema/2_1_1-2_1_2.sql +++ b/schema/2_1_1-2_1_2.sql @@ -20,8 +20,8 @@ */ /** - * Author: twoln - * Created: 16 Mau 2024 + * @author Tomasz Wolniewicz + * Created: 16 May 2024 */ diff --git a/web/admin/overview_federation.php b/web/admin/overview_federation.php index b5be9d7a0..6d8aa6426 100644 --- a/web/admin/overview_federation.php +++ b/web/admin/overview_federation.php @@ -19,6 +19,13 @@ * /copyright.php after deploying the software */ +/** + * This page displays the dashboard overview of a Federation. + * + * @author Stefan Winter + * @author Tomasz Wolniewicz + */ + require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php"; $deco = new \web\lib\admin\PageDecoration();