This is setup protection and occurs after setup has run. It does not require uploading of files: Please see here:
https://www.zenphoto.org/news/installation-and-upgrading/#--re-running-and-re-uploading-setup-files
How to login as admin if setup is disabled?
Please see: https://www.zenphoto.org/news/login-and-password-problems/#----what-is-the-link-to-login-on-the-backend--
Any way to disable this feature?
There is no way to disable this feature
There should be a htaccess template file within zp-core which setup would use to create the actual root .htaccess file from. And it is for sure there:
https://github.com/zenphoto/zenphoto/blob/master/zp-core/htaccess
If this for some reason didn't happen - sometimes setup failes to recognice that modrewrite is active as there is not really secure way to check that - you can just copy it to root and rename it. Change the rewrite base to your install's and/or re-run setup.
Thte htacces from 1.2.8.0 is outdated, current version is 1.4.12.
Ok, I've copied /zp-core/htaccess from upgrade package to /zp-core/.htaccess. There already was a /zp-core/htaccess, looks like upgrader copied it without renaming it. I upgraded directly from 1.2.9 to 1.5.7, there were a lot of errors but gallery seems to be working ok. Are there any problems I should look out for?
Ok, I've copied /zp-core/htaccess from upgrade package to /zp-core/.htaccess.
You misunderstood. The .htaccess file must be in the root of your install. The backend does not use rewritten urls.
https://www.zenphoto.org/news/installation-and-upgrading/#--content-of-the-zenphoto-package