2012-07-03, 06:06 PM
Hi,
I am using MyBB 1.6.8 with the MyBBIntegrator
I am having issues logging out externally from MyBB, i have no problem at all logging in, i am trying the normal $MyBBI->logout(); function, but it does not work.
function_logout
The logoutkey does not show up outside mybb, in other words, the variable does not exist..
example.com?logoutkey=THE_LOGOUTKEY_OF_THE_USER
You can access the logoutkey with $MyBBI->mybb->user['logoutkey']
This is what i have (logoutkey is blank):
<?php
define('IN_MYBB', NULL);
global $mybb, $lang, $query, $db, $cache, $plugins, $displaygroupfields;
require_once '/xxx/xxx/mybbforum/global.php';
require_once '/xxx/xxx/class.MyBBIntegrator.php';
$MyBBI = new MyBBIntegrator($mybb, $db, $cache, $plugins, $lang, $config);
print $MyBBI->mybb->user['logoutkey'];
?>
Could someone give me a helping hand? I'd be gladful.
I am using MyBB 1.6.8 with the MyBBIntegrator
I am having issues logging out externally from MyBB, i have no problem at all logging in, i am trying the normal $MyBBI->logout(); function, but it does not work.
function_logout
The logoutkey does not show up outside mybb, in other words, the variable does not exist..
example.com?logoutkey=THE_LOGOUTKEY_OF_THE_USER
You can access the logoutkey with $MyBBI->mybb->user['logoutkey']
This is what i have (logoutkey is blank):
<?php
define('IN_MYBB', NULL);
global $mybb, $lang, $query, $db, $cache, $plugins, $displaygroupfields;
require_once '/xxx/xxx/mybbforum/global.php';
require_once '/xxx/xxx/class.MyBBIntegrator.php';
$MyBBI = new MyBBIntegrator($mybb, $db, $cache, $plugins, $lang, $config);
print $MyBBI->mybb->user['logoutkey'];
?>
Could someone give me a helping hand? I'd be gladful.