1
I want to "borrow" the user authentication that XOOPS provides. This is what I managed to find out. I need to know if this is *RELIABLE* or not:
1. PLACE YOUR NEW PHP FILE SOMEWHERE IN XOOPS INSTALL BASE
2. FILE CONTAINS:
include_once 'mainfile.php';
if (isset ($xoopsUser))
{
$uname = $xoopsUser->getVar('uname');
// USER IS AUTHENTICATED, AND $uname IS THEIR USER NAME
}
3. Use $uname as the authenticated user name since you can "trust" that they have logged in correctly.
Note that this *seems* to work fine, I just want to know if the magic variable $xoopsUser is reliable.