• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

user sessions problem

I am new to xenforo now, and before i used phpbb3. I have a php quiz and implemented user sessions from phpbb from where i collect the username. I used this code for phpbb:
define('IN_PHPBB', true);
$phpbb_root_path = '/home/site55/public_html/board/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
//Get the username of the result set sender
I now i need to implement this in using xenforo, so i searched here in forum and i think i found the way to do it but i am getting an error:
Fatal error:  Class 'GeekPoint_Symfony' not found in /home/site55/public_html/collector/results.php on line 11
The code that i used to replace that from phpbb is this:
$startTime = microtime(true);
$xenforoRoot = '/home/site55/public_html/board/';
// Setup XenForo's autoloader
require_once($xenforoRoot . '/library/XenForo/Autoloader.php');
XenForo_Autoloader::getInstance()->setupAutoloader($xenforoRoot . '/library');
// Initialize the XenForo Framework
GeekPoint_Symfony::initializeXenforo($xenforoRoot, $startTime);
// You can fetch user data using the visitor object
$visitor = XenForo_Visitor::getInstance();
$user_id = $visitor->getUserId();
$username = $visitor->get('username');
$email = $visitor->get('email');
at kotomiindexfile i writed this:
$kotomi_indexFile = "/home/site55/public_html/board/";
and i am getting this error, this script i think is taking the directory where the example file is + kotomi indexfile directory.
Warning:  require(/home/site55/public_html/collector//home/site55/public_html/board/library/Dark/Kotomi/KotomiHeader.php) [function.require]: failed to open stream: No such file or directory in /home/site55/public_html/collector/results.php on line 7