mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
billing system fixes (make moar sexypants)
git-svn-id: http://www.observium.org/svn/observer/trunk@1592 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
### Authorises bill viewing and sets $ports as reference to mysql query containing ports for this bill
|
||||
|
||||
if(is_numeric($_GET['id']) && bill_permitted($_GET['id']))
|
||||
{
|
||||
|
||||
$ports = mysql_query("SELECT * FROM `bill_ports` AS B, `ports` AS P, `devices` AS D
|
||||
WHERE B.bill_id = '".mres($_GET['id'])."' AND P.interface_id = B.port_id
|
||||
AND D.device_id = P.device_id");
|
||||
|
||||
} else {
|
||||
echo("Unauthorised");
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user