Using XF in external applications.

koa

Member
Hi!

I have a small frontend application, and I need to use XF and check, whoever is viewing this is an admin or not. I'm hoping I can require XF's application class and check with that. I have the following set-up:

Code:
$fileDir = '../../xf';
require($fileDir . '/src/XF.php');
\XF::start($fileDir);
echo '<pre>'; 
var_dump(XF::App());

XF is an outside directory. I do see by loading this the XF session is there, but I don't see any user session there, nor if I'm logged in or not.

Is this possible without making it into an addon?
 
Back
Top Bottom