The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
using the PHP::Interpreter Perl module
I have a review scipt written in Perl and I want to validate users' login status using the $vbulletin->userinfo['userid'] value: if it's not zero then I let them in. I decided to try using the embedded php intrepreter Perl module and the basic functionality is OK but it seems to give a zero result all the time instead of only when I'm logged out.
I'm wondering whether when this module is instantiated it loses sight of the GPC array by operating in a new environment. Has anyone else tried this Perl module? Is there another way I can check the user login status (apart from cookie detecting)? I'd prefer a solution that is independant of cookies because they are open to abuse. |
#2
|
||||
|
||||
Ultimately you are going to have to use the vb cookie, as that's how vb works. Can your script query the vb database ? if so you could pull the session id from the cookie and query the vb session table to find the userid of that session.
|
#3
|
|||
|
|||
I can access the vb3_userid cookie already. Oh well. Thanks anyway.
|
#4
|
||||
|
||||
The userid cookie is easy to fake, the session id is not.
|
#5
|
|||
|
|||
Yes well that's true. OK good tip. Thanks.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|