fer_75
04-05-2011, 08:35 PM
Hi,
Please help me!!!
My forum is installed on site.com/forum/
in my root index.php file I need to detect if user is logged in or not to have different link options:
Link visitor or Link user
This file is working perfect if it is located on the forum folder. But is use it from root folder i will not work.
<?php
// check.php
session_start();
include('/home/eagle/public_html/board/global.php');
if($vbulletin->userinfo['userid'] > 0){
echo 'user is logged in';
} ELSE {
echo 'user is not logged in';
}
?>
Please help!
Please help me!!!
My forum is installed on site.com/forum/
in my root index.php file I need to detect if user is logged in or not to have different link options:
Link visitor or Link user
This file is working perfect if it is located on the forum folder. But is use it from root folder i will not work.
<?php
// check.php
session_start();
include('/home/eagle/public_html/board/global.php');
if($vbulletin->userinfo['userid'] > 0){
echo 'user is logged in';
} ELSE {
echo 'user is not logged in';
}
?>
Please help!