Home : Products : Gossamer Links : Development, Plugins and Globals :

Products: Gossamer Links: Development, Plugins and Globals: Re: [swissbob] Auth_vBulletin and Authentication: Edit Log

Here is the list of edits for this post
Re: [swissbob] Auth_vBulletin and Authentication
You could use SSI

<!--#include virtual="/vb.php"-->

my vb.php is something like this.

Code:

<?php
chdir("path/to/forum");
require('../forum/global.php');
include('../forum/includes/functions_user.php');

// user logged in
if ($vbulletin->userinfo['userid'])
{
echo "<a href=/forum/login.php?$session[sessionurl]do=logout&amp;logouthash=$logouthash";
echo $vbulletin->userinfo['logouthash'];
echo ">";
echo " Log Out";
echo "</a>";
}

// user logged out
if ($vbulletin->userinfo['userid'] == '')
{
print '<a href="/forum/register.php" rel="nofollow">Register</A>';
if ($vbulletin->userinfo['userid'] == 0)
{
echo "<a href=\"/cgi-bin/dir/user.cgi?url=" . $_SERVER['REQUEST_URI'] . "\" rel=\"nofollow\">Login</a>";
}
}
?>

Last edited by:

garrynz: Nov 19, 2006, 2:03 AM

Edit Log: