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:
@@ -5,18 +5,18 @@ echo("<span style='font-weight: bold;'>Services</span> » ");
|
||||
$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";
|
||||
|
Reference in New Issue
Block a user