It's relativly simple to do this, but to achieve the effect you want you will need to include the phpBB files and create a phpBB session. Here's some code -
PHP Code:
define('IN_PHPBB', true);
$phpbb_root_path = './'; // path to phpBB root, include trailing slash
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);
Also, to create a login form, you can do this -
PHP Code:
<form method='post' action='path/to/login.php'>
<input type='hidden' name='redirect' value='<?=$_SERVER['SCRIPT_NAME"]?>' />
Username: <input type='text' name='username' />
Password: <input type='password' name='password' />
<input type='submit' name='login' value='Login!' />
</form>
Bookmarks