Seite 1 von 1

Userdata initialisieren klappt einfach nicht :(

Verfasst: 20.05.2008 19:06
von sagm
Hallo,
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 :( . Hat jemdan einen Tipp für mich was ich falsch mache oder mal probieren kann?

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 : ''; 
Leider auch ohne Erfolg... :cry:


Beste Grüße...