// Additions to Pandora FMS 1.2 graph code and new XML reporting template management // 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 // of the License, or (at your option) any later version. // 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. // Global & session management include ("../include/config.php"); session_start(); include ("../include/functions.php"); include("../include/functions_db.php"); include("../include/languages/language_".$language_code.".php"); // Access control if (comprueba_login() != 0) { $REMOTE_ADDR = getenv ("REMOTE_ADDR"); audit_db("Unknown",$REMOTE_ADDR, "ACL Violation","Trying to access graph window without auth"); require ("general/noaccess.php"); exit; } // Parsing the refresh before sending any header if (isset($_GET['refresh']) and is_numeric($_GET['refresh']) and $_GET['refresh']>0) { header( 'refresh: ' . $_GET['refresh'] ); } // Read styles echo ''; echo "
"; // Get input parameters if (isset($_GET["label"])) $label = entrada_limpia($_GET["label"]); if (!isset($_GET["period"]) OR (!isset($_GET["id"]))) { echo ""; echo $lang_label["max_value"]." : ". format_for_graph(return_moduledata_max_value ($id, $period)); echo " | "; echo $lang_label["avg_value"]." : ". format_for_graph(return_moduledata_avg_value ($id, $period)); echo " | "; echo $lang_label["min_value"]." : ". format_for_graph(return_moduledata_min_value ($id, $period)); echo " |