Hiya
It's been ages since I visited these boards. My amateur dabblings with PHP got put on hold and I'm now getting paid to do .Net work!!!
Anyway, I'm trying to help a friend set up a site. It will host videos in a similar fashion to YouTube. In fact, he's bought a package called ClipShare to do this. ClipShare allows users to register an account.
It doesn't come with a forum so we've decided to run with phpBB. My task is to try and integrate the two registration systems.
What we want is for the ClipShare registration to generate a phpBB registration too. And, we want logins and logouts to be controlled through the ClipShare end so that only one login is required to use both parts of the site.
I suspect it isn't a hugely difficult task, but I've hit upon a problem quite early on.
What I'm trying to do is get a page on the ClipShare side of things to recognise the phpBB user.
define('IN_PHPBB', true);
$site_root_path = $_SERVER["SITE_HTMLROOT"] . '/rodders/'; $phpbb_root_path = $_SERVER["SITE_HTMLROOT"] . '/forum/';
// Start session management phpbb3
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . '/common.' . $phpEx);
include($sitephpbbroot_path . '/includes/functions_display.' . $phpEx);
@ $user->session_begin();
$auth->acl($user->data);
//TEST
if($user->data['is_registered']) {
echo ('RODDERS says you are logged in.');
} else {
echo ('RODDERS says you are NOT logged in.');
}
//END TEST
When I view the page, I get an error saying
"Warning: main() [function.main]: open_basedir restriction in effect. File(/forum//common.php) is not within the allowed path(s):"
Can anyone shed some light on this?
Many Thanks