Update questSave.php (#396)

This commit is contained in:
miyunda
2026-10-18 07:19:16 +03:00
committed by GitHub
parent 3dbe9c71ec
commit 7f24c4ffdf
+7 -2
View File
@@ -9,9 +9,14 @@
## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
#################################################################################
require_once(__DIR__ . '/../../config.php');
require_once(__DIR__ . '/../csrf.php');
if (!isset($_SESSION)) session_start();
if ($_SESSION['access'] < ADMIN) {
if (session_status() !== PHP_SESSION_ACTIVE) {
session_start();
}
if (($_SESSION['access'] ?? 0) < ADMIN) {
admin_deny('You must be signed in as an administrator to do this. '
. 'Your session may have expired — please return to the admin panel and sign in again.');
}