I don't see the problem by looking at the files.
I'll need to debug them directly if you want help. If you post FTP information for your site and specific steps including the username and password you are using and pages you are trying to access so I can reproduce the problem, then I can debug it and get back to you with information about why it might not be working correctly.