mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
more code cleanup (last commit for now)
git-svn-id: http://www.observium.org/svn/observer/trunk@2520 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -11,7 +11,7 @@ else
|
||||
|
||||
echo('<span style="font-weight: bold;">BGP</span> » ');
|
||||
|
||||
if(!$_GET['optb']) { $_GET['optb'] = "all"; }
|
||||
if (!$_GET['optb']) { $_GET['optb'] = "all"; }
|
||||
|
||||
if ($_GET['opta'] == "bgp" && $_GET['optb'] == "all") { echo("<span class='pagemenu-selected'>"); }
|
||||
echo('<a href="routing/bgp/all/'.$graphs.'/">All</a>');
|
||||
@@ -38,7 +38,7 @@ else
|
||||
|
||||
echo('<div style="float: right;">');
|
||||
|
||||
if(!$_GET['optc']) { $_GET['optc'] = "nographs"; }
|
||||
if (!$_GET['optc']) { $_GET['optc'] = "nographs"; }
|
||||
|
||||
if ($_GET['opta'] == "bgp" && $_GET['optc'] == "nographs") { echo("<span class='pagemenu-selected'>"); }
|
||||
echo('<a href="routing/bgp/'.$_GET['optb'].'/nographs/">No Graphs</a>');
|
||||
@@ -148,9 +148,9 @@ else
|
||||
|
||||
echo(" <td></td>
|
||||
<td width=150>" . $localaddresslink . "<br />".generate_device_link($peer, shorthost($peer['hostname']), 'routing/bgp/')."</td>
|
||||
<td width=30><b>»</b></td>
|
||||
<td width=30><b>»</b></td>
|
||||
<td width=150>" . $peeraddresslink . "</td>
|
||||
<td width=50><b>$peer_type</b></td>
|
||||
<td width=50><b>$peer_type</b></td>
|
||||
<td width=50>".$peer['afi']."</td>
|
||||
<td><strong>AS" . $peer['bgpPeerRemoteAs'] . "</strong><br />" . $peer['astext'] . "</td>
|
||||
<td><strong><span style='color: $admin_col;'>" . $peer['bgpPeerAdminStatus'] . "</span><br /><span style='color: $col;'>" . $peer['bgpPeerState'] . "</span></strong></td>
|
||||
@@ -191,7 +191,7 @@ else
|
||||
|
||||
if ($_GET['optc'] == 'updates') { $peer['graph'] = 1; }
|
||||
|
||||
if($peer['graph'])
|
||||
if ($peer['graph'])
|
||||
{
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "220";
|
||||
|
@@ -2,9 +2,9 @@
|
||||
|
||||
foreach ($datas as $type)
|
||||
{
|
||||
if($type != "overview")
|
||||
if ($type != "overview")
|
||||
{
|
||||
if(is_file("pages/routing/overview/".mres($type).".inc.php")) {
|
||||
if (is_file("pages/routing/overview/".mres($type).".inc.php")) {
|
||||
|
||||
$g_i++;
|
||||
if (!is_integer($g_i/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
|
||||
|
@@ -2,8 +2,8 @@
|
||||
|
||||
if ($_SESSION['userlevel'] >= '5') {
|
||||
|
||||
if(!isset($_GET['optb'])) { $_GET['optb'] = "all"; }
|
||||
if(!isset($_GET['optc'])) { $_GET['optc'] = "basic"; }
|
||||
if (!isset($_GET['optb'])) { $_GET['optb'] = "all"; }
|
||||
if (!isset($_GET['optc'])) { $_GET['optc'] = "basic"; }
|
||||
|
||||
print_optionbar_start();
|
||||
|
||||
|
Reference in New Issue
Block a user