mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
2011-07-12 Sergio Martin <sergio.martin@artica.es>
* operation/snmpconsole/snmp_view.php: Fixed the trap generator to be enabled ever git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4548 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
578116e863
commit
cdb6eb19d0
@ -1,3 +1,8 @@
|
|||||||
|
2011-07-12 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
|
* operation/snmpconsole/snmp_view.php: Fixed the trap generator
|
||||||
|
to be enabled ever
|
||||||
|
|
||||||
2011-07-12 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
2011-07-12 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||||
|
|
||||||
* include/functions_events.php
|
* include/functions_events.php
|
||||||
|
@ -164,12 +164,6 @@ if (($config['dbtype'] == 'oracle') && ($traps !== false)) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// No traps
|
|
||||||
if (empty ($traps)) {
|
|
||||||
echo '<div class="nf">'.__('There are no SNMP traps in database').'</div>';
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$traps_generator = '<form method="POST" action="index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_view&refr='.$config["refr"].'&pure='.$config["pure"].'">';
|
$traps_generator = '<form method="POST" action="index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_view&refr='.$config["refr"].'&pure='.$config["pure"].'">';
|
||||||
$table->width = '90%';
|
$table->width = '90%';
|
||||||
$table->size = array ();
|
$table->size = array ();
|
||||||
@ -206,6 +200,12 @@ $traps_generator .= '</form>';
|
|||||||
|
|
||||||
ui_toggle($traps_generator, __('Trap generator'));
|
ui_toggle($traps_generator, __('Trap generator'));
|
||||||
|
|
||||||
|
// No traps
|
||||||
|
if (empty ($traps)) {
|
||||||
|
echo '<div class="nf">'.__('There are no SNMP traps in database').'</div>';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$table->width = '90%';
|
$table->width = '90%';
|
||||||
$table->size = array ();
|
$table->size = array ();
|
||||||
$table->size[0] = '120px';
|
$table->size[0] = '120px';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user