1
0
Files
breadcrumb-the-shire/pages/index().php

12 lines
227 B
PHP
Raw Normal View History

2026-02-04 23:31:53 +01:00
<?php
use MintyPHP\Http\SessionStoreInterface;
2026-02-04 23:31:53 +01:00
use MintyPHP\Router;
$session = app(SessionStoreInterface::class)->all();
if (isset($session['user'])) {
2026-03-05 11:17:42 +01:00
Router::redirect('admin');
2026-02-04 23:31:53 +01:00
} else {
2026-03-05 11:17:42 +01:00
Router::redirect('login');
2026-02-04 23:31:53 +01:00
}