Code: Select all
Warning: Cannot add header information - headers already sent by (output started at /usr/www/varkoume/public_html/mdp/phpBB2/MDP001.php:2) in /usr/www/varkoume/public_html/mdp/phpBB2/includes/page_header.php on line 519
Warning: Cannot add header information - headers already sent by (output started at /usr/www/varkoume/public_html/mdp/phpBB2/MDP001.php:2) in /usr/www/varkoume/public_html/mdp/phpBB2/includes/page_header.php on line 521
Warning: Cannot add header information - headers already sent by (output started at /usr/www/varkoume/public_html/mdp/phpBB2/MDP001.php:2) in /usr/www/varkoume/public_html/mdp/phpBB2/includes/page_header.php on line 522
Is a problem i'm having, here's the code i've used:
MDP001.php
Code: Select all
<?php
// standard hack prevent
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
// standard session management
$userdata = session_pagestart($user_ip, MDP001);
init_userprefs($userdata);
// set page title
$page_title = 'MDP#001 - DJHYPNOTICSTATE - SHULMAN HYPNOTIZED';
// standard page header
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
// assign template
$template->set_filenames(array(
'body' => 'MDP001.tpl')
);
$template->pparse('body');
// standard page footer
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
Code: Select all
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_MDP001' => $lang['MDP001'],
'U_MDP001' => append_sid('MDP001.'.$phpEx),
#
#-----[ OPEN ]------------------------------------------
#
viewonline.php
#
#-----[ FIND ]------------------------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "faq.$phpEx";
break;
#
#-----[ AFTER, ADD ]------------------------------------------
#
case PAGE_MDP001:
$location = $lang['MDP001'];
$location_url = "MDP001.$phpEx";
break;.
#
#-----[ OPEN ]------------------------------------------
#
admin/index.php
#
#-----[ FIND ]------------------------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "index.$phpEx?pane=right";
break;
#
#-----[ AFTER, ADD ]------------------------------------------
#
case PAGE_MDP001:
$location = $lang['MDP001'];
$location_url = "MDP001.$phpEx?pane=right";
break;
#
#-----[ FIND ]------------------------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "index.$phpEx?pane=right";
break;
#
#-----[ AFTER, ADD ]------------------------------------------
#
case PAGE_MDP001:
$location = $lang['MDP001'];
$location_url = "MDP001.$phpEx?pane=right";
break;
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$lang['MDP001'] = 'MDP001';
#
#-----[ OPEN ]------------------------------------------
#
includes/constants.php
#
#-----[ FIND ]------------------------------------------
#
define('PAGE_GROUPCP', -11);
#
#-----[ AFTER, ADD ]------------------------------------------
#
define('PAGE_MDP001', -1045);
And here's what i have for lines 519-522 in my page_header.php starting at 510:
Code: Select all
// Work around for "current" Apache 2 + PHP module which seems to not
// cope with private cache control setting
if (!empty($_SERVER['SERVER_SOFTWARE']) && strstr($_SERVER['SERVER_SOFTWARE'], 'Apache/2'))
{
header ('Cache-Control: no-cache, pre-check=0, post-check=0');
}
else
{
header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache');
$template->pparse('overall_header');
?>
Thanks for helping me out
