diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index e62d526a34..749b747e8c 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,12 @@ +2013-02-07 Ramon Novoa + + * attachment/mibs, + operation/snmpconsole/snmp_browser.php, + operation/snmpconsole/snmp_mib_uploader.php, + operation/tree/first_leaf.png: Added to repository. SNMP browser. + + * operation/menu.php: Moved SNMP related features to a new SNMP menu. + 2013-02-07 Sergio Martin * extensions/plugin_registration.php: Fixed the PSPZ registration diff --git a/pandora_console/operation/snmpconsole/snmp_browser.php b/pandora_console/operation/snmpconsole/snmp_browser.php new file mode 100644 index 0000000000..977aa73531 --- /dev/null +++ b/pandora_console/operation/snmpconsole/snmp_browser.php @@ -0,0 +1,216 @@ +' . html_print_image("images/normalscreen.png", true, array("title" => __('Normal screen'))) . ''; +} else { + // Fullscreen + $link = '' . html_print_image("images/fullscreen.png", true, array("title" => __('Full screen'))) . ''; +} +ui_print_page_header (__("SNMP Browser"), "images/computer_error.png", false, "", false, $link); + +// Target selection +$table->width = '90%'; +$table->size = array (); +$table->data = array (); + +// String search_string +$table->data[0][0] = ''.__('Target IP').''; +$table->data[0][1] = html_print_input_text ('target_ip', '', '', 50, 0, true); +$table->data[0][2] = ''.__('Community').''; +$table->data[0][3] = html_print_input_text ('community', '', '', 50, 0, true); +$table->data[1][0] = ''.__('Starting OID').''; +$table->data[1][1] = html_print_input_text ('starting_oid', '', '', 50, 0, true); + +echo '
'; +echo html_print_table($table, true); +echo '
'; +echo '
'; +echo html_print_button(__('Browse'), 'browse', false, 'snmpBrowse()', 'class="sub upd"', true); +echo '
'; + +// SNMP tree +$table->width = '100%'; +$table->size = array (); +$table->data = array (); +$table->data[0][0] = '
'; +$table->data[0][0] .= ''; +$table->data[0][0] .= '
'; +$table->data[0][0] .= '
'; +$table->data[0][0] .= '
'; +html_print_table($table, false); + +?> + + diff --git a/pandora_console/operation/snmpconsole/snmp_mib_uploader.php b/pandora_console/operation/snmpconsole/snmp_mib_uploader.php new file mode 100644 index 0000000000..082b8eab1d --- /dev/null +++ b/pandora_console/operation/snmpconsole/snmp_mib_uploader.php @@ -0,0 +1,68 @@ +' . __('Index of %s', $directory) . ''; + +filemanager_file_explorer($real_directory, $directory, 'index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_mib_uploader'); +?> diff --git a/pandora_console/operation/tree/first_leaf.png b/pandora_console/operation/tree/first_leaf.png new file mode 100644 index 0000000000..e85d78d93a Binary files /dev/null and b/pandora_console/operation/tree/first_leaf.png differ