2006-10-04 Raul Mateos <raulofpandora@gmail.com>

* operation/agentes/estado_ultimopaquete.php: Delete old comments.
	* general/login_page.php, logon_ok.php: Updated headers.
	* include/config.php: Set PHP errors disabled by default.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@214 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
raulmateos 2006-10-04 16:15:20 +00:00
parent 76dcc8a931
commit 70af4fc376
5 changed files with 65 additions and 25 deletions

View File

@ -1,3 +1,11 @@
2006-10-04 Raul Mateos <raulofpandora@gmail.com>
* operation/agentes/estado_ultimopaquete.php: Delete old comments.
* general/login_page.php, logon_ok.php: Updated headers.
* include/config.php: Set PHP errors disabled by default.
2006-09-28 Sancho Lerena <slerena@artica.es>
* languages/language_es_es.php: Fixed message "out of limits"
@ -12,7 +20,7 @@
* pandora_console/pandoradb_data.sql: Fixed version number and
build.
2006-09-16 Raul Mateos <raulofpandora@gmail.com>
2006-09-23 Raul Mateos <raulofpandora@gmail.com>
* godmode/agentes/configurar_agente.php: Comment DEBUG code added
last update.

View File

@ -1,9 +1,22 @@
<?php
// Pandora - The Free Monitoring System
// This code is protected by GPL license.
// Este codigo esta protegido por la licencia GPL.
// Sancho Lerena <slerena@gmail.com>, 2003-2006
// Raul Mateos <raulofpandora@gmail.com>, 2004-2006
// Pandora - the Free monitoring system
// ====================================
// Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com
// Copyright (c) 2005-2006 Artica Soluciones Tecnologicas, info@artica.es
// Copyright (c) 2004-2006 Raul Mateos Martin, raulofpandora@gmail.com
// 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; either 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.
?>
<div align='center'>

View File

@ -1,9 +1,21 @@
<?php
// Pandora - The Free Monitoring System
// This code is protected by GPL license.
// Este codigo esta protegido por la licencia GPL.
// Sancho Lerena <slerena@gmail.com>, 2003-2006
// Raul Mateos <raulofpandora@gmail.com>, 2004-2006
// Pandora - the Free monitoring system
// ====================================
// Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com
// Copyright (c) 2005-2006 Artica Soluciones Tecnologicas, info@artica.es
// Copyright (c) 2004-2006 Raul Mateos Martin, raulofpandora@gmail.com
// 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; either 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.
echo "<div class='jus'>";
$nick = $_SESSION['id_usuario'];

View File

@ -21,7 +21,7 @@
//Pandora Version
$build_version="PC060710"; //PCddmmyy
$build_version="PC061004"; //PCddmmyy
$pandora_version="v1.2 Beta 3";
// Database configuration
@ -31,13 +31,30 @@ $dbpassword="pandora"; // Password
$dbhost="localhost"; // MySQL Host
$dbtype="mysql"; // Type of Database, now only "mysql" its supported
$attachment_store="/var/www/pandora_console"; //This is directory where placed "attachment" directory, to upload files stores. This MUST be writtable by wwwserver user, and should be in pandora root. Please append "/" to the end :-)
$config_fontpath = "../reporting/FreeSans.ttf";
$config_fontpath = "../reporting/FreeSans.ttf"; // Change this to your font folder, if needed.
// Do not display any ERROR
error_reporting(0);
// Read rest of config from DB
if (! mysql_pconnect($dbhost,$dbuser,$dbpassword)){ //Persistent connection. If you want non-persistent conn change it to mysql_connect()
exit ('<html><head><title>Pandora Error</title><link rel="stylesheet" href="./include/styles/pandora.css" type="text/css"></head><body><div align="center">
<div id="db_f"><div><a href="index.php"><img src="images/logo_menu.gif" border="0"></a></div><div id="db_ftxt"><h1 id="db_fh1" class="error">Pandora Console Error DB-001</h1>Cannot connect with Database, please check your database setup in the <b>./include/config.php</b> file and read documentation.<i><br><br>Probably any of your user/database/hostname values are incorrect or database is not running.</i><br><br><font class="error"><b>MySQL ERROR:</b> '. mysql_error().'</font><br>&nbsp;</div></div></body></html>');
exit ('<html><head><title>Pandora Error</title>
<link rel="stylesheet" href="./include/styles/pandora.css" type="text/css">
</head><body><div align="center">
<div id="db_f">
<div>
<a href="index.php"><img src="images/logo_menu.gif" border="0"></a>
</div>
<div id="db_ftxt">
<h1 id="db_fh1" class="error">Pandora Console Error DB-001</h1>
Cannot connect with Database, please check your database setup in the
<b>./include/config.php</b> file and read documentation.<i><br><br>
Probably any of your user/database/hostname values are incorrect or
database is not running.</i><br><br><font class="error">
<b>MySQL ERROR:</b> '. mysql_error().'</font>
<br>&nbsp;
</div>
</div></body></html>');
}
mysql_select_db($dbname);
$result2=mysql_query("SELECT * FROM tconfig");

View File

@ -23,7 +23,6 @@
function winopeng(url,wid) {
nueva_ventana=open(url,wid,"width=580,height=250,status=no,toolbar=no,menubar=no");
// WARNING !! Internet Explorer DOESNT SUPPORT "-" CARACTERS IN WINDOW HANDLE VARIABLE
// I WAS 20 HOURS TESTING FOR THIS BUG >:( !!!
status =wid;
}
function help_popup(help_id) {
@ -33,16 +32,8 @@ function help_popup(help_id) {
</script>
<?php
// Pandora - The Free Monitoring System
// This code is protected by GPL license.
// Este codigo esta protegido por la licencia GPL.
// Sancho Lerena <slerena@gmail.com>, 2003-2006
// Raúl Mateos <raulofpandora@gmail.com>, 2005-2006
// Load global vars
require("include/config.php");
//require("include/functions.php");
//require("include/functions_db.php");
if (comprueba_login() == 0) {
if (isset($_GET["id_agente"])){
@ -69,7 +60,6 @@ if (comprueba_login() == 0) {
// Get last packet
$sql3='SELECT * FROM tagente_modulo, tagente_estado WHERE tagente_modulo.id_agente = '.$id_agente.' AND tagente_modulo.id_agente_modulo = tagente_estado.id_agente_modulo ORDER BY id_module_group, nombre';
//$sql3='SELECT * FROM tagente_modulo WHERE id_agente = '.$id_agente.' order by id_module_group';
$label_group=0;
$last_label = "";
echo "<h3>".$lang_label["last_data_chunk"]."<a href='help/".$help_code."/chap3.php#3322' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h3>";