Delete update_film.php

This commit is contained in:
Daniel Muñoz Garcia 2021-05-02 17:26:26 +02:00 committed by GitHub
parent 1efa3487c3
commit b74ea05d08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,22 +0,0 @@
<?php
include_once($prefix.'assets/php/common/film_dto.php');
include_once($prefix.'assets/php/common/formFilm.php');
if(isset($_POST['add_film'])) {
$film = new FormFilm();
$film->processesForm(null, $_POST['tittle'], $_POST['duration'], $_POST['language'], $_POST['description'], "new");
$_SESSION['message'] = $film->getReply();
}
else if(isset($_POST['confirm_delete_film'])) {
$film = new FormFilm();
$film->processesForm($_POST['id'],null,null,null,null,"del");
$_SESSION['message'] = $film->getReply();
}
else if(isset($_POST['confirm_edit_film'])) {
$film = new FormFilm();
$film->processesForm($_POST['id'], $_POST['tittle'], $_POST['duration'], $_POST['language'], $_POST['description'], "edit");
$_SESSION['message']= $film->getReply();
}
header('Location: ../panel_admin/index.php?state=mf');
?>