<?php

/**
 * Nothing meaningful lives at the bare domain root — send the visitor
 * somewhere useful instead of a blank page or a 403 (no DirectoryIndex,
 * directory listing intentionally disabled in .htaccess).
 *
 * Once installed, this must NOT redirect to the admin login: the people who
 * reach the bare domain are almost always creators who mistyped or trimmed
 * their personal /claim/{token} link, not admins. Sending them to a login
 * form would invite them to try logging in. Show a generic welcome page
 * instead — admins already know the direct admin/login.php URL.
 */

if (!file_exists(__DIR__ . '/../config/config.php')) {
    header('Location: setup.php');
    exit;
}

require __DIR__ . '/welcome.php';
