Sounds like that. It is also possible that the server itself and not Zenphoto specifially was hacked if you did not set the right file/folder permissions. Please see the troubleshooting guide about that. Best you also contact your host about that, too.
Also a good occasion to update to 1.2.6 btw...