Disallow external access to Coppermine? Disallow external access to Coppermine?
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Disallow external access to Coppermine?

Started by lordgix, January 31, 2006, 03:22:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lordgix

Hi, I'm using pnCPG 3.2 and Coppermine 1.4.2 and I read somewhere there was a little hack so that Coppermine couldn't be accesed directly via web, so that everyone who wants to see the Coppermine web has to first go to my web and use the link there. Could someone give me a link to it? thnx ;)

casNuy

Read the docs, it is in there.
Quote
Only PostNuke access
====================
In addition one needs to change a few files in Coppermine to have people always routed through pnCPG.
Insert the following code :
if (!USER_ID) cpg_die(ERROR, '<a href=../index.php?module=pnCPG&func=main target=_top>Click here to access the Gallery</a>', __FILE__, __LINE__);
into the following files :
index.php, thumbnails.php, search.php, dispaly(image/card).php and showthumb.php
Insert this code just after :
require('include/init.inc.php');

Cas