Добавлено спустя 45 секунд:
О... вы уже даже ответить смогли...
Как оперативно
Вывод неверный. Вывод: руки из неправильного места растут.Psytodelist писал(а): Вывод: не помогло.
Код: Выделить всё
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Документ без названия</title>
</head>
<body>
<?php
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);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
// Get users online list
$l_online_users = $online_userlist = $l_online_record = '';
$online_users = obtain_users_online(0);
$user_online_strings = obtain_users_online_string($online_users, 0);
$l_online_users = $user_online_strings['l_online_users'];
$online_userlist = $user_online_strings['online_userlist'];
$l_online_record = sprintf($user->lang['RECORD_ONLINE_USERS'], $config['record_online_users'], $user->format_date($config['record_online_date']));
// Output
echo $l_online_users;
echo '<br />' . $l_online_record;
echo '<br /><br />' . $online_userlist;
?>
</body>
</html>Код: Выделить всё
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Документ без названия</title>
</head>
<body>
Сейчас посетителей на форуме: <strong>1</strong>, из них зарегистрированных: 1, гостей: 0<br />Больше всего посетителей (<strong>2</strong>) на форуме было 14 мар 2010, 18:51<br /><br />Зарегистрированные пользователи: <a href="../memberlist.php?mode=viewprofile&u=2" style="color: #AA0000;" class="username-coloured">Oriander</a></body>
</html>
Код: Выделить всё
header('Content-type: text/html; charset=UTF-8');[phpBB Debug] PHP Notice: in file /includes/index.php on line 22: Cannot modify header information - headers already sent by (output started at /includes/index.php:9)

Код: Выделить всё
<?php
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);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
header('Content-type: text/html; charset=UTF-8');
// Get users online list
$l_online_users = $online_userlist = $l_online_record = '';
$online_users = obtain_users_online(0);
$user_online_strings = obtain_users_online_string($online_users, 0);
$l_online_users = $user_online_strings['l_online_users'];
$online_userlist = $user_online_strings['online_userlist'];
$l_online_record = sprintf($user->lang['RECORD_ONLINE_USERS'], $config['record_online_users'], $user->format_date($config['record_online_date']));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Документ без названия</title>
</head>
<body>
<?
echo $l_online_users;
echo '<br />' . $l_online_record;
echo '<br /><br />' . $online_userlist;
?>
</body>
</html>Очень полезная штука, но, если её выносишь из папки forum она работает, но происходит разлогинивание на форуме.Nekstati писал(а):Изменять нужно одну строку: PHPBB_ROOT_PATH : './forum/'
