Topic: Prevent guests from opening some pages
I have PunBB with Miniportal.
I have some php pages which I want users to login before they can see them.
When they click that page in the menu I need a message "You must login to see this page!"
My code is..
<?php
define('PUN_ROOT', './');
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';//Set the page title here
$page_title = pun_htmlspecialchars($pun_config['o_board_title']) . ' / Page 6';
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
require PUN_ROOT.'include/parser.php';?>
<div> blah blah </div>
<?php
require PUN_ROOT.'footer.php';
What is the code that I should write in the page and where exactly should it go?
Many thanks in advance!