There is nothing wrong with config.inc.php that a backup wouldn't resolve.

It's the lock_and_write function in ubbthreads.inc.php that should be shot into orbit...