mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
vastly simplified .htaccess and cleaned up how we use variables a little
git-svn-id: http://www.observium.org/svn/observer/trunk@2446 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -14,25 +14,25 @@ unset($sep);
|
||||
foreach ($routing_tabs as $type)
|
||||
{
|
||||
|
||||
if (!$_GET['opta']) { $_GET['opta'] = $type; }
|
||||
if (!$_GET['optc']) { $_GET['optc'] = $type; }
|
||||
|
||||
echo($sep);
|
||||
|
||||
if ($_GET['opta'] == $type)
|
||||
if ($_GET['optc'] == $type)
|
||||
{
|
||||
echo('<span class="pagemenu-selected">');
|
||||
}
|
||||
|
||||
echo("<a href='".$config['base_url']."/device/".$device['device_id']."/routing/" . $type . "/'> " . $type_text[$type] ." (".$device_routing_count[$type].")</a>");
|
||||
if ($_GET['opta'] == $type) { echo("</span>"); }
|
||||
if ($_GET['optc'] == $type) { echo("</span>"); }
|
||||
$sep = " | ";
|
||||
}
|
||||
|
||||
print_optionbar_end();
|
||||
|
||||
if (is_file("pages/device/routing/".mres($_GET['opta']).".inc.php"))
|
||||
if (is_file("pages/device/routing/".mres($_GET['optc']).".inc.php"))
|
||||
{
|
||||
include("pages/device/routing/".mres($_GET['opta']).".inc.php");
|
||||
include("pages/device/routing/".mres($_GET['optc']).".inc.php");
|
||||
} else {
|
||||
foreach ($routing_tabs as $type)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user