How can I get the vbulletin hashlist on another page? (PHP)

I want to get the output hash for vBulletin so that I can reference the output bit directly from my main site.

How can i do this? (in PHP)

+2


source to share


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&amp;logouthash=' . $vbulletin->userinfo['logouthash'] . '">Logout</a>';
}
?>

      

+6


source







All Articles