X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp1.git/blobdiff_plain/1481a58e991e9ed54d6cba23e82184eaca48f9fe..89bad90915c544b12aa23a3b2967e5ddf4aafc22:/src/index.php?ds=inline diff --git a/src/index.php b/src/index.php index f030497..a98f50b 100644 --- a/src/index.php +++ b/src/index.php @@ -8,11 +8,15 @@ // // $Id$ -require_once 'lib/pagina.php'; -require_once 'lib/admin.forms.php'; +require_once 'lib/Usuario.php'; -pagina_cabecera('Ingreso'); -admin_form_login(); -pagina_pie('Leandro Lucarella', 'llucare@fi.uba.ar'); +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