2008-10-14 Sancho Lerena <slerena@artica.es>

* include/config_process.php, index.php: Updated version.

	* include/functions_db.php: Small fix in a foreach() warning.

	* operation/agentes/estadisticas.php: Old, unused code removed.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1153 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2008-10-14 15:19:40 +00:00
parent 21899458a0
commit 09c5c10462
5 changed files with 11 additions and 42 deletions

View File

@ -1,3 +1,11 @@
2008-10-14 Sancho Lerena <slerena@artica.es>
* include/config_process.php, index.php: Updated version.
* include/functions_db.php: Small fix in a foreach() warning.
* operation/agentes/estadisticas.php: Old, unused code removed.
2008-10-14 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_db.php: Style changes and language updates and a

View File

@ -18,7 +18,7 @@
//Pandora Version
if (!isset ($build_version))
$build_version="PC081010";
$build_version="PC081014";
if (!isset ($pandora_version))
$pandora_version="v2.0";

View File

@ -2232,7 +2232,7 @@ function delete_agent ($id_agents) {
//IP address
$sql = sprintf ("SELECT id_ag FROM taddress_agent, taddress WHERE taddress_agent.id_a = taddress.id_a AND id_agent = %d", $id_agent);
$result = get_db_all_rows_sql ($sql);
if ($result)
foreach ($result as $row) {
temp_sql_delete ("taddress_agent", "id_ag", $row["id_ag"]);
}

View File

@ -20,7 +20,7 @@
// Silk icon set 1.3 (cc) Mark James, http://www.famfamfam.com/lab/icons/silk/
// Pandora FMS uses Pear Image::Graph code
$build_version="PC081010";
$build_version="PC081014";
$pandora_version="v2.0";
global $build_version;
global $pandora_version;

View File

@ -1,39 +0,0 @@
<?php
// Pandora FMS - the Flexible Monitoring System
// ============================================
// Copyright (c) 2008 Artica Soluciones Tecnologicas, http://www.artica.es
// Please see http://pandora.sourceforge.net for full contribution list
// 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 for 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");
check_login ();
if (! give_acl ($config['id_user'], 0, "AR")) {
audit_db ($config['id_user'], $REMOTE_ADDR, "ACL Violation",
"Trying to access Agent estatistics");
require ("general/noaccess.php");
return;
}
echo "<h2>".__('Pandora Agents')." &gt; ";
echo __('Database Statistics per Agent')."</h2>";
echo "<table border=0>";
echo "<tr><td><img src='reporting/fgraph.php?tipo=db_agente_modulo'><br>";
echo "<tr><td><br>";
echo "<tr><td><img src='reporting/fgraph.php?tipo=db_agente_paquetes'><br>";
echo "</table>";
?>