Extending Code Igniter Model functions to external PHP Scripts
Posted
by Fábio Antunes
on Stack Overflow
See other posts from Stack Overflow
or by Fábio Antunes
Published on 2010-03-20T20:30:15Z
Indexed on
2010/03/20
20:51 UTC
Read the original article
Hit count: 578
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, also 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.
© Stack Overflow or respective owner