phpBB login



I'm trying to create some code to read the phpBB login info. However,
when I run it, it just says 'Hacking attempt' and exits. Any ideas why
this is?

My phpBB access code is:

define('IN_PHPBB', true);
$phpbb_root_path = './';
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
//

.