Activated permission checks again in Navbar and Home.

Wrapped $_GET and $_POST accesses in functions.

Added getHardwareComponents to DataManagement.