2011-08-09 Juan Manuel Ramon <juanmanuel.ramon@artica.es>

* extensions/users_connected.php: Added a call to
        io_safe_input() function in order to retrieve users connected.

        Fixes: #3388470



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4691 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
juanmanuelr 2011-08-09 14:44:51 +00:00
parent 3819989474
commit 3e988b7e47
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2011-08-09 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* extensions/users_connected.php: Added a call to io_safe_input() function
in order to retrieve users connected.
Fixes: #3388470
2011-08-09 Vanessa Gil <vanessa.gil@artica.es>
* godmode/groups/group_list.php: Added groups must have a name and be unique.

View File

@ -34,17 +34,17 @@ function users_extension_main_god ($god = true) {
case "mysql":
$sql = "SELECT id_usuario, ip_origen, fecha, accion
FROM tsesion
WHERE descripcion = 'Logged in' AND utimestamp > (UNIX_TIMESTAMP(NOW()) - 3600) GROUP BY id_usuario, ip_origen, accion";
WHERE descripcion = '" . io_safe_input('Logged in') . "' AND utimestamp > (UNIX_TIMESTAMP(NOW()) - 3600) GROUP BY id_usuario, ip_origen, accion";
break;
case "postgresql":
$sql = "SELECT id_usuario, ip_origen, fecha, accion
FROM tsesion
WHERE descripcion = 'Logged in' AND utimestamp > (ceil(date_part('epoch', CURRENT_TIMESTAMP)) - 3600) GROUP BY id_usuario, ip_origen, accion";
WHERE descripcion = '" . io_safe_input('Logged in') . "' AND utimestamp > (ceil(date_part('epoch', CURRENT_TIMESTAMP)) - 3600) GROUP BY id_usuario, ip_origen, accion";
break;
case "oracle":
$sql = "SELECT id_usuario, ip_origen, fecha, accion
FROM tsesion
WHERE to_char(descripcion) = 'Logged in' AND utimestamp > (ceil((sysdate - to_date('19700101000000','YYYYMMDDHH24MISS')) * (86400)) - 3600) GROUP BY id_usuario, ip_origen,fecha, accion";
WHERE to_char(descripcion) = '" . io_safe_input('Logged in') . "' AND utimestamp > (ceil((sysdate - to_date('19700101000000','YYYYMMDDHH24MISS')) * (86400)) - 3600) GROUP BY id_usuario, ip_origen,fecha, accion";
break;
}
@ -56,7 +56,7 @@ function users_extension_main_god ($god = true) {
else {
$table->cellpadding = 4;
$table->cellspacing = 4;
$table->width = 600;
$table->width = '98%';
$table->class = "databox";
$table->size = array ();
$table->data = array ();