mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
fixed custom oids
This commit is contained in:
parent
e8323e4b00
commit
6dfbe394a4
@ -718,6 +718,7 @@ class SnmpConsole extends HTML
|
|||||||
}
|
}
|
||||||
|
|
||||||
$sql = sprintf($sql, $whereSubquery, $start, $length);
|
$sql = sprintf($sql, $whereSubquery, $start, $length);
|
||||||
|
|
||||||
$sql_count = 'SELECT COUNT(id_trap) FROM ttrap
|
$sql_count = 'SELECT COUNT(id_trap) FROM ttrap
|
||||||
WHERE (
|
WHERE (
|
||||||
source IN ('.implode(',', $address_by_user_groups).") OR
|
source IN ('.implode(',', $address_by_user_groups).") OR
|
||||||
@ -907,7 +908,7 @@ class SnmpConsole extends HTML
|
|||||||
).'</a>';
|
).'</a>';
|
||||||
|
|
||||||
if ($config['enterprise_installed']) {
|
if ($config['enterprise_installed']) {
|
||||||
$tmp->action .= '<a href="index.php?sec=snmpconsole&sec2=enterprise/godmode/snmpconsole/snmp_trap_editor_form&oid='.$tmp->oid.'&custom_oid='.urlencode($tmp->oid_custom).'&severity='.$tmp->severity.'&text='.io_safe_input($tmp->text).'&description='.io_safe_input($tmp->description, ENT_QUOTES).'" title="'.io_safe_input($tmp->description, ENT_QUOTES).'">';
|
$tmp->action .= '<a href="index.php?sec=snmpconsole&sec2=enterprise/godmode/snmpconsole/snmp_trap_editor_form&id='.$tmp->id_trap.'&oid='.$tmp->oid.'&custom_oid='.urlencode($tmp->oid_custom).'&severity='.$tmp->severity.'&text='.io_safe_input($tmp->text).'&description='.io_safe_input($tmp->description, ENT_QUOTES).'" title="'.io_safe_input($tmp->description, ENT_QUOTES).'">';
|
||||||
$tmp->action .= html_print_image(
|
$tmp->action .= html_print_image(
|
||||||
'images/edit.svg',
|
'images/edit.svg',
|
||||||
true,
|
true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user