Major updates on the road to 0.7

git-svn-id: http://www.observium.org/svn/observer/trunk@492 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-10-28 13:49:37 +00:00
parent bb969a845a
commit 1f1eda9764
47 changed files with 1034 additions and 1235 deletions

View File

@@ -35,11 +35,20 @@
list(,$circuit) = preg_split("/[\{\}]/", $interface['ifAlias']);
list(,$notes) = preg_split("/[\(\)]/", $interface['ifAlias']);
list(,$speed) = preg_split("/[\[\]]/", $interface['ifAlias']);
$customer = trim($customer);
if ($customer == $prev_customer) {
unset($customer);
} else {
if(isset($prev_customer)) {
echo("<tr bgcolor='$bg_colour'><td></td><td colspan=6>
<img src='http://observer2.as8681.net/graph.php?cust=".rawurlencode($customer)."&type=customer_bits&from=1256573330&to=-300s&width=215&height=100'>
<img src='http://observer2.as8681.net/graph.php?cust=".rawurlencode($customer)."&type=customer_bits&from=1256573330&to=-300s&width=215&height=100'>
<img src='http://observer2.as8681.net/graph.php?cust=".rawurlencode($customer)."&type=customer_bits&from=1256573330&to=-300s&width=215&height=100'>
<img src='http://observer2.as8681.net/graph.php?cust=".rawurlencode($customer)."&type=customer_bits&from=1256573330&to=-300s&width=215&height=100'>
</td></tr>");
}
if(is_integer($customers/2)) { $bg_colour = $list_colour_a; } else { $bg_colour = $list_colour_b; }
$customers++;
$prev_customer = $customer;