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, PAGE_FAQ);
init_userprefs($userdata);
// set page title
$page_title = 'YOUR PAGE TITLE HERE';
// standard page header
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
// assign template
$template->set_filenames(array(
'body' => 'YOUR_TEMPLATE_NAME_HERE.tpl')
);
$template->pparse('body');
// standard page footer
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
Code: Select all
$phpbb_root_path = './';
Code: Select all
$phpbb_root_path = 'forum/';