Plugin for remote storage of pictures Plugin for remote storage of pictures
 

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

Plugin for remote storage of pictures

Started by micxer, March 25, 2006, 12:58:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

micxer

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? ???

Joachim Müller

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.

micxer

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?

Joachim Müller

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.

mbu10

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

arthurn

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

Joachim Müller

remote storage is not supported, you're on your own with what you're up to do.