Hello
I have done a webpage with this code :
Quote
<?php
define('IN_COPPERMINE', true);
require('include/init.inc.php');
pageheader('test');
?>
<?php
pagefooter();
?>
How to allow this page just for members ?
(if the guest is not a member, display a message : you must be a member to see this webpage.)
Thanks
<?php
define('IN_COPPERMINE', true);
require('include/init.inc.php');
pageheader('test');
if (!USER_ID)
{
msg_box('Login', 'You must be logged in to use this feature');
pagefooter();
die();
}
?>
<?php
pagefooter();
?>
Thanks a lot :)
...or use cpg_die instead of the message box plus pagefooter plus die.