Search…

X3 Photo Gallery Support Forums

Search…
 
Pallieter
Topic Author
Posts: 6
Joined: 08 Oct 2006, 12:37

Content folder via absolute path/url?

08 Oct 2006, 12:43

I need to have my content folder at ../../www/gallery/ (meaning relative from the ImageVueX dir). How to do this?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

08 Oct 2006, 22:20

I need to have my content folder at ../../www/gallery/ (meaning relative from the ImageVueX dir). How to do this?
You mean you want your contentfolder outside the Imagevue folder?

If your Imagevue folder is at "site.com/imagevue/" and your contentfolder is at "site.com/content/", you could set in config:
Code
contentfolder = ../content/
or in URL parameter:
Code
?contentfolder=../content/
As you can see, relative to main Imagevue folder. However, I need to warn you that working with content outside the main Imagevue folder is a little dodgy. We discussed this as of lately, and some servers wont even support this procedure as it is considered 'unsafe' for a script to access files on a parent level. Like most other galleries, we might require any content to be within the main Imagevue folder in future versions.
 
DELETED

09 Oct 2006, 04:47

DELETED
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

09 Oct 2006, 05:35

What do you mean you "will" have? Why would you put the admin in a separate folder from main Imagevue folder? This is a webapplication and you cant spread the files around in separate folders. Why do you think the admin to this forum is under admin/?

Have you heard of BASE DIR restriction?

Also, Im not saying it doesnt work, because it does: https://www.photo.gallery/imagevue/slide ... mage=false
But only if your server doesnt have base dir restriction. If you check other gallery software out there, you will see that the same rules apply.
 
DELETED

09 Oct 2006, 06:03

DELETED