Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Symbolic link
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=2037
Page 1 of 1

Author:  kyryan [ 30. Jun 2009, 17:01 ]
Post subject:  Symbolic link

Hello,

I have a problem with tinywebgallery.
I have just created a deb package to install on my server and i replaced the /pictures folder by a symbolic link to allow me to put my pictures on an other disk.

But tinywebgallery say "pictures : The current directory may not be above the home directory. ".

How can I set an other folder to put my pictures that wouldn't be in the tinywebgallery folder.

PS : Sorry I d'ont speak english very well. I hope that you'll understand my problem.

Best regards,
Gilles.

Author:  TinyWebGallery [ 30. Jun 2009, 19:00 ]
Post subject: 

you can specify the pictures folder relative.
So if you have mounted your folder somewhere you can directly link there.

- Michael

Author:  kyryan [ 30. Jun 2009, 19:08 ]
Post subject: 

I think you mean to set :
$basedir = '../../../mnt/disk1/images';
in the config.php file ?

There is not a better solution ?
Use a relative link isn't very clean because if you move ths tinywebgallery folder it won't work anymore. :(

Author:  TinyWebGallery [ 30. Jun 2009, 19:12 ]
Post subject: 

yes.

you can of course disable the security check of the backend.
search for

abovehome

in the administration and disable the checks.

- Michael

Author:  kyryan [ 30. Jun 2009, 19:23 ]
Post subject: 

Okay, thank you it's working fine.

Good night ! :P

Author:  TinyWebGallery [ 30. Jun 2009, 23:25 ]
Post subject: 

you are welcome.

Author:  Specter1981 [ 19. Jan 2012, 06:18 ]
Post subject:  Re: Symbolic link

Hi I am using version 1.8.7 and having the exact same problem but can't find the "abovehome" in config.php. Is it still possible to solve this somehow?

Thank you

Author:  TinyWebGallery [ 19. Jan 2012, 09:19 ]
Post subject:  Re: Symbolic link

you have to search in the code of the administration. this is not in config.php.

- Michael

Author:  Specter1981 [ 19. Jan 2012, 11:28 ]
Post subject:  Re: Symbolic link

Hello Michael,

Thank you for your fast reply.

Unfortunately I am not aquainted with php coding, so could you please tell me more about what I am supposed to do and what to modify?

Here's what I found:

grep -R abovehome /srv/http/twg/app
/srv/http/twg/app/admin/_include/fun_copy_move.php: if(!down_home(get_abs_dir($new_dir))) show_error($new_dir.": ".$GLOBALS["error_msg"]["targetabovehome"]);
/srv/http/twg/app/admin/_include/init.php:if (!down_home($abs_dir)) show_error($GLOBALS["dir"] . " : " . $GLOBALS["error_msg"]["abovehome"]);
/srv/http/twg/app/admin/_lang/en.php: "abovehome" => "The current directory may not be above the home directory.",
/srv/http/twg/app/admin/_lang/en.php: "targetabovehome" => "The target directory may not be above the home directory.",

I imagine that I would have to modify the init.php file but not exactly sure what to do...

Author:  TinyWebGallery [ 19. Jan 2012, 11:46 ]
Post subject:  Re: Symbolic link

simply remove the line in the init.php.

- Michael

Author:  Specter1981 [ 19. Jan 2012, 12:54 ]
Post subject:  Re: Symbolic link

Hello Again,

Just wanted to say thanks, it solved my issue.

Keep up the good work!

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/