Refactored inc/reports.php, now uses prototypes.