PDA

View Full Version : help with this code


Benj
07-07-2005, 01:38 PM
//CHECK PERMISSION
chdir('../forums');
require_once('./global.php');
if (!$bbuserinfo['userid'] OR !($permissions['forumpermissions'] & CANVIEW))
{
eval('print_output("' . fetch_template('jamroom_notloggedin') . '");');
}
chdir('../jamroom');

//END PERMISSION

im using jamroom on my artists site, this code checks to see if a user is loged in to vb if im right......... is there any way to expand this code to i can pass the loged in users username to the jamrrom page i put this code on ?