Files
librenms-librenms/html/includes/graphs/bill/auth.inc.php
Richard Lawley 10829893ec api: Added Billing Graphs & Data (#8245)
* 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
2018-02-20 14:57:56 +00:00

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;
}