id_name)) or filters filtered * Used also in Cloud Wizard. * * @param string $tree SNMP tree returned by snmp_broser_get_tree. * @param string $id Level ID. Do not set, used for recursion. * @param string $depth Branch depth. Do not set, used for recursion. * @param integer $last Last. * @param array $last_array Last_array. * @param string $sufix Sufix. * @param array $checked Checked. * @param boolean $descriptive_ids Descriptive_ids. * @param string $previous_id Previous_id. * * @return string HTML code with complete tree. */ function snmp_browser_get_html_tree( $tree, $id=0, $depth=0, $last=0, $last_array=[], $sufix=false, $checked=[], $descriptive_ids=false, $previous_id='' ) { static $url = false; $output = ''; // 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 = (count(array_keys($tree['__LEAVES__'])) - 1); $last_array[$depth] = $last; if ($depth > 0) { $output .= '