coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Halfhidden on June 28, 2008, 09:42:14 PM

Title: [Solved]: User must be logged in
Post by: Halfhidden on June 28, 2008, 09:42:14 PM
Hi I need help please. I have added a subdirectory within the Coppermine root (Coppermine/history.php/) I want to be able to prevent user who have not log in from viewing the pages in the sub directory. I tried the following code, but it will not work because it isn't in the root directory. Can anyone guide me please?
<?php
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');
pageheader($lang_banning_php['TOCs']);
?>


<?php
pagefooter
();
ob_end_flush();
?>


Thanks,
Steff
Title: Re: User must be logged in
Post by: Nibbler on June 28, 2008, 09:55:33 PM
http://forum.coppermine-gallery.net/index.php/topic,33658.0.html
Title: Re: User must be logged in
Post by: Halfhidden on June 28, 2008, 10:04:35 PM
Thanks Nibbler... I can continue to build and improve Coppermine  :) Thanks for the fast reply as well.
Regards,
Steff