feat: add project-level env configuration for collector

This commit is contained in:
Meghdad committed 2026-07-28 04:22:51 +03:30
1 parent f0c40c120d
commit a803f8c745
6 files changed
+249 -30

No files matched your search

+2 -1
View File
@@ -17,11 +17,12 @@ session_start();
sendSecurityHeaders();
$config = collectorConfig();
$method = strtoupper((string) ($_SERVER['REQUEST_METHOD'] ?? 'GET'));
$action = scalarRequestValue('action', 32) ?? '';
try {
$config = collectorConfig();
if ($method === 'GET' && $action === 'captcha') {
servePendingCaptcha();
}