Your forum seems to be working... ok, but not your control panel. If you've modified your control panel files, you need to go back over what might have been done wrong. We can't help you there unless you tell us what you've added.
Other than that, you'll need to re-upload clean un-modified cp cgi files and template files (in ascii) and set their correct permissions.
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.