check from custom front php page if its executed by cms admin or cms admin is logged in

By daniel - January 4, 2022

Hi Karls,

Admin users have a flag set when they log in which can be checked like this:

global $CURRENT_USER;
if (!empty($CURRENT_USER['isAdmin'])) {
  // execute admin-only code here
}

Let me know if that works for you, or if you have any other questions!

Thanks,

Daniel
Technical Lead
interactivetools.com

By ht1080z - January 4, 2022 - edited: January 4, 2022

You right Daniel, thank you!