I would like to add some PHP scripts (which are not available in SPIP) for my users. But, it would be great to authorize users to those scripts through SPIP's cookie.
Does anybody know the best PHP-way to check which user is logged in and what are his privileges.
My intention is to use SPIP's authorization system to allow/disable access to another script.
Example: if my user is logged to SPIP and has admin privileges, he can access the script for poll editing. If he is not logged in, he can't access that script. So, I don't need multiple login screens (for login to SPIP, login to this script, login to another script etc.)
M.