mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
#11039 added snmp browser in metaconsole
This commit is contained in:
parent
bc7cf9817f
commit
60efc695de
@ -644,14 +644,16 @@ function snmp_browser_print_oid(
|
|||||||
|
|
||||||
if (isset($_POST['print_create_agent_module'])) {
|
if (isset($_POST['print_create_agent_module'])) {
|
||||||
// Hidden by default.
|
// Hidden by default.
|
||||||
$output .= html_print_button(
|
if (is_metaconsole() === false) {
|
||||||
__('Create agent module'),
|
$output .= html_print_button(
|
||||||
'create_module_agent_single',
|
__('Create agent module'),
|
||||||
false,
|
'create_module_agent_single',
|
||||||
'show_add_module()',
|
false,
|
||||||
'class="sub add invisible"',
|
'show_add_module()',
|
||||||
true
|
'class="sub add invisible"',
|
||||||
);
|
true
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_POST['print_copy_oid'])) {
|
if (isset($_POST['print_copy_oid'])) {
|
||||||
@ -1238,13 +1240,15 @@ function snmp_browser_print_container(
|
|||||||
|
|
||||||
if ($show_massive_buttons) {
|
if ($show_massive_buttons) {
|
||||||
$output .= '<div id="snmp_create_buttons" style="display:none">';
|
$output .= '<div id="snmp_create_buttons" style="display:none">';
|
||||||
$output .= html_print_submit_button(
|
if (is_metaconsole() === false) {
|
||||||
__('Create agent modules'),
|
$output .= html_print_submit_button(
|
||||||
'create_modules_agent',
|
__('Create agent modules'),
|
||||||
false,
|
'create_modules_agent',
|
||||||
['class' => 'sub add'],
|
false,
|
||||||
true
|
['class' => 'sub add'],
|
||||||
);
|
true
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (is_management_allowed() === true && enterprise_installed()) {
|
if (is_management_allowed() === true && enterprise_installed()) {
|
||||||
$output .= html_print_submit_button(
|
$output .= html_print_submit_button(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user