예제 #1
0
<?php

session_start();
require_once '../core/Jugador.class.php';
if (isset($_SESSION['admin'])) {
    $jugador = new Jugador('', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '');
    $jugador->setJugador($_GET['dni']);
    if ($jugador->removeJugador()) {
        header("Location: ../../../jugadores.php");
    } else {
        header("Location: ../../../jugadores.php");
    }
}