подскажите пожалуйста что я делаю не так.
Провожу инициализацию phpbb:
Код: Выделить всё
require_once $phpbb_root_path . 'config.php'; //настройки подключения к БД
require_once $phpbb_root_path . 'includes/constants.' . $phpEx;
// Подключение к БД
require_once $phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx;
$db = new $sql_db();
$db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false, defined('PHPBB_DB_NEW_LINK') ? PHPBB_DB_NEW_LINK : false);
//Загрузка настроек
require_once $phpbb_root_path . 'includes/acm/acm_' . $acm_type . '.' . $phpEx;
require_once $phpbb_root_path . 'includes/cache.' . $phpEx;
$cache = new cache();
$config = $cache->obtain_config();
require_once $phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx;
require_once $phpbb_root_path . 'includes/functions.' . $phpEx;
require_once $phpbb_root_path . 'includes/functions_user.' . $phpEx;
require_once $phpbb_root_path . 'includes/functions_content.' . $phpEx;
require_once $phpbb_root_path . 'includes/session.' . $phpEx;
require_once $phpbb_root_path . 'includes/auth.' . $phpEx;
require_once $phpbb_root_path . 'includes/template.' . $phpEx;
$template = new template();
$user = new user();
$auth = new auth();
далее прописываю:
$text= generate_text_for_display($row['post_text'], $row['bbcode_uid'], $row['bbcode_bitfield'], 7);
$row - строка из таблицы phpbb_posts
выдает ошибку Fatal error: Call to a member function optionget() on a non-object in Z:\home\dle94.info\www\forum\includes\functions_content.php on line 700