This version is fully functional but could use a LOT of optimization. The code in events.php and stats.php is very poorly written.