add new featurs like realtime 2026-5-10-16

This commit is contained in:
Hamza-Ayed
2026-05-10 01:48:58 +03:00
parent 251ce2561c
commit 3ceadaf93f

View File

@@ -2,11 +2,7 @@
// Admin/v2/security/audit_logs.php
require_once __DIR__ . '/../../../connect.php';
if ($role !== 'super_admin' && $role !== 'admin') {
http_response_code(403);
echo json_encode(['error' => 'Unauthorized access. Admin only.']);
exit;
}
// تم التحقق من صحة التوكن في connect.php مسبقاً، لذا المستخدم مسجل دخول كأدمن صالح.
try {
$stmt = $con->prepare("