'IPv4 Address', 'ipv6' => 'IPv6 Address', 'mac' => 'MAC Address', 'arp' => 'ARP Table', 'fdb' => 'FDB Table' ); if (dbFetchCell('SELECT 1 from `packages` LIMIT 1')) { $sections['packages'] = 'Packages'; } $search_type = basename($vars['search'] ?? 'ipv4'); print_optionbar_start('', ''); echo 'Search » '; unset($sep); foreach ($sections as $type => $texttype) { echo $sep; if ($vars['search'] == $type) { echo ""; } // echo('' . $texttype .''); echo generate_link($texttype, array('page' => 'search', 'search' => $type)); if ($vars['search'] == $type) { echo ''; } $sep = ' | '; } unset($sep); print_optionbar_end(); if (file_exists("includes/html/pages/search/$search_type.inc.php")) { include "includes/html/pages/search/$search_type.inc.php"; } else { echo report_this("Unknown search type $search_type"); }