5
Hi, i'm writing external php scripts to include in a website running XOOPS for a client of my own company.
I started as a n00b with xoops, so i first began studying how XOOPS works with MySQL databases and use my scripts to interact with XOOPS data in MySQL db.
Well now i'm writing a bunch of scripts to allow users to post their curriculum online and a picture to ask for an employment . I'm also building a search engine for the company to search curriculums data for the requirements they are looking for, such as experiences and skills.
My problem is to interact with XOOPS permissions, like only users that are logged in XOOPS ( user.php ) and are part of a certain group can post their curriculum and the picture.
The second issue is that i need to let only users in the group agents ( that i've previously created ) to search the curriculum databases and get the results they need.
What i've to include in my php scripts to be sure that a not logged in user can post and search for data ?
Which are the variables that XOOPS use to decide that a user is logged in or not and in which group the user is ?
Help would be really appreciated.
Thanks
Francesco Fazio