The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Has the Logout Hash algorithm changed?
We've set up a test server with the latest ver 3.7.4 I noticed the logout hash has changed.
At present, we are running on 3.6.8 and is running fine. May I know what's the latest algo to generate logout hash? Thank |
#2
|
||||
|
||||
Yes, the logout hash has changed in vBulletin 3.7.
Pre-3.7 Logout Hash PHP Code:
PHP Code:
PHP Code:
|
#3
|
|||
|
|||
Many Thanks.
I suggest this thread be moved to the FAQ. Or, is the new algo change reflected inthe vBulletin manual? Thanks |
#4
|
||||
|
||||
I do not believe any algorithms are in the manual in the first place.
|
#5
|
|||
|
|||
How do you generate the value of "COOKIE_SALT"?
|
#6
|
||||
|
||||
COOKIE_SALT is your license number. (NOT your customer number!)
|
#7
|
|||
|
|||
Thanks Dismounted.
Are you able to confirm this is the correct mysql syntax for the new 3.7 algo? The result is vastly different. Code:
select sha1(concat(user.userid,sha1( user.salt ),sha1('MYLICENSENUMBER'))) AS logouthash2 from user Is the unix timestamp any significant? Thanks |
#8
|
||||
|
||||
Ah yes, I forgot about that. They actually changed the algorithm (again), in a later version. The algorithm I provided will work, but will not provide a time "expiry" check. The algorithm you mention is this ($rawhash being the result of the algorithm I gave you before):
PHP Code:
|
#9
|
|||
|
|||
*strangles dismounted* . LOL!
Thanks! Okay. Any insights on how to generate the constant TIMENOW? I'm sure it's not as straight forward as mysql's UNIX_TIMESTAMP() nor php's time() |
#10
|
||||
|
||||
TIMENOW is just generated with time(). vBulletin uses TIMENOW to keep the time constant over the entire script's execution.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|