mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
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:
parent
0f4f5ad058
commit
f493719afd
@ -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>
|
2008-10-14 Evi Vanoost <vanooste@rcbi.rochester.edu>
|
||||||
|
|
||||||
* include/functions_db.php: Style changes and language updates and a
|
* include/functions_db.php: Style changes and language updates and a
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
//Pandora Version
|
//Pandora Version
|
||||||
if (!isset ($build_version))
|
if (!isset ($build_version))
|
||||||
$build_version="PC081010";
|
$build_version="PC081014";
|
||||||
if (!isset ($pandora_version))
|
if (!isset ($pandora_version))
|
||||||
$pandora_version="v2.0";
|
$pandora_version="v2.0";
|
||||||
|
|
||||||
|
@ -2232,7 +2232,7 @@ function delete_agent ($id_agents) {
|
|||||||
//IP address
|
//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);
|
$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);
|
$result = get_db_all_rows_sql ($sql);
|
||||||
|
if ($result)
|
||||||
foreach ($result as $row) {
|
foreach ($result as $row) {
|
||||||
temp_sql_delete ("taddress_agent", "id_ag", $row["id_ag"]);
|
temp_sql_delete ("taddress_agent", "id_ag", $row["id_ag"]);
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
// Silk icon set 1.3 (cc) Mark James, http://www.famfamfam.com/lab/icons/silk/
|
// Silk icon set 1.3 (cc) Mark James, http://www.famfamfam.com/lab/icons/silk/
|
||||||
// Pandora FMS uses Pear Image::Graph code
|
// Pandora FMS uses Pear Image::Graph code
|
||||||
|
|
||||||
$build_version="PC081010";
|
$build_version="PC081014";
|
||||||
$pandora_version="v2.0";
|
$pandora_version="v2.0";
|
||||||
global $build_version;
|
global $build_version;
|
||||||
global $pandora_version;
|
global $pandora_version;
|
||||||
|
@ -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')." > ";
|
|
||||||
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>";
|
|
||||||
?>
|
|
Loading…
x
Reference in New Issue
Block a user