ich rufe folgenden PHP Code aus einem SubFolder über POST Methode in meinem Forum auf:
Code: Alles auswählen
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '../';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
include($phpbb_root_path . 'includes/bbcode.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
Allerdings ist die $user->data["user_id"] immer 0 und der Username immer Anonymous obwohl ich angemeldet bin. Weiss irgendwie nicht weiter

Hab inzwischen das PHP-File auch mal ins Root gestellt mit
Code: Alles auswählen
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '';

Beste Grüße...