Nimm mal das hier (am Anfang deiner Datei)
Code: Alles auswählen
define('IN_PHPBB', TRUE);
Code: Alles auswählen
include("../../forum/includes/functions_posting.php");
include("../../forum/includes/functions_content.php");
include("../../forum/includes/constants.php");
und setze das hier
Code: Alles auswählen
define('IN_PHPBB', true);
$phpbb_root_path = '../../forum/';
$phpEx = 'php';
include($phpbb_root_path.'common.'.$phpEx);
include($phpbb_root_path . 'includes/functions_posting.' . $phpEx);
include($phpbb_root_path . 'includes/functions_content.' . $phpEx);
include($phpbb_root_path . 'includes/constants.' . $phpEx);
include($phpbb_root_path . 'includes/message_parser.' . $phpEx);
$user->session_begin();
$auth->acl($user->data);
$user->setup();
P.S. Ansonsten schau dir mal das Beispiel hier an Automatically Create Post from Non-Forum Page
Grüße: Mahony