X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp1.git/blobdiff_plain/0a253cede072778391c1359f146ef56c60f40364..3bbf318b1618ff9ba0352ff789c1c6ba010cd72d:/src/index.php diff --git a/src/index.php b/src/index.php index fbc4805..9d47441 100644 --- a/src/index.php +++ b/src/index.php @@ -8,6 +8,16 @@ // // $Id$ -include 'admin.login.php'; +require_once 'lib/pagina.php'; +require_once 'lib/Usuario.php'; + +if (Usuario::checkAdmins()) // Están todos los admins +{ + include 'admin.login.php'; // Login +} +else // Faltan admins +{ + include 'admin.asociarse.php'; // Asociar admin +} ?> \ No newline at end of file