(Pandora Console)

* index.php: Add new text about authors.

* functions.php: Add new text about authors. Change PATH to noaccess.php file.

* noaccess.php: Add new text about authors.

* login_failed.php: Add new text about authors.

* logoff.php: Add new text about authors.

* config.php: Add new text about authors.

* configurar_usuarios.php: Add new text about authors. Clean code. Solve small bug that avoid creating a new user. Add a line between table and button. Add different colors between rows (cosmetic changes).

* pandora.css: Added new class .datos2t

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@123 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
raulmateos 2006-07-11 14:14:09 +00:00
parent 8765842da8
commit bb40c36c54
9 changed files with 150 additions and 48 deletions

View File

@ -1,5 +1,21 @@
2006-07-11 Raul Mateos <raulofpandora@gmail.com> 2006-07-11 Raul Mateos <raulofpandora@gmail.com>
* index.php: Add new text about authors.
* functions.php: Add new text about authors. Change PATH to noaccess.php file.
* noaccess.php: Add new text about authors.
* login_failed.php: Add new text about authors.
* logoff.php: Add new text about authors.
* config.php: Add new text about authors.
* configurar_usuarios.php: Add new text about authors. Clean code. Solve small bug that avoid creating a new user. Add a line between table and button. Add different colors between rows (cosmetic changes).
* pandora.css: Added new class .datos2t
* ver_agente.php: Add new text about authors. Clean Code. * ver_agente.php: Add new text about authors. Clean Code.
* estado_generalagente.php: Add new text about authors. Solve small bug showing different colors between rows (cosmetic changes). * estado_generalagente.php: Add new text about authors. Solve small bug showing different colors between rows (cosmetic changes).

View File

@ -1,9 +1,21 @@
<?php <?php
// Pandora - The Free Monitoring System
// This code is protected by GPL license. // Pandora - the Free monitoring system
// Este codigo esta protegido por la licencia GPL. // ====================================
// Sancho Lerena <slerena@gmail.com>, 2003-2006 // Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com
// Raul Mateos <raulofpandora@gmail.com>, 2005-2006 // 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.
?> ?>
<h1><?php echo $lang_label["logged_out"] ?></h1> <h1><?php echo $lang_label["logged_out"] ?></h1>

View File

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

View File

@ -1,11 +1,23 @@
<?php <?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 id="noaccess"> <div id="noaccess">
<div align='center'> <div align='center'>
<h2><?php echo $lang_label["no_access_title"] ?></h2> <h2><?php echo $lang_label["no_access_title"] ?></h2>

View File

@ -1,12 +1,24 @@
<?php <?php
// Pandora - The Free Monitoring System // Pandora - the Free monitoring system
// This code is protected by GPL license. // ====================================
// Este codigo esta protegido por la licencia GPL. // Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com
// Sancho Lerena <slerena@gmail.com>, 2003-2006 // Copyright (c) 2005-2006 Artica Soluciones Tecnológicas S.L, info@artica.es
// Raul Mateos <raulofpandora@gmail.com>, 2005-2006 // 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.
// Load global vars // Load global vars
require("include/config.php"); require("include/config.php");
if (comprueba_login() == 0) if (comprueba_login() == 0)
if (give_acl($id_user, 0, "UM")==1) { if (give_acl($id_user, 0, "UM")==1) {
// Init. vars // Init. vars
@ -123,7 +135,7 @@ if (comprueba_login() == 0)
$nivel = entrada_limpia($_POST["nivel"]); $nivel = entrada_limpia($_POST["nivel"]);
$password=md5($password); $password=md5($password);
$ahora = date("Y/m/d H:i:s"); $ahora = date("Y/m/d H:i:s");
$sql_insert = "insert into tusuario (id_usuario,direccion,password,telefono,fecha_registro,nivel,comentarios, nombre_real) values ('".$nombre."','".$direccion."','".$password."','".$telefono."','".$ahora."','".$nivel."','".$comentarios."','".$nombre_real."')"; $sql_insert = "INSERT INTO tusuario (id_usuario,direccion,password,telefono,fecha_registro,nivel,comentarios, nombre_real) VALUES ('".$nombre."','".$direccion."','".$password."','".$telefono."','".$ahora."','".$nivel."','".$comentarios."','".$nombre_real."')";
$resq1=mysql_query($sql_insert); $resq1=mysql_query($sql_insert);
if (! $resq1) if (! $resq1)
echo "<h3 class='error'>".$lang_label["create_user_no"]."</h3>"; echo "<h3 class='error'>".$lang_label["create_user_no"]."</h3>";
@ -175,7 +187,7 @@ if (comprueba_login() == 0)
} }
?> ?>
<tr><td class="datos2" colspan="2"><?php echo $lang_label["comments"] ?> <tr><td class="datos2" colspan="2"><?php echo $lang_label["comments"] ?>
<tr><td class="datos" colspan="2"><textarea name="comentarios" cols="50" rows="4"><?php echo $comentarios ?></textarea> <tr><td class="datos" colspan="2"><textarea name="comentarios" cols="60" rows="4"><?php echo $comentarios ?></textarea>
<?php <?php
if ($modo == "edicion") { // Solo se visualizan los grupos para usuarios existentes. if ($modo == "edicion") { // Solo se visualizan los grupos para usuarios existentes.
@ -194,7 +206,7 @@ if (comprueba_login() == 0)
echo "<tr><td class='datos'>".$lang_label["profiles"]; echo "<tr><td class='datos'>".$lang_label["profiles"];
echo "<td class='datos'><select name='perfil'>"; echo "<td class='datos'><select name='perfil'>";
$sql1='SELECT * FROM tperfil order by name'; $sql1='SELECT * FROM tperfil ORDER BY name';
$result=mysql_query($sql1); $result=mysql_query($sql1);
while ($row=mysql_fetch_array($result)){ while ($row=mysql_fetch_array($result)){
echo "<option value='".$row["id_perfil"]."'>".$row["name"]; echo "<option value='".$row["id_perfil"]."'>".$row["name"];
@ -202,27 +214,42 @@ if (comprueba_login() == 0)
echo '</select>'; echo '</select>';
echo '<tr><td colspan="3"><div class="raya"></div></td></tr>'; echo '<tr><td colspan="3"><div class="raya"></div></td></tr>';
echo '<tr><td align="right" colspan="3">'; echo '<tr><td align="right" colspan="3">';
if (isset($_GET["alta"])){echo "<input name='crtbutton' type='submit' class='sub' value='".$lang_label["create"]."'>";} echo "<input name='uptbutton' type='submit' class='sub' value='".$lang_label["update"]."'></table><br>";
else {echo "<input name='uptbutton' type='submit' class='sub' value='".$lang_label["update"]."'>";}
// Show user profile / groups assigned // Show user profile / groups assigned
$sql1='SELECT * FROM tusuario_perfil WHERE id_usuario = "'.$id_usuario_mio.'"'; $sql1='SELECT * FROM tusuario_perfil WHERE id_usuario = "'.$id_usuario_mio.'"';
$result=mysql_query($sql1); $result=mysql_query($sql1);
if (mysql_num_rows($result)){
echo "</table>
<br><table width='500' cellpadding='3' cellspacing='3' class=fon>"; echo '<h3>'.$lang_label["listGroupUser"].'<a href="help/'.$help_code.'/chap2.php#22" target="_help" class="help">&nbsp;<span>'.$lang_label["help"].'</span></a></h3>';
echo '<tr><td colspan="2"><h3>'.$lang_label["listGroupUser"]."</h3>"; echo "<table width='500' cellpadding='3' cellspacing='3' class='fon'>";
if (mysql_num_rows($result)){
echo '<tr><td class="lb" rowspan="'.mysql_num_rows($result).'" width="5">';
$color=1;
while ($row=mysql_fetch_array($result)){ while ($row=mysql_fetch_array($result)){
echo '<tr><td class="datos">'; if ($color == 1){
$tdcolor = "datos";
$color = 0;
}
else {
$tdcolor = "datos2";
$color = 1;
}
echo '<td class="'.$tdcolor.'">';
echo "<b style='margin-left:10px'>".dame_perfil($row["id_perfil"])."</b> / "; echo "<b style='margin-left:10px'>".dame_perfil($row["id_perfil"])."</b> / ";
echo "<b>".dame_grupo($row["id_grupo"])."</b>"; echo "<b>".dame_grupo($row["id_grupo"])."</b>";
echo '<td class="datost"><a href="index.php?sec=gusuarios&sec2=godmode/usuarios/configurar_usuarios&id_usuario_mio='.$id_usuario_mio.'&borrar_grupo='.$row["id_up"].' " onClick="if (!confirm(\' '.$lang_label["are_you_sure"].'\')) return false;"><img border=0 src="images/cancel.gif"></a>'; echo '<td class="'.$tdcolor.'t"><a href="index.php?sec=gusuarios&sec2=godmode/usuarios/configurar_usuarios&id_usuario_mio='.$id_usuario_mio.'&borrar_grupo='.$row["id_up"].' " onClick="if (!confirm(\' '.$lang_label["are_you_sure"].'\')) return false;"><img border=0 src="images/cancel.gif"></a><tr>';
} }
echo "<tr><td colspan='3'><div class='raya'></div></td></tr>";
} }
else { echo '<tr><td></td></tr><tr><td class="red" colspan="3">'.$lang_label["no_profile"]; } else { echo '<tr><td class="red" colspan="3">'.$lang_label["no_profile"].'</td></tr>';}
} }
?> ?>
<?php if (isset($_GET["alta"])){
echo '<tr><td colspan="3"><div class="raya"></div></td></tr>';
echo '<tr><td align="right" colspan="3">';
echo '<input name="crtbutton" type="submit" class="sub" value="'.$lang_label["create"].'">';
}
?>
</form> </form>
</td></tr></table> </td></tr></table>

View File

@ -1,12 +1,23 @@
<?php <?php
// Pandora - The Free Monitoring System // Pandora - the Free monitoring system
// This code is protected by GPL license. // ====================================
// Este codigo esta protegido por la licencia GPL. // Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com
// Sancho Lerena <slerena@gmail.com>, 2003-2006 // Copyright (c) 2005-2006 Artica Soluciones Tecnologicas, info@artica.es
// Raul Mateos <raulofpandora@gmail.com>, 2005-2006 // 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.
// Base config file // This is the base config file
//Pandora Version //Pandora Version

View File

@ -1,10 +1,21 @@
<?php <?php
// Pandora - The Free Monitoring System // Pandora - the Free monitoring system
// This code is protected by GPL license. // ====================================
// Este codigo esta protegido por la licencia GPL. // Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com
// Sancho Lerena <slerena@gmail.com>, 2003-2006 // Copyright (c) 2005-2006 Artica Soluciones Tecnologicas, info@artica.es
// Raul Mateos <raulofpandora@gmail.com>, 2005-2006 // 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.
// Functions // Functions
@ -82,7 +93,7 @@ function comprueba_login() {
return 0 ; return 0 ;
} }
} }
require("../general/noaccess.php"); require("general/noaccess.php");
return 1; return 1;
} }

View File

@ -93,7 +93,7 @@ td.datos_jus, td.datos2_jus {text-align: justify;}
.w135, .w135datos, .w35datos2 {width: 135px;} .w135, .w135datos, .w35datos2 {width: 135px;}
.w140 {width: 140px;} .w140 {width: 140px;}
.w155, .w155f10 {width: 155px;} .w155, .w155f10 {width: 155px;}
.top, .bgt, .f9130t, td.datost {vertical-align: top;} .top, .bgt, .f9130t, td.datost, td.datos2t {vertical-align: top;}
.bot, .titb, td.datosb {vertical-align: bottom;} .bot, .titb, td.datosb {vertical-align: bottom;}
.w180 {width: 180px;} .w180 {width: 180px;}
.w200 {width: 200px;} .w200 {width: 200px;}

View File

@ -1,4 +1,5 @@
<?PHP <?php
// Pandora - the Free monitoring system // Pandora - the Free monitoring system
// ==================================== // ====================================
// Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com // Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com