I have updated the script to make it work with 6.0.x as well as 6.1+ as was mentioned in this thread. I also added the more detailed error check and added the extra information to make it more user friendly as was suggested as well. Some cosmetic changes were made as well.
It is still the same script that JustDave wrote though, so all credit should go to him.
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.