Is there a function to obtain the id of the logged in admin?
There is an global object var for that: http://www.zenphoto.org/2008/07/zenphotos-global-variables/
Also look at the class methods of zp-core/lib-auth.php.
zp-core/lib-auth.php