Primer subida completa

This commit is contained in:
nickpons666
2026-01-19 15:20:36 -06:00
commit 85894619d8
146 changed files with 3620 additions and 0 deletions

16
public/index.php Executable file
View File

@@ -0,0 +1,16 @@
<?php
require_once __DIR__ . '/../src/Auth.php';
$auth = new Auth();
if (!$auth->isLoggedIn()) {
header('Location: /login.php');
exit;
}
if ($auth->isAdmin()) {
header('Location: /admin/index.php');
} else {
header('Location: /ayudante.php');
}
exit;