From 015b2ffcf81432e636e0e3a7c8811c98bfe7faf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mu=C3=B1oz=20Garcia?= <73303506+danimu03@users.noreply.github.com> Date: Sun, 2 May 2021 17:57:23 +0200 Subject: [PATCH] Debug --- panel_admin/manage_cinemas.php | 2 +- panel_admin/panelAdmin.php | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/panel_admin/manage_cinemas.php b/panel_admin/manage_cinemas.php index 7eeba26..128beef 100644 --- a/panel_admin/manage_cinemas.php +++ b/panel_admin/manage_cinemas.php @@ -142,7 +142,7 @@ } function confirmAdd() { $cine = new FormCinema(); - $cine->processesForm($_POST['id'], $_POST['name'], $_POST['direction'], $_POST['phone'],"new"); + $cine->processesForm(null, $_POST['name'], $_POST['direction'], $_POST['phone'],"new"); $_SESSION['message'] = $cine->getReply(); header('Location: ../panel_admin/index.php?state=mc'); } diff --git a/panel_admin/panelAdmin.php b/panel_admin/panelAdmin.php index 2557fae..d1f7e94 100644 --- a/panel_admin/panelAdmin.php +++ b/panel_admin/panelAdmin.php @@ -20,15 +20,12 @@ } else if(isset($_POST['add_cinema'])) { confirmAdd(); - header('Location: ../panel_admin/index.php?state=mc'); } else if(isset($_POST['confirm_delete_cinema'])) { confirmDelete(); - header('Location: ../panel_admin/index.php?state=mc'); } else if(isset($_POST['confirm_edit_cinema'])) { confirmEdit(); - header('Location: ../panel_admin/index.php?state=mc'); } else { addCinema(); @@ -47,17 +44,14 @@ confirmAdd(); } else if(isset($_POST['confirm_delete_film'])) { - confirmDelete(); - header('Location: ../panel_admin/index.php?state=mf'); + confirmDelete(); } else if(isset($_POST['confirm_edit_film'])) { confirmEdit(); - header('Location: ../panel_admin/index.php?state=mf'); } else { addFilm(); $template->print_fimls(); - }; break; case 'md': /*require_once('manage_discounts.php')*/;echo"

En construcción

"; break;