From ba5ed7b35bf4be972d7876fc8a84eb496b7afdb8 Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Thu, 7 Feb 2013 18:21:59 +0000 Subject: [PATCH] 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. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7612 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 9 + .../operation/snmpconsole/snmp_browser.php | 216 ++++++++++++++++++ .../snmpconsole/snmp_mib_uploader.php | 68 ++++++ pandora_console/operation/tree/first_leaf.png | Bin 0 -> 159 bytes 4 files changed, 293 insertions(+) create mode 100644 pandora_console/operation/snmpconsole/snmp_browser.php create mode 100644 pandora_console/operation/snmpconsole/snmp_mib_uploader.php create mode 100644 pandora_console/operation/tree/first_leaf.png 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 0000000000000000000000000000000000000000..e85d78d93ac6dd57973f08dbe505e46fa690debf GIT binary patch literal 159 zcmeAS@N?(olHy`uVBq!ia0vp^0zj<5$P6SE-Lv|E6kC8#i0ifu>Ih+L^k;M!Q+(IDCcejR2# w_RR}{LPDM{jv*Y^lM@tV4ceMK*^)dM_~RMkzOQK32Ffycy85}Sb4q9e0O~g-^8f$< literal 0 HcmV?d00001