* * 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 <http://www.gnu.org/licenses/>. */ require_once "agenda.php"; sinCabecera("Borrar usuario", MENU_VOLVER); print " <form action=\"borraUsuario2.php\" method=\"" . FORM_METHOD . "\">\n"; print " <h3 style='padding-left: 10px'>Escriba los datos del usuario que quiera borrar:</h3>\n"; ?> <div class="input-group input-group-lg"> <span class="input-group-addon" id="sizing-addon1">Usuario </span> <input type="text" name="usuario" class="form-control" placeholder="Usuario" aria-describedby="sizing-addon1"> </div> <div class="input-group input-group-lg"> <span class="input-group-addon" id="sizing-addon1">Password</span> <input type="password" name="password" class="form-control" placeholder="Password" aria-describedby="sizing-addon1"> </div> <div style="width: 100%; text-align: center; padding-top: 50px">
* @author Joan Piera Simó * @copyright 2016 Joan Piera Simó * @license http://www.gnu.org/licenses/agpl.txt AGPL 3 or later * @version 2016-02-05 * * 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 <http://www.gnu.org/licenses/>. */ require_once "agenda.php"; sinCabecera("Crear Agenda", MENU_VOLVER); print " <form action=\"creartodo2.php\" method=\"" . FORM_METHOD . "\">\n"; print " <div style=\"width: 100%; text-align: center; padding-top: 50px\"><h4>¿Está seguro?</h4></div>"; ?> <div style="width: 100%; text-align: center; padding-top: 10px"> <input type="submit" value="Sí" name="si" class="btn btn-primary" /> <input type="submit" value="No" name="no" class="btn btn-primary"/> </div> </form> <?php pie();
* 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 <http://www.gnu.org/licenses/>. */ require_once "agenda.php"; $db = conectaDb(); sinCabecera("Login", MENU_VOLVER); $usuario = recoger("usuario"); $password = recoger("password"); $usuarioOk = false; $passwordOk = false; $consulta = "SELECT * FROM {$dbTablaLogin}"; $result = $db->prepare($consulta); $result->execute(array(":usuario" => "%{$usuario}%", ":password" => "%{$password}%")); foreach ($result as $comprueba) { if ($comprueba[usuario] == $usuario) { $usuarioOk = true; if ($comprueba[password] == $password) { $passwordOk = true; } } }
* @copyright 2016 Joan Piera Simó * @license http://www.gnu.org/licenses/agpl.txt AGPL 3 or later * @version 2016-02-05 * * 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 <http://www.gnu.org/licenses/>. */ require_once "agenda.php"; sinCabecera("Borrar Base de Datos", MENU_VOLVER); print " <form action=\"borrartodo2.php\" method=\"" . FORM_METHOD . "\">\n"; print " <div style=\"width: 100%; text-align: center; padding-top: 50px\"><h4>¿Está seguro?</h4></div>"; ?> <div style="width: 100%; text-align: center; padding-top: 10px"> <input type="submit" value="Si" name="si" class="btn btn-primary" /> <input type="submit" value="No" name="no" class="btn btn-primary"/> </div> </form> <?php pie();
* * 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 <http://www.gnu.org/licenses/>. */ require_once "agenda.php"; sinCabecera("Registro nuevo usuario", MENU_VOLVER); print " <form action=\"registro2.php\" method=\"" . FORM_METHOD . "\">\n"; print " <h3 style='padding-left: 10px'>Escriba los datos del nuevo usuario:</h3>\n"; ?> <div class="input-group input-group-lg"> <span class="input-group-addon" id="sizing-addon1">Usuario </span> <input type="text" name="usuario" class="form-control" placeholder="Usuario" aria-describedby="sizing-addon1"> </div> <div class="input-group input-group-lg"> <span class="input-group-addon" id="sizing-addon1">Password</span> <input type="password" name="password" class="form-control" placeholder="Password" aria-describedby="sizing-addon1"> </div> <div class="input-group input-group-lg"> <span class="input-group-addon" id="sizing-addon1">Password</span> <input type="password" name="password2" class="form-control" placeholder="Repita el password" aria-describedby="sizing-addon1">