From a57e5289232cc46ebeb458b2e962bf862c5e8099 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Sun, 24 Apr 2011 00:52:50 +0000 Subject: [PATCH] SEARCHMOTHERFUCKER. git-svn-id: http://www.observium.org/svn/observer/trunk@2152 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/search.inc.php | 40 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 html/pages/search.inc.php 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; +} + +?>