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

View File

@@ -5,18 +5,18 @@ echo("<span style='font-weight: bold;'>Services</span> &#187; ");
$menu_options = array('basic' => 'Basic',
'details' => 'Details');
if (!$_GET['opta']) { $_GET['opta'] = "basic"; }
if (!$_GET['optc']) { $_GET['optc'] = "basic"; }
$sep = "";
foreach ($menu_options as $option => $text)
{
echo($sep);
if ($_GET['opta'] == $option)
if ($_GET['optc'] == $option)
{
echo("<span class='pagemenu-selected'>");
}
echo('<a href="'.$config['base_url'].'/device/' . $device['device_id'] . '/services/' . $option . ($_GET['optb'] ? '/' . $_GET['optb'] : ''). '/">' . $text . '</a>');
if ($_GET['opta'] == $option)
echo('<a href="'.$config['base_url'].'/device/' . $device['device_id'] . '/services/' . $option . ($_GET['optd'] ? '/' . $_GET['optd'] : ''). '/">' . $text . '</a>');
if ($_GET['optc'] == $option)
{
echo("</span>");
}
@@ -35,7 +35,7 @@ if (dbFetchCell("SELECT COUNT(service_id) FROM `services` WHERE device_id = ?",
{
include("includes/print-service.inc.php");
if ($_GET['opta'] == "details")
if ($_GET['optc'] == "details")
{
$graph_array['height'] = "100";
$graph_array['width'] = "210";