coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: micxer on March 25, 2006, 12:58:05 PM

Title: Plugin for remote storage of pictures
Post by: micxer on March 25, 2006, 12:58:05 PM
The basic idea is to redirect the traffic that is created by viewing pictures to a mirror webspace. The webspace where the gallery should be installed on has a limited bandwith and if this bandwith is close to maximum, the gallery should switch the image links to point to the other webspace (which is mine). The HTML code shouldn't consume that much bandwith. So I tried to look into the demo plugin and I digged through the code of the gallery, but as far as I understood there are only a few hooks, that can be used by plugins. Is there any chance to change the image urls before sending them to the browser for displaying? Or is it possible to create a custom hook using the CPGPluginAPI::filter function? ???
Title: Re: Plugin for remote storage of pictures
Post by: Joachim Müller on March 25, 2006, 08:37:36 PM
we don't like the idea of remote storage, as an integration into coppermine's code would result in bandwidth theft (maybe not from you, but defintely from others). Remote storage would require remote code execution for image creation, which is possible but prone for failures. Has been discussed before, please search for details.
Title: Re: Plugin for remote storage of pictures
Post by: micxer on March 25, 2006, 11:50:00 PM
Hmm, you're right. but the images on the gallery sever aren't secured either. So someone can make a direct reference to them as well. Is this planned to be more secure (e.g. a pic.php with checking for the referrer) for the NG-version?
Title: Re: Plugin for remote storage of pictures
Post by: Joachim Müller on March 26, 2006, 03:04:34 AM
hotlink protection is not an issue, quite easy to come up with an appropriate .htaccess file.
However, this is not a question of security as I understand it.
There's a load of possible features for cpgNG, not sure which ones will make it into a release.
Title: Re: Plugin for remote storage of pictures
Post by: mbu10 on April 18, 2006, 01:05:20 AM
well i was running 1.3.2 and decided to do a upgrade to newest one
anyway i used to run a modified code in the function.php so that all the pictures were stored on my other web server(but no php support)
but have massive bandwidth
looking to get this config back in could some one help me
i tried swopping the functions file over but that did not work
thanks
Title: Re: Plugin for remote storage of pictures
Post by: arthurn on April 20, 2006, 12:40:52 AM
I have a simular problem. My safe site that runs PHP and mysql has limited storage capacity, and antother site doesn not have these featuers but much more disk space.
Could you show me the mods on the functions.php? See if it is possible to adapt 1.4.4 as well. Pity it cannot be implemented as a plug-in.
Arthur
Title: Re: Plugin for remote storage of pictures
Post by: Joachim Müller on April 20, 2006, 06:13:32 AM
remote storage is not supported, you're on your own with what you're up to do.