id_name)) or filters filtered * * @param tree string SNMP tree returned by snmp_broser_get_tree. * @param id string Level ID. Do not set, used for recursion. * @param depth string Branch depth. Do not set, used for recursion. */ function snmp_browser_print_tree($tree, $id=0, $depth=0, $last=0, $last_array=[], $sufix=false, $checked=[]) { static $url = false; // Get the base URL for images if ($url === false) { $url = ui_get_full_url('operation/tree', false, false, false); } // Leaf if (empty($tree['__LEAVES__'])) { return; } $count = 0; $total = (sizeof(array_keys($tree['__LEAVES__'])) - 1); $last_array[$depth] = $last; if ($depth > 0) { echo "