Upload via GUI (278 Dateien)
This commit is contained in:
@@ -52,6 +52,7 @@ function staff_login(array $staff): void
|
||||
session_regenerate_id(true);
|
||||
$_SESSION['staff_id'] = $staff['id'];
|
||||
$_SESSION['staff_last_activity'] = time();
|
||||
staff_touch_activity(get_db(), (int) $staff['id']);
|
||||
}
|
||||
|
||||
function staff_logout(): void
|
||||
@@ -96,6 +97,8 @@ function require_staff_login(): array
|
||||
redirect('/staff/login.php');
|
||||
}
|
||||
$_SESSION['staff_last_activity'] = time();
|
||||
// Echte Seitenaufrufe zählen als Aktivität (Hintergrund-Abrufe per fetch nicht)
|
||||
if (staff_is_user_navigation()) staff_touch_activity(get_db(), (int) $staff['id']);
|
||||
|
||||
// "Eingebauter" Ersatz für echte Server-Cronjobs (siehe includes/pseudo_cron.php):
|
||||
// bei jeder authentifizierten Backend-Anfrage werden fällige Jobs im Hintergrund geprüft.
|
||||
|
||||
Reference in New Issue
Block a user