From 89bad90915c544b12aa23a3b2967e5ddf4aafc22 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Tue, 3 May 2005 20:25:54 +0000 Subject: [PATCH] Se hace que solo se pueda asociar si faltan admins. --- src/index.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/index.php b/src/index.php index fbc4805..a98f50b 100644 --- a/src/index.php +++ b/src/index.php @@ -8,6 +8,15 @@ // // $Id$ -include 'admin.login.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 -- 2.43.0