Code: Select all
// Get forums that current user has read rights to.
$forums = array_unique(array_keys($auth->acl_getf('f_read', true)));
Code: Select all
// Start session management
//$user->session_begin();
//$auth->acl($user->data);
//$user->setup();
Code: Select all
line $url = generate_board_url() . "viewtopic.{$phpEx}?f={$row['forum_id']}&t={$row['topic_id']}&p={$row['post_id']}#p{$row['post_id']}";
Code: Select all
$url = generate_board_url() . "/fedforum/viewtopic.{$phpEx}?f={$row['forum_id']}&t={$row['topic_id']}&p={$row['post_id']}#p{$row['post_id']}"; //added fedforum to url
and instead of thisline $url = generate_board_url() . "viewtopic.{$phpEx}?f={$row['forum_id']}&t={$row['topic_id']}&p={$row['post_id']}#p{$row['post_id']}";
Code: Select all
// Start session management
//$user->session_begin();
//$auth->acl($user->data);
//$user->setup();
Code: Select all
// Start session management
$user->session_begin();
$auth->acl($user->data);
// Grab user preferences
$user->setup();
Code: Select all
header('Set-Cookie: ' . $name_data . '; expires=' . $expire . '; path=' . $config['cookie_path'] . $domain . ((!$config['cookie_secure']) ? '' : '; secure') . '; HttpOnly', false);
pbcd2000 wrote:Thanks for that, I seem to be having another problem now however due to where I have placed the code in my site, under Nestcape/Mozilla I get errors relating to the session
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /public_html/index.php:6)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /public_html/index.php:6)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /public_html/index.php:6)
I am not sure how to resolve this yet as I am a little outside my comfort zone in this php file, any suggestions would be appreciated. Under IE these errors don't appear all the time, only every now and again, so maybe it's a cache issue, not sure.
Paul