Delete panel_admin/manage_films directory

This commit is contained in:
Daniel Muñoz Garcia 2021-04-13 13:51:05 +02:00 committed by GitHub
parent 19168d2f8d
commit cbbf66d128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 28 deletions

View File

@ -1,16 +0,0 @@
<?php
include_once('./includes/film_dto.php');
include_once('./includes/film_dao.php');
$bd = new FilmDAO("complucine");
//siempre accedemos a traves de los nombres de los formularios o div
if(isset($_REQUEST['add_film'])) {
if(isset($_REQUEST['tittle'])) {
$film = new FilmDTO(null, $_REQUEST['tittle'], $_REQUEST['duration'], $_REQUEST['language'], $_REQUEST['description']);
$bd->addFilm($film);
}
}
header("Location: ../panel_admin/index.php?state=mf");
?>

View File

@ -1,12 +0,0 @@
<?php
include_once('./includes/film_dto.php');
include_once('./includes/film_dao.php');
$bd = new FilmDAO("complucine");
//siempre accedemos a traves de los nombres de los formularios o div
if(isset($_REQUEST['delete_film'])) {
$bd->deleteFilm($_REQUEST['id']);
}
header("Location: ../panel_admin/index.php?state=mf");
?>