Two-tab app: report viewer + analysis tab with AoE timeline, per-player mitigation icons (local XIVAPI PNGs), and fight-wide buff/debuff window tracking. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
22 lines
815 B
PHP
22 lines
815 B
PHP
<?php
|
|
require_once __DIR__ . '/config.php';
|
|
session_start_safe();
|
|
|
|
$authenticated = !empty($_SESSION['access_token'])
|
|
&& ($_SESSION['token_expires'] ?? 0) > time();
|
|
|
|
$tokenExpired = !empty($_SESSION['access_token'])
|
|
&& ($_SESSION['token_expires'] ?? 0) <= time();
|
|
|
|
$error = $_GET['error'] ?? null;
|
|
$errorMessages = [
|
|
'access_denied' => 'Access denied — you declined the FFLogs authorization.',
|
|
'token_failed' => 'Could not retrieve access token from FFLogs. Please try again.',
|
|
'missing_code' => 'Authorization code missing in callback.',
|
|
];
|
|
$errorText = $error ? ($errorMessages[$error] ?? 'Unknown error: ' . htmlspecialchars($error)) : null;
|
|
$tokenDebug = $_SESSION['token_debug'] ?? null;
|
|
unset($_SESSION['token_debug']);
|
|
|
|
require __DIR__ . '/templates/page.php';
|