Log in

View Full Version : Securitytoken in PHP?


exportforce
08-01-2014, 10:21 AM
Hello,

how do I implement the security token in a PHP file? $bbuserinfo[securitytoken] is empty.
Since I generate my whole form in PHP I can't use the <vb:raw for that.

thanks

edit: Okay found it... $vbulletin->userinfo['securitytoken']
Funnily, when I Google VBulletin 4 and Security Token only stuff about templates is being shown, via german Google.
Well on some site very hidden I found that array and tried it, worked.

Scanu
08-01-2014, 01:04 PM
Yes exactly $userinfo is an array available only in templates, on php code the equivalent is $vbulletin->userinfo