2013-02-20 Sancho Lerena <slerena@artica.es>
* include/functions_snmp_browser.php: Change icon and way to split into branches (using :: and .). git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7690 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
af00f279f6
commit
d988f6d994
|
@ -1,3 +1,8 @@
|
|||
2013-02-20 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* include/functions_snmp_browser.php: Change icon and way to
|
||||
split into branches (using :: and .).
|
||||
|
||||
2013-02-20 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* operation/agentes/estado_monitores.php: Fixed search filter
|
||||
|
|
|
@ -105,8 +105,8 @@ function snmp_browser_print_tree ($tree, $id = 0, $depth = 0, $last = 0, $last_a
|
|||
// Branch or leave with branches!
|
||||
if (isset ($sub_level['__OID__'])) {
|
||||
echo "<a onfocus='javascript: this.blur();' href='javascript: snmpGet(\"" . addslashes($sub_level['__OID__']) . "\");'>";
|
||||
html_print_image ("images/computer_error.png", false, array ("style" => 'vertical-align: middle;'));
|
||||
echo "</a>";
|
||||
html_print_image ("images/eye.png", false, array ("style" => 'vertical-align: middle;'));
|
||||
echo "</a> ";
|
||||
}
|
||||
|
||||
echo '<span>' . $level . '</span>';
|
||||
|
@ -168,8 +168,11 @@ function snmp_browser_get_tree ($target_ip, $community, $starting_oid = '.') {
|
|||
}
|
||||
|
||||
// Move to the next element of the OID
|
||||
if ($group == 0 && $oid[$i] == '.') {
|
||||
|
||||
if ($group == 0 && (($oid[$i] == ':' && $oid[$i + 1] == ':') || $oid[$i] == '.' )) {
|
||||
|
||||
if ($oid[$i] == ':') {
|
||||
$i++;
|
||||
}
|
||||
// Starting dot
|
||||
if ($sub_oid == '') {
|
||||
continue;
|
||||
|
@ -330,4 +333,4 @@ function snmp_browser_print_oid ($oid = array()) {
|
|||
echo '</a>';
|
||||
html_print_table($table, false);
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue