forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: DaBe on January 25, 2008, 08:43:11 pm
-
Hello
How I can make a normal php page only for the member avaible?
-
You need to include coppermine's include/init.inc.php and then check that the USER_ID constant is nonzero.
-
Something like
<?php
define('IN_COPPERMINE', true);
require('include/init.inc.php');
pageheader('Hello member');
if (!USER_ID) {
cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}
?>
Your custom content here
<?php
pagefooter();
?>should do the trick.