git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_Intranet/trunk/src@1 e2b1556b-49f8-d141-9351-52d6861a72d9
35 lines
746 B
PHP
35 lines
746 B
PHP
<?php
|
|
|
|
include("seguridad.php");
|
|
include("functions.php");
|
|
if (!comprobar_permisos("AS")){
|
|
header("Location: aplicacion.php?e=permiso");
|
|
exit;
|
|
}
|
|
//Tenemos que comprobar qué campos se han modificado
|
|
|
|
$oid = stripinput($_POST["oid"]);
|
|
$rol = $_GET["rol"];
|
|
$periodicidad = $_GET["periodicidad"];
|
|
|
|
$errores = "";
|
|
|
|
if($link = conectar()){
|
|
$consulta = "delete from alarmas where id='$oid'";
|
|
$resultado = mysql_query($consulta, $link);
|
|
if(!$resultado){
|
|
$errores .= $locale['324'];
|
|
}else{
|
|
$aciertos .= $locale['325'];
|
|
}
|
|
}else{
|
|
$errores .= $locale['bd'];
|
|
}
|
|
|
|
header("Location: administracion_alarmas.php?rol=$rol&periodicidad=$periodicidad&e=$errores&a=$aciertos");
|
|
exit();
|
|
|
|
include_once("html/pie.php");
|
|
|
|
?>
|