// 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 (comprueba_login() == 0) { if (isset($_GET["id_agente"])){ $id_agente = $_GET["id_agente"]; // get group for this id_agente $query="SELECT * FROM tagente WHERE id_agente = ".$id_agente; $res=mysql_query($query); $row=mysql_fetch_array($res); $id_grupo = $row["id_grupo"]; $id_usuario=$_SESSION["id_usuario"]; if (give_acl($id_usuario, $id_grupo, "AR")==1){ // Get the user who makes this request $id_usuario = $_SESSION["id_usuario"]; // Check for Network FLAG change request if (isset($_GET["flag"])){ if ($_GET["flag"]==1){ if (give_acl($id_usuario, $id_grupo, "AW")==1){ $query ="UPDATE tagente_modulo SET flag=1 WHERE id_agente_modulo = ".$_GET["id_agente_modulo"]; $res=mysql_query($query); } } } if (give_acl($id_usuario,$id_grupo, "AR") == 1){ echo "
"; if (isset($_GET["tab"])) $tab = $_GET["tab"]; else $tab = "main"; echo " "; echo "