PDA

View Full Version : AMFPHP + PHPBB - Integration possible?


gast0n
12-04-2007, 08:57 PM
I'm trying to integrate the phpbb3 framework with amfphp 1.9 without any luck.

I've tried to understand other integrated framworks such as CakePHP, Wordpress and compare the modifications with the original AMFPHP-files. My PHP experience is limited...

I like to run the following code in my service and using functions from the phpbb3-framework (not the complete code from my service):


define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : realpath(dirname(dirname(__FILE__))) . "/phpbb/";
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);

$user->session_begin();
$auth->acl($user->data);
$user->setup();

// then get the username and so on from the database
$user->data['username']


Anyone knows where to begin?
Is this possible?