Removed unused cached_query_value function. Source code formatted.
Reformatted code and fixed couple of HTML errors.
Refactored some mysql functions to use PDO extension. Renamed is_admin and is_editor function names to be PSR compliant (CamelCase). Reformatted source code and various fixes.