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:
Adam Amstrong
2011-09-12 04:57:56 +00:00
parent 399b00589a
commit 99c6fc3e65
14 changed files with 128 additions and 148 deletions
+5 -5
View File
@@ -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)
{