PDA

View Full Version : How to check whether user is logged into admin CP


CFBZ
05-20-2009, 08:42 AM
I was wondering how to check (in code) whether a user is logged into the admin CP. I've already restricted viewing IP addresses to admins only, but for additional security I'd like to modify the postbit_ip template to only show the IP address if the admin has logged into the ACP. I suppose it would be something to do with checking for a cpsession row...