Guests not permitted to view CPG Guests not permitted to view CPG
 

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]

Main Menu

Guests not permitted to view CPG

Started by finchbirds, June 24, 2005, 09:03:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

finchbirds

I had to go into the code and comment out some lines in order to allow guests to view coppermine through the postNuke link.

I tried every option in the pnCPG admin panel first, but gave up when nothing seemed to work.

I am looking for a reason why only registered / logged in users of postNuke are able to view.

Thanks in advance for any help. Here is what I commented out:



//if ($guest<1){
//pnRedirect($home) ;

//}

casNuy

What are your settings within pnCPG ?

Cas

Photo-nut

You need to comment out the following in "index.php" in the /modules/pnCPG folder. The code has changed a bit from a the earlier query on the same topic, so it looks different. From what you noted as being commented you have not included enough.

For lines 11 - 16 of the code, add the comment codes noted in red, save, and upload the modified index.php to the server.

/*if (!pnUserLoggedIn()) {
if ($guest<1){
pnRedirect($home) ;

}
}*/

casNuy

I will dive into this issue, thought i solved this one !!

Cas