query('SELECT COUNT(*) FROM admin_audit_log')->fetchColumn(); $pdo->exec('DELETE FROM admin_audit_log'); audit_log($staff['id'], "Admin-Protokoll geleert ({$countBefore} Einträge entfernt)"); flash('success', 'Admin-Protokoll geleert.'); redirect('/staff/audit_log.php'); } $page = max(1, (int) ($_GET['p'] ?? 1)); $perPage = 50; $offset = ($page - 1) * $perPage; $total = (int) $pdo->query('SELECT COUNT(*) FROM admin_audit_log')->fetchColumn(); $stmt = $pdo->prepare( "SELECT al.*, s.name AS staff_name FROM admin_audit_log al LEFT JOIN staff s ON s.id = al.staff_id ORDER BY al.created_at DESC LIMIT ? OFFSET ?" ); $stmt->bindValue(1, $perPage, PDO::PARAM_INT); $stmt->bindValue(2, $offset, PDO::PARAM_INT); $stmt->execute(); $entries = $stmt->fetchAll(); $totalPages = max(1, (int) ceil($total / $perPage)); $pageTitle = 'Admin-Protokoll'; $activePage = 'audit_log'; require __DIR__ . '/_header.php'; ?>

Admin-Protokoll

Protokoll administrativer Änderungen (Mitarbeiter, Stammdaten, Einstellungen) – getrennt vom Aktivitätsprotokoll einzelner Tickets.

Noch keine Einträge.
ZeitpunktMitarbeiterAktion
1): ?>
Seite von 1): ?> · ← Neuer · Älter →