2011-04-12 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* extensions/users_connected.php operation/incidents/incident.list.php godmode/agentes/module_manager.php: Fixed some mistakes of my last commit. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4194 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
30a21a8354
commit
9a00eb8a84
|
@ -1,3 +1,10 @@
|
|||
2011-04-12 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* extensions/users_connected.php
|
||||
operation/incidents/incident.list.php
|
||||
godmode/agentes/module_manager.php: Fixed some mistakes of my last
|
||||
commit.
|
||||
|
||||
2011-04-12 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_graph.php: added constants for some graphs. Added
|
||||
|
|
|
@ -35,10 +35,12 @@ function users_extension_main_god ($god = true) {
|
|||
$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";
|
||||
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";
|
||||
break;
|
||||
case "oracle":
|
||||
$sql = "SELECT id_usuario, ip_origen, fecha, accion
|
||||
FROM tsesion
|
||||
|
|
|
@ -187,7 +187,7 @@ switch ($sortField) {
|
|||
switch ($config["dbtype"]) {
|
||||
case "mysql":
|
||||
case "postgresql":
|
||||
$order[] = array('field' => 'dbms_lob.substr(tagente_modulo.nombre,4000,1)', 'order' => 'DESC');
|
||||
$order[] = array('field' => 'tagente_modulo.nombre', 'order' => 'DESC');
|
||||
break;
|
||||
case "oracle":
|
||||
$order[] = array('field' => 'dbms_lob.substr(tagente_modulo.nombre,4000,1)', 'order' => 'DESC');
|
||||
|
@ -244,7 +244,7 @@ switch ($sortField) {
|
|||
switch ($config["dbtype"]) {
|
||||
case "mysql":
|
||||
case "postgresql":
|
||||
$order[] = array('field' => 'dbms_lob.substr(nombre,4000,1)', 'order' => 'ASC');
|
||||
$order[] = array('field' => 'nombre', 'order' => 'ASC');
|
||||
break;
|
||||
case "oracle":
|
||||
$order[] = array('field' => 'dbms_lob.substr(nombre,4000,1)', 'order' => 'ASC');
|
||||
|
|
|
@ -22,22 +22,28 @@ global $result_status;
|
|||
global $result_groups;
|
||||
global $result_resolutions;
|
||||
|
||||
if (!empty($result_status)) {
|
||||
foreach($result_status['status'] as $st) {
|
||||
$status[$st['id']] = $st['name'];
|
||||
}
|
||||
|
||||
}
|
||||
// Add special status cases
|
||||
$status[0] = __('Any');
|
||||
$status[-10] = __('Not closed');
|
||||
|
||||
if (!empty($result_groups)) {
|
||||
foreach($result_groups['group'] as $gr) {
|
||||
$groups[$gr['id']] = $gr['name'];
|
||||
}
|
||||
|
||||
}
|
||||
else {
|
||||
$groups = array();
|
||||
}
|
||||
$resolutions[0] = __('None');
|
||||
if (!empty($result_resolutions)) {
|
||||
foreach($result_resolutions['resolution'] as $res) {
|
||||
$resolutions[$res['id']] = $res['name'];
|
||||
}
|
||||
}
|
||||
|
||||
echo '<form method="post">';
|
||||
|
||||
|
|
Loading…
Reference in New Issue