Seite 2 von 2

Verfasst: 06.01.2007 18:34
von SKYSURFER2002
hallo,

ich bis nochmal. Das Problem hat sich immer noch nicht gelöst.

Hier mal mein aktueller Code:

Code: Alles auswählen

<?php
/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

define('IN_PHPBB', 1);

if( !empty($setmodules) )
{
   $file = basename(__FILE__);
   $module['Bilder']['TEST'] = "admin_bilder_test.php?action=home";
   return;
}


//
// Load default header
//
$phpbb_root_path = "./../";
require($phpbb_root_path . 'extension.inc');
$no_page_header = true;
require('./pagestart.' . $phpEx);
include($phpbb_root_path . 'bilder_set.'.$phpEx);
include($phpbb_root_path . 'bilder_funktions.'.$phpEx);


if(isset($_GET['action']) && $_GET['action'] == "home")
	{
		print "hallo";
	
		$template->set_filenames(array(
		'body' => 'admin/bilder_pics_body.tpl',
		'header' => 'admin/page_header.tpl'
		));
		
		$template->assign_vars(array(
		'META' => '<meta http-equiv="refresh" content="50;url=' . append_sid("admin_bilder_test.php?action=ausverz") . '">'
		));
	}

if(isset($_GET['action']) && $_GET['action'] == "ausverz")
	{
		$template->set_filenames(array(
		"body" => "admin/bilder_pics_ordner.tpl")
		);
		
		$template->assign_vars(array(
		));
		print "hallo2";
	}

$template->pparse('header');
$template->pparse('body');
include('./page_header_admin.'.$phpEx);	
include('./page_footer_admin.'.$phpEx);	
?>
Doch leider bekomme ich diese Fehlermeldung:
hallo



Warning: Cannot modify header information - headers already sent by (output started at S:\htdocs\phpbb\includes\template.php(127) : eval()'d code:122) in S:\htdocs\phpbb\admin\page_header_admin.php on line 138

Warning: Cannot modify header information - headers already sent by (output started at S:\htdocs\phpbb\includes\template.php(127) : eval()'d code:122) in S:\htdocs\phpbb\admin\page_header_admin.php on line 144

Warning: Cannot modify header information - headers already sent by (output started at S:\htdocs\phpbb\includes\template.php(127) : eval()'d code:122) in S:\htdocs\phpbb\admin\page_header_admin.php on line 145
im Quelltext sieht alles richtig aus.
hallo<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="">
<head>
<meta http-equiv="refresh" content="50;url=admin_bilder_test.php?action=ausverz&sid=49496c869014389f00fe39fba16542f1">
<SCRIPT LANGUAGE="Javascript" type="text/javascript" >
function markall(anzahl)
{
var myRow = null;
var f;
for(var i=0; i < anzahl;i++)
{
f = document.getElementById('check_' + i);
if(f != null)
{
if(document.getElementById('row_' + i) != null)
MarkCells(i,false,null);
f.checked = (f.checked == 0) ? 1 : 0;
}
}
}
</SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=" />
...
die Ausgabe der zweiten Seite ist aber auch nicht richtig.
hallo2Template->loadfile(): No file specified for handle header
Wo ist denn da der Fehler???


SKYSURFER

Verfasst: 06.01.2007 23:04
von S2B
Nimm lieber wieder den Code aus dem vorherigen Beitrag. Ich könnte mir vorstellen, dass die Fehler verschwinden, wenn du die print's rausnimmst. :wink:

Verfasst: 07.01.2007 21:54
von SKYSURFER2002
alles klar. hab ich gemacht und jetzt klappt es auch mit dem phpBB! :D

Danke,
SKYSURFER