<?php
require_once __DIR__ . '/includes/app.php';
require_login();

$_SESSION['last_activity'] = time();

header('Content-Type: application/json');
echo json_encode([
    'success' => true,
    'timestamp' => $_SESSION['last_activity'],
]);
