Nope, actually it's the parameter in `zp-config.php` in your `/zen` directory.
Change:
`$conf['mod_rewrite'] = true;`
to:
`$conf['mod_rewrite'] = false;`
The gallery is currently messed up because you turned off the actual rewriting, but Zenphoto still thinks the URLs should be mod_rewritten.