I'm not sure if anyone has made the login pal a standalone script or not. One of the problems you may be having is that the index.php page does the authentaction and the loginpal.php script displays accordingly. Also, make sure that the send_header function isn't being used more than once as this will cause the "headers already sent" error too.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.