Bug fixes

Added a fail safe for .htaccess should work on any apache now.
Added rank verification for admin pages.
Updated a logon function to use mysqli.