Проблем при интегрирането.(излизат грешки)

  • Автор Автор DIE
  • Начална дата Начална дата

DIE

Registered
Код:
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /home/features/public_html/www.cs-on.com/index22.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /home/features/public_html/www.cs-on.com/index22.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /home/features/public_html/www.cs-on.com/index22.php:1)


Ето тази грешка ми излиза,в сайта,като интегрирам форума си (phpBB 3.0.7).

Направил съм файл със име: common.php ето го:
Код:
<?php
/*// PHPBB2 Integration
define('IN_PHPBB', true);
$phpbb_root_path ='forum/';
include($phpbb_root_path . 'config.php');
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
*/// PHPBB2 Integration END

// PHPBB3 Integration
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './forums/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('viewforum');
// $db->sql_query("SET NAMES `cp1251`");
 $db->sql_query("SET CHARACTER SET 'cp1251'");

// BBCODE INTEGRATION
$allow_bbcode = true;
$allow_urls = true;
$allow_smilies = true;
$flags = (($allow_bbcode) ? 1 : 0) + (($allow_smilies) ? 2 : 0) + (($allow_urls) ? 4 : 0);
// BBCODE INTEGRATION END
// PHPBB3 Integration END
?>

И във всички страници съм добавил това:
Код:
<?
include("common.php");
?>

Пробвах няколко начина,но нямах успех...
Дано ми помогнете.
 
Заради това мразя интегрирането не можах да оправя този проблем и се отказах ;д някой ако може да хелп и на мен ми трябва
 
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . '/common.' . $phpEx);
include($phpbb_root_path . '/includes/functions_display.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
?>
Пробвай така
EDIT:
И ако искаш си добави тфа другото което искаш. :)
 
Ако си регистриран - не излизат.
Ако си гост - излизат:

phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /home/features/public_html/www.cs-on.com/index22.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /home/features/public_html/www.cs-on.com/index22.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /home/features/public_html/www.cs-on.com/index22.php:1)
 

Back
Горе