is the user logged in ?
Page: 1
Hi,
I installed activeCollab and I'd like to use the authentication system to disable access to some php pages I added.
Is there an easy way to know if a user is logged on without loading all the activeCollab files ? I spent 5 hours yesterday trying to paste code sections from activeCollab to a 'authentication.php' file wich I could include in my php pages.
All I want is if the user has logged on, he can read the page. If he didn't, he is redirected to the login page.
thanks
Chag
I installed activeCollab and I'd like to use the authentication system to disable access to some php pages I added.
Is there an easy way to know if a user is logged on without loading all the activeCollab files ? I spent 5 hours yesterday trying to paste code sections from activeCollab to a 'authentication.php' file wich I could include in my php pages.
All I want is if the user has logged on, he can read the page. If he didn't, he is redirected to the login page.
thanks
Chag
Hi,
In fact, I installed mediawiki and I just want that people who are logged on collab can read the wiki. I added a include in the mediawiki index.php. This include will just check if the user is logged on. If not, then he's redirected to the login page.
I looked at the CompanyWebsite.class.php. From what I understand, I need to :
$foo = new CompanyWebsite;
$foo->init();
then, I should be able to use logged_user().
Am I right ?
In fact, I installed mediawiki and I just want that people who are logged on collab can read the wiki. I added a include in the mediawiki index.php. This include will just check if the user is logged on. If not, then he's redirected to the login page.
I looked at the CompanyWebsite.class.php. From what I understand, I need to :
$foo = new CompanyWebsite;
$foo->init();
then, I should be able to use logged_user().
Am I right ?
Topic is locked. If you have something important to say about issues discussed on this page please write at hi@a51dev.com.



