<?php

declare(strict_types=1);

require_once __DIR__ . '/core/bootstrap.php';

HyroCsrf::startSession();

hyro_log(
    'core',
    'HYRO ONE Core test executed successfully.'
);

?>
<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta
        name="viewport"
        content="width=device-width, initial-scale=1.0"
    >

    <meta
        name="robots"
        content="noindex, nofollow"
    >

    <title>HYRO ONE Core Test</title>

</head>

<body>

    <h1>HYRO ONE Core Ready</h1>

    <p>
        Bootstrap loaded successfully.
    </p>

    <p>
        CSRF token:
        <?= hyro_escape(
            substr(HyroCsrf::token(), 0, 12)
        ) ?>...
    </p>

    <p>
        Server time:
        <?= hyro_escape(date('Y-m-d H:i:s')) ?>
    </p>

</body>

</html>
