Код: Выделить всё
<?php
global $user;
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'forum/phpBB3/language/ru/acp/common.' . $phpEx);
$user->session_begin();
$auth->acl($user->data);
$user->setup();
$USUS = $user->data['user_id'];
$USUS =$USUS;
echo $USUS;
?>
Код: Выделить всё
Fatal error: Uncaught Error: Call to a member function session_begin() on null in D:\OpenServer\OSPanel\domains\sayt\testSayt\indexTest.php:7 Stack trace: #0 {main} thrown in D:\OpenServer\OSPanel\domains\sayt\testSayt\indexTest.php on line 7. 7
$user->session_begin();
что делать ?