// 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) $id_user = $_SESSION["id_usuario"]; if (give_acl($id_user, 0, "PM")==1) { // Init vars $id_grupo = ""; $nombre = ""; $id_parent = ""; $disabled = 0; if (isset($_GET["create_g"])){ // $create_g = entrada_limpia($_GET["create_g"]); } else $create_g = 0; if (isset($_GET["id_grupo"])){ $id_grupo = entrada_limpia($_GET["id_grupo"]); $sql1='SELECT * FROM tgrupo WHERE id_grupo = '.$id_grupo; $result=mysql_query($sql1); if ($row=mysql_fetch_array($result)){ $nombre = $row["nombre"]; $icono = $row["icon"]; $disabled = $row["disabled"]; $id_parent = entrada_limpia($row["parent"]); } else { echo "

".$lang_label["group_error"]."

"; echo ""; include ("general/footer.php"); exit; } } echo "

".$lang_label["group_management"]." > "; if (isset($_GET["create_g"])) { echo $lang_label["create_group"]; } if (isset($_GET["id_grupo"])) { echo $lang_label["update_group"]; } echo "

" ?> "; else { echo ""; echo ""; } ?>
'; echo ''; // Parent echo "
"; echo $lang_label["parent"]; echo ''; echo ''; // Disabled echo "
"; echo $lang_label["alerts"]; echo ''; echo '"; echo "
"; echo ""; echo '
'; if (isset($_GET["create_g"])) echo ""; else echo ""; echo "
"; } else { audit_db($id_user,$REMOTE_ADDR, "ACL Violation", "Trying to access Group Management2"); require ("general/noaccess.php"); } ?>