Code-Schnipsel
Verfasst: 02.10.2007 21:19
Hallo,
könnte man diese Code so umändern, dass es für phpBB3 Kompatibel wäre?
weil im ordner "includes/" kein page_header.php ist und so...
Gruß
könnte man diese Code so umändern, dass es für phpBB3 Kompatibel wäre?
Code: Alles auswählen
<?php
/***************************************************************************
* DATEINAME.php
* -------------------
* begin : Saturday, Dec 20, 2003
* email : -
* $Id: $
*
*
***************************************************************************/
/***************************************************************************
*
* 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', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
//
// Start output of page
//
$page_title = $lang['Index'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$template->set_filenames(array(
'body' => 'dateiname.tpl')
);
//
// Generate the page
//
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
Gruß