PDA

View Full Version : Photoplog and my applet: possible?


CarlitoBrigante
07-09-2007, 09:52 PM
Hello!

I have developed a simple applet that let you edit images in a browser - think about a small, lite version of paintshop. The applet outputs a file in jpg or png format.

Basically, this is what I want to do:

1) User creates the image using the applet
2) The applet outputs the image
3) Image is uploaded

For the rest, the image can be handled as it is currently done by photoplog (forums are shown like a gallery where each image has its own thread).

I wanted to know if you think an hack to photoplog would be doable - I am an expert php coder, but I have no time to develop a gallery from scratch, so photoplog could save me dozens of hours of work.

Thanks!

Morgan
07-09-2007, 11:05 PM
Sorry, but I cannot answer this question with any amount of certainty, but one idea would be to pass the link to the image as a hidden field and then use that to prefill the 'Upload File From URL Link' box, assuming your PHP setup permits allow_url_fopen or cURL support for requests to the same server as the script.

CarlitoBrigante
07-10-2007, 07:50 PM
Sorry for bothering, one more question.

Speaking of security, are we forced to have the upload directory in a web accessible location?

Morgan
07-10-2007, 08:14 PM
Yes, the PhotoPlog images directory needs to be set to 777 permissions in a web accessible location. However, remember that having a 777 directory in and of itself is not the security issue. The security issue arises for two main reasons: 1) you are on shared hosting and your host doesn't block other people on that server from accessing your account and 2) the script has a vulnerability. To date, as far as I am aware, PhotoPlog has not had a vulnerability.