9 lines
256 B
PHP
9 lines
256 B
PHP
<?php if (!user()): ?>
|
|
<h1>Welcome!</h1>
|
|
<a href="/auth/login" class="ui button primary">Login</a>
|
|
<a href="/auth/register" class="ui button secondary">Register</a>
|
|
<?php else: ?>
|
|
<h1>Home</h1>
|
|
<p>Welcome, <?= user()->username ?>!</p>
|
|
<?php endif; ?>
|