Ersetze
Code: Alles auswählen
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
Code: Alles auswählen
// Begin PNphpBB2 Module
if (!defined("LOADED_AS_MODULE")) {
die ("You can't access this file directly...");
}
global $pnconfig;
$pntable = pnDBGetTables();
$ModName = basename( dirname( __FILE__ ) );
//End PNphpBB2 Module
define('IN_PHPBB', true);
// Begin PNphpBB2 Module
$phpbb_root_path = './modules/' . $ModName . '/';
//End PNphpBB2 Module
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
// Begin PNphpBB2 Categories Hierarchie Mod
include($phpbb_root_path . 'includes/functions_cat.'.$phpEx);
// End PNphpBB2 Categories Hierarchie Mod
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
Notlösung wäre es evtl die localisationsdaten im pnphpbb zu speichern und die mit einem modifizierten phpbb und map mod zu verarbeiten, aber das wäre echt müll.