Code: Alles auswählen
<?php
/**
*
* @author Original Author author@example.com
* @author Another Author another@example.com
*
* @package {PACKAGENAME}
* @version CVS/SVN: $Id: $
* @copyright (c) 2007 Your Group Name
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
define('IN_PHPBB', true); // we tell the page that it's going to be using phpBB, this is important.
$phpbb_root_path = './x/y/forum/phpBB3/'; // See phpbb_root_path documentation
$phpEx = substr(strrchr(__FILE__, '.'), 1); // Set the File extension for page-wide usage.
include($phpbb_root_path . 'common.' . $phpEx); // include the common.php file, this is important, especially for database connects.
// Start session management -- This will begin the session for the user browsing this page.
$user->session_begin();
$auth->acl($user->data);
// Language file (see documentation related to language files)
$user->setup('mypage');
/**
* All of your coding will be here, setting up vars, database selects, inserts, etc...
*/
// A typical usage for sending your variables to your template.
$template->assign_vars(array(
'THIS_VAR' => $this_var,
'ANOTHER_VAR' => do (something),
));
// Output the page
page_header($user->lang['MY_PAGE_TITLE']); // Page title, this language variable should be defined in the language file you setup at the top of this page.
// Set the filename of the template you want to use for this file.
$template->set_filenames(array(
'body' => 'mytemplate_body.html') // template file name -- See Templates Documentation
);
// Finish the script, display the page
page_footer();
?>