Can gallery images be placed above the root? Can gallery images be placed above the root?
 

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

Can gallery images be placed above the root?

Started by End_User, February 07, 2011, 04:31:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

End_User

I searched the board, FAQ, and docs but didn't see a specific reference to this; if I missed it please just point to whatever page is appropriate.

My question is this: can I place my gallery images in a directory above the root of the domain? I have a very, very old version of Coppermine (1.1x)  that was installed years ago. I spent a lot of time modifying it so I could place the gallery images in a directory above the root of the domain.

Recently the server had a major hard drive crash and I'm recreating the domain...I downloaded the latest version of Coppermine and I've done some test installs. At one point I could have sworn I was able to get it to batch add images (and display them) from the directories above the root, but perhaps I'm mistaken.

The path I used for the 'album directory' setting that I *thought* worked was "../../album/", which points to a directory one level above the root of the domain.

So, my question is, "Can I place my gallery images in a directory above the root of the domain?" Is there a way to make Coppermine work that way?

Thank you in advance for your assistance!


ΑndrĂ©

That's not possible out of the box, as Coppermine use the img tag to embed the images to the gallery. If PHP has access to that path, it should be possible by using the PHP function readfile. Please search this board for that function. We recently had some discussions how to protect files in Coppermine.