Is it possible to remap the subdir 'albums' to another location on the server? I am guessing not, because I tried it and it didn't seem to be working. But is it possible if I would change something in the code?
I edited this line in class-gallery.php. The gallery loads and I DON'T get the "Error: The 'albums' directory cannot be found or is not readable."
Instead, it says "The album cannot be found" and the text links to the album name (or at least the name of the folder I uploaded)
If I change the location in class-gallery.php to the default and move the album directory, everything works great, so I know that all other settings are working.
My goal is to give users FTP access to the albums folder, and I have a PHP script that accesses that folder, but I don't want people to have access to folders higher in the directory structure for security purposes.
Yes, it turns out it's much more complicated than just the albums folder definition there.. sadly I don't have time to look for the references right now, but it's in a couple other places, plus in direct redirects in i.php if the image needs no resizing... it can get complicated, and there are reasons those are in a public directory.
Search for /albums/ in all .php files and see what you find, it's a good start...
Comments
` $this->albumdir = SERVERPATH . "/albums/";`
to something like...
` $this->albumdir = SERVERPATH . "/myimages/";`
Make sure to preserve the slashes both before and after the directory name as in the original.
Instead, it says "The album cannot be found" and the text links to the album name (or at least the name of the folder I uploaded)
If I change the location in class-gallery.php to the default and move the album directory, everything works great, so I know that all other settings are working.
My goal is to give users FTP access to the albums folder, and I have a PHP script that accesses that folder, but I don't want people to have access to folders higher in the directory structure for security purposes.
Thanks---
Hope the maze collapse didn't hurt your commute, dude.
Yes, it turns out it's much more complicated than just the albums folder definition there.. sadly I don't have time to look for the references right now, but it's in a couple other places, plus in direct redirects in i.php if the image needs no resizing... it can get complicated, and there are reasons those are in a public directory.
Search for /albums/ in all .php files and see what you find, it's a good start...