4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: dilkebol on July 18, 2008, 08:59:01 PM

Title: Want to upload .js,.php instead of image
Post by: dilkebol on July 18, 2008, 08:59:01 PM
I have installed 4images gallery on my 10 + websites. What I like to do it,I like to upload *.js or *.php or *.htm file along with *.jpg,*.gif
So that I can use other embedded documents from other websites.


 
Title: Re: Want to upload .js,.php instead of image
Post by: V@no on July 19, 2008, 01:35:06 AM
How do you envision this to be displayed? will it display the source of such files like plain text?
If you are planning on do other then showing the source and if visitors can upload on your site, I would highly NOT recommend doing it for security reasons.
Title: Re: Want to upload .js,.php instead of image
Post by: dilkebol on July 19, 2008, 06:34:53 AM
see below is the file
 :?
i.e. javascript
that I like to upload in such a manner that, it will execute & display images or whatever the code is
will not be displayed to visitors. i.e. output i want. not plain text

<script language='javascript' src='http://www.santabanta.com/wallpapers/slideshow.asp?catname=aishwarya rai'></script>

& my visitors are not able to upload .
If javascript is not working are are the another ways to so so..

thanks in advance.
Title: Re: Want to upload .js,.php instead of image
Post by: dilkebol on July 19, 2008, 10:40:14 AM
Done it ............ !!!
w/o your help it was not possible :)...

http://www.gr8click.com/photogallery/details.php?image_id=2017

Thanks again