mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Move Billing/Bandwidth Graphs to common format, extract data generation to central function * Add API functions to access billing graphs and graph data * Scrutinizer fixes * Fix transfer graphs with from/to * Scrutinizer Fix * Fix docs, transfer page and missing from API param * Document and fix reducefactor, Add Graph Stats to Graph Data * Standardise times in graphdata * Fixed renamed function for History GraphData
9 lines
245 B
PHP
9 lines
245 B
PHP
<?php
|
|
|
|
// Authorises bill viewing
|
|
if (is_numeric($vars['id']) && ($auth || bill_permitted($vars['id']))) {
|
|
$bill_id = mres($vars['id']);
|
|
$bill = dbFetchRow('SELECT * FROM `bills` WHERE bill_id = ?', array($bill_id));
|
|
$auth = true;
|
|
}
|