23 lines
322 B
PHP
23 lines
322 B
PHP
<?php
|
|
/**
|
|
* Fociz Entrypoint
|
|
*/
|
|
|
|
require_once __DIR__ . '/includes/auth.php';
|
|
start_secure_session();
|
|
|
|
if (!has_admin_user()) {
|
|
header('Location: /auth/setup.php');
|
|
exit;
|
|
}
|
|
|
|
$user = get_logged_in_user();
|
|
if ($user) {
|
|
header('Location: /planner.php');
|
|
exit;
|
|
}
|
|
|
|
header('Location: /auth/login.php');
|
|
exit;
|
|
|