refactor: Centralize includes and initialization (#4991)

This commit is contained in:
Tony Murray
2016-11-21 14:12:59 -06:00
committed by Neil Lathwood
parent bbf05feb90
commit 9a33464c52
61 changed files with 326 additions and 578 deletions

View File

@@ -1,7 +1,6 @@
<?php
// Authorises bill viewing and sets $ports as reference to mysql query containing ports for this bill
require '../includes/billing.php';
if (is_numeric($_GET['id']) && ($auth || bill_permitted($_GET['id']))) {
$bill = dbFetchRow('SELECT * FROM `bills` WHERE bill_id = ?', array($_GET['id']));