Page 1 of 1

How do I integrate isAdmin() into my own admin module?

PostPosted: Mon May 11, 2009 11:53 am
by yvan
I'm in the process of trying to extend the admin site with my own custom PHP module (for batch uploading and importing records).

I am not using the existing hooks for this within the DataFace framework. I'm instead just creating my own procedurally programmed module and integrating it into the admin via a popup layer.

I need to make certain that only users who are logged in as admin are able to access my custom PHP module, and am trying to make use of the isAdmin() function withing the functions.inc.php file. What is the proper way for me to go about this?

Thanks in advance,
- Yvan