Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: [Solved]: User must be logged in  (Read 1984 times)

0 Members and 1 Guest are viewing this topic.

Halfhidden

  • Guest
[Solved]: User must be logged in
« 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?
Code: [Select]
<?php
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');
pageheader($lang_banning_php['TOCs']);
?>


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

Thanks,
Steff
« Last Edit: June 28, 2008, 10:24:15 pm by Nibbler »
Logged

Nibbler

  • Guest
Logged

Halfhidden

  • Guest
Re: User must be logged in
« Reply #2 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
Logged
Pages: [1]   Go Up
 

Page created in 0.037 seconds with 18 queries.