diff --git a/html/pages/search.inc.php b/html/pages/search.inc.php new file mode 100644 index 000000000..68edb50f9 --- /dev/null +++ b/html/pages/search.inc.php @@ -0,0 +1,40 @@ + 'IPv4 Address', 'ipv6' => 'IPv6 Address', 'mac' => 'MAC Address'); + +if (!$_GET['opta']) { $_GET['opta'] = "ipv4"; } + +print_optionbar_start('', ''); + +unset($sep); +foreach ($sections as $type => $texttype) +{ + echo($sep); + if ($_GET['opta'] == $type) + { + echo(""); + } + + echo('' . $texttype .''); + + if ($_GET['opta'] == $type) { echo(""); } + + $sep = ' | '; +} +unset ($sep); + +print_optionbar_end('', ''); + +switch ($_GET['opta']) +{ + case 'ipv4': + case 'ipv6': + case 'mac': + include('pages/search/'.$_GET['opta'].'.inc.php'); + break; + default: + echo("

Error. Please report this to observium developers.

"); + break; +} + +?>