'IPv4 Address', 'ipv6' => 'IPv6 Address', 'mac' => 'MAC Address', 'arp' => 'ARP/NDP Tables', 'fdb' => 'FDB Tables']; //if (dbFetchCell("SELECT COUNT(wifi_session_id) FROM wifi_sessions") > '0') if (dbExist('wifi_sessions')) { $sections['dot1x'] = '.1x Sessions'; // Can be extended to include all dot1x sessions } $navbar['brand'] = "Search"; $navbar['class'] = "navbar-narrow"; foreach ($sections as $section => $text) { $type = strtolower($section); if (!isset($vars['search'])) { $vars['search'] = $section; } if ($vars['search'] == $section) { $navbar['options'][$section]['class'] = "active"; } $navbar['options'][$section]['url'] = generate_url(['page' => 'search', 'search' => $section]); $navbar['options'][$section]['text'] = $text; } print_navbar($navbar); /// Little switch to provide some sanity checking. switch ($vars['search']) { case 'ipv4': case 'ipv6': case 'mac': case 'arp': case 'fdb': case 'dot1x': include($config['html_dir'] . '/pages/search/' . $vars['search'] . '.inc.php'); break; default: print_error("