ZenphotoCMS Forum
Global Variables not available - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Global Variables not available (/thread-11851.html)



Global Variables not available - Incubbus - 2014-07-01

I was trying to print out user credentials in my sidebar, so i first tried to var_dump some of the global variables.
(http://www.zenphoto.org/news/zenphotos-global-variables)

But surprisingly this did not work.
E.g. $_zp_admin_users, $_zp_current_admin (after admin logon) are not present and var_dump prints out NULL.




Global Variables not available - acrylian - 2014-07-01

Thanks, apparently we forgot to update that article… The current admin is in $_zp_current_admin_obj and the full user set in $_zp_authority.




Global Variables not available - Incubbus - 2014-07-01

Thank You for the reply!...

Found it out, too, by eating myself through the core-files ^^