#7172 RSS add agent_name

This commit is contained in:
Jonathan 2023-01-17 10:10:59 +01:00
parent 2db24935c0
commit 6d465add5c
1 changed files with 2 additions and 1 deletions

View File

@ -259,7 +259,7 @@ $fields = [
'te.event_type', 'te.event_type',
'te.utimestamp', 'te.utimestamp',
'te.id_agente', 'te.id_agente',
'ta.alias as agent_name', '"Prueba" as agent_name',
'te.id_usuario', 'te.id_usuario',
'te.id_grupo', 'te.id_grupo',
'te.id_agentmodule', 'te.id_agentmodule',
@ -320,6 +320,7 @@ try {
$rss .= xml_entry('link', $url.'index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$row['id_agente']); $rss .= xml_entry('link', $url.'index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$row['id_agente']);
} }
$rss .= xml_entry('author', $row['agent_name']);
$rss .= xml_entry('comments', $row['']); $rss .= xml_entry('comments', $row['']);
$rss .= xml_entry('pubDate', $row['timestamp']); $rss .= xml_entry('pubDate', $row['timestamp']);
$rss .= xml_entry('category', $row['source']); $rss .= xml_entry('category', $row['source']);