#!/usr/bin/env php > /var/log/portspoof_concentrator/purge.log 2>&1 */ if (PHP_SAPI !== 'cli') { http_response_code(403); exit; } require_once __DIR__ . '/../includes/functions.php'; $days = max(1, (int)get_setting('retention_days', '7')); $deleted = purge_old_connections(); echo sprintf("[%s] Purged %d connection(s) older than %d day(s).\n", date('Y-m-d H:i:s'), $deleted, $days);