<?php
// Single entry point for shared setup. Include this at the top of every script.
if (session_status() === PHP_SESSION_NONE) {
  session_set_cookie_params(['httponly' => true, 'samesite' => 'Lax']);
  session_start();
}
error_reporting(E_ALL & ~E_DEPRECATED);
require __DIR__ . '/db.php';
require __DIR__ . '/helpers.php';
require __DIR__ . '/render.php';
