// Additions to code for Pandora FMS 1.2 graph code and new XML reporting template managemement // 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. // Pandora FMS 1.x uses icons from famfamfam, licensed under CC Atr. 2.5 // Silk icon set 1.3 (cc) Mark James, http://www.famfamfam.com/lab/icons/silk/ // Pandora FMS 1.x uses Pear Image::Graph code // Pandora FMS shares much of it's code with project Babel Enterprise, also a // FreeSoftware Project coded by some of the people who makes Pandora FMS $develop_bypass = 1; if ($develop_bypass != 1){ // If no config file, automatically try to install if (! file_exists("include/config.php")){ if (!file_exists("install.php")){ include "general/error_install.php"; exit; } else include ("install.php"); exit; } // Check for installer presence if (file_exists("install.php")){ include "general/error_install.php"; exit; } // Check perms for config.php if ((substr(sprintf('%o', fileperms('include/config.php')), -4) != "0600") && (substr(sprintf('%o', fileperms('include/config.php')), -4) != "0660") && (substr(sprintf('%o', fileperms('include/config.php')), -4) != "0640") && (substr(sprintf('%o', fileperms('include/config.php')), -4) != "0600")) { include "general/error_perms.php"; exit; } } // Real start session_start(); include "include/config.php"; include "include/languages/language_".$language_code.".php"; require "include/functions.php"; // Including funcions. require "include/functions_db.php"; ?>
0){ // Agent selection filters and refresh $query = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] . '&refr=' . $intervalo; if (isset ($_POST["ag_group"])) { $ag_group = $_POST["ag_group"]; $query = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] . '&ag_group_refresh=' . $ag_group; } else echo ''; } } ?>