From 04f9c8bf2a8ec482129948f27db45f77843cba4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20M=C3=A9ndez?= <45081533+FerMdez@users.noreply.github.com> Date: Mon, 3 May 2021 21:58:47 +0200 Subject: [PATCH] Add files via upload --- assets/css/main.css | 2 +- cinemas/index.php | 2 +- contacto/index.php | 2 +- fdicines/about_us/index.php | 2 +- fdicines/bocetos/index.php | 2 +- fdicines/detalles/index.php | 2 +- fdicines/miembros/index.php | 2 +- fdicines/planificacion/index.php | 2 +- fdicines/terms_conditions/index.php | 2 +- index.php | 2 +- login/index.php | 2 +- login/validate.php | 2 +- logout/index.php | 2 +- panel_admin/index.php | 2 +- panel_manager/index.php | 2 +- panel_user/index.php | 2 +- panel_user/panelUser.php | 11 +++++++---- register/includes/formRegister.php | 2 ++ register/register.php | 8 ++++---- showtimes/index.php | 2 +- 20 files changed, 30 insertions(+), 25 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index 720b5d9..d468ff4 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -61,7 +61,7 @@ button:hover, .button:hover { font-size: 18px; } .header img { - width: 11px; + width: 13px; } /* Header Menu */ .menu { diff --git a/cinemas/index.php b/cinemas/index.php index bbbd8f0..2ea3c4e 100644 --- a/cinemas/index.php +++ b/cinemas/index.php @@ -4,7 +4,7 @@ require_once('../assets/php/config.php'); ?> diff --git a/contacto/index.php b/contacto/index.php index adc2676..95b259c 100644 --- a/contacto/index.php +++ b/contacto/index.php @@ -4,7 +4,7 @@ require_once('../assets/php/config.php'); ?> diff --git a/fdicines/about_us/index.php b/fdicines/about_us/index.php index 7c72ca7..d2f27d9 100644 --- a/fdicines/about_us/index.php +++ b/fdicines/about_us/index.php @@ -4,7 +4,7 @@ require_once('../../assets/php/config.php'); ?> diff --git a/fdicines/bocetos/index.php b/fdicines/bocetos/index.php index c08b4b0..22f3476 100644 --- a/fdicines/bocetos/index.php +++ b/fdicines/bocetos/index.php @@ -4,7 +4,7 @@ require_once('../../assets/php/config.php'); ?> diff --git a/fdicines/detalles/index.php b/fdicines/detalles/index.php index 8c7782b..0312203 100644 --- a/fdicines/detalles/index.php +++ b/fdicines/detalles/index.php @@ -4,7 +4,7 @@ require_once('../../assets/php/config.php'); ?> diff --git a/fdicines/miembros/index.php b/fdicines/miembros/index.php index 595b1f1..e569a68 100644 --- a/fdicines/miembros/index.php +++ b/fdicines/miembros/index.php @@ -4,7 +4,7 @@ require_once('../../assets/php/config.php'); ?> diff --git a/fdicines/planificacion/index.php b/fdicines/planificacion/index.php index fa07189..c583bfb 100644 --- a/fdicines/planificacion/index.php +++ b/fdicines/planificacion/index.php @@ -4,7 +4,7 @@ require_once('../../assets/php/config.php'); ?> diff --git a/fdicines/terms_conditions/index.php b/fdicines/terms_conditions/index.php index 94ce066..3615d9a 100644 --- a/fdicines/terms_conditions/index.php +++ b/fdicines/terms_conditions/index.php @@ -7,7 +7,7 @@ $template = new Template(); ?> diff --git a/index.php b/index.php index bfd7b5c..e7e7ace 100644 --- a/index.php +++ b/index.php @@ -6,7 +6,7 @@ ?> diff --git a/login/index.php b/login/index.php index bfa1039..d497b55 100644 --- a/login/index.php +++ b/login/index.php @@ -20,7 +20,7 @@ $register = $view->getRegister(); ?> diff --git a/login/validate.php b/login/validate.php index bb2285e..2d56737 100644 --- a/login/validate.php +++ b/login/validate.php @@ -11,7 +11,7 @@ ?> diff --git a/logout/index.php b/logout/index.php index 81adb98..075f7eb 100644 --- a/logout/index.php +++ b/logout/index.php @@ -23,7 +23,7 @@ ?> diff --git a/panel_admin/index.php b/panel_admin/index.php index 27e4397..4f46309 100644 --- a/panel_admin/index.php +++ b/panel_admin/index.php @@ -16,7 +16,7 @@ ?> diff --git a/panel_manager/index.php b/panel_manager/index.php index eb84362..1b705cf 100644 --- a/panel_manager/index.php +++ b/panel_manager/index.php @@ -10,7 +10,7 @@ ?> diff --git a/panel_user/index.php b/panel_user/index.php index 8c53813..25acd87 100644 --- a/panel_user/index.php +++ b/panel_user/index.php @@ -40,7 +40,7 @@ } ?> diff --git a/panel_user/panelUser.php b/panel_user/panelUser.php index c80731b..09d11d7 100644 --- a/panel_user/panelUser.php +++ b/panel_user/panelUser.php @@ -14,10 +14,13 @@ $name = strtoupper($_SESSION['nombre']); $email = unserialize($_SESSION['user'])->getEmail(); return $reply = '
Usuario: '.$name.'
-Email: '.$email.'
-Usuario: '.$name.'
+Email: '.$email.'
+ '."\n"; } //Manage the user account. diff --git a/register/includes/formRegister.php b/register/includes/formRegister.php index 469905d..89798b3 100644 --- a/register/includes/formRegister.php +++ b/register/includes/formRegister.php @@ -80,6 +80,8 @@ class FormRegister extends Form { $bd->createUser("", $username, $email, $password, "user"); $this->user = $bd->selectUser($username, $password); if ($this->user) { + $this->user->setPass(null); + $_SESSION["user"] = serialize($this->user); $_SESSION["nombre"] = $this->user->getName(); $_SESSION["rol"] = $this->user->getRol(); $_SESSION["login"] = $register; diff --git a/register/register.php b/register/register.php index 786961d..18e553c 100644 --- a/register/register.php +++ b/register/register.php @@ -11,7 +11,7 @@ ?> @@ -26,9 +26,9 @@ ?> -