Code: Select all
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './forum/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
if($userdata['session_logged_in'])
{
echo('Hi ' . $userdata['username'] . '!');
}
else
{
echo('You are a guest');
}
?>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
<a href="bb">Link text</a>
</body>
</html>
my directory structure ...htdocs/test/forum
1.the above file i named index.php...when it opens it displayed accurately you are a guest..
but when i log in to phpbb.....the problem is that after fillin the log in details when i click
log in button ,it end up in this http://localhost/forum/index.php?sid=e8 ... b4b2a10511
but it should have ended like this http://localhost/test/forum/index.php?s ... b4b2a10511
as the former url dosent exist it displays url dont found...
but when i manually type the later url..it shows me logged in......and log out also face the same problem...........
where is the problem?