basicguy Posted July 27, 2015 Share Posted July 27, 2015 Hi, I'm trying to adapt a new File Manager that I purchased in order to enhance functionality.The file manager requires that I set up an Auth function similar to the one below, can anyone give me help on this?function auth() { if(isset($_SESSION['authenticated']) && $_SESSION['user_type'] == 'admin') return true; else return false; } Quote Link to comment Share on other sites More sharing options...
bsmither Posted July 27, 2015 Share Posted July 27, 2015 Welcome basicguy! Glad to see you made it to the forums.Please try Admin::getInstance()->is(); // Is the admin for this cookie logged in?A call to this function will return either true or false. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.