How can I get the vbulletin hashlist on another page? (PHP)
1 answer
The exit hash is dumped into the global userinfo array, so it's available to you when you include the global.php file.
A very simple example of creating a page with only a logout link might look like this (assuming your script is in the vBulletin directory):
<?php
include('./global.php');
if($vbulletin->userinfo['userid'] > 0){
echo '<a href="login.php?' . $session[sessionurl] . 'do=logout&logouthash=' . $vbulletin->userinfo['logouthash'] . '">Logout</a>';
}
?>
+6
source to share