PHPBB 3.3.0外部登录页面不再起作用

时间:2020-01-19 19:31:07

标签: php phpbb php-7.4

自2015年以来,我在网站上使用了外部phpbb 3.0登录页面。 很好,但是当我将phpbb版本更新为3.3,将PHP 5.6更新为PHP 7.4时,会话将不再麻烦。

我使用了这个简单的代码,它很完美。不幸的是,我在phpbb.com上没有找到我的问题的任何答案。

有什么主意吗?

代码:

define('IN_PHPBB', true);
$phpbb_root_path = dirname(__FILE__) . '/forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include("forum/common.php");
include("includes/config.php");
include("forum/includes/functions_user.php");
include("forum/includes/functions_module.php");
include("forum/includes/bbcode.php");


// Start session management 
$user->session_begin();
$auth->acl($user->data);
$user->setup();

print $user->data['username'];

当我登录此页面或直接在论坛中时,我仅获得“匿名”用户名。 意见不起作用。

0 个答案:

没有答案
相关问题