News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

[Solved]: User must be logged in

Started by Halfhidden, June 28, 2008, 09:42:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Halfhidden

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


Halfhidden

Thanks Nibbler... I can continue to build and improve Coppermine  :) Thanks for the fast reply as well.
Regards,
Steff