2011-04-04 15:16:10 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
include("seguridad.php");
|
|
|
|
|
include("functions.php");
|
2011-06-07 08:15:27 +00:00
|
|
|
include_once("Objects/Candidato.php");
|
2011-04-04 15:16:10 +00:00
|
|
|
|
|
|
|
|
$oid = stripinput($_GET["oid"]);
|
|
|
|
|
$curriculum = stripinput($_GET["curriculum"]);
|
|
|
|
|
$fecha = stripinput($_GET["fecha"]);
|
|
|
|
|
$tipo = stripinput($_GET["tipo"]);
|
|
|
|
|
|
|
|
|
|
if($tipo == "candidato"){
|
|
|
|
|
$c = new Candidato($_SESSION["usuario"], $oid);
|
|
|
|
|
$c->removeCurriculum($curriculum, $fecha);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if($tipo == "usuario"){
|
|
|
|
|
header("Location: usuarios.php?oid=$oid&e=$errores&a=$aciertos");
|
|
|
|
|
}else if($tipo == "candidato"){
|
|
|
|
|
header("Location: gestion_candidato.php?oid=$oid");
|
|
|
|
|
}
|
|
|
|
|
?>
|