* @copyright 2009 Bartolomé Sintes Marco * @license http://www.gnu.org/licenses/agpl.txt AGPL 3 or later * @version 2009-05-21 * @link https://www.mclibre.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ include "biblioteca.php"; $db = conectaDb(); $consulta = $consultaExisteTabla; $result = $db->query($consulta); if (!$result) { cabecera("Primera conexión", "menu_principal"); print "

Error en la consulta.

\n"; print "\n"; } elseif ($result->fetchColumn() == 0) { cabecera("Primera conexión", "menu_principal"); print "

Aparentemente, la base de datos no existe. " . "Se creará a continuación.

"; print "\n"; if ($dbMotor == MYSQL) { borraTodoMySQL($db); } elseif ($dbMotor == SQLITE) { borraTodoSqlite($db); } } else { ini_set("session.save_handler", "files"); session_start(); if (isset($_SESSION["multiagendaUsuario"])) { cabecera("Inicio", $_SESSION["multiagendaUsuario"]); } else { cabecera("Identificación 1", "menu_principal"); $aviso = recogeParaConsulta($db, "aviso"); $aviso = quitaComillasExteriores($aviso); if ($aviso) { print "

$aviso

\n"; print "\n"; } print "
\n"; print "

Escriba su nombre de usuario y contraseña:

\n"; print "\n"; print " \n"; print " \n"; print " \n"; print " \n"; print " \n"; print " \n"; print " \n"; print " \n"; print " \n"; print "
Nombre:
Contraseña:
\n"; print "\n"; print "

\n"; print "\n"; print "

Nota: Si no está ya registrado, le registraré como nuevo usuario.

\n"; print "
\n"; print "\n"; } } pie();