Wersja phpBB3: 3.0.10
Forum instalowałem od zera.
Typ serwera: płatny współdzielony host4u
Zainstalowane MODy:
phpbb gallery 1.1.6
Szablon używany: PROSILVER
Wersja PHP: 5.2.0
Wersja bazy danych: MySQLi 5.0.32-Debian_7etch11-log
Chciałem zrobić "Regulamin forum" jako nowa strona. Utworzyłem plik regulamin.php w głównym katalogu z kodem:
Kod: Zaznacz cały
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
page_header('Regulamin forum.hagee.pl');
$template->set_filenames(array(
'body' => 'regulamin_body.html',
));
make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
page_footer();
?>Kod: Zaznacz cały
<!-- INCLUDE overall_header.html -->
<!-- INCLUDE jumpbox.html -->
<!-- INCLUDE overall_footer.html -->