fix: visitors.json clés perdues, bouton AS inaccessible, graphique visiteurs

- Fix array_merge → + pour préserver clés 7/14/30 dans visitors.json
- Bouton ✕ exclusion AS sorti du div 9rem + stopPropagation
- Handler délégué unique (removeEventListener avant de rajouter)
- Graphique trend : visiteurs uniques/jour depuis ip_data (top 200)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-19 22:39:21 +02:00
parent dbbe60f28e
commit fce4ae6a79
4 changed files with 36 additions and 19 deletions
+1 -1
View File
@@ -2823,7 +2823,7 @@ switch ($action) {
if ($_artUuid !== null && preg_match('/^[0-9a-f\-]{36}$/i', $_artUuid)) {
@file_put_contents(
DATA_PATH . '/' . $_artUuid . '/visitors.json',
json_encode(array_merge($_artCounts, ['updated' => time()]), JSON_UNESCAPED_UNICODE)
json_encode($_artCounts + ['updated' => time()], JSON_UNESCAPED_UNICODE)
);
}
}