made auto phpcbf changes; added some documentation

This commit is contained in:
2024-02-10 09:58:54 -06:00
parent e900175c4d
commit b37c414111
91 changed files with 30552 additions and 107 deletions

View File

@@ -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';