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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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