<?php
/**
 * Enforcement runner (safe stub)
 *
 * This project snapshot does not store subscriber IPs in the `subscribers` table,
 * so we cannot reliably map subscribers to Simple Queues yet.
 *
 * What this script does now:
 * 1) Ensures traffic tables exist (for future usage + reports)
 * 2) Runs counters sync (if subscribers have ip_address column and values)
 *
 * Later, when your admin version is merged (which includes ip_address and package expiry,
 * unpaid handling, etc.), this file can be upgraded to:
 * - Warn/Limit/Cut/Restore based on grace/warn/limit/cut days
 * - Apply Simple Queue max-limit + enable/disable
 */

require_once __DIR__ . '/../db.php';
require_once __DIR__ . '/ensure_traffic_tables.php';
require_once __DIR__ . '/sync_counters.php';

// sync_counters.php already prints JSON; keep enforce output simple
// If you prefer a plain text output for Task Scheduler, comment out the require above
// and call its logic directly.
