made auto phpcbf changes; added some documentation
This commit is contained in:
@@ -10,13 +10,13 @@ if (isset($_SESSION['user_id'])) {
|
||||
$error = $_SESSION['error'] ?? '';
|
||||
unset($_SESSION['error']); // Clear the error after displaying
|
||||
|
||||
$content = function() use ($error) { ?>
|
||||
$content = function () use ($error) { ?>
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-6">
|
||||
<h2 class="mt-5">Register</h2>
|
||||
<?php if ($error): ?>
|
||||
<?php if ($error) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?= htmlspecialchars($error) ?>
|
||||
<?php echo htmlspecialchars($error) ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<form action="/register" method="post">
|
||||
@@ -39,4 +39,4 @@ $content = function() use ($error) { ?>
|
||||
</div>
|
||||
<?php };
|
||||
|
||||
include __DIR__ . '/../layouts/app.php';
|
||||
require __DIR__ . '/../layouts/app.php';
|
||||
|
||||
Reference in New Issue
Block a user