6 * Call this once a day with cron.
8 require_once __DIR__ . '/../src/init.php';
11 $subDb = new Subscriptions();
12 foreach ($subDb->getExpiring() as $sub) {
13 Log::info('Expires soon: ' . $sub['sub_topic']);
14 passthru('./subscribe.php ' . escapeshellarg($sub['sub_topic']));