<?php
require_once __DIR__.'/../includes/functions.php';
require_once __DIR__.'/../includes/v292_admin_portal_helpers.php';
$admin=require_admin(); mj292_ensure_schema();
$adminTitle='Cron Monitor'; $adminSubtitle='Monitor automated expiry, reminders, sitemap, cleanup and payment checks.';
$cronFiles=glob(__DIR__.'/../cron/*.php') ?: [];
include __DIR__.'/_header.php';
?>
<div class="alert alert-info">Add these cron URLs in hosting/cPanel as needed. This page only monitors files and links; it does not force-run heavy automation automatically.</div>
<div class="card mj-v292-card"><div class="table-responsive"><table class="table mb-0"><thead><tr><th>Cron File</th><th>Last Modified</th><th>Suggested Purpose</th></tr></thead><tbody><?php foreach($cronFiles as $f): ?><tr><td><code><?=e(basename($f))?></code></td><td><?=e(date('d M Y H:i',filemtime($f)))?></td><td><?=e(ucwords(str_replace(['-','.php'],[' ',''],basename($f))))?></td></tr><?php endforeach; if(!$cronFiles): ?><tr><td colspan="3" class="text-muted text-center p-4">No cron files found.</td></tr><?php endif; ?></tbody></table></div></div>
<?php include __DIR__.'/_footer.php'; ?>
