Topic: punBB integration code and function/classes
I have a problem when using punBB code inside functions/classes of my CMF - i get errors that something is not set/not present etc. What variables etc. should be in the global statement for it to work?
function foo()
{
global WHAT?;
define('PUN_ROOT', 'punbb/');
require PUN_ROOT.'include/common.php';
IF($pun_user['group_id'] == 3) return false;
IF($pun_user['username'] == 'Guest') return false;
IF($pun_user['password'] == 'Guest') return false;
IF($pun_user['id'] == 1) return false;
return true;
}