The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to include global.php?
Hi!
I'm making external php script and I need to get some information about user, etc. In VB4 for example, I did it like this to check if user is logged in or not: HTML Code:
require_once('./global.php'); global $db; global $vbulletin; $userid = $vbulletin->userinfo["userid"]; if ($userid == "") die; Thanks! |
#2
|
||||
|
||||
try to use that code
PHP Code:
|
#3
|
|||
|
|||
Thank you! It's working!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|