// Additions to Pandora FMS 1.2 graph code and new XML reporting template management // Copyright (c) 2005-2007 Artica Soluciones Tecnologicas, info@artica.es // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; version 2 // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Load global vars require("include/config.php"); if ( (give_acl($id_user, 0, "LM")==1)){ // Var init $descripcion = ""; $nombre = ""; $comando =""; if (isset($_GET["id_alerta"])){ $id_alerta = entrada_limpia($_GET["id_alerta"]); $sql1='SELECT * FROM talerta WHERE id_alerta = '.$id_alerta; $result=mysql_query($sql1); if ($row=mysql_fetch_array($result)){ $descripcion = $row["descripcion"]; $nombre= $row["nombre"]; $comando = $row["comando"]; } else { echo "

".$lang_label["alert_error"]."

"; echo ""; include ("general/footer.php"); exit; } } $creacion_alerta = 0; if (isset($_GET["creacion"])){ $creacion_alerta = 1; } echo "

".$lang_label["alert_config"]." > "; if (isset($_GET["creacion"])){ echo $lang_label["create_alert"]; } if (isset($_GET["id_alerta"])){ echo $lang_label["mod_alert"]; } pandora_help("manage_alerts"); echo "

"; ?>
"; else { echo ""; echo ""; } ?>
"; } else { echo ""; } ?>