here's the code now:
<html>
<head>
<title>the myspace resource: LIVE layout preview browser v.1</title>
</head>
<body>
<?php
// standard hack prevent
define('IN_PHPBB', true);
$phpbb_root_path = '../phpBB/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
// standard session management
$userdata = session_pagestart($user_ip, layout_browser);
init_userprefs($userdata);
//
// The user is not authed, if they're not logged in then redirect
// them, else show them an error message
//
if ( !$is_auth[$is_auth_type] )
{
if ( $userdata['session_logged_in'] )
{
//start
$topic_id = $_POST[topic_id];
if (isset($topic_id)){
echo("
<frameset rows=\"131,*\" framespacing=\"0\" border=\"0\" frameborder=\"no\">
<frame name=\"layoutSelection\" src=\"./topFrame.php?topic_id=$topic_id\" marginheight=\"10\" noresize frameborder=\"no\" scrolling=\"no\">
<frame name=\"layoutPreview\" src=\"./layoutPreview_phpBB.php?topic_id=$topic_id\" marginheight=\"10\" noresize frameborder=\"no\">
</frameset>
");
}else{
echo ("
<frameset rows=\"131,*\" framespacing=\"0\" border=\"0\" frameborder=\"no\">
<frame name=\"layoutSelection\" src=\"./topFrame.php?topic_id=$topic_id\" marginheight=\"10\" noresize frameborder=\"no\" scrolling=\"no\">
<frame name=\"layoutPreview\" src=\"./layoutPreview_phpBB.php?topic_id=$topic_id\" marginheight=\"10\" noresize frameborder=\"no\">
</frameset>
");
}
//end
}
switch( $mode )
{
case 'newtopic':
$redirect = "mode=newtopic&" . POST_FORUM_URL . "=" . $forum_id;
break;
case 'reply':
case 'topicreview':
$redirect = "mode=reply&" . POST_TOPIC_URL . "=" . $topic_id;
break;
case 'quote':
case 'editpost':
$redirect = "mode=quote&" . POST_POST_URL ."=" . $post_id;
break;
}
redirect(append_sid("login.$phpEx?redirect=../layoutPreview/layoutBrowser.php" . $redirect, true));
}
?>
</body>
</html>
and i get this:
[client 69.229.8.247] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/myspace.AsianStyleTech.com/layoutPreview/layoutBrowser.php:6) in /home/myspace.AsianStyleTech.com/phpBB/includes/sessions.php on line 329, referer: http://www.myspaceresource.com/layoutPreview/topFrame.php?topic_id=70
[client 69.229.8.247] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/myspace.AsianStyleTech.com/layoutPreview/layoutBrowser.php:6) in /home/myspace.AsianStyleTech.com/phpBB/includes/sessions.php on line 330, referer: http://www.myspaceresource.com/layoutPreview/topFrame.php?topic_id=70
[client 69.229.8.247] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/myspace.AsianStyleTech.com/layoutPreview/layoutBrowser.php:6) in /home/myspace.AsianStyleTech.com/phpBB/includes/functions.php on line 804, referer: http://www.myspaceresource.com/layoutPreview/topFrame.php?topic_id=70
😕