mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
more db*
git-svn-id: http://www.observium.org/svn/observer/trunk@2336 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
<?php
|
||||
|
||||
$sql = "SELECT * FROM `ospf_instances` WHERE `ospfAdminStat` = 'enabled'";
|
||||
$query = mysql_query($sql);
|
||||
|
||||
$i_i = "0";
|
||||
|
||||
echo('<table width=100% border=0 cellpadding=10>');
|
||||
@@ -10,7 +7,7 @@ echo('<tr><th>Device</th><th>Router Id</th><th>Status</th><th>ABR</th><th>ASBR</
|
||||
|
||||
#### Loop Instances
|
||||
|
||||
while ($instance = mysql_fetch_assoc($query))
|
||||
foreach (dbFetchRows("SELECT * FROM `ospf_instances` WHERE `ospfAdminStat` = 'enabled'") as $instance)
|
||||
{
|
||||
if (!is_integer($i_i/2)) { $instance_bg = $list_colour_a; } else { $instance_bg = $list_colour_b; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user