Extending Code Igniter functions to external PHP Scripts
- by Fábio Antunes
Hello everybody.
I'm doing a small web app, which uses CKeditor for user input, and CKfinder for file management (images/flash).
Those who know CKFinder, algo know that the config file for CKFinder as a function named CheckAuthentication() that returns false or true, giving or not permissions to use CKFinder.
This is were a Custom PHP Code checks if the user as authorization to access CKFinder or not.
Well for my app I'm using Code Igniter, and of course I've created a model were i handle everything about User Permissions, Loggin, Session Cookies, etc.
And i also have a function witch its propose is just to check if the user is Logged in.
So I would like to know if someone knows a way that i can call the function isLoggedIn() inside the model security from inside the function CheckAuthentication() in CKFinder config file.
Thanks in advance.